OSDN Git Service

Merge branch 'branch_0.13.0'
[modchxj/mod_chxj.git] / src / css / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for scss 1.0.0.
4 #
5 # Report bugs to <konn@users.sourceforge.jp>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178   if (eval "$as_required") 2>/dev/null; then :
179   as_have_required=yes
180 else
181   as_have_required=no
182 fi
183   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185 else
186   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 as_found=false
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 do
190   IFS=$as_save_IFS
191   test -z "$as_dir" && as_dir=.
192   as_found=:
193   case $as_dir in #(
194          /*)
195            for as_base in sh bash ksh sh5; do
196              # Try only shells that exist, to save several forks.
197              as_shell=$as_dir/$as_base
198              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200   CONFIG_SHELL=$as_shell as_have_required=yes
201                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202   break 2
203 fi
204 fi
205            done;;
206        esac
207   as_found=false
208 done
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211   CONFIG_SHELL=$SHELL as_have_required=yes
212 fi; }
213 IFS=$as_save_IFS
214
215
216       if test "x$CONFIG_SHELL" != x; then :
217   # We cannot yet assume a decent shell, so we have to provide a
218         # neutralization value for shells without unset; and this also
219         # works around shells that cannot unset nonexistent variables.
220         # Preserve -v and -x to the replacement shell.
221         BASH_ENV=/dev/null
222         ENV=/dev/null
223         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224         export CONFIG_SHELL
225         case $- in # ((((
226           *v*x* | *x*v* ) as_opts=-vx ;;
227           *v* ) as_opts=-v ;;
228           *x* ) as_opts=-x ;;
229           * ) as_opts= ;;
230         esac
231         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 fi
233
234     if test x$as_have_required = xno; then :
235   $as_echo "$0: This script requires a shell more modern than all"
236   $as_echo "$0: the shells that I found on your system."
237   if test x${ZSH_VERSION+set} = xset ; then
238     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240   else
241     $as_echo "$0: Please tell bug-autoconf@gnu.org and
242 $0: konn@users.sourceforge.jp about your system, including
243 $0: any error possibly output before this message. Then
244 $0: install a modern shell, or manually run the script
245 $0: under such a shell if you do have one."
246   fi
247   exit 1
248 fi
249 fi
250 fi
251 SHELL=${CONFIG_SHELL-/bin/sh}
252 export SHELL
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
256
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
260 # as_fn_unset VAR
261 # ---------------
262 # Portably unset VAR.
263 as_fn_unset ()
264 {
265   { eval $1=; unset $1;}
266 }
267 as_unset=as_fn_unset
268
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
272 as_fn_set_status ()
273 {
274   return $1
275 } # as_fn_set_status
276
277 # as_fn_exit STATUS
278 # -----------------
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280 as_fn_exit ()
281 {
282   set +e
283   as_fn_set_status $1
284   exit $1
285 } # as_fn_exit
286
287 # as_fn_mkdir_p
288 # -------------
289 # Create "$as_dir" as a directory, including parents if necessary.
290 as_fn_mkdir_p ()
291 {
292
293   case $as_dir in #(
294   -*) as_dir=./$as_dir;;
295   esac
296   test -d "$as_dir" || eval $as_mkdir_p || {
297     as_dirs=
298     while :; do
299       case $as_dir in #(
300       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301       *) as_qdir=$as_dir;;
302       esac
303       as_dirs="'$as_qdir' $as_dirs"
304       as_dir=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306          X"$as_dir" : 'X\(//\)[^/]' \| \
307          X"$as_dir" : 'X\(//\)$' \| \
308          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311             s//\1/
312             q
313           }
314           /^X\(\/\/\)[^/].*/{
315             s//\1/
316             q
317           }
318           /^X\(\/\/\)$/{
319             s//\1/
320             q
321           }
322           /^X\(\/\).*/{
323             s//\1/
324             q
325           }
326           s/.*/./; q'`
327       test -d "$as_dir" && break
328     done
329     test -z "$as_dirs" || eval "mkdir $as_dirs"
330   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331
332
333 } # as_fn_mkdir_p
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
339 # implementations.
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341   eval 'as_fn_append ()
342   {
343     eval $1+=\$2
344   }'
345 else
346   as_fn_append ()
347   {
348     eval $1=\$$1\$2
349   }
350 fi # as_fn_append
351
352 # as_fn_arith ARG...
353 # ------------------
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358   eval 'as_fn_arith ()
359   {
360     as_val=$(( $* ))
361   }'
362 else
363   as_fn_arith ()
364   {
365     as_val=`expr "$@" || test $? -eq 1`
366   }
367 fi # as_fn_arith
368
369
370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 # ----------------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with STATUS, using 1 if that was 0.
375 as_fn_error ()
376 {
377   as_status=$1; test $as_status -eq 0 && as_status=1
378   if test "$4"; then
379     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
381   fi
382   $as_echo "$as_me: error: $2" >&2
383   as_fn_exit $as_status
384 } # as_fn_error
385
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387    test "X`expr 00001 : '.*\(...\)'`" = X001; then
388   as_expr=expr
389 else
390   as_expr=false
391 fi
392
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394   as_basename=basename
395 else
396   as_basename=false
397 fi
398
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400   as_dirname=dirname
401 else
402   as_dirname=false
403 fi
404
405 as_me=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407          X"$0" : 'X\(//\)$' \| \
408          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409 $as_echo X/"$0" |
410     sed '/^.*\/\([^/][^/]*\)\/*$/{
411             s//\1/
412             q
413           }
414           /^X\/\(\/\/\)$/{
415             s//\1/
416             q
417           }
418           /^X\/\(\/\).*/{
419             s//\1/
420             q
421           }
422           s/.*/./; q'`
423
424 # Avoid depending upon Character Ranges.
425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits='0123456789'
429 as_cr_alnum=$as_cr_Letters$as_cr_digits
430
431
432   as_lineno_1=$LINENO as_lineno_1a=$LINENO
433   as_lineno_2=$LINENO as_lineno_2a=$LINENO
434   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
437   sed -n '
438     p
439     /[$]LINENO/=
440   ' <$as_myself |
441     sed '
442       s/[$]LINENO.*/&-/
443       t lineno
444       b
445       :lineno
446       N
447       :loop
448       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449       t loop
450       s/-\n.*//
451     ' >$as_me.lineno &&
452   chmod +x "$as_me.lineno" ||
453     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463 ECHO_C= ECHO_N= ECHO_T=
464 case `echo -n x` in #(((((
465 -n*)
466   case `echo 'xy\c'` in
467   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
468   xy)  ECHO_C='\c';;
469   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
470        ECHO_T=' ';;
471   esac;;
472 *)
473   ECHO_N='-n';;
474 esac
475
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478   rm -f conf$$.dir/conf$$.file
479 else
480   rm -f conf$$.dir
481   mkdir conf$$.dir 2>/dev/null
482 fi
483 if (echo >conf$$.file) 2>/dev/null; then
484   if ln -s conf$$.file conf$$ 2>/dev/null; then
485     as_ln_s='ln -s'
486     # ... but there are two gotchas:
487     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489     # In both cases, we have to default to `cp -p'.
490     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491       as_ln_s='cp -p'
492   elif ln conf$$.file conf$$ 2>/dev/null; then
493     as_ln_s=ln
494   else
495     as_ln_s='cp -p'
496   fi
497 else
498   as_ln_s='cp -p'
499 fi
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
502
503 if mkdir -p . 2>/dev/null; then
504   as_mkdir_p='mkdir -p "$as_dir"'
505 else
506   test -d ./-p && rmdir ./-p
507   as_mkdir_p=false
508 fi
509
510 if test -x / >/dev/null 2>&1; then
511   as_test_x='test -x'
512 else
513   if ls -dL / >/dev/null 2>&1; then
514     as_ls_L_option=L
515   else
516     as_ls_L_option=
517   fi
518   as_test_x='
519     eval sh -c '\''
520       if test -d "$1"; then
521         test -d "$1/.";
522       else
523         case $1 in #(
524         -*)set "./$1";;
525         esac;
526         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527         ???[sx]*):;;*)false;;esac;fi
528     '\'' sh
529   '
530 fi
531 as_executable_p=$as_test_x
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541 # Check that we are running under the correct shell.
542 SHELL=${CONFIG_SHELL-/bin/sh}
543
544 case X$ECHO in
545 X*--fallback-echo)
546   # Remove one level of quotation (which was required for Make).
547   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
548   ;;
549 esac
550
551 echo=${ECHO-echo}
552 if test "X$1" = X--no-reexec; then
553   # Discard the --no-reexec flag, and continue.
554   shift
555 elif test "X$1" = X--fallback-echo; then
556   # Avoid inline document here, it may be left over
557   :
558 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
559   # Yippee, $echo works!
560   :
561 else
562   # Restart under the correct shell.
563   exec $SHELL "$0" --no-reexec ${1+"$@"}
564 fi
565
566 if test "X$1" = X--fallback-echo; then
567   # used as fallback echo
568   shift
569   cat <<EOF
570 $*
571 EOF
572   exit 0
573 fi
574
575 # The HP-UX ksh and POSIX shell print the target directory to stdout
576 # if CDPATH is set.
577 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
578
579 if test -z "$ECHO"; then
580 if test "X${echo_test_string+set}" != Xset; then
581 # find a string as large as possible, as long as the shell can cope with it
582   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
583     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
584     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
585        echo_test_string=`eval $cmd` &&
586        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
587     then
588       break
589     fi
590   done
591 fi
592
593 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
594    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
595    test "X$echo_testing_string" = "X$echo_test_string"; then
596   :
597 else
598   # The Solaris, AIX, and Digital Unix default echo programs unquote
599   # backslashes.  This makes it impossible to quote backslashes using
600   #   echo "$something" | sed 's/\\/\\\\/g'
601   #
602   # So, first we look for a working echo in the user's PATH.
603
604   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
605   for dir in $PATH /usr/ucb; do
606     IFS="$lt_save_ifs"
607     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
608        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
609        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
610        test "X$echo_testing_string" = "X$echo_test_string"; then
611       echo="$dir/echo"
612       break
613     fi
614   done
615   IFS="$lt_save_ifs"
616
617   if test "X$echo" = Xecho; then
618     # We didn't find a better echo, so look for alternatives.
619     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
620        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
621        test "X$echo_testing_string" = "X$echo_test_string"; then
622       # This shell has a builtin print -r that does the trick.
623       echo='print -r'
624     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
625          test "X$CONFIG_SHELL" != X/bin/ksh; then
626       # If we have ksh, try running configure again with it.
627       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
628       export ORIGINAL_CONFIG_SHELL
629       CONFIG_SHELL=/bin/ksh
630       export CONFIG_SHELL
631       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
632     else
633       # Try using printf.
634       echo='printf %s\n'
635       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
636          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
637          test "X$echo_testing_string" = "X$echo_test_string"; then
638         # Cool, printf works
639         :
640       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641            test "X$echo_testing_string" = 'X\t' &&
642            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643            test "X$echo_testing_string" = "X$echo_test_string"; then
644         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
645         export CONFIG_SHELL
646         SHELL="$CONFIG_SHELL"
647         export SHELL
648         echo="$CONFIG_SHELL $0 --fallback-echo"
649       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
650            test "X$echo_testing_string" = 'X\t' &&
651            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
652            test "X$echo_testing_string" = "X$echo_test_string"; then
653         echo="$CONFIG_SHELL $0 --fallback-echo"
654       else
655         # maybe with a smaller string...
656         prev=:
657
658         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
659           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
660           then
661             break
662           fi
663           prev="$cmd"
664         done
665
666         if test "$prev" != 'sed 50q "$0"'; then
667           echo_test_string=`eval $prev`
668           export echo_test_string
669           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
670         else
671           # Oops.  We lost completely, so just stick with echo.
672           echo=echo
673         fi
674       fi
675     fi
676   fi
677 fi
678 fi
679
680 # Copy echo and quote the copy suitably for passing to libtool from
681 # the Makefile, instead of quoting the original, which is used later.
682 ECHO=$echo
683 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
684    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
685 fi
686
687
688
689
690 tagnames=${tagnames+${tagnames},}CXX
691
692 tagnames=${tagnames+${tagnames},}F77
693
694 test -n "$DJDIR" || exec 7<&0 </dev/null
695 exec 6>&1
696
697 # Name of the host.
698 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
699 # so uname gets run too.
700 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
701
702 #
703 # Initializations.
704 #
705 ac_default_prefix=/usr/local
706 ac_clean_files=
707 ac_config_libobj_dir=.
708 LIBOBJS=
709 cross_compiling=no
710 subdirs=
711 MFLAGS=
712 MAKEFLAGS=
713
714 # Identity of this package.
715 PACKAGE_NAME='scss'
716 PACKAGE_TARNAME='scss'
717 PACKAGE_VERSION='1.0.0'
718 PACKAGE_STRING='scss 1.0.0'
719 PACKAGE_BUGREPORT='konn@users.sourceforge.jp'
720 PACKAGE_URL=''
721
722 ac_unique_file="src/main.c"
723 # Factoring default headers for most tests.
724 ac_includes_default="\
725 #include <stdio.h>
726 #ifdef HAVE_SYS_TYPES_H
727 # include <sys/types.h>
728 #endif
729 #ifdef HAVE_SYS_STAT_H
730 # include <sys/stat.h>
731 #endif
732 #ifdef STDC_HEADERS
733 # include <stdlib.h>
734 # include <stddef.h>
735 #else
736 # ifdef HAVE_STDLIB_H
737 #  include <stdlib.h>
738 # endif
739 #endif
740 #ifdef HAVE_STRING_H
741 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
742 #  include <memory.h>
743 # endif
744 # include <string.h>
745 #endif
746 #ifdef HAVE_STRINGS_H
747 # include <strings.h>
748 #endif
749 #ifdef HAVE_INTTYPES_H
750 # include <inttypes.h>
751 #endif
752 #ifdef HAVE_STDINT_H
753 # include <stdint.h>
754 #endif
755 #ifdef HAVE_UNISTD_H
756 # include <unistd.h>
757 #endif"
758
759 ac_subst_vars='LTLIBOBJS
760 LIBOBJS
761 APU_1_CONFIG
762 APU_CONFIG
763 APR_1_CONFIG
764 APR_CONFIG
765 LIBTOOL_DEPS
766 LIBTOOL
767 ac_ct_F77
768 FFLAGS
769 F77
770 CXXCPP
771 am__fastdepCXX_FALSE
772 am__fastdepCXX_TRUE
773 CXXDEPMODE
774 ac_ct_CXX
775 CXXFLAGS
776 CXX
777 CPP
778 NMEDIT
779 DSYMUTIL
780 RANLIB
781 AR
782 ECHO
783 LN_S
784 EGREP
785 GREP
786 SED
787 am__fastdepCC_FALSE
788 am__fastdepCC_TRUE
789 CCDEPMODE
790 AMDEPBACKSLASH
791 AMDEP_FALSE
792 AMDEP_TRUE
793 am__quote
794 am__include
795 DEPDIR
796 OBJEXT
797 EXEEXT
798 ac_ct_CC
799 CPPFLAGS
800 LDFLAGS
801 CFLAGS
802 CC
803 am__untar
804 am__tar
805 AMTAR
806 am__leading_dot
807 SET_MAKE
808 AWK
809 mkdir_p
810 MKDIR_P
811 INSTALL_STRIP_PROGRAM
812 STRIP
813 install_sh
814 MAKEINFO
815 AUTOHEADER
816 AUTOMAKE
817 AUTOCONF
818 ACLOCAL
819 VERSION
820 PACKAGE
821 CYGPATH_W
822 am__isrc
823 INSTALL_DATA
824 INSTALL_SCRIPT
825 INSTALL_PROGRAM
826 target_os
827 target_vendor
828 target_cpu
829 target
830 host_os
831 host_vendor
832 host_cpu
833 host
834 build_os
835 build_vendor
836 build_cpu
837 build
838 target_alias
839 host_alias
840 build_alias
841 LIBS
842 ECHO_T
843 ECHO_N
844 ECHO_C
845 DEFS
846 mandir
847 localedir
848 libdir
849 psdir
850 pdfdir
851 dvidir
852 htmldir
853 infodir
854 docdir
855 oldincludedir
856 includedir
857 localstatedir
858 sharedstatedir
859 sysconfdir
860 datadir
861 datarootdir
862 libexecdir
863 sbindir
864 bindir
865 program_transform_name
866 prefix
867 exec_prefix
868 PACKAGE_URL
869 PACKAGE_BUGREPORT
870 PACKAGE_STRING
871 PACKAGE_VERSION
872 PACKAGE_TARNAME
873 PACKAGE_NAME
874 PATH_SEPARATOR
875 SHELL'
876 ac_subst_files=''
877 ac_user_opts='
878 enable_option_checking
879 enable_shared
880 enable_static
881 enable_fast_install
882 enable_dependency_tracking
883 with_gnu_ld
884 enable_libtool_lock
885 with_pic
886 with_tags
887 with_gnu_ld
888 with_apr_config
889 with_apu_config
890 '
891       ac_precious_vars='build_alias
892 host_alias
893 target_alias
894 CC
895 CFLAGS
896 LDFLAGS
897 LIBS
898 CPPFLAGS
899 CPP
900 CPPFLAGS
901 CXX
902 CXXFLAGS
903 LDFLAGS
904 LIBS
905 CPPFLAGS
906 CCC
907 CXXCPP
908 F77
909 FFLAGS
910 LDFLAGS
911 LIBS
912 CC
913 LDFLAGS
914 LIBS'
915
916
917 # Initialize some variables set by options.
918 ac_init_help=
919 ac_init_version=false
920 ac_unrecognized_opts=
921 ac_unrecognized_sep=
922 # The variables have the same names as the options, with
923 # dashes changed to underlines.
924 cache_file=/dev/null
925 exec_prefix=NONE
926 no_create=
927 no_recursion=
928 prefix=NONE
929 program_prefix=NONE
930 program_suffix=NONE
931 program_transform_name=s,x,x,
932 silent=
933 site=
934 srcdir=
935 verbose=
936 x_includes=NONE
937 x_libraries=NONE
938
939 # Installation directory options.
940 # These are left unexpanded so users can "make install exec_prefix=/foo"
941 # and all the variables that are supposed to be based on exec_prefix
942 # by default will actually change.
943 # Use braces instead of parens because sh, perl, etc. also accept them.
944 # (The list follows the same order as the GNU Coding Standards.)
945 bindir='${exec_prefix}/bin'
946 sbindir='${exec_prefix}/sbin'
947 libexecdir='${exec_prefix}/libexec'
948 datarootdir='${prefix}/share'
949 datadir='${datarootdir}'
950 sysconfdir='${prefix}/etc'
951 sharedstatedir='${prefix}/com'
952 localstatedir='${prefix}/var'
953 includedir='${prefix}/include'
954 oldincludedir='/usr/include'
955 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
956 infodir='${datarootdir}/info'
957 htmldir='${docdir}'
958 dvidir='${docdir}'
959 pdfdir='${docdir}'
960 psdir='${docdir}'
961 libdir='${exec_prefix}/lib'
962 localedir='${datarootdir}/locale'
963 mandir='${datarootdir}/man'
964
965 ac_prev=
966 ac_dashdash=
967 for ac_option
968 do
969   # If the previous option needs an argument, assign it.
970   if test -n "$ac_prev"; then
971     eval $ac_prev=\$ac_option
972     ac_prev=
973     continue
974   fi
975
976   case $ac_option in
977   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
978   *=)   ac_optarg= ;;
979   *)    ac_optarg=yes ;;
980   esac
981
982   # Accept the important Cygnus configure options, so we can diagnose typos.
983
984   case $ac_dashdash$ac_option in
985   --)
986     ac_dashdash=yes ;;
987
988   -bindir | --bindir | --bindi | --bind | --bin | --bi)
989     ac_prev=bindir ;;
990   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
991     bindir=$ac_optarg ;;
992
993   -build | --build | --buil | --bui | --bu)
994     ac_prev=build_alias ;;
995   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
996     build_alias=$ac_optarg ;;
997
998   -cache-file | --cache-file | --cache-fil | --cache-fi \
999   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1000     ac_prev=cache_file ;;
1001   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1002   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1003     cache_file=$ac_optarg ;;
1004
1005   --config-cache | -C)
1006     cache_file=config.cache ;;
1007
1008   -datadir | --datadir | --datadi | --datad)
1009     ac_prev=datadir ;;
1010   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1011     datadir=$ac_optarg ;;
1012
1013   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1014   | --dataroo | --dataro | --datar)
1015     ac_prev=datarootdir ;;
1016   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1017   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1018     datarootdir=$ac_optarg ;;
1019
1020   -disable-* | --disable-*)
1021     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1022     # Reject names that are not valid shell variable names.
1023     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1024       as_fn_error $? "invalid feature name: $ac_useropt"
1025     ac_useropt_orig=$ac_useropt
1026     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1027     case $ac_user_opts in
1028       *"
1029 "enable_$ac_useropt"
1030 "*) ;;
1031       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1032          ac_unrecognized_sep=', ';;
1033     esac
1034     eval enable_$ac_useropt=no ;;
1035
1036   -docdir | --docdir | --docdi | --doc | --do)
1037     ac_prev=docdir ;;
1038   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1039     docdir=$ac_optarg ;;
1040
1041   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1042     ac_prev=dvidir ;;
1043   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1044     dvidir=$ac_optarg ;;
1045
1046   -enable-* | --enable-*)
1047     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1048     # Reject names that are not valid shell variable names.
1049     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1050       as_fn_error $? "invalid feature name: $ac_useropt"
1051     ac_useropt_orig=$ac_useropt
1052     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1053     case $ac_user_opts in
1054       *"
1055 "enable_$ac_useropt"
1056 "*) ;;
1057       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1058          ac_unrecognized_sep=', ';;
1059     esac
1060     eval enable_$ac_useropt=\$ac_optarg ;;
1061
1062   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1063   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1064   | --exec | --exe | --ex)
1065     ac_prev=exec_prefix ;;
1066   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1067   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1068   | --exec=* | --exe=* | --ex=*)
1069     exec_prefix=$ac_optarg ;;
1070
1071   -gas | --gas | --ga | --g)
1072     # Obsolete; use --with-gas.
1073     with_gas=yes ;;
1074
1075   -help | --help | --hel | --he | -h)
1076     ac_init_help=long ;;
1077   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1078     ac_init_help=recursive ;;
1079   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1080     ac_init_help=short ;;
1081
1082   -host | --host | --hos | --ho)
1083     ac_prev=host_alias ;;
1084   -host=* | --host=* | --hos=* | --ho=*)
1085     host_alias=$ac_optarg ;;
1086
1087   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1088     ac_prev=htmldir ;;
1089   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1090   | --ht=*)
1091     htmldir=$ac_optarg ;;
1092
1093   -includedir | --includedir | --includedi | --included | --include \
1094   | --includ | --inclu | --incl | --inc)
1095     ac_prev=includedir ;;
1096   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1097   | --includ=* | --inclu=* | --incl=* | --inc=*)
1098     includedir=$ac_optarg ;;
1099
1100   -infodir | --infodir | --infodi | --infod | --info | --inf)
1101     ac_prev=infodir ;;
1102   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1103     infodir=$ac_optarg ;;
1104
1105   -libdir | --libdir | --libdi | --libd)
1106     ac_prev=libdir ;;
1107   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1108     libdir=$ac_optarg ;;
1109
1110   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1111   | --libexe | --libex | --libe)
1112     ac_prev=libexecdir ;;
1113   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1114   | --libexe=* | --libex=* | --libe=*)
1115     libexecdir=$ac_optarg ;;
1116
1117   -localedir | --localedir | --localedi | --localed | --locale)
1118     ac_prev=localedir ;;
1119   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1120     localedir=$ac_optarg ;;
1121
1122   -localstatedir | --localstatedir | --localstatedi | --localstated \
1123   | --localstate | --localstat | --localsta | --localst | --locals)
1124     ac_prev=localstatedir ;;
1125   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1126   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1127     localstatedir=$ac_optarg ;;
1128
1129   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1130     ac_prev=mandir ;;
1131   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1132     mandir=$ac_optarg ;;
1133
1134   -nfp | --nfp | --nf)
1135     # Obsolete; use --without-fp.
1136     with_fp=no ;;
1137
1138   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1139   | --no-cr | --no-c | -n)
1140     no_create=yes ;;
1141
1142   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1143   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1144     no_recursion=yes ;;
1145
1146   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1147   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1148   | --oldin | --oldi | --old | --ol | --o)
1149     ac_prev=oldincludedir ;;
1150   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1151   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1152   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1153     oldincludedir=$ac_optarg ;;
1154
1155   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1156     ac_prev=prefix ;;
1157   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1158     prefix=$ac_optarg ;;
1159
1160   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1161   | --program-pre | --program-pr | --program-p)
1162     ac_prev=program_prefix ;;
1163   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1164   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1165     program_prefix=$ac_optarg ;;
1166
1167   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1168   | --program-suf | --program-su | --program-s)
1169     ac_prev=program_suffix ;;
1170   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1171   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1172     program_suffix=$ac_optarg ;;
1173
1174   -program-transform-name | --program-transform-name \
1175   | --program-transform-nam | --program-transform-na \
1176   | --program-transform-n | --program-transform- \
1177   | --program-transform | --program-transfor \
1178   | --program-transfo | --program-transf \
1179   | --program-trans | --program-tran \
1180   | --progr-tra | --program-tr | --program-t)
1181     ac_prev=program_transform_name ;;
1182   -program-transform-name=* | --program-transform-name=* \
1183   | --program-transform-nam=* | --program-transform-na=* \
1184   | --program-transform-n=* | --program-transform-=* \
1185   | --program-transform=* | --program-transfor=* \
1186   | --program-transfo=* | --program-transf=* \
1187   | --program-trans=* | --program-tran=* \
1188   | --progr-tra=* | --program-tr=* | --program-t=*)
1189     program_transform_name=$ac_optarg ;;
1190
1191   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1192     ac_prev=pdfdir ;;
1193   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1194     pdfdir=$ac_optarg ;;
1195
1196   -psdir | --psdir | --psdi | --psd | --ps)
1197     ac_prev=psdir ;;
1198   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1199     psdir=$ac_optarg ;;
1200
1201   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1202   | -silent | --silent | --silen | --sile | --sil)
1203     silent=yes ;;
1204
1205   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1206     ac_prev=sbindir ;;
1207   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1208   | --sbi=* | --sb=*)
1209     sbindir=$ac_optarg ;;
1210
1211   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1212   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1213   | --sharedst | --shareds | --shared | --share | --shar \
1214   | --sha | --sh)
1215     ac_prev=sharedstatedir ;;
1216   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1217   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1218   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1219   | --sha=* | --sh=*)
1220     sharedstatedir=$ac_optarg ;;
1221
1222   -site | --site | --sit)
1223     ac_prev=site ;;
1224   -site=* | --site=* | --sit=*)
1225     site=$ac_optarg ;;
1226
1227   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1228     ac_prev=srcdir ;;
1229   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1230     srcdir=$ac_optarg ;;
1231
1232   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1233   | --syscon | --sysco | --sysc | --sys | --sy)
1234     ac_prev=sysconfdir ;;
1235   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1236   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1237     sysconfdir=$ac_optarg ;;
1238
1239   -target | --target | --targe | --targ | --tar | --ta | --t)
1240     ac_prev=target_alias ;;
1241   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1242     target_alias=$ac_optarg ;;
1243
1244   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1245     verbose=yes ;;
1246
1247   -version | --version | --versio | --versi | --vers | -V)
1248     ac_init_version=: ;;
1249
1250   -with-* | --with-*)
1251     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1252     # Reject names that are not valid shell variable names.
1253     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1254       as_fn_error $? "invalid package name: $ac_useropt"
1255     ac_useropt_orig=$ac_useropt
1256     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1257     case $ac_user_opts in
1258       *"
1259 "with_$ac_useropt"
1260 "*) ;;
1261       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1262          ac_unrecognized_sep=', ';;
1263     esac
1264     eval with_$ac_useropt=\$ac_optarg ;;
1265
1266   -without-* | --without-*)
1267     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1268     # Reject names that are not valid shell variable names.
1269     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1270       as_fn_error $? "invalid package name: $ac_useropt"
1271     ac_useropt_orig=$ac_useropt
1272     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1273     case $ac_user_opts in
1274       *"
1275 "with_$ac_useropt"
1276 "*) ;;
1277       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1278          ac_unrecognized_sep=', ';;
1279     esac
1280     eval with_$ac_useropt=no ;;
1281
1282   --x)
1283     # Obsolete; use --with-x.
1284     with_x=yes ;;
1285
1286   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1287   | --x-incl | --x-inc | --x-in | --x-i)
1288     ac_prev=x_includes ;;
1289   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1290   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1291     x_includes=$ac_optarg ;;
1292
1293   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1294   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1295     ac_prev=x_libraries ;;
1296   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1297   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1298     x_libraries=$ac_optarg ;;
1299
1300   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1301 Try \`$0 --help' for more information"
1302     ;;
1303
1304   *=*)
1305     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1306     # Reject names that are not valid shell variable names.
1307     case $ac_envvar in #(
1308       '' | [0-9]* | *[!_$as_cr_alnum]* )
1309       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1310     esac
1311     eval $ac_envvar=\$ac_optarg
1312     export $ac_envvar ;;
1313
1314   *)
1315     # FIXME: should be removed in autoconf 3.0.
1316     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1317     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1318       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1319     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1320     ;;
1321
1322   esac
1323 done
1324
1325 if test -n "$ac_prev"; then
1326   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1327   as_fn_error $? "missing argument to $ac_option"
1328 fi
1329
1330 if test -n "$ac_unrecognized_opts"; then
1331   case $enable_option_checking in
1332     no) ;;
1333     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1334     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1335   esac
1336 fi
1337
1338 # Check all directory arguments for consistency.
1339 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1340                 datadir sysconfdir sharedstatedir localstatedir includedir \
1341                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1342                 libdir localedir mandir
1343 do
1344   eval ac_val=\$$ac_var
1345   # Remove trailing slashes.
1346   case $ac_val in
1347     */ )
1348       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1349       eval $ac_var=\$ac_val;;
1350   esac
1351   # Be sure to have absolute directory names.
1352   case $ac_val in
1353     [\\/$]* | ?:[\\/]* )  continue;;
1354     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1355   esac
1356   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1357 done
1358
1359 # There might be people who depend on the old broken behavior: `$host'
1360 # used to hold the argument of --host etc.
1361 # FIXME: To remove some day.
1362 build=$build_alias
1363 host=$host_alias
1364 target=$target_alias
1365
1366 # FIXME: To remove some day.
1367 if test "x$host_alias" != x; then
1368   if test "x$build_alias" = x; then
1369     cross_compiling=maybe
1370     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1371     If a cross compiler is detected then cross compile mode will be used" >&2
1372   elif test "x$build_alias" != "x$host_alias"; then
1373     cross_compiling=yes
1374   fi
1375 fi
1376
1377 ac_tool_prefix=
1378 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1379
1380 test "$silent" = yes && exec 6>/dev/null
1381
1382
1383 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1384 ac_ls_di=`ls -di .` &&
1385 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1386   as_fn_error $? "working directory cannot be determined"
1387 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1388   as_fn_error $? "pwd does not report name of working directory"
1389
1390
1391 # Find the source files, if location was not specified.
1392 if test -z "$srcdir"; then
1393   ac_srcdir_defaulted=yes
1394   # Try the directory containing this script, then the parent directory.
1395   ac_confdir=`$as_dirname -- "$as_myself" ||
1396 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1397          X"$as_myself" : 'X\(//\)[^/]' \| \
1398          X"$as_myself" : 'X\(//\)$' \| \
1399          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1400 $as_echo X"$as_myself" |
1401     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1402             s//\1/
1403             q
1404           }
1405           /^X\(\/\/\)[^/].*/{
1406             s//\1/
1407             q
1408           }
1409           /^X\(\/\/\)$/{
1410             s//\1/
1411             q
1412           }
1413           /^X\(\/\).*/{
1414             s//\1/
1415             q
1416           }
1417           s/.*/./; q'`
1418   srcdir=$ac_confdir
1419   if test ! -r "$srcdir/$ac_unique_file"; then
1420     srcdir=..
1421   fi
1422 else
1423   ac_srcdir_defaulted=no
1424 fi
1425 if test ! -r "$srcdir/$ac_unique_file"; then
1426   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1427   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1428 fi
1429 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1430 ac_abs_confdir=`(
1431         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1432         pwd)`
1433 # When building in place, set srcdir=.
1434 if test "$ac_abs_confdir" = "$ac_pwd"; then
1435   srcdir=.
1436 fi
1437 # Remove unnecessary trailing slashes from srcdir.
1438 # Double slashes in file names in object file debugging info
1439 # mess up M-x gdb in Emacs.
1440 case $srcdir in
1441 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1442 esac
1443 for ac_var in $ac_precious_vars; do
1444   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1445   eval ac_env_${ac_var}_value=\$${ac_var}
1446   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1447   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1448 done
1449
1450 #
1451 # Report the --help message.
1452 #
1453 if test "$ac_init_help" = "long"; then
1454   # Omit some internal or obsolete options to make the list less imposing.
1455   # This message is too long to be a string in the A/UX 3.1 sh.
1456   cat <<_ACEOF
1457 \`configure' configures scss 1.0.0 to adapt to many kinds of systems.
1458
1459 Usage: $0 [OPTION]... [VAR=VALUE]...
1460
1461 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1462 VAR=VALUE.  See below for descriptions of some of the useful variables.
1463
1464 Defaults for the options are specified in brackets.
1465
1466 Configuration:
1467   -h, --help              display this help and exit
1468       --help=short        display options specific to this package
1469       --help=recursive    display the short help of all the included packages
1470   -V, --version           display version information and exit
1471   -q, --quiet, --silent   do not print \`checking ...' messages
1472       --cache-file=FILE   cache test results in FILE [disabled]
1473   -C, --config-cache      alias for \`--cache-file=config.cache'
1474   -n, --no-create         do not create output files
1475       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1476
1477 Installation directories:
1478   --prefix=PREFIX         install architecture-independent files in PREFIX
1479                           [$ac_default_prefix]
1480   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1481                           [PREFIX]
1482
1483 By default, \`make install' will install all the files in
1484 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1485 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1486 for instance \`--prefix=\$HOME'.
1487
1488 For better control, use the options below.
1489
1490 Fine tuning of the installation directories:
1491   --bindir=DIR            user executables [EPREFIX/bin]
1492   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1493   --libexecdir=DIR        program executables [EPREFIX/libexec]
1494   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1495   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1496   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1497   --libdir=DIR            object code libraries [EPREFIX/lib]
1498   --includedir=DIR        C header files [PREFIX/include]
1499   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1500   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1501   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1502   --infodir=DIR           info documentation [DATAROOTDIR/info]
1503   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1504   --mandir=DIR            man documentation [DATAROOTDIR/man]
1505   --docdir=DIR            documentation root [DATAROOTDIR/doc/scss]
1506   --htmldir=DIR           html documentation [DOCDIR]
1507   --dvidir=DIR            dvi documentation [DOCDIR]
1508   --pdfdir=DIR            pdf documentation [DOCDIR]
1509   --psdir=DIR             ps documentation [DOCDIR]
1510 _ACEOF
1511
1512   cat <<\_ACEOF
1513
1514 Program names:
1515   --program-prefix=PREFIX            prepend PREFIX to installed program names
1516   --program-suffix=SUFFIX            append SUFFIX to installed program names
1517   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1518
1519 System types:
1520   --build=BUILD     configure for building on BUILD [guessed]
1521   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1522   --target=TARGET   configure for building compilers for TARGET [HOST]
1523 _ACEOF
1524 fi
1525
1526 if test -n "$ac_init_help"; then
1527   case $ac_init_help in
1528      short | recursive ) echo "Configuration of scss 1.0.0:";;
1529    esac
1530   cat <<\_ACEOF
1531
1532 Optional Features:
1533   --disable-option-checking  ignore unrecognized --enable/--with options
1534   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1535   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1536   --enable-shared[=PKGS]  build shared libraries [default=yes]
1537   --enable-static[=PKGS]  build static libraries [default=yes]
1538   --enable-fast-install[=PKGS]
1539                           optimize for fast installation [default=yes]
1540   --disable-dependency-tracking  speeds up one-time build
1541   --enable-dependency-tracking   do not reject slow dependency extractors
1542   --disable-libtool-lock  avoid locking (might break parallel builds)
1543
1544 Optional Packages:
1545   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1546   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1547   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1548   --with-pic              try to use only PIC/non-PIC objects [default=use
1549                           both]
1550   --with-tags[=TAGS]      include additional configurations [automatic]
1551   --with-apr-config=ARG  Path of apr-config program file.
1552   --with-apu-config=ARG  Path of apu-config program file.
1553
1554 Some influential environment variables:
1555   CC          C compiler command
1556   CFLAGS      C compiler flags
1557   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1558               nonstandard directory <lib dir>
1559   LIBS        libraries to pass to the linker, e.g. -l<library>
1560   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1561               you have headers in a nonstandard directory <include dir>
1562   CPP         C preprocessor
1563   CXX         C++ compiler command
1564   CXXFLAGS    C++ compiler flags
1565   CXXCPP      C++ preprocessor
1566   F77         Fortran 77 compiler command
1567   FFLAGS      Fortran 77 compiler flags
1568
1569 Use these variables to override the choices made by `configure' or to help
1570 it to find libraries and programs with nonstandard names/locations.
1571
1572 Report bugs to <konn@users.sourceforge.jp>.
1573 _ACEOF
1574 ac_status=$?
1575 fi
1576
1577 if test "$ac_init_help" = "recursive"; then
1578   # If there are subdirs, report their specific --help.
1579   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1580     test -d "$ac_dir" ||
1581       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1582       continue
1583     ac_builddir=.
1584
1585 case "$ac_dir" in
1586 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1587 *)
1588   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1589   # A ".." for each directory in $ac_dir_suffix.
1590   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1591   case $ac_top_builddir_sub in
1592   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1593   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1594   esac ;;
1595 esac
1596 ac_abs_top_builddir=$ac_pwd
1597 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1598 # for backward compatibility:
1599 ac_top_builddir=$ac_top_build_prefix
1600
1601 case $srcdir in
1602   .)  # We are building in place.
1603     ac_srcdir=.
1604     ac_top_srcdir=$ac_top_builddir_sub
1605     ac_abs_top_srcdir=$ac_pwd ;;
1606   [\\/]* | ?:[\\/]* )  # Absolute name.
1607     ac_srcdir=$srcdir$ac_dir_suffix;
1608     ac_top_srcdir=$srcdir
1609     ac_abs_top_srcdir=$srcdir ;;
1610   *) # Relative name.
1611     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1612     ac_top_srcdir=$ac_top_build_prefix$srcdir
1613     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1614 esac
1615 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1616
1617     cd "$ac_dir" || { ac_status=$?; continue; }
1618     # Check for guested configure.
1619     if test -f "$ac_srcdir/configure.gnu"; then
1620       echo &&
1621       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1622     elif test -f "$ac_srcdir/configure"; then
1623       echo &&
1624       $SHELL "$ac_srcdir/configure" --help=recursive
1625     else
1626       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1627     fi || ac_status=$?
1628     cd "$ac_pwd" || { ac_status=$?; break; }
1629   done
1630 fi
1631
1632 test -n "$ac_init_help" && exit $ac_status
1633 if $ac_init_version; then
1634   cat <<\_ACEOF
1635 scss configure 1.0.0
1636 generated by GNU Autoconf 2.68
1637
1638 Copyright (C) 2010 Free Software Foundation, Inc.
1639 This configure script is free software; the Free Software Foundation
1640 gives unlimited permission to copy, distribute and modify it.
1641 _ACEOF
1642   exit
1643 fi
1644
1645 ## ------------------------ ##
1646 ## Autoconf initialization. ##
1647 ## ------------------------ ##
1648
1649 # ac_fn_c_try_compile LINENO
1650 # --------------------------
1651 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1652 ac_fn_c_try_compile ()
1653 {
1654   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655   rm -f conftest.$ac_objext
1656   if { { ac_try="$ac_compile"
1657 case "(($ac_try" in
1658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659   *) ac_try_echo=$ac_try;;
1660 esac
1661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662 $as_echo "$ac_try_echo"; } >&5
1663   (eval "$ac_compile") 2>conftest.err
1664   ac_status=$?
1665   if test -s conftest.err; then
1666     grep -v '^ *+' conftest.err >conftest.er1
1667     cat conftest.er1 >&5
1668     mv -f conftest.er1 conftest.err
1669   fi
1670   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671   test $ac_status = 0; } && {
1672          test -z "$ac_c_werror_flag" ||
1673          test ! -s conftest.err
1674        } && test -s conftest.$ac_objext; then :
1675   ac_retval=0
1676 else
1677   $as_echo "$as_me: failed program was:" >&5
1678 sed 's/^/| /' conftest.$ac_ext >&5
1679
1680         ac_retval=1
1681 fi
1682   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683   as_fn_set_status $ac_retval
1684
1685 } # ac_fn_c_try_compile
1686
1687 # ac_fn_c_try_link LINENO
1688 # -----------------------
1689 # Try to link conftest.$ac_ext, and return whether this succeeded.
1690 ac_fn_c_try_link ()
1691 {
1692   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693   rm -f conftest.$ac_objext conftest$ac_exeext
1694   if { { ac_try="$ac_link"
1695 case "(($ac_try" in
1696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697   *) ac_try_echo=$ac_try;;
1698 esac
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 $as_echo "$ac_try_echo"; } >&5
1701   (eval "$ac_link") 2>conftest.err
1702   ac_status=$?
1703   if test -s conftest.err; then
1704     grep -v '^ *+' conftest.err >conftest.er1
1705     cat conftest.er1 >&5
1706     mv -f conftest.er1 conftest.err
1707   fi
1708   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709   test $ac_status = 0; } && {
1710          test -z "$ac_c_werror_flag" ||
1711          test ! -s conftest.err
1712        } && test -s conftest$ac_exeext && {
1713          test "$cross_compiling" = yes ||
1714          $as_test_x conftest$ac_exeext
1715        }; then :
1716   ac_retval=0
1717 else
1718   $as_echo "$as_me: failed program was:" >&5
1719 sed 's/^/| /' conftest.$ac_ext >&5
1720
1721         ac_retval=1
1722 fi
1723   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1724   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1725   # interfere with the next link command; also delete a directory that is
1726   # left behind by Apple's compiler.  We do this before executing the actions.
1727   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1728   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1729   as_fn_set_status $ac_retval
1730
1731 } # ac_fn_c_try_link
1732
1733 # ac_fn_c_try_cpp LINENO
1734 # ----------------------
1735 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1736 ac_fn_c_try_cpp ()
1737 {
1738   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739   if { { ac_try="$ac_cpp conftest.$ac_ext"
1740 case "(($ac_try" in
1741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1742   *) ac_try_echo=$ac_try;;
1743 esac
1744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745 $as_echo "$ac_try_echo"; } >&5
1746   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1747   ac_status=$?
1748   if test -s conftest.err; then
1749     grep -v '^ *+' conftest.err >conftest.er1
1750     cat conftest.er1 >&5
1751     mv -f conftest.er1 conftest.err
1752   fi
1753   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754   test $ac_status = 0; } > conftest.i && {
1755          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1756          test ! -s conftest.err
1757        }; then :
1758   ac_retval=0
1759 else
1760   $as_echo "$as_me: failed program was:" >&5
1761 sed 's/^/| /' conftest.$ac_ext >&5
1762
1763     ac_retval=1
1764 fi
1765   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1766   as_fn_set_status $ac_retval
1767
1768 } # ac_fn_c_try_cpp
1769
1770 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1771 # -------------------------------------------------------
1772 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1773 # the include files in INCLUDES and setting the cache variable VAR
1774 # accordingly.
1775 ac_fn_c_check_header_mongrel ()
1776 {
1777   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778   if eval \${$3+:} false; then :
1779   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1780 $as_echo_n "checking for $2... " >&6; }
1781 if eval \${$3+:} false; then :
1782   $as_echo_n "(cached) " >&6
1783 fi
1784 eval ac_res=\$$3
1785                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786 $as_echo "$ac_res" >&6; }
1787 else
1788   # Is the header compilable?
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1790 $as_echo_n "checking $2 usability... " >&6; }
1791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1792 /* end confdefs.h.  */
1793 $4
1794 #include <$2>
1795 _ACEOF
1796 if ac_fn_c_try_compile "$LINENO"; then :
1797   ac_header_compiler=yes
1798 else
1799   ac_header_compiler=no
1800 fi
1801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1803 $as_echo "$ac_header_compiler" >&6; }
1804
1805 # Is the header present?
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1807 $as_echo_n "checking $2 presence... " >&6; }
1808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809 /* end confdefs.h.  */
1810 #include <$2>
1811 _ACEOF
1812 if ac_fn_c_try_cpp "$LINENO"; then :
1813   ac_header_preproc=yes
1814 else
1815   ac_header_preproc=no
1816 fi
1817 rm -f conftest.err conftest.i conftest.$ac_ext
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1819 $as_echo "$ac_header_preproc" >&6; }
1820
1821 # So?  What about this header?
1822 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1823   yes:no: )
1824     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1825 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1826     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1827 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1828     ;;
1829   no:yes:* )
1830     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1831 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1832     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1833 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1834     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1835 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1836     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1837 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1838     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1839 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1840 ( $as_echo "## ---------------------------------------- ##
1841 ## Report this to konn@users.sourceforge.jp ##
1842 ## ---------------------------------------- ##"
1843      ) | sed "s/^/$as_me: WARNING:     /" >&2
1844     ;;
1845 esac
1846   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1847 $as_echo_n "checking for $2... " >&6; }
1848 if eval \${$3+:} false; then :
1849   $as_echo_n "(cached) " >&6
1850 else
1851   eval "$3=\$ac_header_compiler"
1852 fi
1853 eval ac_res=\$$3
1854                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1855 $as_echo "$ac_res" >&6; }
1856 fi
1857   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858
1859 } # ac_fn_c_check_header_mongrel
1860
1861 # ac_fn_c_try_run LINENO
1862 # ----------------------
1863 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1864 # that executables *can* be run.
1865 ac_fn_c_try_run ()
1866 {
1867   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868   if { { ac_try="$ac_link"
1869 case "(($ac_try" in
1870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1871   *) ac_try_echo=$ac_try;;
1872 esac
1873 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1874 $as_echo "$ac_try_echo"; } >&5
1875   (eval "$ac_link") 2>&5
1876   ac_status=$?
1877   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1878   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1879   { { case "(($ac_try" in
1880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1881   *) ac_try_echo=$ac_try;;
1882 esac
1883 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1884 $as_echo "$ac_try_echo"; } >&5
1885   (eval "$ac_try") 2>&5
1886   ac_status=$?
1887   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1888   test $ac_status = 0; }; }; then :
1889   ac_retval=0
1890 else
1891   $as_echo "$as_me: program exited with status $ac_status" >&5
1892        $as_echo "$as_me: failed program was:" >&5
1893 sed 's/^/| /' conftest.$ac_ext >&5
1894
1895        ac_retval=$ac_status
1896 fi
1897   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1898   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1899   as_fn_set_status $ac_retval
1900
1901 } # ac_fn_c_try_run
1902
1903 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1904 # -------------------------------------------------------
1905 # Tests whether HEADER exists and can be compiled using the include files in
1906 # INCLUDES, setting the cache variable VAR accordingly.
1907 ac_fn_c_check_header_compile ()
1908 {
1909   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1910   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1911 $as_echo_n "checking for $2... " >&6; }
1912 if eval \${$3+:} false; then :
1913   $as_echo_n "(cached) " >&6
1914 else
1915   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1916 /* end confdefs.h.  */
1917 $4
1918 #include <$2>
1919 _ACEOF
1920 if ac_fn_c_try_compile "$LINENO"; then :
1921   eval "$3=yes"
1922 else
1923   eval "$3=no"
1924 fi
1925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1926 fi
1927 eval ac_res=\$$3
1928                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1929 $as_echo "$ac_res" >&6; }
1930   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1931
1932 } # ac_fn_c_check_header_compile
1933
1934 # ac_fn_c_check_func LINENO FUNC VAR
1935 # ----------------------------------
1936 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1937 ac_fn_c_check_func ()
1938 {
1939   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1941 $as_echo_n "checking for $2... " >&6; }
1942 if eval \${$3+:} false; then :
1943   $as_echo_n "(cached) " >&6
1944 else
1945   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946 /* end confdefs.h.  */
1947 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1948    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1949 #define $2 innocuous_$2
1950
1951 /* System header to define __stub macros and hopefully few prototypes,
1952     which can conflict with char $2 (); below.
1953     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1954     <limits.h> exists even on freestanding compilers.  */
1955
1956 #ifdef __STDC__
1957 # include <limits.h>
1958 #else
1959 # include <assert.h>
1960 #endif
1961
1962 #undef $2
1963
1964 /* Override any GCC internal prototype to avoid an error.
1965    Use char because int might match the return type of a GCC
1966    builtin and then its argument prototype would still apply.  */
1967 #ifdef __cplusplus
1968 extern "C"
1969 #endif
1970 char $2 ();
1971 /* The GNU C library defines this for functions which it implements
1972     to always fail with ENOSYS.  Some functions are actually named
1973     something starting with __ and the normal name is an alias.  */
1974 #if defined __stub_$2 || defined __stub___$2
1975 choke me
1976 #endif
1977
1978 int
1979 main ()
1980 {
1981 return $2 ();
1982   ;
1983   return 0;
1984 }
1985 _ACEOF
1986 if ac_fn_c_try_link "$LINENO"; then :
1987   eval "$3=yes"
1988 else
1989   eval "$3=no"
1990 fi
1991 rm -f core conftest.err conftest.$ac_objext \
1992     conftest$ac_exeext conftest.$ac_ext
1993 fi
1994 eval ac_res=\$$3
1995                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1996 $as_echo "$ac_res" >&6; }
1997   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1998
1999 } # ac_fn_c_check_func
2000
2001 # ac_fn_cxx_try_compile LINENO
2002 # ----------------------------
2003 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2004 ac_fn_cxx_try_compile ()
2005 {
2006   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007   rm -f conftest.$ac_objext
2008   if { { ac_try="$ac_compile"
2009 case "(($ac_try" in
2010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2011   *) ac_try_echo=$ac_try;;
2012 esac
2013 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2014 $as_echo "$ac_try_echo"; } >&5
2015   (eval "$ac_compile") 2>conftest.err
2016   ac_status=$?
2017   if test -s conftest.err; then
2018     grep -v '^ *+' conftest.err >conftest.er1
2019     cat conftest.er1 >&5
2020     mv -f conftest.er1 conftest.err
2021   fi
2022   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2023   test $ac_status = 0; } && {
2024          test -z "$ac_cxx_werror_flag" ||
2025          test ! -s conftest.err
2026        } && test -s conftest.$ac_objext; then :
2027   ac_retval=0
2028 else
2029   $as_echo "$as_me: failed program was:" >&5
2030 sed 's/^/| /' conftest.$ac_ext >&5
2031
2032         ac_retval=1
2033 fi
2034   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2035   as_fn_set_status $ac_retval
2036
2037 } # ac_fn_cxx_try_compile
2038
2039 # ac_fn_cxx_try_cpp LINENO
2040 # ------------------------
2041 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2042 ac_fn_cxx_try_cpp ()
2043 {
2044   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2045   if { { ac_try="$ac_cpp conftest.$ac_ext"
2046 case "(($ac_try" in
2047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2048   *) ac_try_echo=$ac_try;;
2049 esac
2050 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2051 $as_echo "$ac_try_echo"; } >&5
2052   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2053   ac_status=$?
2054   if test -s conftest.err; then
2055     grep -v '^ *+' conftest.err >conftest.er1
2056     cat conftest.er1 >&5
2057     mv -f conftest.er1 conftest.err
2058   fi
2059   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2060   test $ac_status = 0; } > conftest.i && {
2061          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2062          test ! -s conftest.err
2063        }; then :
2064   ac_retval=0
2065 else
2066   $as_echo "$as_me: failed program was:" >&5
2067 sed 's/^/| /' conftest.$ac_ext >&5
2068
2069     ac_retval=1
2070 fi
2071   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2072   as_fn_set_status $ac_retval
2073
2074 } # ac_fn_cxx_try_cpp
2075
2076 # ac_fn_cxx_try_link LINENO
2077 # -------------------------
2078 # Try to link conftest.$ac_ext, and return whether this succeeded.
2079 ac_fn_cxx_try_link ()
2080 {
2081   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2082   rm -f conftest.$ac_objext conftest$ac_exeext
2083   if { { ac_try="$ac_link"
2084 case "(($ac_try" in
2085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2086   *) ac_try_echo=$ac_try;;
2087 esac
2088 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2089 $as_echo "$ac_try_echo"; } >&5
2090   (eval "$ac_link") 2>conftest.err
2091   ac_status=$?
2092   if test -s conftest.err; then
2093     grep -v '^ *+' conftest.err >conftest.er1
2094     cat conftest.er1 >&5
2095     mv -f conftest.er1 conftest.err
2096   fi
2097   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2098   test $ac_status = 0; } && {
2099          test -z "$ac_cxx_werror_flag" ||
2100          test ! -s conftest.err
2101        } && test -s conftest$ac_exeext && {
2102          test "$cross_compiling" = yes ||
2103          $as_test_x conftest$ac_exeext
2104        }; then :
2105   ac_retval=0
2106 else
2107   $as_echo "$as_me: failed program was:" >&5
2108 sed 's/^/| /' conftest.$ac_ext >&5
2109
2110         ac_retval=1
2111 fi
2112   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2113   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2114   # interfere with the next link command; also delete a directory that is
2115   # left behind by Apple's compiler.  We do this before executing the actions.
2116   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2117   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2118   as_fn_set_status $ac_retval
2119
2120 } # ac_fn_cxx_try_link
2121
2122 # ac_fn_f77_try_compile LINENO
2123 # ----------------------------
2124 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2125 ac_fn_f77_try_compile ()
2126 {
2127   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2128   rm -f conftest.$ac_objext
2129   if { { ac_try="$ac_compile"
2130 case "(($ac_try" in
2131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2132   *) ac_try_echo=$ac_try;;
2133 esac
2134 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2135 $as_echo "$ac_try_echo"; } >&5
2136   (eval "$ac_compile") 2>conftest.err
2137   ac_status=$?
2138   if test -s conftest.err; then
2139     grep -v '^ *+' conftest.err >conftest.er1
2140     cat conftest.er1 >&5
2141     mv -f conftest.er1 conftest.err
2142   fi
2143   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2144   test $ac_status = 0; } && {
2145          test -z "$ac_f77_werror_flag" ||
2146          test ! -s conftest.err
2147        } && test -s conftest.$ac_objext; then :
2148   ac_retval=0
2149 else
2150   $as_echo "$as_me: failed program was:" >&5
2151 sed 's/^/| /' conftest.$ac_ext >&5
2152
2153         ac_retval=1
2154 fi
2155   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2156   as_fn_set_status $ac_retval
2157
2158 } # ac_fn_f77_try_compile
2159
2160 # ac_fn_f77_try_link LINENO
2161 # -------------------------
2162 # Try to link conftest.$ac_ext, and return whether this succeeded.
2163 ac_fn_f77_try_link ()
2164 {
2165   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2166   rm -f conftest.$ac_objext conftest$ac_exeext
2167   if { { ac_try="$ac_link"
2168 case "(($ac_try" in
2169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2170   *) ac_try_echo=$ac_try;;
2171 esac
2172 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2173 $as_echo "$ac_try_echo"; } >&5
2174   (eval "$ac_link") 2>conftest.err
2175   ac_status=$?
2176   if test -s conftest.err; then
2177     grep -v '^ *+' conftest.err >conftest.er1
2178     cat conftest.er1 >&5
2179     mv -f conftest.er1 conftest.err
2180   fi
2181   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2182   test $ac_status = 0; } && {
2183          test -z "$ac_f77_werror_flag" ||
2184          test ! -s conftest.err
2185        } && test -s conftest$ac_exeext && {
2186          test "$cross_compiling" = yes ||
2187          $as_test_x conftest$ac_exeext
2188        }; then :
2189   ac_retval=0
2190 else
2191   $as_echo "$as_me: failed program was:" >&5
2192 sed 's/^/| /' conftest.$ac_ext >&5
2193
2194         ac_retval=1
2195 fi
2196   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2197   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2198   # interfere with the next link command; also delete a directory that is
2199   # left behind by Apple's compiler.  We do this before executing the actions.
2200   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2201   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2202   as_fn_set_status $ac_retval
2203
2204 } # ac_fn_f77_try_link
2205 cat >config.log <<_ACEOF
2206 This file contains any messages produced by compilers while
2207 running configure, to aid debugging if configure makes a mistake.
2208
2209 It was created by scss $as_me 1.0.0, which was
2210 generated by GNU Autoconf 2.68.  Invocation command line was
2211
2212   $ $0 $@
2213
2214 _ACEOF
2215 exec 5>>config.log
2216 {
2217 cat <<_ASUNAME
2218 ## --------- ##
2219 ## Platform. ##
2220 ## --------- ##
2221
2222 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2223 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2224 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2225 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2226 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2227
2228 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2229 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2230
2231 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2232 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2233 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2234 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2235 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2236 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2237 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2238
2239 _ASUNAME
2240
2241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2242 for as_dir in $PATH
2243 do
2244   IFS=$as_save_IFS
2245   test -z "$as_dir" && as_dir=.
2246     $as_echo "PATH: $as_dir"
2247   done
2248 IFS=$as_save_IFS
2249
2250 } >&5
2251
2252 cat >&5 <<_ACEOF
2253
2254
2255 ## ----------- ##
2256 ## Core tests. ##
2257 ## ----------- ##
2258
2259 _ACEOF
2260
2261
2262 # Keep a trace of the command line.
2263 # Strip out --no-create and --no-recursion so they do not pile up.
2264 # Strip out --silent because we don't want to record it for future runs.
2265 # Also quote any args containing shell meta-characters.
2266 # Make two passes to allow for proper duplicate-argument suppression.
2267 ac_configure_args=
2268 ac_configure_args0=
2269 ac_configure_args1=
2270 ac_must_keep_next=false
2271 for ac_pass in 1 2
2272 do
2273   for ac_arg
2274   do
2275     case $ac_arg in
2276     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2277     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2278     | -silent | --silent | --silen | --sile | --sil)
2279       continue ;;
2280     *\'*)
2281       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2282     esac
2283     case $ac_pass in
2284     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2285     2)
2286       as_fn_append ac_configure_args1 " '$ac_arg'"
2287       if test $ac_must_keep_next = true; then
2288         ac_must_keep_next=false # Got value, back to normal.
2289       else
2290         case $ac_arg in
2291           *=* | --config-cache | -C | -disable-* | --disable-* \
2292           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2293           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2294           | -with-* | --with-* | -without-* | --without-* | --x)
2295             case "$ac_configure_args0 " in
2296               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2297             esac
2298             ;;
2299           -* ) ac_must_keep_next=true ;;
2300         esac
2301       fi
2302       as_fn_append ac_configure_args " '$ac_arg'"
2303       ;;
2304     esac
2305   done
2306 done
2307 { ac_configure_args0=; unset ac_configure_args0;}
2308 { ac_configure_args1=; unset ac_configure_args1;}
2309
2310 # When interrupted or exit'd, cleanup temporary files, and complete
2311 # config.log.  We remove comments because anyway the quotes in there
2312 # would cause problems or look ugly.
2313 # WARNING: Use '\'' to represent an apostrophe within the trap.
2314 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2315 trap 'exit_status=$?
2316   # Save into config.log some information that might help in debugging.
2317   {
2318     echo
2319
2320     $as_echo "## ---------------- ##
2321 ## Cache variables. ##
2322 ## ---------------- ##"
2323     echo
2324     # The following way of writing the cache mishandles newlines in values,
2325 (
2326   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2327     eval ac_val=\$$ac_var
2328     case $ac_val in #(
2329     *${as_nl}*)
2330       case $ac_var in #(
2331       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2332 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2333       esac
2334       case $ac_var in #(
2335       _ | IFS | as_nl) ;; #(
2336       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2337       *) { eval $ac_var=; unset $ac_var;} ;;
2338       esac ;;
2339     esac
2340   done
2341   (set) 2>&1 |
2342     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2343     *${as_nl}ac_space=\ *)
2344       sed -n \
2345         "s/'\''/'\''\\\\'\'''\''/g;
2346           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2347       ;; #(
2348     *)
2349       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2350       ;;
2351     esac |
2352     sort
2353 )
2354     echo
2355
2356     $as_echo "## ----------------- ##
2357 ## Output variables. ##
2358 ## ----------------- ##"
2359     echo
2360     for ac_var in $ac_subst_vars
2361     do
2362       eval ac_val=\$$ac_var
2363       case $ac_val in
2364       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2365       esac
2366       $as_echo "$ac_var='\''$ac_val'\''"
2367     done | sort
2368     echo
2369
2370     if test -n "$ac_subst_files"; then
2371       $as_echo "## ------------------- ##
2372 ## File substitutions. ##
2373 ## ------------------- ##"
2374       echo
2375       for ac_var in $ac_subst_files
2376       do
2377         eval ac_val=\$$ac_var
2378         case $ac_val in
2379         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2380         esac
2381         $as_echo "$ac_var='\''$ac_val'\''"
2382       done | sort
2383       echo
2384     fi
2385
2386     if test -s confdefs.h; then
2387       $as_echo "## ----------- ##
2388 ## confdefs.h. ##
2389 ## ----------- ##"
2390       echo
2391       cat confdefs.h
2392       echo
2393     fi
2394     test "$ac_signal" != 0 &&
2395       $as_echo "$as_me: caught signal $ac_signal"
2396     $as_echo "$as_me: exit $exit_status"
2397   } >&5
2398   rm -f core *.core core.conftest.* &&
2399     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2400     exit $exit_status
2401 ' 0
2402 for ac_signal in 1 2 13 15; do
2403   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2404 done
2405 ac_signal=0
2406
2407 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2408 rm -f -r conftest* confdefs.h
2409
2410 $as_echo "/* confdefs.h */" > confdefs.h
2411
2412 # Predefined preprocessor variables.
2413
2414 cat >>confdefs.h <<_ACEOF
2415 #define PACKAGE_NAME "$PACKAGE_NAME"
2416 _ACEOF
2417
2418 cat >>confdefs.h <<_ACEOF
2419 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2420 _ACEOF
2421
2422 cat >>confdefs.h <<_ACEOF
2423 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2424 _ACEOF
2425
2426 cat >>confdefs.h <<_ACEOF
2427 #define PACKAGE_STRING "$PACKAGE_STRING"
2428 _ACEOF
2429
2430 cat >>confdefs.h <<_ACEOF
2431 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2432 _ACEOF
2433
2434 cat >>confdefs.h <<_ACEOF
2435 #define PACKAGE_URL "$PACKAGE_URL"
2436 _ACEOF
2437
2438
2439 # Let the site file select an alternate cache file if it wants to.
2440 # Prefer an explicitly selected file to automatically selected ones.
2441 ac_site_file1=NONE
2442 ac_site_file2=NONE
2443 if test -n "$CONFIG_SITE"; then
2444   # We do not want a PATH search for config.site.
2445   case $CONFIG_SITE in #((
2446     -*)  ac_site_file1=./$CONFIG_SITE;;
2447     */*) ac_site_file1=$CONFIG_SITE;;
2448     *)   ac_site_file1=./$CONFIG_SITE;;
2449   esac
2450 elif test "x$prefix" != xNONE; then
2451   ac_site_file1=$prefix/share/config.site
2452   ac_site_file2=$prefix/etc/config.site
2453 else
2454   ac_site_file1=$ac_default_prefix/share/config.site
2455   ac_site_file2=$ac_default_prefix/etc/config.site
2456 fi
2457 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2458 do
2459   test "x$ac_site_file" = xNONE && continue
2460   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2461     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2462 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2463     sed 's/^/| /' "$ac_site_file" >&5
2464     . "$ac_site_file" \
2465       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2467 as_fn_error $? "failed to load site script $ac_site_file
2468 See \`config.log' for more details" "$LINENO" 5; }
2469   fi
2470 done
2471
2472 if test -r "$cache_file"; then
2473   # Some versions of bash will fail to source /dev/null (special files
2474   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2475   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2476     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2477 $as_echo "$as_me: loading cache $cache_file" >&6;}
2478     case $cache_file in
2479       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2480       *)                      . "./$cache_file";;
2481     esac
2482   fi
2483 else
2484   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2485 $as_echo "$as_me: creating cache $cache_file" >&6;}
2486   >$cache_file
2487 fi
2488
2489 # Check that the precious variables saved in the cache have kept the same
2490 # value.
2491 ac_cache_corrupted=false
2492 for ac_var in $ac_precious_vars; do
2493   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2494   eval ac_new_set=\$ac_env_${ac_var}_set
2495   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2496   eval ac_new_val=\$ac_env_${ac_var}_value
2497   case $ac_old_set,$ac_new_set in
2498     set,)
2499       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2500 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2501       ac_cache_corrupted=: ;;
2502     ,set)
2503       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2504 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2505       ac_cache_corrupted=: ;;
2506     ,);;
2507     *)
2508       if test "x$ac_old_val" != "x$ac_new_val"; then
2509         # differences in whitespace do not lead to failure.
2510         ac_old_val_w=`echo x $ac_old_val`
2511         ac_new_val_w=`echo x $ac_new_val`
2512         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2513           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2514 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2515           ac_cache_corrupted=:
2516         else
2517           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2518 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2519           eval $ac_var=\$ac_old_val
2520         fi
2521         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2522 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2523         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2524 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2525       fi;;
2526   esac
2527   # Pass precious variables to config.status.
2528   if test "$ac_new_set" = set; then
2529     case $ac_new_val in
2530     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2531     *) ac_arg=$ac_var=$ac_new_val ;;
2532     esac
2533     case " $ac_configure_args " in
2534       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2535       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2536     esac
2537   fi
2538 done
2539 if $ac_cache_corrupted; then
2540   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2541 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2542   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2543 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2544   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2545 fi
2546 ## -------------------- ##
2547 ## Main body of script. ##
2548 ## -------------------- ##
2549
2550 ac_ext=c
2551 ac_cpp='$CPP $CPPFLAGS'
2552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2555
2556
2557 ac_aux_dir=
2558 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2559   if test -f "$ac_dir/install-sh"; then
2560     ac_aux_dir=$ac_dir
2561     ac_install_sh="$ac_aux_dir/install-sh -c"
2562     break
2563   elif test -f "$ac_dir/install.sh"; then
2564     ac_aux_dir=$ac_dir
2565     ac_install_sh="$ac_aux_dir/install.sh -c"
2566     break
2567   elif test -f "$ac_dir/shtool"; then
2568     ac_aux_dir=$ac_dir
2569     ac_install_sh="$ac_aux_dir/shtool install -c"
2570     break
2571   fi
2572 done
2573 if test -z "$ac_aux_dir"; then
2574   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2575 fi
2576
2577 # These three variables are undocumented and unsupported,
2578 # and are intended to be withdrawn in a future Autoconf release.
2579 # They can cause serious problems if a builder's source tree is in a directory
2580 # whose full name contains unusual characters.
2581 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2582 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2583 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2584
2585
2586 # Make sure we can run config.sub.
2587 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2588   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2589
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2591 $as_echo_n "checking build system type... " >&6; }
2592 if ${ac_cv_build+:} false; then :
2593   $as_echo_n "(cached) " >&6
2594 else
2595   ac_build_alias=$build_alias
2596 test "x$ac_build_alias" = x &&
2597   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2598 test "x$ac_build_alias" = x &&
2599   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2600 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2601   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2602
2603 fi
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2605 $as_echo "$ac_cv_build" >&6; }
2606 case $ac_cv_build in
2607 *-*-*) ;;
2608 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2609 esac
2610 build=$ac_cv_build
2611 ac_save_IFS=$IFS; IFS='-'
2612 set x $ac_cv_build
2613 shift
2614 build_cpu=$1
2615 build_vendor=$2
2616 shift; shift
2617 # Remember, the first character of IFS is used to create $*,
2618 # except with old shells:
2619 build_os=$*
2620 IFS=$ac_save_IFS
2621 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2622
2623
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2625 $as_echo_n "checking host system type... " >&6; }
2626 if ${ac_cv_host+:} false; then :
2627   $as_echo_n "(cached) " >&6
2628 else
2629   if test "x$host_alias" = x; then
2630   ac_cv_host=$ac_cv_build
2631 else
2632   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2633     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2634 fi
2635
2636 fi
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2638 $as_echo "$ac_cv_host" >&6; }
2639 case $ac_cv_host in
2640 *-*-*) ;;
2641 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2642 esac
2643 host=$ac_cv_host
2644 ac_save_IFS=$IFS; IFS='-'
2645 set x $ac_cv_host
2646 shift
2647 host_cpu=$1
2648 host_vendor=$2
2649 shift; shift
2650 # Remember, the first character of IFS is used to create $*,
2651 # except with old shells:
2652 host_os=$*
2653 IFS=$ac_save_IFS
2654 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2655
2656
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2658 $as_echo_n "checking target system type... " >&6; }
2659 if ${ac_cv_target+:} false; then :
2660   $as_echo_n "(cached) " >&6
2661 else
2662   if test "x$target_alias" = x; then
2663   ac_cv_target=$ac_cv_host
2664 else
2665   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2666     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2667 fi
2668
2669 fi
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2671 $as_echo "$ac_cv_target" >&6; }
2672 case $ac_cv_target in
2673 *-*-*) ;;
2674 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2675 esac
2676 target=$ac_cv_target
2677 ac_save_IFS=$IFS; IFS='-'
2678 set x $ac_cv_target
2679 shift
2680 target_cpu=$1
2681 target_vendor=$2
2682 shift; shift
2683 # Remember, the first character of IFS is used to create $*,
2684 # except with old shells:
2685 target_os=$*
2686 IFS=$ac_save_IFS
2687 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2688
2689
2690 # The aliases save the names the user supplied, while $host etc.
2691 # will get canonicalized.
2692 test -n "$target_alias" &&
2693   test "$program_prefix$program_suffix$program_transform_name" = \
2694     NONENONEs,x,x, &&
2695   program_prefix=${target_alias}-
2696 am__api_version='1.10'
2697
2698 # Find a good install program.  We prefer a C program (faster),
2699 # so one script is as good as another.  But avoid the broken or
2700 # incompatible versions:
2701 # SysV /etc/install, /usr/sbin/install
2702 # SunOS /usr/etc/install
2703 # IRIX /sbin/install
2704 # AIX /bin/install
2705 # AmigaOS /C/install, which installs bootblocks on floppy discs
2706 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2707 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2708 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2709 # OS/2's system install, which has a completely different semantic
2710 # ./install, which can be erroneously created by make from ./install.sh.
2711 # Reject install programs that cannot install multiple files.
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2713 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2714 if test -z "$INSTALL"; then
2715 if ${ac_cv_path_install+:} false; then :
2716   $as_echo_n "(cached) " >&6
2717 else
2718   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2719 for as_dir in $PATH
2720 do
2721   IFS=$as_save_IFS
2722   test -z "$as_dir" && as_dir=.
2723     # Account for people who put trailing slashes in PATH elements.
2724 case $as_dir/ in #((
2725   ./ | .// | /[cC]/* | \
2726   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2727   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2728   /usr/ucb/* ) ;;
2729   *)
2730     # OSF1 and SCO ODT 3.0 have their own names for install.
2731     # Don't use installbsd from OSF since it installs stuff as root
2732     # by default.
2733     for ac_prog in ginstall scoinst install; do
2734       for ac_exec_ext in '' $ac_executable_extensions; do
2735         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2736           if test $ac_prog = install &&
2737             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2738             # AIX install.  It has an incompatible calling convention.
2739             :
2740           elif test $ac_prog = install &&
2741             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2742             # program-specific install script used by HP pwplus--don't use.
2743             :
2744           else
2745             rm -rf conftest.one conftest.two conftest.dir
2746             echo one > conftest.one
2747             echo two > conftest.two
2748             mkdir conftest.dir
2749             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2750               test -s conftest.one && test -s conftest.two &&
2751               test -s conftest.dir/conftest.one &&
2752               test -s conftest.dir/conftest.two
2753             then
2754               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2755               break 3
2756             fi
2757           fi
2758         fi
2759       done
2760     done
2761     ;;
2762 esac
2763
2764   done
2765 IFS=$as_save_IFS
2766
2767 rm -rf conftest.one conftest.two conftest.dir
2768
2769 fi
2770   if test "${ac_cv_path_install+set}" = set; then
2771     INSTALL=$ac_cv_path_install
2772   else
2773     # As a last resort, use the slow shell script.  Don't cache a
2774     # value for INSTALL within a source directory, because that will
2775     # break other packages using the cache if that directory is
2776     # removed, or if the value is a relative name.
2777     INSTALL=$ac_install_sh
2778   fi
2779 fi
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2781 $as_echo "$INSTALL" >&6; }
2782
2783 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2784 # It thinks the first close brace ends the variable substitution.
2785 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2786
2787 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2788
2789 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2790
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2792 $as_echo_n "checking whether build environment is sane... " >&6; }
2793 # Just in case
2794 sleep 1
2795 echo timestamp > conftest.file
2796 # Do `set' in a subshell so we don't clobber the current shell's
2797 # arguments.  Must try -L first in case configure is actually a
2798 # symlink; some systems play weird games with the mod time of symlinks
2799 # (eg FreeBSD returns the mod time of the symlink's containing
2800 # directory).
2801 if (
2802    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2803    if test "$*" = "X"; then
2804       # -L didn't work.
2805       set X `ls -t $srcdir/configure conftest.file`
2806    fi
2807    rm -f conftest.file
2808    if test "$*" != "X $srcdir/configure conftest.file" \
2809       && test "$*" != "X conftest.file $srcdir/configure"; then
2810
2811       # If neither matched, then we have a broken ls.  This can happen
2812       # if, for instance, CONFIG_SHELL is bash and it inherits a
2813       # broken ls alias from the environment.  This has actually
2814       # happened.  Such a system could not be considered "sane".
2815       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2816 alias in your environment" "$LINENO" 5
2817    fi
2818
2819    test "$2" = conftest.file
2820    )
2821 then
2822    # Ok.
2823    :
2824 else
2825    as_fn_error $? "newly created file is older than distributed files!
2826 Check your system clock" "$LINENO" 5
2827 fi
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2829 $as_echo "yes" >&6; }
2830 test "$program_prefix" != NONE &&
2831   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2832 # Use a double $ so make ignores it.
2833 test "$program_suffix" != NONE &&
2834   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2835 # Double any \ or $.
2836 # By default was `s,x,x', remove it if useless.
2837 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2838 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2839
2840 # expand $ac_aux_dir to an absolute path
2841 am_aux_dir=`cd $ac_aux_dir && pwd`
2842
2843 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2844 # Use eval to expand $SHELL
2845 if eval "$MISSING --run true"; then
2846   am_missing_run="$MISSING --run "
2847 else
2848   am_missing_run=
2849   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2850 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2851 fi
2852
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2854 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2855 if test -z "$MKDIR_P"; then
2856   if ${ac_cv_path_mkdir+:} false; then :
2857   $as_echo_n "(cached) " >&6
2858 else
2859   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2861 do
2862   IFS=$as_save_IFS
2863   test -z "$as_dir" && as_dir=.
2864     for ac_prog in mkdir gmkdir; do
2865          for ac_exec_ext in '' $ac_executable_extensions; do
2866            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2867            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2868              'mkdir (GNU coreutils) '* | \
2869              'mkdir (coreutils) '* | \
2870              'mkdir (fileutils) '4.1*)
2871                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2872                break 3;;
2873            esac
2874          done
2875        done
2876   done
2877 IFS=$as_save_IFS
2878
2879 fi
2880
2881   test -d ./--version && rmdir ./--version
2882   if test "${ac_cv_path_mkdir+set}" = set; then
2883     MKDIR_P="$ac_cv_path_mkdir -p"
2884   else
2885     # As a last resort, use the slow shell script.  Don't cache a
2886     # value for MKDIR_P within a source directory, because that will
2887     # break other packages using the cache if that directory is
2888     # removed, or if the value is a relative name.
2889     MKDIR_P="$ac_install_sh -d"
2890   fi
2891 fi
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2893 $as_echo "$MKDIR_P" >&6; }
2894
2895 mkdir_p="$MKDIR_P"
2896 case $mkdir_p in
2897   [\\/$]* | ?:[\\/]*) ;;
2898   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2899 esac
2900
2901 for ac_prog in gawk mawk nawk awk
2902 do
2903   # Extract the first word of "$ac_prog", so it can be a program name with args.
2904 set dummy $ac_prog; ac_word=$2
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2906 $as_echo_n "checking for $ac_word... " >&6; }
2907 if ${ac_cv_prog_AWK+:} false; then :
2908   $as_echo_n "(cached) " >&6
2909 else
2910   if test -n "$AWK"; then
2911   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2912 else
2913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914 for as_dir in $PATH
2915 do
2916   IFS=$as_save_IFS
2917   test -z "$as_dir" && as_dir=.
2918     for ac_exec_ext in '' $ac_executable_extensions; do
2919   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2920     ac_cv_prog_AWK="$ac_prog"
2921     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2922     break 2
2923   fi
2924 done
2925   done
2926 IFS=$as_save_IFS
2927
2928 fi
2929 fi
2930 AWK=$ac_cv_prog_AWK
2931 if test -n "$AWK"; then
2932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2933 $as_echo "$AWK" >&6; }
2934 else
2935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2936 $as_echo "no" >&6; }
2937 fi
2938
2939
2940   test -n "$AWK" && break
2941 done
2942
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2944 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2945 set x ${MAKE-make}
2946 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2947 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2948   $as_echo_n "(cached) " >&6
2949 else
2950   cat >conftest.make <<\_ACEOF
2951 SHELL = /bin/sh
2952 all:
2953         @echo '@@@%%%=$(MAKE)=@@@%%%'
2954 _ACEOF
2955 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2956 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2957   *@@@%%%=?*=@@@%%%*)
2958     eval ac_cv_prog_make_${ac_make}_set=yes;;
2959   *)
2960     eval ac_cv_prog_make_${ac_make}_set=no;;
2961 esac
2962 rm -f conftest.make
2963 fi
2964 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2966 $as_echo "yes" >&6; }
2967   SET_MAKE=
2968 else
2969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2970 $as_echo "no" >&6; }
2971   SET_MAKE="MAKE=${MAKE-make}"
2972 fi
2973
2974 rm -rf .tst 2>/dev/null
2975 mkdir .tst 2>/dev/null
2976 if test -d .tst; then
2977   am__leading_dot=.
2978 else
2979   am__leading_dot=_
2980 fi
2981 rmdir .tst 2>/dev/null
2982
2983 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2984   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2985   # is not polluted with repeated "-I."
2986   am__isrc=' -I$(srcdir)'
2987   # test to see if srcdir already configured
2988   if test -f $srcdir/config.status; then
2989     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2990   fi
2991 fi
2992
2993 # test whether we have cygpath
2994 if test -z "$CYGPATH_W"; then
2995   if (cygpath --version) >/dev/null 2>/dev/null; then
2996     CYGPATH_W='cygpath -w'
2997   else
2998     CYGPATH_W=echo
2999   fi
3000 fi
3001
3002
3003 # Define the identity of the package.
3004  PACKAGE=scss
3005  VERSION=1.0.0
3006
3007
3008 cat >>confdefs.h <<_ACEOF
3009 #define PACKAGE "$PACKAGE"
3010 _ACEOF
3011
3012
3013 cat >>confdefs.h <<_ACEOF
3014 #define VERSION "$VERSION"
3015 _ACEOF
3016
3017 # Some tools Automake needs.
3018
3019 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3020
3021
3022 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3023
3024
3025 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3026
3027
3028 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3029
3030
3031 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3032
3033 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
3034
3035 # Installed binaries are usually stripped using `strip' when the user
3036 # run `make install-strip'.  However `strip' might not be the right
3037 # tool to use in cross-compilation environments, therefore Automake
3038 # will honor the `STRIP' environment variable to overrule this program.
3039 if test "$cross_compiling" != no; then
3040   if test -n "$ac_tool_prefix"; then
3041   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3042 set dummy ${ac_tool_prefix}strip; ac_word=$2
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3044 $as_echo_n "checking for $ac_word... " >&6; }
3045 if ${ac_cv_prog_STRIP+:} false; then :
3046   $as_echo_n "(cached) " >&6
3047 else
3048   if test -n "$STRIP"; then
3049   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3050 else
3051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3052 for as_dir in $PATH
3053 do
3054   IFS=$as_save_IFS
3055   test -z "$as_dir" && as_dir=.
3056     for ac_exec_ext in '' $ac_executable_extensions; do
3057   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3058     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3059     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3060     break 2
3061   fi
3062 done
3063   done
3064 IFS=$as_save_IFS
3065
3066 fi
3067 fi
3068 STRIP=$ac_cv_prog_STRIP
3069 if test -n "$STRIP"; then
3070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3071 $as_echo "$STRIP" >&6; }
3072 else
3073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3074 $as_echo "no" >&6; }
3075 fi
3076
3077
3078 fi
3079 if test -z "$ac_cv_prog_STRIP"; then
3080   ac_ct_STRIP=$STRIP
3081   # Extract the first word of "strip", so it can be a program name with args.
3082 set dummy strip; ac_word=$2
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3084 $as_echo_n "checking for $ac_word... " >&6; }
3085 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3086   $as_echo_n "(cached) " >&6
3087 else
3088   if test -n "$ac_ct_STRIP"; then
3089   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3090 else
3091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092 for as_dir in $PATH
3093 do
3094   IFS=$as_save_IFS
3095   test -z "$as_dir" && as_dir=.
3096     for ac_exec_ext in '' $ac_executable_extensions; do
3097   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3098     ac_cv_prog_ac_ct_STRIP="strip"
3099     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3100     break 2
3101   fi
3102 done
3103   done
3104 IFS=$as_save_IFS
3105
3106 fi
3107 fi
3108 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3109 if test -n "$ac_ct_STRIP"; then
3110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3111 $as_echo "$ac_ct_STRIP" >&6; }
3112 else
3113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114 $as_echo "no" >&6; }
3115 fi
3116
3117   if test "x$ac_ct_STRIP" = x; then
3118     STRIP=":"
3119   else
3120     case $cross_compiling:$ac_tool_warned in
3121 yes:)
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3123 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3124 ac_tool_warned=yes ;;
3125 esac
3126     STRIP=$ac_ct_STRIP
3127   fi
3128 else
3129   STRIP="$ac_cv_prog_STRIP"
3130 fi
3131
3132 fi
3133 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3134
3135 # We need awk for the "check" target.  The system "awk" is bad on
3136 # some platforms.
3137 # Always define AMTAR for backward compatibility.
3138
3139 AMTAR=${AMTAR-"${am_missing_run}tar"}
3140
3141 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3142
3143
3144
3145
3146
3147
3148 ac_config_headers="$ac_config_headers include/config.h"
3149
3150
3151 # Checks for programs.
3152 # Check whether --enable-shared was given.
3153 if test "${enable_shared+set}" = set; then :
3154   enableval=$enable_shared; p=${PACKAGE-default}
3155     case $enableval in
3156     yes) enable_shared=yes ;;
3157     no) enable_shared=no ;;
3158     *)
3159       enable_shared=no
3160       # Look at the argument we got.  We use all the common list separators.
3161       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3162       for pkg in $enableval; do
3163         IFS="$lt_save_ifs"
3164         if test "X$pkg" = "X$p"; then
3165           enable_shared=yes
3166         fi
3167       done
3168       IFS="$lt_save_ifs"
3169       ;;
3170     esac
3171 else
3172   enable_shared=yes
3173 fi
3174
3175
3176 # Check whether --enable-static was given.
3177 if test "${enable_static+set}" = set; then :
3178   enableval=$enable_static; p=${PACKAGE-default}
3179     case $enableval in
3180     yes) enable_static=yes ;;
3181     no) enable_static=no ;;
3182     *)
3183      enable_static=no
3184       # Look at the argument we got.  We use all the common list separators.
3185       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3186       for pkg in $enableval; do
3187         IFS="$lt_save_ifs"
3188         if test "X$pkg" = "X$p"; then
3189           enable_static=yes
3190         fi
3191       done
3192       IFS="$lt_save_ifs"
3193       ;;
3194     esac
3195 else
3196   enable_static=yes
3197 fi
3198
3199
3200 # Check whether --enable-fast-install was given.
3201 if test "${enable_fast_install+set}" = set; then :
3202   enableval=$enable_fast_install; p=${PACKAGE-default}
3203     case $enableval in
3204     yes) enable_fast_install=yes ;;
3205     no) enable_fast_install=no ;;
3206     *)
3207       enable_fast_install=no
3208       # Look at the argument we got.  We use all the common list separators.
3209       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3210       for pkg in $enableval; do
3211         IFS="$lt_save_ifs"
3212         if test "X$pkg" = "X$p"; then
3213           enable_fast_install=yes
3214         fi
3215       done
3216       IFS="$lt_save_ifs"
3217       ;;
3218     esac
3219 else
3220   enable_fast_install=yes
3221 fi
3222
3223
3224 DEPDIR="${am__leading_dot}deps"
3225
3226 ac_config_commands="$ac_config_commands depfiles"
3227
3228
3229 am_make=${MAKE-make}
3230 cat > confinc << 'END'
3231 am__doit:
3232         @echo done
3233 .PHONY: am__doit
3234 END
3235 # If we don't find an include directive, just comment out the code.
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3237 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3238 am__include="#"
3239 am__quote=
3240 _am_result=none
3241 # First try GNU make style include.
3242 echo "include confinc" > confmf
3243 # We grep out `Entering directory' and `Leaving directory'
3244 # messages which can occur if `w' ends up in MAKEFLAGS.
3245 # In particular we don't look at `^make:' because GNU make might
3246 # be invoked under some other name (usually "gmake"), in which
3247 # case it prints its new name instead of `make'.
3248 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3249    am__include=include
3250    am__quote=
3251    _am_result=GNU
3252 fi
3253 # Now try BSD make style include.
3254 if test "$am__include" = "#"; then
3255    echo '.include "confinc"' > confmf
3256    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3257       am__include=.include
3258       am__quote="\""
3259       _am_result=BSD
3260    fi
3261 fi
3262
3263
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3265 $as_echo "$_am_result" >&6; }
3266 rm -f confinc confmf
3267
3268 # Check whether --enable-dependency-tracking was given.
3269 if test "${enable_dependency_tracking+set}" = set; then :
3270   enableval=$enable_dependency_tracking;
3271 fi
3272
3273 if test "x$enable_dependency_tracking" != xno; then
3274   am_depcomp="$ac_aux_dir/depcomp"
3275   AMDEPBACKSLASH='\'
3276 fi
3277  if test "x$enable_dependency_tracking" != xno; then
3278   AMDEP_TRUE=
3279   AMDEP_FALSE='#'
3280 else
3281   AMDEP_TRUE='#'
3282   AMDEP_FALSE=
3283 fi
3284
3285
3286 ac_ext=c
3287 ac_cpp='$CPP $CPPFLAGS'
3288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3291 if test -n "$ac_tool_prefix"; then
3292   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3293 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3295 $as_echo_n "checking for $ac_word... " >&6; }
3296 if ${ac_cv_prog_CC+:} false; then :
3297   $as_echo_n "(cached) " >&6
3298 else
3299   if test -n "$CC"; then
3300   ac_cv_prog_CC="$CC" # Let the user override the test.
3301 else
3302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3303 for as_dir in $PATH
3304 do
3305   IFS=$as_save_IFS
3306   test -z "$as_dir" && as_dir=.
3307     for ac_exec_ext in '' $ac_executable_extensions; do
3308   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3309     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3310     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3311     break 2
3312   fi
3313 done
3314   done
3315 IFS=$as_save_IFS
3316
3317 fi
3318 fi
3319 CC=$ac_cv_prog_CC
3320 if test -n "$CC"; then
3321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3322 $as_echo "$CC" >&6; }
3323 else
3324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3325 $as_echo "no" >&6; }
3326 fi
3327
3328
3329 fi
3330 if test -z "$ac_cv_prog_CC"; then
3331   ac_ct_CC=$CC
3332   # Extract the first word of "gcc", so it can be a program name with args.
3333 set dummy gcc; ac_word=$2
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3335 $as_echo_n "checking for $ac_word... " >&6; }
3336 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3337   $as_echo_n "(cached) " >&6
3338 else
3339   if test -n "$ac_ct_CC"; then
3340   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3341 else
3342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3343 for as_dir in $PATH
3344 do
3345   IFS=$as_save_IFS
3346   test -z "$as_dir" && as_dir=.
3347     for ac_exec_ext in '' $ac_executable_extensions; do
3348   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3349     ac_cv_prog_ac_ct_CC="gcc"
3350     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3351     break 2
3352   fi
3353 done
3354   done
3355 IFS=$as_save_IFS
3356
3357 fi
3358 fi
3359 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3360 if test -n "$ac_ct_CC"; then
3361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3362 $as_echo "$ac_ct_CC" >&6; }
3363 else
3364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3365 $as_echo "no" >&6; }
3366 fi
3367
3368   if test "x$ac_ct_CC" = x; then
3369     CC=""
3370   else
3371     case $cross_compiling:$ac_tool_warned in
3372 yes:)
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3374 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3375 ac_tool_warned=yes ;;
3376 esac
3377     CC=$ac_ct_CC
3378   fi
3379 else
3380   CC="$ac_cv_prog_CC"
3381 fi
3382
3383 if test -z "$CC"; then
3384           if test -n "$ac_tool_prefix"; then
3385     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3386 set dummy ${ac_tool_prefix}cc; ac_word=$2
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3388 $as_echo_n "checking for $ac_word... " >&6; }
3389 if ${ac_cv_prog_CC+:} false; then :
3390   $as_echo_n "(cached) " >&6
3391 else
3392   if test -n "$CC"; then
3393   ac_cv_prog_CC="$CC" # Let the user override the test.
3394 else
3395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3396 for as_dir in $PATH
3397 do
3398   IFS=$as_save_IFS
3399   test -z "$as_dir" && as_dir=.
3400     for ac_exec_ext in '' $ac_executable_extensions; do
3401   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3402     ac_cv_prog_CC="${ac_tool_prefix}cc"
3403     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3404     break 2
3405   fi
3406 done
3407   done
3408 IFS=$as_save_IFS
3409
3410 fi
3411 fi
3412 CC=$ac_cv_prog_CC
3413 if test -n "$CC"; then
3414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3415 $as_echo "$CC" >&6; }
3416 else
3417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3418 $as_echo "no" >&6; }
3419 fi
3420
3421
3422   fi
3423 fi
3424 if test -z "$CC"; then
3425   # Extract the first word of "cc", so it can be a program name with args.
3426 set dummy cc; ac_word=$2
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3428 $as_echo_n "checking for $ac_word... " >&6; }
3429 if ${ac_cv_prog_CC+:} false; then :
3430   $as_echo_n "(cached) " >&6
3431 else
3432   if test -n "$CC"; then
3433   ac_cv_prog_CC="$CC" # Let the user override the test.
3434 else
3435   ac_prog_rejected=no
3436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3437 for as_dir in $PATH
3438 do
3439   IFS=$as_save_IFS
3440   test -z "$as_dir" && as_dir=.
3441     for ac_exec_ext in '' $ac_executable_extensions; do
3442   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3443     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3444        ac_prog_rejected=yes
3445        continue
3446      fi
3447     ac_cv_prog_CC="cc"
3448     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3449     break 2
3450   fi
3451 done
3452   done
3453 IFS=$as_save_IFS
3454
3455 if test $ac_prog_rejected = yes; then
3456   # We found a bogon in the path, so make sure we never use it.
3457   set dummy $ac_cv_prog_CC
3458   shift
3459   if test $# != 0; then
3460     # We chose a different compiler from the bogus one.
3461     # However, it has the same basename, so the bogon will be chosen
3462     # first if we set CC to just the basename; use the full file name.
3463     shift
3464     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3465   fi
3466 fi
3467 fi
3468 fi
3469 CC=$ac_cv_prog_CC
3470 if test -n "$CC"; then
3471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3472 $as_echo "$CC" >&6; }
3473 else
3474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3475 $as_echo "no" >&6; }
3476 fi
3477
3478
3479 fi
3480 if test -z "$CC"; then
3481   if test -n "$ac_tool_prefix"; then
3482   for ac_prog in cl.exe
3483   do
3484     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3485 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3487 $as_echo_n "checking for $ac_word... " >&6; }
3488 if ${ac_cv_prog_CC+:} false; then :
3489   $as_echo_n "(cached) " >&6
3490 else
3491   if test -n "$CC"; then
3492   ac_cv_prog_CC="$CC" # Let the user override the test.
3493 else
3494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3495 for as_dir in $PATH
3496 do
3497   IFS=$as_save_IFS
3498   test -z "$as_dir" && as_dir=.
3499     for ac_exec_ext in '' $ac_executable_extensions; do
3500   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3501     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3502     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3503     break 2
3504   fi
3505 done
3506   done
3507 IFS=$as_save_IFS
3508
3509 fi
3510 fi
3511 CC=$ac_cv_prog_CC
3512 if test -n "$CC"; then
3513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3514 $as_echo "$CC" >&6; }
3515 else
3516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3517 $as_echo "no" >&6; }
3518 fi
3519
3520
3521     test -n "$CC" && break
3522   done
3523 fi
3524 if test -z "$CC"; then
3525   ac_ct_CC=$CC
3526   for ac_prog in cl.exe
3527 do
3528   # Extract the first word of "$ac_prog", so it can be a program name with args.
3529 set dummy $ac_prog; ac_word=$2
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3531 $as_echo_n "checking for $ac_word... " >&6; }
3532 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3533   $as_echo_n "(cached) " >&6
3534 else
3535   if test -n "$ac_ct_CC"; then
3536   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3537 else
3538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3539 for as_dir in $PATH
3540 do
3541   IFS=$as_save_IFS
3542   test -z "$as_dir" && as_dir=.
3543     for ac_exec_ext in '' $ac_executable_extensions; do
3544   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3545     ac_cv_prog_ac_ct_CC="$ac_prog"
3546     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3547     break 2
3548   fi
3549 done
3550   done
3551 IFS=$as_save_IFS
3552
3553 fi
3554 fi
3555 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3556 if test -n "$ac_ct_CC"; then
3557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3558 $as_echo "$ac_ct_CC" >&6; }
3559 else
3560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3561 $as_echo "no" >&6; }
3562 fi
3563
3564
3565   test -n "$ac_ct_CC" && break
3566 done
3567
3568   if test "x$ac_ct_CC" = x; then
3569     CC=""
3570   else
3571     case $cross_compiling:$ac_tool_warned in
3572 yes:)
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3574 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3575 ac_tool_warned=yes ;;
3576 esac
3577     CC=$ac_ct_CC
3578   fi
3579 fi
3580
3581 fi
3582
3583
3584 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3585 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3586 as_fn_error $? "no acceptable C compiler found in \$PATH
3587 See \`config.log' for more details" "$LINENO" 5; }
3588
3589 # Provide some information about the compiler.
3590 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3591 set X $ac_compile
3592 ac_compiler=$2
3593 for ac_option in --version -v -V -qversion; do
3594   { { ac_try="$ac_compiler $ac_option >&5"
3595 case "(($ac_try" in
3596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597   *) ac_try_echo=$ac_try;;
3598 esac
3599 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3600 $as_echo "$ac_try_echo"; } >&5
3601   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3602   ac_status=$?
3603   if test -s conftest.err; then
3604     sed '10a\
3605 ... rest of stderr output deleted ...
3606          10q' conftest.err >conftest.er1
3607     cat conftest.er1 >&5
3608   fi
3609   rm -f conftest.er1 conftest.err
3610   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3611   test $ac_status = 0; }
3612 done
3613
3614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3615 /* end confdefs.h.  */
3616
3617 int
3618 main ()
3619 {
3620
3621   ;
3622   return 0;
3623 }
3624 _ACEOF
3625 ac_clean_files_save=$ac_clean_files
3626 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3627 # Try to create an executable without -o first, disregard a.out.
3628 # It will help us diagnose broken compilers, and finding out an intuition
3629 # of exeext.
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3631 $as_echo_n "checking whether the C compiler works... " >&6; }
3632 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3633
3634 # The possible output files:
3635 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3636
3637 ac_rmfiles=
3638 for ac_file in $ac_files
3639 do
3640   case $ac_file in
3641     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3642     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3643   esac
3644 done
3645 rm -f $ac_rmfiles
3646
3647 if { { ac_try="$ac_link_default"
3648 case "(($ac_try" in
3649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3650   *) ac_try_echo=$ac_try;;
3651 esac
3652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3653 $as_echo "$ac_try_echo"; } >&5
3654   (eval "$ac_link_default") 2>&5
3655   ac_status=$?
3656   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3657   test $ac_status = 0; }; then :
3658   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3659 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3660 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3661 # so that the user can short-circuit this test for compilers unknown to
3662 # Autoconf.
3663 for ac_file in $ac_files ''
3664 do
3665   test -f "$ac_file" || continue
3666   case $ac_file in
3667     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3668         ;;
3669     [ab].out )
3670         # We found the default executable, but exeext='' is most
3671         # certainly right.
3672         break;;
3673     *.* )
3674         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3675         then :; else
3676            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3677         fi
3678         # We set ac_cv_exeext here because the later test for it is not
3679         # safe: cross compilers may not add the suffix if given an `-o'
3680         # argument, so we may need to know it at that point already.
3681         # Even if this section looks crufty: it has the advantage of
3682         # actually working.
3683         break;;
3684     * )
3685         break;;
3686   esac
3687 done
3688 test "$ac_cv_exeext" = no && ac_cv_exeext=
3689
3690 else
3691   ac_file=''
3692 fi
3693 if test -z "$ac_file"; then :
3694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3695 $as_echo "no" >&6; }
3696 $as_echo "$as_me: failed program was:" >&5
3697 sed 's/^/| /' conftest.$ac_ext >&5
3698
3699 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3701 as_fn_error 77 "C compiler cannot create executables
3702 See \`config.log' for more details" "$LINENO" 5; }
3703 else
3704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3705 $as_echo "yes" >&6; }
3706 fi
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3708 $as_echo_n "checking for C compiler default output file name... " >&6; }
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3710 $as_echo "$ac_file" >&6; }
3711 ac_exeext=$ac_cv_exeext
3712
3713 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3714 ac_clean_files=$ac_clean_files_save
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3716 $as_echo_n "checking for suffix of executables... " >&6; }
3717 if { { ac_try="$ac_link"
3718 case "(($ac_try" in
3719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3720   *) ac_try_echo=$ac_try;;
3721 esac
3722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3723 $as_echo "$ac_try_echo"; } >&5
3724   (eval "$ac_link") 2>&5
3725   ac_status=$?
3726   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3727   test $ac_status = 0; }; then :
3728   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3729 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3730 # work properly (i.e., refer to `conftest.exe'), while it won't with
3731 # `rm'.
3732 for ac_file in conftest.exe conftest conftest.*; do
3733   test -f "$ac_file" || continue
3734   case $ac_file in
3735     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3736     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3737           break;;
3738     * ) break;;
3739   esac
3740 done
3741 else
3742   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3743 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3744 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3745 See \`config.log' for more details" "$LINENO" 5; }
3746 fi
3747 rm -f conftest conftest$ac_cv_exeext
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3749 $as_echo "$ac_cv_exeext" >&6; }
3750
3751 rm -f conftest.$ac_ext
3752 EXEEXT=$ac_cv_exeext
3753 ac_exeext=$EXEEXT
3754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3755 /* end confdefs.h.  */
3756 #include <stdio.h>
3757 int
3758 main ()
3759 {
3760 FILE *f = fopen ("conftest.out", "w");
3761  return ferror (f) || fclose (f) != 0;
3762
3763   ;
3764   return 0;
3765 }
3766 _ACEOF
3767 ac_clean_files="$ac_clean_files conftest.out"
3768 # Check that the compiler produces executables we can run.  If not, either
3769 # the compiler is broken, or we cross compile.
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3771 $as_echo_n "checking whether we are cross compiling... " >&6; }
3772 if test "$cross_compiling" != yes; then
3773   { { ac_try="$ac_link"
3774 case "(($ac_try" in
3775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3776   *) ac_try_echo=$ac_try;;
3777 esac
3778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3779 $as_echo "$ac_try_echo"; } >&5
3780   (eval "$ac_link") 2>&5
3781   ac_status=$?
3782   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3783   test $ac_status = 0; }
3784   if { ac_try='./conftest$ac_cv_exeext'
3785   { { case "(($ac_try" in
3786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3787   *) ac_try_echo=$ac_try;;
3788 esac
3789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3790 $as_echo "$ac_try_echo"; } >&5
3791   (eval "$ac_try") 2>&5
3792   ac_status=$?
3793   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3794   test $ac_status = 0; }; }; then
3795     cross_compiling=no
3796   else
3797     if test "$cross_compiling" = maybe; then
3798         cross_compiling=yes
3799     else
3800         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3801 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3802 as_fn_error $? "cannot run C compiled programs.
3803 If you meant to cross compile, use \`--host'.
3804 See \`config.log' for more details" "$LINENO" 5; }
3805     fi
3806   fi
3807 fi
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3809 $as_echo "$cross_compiling" >&6; }
3810
3811 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3812 ac_clean_files=$ac_clean_files_save
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3814 $as_echo_n "checking for suffix of object files... " >&6; }
3815 if ${ac_cv_objext+:} false; then :
3816   $as_echo_n "(cached) " >&6
3817 else
3818   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3819 /* end confdefs.h.  */
3820
3821 int
3822 main ()
3823 {
3824
3825   ;
3826   return 0;
3827 }
3828 _ACEOF
3829 rm -f conftest.o conftest.obj
3830 if { { ac_try="$ac_compile"
3831 case "(($ac_try" in
3832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3833   *) ac_try_echo=$ac_try;;
3834 esac
3835 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3836 $as_echo "$ac_try_echo"; } >&5
3837   (eval "$ac_compile") 2>&5
3838   ac_status=$?
3839   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3840   test $ac_status = 0; }; then :
3841   for ac_file in conftest.o conftest.obj conftest.*; do
3842   test -f "$ac_file" || continue;
3843   case $ac_file in
3844     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3845     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3846        break;;
3847   esac
3848 done
3849 else
3850   $as_echo "$as_me: failed program was:" >&5
3851 sed 's/^/| /' conftest.$ac_ext >&5
3852
3853 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3854 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3855 as_fn_error $? "cannot compute suffix of object files: cannot compile
3856 See \`config.log' for more details" "$LINENO" 5; }
3857 fi
3858 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3859 fi
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3861 $as_echo "$ac_cv_objext" >&6; }
3862 OBJEXT=$ac_cv_objext
3863 ac_objext=$OBJEXT
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3865 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3866 if ${ac_cv_c_compiler_gnu+:} false; then :
3867   $as_echo_n "(cached) " >&6
3868 else
3869   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3870 /* end confdefs.h.  */
3871
3872 int
3873 main ()
3874 {
3875 #ifndef __GNUC__
3876        choke me
3877 #endif
3878
3879   ;
3880   return 0;
3881 }
3882 _ACEOF
3883 if ac_fn_c_try_compile "$LINENO"; then :
3884   ac_compiler_gnu=yes
3885 else
3886   ac_compiler_gnu=no
3887 fi
3888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3889 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3890
3891 fi
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3893 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3894 if test $ac_compiler_gnu = yes; then
3895   GCC=yes
3896 else
3897   GCC=
3898 fi
3899 ac_test_CFLAGS=${CFLAGS+set}
3900 ac_save_CFLAGS=$CFLAGS
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3902 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3903 if ${ac_cv_prog_cc_g+:} false; then :
3904   $as_echo_n "(cached) " >&6
3905 else
3906   ac_save_c_werror_flag=$ac_c_werror_flag
3907    ac_c_werror_flag=yes
3908    ac_cv_prog_cc_g=no
3909    CFLAGS="-g"
3910    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3911 /* end confdefs.h.  */
3912
3913 int
3914 main ()
3915 {
3916
3917   ;
3918   return 0;
3919 }
3920 _ACEOF
3921 if ac_fn_c_try_compile "$LINENO"; then :
3922   ac_cv_prog_cc_g=yes
3923 else
3924   CFLAGS=""
3925       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3926 /* end confdefs.h.  */
3927
3928 int
3929 main ()
3930 {
3931
3932   ;
3933   return 0;
3934 }
3935 _ACEOF
3936 if ac_fn_c_try_compile "$LINENO"; then :
3937
3938 else
3939   ac_c_werror_flag=$ac_save_c_werror_flag
3940          CFLAGS="-g"
3941          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3942 /* end confdefs.h.  */
3943
3944 int
3945 main ()
3946 {
3947
3948   ;
3949   return 0;
3950 }
3951 _ACEOF
3952 if ac_fn_c_try_compile "$LINENO"; then :
3953   ac_cv_prog_cc_g=yes
3954 fi
3955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3956 fi
3957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3958 fi
3959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3960    ac_c_werror_flag=$ac_save_c_werror_flag
3961 fi
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3963 $as_echo "$ac_cv_prog_cc_g" >&6; }
3964 if test "$ac_test_CFLAGS" = set; then
3965   CFLAGS=$ac_save_CFLAGS
3966 elif test $ac_cv_prog_cc_g = yes; then
3967   if test "$GCC" = yes; then
3968     CFLAGS="-g -O2"
3969   else
3970     CFLAGS="-g"
3971   fi
3972 else
3973   if test "$GCC" = yes; then
3974     CFLAGS="-O2"
3975   else
3976     CFLAGS=
3977   fi
3978 fi
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3980 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3981 if ${ac_cv_prog_cc_c89+:} false; then :
3982   $as_echo_n "(cached) " >&6
3983 else
3984   ac_cv_prog_cc_c89=no
3985 ac_save_CC=$CC
3986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3987 /* end confdefs.h.  */
3988 #include <stdarg.h>
3989 #include <stdio.h>
3990 #include <sys/types.h>
3991 #include <sys/stat.h>
3992 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3993 struct buf { int x; };
3994 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3995 static char *e (p, i)
3996      char **p;
3997      int i;
3998 {
3999   return p[i];
4000 }
4001 static char *f (char * (*g) (char **, int), char **p, ...)
4002 {
4003   char *s;
4004   va_list v;
4005   va_start (v,p);
4006   s = g (p, va_arg (v,int));
4007   va_end (v);
4008   return s;
4009 }
4010
4011 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4012    function prototypes and stuff, but not '\xHH' hex character constants.
4013    These don't provoke an error unfortunately, instead are silently treated
4014    as 'x'.  The following induces an error, until -std is added to get
4015    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4016    array size at least.  It's necessary to write '\x00'==0 to get something
4017    that's true only with -std.  */
4018 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4019
4020 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4021    inside strings and character constants.  */
4022 #define FOO(x) 'x'
4023 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4024
4025 int test (int i, double x);
4026 struct s1 {int (*f) (int a);};
4027 struct s2 {int (*f) (double a);};
4028 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4029 int argc;
4030 char **argv;
4031 int
4032 main ()
4033 {
4034 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4035   ;
4036   return 0;
4037 }
4038 _ACEOF
4039 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4040         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4041 do
4042   CC="$ac_save_CC $ac_arg"
4043   if ac_fn_c_try_compile "$LINENO"; then :
4044   ac_cv_prog_cc_c89=$ac_arg
4045 fi
4046 rm -f core conftest.err conftest.$ac_objext
4047   test "x$ac_cv_prog_cc_c89" != "xno" && break
4048 done
4049 rm -f conftest.$ac_ext
4050 CC=$ac_save_CC
4051
4052 fi
4053 # AC_CACHE_VAL
4054 case "x$ac_cv_prog_cc_c89" in
4055   x)
4056     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4057 $as_echo "none needed" >&6; } ;;
4058   xno)
4059     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4060 $as_echo "unsupported" >&6; } ;;
4061   *)
4062     CC="$CC $ac_cv_prog_cc_c89"
4063     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4064 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4065 esac
4066 if test "x$ac_cv_prog_cc_c89" != xno; then :
4067
4068 fi
4069
4070 ac_ext=c
4071 ac_cpp='$CPP $CPPFLAGS'
4072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4075
4076 depcc="$CC"   am_compiler_list=
4077
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4079 $as_echo_n "checking dependency style of $depcc... " >&6; }
4080 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4081   $as_echo_n "(cached) " >&6
4082 else
4083   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4084   # We make a subdir and do the tests there.  Otherwise we can end up
4085   # making bogus files that we don't know about and never remove.  For
4086   # instance it was reported that on HP-UX the gcc test will end up
4087   # making a dummy file named `D' -- because `-MD' means `put the output
4088   # in D'.
4089   mkdir conftest.dir
4090   # Copy depcomp to subdir because otherwise we won't find it if we're
4091   # using a relative directory.
4092   cp "$am_depcomp" conftest.dir
4093   cd conftest.dir
4094   # We will build objects and dependencies in a subdirectory because
4095   # it helps to detect inapplicable dependency modes.  For instance
4096   # both Tru64's cc and ICC support -MD to output dependencies as a
4097   # side effect of compilation, but ICC will put the dependencies in
4098   # the current directory while Tru64 will put them in the object
4099   # directory.
4100   mkdir sub
4101
4102   am_cv_CC_dependencies_compiler_type=none
4103   if test "$am_compiler_list" = ""; then
4104      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4105   fi
4106   for depmode in $am_compiler_list; do
4107     # Setup a source with many dependencies, because some compilers
4108     # like to wrap large dependency lists on column 80 (with \), and
4109     # we should not choose a depcomp mode which is confused by this.
4110     #
4111     # We need to recreate these files for each test, as the compiler may
4112     # overwrite some of them when testing with obscure command lines.
4113     # This happens at least with the AIX C compiler.
4114     : > sub/conftest.c
4115     for i in 1 2 3 4 5 6; do
4116       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4117       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4118       # Solaris 8's {/usr,}/bin/sh.
4119       touch sub/conftst$i.h
4120     done
4121     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4122
4123     case $depmode in
4124     nosideeffect)
4125       # after this tag, mechanisms are not by side-effect, so they'll
4126       # only be used when explicitly requested
4127       if test "x$enable_dependency_tracking" = xyes; then
4128         continue
4129       else
4130         break
4131       fi
4132       ;;
4133     none) break ;;
4134     esac
4135     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4136     # mode.  It turns out that the SunPro C++ compiler does not properly
4137     # handle `-M -o', and we need to detect this.
4138     if depmode=$depmode \
4139        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4140        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4141        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4142          >/dev/null 2>conftest.err &&
4143        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4144        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4145        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4146        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4147       # icc doesn't choke on unknown options, it will just issue warnings
4148       # or remarks (even with -Werror).  So we grep stderr for any message
4149       # that says an option was ignored or not supported.
4150       # When given -MP, icc 7.0 and 7.1 complain thusly:
4151       #   icc: Command line warning: ignoring option '-M'; no argument required
4152       # The diagnosis changed in icc 8.0:
4153       #   icc: Command line remark: option '-MP' not supported
4154       if (grep 'ignoring option' conftest.err ||
4155           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4156         am_cv_CC_dependencies_compiler_type=$depmode
4157         break
4158       fi
4159     fi
4160   done
4161
4162   cd ..
4163   rm -rf conftest.dir
4164 else
4165   am_cv_CC_dependencies_compiler_type=none
4166 fi
4167
4168 fi
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4170 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4171 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4172
4173  if
4174   test "x$enable_dependency_tracking" != xno \
4175   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4176   am__fastdepCC_TRUE=
4177   am__fastdepCC_FALSE='#'
4178 else
4179   am__fastdepCC_TRUE='#'
4180   am__fastdepCC_FALSE=
4181 fi
4182
4183
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4185 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4186 if ${lt_cv_path_SED+:} false; then :
4187   $as_echo_n "(cached) " >&6
4188 else
4189   # Loop through the user's path and test for sed and gsed.
4190 # Then use that list of sed's as ones to test for truncation.
4191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4192 for as_dir in $PATH
4193 do
4194   IFS=$as_save_IFS
4195   test -z "$as_dir" && as_dir=.
4196   for lt_ac_prog in sed gsed; do
4197     for ac_exec_ext in '' $ac_executable_extensions; do
4198       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4199         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4200       fi
4201     done
4202   done
4203 done
4204 IFS=$as_save_IFS
4205 lt_ac_max=0
4206 lt_ac_count=0
4207 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4208 # along with /bin/sed that truncates output.
4209 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4210   test ! -f $lt_ac_sed && continue
4211   cat /dev/null > conftest.in
4212   lt_ac_count=0
4213   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4214   # Check for GNU sed and select it if it is found.
4215   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4216     lt_cv_path_SED=$lt_ac_sed
4217     break
4218   fi
4219   while true; do
4220     cat conftest.in conftest.in >conftest.tmp
4221     mv conftest.tmp conftest.in
4222     cp conftest.in conftest.nl
4223     echo >>conftest.nl
4224     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4225     cmp -s conftest.out conftest.nl || break
4226     # 10000 chars as input seems more than enough
4227     test $lt_ac_count -gt 10 && break
4228     lt_ac_count=`expr $lt_ac_count + 1`
4229     if test $lt_ac_count -gt $lt_ac_max; then
4230       lt_ac_max=$lt_ac_count
4231       lt_cv_path_SED=$lt_ac_sed
4232     fi
4233   done
4234 done
4235
4236 fi
4237
4238 SED=$lt_cv_path_SED
4239
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4241 $as_echo "$SED" >&6; }
4242
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4244 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4245 if ${ac_cv_path_GREP+:} false; then :
4246   $as_echo_n "(cached) " >&6
4247 else
4248   if test -z "$GREP"; then
4249   ac_path_GREP_found=false
4250   # Loop through the user's path and test for each of PROGNAME-LIST
4251   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4252 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4253 do
4254   IFS=$as_save_IFS
4255   test -z "$as_dir" && as_dir=.
4256     for ac_prog in grep ggrep; do
4257     for ac_exec_ext in '' $ac_executable_extensions; do
4258       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4259       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4260 # Check for GNU ac_path_GREP and select it if it is found.
4261   # Check for GNU $ac_path_GREP
4262 case `"$ac_path_GREP" --version 2>&1` in
4263 *GNU*)
4264   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4265 *)
4266   ac_count=0
4267   $as_echo_n 0123456789 >"conftest.in"
4268   while :
4269   do
4270     cat "conftest.in" "conftest.in" >"conftest.tmp"
4271     mv "conftest.tmp" "conftest.in"
4272     cp "conftest.in" "conftest.nl"
4273     $as_echo 'GREP' >> "conftest.nl"
4274     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4275     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4276     as_fn_arith $ac_count + 1 && ac_count=$as_val
4277     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4278       # Best one so far, save it but keep looking for a better one
4279       ac_cv_path_GREP="$ac_path_GREP"
4280       ac_path_GREP_max=$ac_count
4281     fi
4282     # 10*(2^10) chars as input seems more than enough
4283     test $ac_count -gt 10 && break
4284   done
4285   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4286 esac
4287
4288       $ac_path_GREP_found && break 3
4289     done
4290   done
4291   done
4292 IFS=$as_save_IFS
4293   if test -z "$ac_cv_path_GREP"; then
4294     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4295   fi
4296 else
4297   ac_cv_path_GREP=$GREP
4298 fi
4299
4300 fi
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4302 $as_echo "$ac_cv_path_GREP" >&6; }
4303  GREP="$ac_cv_path_GREP"
4304
4305
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4307 $as_echo_n "checking for egrep... " >&6; }
4308 if ${ac_cv_path_EGREP+:} false; then :
4309   $as_echo_n "(cached) " >&6
4310 else
4311   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4312    then ac_cv_path_EGREP="$GREP -E"
4313    else
4314      if test -z "$EGREP"; then
4315   ac_path_EGREP_found=false
4316   # Loop through the user's path and test for each of PROGNAME-LIST
4317   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4318 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4319 do
4320   IFS=$as_save_IFS
4321   test -z "$as_dir" && as_dir=.
4322     for ac_prog in egrep; do
4323     for ac_exec_ext in '' $ac_executable_extensions; do
4324       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4325       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4326 # Check for GNU ac_path_EGREP and select it if it is found.
4327   # Check for GNU $ac_path_EGREP
4328 case `"$ac_path_EGREP" --version 2>&1` in
4329 *GNU*)
4330   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4331 *)
4332   ac_count=0
4333   $as_echo_n 0123456789 >"conftest.in"
4334   while :
4335   do
4336     cat "conftest.in" "conftest.in" >"conftest.tmp"
4337     mv "conftest.tmp" "conftest.in"
4338     cp "conftest.in" "conftest.nl"
4339     $as_echo 'EGREP' >> "conftest.nl"
4340     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4341     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4342     as_fn_arith $ac_count + 1 && ac_count=$as_val
4343     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4344       # Best one so far, save it but keep looking for a better one
4345       ac_cv_path_EGREP="$ac_path_EGREP"
4346       ac_path_EGREP_max=$ac_count
4347     fi
4348     # 10*(2^10) chars as input seems more than enough
4349     test $ac_count -gt 10 && break
4350   done
4351   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4352 esac
4353
4354       $ac_path_EGREP_found && break 3
4355     done
4356   done
4357   done
4358 IFS=$as_save_IFS
4359   if test -z "$ac_cv_path_EGREP"; then
4360     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4361   fi
4362 else
4363   ac_cv_path_EGREP=$EGREP
4364 fi
4365
4366    fi
4367 fi
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4369 $as_echo "$ac_cv_path_EGREP" >&6; }
4370  EGREP="$ac_cv_path_EGREP"
4371
4372
4373
4374 # Check whether --with-gnu-ld was given.
4375 if test "${with_gnu_ld+set}" = set; then :
4376   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4377 else
4378   with_gnu_ld=no
4379 fi
4380
4381 ac_prog=ld
4382 if test "$GCC" = yes; then
4383   # Check if gcc -print-prog-name=ld gives a path.
4384   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4385 $as_echo_n "checking for ld used by $CC... " >&6; }
4386   case $host in
4387   *-*-mingw*)
4388     # gcc leaves a trailing carriage return which upsets mingw
4389     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4390   *)
4391     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4392   esac
4393   case $ac_prog in
4394     # Accept absolute paths.
4395     [\\/]* | ?:[\\/]*)
4396       re_direlt='/[^/][^/]*/\.\./'
4397       # Canonicalize the pathname of ld
4398       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4399       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4400         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4401       done
4402       test -z "$LD" && LD="$ac_prog"
4403       ;;
4404   "")
4405     # If it fails, then pretend we aren't using GCC.
4406     ac_prog=ld
4407     ;;
4408   *)
4409     # If it is relative, then search for the first ld in PATH.
4410     with_gnu_ld=unknown
4411     ;;
4412   esac
4413 elif test "$with_gnu_ld" = yes; then
4414   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4415 $as_echo_n "checking for GNU ld... " >&6; }
4416 else
4417   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4418 $as_echo_n "checking for non-GNU ld... " >&6; }
4419 fi
4420 if ${lt_cv_path_LD+:} false; then :
4421   $as_echo_n "(cached) " >&6
4422 else
4423   if test -z "$LD"; then
4424   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4425   for ac_dir in $PATH; do
4426     IFS="$lt_save_ifs"
4427     test -z "$ac_dir" && ac_dir=.
4428     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4429       lt_cv_path_LD="$ac_dir/$ac_prog"
4430       # Check to see if the program is GNU ld.  I'd rather use --version,
4431       # but apparently some variants of GNU ld only accept -v.
4432       # Break only if it was the GNU/non-GNU ld that we prefer.
4433       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4434       *GNU* | *'with BFD'*)
4435         test "$with_gnu_ld" != no && break
4436         ;;
4437       *)
4438         test "$with_gnu_ld" != yes && break
4439         ;;
4440       esac
4441     fi
4442   done
4443   IFS="$lt_save_ifs"
4444 else
4445   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4446 fi
4447 fi
4448
4449 LD="$lt_cv_path_LD"
4450 if test -n "$LD"; then
4451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4452 $as_echo "$LD" >&6; }
4453 else
4454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4455 $as_echo "no" >&6; }
4456 fi
4457 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4459 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4460 if ${lt_cv_prog_gnu_ld+:} false; then :
4461   $as_echo_n "(cached) " >&6
4462 else
4463   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4464 case `$LD -v 2>&1 </dev/null` in
4465 *GNU* | *'with BFD'*)
4466   lt_cv_prog_gnu_ld=yes
4467   ;;
4468 *)
4469   lt_cv_prog_gnu_ld=no
4470   ;;
4471 esac
4472 fi
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4474 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4475 with_gnu_ld=$lt_cv_prog_gnu_ld
4476
4477
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4479 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4480 if ${lt_cv_ld_reload_flag+:} false; then :
4481   $as_echo_n "(cached) " >&6
4482 else
4483   lt_cv_ld_reload_flag='-r'
4484 fi
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4486 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4487 reload_flag=$lt_cv_ld_reload_flag
4488 case $reload_flag in
4489 "" | " "*) ;;
4490 *) reload_flag=" $reload_flag" ;;
4491 esac
4492 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4493 case $host_os in
4494   darwin*)
4495     if test "$GCC" = yes; then
4496       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4497     else
4498       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4499     fi
4500     ;;
4501 esac
4502
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
4504 $as_echo_n "checking for BSD-compatible nm... " >&6; }
4505 if ${lt_cv_path_NM+:} false; then :
4506   $as_echo_n "(cached) " >&6
4507 else
4508   if test -n "$NM"; then
4509   # Let the user override the test.
4510   lt_cv_path_NM="$NM"
4511 else
4512   lt_nm_to_check="${ac_tool_prefix}nm"
4513   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4514     lt_nm_to_check="$lt_nm_to_check nm"
4515   fi
4516   for lt_tmp_nm in $lt_nm_to_check; do
4517     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4518     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4519       IFS="$lt_save_ifs"
4520       test -z "$ac_dir" && ac_dir=.
4521       tmp_nm="$ac_dir/$lt_tmp_nm"
4522       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4523         # Check to see if the nm accepts a BSD-compat flag.
4524         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4525         #   nm: unknown option "B" ignored
4526         # Tru64's nm complains that /dev/null is an invalid object file
4527         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4528         */dev/null* | *'Invalid file or object type'*)
4529           lt_cv_path_NM="$tmp_nm -B"
4530           break
4531           ;;
4532         *)
4533           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4534           */dev/null*)
4535             lt_cv_path_NM="$tmp_nm -p"
4536             break
4537             ;;
4538           *)
4539             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4540             continue # so that we can try to find one that supports BSD flags
4541             ;;
4542           esac
4543           ;;
4544         esac
4545       fi
4546     done
4547     IFS="$lt_save_ifs"
4548   done
4549   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4550 fi
4551 fi
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4553 $as_echo "$lt_cv_path_NM" >&6; }
4554 NM="$lt_cv_path_NM"
4555
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4557 $as_echo_n "checking whether ln -s works... " >&6; }
4558 LN_S=$as_ln_s
4559 if test "$LN_S" = "ln -s"; then
4560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4561 $as_echo "yes" >&6; }
4562 else
4563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4564 $as_echo "no, using $LN_S" >&6; }
4565 fi
4566
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4568 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4569 if ${lt_cv_deplibs_check_method+:} false; then :
4570   $as_echo_n "(cached) " >&6
4571 else
4572   lt_cv_file_magic_cmd='$MAGIC_CMD'
4573 lt_cv_file_magic_test_file=
4574 lt_cv_deplibs_check_method='unknown'
4575 # Need to set the preceding variable on all platforms that support
4576 # interlibrary dependencies.
4577 # 'none' -- dependencies not supported.
4578 # `unknown' -- same as none, but documents that we really don't know.
4579 # 'pass_all' -- all dependencies passed with no checks.
4580 # 'test_compile' -- check by making test program.
4581 # 'file_magic [[regex]]' -- check by looking for files in library path
4582 # which responds to the $file_magic_cmd with a given extended regex.
4583 # If you have `file' or equivalent on your system and you're not sure
4584 # whether `pass_all' will *always* work, you probably want this one.
4585
4586 case $host_os in
4587 aix[4-9]*)
4588   lt_cv_deplibs_check_method=pass_all
4589   ;;
4590
4591 beos*)
4592   lt_cv_deplibs_check_method=pass_all
4593   ;;
4594
4595 bsdi[45]*)
4596   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4597   lt_cv_file_magic_cmd='/usr/bin/file -L'
4598   lt_cv_file_magic_test_file=/shlib/libc.so
4599   ;;
4600
4601 cygwin*)
4602   # func_win32_libid is a shell function defined in ltmain.sh
4603   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4604   lt_cv_file_magic_cmd='func_win32_libid'
4605   ;;
4606
4607 mingw* | pw32*)
4608   # Base MSYS/MinGW do not provide the 'file' command needed by
4609   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4610   # unless we find 'file', for example because we are cross-compiling.
4611   if ( file / ) >/dev/null 2>&1; then
4612     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4613     lt_cv_file_magic_cmd='func_win32_libid'
4614   else
4615     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4616     lt_cv_file_magic_cmd='$OBJDUMP -f'
4617   fi
4618   ;;
4619
4620 darwin* | rhapsody*)
4621   lt_cv_deplibs_check_method=pass_all
4622   ;;
4623
4624 freebsd* | dragonfly*)
4625   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4626     case $host_cpu in
4627     i*86 )
4628       # Not sure whether the presence of OpenBSD here was a mistake.
4629       # Let's accept both of them until this is cleared up.
4630       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4631       lt_cv_file_magic_cmd=/usr/bin/file
4632       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4633       ;;
4634     esac
4635   else
4636     lt_cv_deplibs_check_method=pass_all
4637   fi
4638   ;;
4639
4640 gnu*)
4641   lt_cv_deplibs_check_method=pass_all
4642   ;;
4643
4644 hpux10.20* | hpux11*)
4645   lt_cv_file_magic_cmd=/usr/bin/file
4646   case $host_cpu in
4647   ia64*)
4648     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4649     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4650     ;;
4651   hppa*64*)
4652     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4653     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4654     ;;
4655   *)
4656     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4657     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4658     ;;
4659   esac
4660   ;;
4661
4662 interix[3-9]*)
4663   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4664   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4665   ;;
4666
4667 irix5* | irix6* | nonstopux*)
4668   case $LD in
4669   *-32|*"-32 ") libmagic=32-bit;;
4670   *-n32|*"-n32 ") libmagic=N32;;
4671   *-64|*"-64 ") libmagic=64-bit;;
4672   *) libmagic=never-match;;
4673   esac
4674   lt_cv_deplibs_check_method=pass_all
4675   ;;
4676
4677 # This must be Linux ELF.
4678 linux* | k*bsd*-gnu)
4679   lt_cv_deplibs_check_method=pass_all
4680   ;;
4681
4682 netbsd* | netbsdelf*-gnu)
4683   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4684     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4685   else
4686     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4687   fi
4688   ;;
4689
4690 newos6*)
4691   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4692   lt_cv_file_magic_cmd=/usr/bin/file
4693   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4694   ;;
4695
4696 nto-qnx*)
4697   lt_cv_deplibs_check_method=unknown
4698   ;;
4699
4700 openbsd*)
4701   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4702     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4703   else
4704     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4705   fi
4706   ;;
4707
4708 osf3* | osf4* | osf5*)
4709   lt_cv_deplibs_check_method=pass_all
4710   ;;
4711
4712 rdos*)
4713   lt_cv_deplibs_check_method=pass_all
4714   ;;
4715
4716 solaris*)
4717   lt_cv_deplibs_check_method=pass_all
4718   ;;
4719
4720 sysv4 | sysv4.3*)
4721   case $host_vendor in
4722   motorola)
4723     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
4724     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4725     ;;
4726   ncr)
4727     lt_cv_deplibs_check_method=pass_all
4728     ;;
4729   sequent)
4730     lt_cv_file_magic_cmd='/bin/file'
4731     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4732     ;;
4733   sni)
4734     lt_cv_file_magic_cmd='/bin/file'
4735     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4736     lt_cv_file_magic_test_file=/lib/libc.so
4737     ;;
4738   siemens)
4739     lt_cv_deplibs_check_method=pass_all
4740     ;;
4741   pc)
4742     lt_cv_deplibs_check_method=pass_all
4743     ;;
4744   esac
4745   ;;
4746
4747 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4748   lt_cv_deplibs_check_method=pass_all
4749   ;;
4750 esac
4751
4752 fi
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4754 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4755 file_magic_cmd=$lt_cv_file_magic_cmd
4756 deplibs_check_method=$lt_cv_deplibs_check_method
4757 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4758
4759
4760
4761
4762 # If no C compiler was specified, use CC.
4763 LTCC=${LTCC-"$CC"}
4764
4765 # If no C compiler flags were specified, use CFLAGS.
4766 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4767
4768 # Allow CC to be a program name with arguments.
4769 compiler=$CC
4770
4771
4772 # Check whether --enable-libtool-lock was given.
4773 if test "${enable_libtool_lock+set}" = set; then :
4774   enableval=$enable_libtool_lock;
4775 fi
4776
4777 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4778
4779 # Some flags need to be propagated to the compiler or linker for good
4780 # libtool support.
4781 case $host in
4782 ia64-*-hpux*)
4783   # Find out which ABI we are using.
4784   echo 'int i;' > conftest.$ac_ext
4785   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4786   (eval $ac_compile) 2>&5
4787   ac_status=$?
4788   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4789   test $ac_status = 0; }; then
4790     case `/usr/bin/file conftest.$ac_objext` in
4791     *ELF-32*)
4792       HPUX_IA64_MODE="32"
4793       ;;
4794     *ELF-64*)
4795       HPUX_IA64_MODE="64"
4796       ;;
4797     esac
4798   fi
4799   rm -rf conftest*
4800   ;;
4801 *-*-irix6*)
4802   # Find out which ABI we are using.
4803   echo '#line 4803 "configure"' > conftest.$ac_ext
4804   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4805   (eval $ac_compile) 2>&5
4806   ac_status=$?
4807   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4808   test $ac_status = 0; }; then
4809    if test "$lt_cv_prog_gnu_ld" = yes; then
4810     case `/usr/bin/file conftest.$ac_objext` in
4811     *32-bit*)
4812       LD="${LD-ld} -melf32bsmip"
4813       ;;
4814     *N32*)
4815       LD="${LD-ld} -melf32bmipn32"
4816       ;;
4817     *64-bit*)
4818       LD="${LD-ld} -melf64bmip"
4819       ;;
4820     esac
4821    else
4822     case `/usr/bin/file conftest.$ac_objext` in
4823     *32-bit*)
4824       LD="${LD-ld} -32"
4825       ;;
4826     *N32*)
4827       LD="${LD-ld} -n32"
4828       ;;
4829     *64-bit*)
4830       LD="${LD-ld} -64"
4831       ;;
4832     esac
4833    fi
4834   fi
4835   rm -rf conftest*
4836   ;;
4837
4838 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4839 s390*-*linux*|sparc*-*linux*)
4840   # Find out which ABI we are using.
4841   echo 'int i;' > conftest.$ac_ext
4842   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4843   (eval $ac_compile) 2>&5
4844   ac_status=$?
4845   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4846   test $ac_status = 0; }; then
4847     case `/usr/bin/file conftest.o` in
4848     *32-bit*)
4849       case $host in
4850         x86_64-*kfreebsd*-gnu)
4851           LD="${LD-ld} -m elf_i386_fbsd"
4852           ;;
4853         x86_64-*linux*)
4854           LD="${LD-ld} -m elf_i386"
4855           ;;
4856         ppc64-*linux*|powerpc64-*linux*)
4857           LD="${LD-ld} -m elf32ppclinux"
4858           ;;
4859         s390x-*linux*)
4860           LD="${LD-ld} -m elf_s390"
4861           ;;
4862         sparc64-*linux*)
4863           LD="${LD-ld} -m elf32_sparc"
4864           ;;
4865       esac
4866       ;;
4867     *64-bit*)
4868       case $host in
4869         x86_64-*kfreebsd*-gnu)
4870           LD="${LD-ld} -m elf_x86_64_fbsd"
4871           ;;
4872         x86_64-*linux*)
4873           LD="${LD-ld} -m elf_x86_64"
4874           ;;
4875         ppc*-*linux*|powerpc*-*linux*)
4876           LD="${LD-ld} -m elf64ppc"
4877           ;;
4878         s390*-*linux*)
4879           LD="${LD-ld} -m elf64_s390"
4880           ;;
4881         sparc*-*linux*)
4882           LD="${LD-ld} -m elf64_sparc"
4883           ;;
4884       esac
4885       ;;
4886     esac
4887   fi
4888   rm -rf conftest*
4889   ;;
4890
4891 *-*-sco3.2v5*)
4892   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4893   SAVE_CFLAGS="$CFLAGS"
4894   CFLAGS="$CFLAGS -belf"
4895   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
4896 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4897 if ${lt_cv_cc_needs_belf+:} false; then :
4898   $as_echo_n "(cached) " >&6
4899 else
4900   ac_ext=c
4901 ac_cpp='$CPP $CPPFLAGS'
4902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4905
4906      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4907 /* end confdefs.h.  */
4908
4909 int
4910 main ()
4911 {
4912
4913   ;
4914   return 0;
4915 }
4916 _ACEOF
4917 if ac_fn_c_try_link "$LINENO"; then :
4918   lt_cv_cc_needs_belf=yes
4919 else
4920   lt_cv_cc_needs_belf=no
4921 fi
4922 rm -f core conftest.err conftest.$ac_objext \
4923     conftest$ac_exeext conftest.$ac_ext
4924      ac_ext=c
4925 ac_cpp='$CPP $CPPFLAGS'
4926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4929
4930 fi
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
4932 $as_echo "$lt_cv_cc_needs_belf" >&6; }
4933   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4934     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4935     CFLAGS="$SAVE_CFLAGS"
4936   fi
4937   ;;
4938 sparc*-*solaris*)
4939   # Find out which ABI we are using.
4940   echo 'int i;' > conftest.$ac_ext
4941   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4942   (eval $ac_compile) 2>&5
4943   ac_status=$?
4944   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4945   test $ac_status = 0; }; then
4946     case `/usr/bin/file conftest.o` in
4947     *64-bit*)
4948       case $lt_cv_prog_gnu_ld in
4949       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4950       *)
4951         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4952           LD="${LD-ld} -64"
4953         fi
4954         ;;
4955       esac
4956       ;;
4957     esac
4958   fi
4959   rm -rf conftest*
4960   ;;
4961
4962
4963 esac
4964
4965 need_locks="$enable_libtool_lock"
4966
4967
4968 ac_ext=c
4969 ac_cpp='$CPP $CPPFLAGS'
4970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4974 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4975 # On Suns, sometimes $CPP names a directory.
4976 if test -n "$CPP" && test -d "$CPP"; then
4977   CPP=
4978 fi
4979 if test -z "$CPP"; then
4980   if ${ac_cv_prog_CPP+:} false; then :
4981   $as_echo_n "(cached) " >&6
4982 else
4983       # Double quotes because CPP needs to be expanded
4984     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4985     do
4986       ac_preproc_ok=false
4987 for ac_c_preproc_warn_flag in '' yes
4988 do
4989   # Use a header file that comes with gcc, so configuring glibc
4990   # with a fresh cross-compiler works.
4991   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4992   # <limits.h> exists even on freestanding compilers.
4993   # On the NeXT, cc -E runs the code through the compiler's parser,
4994   # not just through cpp. "Syntax error" is here to catch this case.
4995   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4996 /* end confdefs.h.  */
4997 #ifdef __STDC__
4998 # include <limits.h>
4999 #else
5000 # include <assert.h>
5001 #endif
5002                      Syntax error
5003 _ACEOF
5004 if ac_fn_c_try_cpp "$LINENO"; then :
5005
5006 else
5007   # Broken: fails on valid input.
5008 continue
5009 fi
5010 rm -f conftest.err conftest.i conftest.$ac_ext
5011
5012   # OK, works on sane cases.  Now check whether nonexistent headers
5013   # can be detected and how.
5014   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5015 /* end confdefs.h.  */
5016 #include <ac_nonexistent.h>
5017 _ACEOF
5018 if ac_fn_c_try_cpp "$LINENO"; then :
5019   # Broken: success on invalid input.
5020 continue
5021 else
5022   # Passes both tests.
5023 ac_preproc_ok=:
5024 break
5025 fi
5026 rm -f conftest.err conftest.i conftest.$ac_ext
5027
5028 done
5029 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5030 rm -f conftest.i conftest.err conftest.$ac_ext
5031 if $ac_preproc_ok; then :
5032   break
5033 fi
5034
5035     done
5036     ac_cv_prog_CPP=$CPP
5037
5038 fi
5039   CPP=$ac_cv_prog_CPP
5040 else
5041   ac_cv_prog_CPP=$CPP
5042 fi
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5044 $as_echo "$CPP" >&6; }
5045 ac_preproc_ok=false
5046 for ac_c_preproc_warn_flag in '' yes
5047 do
5048   # Use a header file that comes with gcc, so configuring glibc
5049   # with a fresh cross-compiler works.
5050   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5051   # <limits.h> exists even on freestanding compilers.
5052   # On the NeXT, cc -E runs the code through the compiler's parser,
5053   # not just through cpp. "Syntax error" is here to catch this case.
5054   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5055 /* end confdefs.h.  */
5056 #ifdef __STDC__
5057 # include <limits.h>
5058 #else
5059 # include <assert.h>
5060 #endif
5061                      Syntax error
5062 _ACEOF
5063 if ac_fn_c_try_cpp "$LINENO"; then :
5064
5065 else
5066   # Broken: fails on valid input.
5067 continue
5068 fi
5069 rm -f conftest.err conftest.i conftest.$ac_ext
5070
5071   # OK, works on sane cases.  Now check whether nonexistent headers
5072   # can be detected and how.
5073   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5074 /* end confdefs.h.  */
5075 #include <ac_nonexistent.h>
5076 _ACEOF
5077 if ac_fn_c_try_cpp "$LINENO"; then :
5078   # Broken: success on invalid input.
5079 continue
5080 else
5081   # Passes both tests.
5082 ac_preproc_ok=:
5083 break
5084 fi
5085 rm -f conftest.err conftest.i conftest.$ac_ext
5086
5087 done
5088 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5089 rm -f conftest.i conftest.err conftest.$ac_ext
5090 if $ac_preproc_ok; then :
5091
5092 else
5093   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5094 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5095 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5096 See \`config.log' for more details" "$LINENO" 5; }
5097 fi
5098
5099 ac_ext=c
5100 ac_cpp='$CPP $CPPFLAGS'
5101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5104
5105
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5107 $as_echo_n "checking for ANSI C header files... " >&6; }
5108 if ${ac_cv_header_stdc+:} false; then :
5109   $as_echo_n "(cached) " >&6
5110 else
5111   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5112 /* end confdefs.h.  */
5113 #include <stdlib.h>
5114 #include <stdarg.h>
5115 #include <string.h>
5116 #include <float.h>
5117
5118 int
5119 main ()
5120 {
5121
5122   ;
5123   return 0;
5124 }
5125 _ACEOF
5126 if ac_fn_c_try_compile "$LINENO"; then :
5127   ac_cv_header_stdc=yes
5128 else
5129   ac_cv_header_stdc=no
5130 fi
5131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5132
5133 if test $ac_cv_header_stdc = yes; then
5134   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5135   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5136 /* end confdefs.h.  */
5137 #include <string.h>
5138
5139 _ACEOF
5140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5141   $EGREP "memchr" >/dev/null 2>&1; then :
5142
5143 else
5144   ac_cv_header_stdc=no
5145 fi
5146 rm -f conftest*
5147
5148 fi
5149
5150 if test $ac_cv_header_stdc = yes; then
5151   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5152   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5153 /* end confdefs.h.  */
5154 #include <stdlib.h>
5155
5156 _ACEOF
5157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5158   $EGREP "free" >/dev/null 2>&1; then :
5159
5160 else
5161   ac_cv_header_stdc=no
5162 fi
5163 rm -f conftest*
5164
5165 fi
5166
5167 if test $ac_cv_header_stdc = yes; then
5168   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5169   if test "$cross_compiling" = yes; then :
5170   :
5171 else
5172   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5173 /* end confdefs.h.  */
5174 #include <ctype.h>
5175 #include <stdlib.h>
5176 #if ((' ' & 0x0FF) == 0x020)
5177 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5178 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5179 #else
5180 # define ISLOWER(c) \
5181                    (('a' <= (c) && (c) <= 'i') \
5182                      || ('j' <= (c) && (c) <= 'r') \
5183                      || ('s' <= (c) && (c) <= 'z'))
5184 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5185 #endif
5186
5187 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5188 int
5189 main ()
5190 {
5191   int i;
5192   for (i = 0; i < 256; i++)
5193     if (XOR (islower (i), ISLOWER (i))
5194         || toupper (i) != TOUPPER (i))
5195       return 2;
5196   return 0;
5197 }
5198 _ACEOF
5199 if ac_fn_c_try_run "$LINENO"; then :
5200
5201 else
5202   ac_cv_header_stdc=no
5203 fi
5204 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5205   conftest.$ac_objext conftest.beam conftest.$ac_ext
5206 fi
5207
5208 fi
5209 fi
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5211 $as_echo "$ac_cv_header_stdc" >&6; }
5212 if test $ac_cv_header_stdc = yes; then
5213
5214 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5215
5216 fi
5217
5218 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5219 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5220                   inttypes.h stdint.h unistd.h
5221 do :
5222   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5223 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5224 "
5225 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5226   cat >>confdefs.h <<_ACEOF
5227 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5228 _ACEOF
5229
5230 fi
5231
5232 done
5233
5234
5235 for ac_header in dlfcn.h
5236 do :
5237   ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5238 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5239   cat >>confdefs.h <<_ACEOF
5240 #define HAVE_DLFCN_H 1
5241 _ACEOF
5242
5243 fi
5244
5245 done
5246
5247 ac_ext=cpp
5248 ac_cpp='$CXXCPP $CPPFLAGS'
5249 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5250 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5251 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5252 if test -z "$CXX"; then
5253   if test -n "$CCC"; then
5254     CXX=$CCC
5255   else
5256     if test -n "$ac_tool_prefix"; then
5257   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5258   do
5259     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5260 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5262 $as_echo_n "checking for $ac_word... " >&6; }
5263 if ${ac_cv_prog_CXX+:} false; then :
5264   $as_echo_n "(cached) " >&6
5265 else
5266   if test -n "$CXX"; then
5267   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5268 else
5269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5270 for as_dir in $PATH
5271 do
5272   IFS=$as_save_IFS
5273   test -z "$as_dir" && as_dir=.
5274     for ac_exec_ext in '' $ac_executable_extensions; do
5275   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5276     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5277     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5278     break 2
5279   fi
5280 done
5281   done
5282 IFS=$as_save_IFS
5283
5284 fi
5285 fi
5286 CXX=$ac_cv_prog_CXX
5287 if test -n "$CXX"; then
5288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5289 $as_echo "$CXX" >&6; }
5290 else
5291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5292 $as_echo "no" >&6; }
5293 fi
5294
5295
5296     test -n "$CXX" && break
5297   done
5298 fi
5299 if test -z "$CXX"; then
5300   ac_ct_CXX=$CXX
5301   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5302 do
5303   # Extract the first word of "$ac_prog", so it can be a program name with args.
5304 set dummy $ac_prog; ac_word=$2
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5306 $as_echo_n "checking for $ac_word... " >&6; }
5307 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5308   $as_echo_n "(cached) " >&6
5309 else
5310   if test -n "$ac_ct_CXX"; then
5311   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5312 else
5313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5314 for as_dir in $PATH
5315 do
5316   IFS=$as_save_IFS
5317   test -z "$as_dir" && as_dir=.
5318     for ac_exec_ext in '' $ac_executable_extensions; do
5319   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5320     ac_cv_prog_ac_ct_CXX="$ac_prog"
5321     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5322     break 2
5323   fi
5324 done
5325   done
5326 IFS=$as_save_IFS
5327
5328 fi
5329 fi
5330 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5331 if test -n "$ac_ct_CXX"; then
5332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5333 $as_echo "$ac_ct_CXX" >&6; }
5334 else
5335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5336 $as_echo "no" >&6; }
5337 fi
5338
5339
5340   test -n "$ac_ct_CXX" && break
5341 done
5342
5343   if test "x$ac_ct_CXX" = x; then
5344     CXX="g++"
5345   else
5346     case $cross_compiling:$ac_tool_warned in
5347 yes:)
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5349 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5350 ac_tool_warned=yes ;;
5351 esac
5352     CXX=$ac_ct_CXX
5353   fi
5354 fi
5355
5356   fi
5357 fi
5358 # Provide some information about the compiler.
5359 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5360 set X $ac_compile
5361 ac_compiler=$2
5362 for ac_option in --version -v -V -qversion; do
5363   { { ac_try="$ac_compiler $ac_option >&5"
5364 case "(($ac_try" in
5365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5366   *) ac_try_echo=$ac_try;;
5367 esac
5368 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5369 $as_echo "$ac_try_echo"; } >&5
5370   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5371   ac_status=$?
5372   if test -s conftest.err; then
5373     sed '10a\
5374 ... rest of stderr output deleted ...
5375          10q' conftest.err >conftest.er1
5376     cat conftest.er1 >&5
5377   fi
5378   rm -f conftest.er1 conftest.err
5379   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5380   test $ac_status = 0; }
5381 done
5382
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5384 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5385 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5386   $as_echo_n "(cached) " >&6
5387 else
5388   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5389 /* end confdefs.h.  */
5390
5391 int
5392 main ()
5393 {
5394 #ifndef __GNUC__
5395        choke me
5396 #endif
5397
5398   ;
5399   return 0;
5400 }
5401 _ACEOF
5402 if ac_fn_cxx_try_compile "$LINENO"; then :
5403   ac_compiler_gnu=yes
5404 else
5405   ac_compiler_gnu=no
5406 fi
5407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5408 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5409
5410 fi
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5412 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5413 if test $ac_compiler_gnu = yes; then
5414   GXX=yes
5415 else
5416   GXX=
5417 fi
5418 ac_test_CXXFLAGS=${CXXFLAGS+set}
5419 ac_save_CXXFLAGS=$CXXFLAGS
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5421 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5422 if ${ac_cv_prog_cxx_g+:} false; then :
5423   $as_echo_n "(cached) " >&6
5424 else
5425   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5426    ac_cxx_werror_flag=yes
5427    ac_cv_prog_cxx_g=no
5428    CXXFLAGS="-g"
5429    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5430 /* end confdefs.h.  */
5431
5432 int
5433 main ()
5434 {
5435
5436   ;
5437   return 0;
5438 }
5439 _ACEOF
5440 if ac_fn_cxx_try_compile "$LINENO"; then :
5441   ac_cv_prog_cxx_g=yes
5442 else
5443   CXXFLAGS=""
5444       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5445 /* end confdefs.h.  */
5446
5447 int
5448 main ()
5449 {
5450
5451   ;
5452   return 0;
5453 }
5454 _ACEOF
5455 if ac_fn_cxx_try_compile "$LINENO"; then :
5456
5457 else
5458   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5459          CXXFLAGS="-g"
5460          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5461 /* end confdefs.h.  */
5462
5463 int
5464 main ()
5465 {
5466
5467   ;
5468   return 0;
5469 }
5470 _ACEOF
5471 if ac_fn_cxx_try_compile "$LINENO"; then :
5472   ac_cv_prog_cxx_g=yes
5473 fi
5474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5475 fi
5476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5477 fi
5478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5479    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5480 fi
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5482 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5483 if test "$ac_test_CXXFLAGS" = set; then
5484   CXXFLAGS=$ac_save_CXXFLAGS
5485 elif test $ac_cv_prog_cxx_g = yes; then
5486   if test "$GXX" = yes; then
5487     CXXFLAGS="-g -O2"
5488   else
5489     CXXFLAGS="-g"
5490   fi
5491 else
5492   if test "$GXX" = yes; then
5493     CXXFLAGS="-O2"
5494   else
5495     CXXFLAGS=
5496   fi
5497 fi
5498 ac_ext=cpp
5499 ac_cpp='$CXXCPP $CPPFLAGS'
5500 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5501 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5502 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5503
5504 depcc="$CXX"  am_compiler_list=
5505
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5507 $as_echo_n "checking dependency style of $depcc... " >&6; }
5508 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5509   $as_echo_n "(cached) " >&6
5510 else
5511   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5512   # We make a subdir and do the tests there.  Otherwise we can end up
5513   # making bogus files that we don't know about and never remove.  For
5514   # instance it was reported that on HP-UX the gcc test will end up
5515   # making a dummy file named `D' -- because `-MD' means `put the output
5516   # in D'.
5517   mkdir conftest.dir
5518   # Copy depcomp to subdir because otherwise we won't find it if we're
5519   # using a relative directory.
5520   cp "$am_depcomp" conftest.dir
5521   cd conftest.dir
5522   # We will build objects and dependencies in a subdirectory because
5523   # it helps to detect inapplicable dependency modes.  For instance
5524   # both Tru64's cc and ICC support -MD to output dependencies as a
5525   # side effect of compilation, but ICC will put the dependencies in
5526   # the current directory while Tru64 will put them in the object
5527   # directory.
5528   mkdir sub
5529
5530   am_cv_CXX_dependencies_compiler_type=none
5531   if test "$am_compiler_list" = ""; then
5532      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5533   fi
5534   for depmode in $am_compiler_list; do
5535     # Setup a source with many dependencies, because some compilers
5536     # like to wrap large dependency lists on column 80 (with \), and
5537     # we should not choose a depcomp mode which is confused by this.
5538     #
5539     # We need to recreate these files for each test, as the compiler may
5540     # overwrite some of them when testing with obscure command lines.
5541     # This happens at least with the AIX C compiler.
5542     : > sub/conftest.c
5543     for i in 1 2 3 4 5 6; do
5544       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5545       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5546       # Solaris 8's {/usr,}/bin/sh.
5547       touch sub/conftst$i.h
5548     done
5549     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5550
5551     case $depmode in
5552     nosideeffect)
5553       # after this tag, mechanisms are not by side-effect, so they'll
5554       # only be used when explicitly requested
5555       if test "x$enable_dependency_tracking" = xyes; then
5556         continue
5557       else
5558         break
5559       fi
5560       ;;
5561     none) break ;;
5562     esac
5563     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5564     # mode.  It turns out that the SunPro C++ compiler does not properly
5565     # handle `-M -o', and we need to detect this.
5566     if depmode=$depmode \
5567        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5568        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5569        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5570          >/dev/null 2>conftest.err &&
5571        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5572        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5573        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5574        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5575       # icc doesn't choke on unknown options, it will just issue warnings
5576       # or remarks (even with -Werror).  So we grep stderr for any message
5577       # that says an option was ignored or not supported.
5578       # When given -MP, icc 7.0 and 7.1 complain thusly:
5579       #   icc: Command line warning: ignoring option '-M'; no argument required
5580       # The diagnosis changed in icc 8.0:
5581       #   icc: Command line remark: option '-MP' not supported
5582       if (grep 'ignoring option' conftest.err ||
5583           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5584         am_cv_CXX_dependencies_compiler_type=$depmode
5585         break
5586       fi
5587     fi
5588   done
5589
5590   cd ..
5591   rm -rf conftest.dir
5592 else
5593   am_cv_CXX_dependencies_compiler_type=none
5594 fi
5595
5596 fi
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5598 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5599 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5600
5601  if
5602   test "x$enable_dependency_tracking" != xno \
5603   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5604   am__fastdepCXX_TRUE=
5605   am__fastdepCXX_FALSE='#'
5606 else
5607   am__fastdepCXX_TRUE='#'
5608   am__fastdepCXX_FALSE=
5609 fi
5610
5611
5612
5613
5614 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5615     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5616     (test "X$CXX" != "Xg++"))) ; then
5617   ac_ext=cpp
5618 ac_cpp='$CXXCPP $CPPFLAGS'
5619 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5620 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5621 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5623 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5624 if test -z "$CXXCPP"; then
5625   if ${ac_cv_prog_CXXCPP+:} false; then :
5626   $as_echo_n "(cached) " >&6
5627 else
5628       # Double quotes because CXXCPP needs to be expanded
5629     for CXXCPP in "$CXX -E" "/lib/cpp"
5630     do
5631       ac_preproc_ok=false
5632 for ac_cxx_preproc_warn_flag in '' yes
5633 do
5634   # Use a header file that comes with gcc, so configuring glibc
5635   # with a fresh cross-compiler works.
5636   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5637   # <limits.h> exists even on freestanding compilers.
5638   # On the NeXT, cc -E runs the code through the compiler's parser,
5639   # not just through cpp. "Syntax error" is here to catch this case.
5640   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5641 /* end confdefs.h.  */
5642 #ifdef __STDC__
5643 # include <limits.h>
5644 #else
5645 # include <assert.h>
5646 #endif
5647                      Syntax error
5648 _ACEOF
5649 if ac_fn_cxx_try_cpp "$LINENO"; then :
5650
5651 else
5652   # Broken: fails on valid input.
5653 continue
5654 fi
5655 rm -f conftest.err conftest.i conftest.$ac_ext
5656
5657   # OK, works on sane cases.  Now check whether nonexistent headers
5658   # can be detected and how.
5659   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5660 /* end confdefs.h.  */
5661 #include <ac_nonexistent.h>
5662 _ACEOF
5663 if ac_fn_cxx_try_cpp "$LINENO"; then :
5664   # Broken: success on invalid input.
5665 continue
5666 else
5667   # Passes both tests.
5668 ac_preproc_ok=:
5669 break
5670 fi
5671 rm -f conftest.err conftest.i conftest.$ac_ext
5672
5673 done
5674 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5675 rm -f conftest.i conftest.err conftest.$ac_ext
5676 if $ac_preproc_ok; then :
5677   break
5678 fi
5679
5680     done
5681     ac_cv_prog_CXXCPP=$CXXCPP
5682
5683 fi
5684   CXXCPP=$ac_cv_prog_CXXCPP
5685 else
5686   ac_cv_prog_CXXCPP=$CXXCPP
5687 fi
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5689 $as_echo "$CXXCPP" >&6; }
5690 ac_preproc_ok=false
5691 for ac_cxx_preproc_warn_flag in '' yes
5692 do
5693   # Use a header file that comes with gcc, so configuring glibc
5694   # with a fresh cross-compiler works.
5695   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5696   # <limits.h> exists even on freestanding compilers.
5697   # On the NeXT, cc -E runs the code through the compiler's parser,
5698   # not just through cpp. "Syntax error" is here to catch this case.
5699   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5700 /* end confdefs.h.  */
5701 #ifdef __STDC__
5702 # include <limits.h>
5703 #else
5704 # include <assert.h>
5705 #endif
5706                      Syntax error
5707 _ACEOF
5708 if ac_fn_cxx_try_cpp "$LINENO"; then :
5709
5710 else
5711   # Broken: fails on valid input.
5712 continue
5713 fi
5714 rm -f conftest.err conftest.i conftest.$ac_ext
5715
5716   # OK, works on sane cases.  Now check whether nonexistent headers
5717   # can be detected and how.
5718   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5719 /* end confdefs.h.  */
5720 #include <ac_nonexistent.h>
5721 _ACEOF
5722 if ac_fn_cxx_try_cpp "$LINENO"; then :
5723   # Broken: success on invalid input.
5724 continue
5725 else
5726   # Passes both tests.
5727 ac_preproc_ok=:
5728 break
5729 fi
5730 rm -f conftest.err conftest.i conftest.$ac_ext
5731
5732 done
5733 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5734 rm -f conftest.i conftest.err conftest.$ac_ext
5735 if $ac_preproc_ok; then :
5736
5737 else
5738   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5739 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5740 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5741 See \`config.log' for more details" "$LINENO" 5; }
5742 fi
5743
5744 ac_ext=cpp
5745 ac_cpp='$CXXCPP $CPPFLAGS'
5746 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5747 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5748 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5749
5750 fi
5751
5752
5753 ac_ext=f
5754 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5755 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5756 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5757 if test -n "$ac_tool_prefix"; then
5758   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn
5759   do
5760     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5761 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5763 $as_echo_n "checking for $ac_word... " >&6; }
5764 if ${ac_cv_prog_F77+:} false; then :
5765   $as_echo_n "(cached) " >&6
5766 else
5767   if test -n "$F77"; then
5768   ac_cv_prog_F77="$F77" # Let the user override the test.
5769 else
5770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5771 for as_dir in $PATH
5772 do
5773   IFS=$as_save_IFS
5774   test -z "$as_dir" && as_dir=.
5775     for ac_exec_ext in '' $ac_executable_extensions; do
5776   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5777     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5778     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5779     break 2
5780   fi
5781 done
5782   done
5783 IFS=$as_save_IFS
5784
5785 fi
5786 fi
5787 F77=$ac_cv_prog_F77
5788 if test -n "$F77"; then
5789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
5790 $as_echo "$F77" >&6; }
5791 else
5792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5793 $as_echo "no" >&6; }
5794 fi
5795
5796
5797     test -n "$F77" && break
5798   done
5799 fi
5800 if test -z "$F77"; then
5801   ac_ct_F77=$F77
5802   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn
5803 do
5804   # Extract the first word of "$ac_prog", so it can be a program name with args.
5805 set dummy $ac_prog; ac_word=$2
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5807 $as_echo_n "checking for $ac_word... " >&6; }
5808 if ${ac_cv_prog_ac_ct_F77+:} false; then :
5809   $as_echo_n "(cached) " >&6
5810 else
5811   if test -n "$ac_ct_F77"; then
5812   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5813 else
5814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5815 for as_dir in $PATH
5816 do
5817   IFS=$as_save_IFS
5818   test -z "$as_dir" && as_dir=.
5819     for ac_exec_ext in '' $ac_executable_extensions; do
5820   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5821     ac_cv_prog_ac_ct_F77="$ac_prog"
5822     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5823     break 2
5824   fi
5825 done
5826   done
5827 IFS=$as_save_IFS
5828
5829 fi
5830 fi
5831 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5832 if test -n "$ac_ct_F77"; then
5833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
5834 $as_echo "$ac_ct_F77" >&6; }
5835 else
5836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5837 $as_echo "no" >&6; }
5838 fi
5839
5840
5841   test -n "$ac_ct_F77" && break
5842 done
5843
5844   if test "x$ac_ct_F77" = x; then
5845     F77=""
5846   else
5847     case $cross_compiling:$ac_tool_warned in
5848 yes:)
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5850 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5851 ac_tool_warned=yes ;;
5852 esac
5853     F77=$ac_ct_F77
5854   fi
5855 fi
5856
5857
5858 # Provide some information about the compiler.
5859 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
5860 set X $ac_compile
5861 ac_compiler=$2
5862 for ac_option in --version -v -V -qversion; do
5863   { { ac_try="$ac_compiler $ac_option >&5"
5864 case "(($ac_try" in
5865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5866   *) ac_try_echo=$ac_try;;
5867 esac
5868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5869 $as_echo "$ac_try_echo"; } >&5
5870   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5871   ac_status=$?
5872   if test -s conftest.err; then
5873     sed '10a\
5874 ... rest of stderr output deleted ...
5875          10q' conftest.err >conftest.er1
5876     cat conftest.er1 >&5
5877   fi
5878   rm -f conftest.er1 conftest.err
5879   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5880   test $ac_status = 0; }
5881 done
5882 rm -f a.out
5883
5884 # If we don't use `.F' as extension, the preprocessor is not run on the
5885 # input file.  (Note that this only needs to work for GNU compilers.)
5886 ac_save_ext=$ac_ext
5887 ac_ext=F
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
5889 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
5890 if ${ac_cv_f77_compiler_gnu+:} false; then :
5891   $as_echo_n "(cached) " >&6
5892 else
5893   cat > conftest.$ac_ext <<_ACEOF
5894       program main
5895 #ifndef __GNUC__
5896        choke me
5897 #endif
5898
5899       end
5900 _ACEOF
5901 if ac_fn_f77_try_compile "$LINENO"; then :
5902   ac_compiler_gnu=yes
5903 else
5904   ac_compiler_gnu=no
5905 fi
5906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5907 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5908
5909 fi
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
5911 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
5912 ac_ext=$ac_save_ext
5913 ac_test_FFLAGS=${FFLAGS+set}
5914 ac_save_FFLAGS=$FFLAGS
5915 FFLAGS=
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
5917 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
5918 if ${ac_cv_prog_f77_g+:} false; then :
5919   $as_echo_n "(cached) " >&6
5920 else
5921   FFLAGS=-g
5922 cat > conftest.$ac_ext <<_ACEOF
5923       program main
5924
5925       end
5926 _ACEOF
5927 if ac_fn_f77_try_compile "$LINENO"; then :
5928   ac_cv_prog_f77_g=yes
5929 else
5930   ac_cv_prog_f77_g=no
5931 fi
5932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5933
5934 fi
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
5936 $as_echo "$ac_cv_prog_f77_g" >&6; }
5937 if test "$ac_test_FFLAGS" = set; then
5938   FFLAGS=$ac_save_FFLAGS
5939 elif test $ac_cv_prog_f77_g = yes; then
5940   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5941     FFLAGS="-g -O2"
5942   else
5943     FFLAGS="-g"
5944   fi
5945 else
5946   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5947     FFLAGS="-O2"
5948   else
5949     FFLAGS=
5950   fi
5951 fi
5952
5953 if test $ac_compiler_gnu = yes; then
5954   G77=yes
5955 else
5956   G77=
5957 fi
5958 ac_ext=c
5959 ac_cpp='$CPP $CPPFLAGS'
5960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5963
5964
5965
5966 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5967 # find the maximum length of command line arguments
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5969 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5970 if ${lt_cv_sys_max_cmd_len+:} false; then :
5971   $as_echo_n "(cached) " >&6
5972 else
5973     i=0
5974   teststring="ABCD"
5975
5976   case $build_os in
5977   msdosdjgpp*)
5978     # On DJGPP, this test can blow up pretty badly due to problems in libc
5979     # (any single argument exceeding 2000 bytes causes a buffer overrun
5980     # during glob expansion).  Even if it were fixed, the result of this
5981     # check would be larger than it should be.
5982     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5983     ;;
5984
5985   gnu*)
5986     # Under GNU Hurd, this test is not required because there is
5987     # no limit to the length of command line arguments.
5988     # Libtool will interpret -1 as no limit whatsoever
5989     lt_cv_sys_max_cmd_len=-1;
5990     ;;
5991
5992   cygwin* | mingw*)
5993     # On Win9x/ME, this test blows up -- it succeeds, but takes
5994     # about 5 minutes as the teststring grows exponentially.
5995     # Worse, since 9x/ME are not pre-emptively multitasking,
5996     # you end up with a "frozen" computer, even though with patience
5997     # the test eventually succeeds (with a max line length of 256k).
5998     # Instead, let's just punt: use the minimum linelength reported by
5999     # all of the supported platforms: 8192 (on NT/2K/XP).
6000     lt_cv_sys_max_cmd_len=8192;
6001     ;;
6002
6003   amigaos*)
6004     # On AmigaOS with pdksh, this test takes hours, literally.
6005     # So we just punt and use a minimum line length of 8192.
6006     lt_cv_sys_max_cmd_len=8192;
6007     ;;
6008
6009   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6010     # This has been around since 386BSD, at least.  Likely further.
6011     if test -x /sbin/sysctl; then
6012       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6013     elif test -x /usr/sbin/sysctl; then
6014       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6015     else
6016       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6017     fi
6018     # And add a safety zone
6019     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6020     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6021     ;;
6022
6023   interix*)
6024     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6025     lt_cv_sys_max_cmd_len=196608
6026     ;;
6027
6028   osf*)
6029     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6030     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6031     # nice to cause kernel panics so lets avoid the loop below.
6032     # First set a reasonable default.
6033     lt_cv_sys_max_cmd_len=16384
6034     #
6035     if test -x /sbin/sysconfig; then
6036       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6037         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6038       esac
6039     fi
6040     ;;
6041   sco3.2v5*)
6042     lt_cv_sys_max_cmd_len=102400
6043     ;;
6044   sysv5* | sco5v6* | sysv4.2uw2*)
6045     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6046     if test -n "$kargmax"; then
6047       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6048     else
6049       lt_cv_sys_max_cmd_len=32768
6050     fi
6051     ;;
6052   *)
6053     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6054     if test -n "$lt_cv_sys_max_cmd_len"; then
6055       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6056       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6057     else
6058       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6059       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6060                = "XX$teststring") >/dev/null 2>&1 &&
6061               new_result=`expr "X$teststring" : ".*" 2>&1` &&
6062               lt_cv_sys_max_cmd_len=$new_result &&
6063               test $i != 17 # 1/2 MB should be enough
6064       do
6065         i=`expr $i + 1`
6066         teststring=$teststring$teststring
6067       done
6068       teststring=
6069       # Add a significant safety factor because C++ compilers can tack on massive
6070       # amounts of additional arguments before passing them to the linker.
6071       # It appears as though 1/2 is a usable value.
6072       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6073     fi
6074     ;;
6075   esac
6076
6077 fi
6078
6079 if test -n $lt_cv_sys_max_cmd_len ; then
6080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6081 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6082 else
6083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6084 $as_echo "none" >&6; }
6085 fi
6086
6087
6088
6089
6090
6091 # Check for command to grab the raw symbol name followed by C symbol from nm.
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6093 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6094 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6095   $as_echo_n "(cached) " >&6
6096 else
6097
6098 # These are sane defaults that work on at least a few old systems.
6099 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6100
6101 # Character class describing NM global symbol codes.
6102 symcode='[BCDEGRST]'
6103
6104 # Regexp to match symbols that can be accessed directly from C.
6105 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6106
6107 # Transform an extracted symbol line into a proper C declaration
6108 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6109
6110 # Transform an extracted symbol line into symbol name and symbol address
6111 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6112
6113 # Define system-specific variables.
6114 case $host_os in
6115 aix*)
6116   symcode='[BCDT]'
6117   ;;
6118 cygwin* | mingw* | pw32*)
6119   symcode='[ABCDGISTW]'
6120   ;;
6121 hpux*) # Its linker distinguishes data from code symbols
6122   if test "$host_cpu" = ia64; then
6123     symcode='[ABCDEGRST]'
6124   fi
6125   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6126   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6127   ;;
6128 linux* | k*bsd*-gnu)
6129   if test "$host_cpu" = ia64; then
6130     symcode='[ABCDGIRSTW]'
6131     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6132     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6133   fi
6134   ;;
6135 irix* | nonstopux*)
6136   symcode='[BCDEGRST]'
6137   ;;
6138 osf*)
6139   symcode='[BCDEGQRST]'
6140   ;;
6141 solaris*)
6142   symcode='[BDRT]'
6143   ;;
6144 sco3.2v5*)
6145   symcode='[DT]'
6146   ;;
6147 sysv4.2uw2*)
6148   symcode='[DT]'
6149   ;;
6150 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6151   symcode='[ABDT]'
6152   ;;
6153 sysv4)
6154   symcode='[DFNSTU]'
6155   ;;
6156 esac
6157
6158 # Handle CRLF in mingw tool chain
6159 opt_cr=
6160 case $build_os in
6161 mingw*)
6162   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6163   ;;
6164 esac
6165
6166 # If we're using GNU nm, then use its standard symbol codes.
6167 case `$NM -V 2>&1` in
6168 *GNU* | *'with BFD'*)
6169   symcode='[ABCDGIRSTW]' ;;
6170 esac
6171
6172 # Try without a prefix undercore, then with it.
6173 for ac_symprfx in "" "_"; do
6174
6175   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6176   symxfrm="\\1 $ac_symprfx\\2 \\2"
6177
6178   # Write the raw and C identifiers.
6179   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6180
6181   # Check to see that the pipe works correctly.
6182   pipe_works=no
6183
6184   rm -f conftest*
6185   cat > conftest.$ac_ext <<EOF
6186 #ifdef __cplusplus
6187 extern "C" {
6188 #endif
6189 char nm_test_var;
6190 void nm_test_func(){}
6191 #ifdef __cplusplus
6192 }
6193 #endif
6194 int main(){nm_test_var='a';nm_test_func();return(0);}
6195 EOF
6196
6197   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6198   (eval $ac_compile) 2>&5
6199   ac_status=$?
6200   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6201   test $ac_status = 0; }; then
6202     # Now try to grab the symbols.
6203     nlist=conftest.nm
6204     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6205   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6206   ac_status=$?
6207   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6208   test $ac_status = 0; } && test -s "$nlist"; then
6209       # Try sorting and uniquifying the output.
6210       if sort "$nlist" | uniq > "$nlist"T; then
6211         mv -f "$nlist"T "$nlist"
6212       else
6213         rm -f "$nlist"T
6214       fi
6215
6216       # Make sure that we snagged all the symbols we need.
6217       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6218         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6219           cat <<EOF > conftest.$ac_ext
6220 #ifdef __cplusplus
6221 extern "C" {
6222 #endif
6223
6224 EOF
6225           # Now generate the symbol file.
6226           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6227
6228           cat <<EOF >> conftest.$ac_ext
6229 #if defined (__STDC__) && __STDC__
6230 # define lt_ptr_t void *
6231 #else
6232 # define lt_ptr_t char *
6233 # define const
6234 #endif
6235
6236 /* The mapping between symbol names and symbols. */
6237 const struct {
6238   const char *name;
6239   lt_ptr_t address;
6240 }
6241 lt_preloaded_symbols[] =
6242 {
6243 EOF
6244           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6245           cat <<\EOF >> conftest.$ac_ext
6246   {0, (lt_ptr_t) 0}
6247 };
6248
6249 #ifdef __cplusplus
6250 }
6251 #endif
6252 EOF
6253           # Now try linking the two files.
6254           mv conftest.$ac_objext conftstm.$ac_objext
6255           lt_save_LIBS="$LIBS"
6256           lt_save_CFLAGS="$CFLAGS"
6257           LIBS="conftstm.$ac_objext"
6258           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6259           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6260   (eval $ac_link) 2>&5
6261   ac_status=$?
6262   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6263   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6264             pipe_works=yes
6265           fi
6266           LIBS="$lt_save_LIBS"
6267           CFLAGS="$lt_save_CFLAGS"
6268         else
6269           echo "cannot find nm_test_func in $nlist" >&5
6270         fi
6271       else
6272         echo "cannot find nm_test_var in $nlist" >&5
6273       fi
6274     else
6275       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6276     fi
6277   else
6278     echo "$progname: failed program was:" >&5
6279     cat conftest.$ac_ext >&5
6280   fi
6281   rm -rf conftest* conftst*
6282
6283   # Do not use the global_symbol_pipe unless it works.
6284   if test "$pipe_works" = yes; then
6285     break
6286   else
6287     lt_cv_sys_global_symbol_pipe=
6288   fi
6289 done
6290
6291 fi
6292
6293 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6294   lt_cv_sys_global_symbol_to_cdecl=
6295 fi
6296 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6298 $as_echo "failed" >&6; }
6299 else
6300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6301 $as_echo "ok" >&6; }
6302 fi
6303
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6305 $as_echo_n "checking for objdir... " >&6; }
6306 if ${lt_cv_objdir+:} false; then :
6307   $as_echo_n "(cached) " >&6
6308 else
6309   rm -f .libs 2>/dev/null
6310 mkdir .libs 2>/dev/null
6311 if test -d .libs; then
6312   lt_cv_objdir=.libs
6313 else
6314   # MS-DOS does not allow filenames that begin with a dot.
6315   lt_cv_objdir=_libs
6316 fi
6317 rmdir .libs 2>/dev/null
6318 fi
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6320 $as_echo "$lt_cv_objdir" >&6; }
6321 objdir=$lt_cv_objdir
6322
6323
6324
6325
6326
6327 case $host_os in
6328 aix3*)
6329   # AIX sometimes has problems with the GCC collect2 program.  For some
6330   # reason, if we set the COLLECT_NAMES environment variable, the problems
6331   # vanish in a puff of smoke.
6332   if test "X${COLLECT_NAMES+set}" != Xset; then
6333     COLLECT_NAMES=
6334     export COLLECT_NAMES
6335   fi
6336   ;;
6337 esac
6338
6339 # Sed substitution that helps us do robust quoting.  It backslashifies
6340 # metacharacters that are still active within double-quoted strings.
6341 Xsed='sed -e 1s/^X//'
6342 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6343
6344 # Same as above, but do not quote variable references.
6345 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6346
6347 # Sed substitution to delay expansion of an escaped shell variable in a
6348 # double_quote_subst'ed string.
6349 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6350
6351 # Sed substitution to avoid accidental globbing in evaled expressions
6352 no_glob_subst='s/\*/\\\*/g'
6353
6354 # Constants:
6355 rm="rm -f"
6356
6357 # Global variables:
6358 default_ofile=libtool
6359 can_build_shared=yes
6360
6361 # All known linkers require a `.a' archive for static linking (except MSVC,
6362 # which needs '.lib').
6363 libext=a
6364 ltmain="$ac_aux_dir/ltmain.sh"
6365 ofile="$default_ofile"
6366 with_gnu_ld="$lt_cv_prog_gnu_ld"
6367
6368 if test -n "$ac_tool_prefix"; then
6369   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6370 set dummy ${ac_tool_prefix}ar; ac_word=$2
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6372 $as_echo_n "checking for $ac_word... " >&6; }
6373 if ${ac_cv_prog_AR+:} false; then :
6374   $as_echo_n "(cached) " >&6
6375 else
6376   if test -n "$AR"; then
6377   ac_cv_prog_AR="$AR" # Let the user override the test.
6378 else
6379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6380 for as_dir in $PATH
6381 do
6382   IFS=$as_save_IFS
6383   test -z "$as_dir" && as_dir=.
6384     for ac_exec_ext in '' $ac_executable_extensions; do
6385   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6386     ac_cv_prog_AR="${ac_tool_prefix}ar"
6387     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6388     break 2
6389   fi
6390 done
6391   done
6392 IFS=$as_save_IFS
6393
6394 fi
6395 fi
6396 AR=$ac_cv_prog_AR
6397 if test -n "$AR"; then
6398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6399 $as_echo "$AR" >&6; }
6400 else
6401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6402 $as_echo "no" >&6; }
6403 fi
6404
6405
6406 fi
6407 if test -z "$ac_cv_prog_AR"; then
6408   ac_ct_AR=$AR
6409   # Extract the first word of "ar", so it can be a program name with args.
6410 set dummy ar; ac_word=$2
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6412 $as_echo_n "checking for $ac_word... " >&6; }
6413 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6414   $as_echo_n "(cached) " >&6
6415 else
6416   if test -n "$ac_ct_AR"; then
6417   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6418 else
6419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6420 for as_dir in $PATH
6421 do
6422   IFS=$as_save_IFS
6423   test -z "$as_dir" && as_dir=.
6424     for ac_exec_ext in '' $ac_executable_extensions; do
6425   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6426     ac_cv_prog_ac_ct_AR="ar"
6427     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6428     break 2
6429   fi
6430 done
6431   done
6432 IFS=$as_save_IFS
6433
6434 fi
6435 fi
6436 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6437 if test -n "$ac_ct_AR"; then
6438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6439 $as_echo "$ac_ct_AR" >&6; }
6440 else
6441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6442 $as_echo "no" >&6; }
6443 fi
6444
6445   if test "x$ac_ct_AR" = x; then
6446     AR="false"
6447   else
6448     case $cross_compiling:$ac_tool_warned in
6449 yes:)
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6451 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6452 ac_tool_warned=yes ;;
6453 esac
6454     AR=$ac_ct_AR
6455   fi
6456 else
6457   AR="$ac_cv_prog_AR"
6458 fi
6459
6460 if test -n "$ac_tool_prefix"; then
6461   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6462 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6464 $as_echo_n "checking for $ac_word... " >&6; }
6465 if ${ac_cv_prog_RANLIB+:} false; then :
6466   $as_echo_n "(cached) " >&6
6467 else
6468   if test -n "$RANLIB"; then
6469   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6470 else
6471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6472 for as_dir in $PATH
6473 do
6474   IFS=$as_save_IFS
6475   test -z "$as_dir" && as_dir=.
6476     for ac_exec_ext in '' $ac_executable_extensions; do
6477   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6478     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6479     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6480     break 2
6481   fi
6482 done
6483   done
6484 IFS=$as_save_IFS
6485
6486 fi
6487 fi
6488 RANLIB=$ac_cv_prog_RANLIB
6489 if test -n "$RANLIB"; then
6490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6491 $as_echo "$RANLIB" >&6; }
6492 else
6493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6494 $as_echo "no" >&6; }
6495 fi
6496
6497
6498 fi
6499 if test -z "$ac_cv_prog_RANLIB"; then
6500   ac_ct_RANLIB=$RANLIB
6501   # Extract the first word of "ranlib", so it can be a program name with args.
6502 set dummy ranlib; ac_word=$2
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6504 $as_echo_n "checking for $ac_word... " >&6; }
6505 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6506   $as_echo_n "(cached) " >&6
6507 else
6508   if test -n "$ac_ct_RANLIB"; then
6509   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6510 else
6511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6512 for as_dir in $PATH
6513 do
6514   IFS=$as_save_IFS
6515   test -z "$as_dir" && as_dir=.
6516     for ac_exec_ext in '' $ac_executable_extensions; do
6517   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6518     ac_cv_prog_ac_ct_RANLIB="ranlib"
6519     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6520     break 2
6521   fi
6522 done
6523   done
6524 IFS=$as_save_IFS
6525
6526 fi
6527 fi
6528 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6529 if test -n "$ac_ct_RANLIB"; then
6530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6531 $as_echo "$ac_ct_RANLIB" >&6; }
6532 else
6533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6534 $as_echo "no" >&6; }
6535 fi
6536
6537   if test "x$ac_ct_RANLIB" = x; then
6538     RANLIB=":"
6539   else
6540     case $cross_compiling:$ac_tool_warned in
6541 yes:)
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6543 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6544 ac_tool_warned=yes ;;
6545 esac
6546     RANLIB=$ac_ct_RANLIB
6547   fi
6548 else
6549   RANLIB="$ac_cv_prog_RANLIB"
6550 fi
6551
6552 if test -n "$ac_tool_prefix"; then
6553   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6554 set dummy ${ac_tool_prefix}strip; ac_word=$2
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6556 $as_echo_n "checking for $ac_word... " >&6; }
6557 if ${ac_cv_prog_STRIP+:} false; then :
6558   $as_echo_n "(cached) " >&6
6559 else
6560   if test -n "$STRIP"; then
6561   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6562 else
6563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6564 for as_dir in $PATH
6565 do
6566   IFS=$as_save_IFS
6567   test -z "$as_dir" && as_dir=.
6568     for ac_exec_ext in '' $ac_executable_extensions; do
6569   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6570     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6571     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6572     break 2
6573   fi
6574 done
6575   done
6576 IFS=$as_save_IFS
6577
6578 fi
6579 fi
6580 STRIP=$ac_cv_prog_STRIP
6581 if test -n "$STRIP"; then
6582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6583 $as_echo "$STRIP" >&6; }
6584 else
6585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6586 $as_echo "no" >&6; }
6587 fi
6588
6589
6590 fi
6591 if test -z "$ac_cv_prog_STRIP"; then
6592   ac_ct_STRIP=$STRIP
6593   # Extract the first word of "strip", so it can be a program name with args.
6594 set dummy strip; ac_word=$2
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6596 $as_echo_n "checking for $ac_word... " >&6; }
6597 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6598   $as_echo_n "(cached) " >&6
6599 else
6600   if test -n "$ac_ct_STRIP"; then
6601   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6602 else
6603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6604 for as_dir in $PATH
6605 do
6606   IFS=$as_save_IFS
6607   test -z "$as_dir" && as_dir=.
6608     for ac_exec_ext in '' $ac_executable_extensions; do
6609   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6610     ac_cv_prog_ac_ct_STRIP="strip"
6611     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6612     break 2
6613   fi
6614 done
6615   done
6616 IFS=$as_save_IFS
6617
6618 fi
6619 fi
6620 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6621 if test -n "$ac_ct_STRIP"; then
6622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6623 $as_echo "$ac_ct_STRIP" >&6; }
6624 else
6625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6626 $as_echo "no" >&6; }
6627 fi
6628
6629   if test "x$ac_ct_STRIP" = x; then
6630     STRIP=":"
6631   else
6632     case $cross_compiling:$ac_tool_warned in
6633 yes:)
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6635 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6636 ac_tool_warned=yes ;;
6637 esac
6638     STRIP=$ac_ct_STRIP
6639   fi
6640 else
6641   STRIP="$ac_cv_prog_STRIP"
6642 fi
6643
6644
6645 old_CC="$CC"
6646 old_CFLAGS="$CFLAGS"
6647
6648 # Set sane defaults for various variables
6649 test -z "$AR" && AR=ar
6650 test -z "$AR_FLAGS" && AR_FLAGS=cru
6651 test -z "$AS" && AS=as
6652 test -z "$CC" && CC=cc
6653 test -z "$LTCC" && LTCC=$CC
6654 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6655 test -z "$DLLTOOL" && DLLTOOL=dlltool
6656 test -z "$LD" && LD=ld
6657 test -z "$LN_S" && LN_S="ln -s"
6658 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6659 test -z "$NM" && NM=nm
6660 test -z "$SED" && SED=sed
6661 test -z "$OBJDUMP" && OBJDUMP=objdump
6662 test -z "$RANLIB" && RANLIB=:
6663 test -z "$STRIP" && STRIP=:
6664 test -z "$ac_objext" && ac_objext=o
6665
6666 # Determine commands to create old-style static archives.
6667 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6668 old_postinstall_cmds='chmod 644 $oldlib'
6669 old_postuninstall_cmds=
6670
6671 if test -n "$RANLIB"; then
6672   case $host_os in
6673   openbsd*)
6674     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6675     ;;
6676   *)
6677     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6678     ;;
6679   esac
6680   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6681 fi
6682
6683 for cc_temp in $compiler""; do
6684   case $cc_temp in
6685     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6686     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6687     \-*) ;;
6688     *) break;;
6689   esac
6690 done
6691 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6692
6693
6694 # Only perform the check for file, if the check method requires it
6695 case $deplibs_check_method in
6696 file_magic*)
6697   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6698     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6699 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6700 if ${lt_cv_path_MAGIC_CMD+:} false; then :
6701   $as_echo_n "(cached) " >&6
6702 else
6703   case $MAGIC_CMD in
6704 [\\/*] |  ?:[\\/]*)
6705   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6706   ;;
6707 *)
6708   lt_save_MAGIC_CMD="$MAGIC_CMD"
6709   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6710   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6711   for ac_dir in $ac_dummy; do
6712     IFS="$lt_save_ifs"
6713     test -z "$ac_dir" && ac_dir=.
6714     if test -f $ac_dir/${ac_tool_prefix}file; then
6715       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6716       if test -n "$file_magic_test_file"; then
6717         case $deplibs_check_method in
6718         "file_magic "*)
6719           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6720           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6721           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6722             $EGREP "$file_magic_regex" > /dev/null; then
6723             :
6724           else
6725             cat <<EOF 1>&2
6726
6727 *** Warning: the command libtool uses to detect shared libraries,
6728 *** $file_magic_cmd, produces output that libtool cannot recognize.
6729 *** The result is that libtool may fail to recognize shared libraries
6730 *** as such.  This will affect the creation of libtool libraries that
6731 *** depend on shared libraries, but programs linked with such libtool
6732 *** libraries will work regardless of this problem.  Nevertheless, you
6733 *** may want to report the problem to your system manager and/or to
6734 *** bug-libtool@gnu.org
6735
6736 EOF
6737           fi ;;
6738         esac
6739       fi
6740       break
6741     fi
6742   done
6743   IFS="$lt_save_ifs"
6744   MAGIC_CMD="$lt_save_MAGIC_CMD"
6745   ;;
6746 esac
6747 fi
6748
6749 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6750 if test -n "$MAGIC_CMD"; then
6751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6752 $as_echo "$MAGIC_CMD" >&6; }
6753 else
6754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6755 $as_echo "no" >&6; }
6756 fi
6757
6758 if test -z "$lt_cv_path_MAGIC_CMD"; then
6759   if test -n "$ac_tool_prefix"; then
6760     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6761 $as_echo_n "checking for file... " >&6; }
6762 if ${lt_cv_path_MAGIC_CMD+:} false; then :
6763   $as_echo_n "(cached) " >&6
6764 else
6765   case $MAGIC_CMD in
6766 [\\/*] |  ?:[\\/]*)
6767   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6768   ;;
6769 *)
6770   lt_save_MAGIC_CMD="$MAGIC_CMD"
6771   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6772   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6773   for ac_dir in $ac_dummy; do
6774     IFS="$lt_save_ifs"
6775     test -z "$ac_dir" && ac_dir=.
6776     if test -f $ac_dir/file; then
6777       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6778       if test -n "$file_magic_test_file"; then
6779         case $deplibs_check_method in
6780         "file_magic "*)
6781           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6782           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6783           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6784             $EGREP "$file_magic_regex" > /dev/null; then
6785             :
6786           else
6787             cat <<EOF 1>&2
6788
6789 *** Warning: the command libtool uses to detect shared libraries,
6790 *** $file_magic_cmd, produces output that libtool cannot recognize.
6791 *** The result is that libtool may fail to recognize shared libraries
6792 *** as such.  This will affect the creation of libtool libraries that
6793 *** depend on shared libraries, but programs linked with such libtool
6794 *** libraries will work regardless of this problem.  Nevertheless, you
6795 *** may want to report the problem to your system manager and/or to
6796 *** bug-libtool@gnu.org
6797
6798 EOF
6799           fi ;;
6800         esac
6801       fi
6802       break
6803     fi
6804   done
6805   IFS="$lt_save_ifs"
6806   MAGIC_CMD="$lt_save_MAGIC_CMD"
6807   ;;
6808 esac
6809 fi
6810
6811 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6812 if test -n "$MAGIC_CMD"; then
6813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6814 $as_echo "$MAGIC_CMD" >&6; }
6815 else
6816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6817 $as_echo "no" >&6; }
6818 fi
6819
6820   else
6821     MAGIC_CMD=:
6822   fi
6823 fi
6824
6825   fi
6826   ;;
6827 esac
6828
6829
6830   case $host_os in
6831     rhapsody* | darwin*)
6832     if test -n "$ac_tool_prefix"; then
6833   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6834 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6836 $as_echo_n "checking for $ac_word... " >&6; }
6837 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6838   $as_echo_n "(cached) " >&6
6839 else
6840   if test -n "$DSYMUTIL"; then
6841   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6842 else
6843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6844 for as_dir in $PATH
6845 do
6846   IFS=$as_save_IFS
6847   test -z "$as_dir" && as_dir=.
6848     for ac_exec_ext in '' $ac_executable_extensions; do
6849   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6850     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6851     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6852     break 2
6853   fi
6854 done
6855   done
6856 IFS=$as_save_IFS
6857
6858 fi
6859 fi
6860 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6861 if test -n "$DSYMUTIL"; then
6862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6863 $as_echo "$DSYMUTIL" >&6; }
6864 else
6865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6866 $as_echo "no" >&6; }
6867 fi
6868
6869
6870 fi
6871 if test -z "$ac_cv_prog_DSYMUTIL"; then
6872   ac_ct_DSYMUTIL=$DSYMUTIL
6873   # Extract the first word of "dsymutil", so it can be a program name with args.
6874 set dummy dsymutil; ac_word=$2
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6876 $as_echo_n "checking for $ac_word... " >&6; }
6877 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6878   $as_echo_n "(cached) " >&6
6879 else
6880   if test -n "$ac_ct_DSYMUTIL"; then
6881   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6882 else
6883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6884 for as_dir in $PATH
6885 do
6886   IFS=$as_save_IFS
6887   test -z "$as_dir" && as_dir=.
6888     for ac_exec_ext in '' $ac_executable_extensions; do
6889   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6890     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6891     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6892     break 2
6893   fi
6894 done
6895   done
6896 IFS=$as_save_IFS
6897
6898 fi
6899 fi
6900 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6901 if test -n "$ac_ct_DSYMUTIL"; then
6902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6903 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6904 else
6905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6906 $as_echo "no" >&6; }
6907 fi
6908
6909   if test "x$ac_ct_DSYMUTIL" = x; then
6910     DSYMUTIL=":"
6911   else
6912     case $cross_compiling:$ac_tool_warned in
6913 yes:)
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6915 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6916 ac_tool_warned=yes ;;
6917 esac
6918     DSYMUTIL=$ac_ct_DSYMUTIL
6919   fi
6920 else
6921   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6922 fi
6923
6924     if test -n "$ac_tool_prefix"; then
6925   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6926 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6928 $as_echo_n "checking for $ac_word... " >&6; }
6929 if ${ac_cv_prog_NMEDIT+:} false; then :
6930   $as_echo_n "(cached) " >&6
6931 else
6932   if test -n "$NMEDIT"; then
6933   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6934 else
6935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6936 for as_dir in $PATH
6937 do
6938   IFS=$as_save_IFS
6939   test -z "$as_dir" && as_dir=.
6940     for ac_exec_ext in '' $ac_executable_extensions; do
6941   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6942     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6943     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6944     break 2
6945   fi
6946 done
6947   done
6948 IFS=$as_save_IFS
6949
6950 fi
6951 fi
6952 NMEDIT=$ac_cv_prog_NMEDIT
6953 if test -n "$NMEDIT"; then
6954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6955 $as_echo "$NMEDIT" >&6; }
6956 else
6957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6958 $as_echo "no" >&6; }
6959 fi
6960
6961
6962 fi
6963 if test -z "$ac_cv_prog_NMEDIT"; then
6964   ac_ct_NMEDIT=$NMEDIT
6965   # Extract the first word of "nmedit", so it can be a program name with args.
6966 set dummy nmedit; ac_word=$2
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6968 $as_echo_n "checking for $ac_word... " >&6; }
6969 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6970   $as_echo_n "(cached) " >&6
6971 else
6972   if test -n "$ac_ct_NMEDIT"; then
6973   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6974 else
6975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6976 for as_dir in $PATH
6977 do
6978   IFS=$as_save_IFS
6979   test -z "$as_dir" && as_dir=.
6980     for ac_exec_ext in '' $ac_executable_extensions; do
6981   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6982     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6983     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6984     break 2
6985   fi
6986 done
6987   done
6988 IFS=$as_save_IFS
6989
6990 fi
6991 fi
6992 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6993 if test -n "$ac_ct_NMEDIT"; then
6994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6995 $as_echo "$ac_ct_NMEDIT" >&6; }
6996 else
6997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6998 $as_echo "no" >&6; }
6999 fi
7000
7001   if test "x$ac_ct_NMEDIT" = x; then
7002     NMEDIT=":"
7003   else
7004     case $cross_compiling:$ac_tool_warned in
7005 yes:)
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7007 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7008 ac_tool_warned=yes ;;
7009 esac
7010     NMEDIT=$ac_ct_NMEDIT
7011   fi
7012 else
7013   NMEDIT="$ac_cv_prog_NMEDIT"
7014 fi
7015
7016
7017     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7018 $as_echo_n "checking for -single_module linker flag... " >&6; }
7019 if ${lt_cv_apple_cc_single_mod+:} false; then :
7020   $as_echo_n "(cached) " >&6
7021 else
7022   lt_cv_apple_cc_single_mod=no
7023       if test -z "${LT_MULTI_MODULE}"; then
7024    # By default we will add the -single_module flag. You can override
7025    # by either setting the environment variable LT_MULTI_MODULE
7026    # non-empty at configure time, or by adding -multi_module to the
7027    # link flags.
7028    echo "int foo(void){return 1;}" > conftest.c
7029    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7030      -dynamiclib ${wl}-single_module conftest.c
7031    if test -f libconftest.dylib; then
7032      lt_cv_apple_cc_single_mod=yes
7033      rm -rf libconftest.dylib*
7034    fi
7035    rm conftest.c
7036       fi
7037 fi
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7039 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7040     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7041 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7042 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7043   $as_echo_n "(cached) " >&6
7044 else
7045   lt_cv_ld_exported_symbols_list=no
7046       save_LDFLAGS=$LDFLAGS
7047       echo "_main" > conftest.sym
7048       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7049       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7050 /* end confdefs.h.  */
7051
7052 int
7053 main ()
7054 {
7055
7056   ;
7057   return 0;
7058 }
7059 _ACEOF
7060 if ac_fn_c_try_link "$LINENO"; then :
7061   lt_cv_ld_exported_symbols_list=yes
7062 else
7063   lt_cv_ld_exported_symbols_list=no
7064 fi
7065 rm -f core conftest.err conftest.$ac_objext \
7066     conftest$ac_exeext conftest.$ac_ext
7067    LDFLAGS="$save_LDFLAGS"
7068
7069 fi
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7071 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7072     case $host_os in
7073     rhapsody* | darwin1.[0123])
7074       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7075     darwin1.*)
7076      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7077     darwin*)
7078       # if running on 10.5 or later, the deployment target defaults
7079       # to the OS version, if on x86, and 10.4, the deployment
7080       # target defaults to 10.4. Don't you love it?
7081       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7082    10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7083      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7084    10.[012]*)
7085      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7086    10.*)
7087      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7088       esac
7089     ;;
7090   esac
7091     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7092       _lt_dar_single_mod='$single_module'
7093     fi
7094     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7095       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7096     else
7097       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7098     fi
7099     if test "$DSYMUTIL" != ":"; then
7100       _lt_dsymutil="~$DSYMUTIL \$lib || :"
7101     else
7102       _lt_dsymutil=
7103     fi
7104     ;;
7105   esac
7106
7107
7108 enable_dlopen=no
7109 enable_win32_dll=no
7110
7111 # Check whether --enable-libtool-lock was given.
7112 if test "${enable_libtool_lock+set}" = set; then :
7113   enableval=$enable_libtool_lock;
7114 fi
7115
7116 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7117
7118
7119 # Check whether --with-pic was given.
7120 if test "${with_pic+set}" = set; then :
7121   withval=$with_pic; pic_mode="$withval"
7122 else
7123   pic_mode=default
7124 fi
7125
7126 test -z "$pic_mode" && pic_mode=default
7127
7128 # Use C for the default configuration in the libtool script
7129 tagname=
7130 lt_save_CC="$CC"
7131 ac_ext=c
7132 ac_cpp='$CPP $CPPFLAGS'
7133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7136
7137
7138 # Source file extension for C test sources.
7139 ac_ext=c
7140
7141 # Object file extension for compiled C test sources.
7142 objext=o
7143 objext=$objext
7144
7145 # Code to be used in simple compile tests
7146 lt_simple_compile_test_code="int some_variable = 0;"
7147
7148 # Code to be used in simple link tests
7149 lt_simple_link_test_code='int main(){return(0);}'
7150
7151
7152 # If no C compiler was specified, use CC.
7153 LTCC=${LTCC-"$CC"}
7154
7155 # If no C compiler flags were specified, use CFLAGS.
7156 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7157
7158 # Allow CC to be a program name with arguments.
7159 compiler=$CC
7160
7161
7162 # save warnings/boilerplate of simple test code
7163 ac_outfile=conftest.$ac_objext
7164 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7165 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7166 _lt_compiler_boilerplate=`cat conftest.err`
7167 $rm conftest*
7168
7169 ac_outfile=conftest.$ac_objext
7170 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7171 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7172 _lt_linker_boilerplate=`cat conftest.err`
7173 $rm -r conftest*
7174
7175
7176
7177 lt_prog_compiler_no_builtin_flag=
7178
7179 if test "$GCC" = yes; then
7180   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7181
7182
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7184 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7185 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7186   $as_echo_n "(cached) " >&6
7187 else
7188   lt_cv_prog_compiler_rtti_exceptions=no
7189   ac_outfile=conftest.$ac_objext
7190    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7191    lt_compiler_flag="-fno-rtti -fno-exceptions"
7192    # Insert the option either (1) after the last *FLAGS variable, or
7193    # (2) before a word containing "conftest.", or (3) at the end.
7194    # Note that $ac_compile itself does not contain backslashes and begins
7195    # with a dollar sign (not a hyphen), so the echo should work correctly.
7196    # The option is referenced via a variable to avoid confusing sed.
7197    lt_compile=`echo "$ac_compile" | $SED \
7198    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7199    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7200    -e 's:$: $lt_compiler_flag:'`
7201    (eval echo "\"\$as_me:7201: $lt_compile\"" >&5)
7202    (eval "$lt_compile" 2>conftest.err)
7203    ac_status=$?
7204    cat conftest.err >&5
7205    echo "$as_me:7205: \$? = $ac_status" >&5
7206    if (exit $ac_status) && test -s "$ac_outfile"; then
7207      # The compiler can only warn and ignore the option if not recognized
7208      # So say no if there are warnings other than the usual output.
7209      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7210      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7211      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7212        lt_cv_prog_compiler_rtti_exceptions=yes
7213      fi
7214    fi
7215    $rm conftest*
7216
7217 fi
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7219 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7220
7221 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7222     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7223 else
7224     :
7225 fi
7226
7227 fi
7228
7229 lt_prog_compiler_wl=
7230 lt_prog_compiler_pic=
7231 lt_prog_compiler_static=
7232
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7234 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7235
7236   if test "$GCC" = yes; then
7237     lt_prog_compiler_wl='-Wl,'
7238     lt_prog_compiler_static='-static'
7239
7240     case $host_os in
7241       aix*)
7242       # All AIX code is PIC.
7243       if test "$host_cpu" = ia64; then
7244         # AIX 5 now supports IA64 processor
7245         lt_prog_compiler_static='-Bstatic'
7246       fi
7247       ;;
7248
7249     amigaos*)
7250       # FIXME: we need at least 68020 code to build shared libraries, but
7251       # adding the `-m68020' flag to GCC prevents building anything better,
7252       # like `-m68040'.
7253       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7254       ;;
7255
7256     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7257       # PIC is the default for these OSes.
7258       ;;
7259
7260     mingw* | cygwin* | pw32* | os2*)
7261       # This hack is so that the source file can tell whether it is being
7262       # built for inclusion in a dll (and should export symbols for example).
7263       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7264       # (--disable-auto-import) libraries
7265       lt_prog_compiler_pic='-DDLL_EXPORT'
7266       ;;
7267
7268     darwin* | rhapsody*)
7269       # PIC is the default on this platform
7270       # Common symbols not allowed in MH_DYLIB files
7271       lt_prog_compiler_pic='-fno-common'
7272       ;;
7273
7274     interix[3-9]*)
7275       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7276       # Instead, we relocate shared libraries at runtime.
7277       ;;
7278
7279     msdosdjgpp*)
7280       # Just because we use GCC doesn't mean we suddenly get shared libraries
7281       # on systems that don't support them.
7282       lt_prog_compiler_can_build_shared=no
7283       enable_shared=no
7284       ;;
7285
7286     sysv4*MP*)
7287       if test -d /usr/nec; then
7288         lt_prog_compiler_pic=-Kconform_pic
7289       fi
7290       ;;
7291
7292     hpux*)
7293       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7294       # not for PA HP-UX.
7295       case $host_cpu in
7296       hppa*64*|ia64*)
7297         # +Z the default
7298         ;;
7299       *)
7300         lt_prog_compiler_pic='-fPIC'
7301         ;;
7302       esac
7303       ;;
7304
7305     *)
7306       lt_prog_compiler_pic='-fPIC'
7307       ;;
7308     esac
7309   else
7310     # PORTME Check for flag to pass linker flags through the system compiler.
7311     case $host_os in
7312     aix*)
7313       lt_prog_compiler_wl='-Wl,'
7314       if test "$host_cpu" = ia64; then
7315         # AIX 5 now supports IA64 processor
7316         lt_prog_compiler_static='-Bstatic'
7317       else
7318         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7319       fi
7320       ;;
7321       darwin*)
7322         # PIC is the default on this platform
7323         # Common symbols not allowed in MH_DYLIB files
7324        case $cc_basename in
7325          xlc*)
7326          lt_prog_compiler_pic='-qnocommon'
7327          lt_prog_compiler_wl='-Wl,'
7328          ;;
7329        esac
7330        ;;
7331
7332     mingw* | cygwin* | pw32* | os2*)
7333       # This hack is so that the source file can tell whether it is being
7334       # built for inclusion in a dll (and should export symbols for example).
7335       lt_prog_compiler_pic='-DDLL_EXPORT'
7336       ;;
7337
7338     hpux9* | hpux10* | hpux11*)
7339       lt_prog_compiler_wl='-Wl,'
7340       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7341       # not for PA HP-UX.
7342       case $host_cpu in
7343       hppa*64*|ia64*)
7344         # +Z the default
7345         ;;
7346       *)
7347         lt_prog_compiler_pic='+Z'
7348         ;;
7349       esac
7350       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7351       lt_prog_compiler_static='${wl}-a ${wl}archive'
7352       ;;
7353
7354     irix5* | irix6* | nonstopux*)
7355       lt_prog_compiler_wl='-Wl,'
7356       # PIC (with -KPIC) is the default.
7357       lt_prog_compiler_static='-non_shared'
7358       ;;
7359
7360     newsos6)
7361       lt_prog_compiler_pic='-KPIC'
7362       lt_prog_compiler_static='-Bstatic'
7363       ;;
7364
7365     linux* | k*bsd*-gnu)
7366       case $cc_basename in
7367       icc* | ecc*)
7368         lt_prog_compiler_wl='-Wl,'
7369         lt_prog_compiler_pic='-KPIC'
7370         lt_prog_compiler_static='-static'
7371         ;;
7372       pgcc* | pgf77* | pgf90* | pgf95*)
7373         # Portland Group compilers (*not* the Pentium gcc compiler,
7374         # which looks to be a dead project)
7375         lt_prog_compiler_wl='-Wl,'
7376         lt_prog_compiler_pic='-fpic'
7377         lt_prog_compiler_static='-Bstatic'
7378         ;;
7379       ccc*)
7380         lt_prog_compiler_wl='-Wl,'
7381         # All Alpha code is PIC.
7382         lt_prog_compiler_static='-non_shared'
7383         ;;
7384       *)
7385         case `$CC -V 2>&1 | sed 5q` in
7386         *Sun\ C*)
7387           # Sun C 5.9
7388           lt_prog_compiler_pic='-KPIC'
7389           lt_prog_compiler_static='-Bstatic'
7390           lt_prog_compiler_wl='-Wl,'
7391           ;;
7392         *Sun\ F*)
7393           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7394           lt_prog_compiler_pic='-KPIC'
7395           lt_prog_compiler_static='-Bstatic'
7396           lt_prog_compiler_wl=''
7397           ;;
7398         esac
7399         ;;
7400       esac
7401       ;;
7402
7403     osf3* | osf4* | osf5*)
7404       lt_prog_compiler_wl='-Wl,'
7405       # All OSF/1 code is PIC.
7406       lt_prog_compiler_static='-non_shared'
7407       ;;
7408
7409     rdos*)
7410       lt_prog_compiler_static='-non_shared'
7411       ;;
7412
7413     solaris*)
7414       lt_prog_compiler_pic='-KPIC'
7415       lt_prog_compiler_static='-Bstatic'
7416       case $cc_basename in
7417       f77* | f90* | f95*)
7418         lt_prog_compiler_wl='-Qoption ld ';;
7419       *)
7420         lt_prog_compiler_wl='-Wl,';;
7421       esac
7422       ;;
7423
7424     sunos4*)
7425       lt_prog_compiler_wl='-Qoption ld '
7426       lt_prog_compiler_pic='-PIC'
7427       lt_prog_compiler_static='-Bstatic'
7428       ;;
7429
7430     sysv4 | sysv4.2uw2* | sysv4.3*)
7431       lt_prog_compiler_wl='-Wl,'
7432       lt_prog_compiler_pic='-KPIC'
7433       lt_prog_compiler_static='-Bstatic'
7434       ;;
7435
7436     sysv4*MP*)
7437       if test -d /usr/nec ;then
7438         lt_prog_compiler_pic='-Kconform_pic'
7439         lt_prog_compiler_static='-Bstatic'
7440       fi
7441       ;;
7442
7443     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7444       lt_prog_compiler_wl='-Wl,'
7445       lt_prog_compiler_pic='-KPIC'
7446       lt_prog_compiler_static='-Bstatic'
7447       ;;
7448
7449     unicos*)
7450       lt_prog_compiler_wl='-Wl,'
7451       lt_prog_compiler_can_build_shared=no
7452       ;;
7453
7454     uts4*)
7455       lt_prog_compiler_pic='-pic'
7456       lt_prog_compiler_static='-Bstatic'
7457       ;;
7458
7459     *)
7460       lt_prog_compiler_can_build_shared=no
7461       ;;
7462     esac
7463   fi
7464
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7466 $as_echo "$lt_prog_compiler_pic" >&6; }
7467
7468 #
7469 # Check to make sure the PIC flag actually works.
7470 #
7471 if test -n "$lt_prog_compiler_pic"; then
7472
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7474 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7475 if ${lt_cv_prog_compiler_pic_works+:} false; then :
7476   $as_echo_n "(cached) " >&6
7477 else
7478   lt_cv_prog_compiler_pic_works=no
7479   ac_outfile=conftest.$ac_objext
7480    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7481    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7482    # Insert the option either (1) after the last *FLAGS variable, or
7483    # (2) before a word containing "conftest.", or (3) at the end.
7484    # Note that $ac_compile itself does not contain backslashes and begins
7485    # with a dollar sign (not a hyphen), so the echo should work correctly.
7486    # The option is referenced via a variable to avoid confusing sed.
7487    lt_compile=`echo "$ac_compile" | $SED \
7488    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7489    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7490    -e 's:$: $lt_compiler_flag:'`
7491    (eval echo "\"\$as_me:7491: $lt_compile\"" >&5)
7492    (eval "$lt_compile" 2>conftest.err)
7493    ac_status=$?
7494    cat conftest.err >&5
7495    echo "$as_me:7495: \$? = $ac_status" >&5
7496    if (exit $ac_status) && test -s "$ac_outfile"; then
7497      # The compiler can only warn and ignore the option if not recognized
7498      # So say no if there are warnings other than the usual output.
7499      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7500      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7501      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7502        lt_cv_prog_compiler_pic_works=yes
7503      fi
7504    fi
7505    $rm conftest*
7506
7507 fi
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7509 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7510
7511 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7512     case $lt_prog_compiler_pic in
7513      "" | " "*) ;;
7514      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7515      esac
7516 else
7517     lt_prog_compiler_pic=
7518      lt_prog_compiler_can_build_shared=no
7519 fi
7520
7521 fi
7522 case $host_os in
7523   # For platforms which do not support PIC, -DPIC is meaningless:
7524   *djgpp*)
7525     lt_prog_compiler_pic=
7526     ;;
7527   *)
7528     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7529     ;;
7530 esac
7531
7532 #
7533 # Check to make sure the static flag actually works.
7534 #
7535 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7537 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7538 if ${lt_cv_prog_compiler_static_works+:} false; then :
7539   $as_echo_n "(cached) " >&6
7540 else
7541   lt_cv_prog_compiler_static_works=no
7542    save_LDFLAGS="$LDFLAGS"
7543    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7544    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7545    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7546      # The linker can only warn and ignore the option if not recognized
7547      # So say no if there are warnings
7548      if test -s conftest.err; then
7549        # Append any errors to the config.log.
7550        cat conftest.err 1>&5
7551        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7552        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7553        if diff conftest.exp conftest.er2 >/dev/null; then
7554          lt_cv_prog_compiler_static_works=yes
7555        fi
7556      else
7557        lt_cv_prog_compiler_static_works=yes
7558      fi
7559    fi
7560    $rm -r conftest*
7561    LDFLAGS="$save_LDFLAGS"
7562
7563 fi
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7565 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7566
7567 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7568     :
7569 else
7570     lt_prog_compiler_static=
7571 fi
7572
7573
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7575 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7576 if ${lt_cv_prog_compiler_c_o+:} false; then :
7577   $as_echo_n "(cached) " >&6
7578 else
7579   lt_cv_prog_compiler_c_o=no
7580    $rm -r conftest 2>/dev/null
7581    mkdir conftest
7582    cd conftest
7583    mkdir out
7584    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7585
7586    lt_compiler_flag="-o out/conftest2.$ac_objext"
7587    # Insert the option either (1) after the last *FLAGS variable, or
7588    # (2) before a word containing "conftest.", or (3) at the end.
7589    # Note that $ac_compile itself does not contain backslashes and begins
7590    # with a dollar sign (not a hyphen), so the echo should work correctly.
7591    lt_compile=`echo "$ac_compile" | $SED \
7592    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7593    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7594    -e 's:$: $lt_compiler_flag:'`
7595    (eval echo "\"\$as_me:7595: $lt_compile\"" >&5)
7596    (eval "$lt_compile" 2>out/conftest.err)
7597    ac_status=$?
7598    cat out/conftest.err >&5
7599    echo "$as_me:7599: \$? = $ac_status" >&5
7600    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7601    then
7602      # The compiler can only warn and ignore the option if not recognized
7603      # So say no if there are warnings
7604      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7605      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7606      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7607        lt_cv_prog_compiler_c_o=yes
7608      fi
7609    fi
7610    chmod u+w . 2>&5
7611    $rm conftest*
7612    # SGI C++ compiler will create directory out/ii_files/ for
7613    # template instantiation
7614    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7615    $rm out/* && rmdir out
7616    cd ..
7617    rmdir conftest
7618    $rm conftest*
7619
7620 fi
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7622 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7623
7624
7625 hard_links="nottested"
7626 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7627   # do not overwrite the value of need_locks provided by the user
7628   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7629 $as_echo_n "checking if we can lock with hard links... " >&6; }
7630   hard_links=yes
7631   $rm conftest*
7632   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7633   touch conftest.a
7634   ln conftest.a conftest.b 2>&5 || hard_links=no
7635   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7637 $as_echo "$hard_links" >&6; }
7638   if test "$hard_links" = no; then
7639     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7640 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7641     need_locks=warn
7642   fi
7643 else
7644   need_locks=no
7645 fi
7646
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7648 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7649
7650   runpath_var=
7651   allow_undefined_flag=
7652   enable_shared_with_static_runtimes=no
7653   archive_cmds=
7654   archive_expsym_cmds=
7655   old_archive_From_new_cmds=
7656   old_archive_from_expsyms_cmds=
7657   export_dynamic_flag_spec=
7658   whole_archive_flag_spec=
7659   thread_safe_flag_spec=
7660   hardcode_libdir_flag_spec=
7661   hardcode_libdir_flag_spec_ld=
7662   hardcode_libdir_separator=
7663   hardcode_direct=no
7664   hardcode_minus_L=no
7665   hardcode_shlibpath_var=unsupported
7666   link_all_deplibs=unknown
7667   hardcode_automatic=no
7668   module_cmds=
7669   module_expsym_cmds=
7670   always_export_symbols=no
7671   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7672   # include_expsyms should be a list of space-separated symbols to be *always*
7673   # included in the symbol list
7674   include_expsyms=
7675   # exclude_expsyms can be an extended regexp of symbols to exclude
7676   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7677   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7678   # as well as any symbol that contains `d'.
7679   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7680   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7681   # platforms (ab)use it in PIC code, but their linkers get confused if
7682   # the symbol is explicitly referenced.  Since portable code cannot
7683   # rely on this symbol name, it's probably fine to never include it in
7684   # preloaded symbol tables.
7685   # Exclude shared library initialization/finalization symbols.
7686   extract_expsyms_cmds=
7687   # Just being paranoid about ensuring that cc_basename is set.
7688   for cc_temp in $compiler""; do
7689   case $cc_temp in
7690     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7691     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7692     \-*) ;;
7693     *) break;;
7694   esac
7695 done
7696 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7697
7698   case $host_os in
7699   cygwin* | mingw* | pw32*)
7700     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7701     # When not using gcc, we currently assume that we are using
7702     # Microsoft Visual C++.
7703     if test "$GCC" != yes; then
7704       with_gnu_ld=no
7705     fi
7706     ;;
7707   interix*)
7708     # we just hope/assume this is gcc and not c89 (= MSVC++)
7709     with_gnu_ld=yes
7710     ;;
7711   openbsd*)
7712     with_gnu_ld=no
7713     ;;
7714   esac
7715
7716   ld_shlibs=yes
7717   if test "$with_gnu_ld" = yes; then
7718     # If archive_cmds runs LD, not CC, wlarc should be empty
7719     wlarc='${wl}'
7720
7721     # Set some defaults for GNU ld with shared library support. These
7722     # are reset later if shared libraries are not supported. Putting them
7723     # here allows them to be overridden if necessary.
7724     runpath_var=LD_RUN_PATH
7725     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7726     export_dynamic_flag_spec='${wl}--export-dynamic'
7727     # ancient GNU ld didn't support --whole-archive et. al.
7728     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7729         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7730       else
7731         whole_archive_flag_spec=
7732     fi
7733     supports_anon_versioning=no
7734     case `$LD -v 2>/dev/null` in
7735       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7736       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7737       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7738       *\ 2.11.*) ;; # other 2.11 versions
7739       *) supports_anon_versioning=yes ;;
7740     esac
7741
7742     # See if GNU ld supports shared libraries.
7743     case $host_os in
7744     aix[3-9]*)
7745       # On AIX/PPC, the GNU linker is very broken
7746       if test "$host_cpu" != ia64; then
7747         ld_shlibs=no
7748         cat <<EOF 1>&2
7749
7750 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7751 *** to be unable to reliably create shared libraries on AIX.
7752 *** Therefore, libtool is disabling shared libraries support.  If you
7753 *** really care for shared libraries, you may want to modify your PATH
7754 *** so that a non-GNU linker is found, and then restart.
7755
7756 EOF
7757       fi
7758       ;;
7759
7760     amigaos*)
7761       archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7762       hardcode_libdir_flag_spec='-L$libdir'
7763       hardcode_minus_L=yes
7764
7765       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7766       # that the semantics of dynamic libraries on AmigaOS, at least up
7767       # to version 4, is to share data among multiple programs linked
7768       # with the same dynamic library.  Since this doesn't match the
7769       # behavior of shared libraries on other platforms, we can't use
7770       # them.
7771       ld_shlibs=no
7772       ;;
7773
7774     beos*)
7775       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7776         allow_undefined_flag=unsupported
7777         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7778         # support --undefined.  This deserves some investigation.  FIXME
7779         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7780       else
7781         ld_shlibs=no
7782       fi
7783       ;;
7784
7785     cygwin* | mingw* | pw32*)
7786       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7787       # as there is no search path for DLLs.
7788       hardcode_libdir_flag_spec='-L$libdir'
7789       allow_undefined_flag=unsupported
7790       always_export_symbols=no
7791       enable_shared_with_static_runtimes=yes
7792       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7793
7794       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7795         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7796         # If the export-symbols file already is a .def file (1st line
7797         # is EXPORTS), use it as is; otherwise, prepend...
7798         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7799           cp $export_symbols $output_objdir/$soname.def;
7800         else
7801           echo EXPORTS > $output_objdir/$soname.def;
7802           cat $export_symbols >> $output_objdir/$soname.def;
7803         fi~
7804         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7805       else
7806         ld_shlibs=no
7807       fi
7808       ;;
7809
7810     interix[3-9]*)
7811       hardcode_direct=no
7812       hardcode_shlibpath_var=no
7813       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7814       export_dynamic_flag_spec='${wl}-E'
7815       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7816       # Instead, shared libraries are loaded at an image base (0x10000000 by
7817       # default) and relocated if they conflict, which is a slow very memory
7818       # consuming and fragmenting process.  To avoid this, we pick a random,
7819       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7820       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7821       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7822       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7823       ;;
7824
7825     gnu* | linux* | k*bsd*-gnu)
7826       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7827         tmp_addflag=
7828         case $cc_basename,$host_cpu in
7829         pgcc*)                          # Portland Group C compiler
7830           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7831           tmp_addflag=' $pic_flag'
7832           ;;
7833         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7834           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7835           tmp_addflag=' $pic_flag -Mnomain' ;;
7836         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7837           tmp_addflag=' -i_dynamic' ;;
7838         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7839           tmp_addflag=' -i_dynamic -nofor_main' ;;
7840         ifc* | ifort*)                  # Intel Fortran compiler
7841           tmp_addflag=' -nofor_main' ;;
7842         esac
7843         case `$CC -V 2>&1 | sed 5q` in
7844         *Sun\ C*)                       # Sun C 5.9
7845           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7846           tmp_sharedflag='-G' ;;
7847         *Sun\ F*)                       # Sun Fortran 8.3
7848           tmp_sharedflag='-G' ;;
7849         *)
7850           tmp_sharedflag='-shared' ;;
7851         esac
7852         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7853
7854         if test $supports_anon_versioning = yes; then
7855           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7856   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7857   $echo "local: *; };" >> $output_objdir/$libname.ver~
7858           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7859         fi
7860         link_all_deplibs=no
7861       else
7862         ld_shlibs=no
7863       fi
7864       ;;
7865
7866     netbsd* | netbsdelf*-gnu)
7867       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7868         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7869         wlarc=
7870       else
7871         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7872         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7873       fi
7874       ;;
7875
7876     solaris*)
7877       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7878         ld_shlibs=no
7879         cat <<EOF 1>&2
7880
7881 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7882 *** create shared libraries on Solaris systems.  Therefore, libtool
7883 *** is disabling shared libraries support.  We urge you to upgrade GNU
7884 *** binutils to release 2.9.1 or newer.  Another option is to modify
7885 *** your PATH or compiler configuration so that the native linker is
7886 *** used, and then restart.
7887
7888 EOF
7889       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7890         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7891         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7892       else
7893         ld_shlibs=no
7894       fi
7895       ;;
7896
7897     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7898       case `$LD -v 2>&1` in
7899         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7900         ld_shlibs=no
7901         cat <<_LT_EOF 1>&2
7902
7903 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7904 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7905 *** is disabling shared libraries support.  We urge you to upgrade GNU
7906 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7907 *** your PATH or compiler configuration so that the native linker is
7908 *** used, and then restart.
7909
7910 _LT_EOF
7911         ;;
7912         *)
7913           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7914             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7915             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7916             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7917           else
7918             ld_shlibs=no
7919           fi
7920         ;;
7921       esac
7922       ;;
7923
7924     sunos4*)
7925       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7926       wlarc=
7927       hardcode_direct=yes
7928       hardcode_shlibpath_var=no
7929       ;;
7930
7931     *)
7932       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7933         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7934         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7935       else
7936         ld_shlibs=no
7937       fi
7938       ;;
7939     esac
7940
7941     if test "$ld_shlibs" = no; then
7942       runpath_var=
7943       hardcode_libdir_flag_spec=
7944       export_dynamic_flag_spec=
7945       whole_archive_flag_spec=
7946     fi
7947   else
7948     # PORTME fill in a description of your system's linker (not GNU ld)
7949     case $host_os in
7950     aix3*)
7951       allow_undefined_flag=unsupported
7952       always_export_symbols=yes
7953       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
7954       # Note: this linker hardcodes the directories in LIBPATH if there
7955       # are no directories specified by -L.
7956       hardcode_minus_L=yes
7957       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7958         # Neither direct hardcoding nor static linking is supported with a
7959         # broken collect2.
7960         hardcode_direct=unsupported
7961       fi
7962       ;;
7963
7964     aix[4-9]*)
7965       if test "$host_cpu" = ia64; then
7966         # On IA64, the linker does run time linking by default, so we don't
7967         # have to do anything special.
7968         aix_use_runtimelinking=no
7969         exp_sym_flag='-Bexport'
7970         no_entry_flag=""
7971       else
7972         # If we're using GNU nm, then we don't want the "-C" option.
7973         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7974         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7975           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7976         else
7977           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7978         fi
7979         aix_use_runtimelinking=no
7980
7981         # Test if we are trying to use run time linking or normal
7982         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7983         # need to do runtime linking.
7984         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7985           for ld_flag in $LDFLAGS; do
7986           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7987             aix_use_runtimelinking=yes
7988             break
7989           fi
7990           done
7991           ;;
7992         esac
7993
7994         exp_sym_flag='-bexport'
7995         no_entry_flag='-bnoentry'
7996       fi
7997
7998       # When large executables or shared objects are built, AIX ld can
7999       # have problems creating the table of contents.  If linking a library
8000       # or program results in "error TOC overflow" add -mminimal-toc to
8001       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8002       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8003
8004       archive_cmds=''
8005       hardcode_direct=yes
8006       hardcode_libdir_separator=':'
8007       link_all_deplibs=yes
8008
8009       if test "$GCC" = yes; then
8010         case $host_os in aix4.[012]|aix4.[012].*)
8011         # We only want to do this on AIX 4.2 and lower, the check
8012         # below for broken collect2 doesn't work under 4.3+
8013           collect2name=`${CC} -print-prog-name=collect2`
8014           if test -f "$collect2name" && \
8015            strings "$collect2name" | grep resolve_lib_name >/dev/null
8016           then
8017           # We have reworked collect2
8018           :
8019           else
8020           # We have old collect2
8021           hardcode_direct=unsupported
8022           # It fails to find uninstalled libraries when the uninstalled
8023           # path is not listed in the libpath.  Setting hardcode_minus_L
8024           # to unsupported forces relinking
8025           hardcode_minus_L=yes
8026           hardcode_libdir_flag_spec='-L$libdir'
8027           hardcode_libdir_separator=
8028           fi
8029           ;;
8030         esac
8031         shared_flag='-shared'
8032         if test "$aix_use_runtimelinking" = yes; then
8033           shared_flag="$shared_flag "'${wl}-G'
8034         fi
8035       else
8036         # not using gcc
8037         if test "$host_cpu" = ia64; then
8038         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8039         # chokes on -Wl,-G. The following line is correct:
8040           shared_flag='-G'
8041         else
8042           if test "$aix_use_runtimelinking" = yes; then
8043             shared_flag='${wl}-G'
8044           else
8045             shared_flag='${wl}-bM:SRE'
8046           fi
8047         fi
8048       fi
8049
8050       # It seems that -bexpall does not export symbols beginning with
8051       # underscore (_), so it is better to generate a list of symbols to export.
8052       always_export_symbols=yes
8053       if test "$aix_use_runtimelinking" = yes; then
8054         # Warning - without using the other runtime loading flags (-brtl),
8055         # -berok will link without error, but may produce a broken library.
8056         allow_undefined_flag='-berok'
8057        # Determine the default libpath from the value encoded in an empty executable.
8058        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8059 /* end confdefs.h.  */
8060
8061 int
8062 main ()
8063 {
8064
8065   ;
8066   return 0;
8067 }
8068 _ACEOF
8069 if ac_fn_c_try_link "$LINENO"; then :
8070
8071 lt_aix_libpath_sed='
8072     /Import File Strings/,/^$/ {
8073         /^0/ {
8074             s/^0  *\(.*\)$/\1/
8075             p
8076         }
8077     }'
8078 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8079 # Check for a 64-bit object if we didn't find anything.
8080 if test -z "$aix_libpath"; then
8081   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8082 fi
8083 fi
8084 rm -f core conftest.err conftest.$ac_objext \
8085     conftest$ac_exeext conftest.$ac_ext
8086 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8087
8088        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8089         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8090        else
8091         if test "$host_cpu" = ia64; then
8092           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8093           allow_undefined_flag="-z nodefs"
8094           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8095         else
8096          # Determine the default libpath from the value encoded in an empty executable.
8097          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8098 /* end confdefs.h.  */
8099
8100 int
8101 main ()
8102 {
8103
8104   ;
8105   return 0;
8106 }
8107 _ACEOF
8108 if ac_fn_c_try_link "$LINENO"; then :
8109
8110 lt_aix_libpath_sed='
8111     /Import File Strings/,/^$/ {
8112         /^0/ {
8113             s/^0  *\(.*\)$/\1/
8114             p
8115         }
8116     }'
8117 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8118 # Check for a 64-bit object if we didn't find anything.
8119 if test -z "$aix_libpath"; then
8120   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8121 fi
8122 fi
8123 rm -f core conftest.err conftest.$ac_objext \
8124     conftest$ac_exeext conftest.$ac_ext
8125 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8126
8127          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8128           # Warning - without using the other run time loading flags,
8129           # -berok will link without error, but may produce a broken library.
8130           no_undefined_flag=' ${wl}-bernotok'
8131           allow_undefined_flag=' ${wl}-berok'
8132           # Exported symbols can be pulled into shared objects from archives
8133           whole_archive_flag_spec='$convenience'
8134           archive_cmds_need_lc=yes
8135           # This is similar to how AIX traditionally builds its shared libraries.
8136           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8137         fi
8138       fi
8139       ;;
8140
8141     amigaos*)
8142       archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8143       hardcode_libdir_flag_spec='-L$libdir'
8144       hardcode_minus_L=yes
8145       # see comment about different semantics on the GNU ld section
8146       ld_shlibs=no
8147       ;;
8148
8149     bsdi[45]*)
8150       export_dynamic_flag_spec=-rdynamic
8151       ;;
8152
8153     cygwin* | mingw* | pw32*)
8154       # When not using gcc, we currently assume that we are using
8155       # Microsoft Visual C++.
8156       # hardcode_libdir_flag_spec is actually meaningless, as there is
8157       # no search path for DLLs.
8158       hardcode_libdir_flag_spec=' '
8159       allow_undefined_flag=unsupported
8160       # Tell ltmain to make .lib files, not .a files.
8161       libext=lib
8162       # Tell ltmain to make .dll files, not .so files.
8163       shrext_cmds=".dll"
8164       # FIXME: Setting linknames here is a bad hack.
8165       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8166       # The linker will automatically build a .lib file if we build a DLL.
8167       old_archive_From_new_cmds='true'
8168       # FIXME: Should let the user specify the lib program.
8169       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8170       fix_srcfile_path='`cygpath -w "$srcfile"`'
8171       enable_shared_with_static_runtimes=yes
8172       ;;
8173
8174     darwin* | rhapsody*)
8175       case $host_os in
8176         rhapsody* | darwin1.[012])
8177          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8178          ;;
8179        *) # Darwin 1.3 on
8180          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8181            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8182          else
8183            case ${MACOSX_DEPLOYMENT_TARGET} in
8184              10.[012])
8185                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8186                ;;
8187              10.*)
8188                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8189                ;;
8190            esac
8191          fi
8192          ;;
8193       esac
8194       archive_cmds_need_lc=no
8195       hardcode_direct=no
8196       hardcode_automatic=yes
8197       hardcode_shlibpath_var=unsupported
8198       whole_archive_flag_spec=''
8199       link_all_deplibs=yes
8200     if test "$GCC" = yes ; then
8201         output_verbose_link_cmd='echo'
8202         archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8203         module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8204         archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8205         module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8206     else
8207       case $cc_basename in
8208         xlc*)
8209          output_verbose_link_cmd='echo'
8210          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8211          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8212           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8213          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8214           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8215           ;;
8216        *)
8217          ld_shlibs=no
8218           ;;
8219       esac
8220     fi
8221       ;;
8222
8223     dgux*)
8224       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8225       hardcode_libdir_flag_spec='-L$libdir'
8226       hardcode_shlibpath_var=no
8227       ;;
8228
8229     freebsd1*)
8230       ld_shlibs=no
8231       ;;
8232
8233     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8234     # support.  Future versions do this automatically, but an explicit c++rt0.o
8235     # does not break anything, and helps significantly (at the cost of a little
8236     # extra space).
8237     freebsd2.2*)
8238       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8239       hardcode_libdir_flag_spec='-R$libdir'
8240       hardcode_direct=yes
8241       hardcode_shlibpath_var=no
8242       ;;
8243
8244     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8245     freebsd2*)
8246       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8247       hardcode_direct=yes
8248       hardcode_minus_L=yes
8249       hardcode_shlibpath_var=no
8250       ;;
8251
8252     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8253     freebsd* | dragonfly*)
8254       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8255       hardcode_libdir_flag_spec='-R$libdir'
8256       hardcode_direct=yes
8257       hardcode_shlibpath_var=no
8258       ;;
8259
8260     hpux9*)
8261       if test "$GCC" = yes; then
8262         archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8263       else
8264         archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8265       fi
8266       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8267       hardcode_libdir_separator=:
8268       hardcode_direct=yes
8269
8270       # hardcode_minus_L: Not really in the search PATH,
8271       # but as the default location of the library.
8272       hardcode_minus_L=yes
8273       export_dynamic_flag_spec='${wl}-E'
8274       ;;
8275
8276     hpux10*)
8277       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8278         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8279       else
8280         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8281       fi
8282       if test "$with_gnu_ld" = no; then
8283         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8284         hardcode_libdir_separator=:
8285
8286         hardcode_direct=yes
8287         export_dynamic_flag_spec='${wl}-E'
8288
8289         # hardcode_minus_L: Not really in the search PATH,
8290         # but as the default location of the library.
8291         hardcode_minus_L=yes
8292       fi
8293       ;;
8294
8295     hpux11*)
8296       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8297         case $host_cpu in
8298         hppa*64*)
8299           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8300           ;;
8301         ia64*)
8302           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8303           ;;
8304         *)
8305           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8306           ;;
8307         esac
8308       else
8309         case $host_cpu in
8310         hppa*64*)
8311           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8312           ;;
8313         ia64*)
8314           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8315           ;;
8316         *)
8317           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8318           ;;
8319         esac
8320       fi
8321       if test "$with_gnu_ld" = no; then
8322         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8323         hardcode_libdir_separator=:
8324
8325         case $host_cpu in
8326         hppa*64*|ia64*)
8327           hardcode_libdir_flag_spec_ld='+b $libdir'
8328           hardcode_direct=no
8329           hardcode_shlibpath_var=no
8330           ;;
8331         *)
8332           hardcode_direct=yes
8333           export_dynamic_flag_spec='${wl}-E'
8334
8335           # hardcode_minus_L: Not really in the search PATH,
8336           # but as the default location of the library.
8337           hardcode_minus_L=yes
8338           ;;
8339         esac
8340       fi
8341       ;;
8342
8343     irix5* | irix6* | nonstopux*)
8344       if test "$GCC" = yes; then
8345         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8346       else
8347         archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8348         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8349       fi
8350       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8351       hardcode_libdir_separator=:
8352       link_all_deplibs=yes
8353       ;;
8354
8355     netbsd* | netbsdelf*-gnu)
8356       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8357         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8358       else
8359         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8360       fi
8361       hardcode_libdir_flag_spec='-R$libdir'
8362       hardcode_direct=yes
8363       hardcode_shlibpath_var=no
8364       ;;
8365
8366     newsos6)
8367       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8368       hardcode_direct=yes
8369       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8370       hardcode_libdir_separator=:
8371       hardcode_shlibpath_var=no
8372       ;;
8373
8374     openbsd*)
8375       if test -f /usr/libexec/ld.so; then
8376         hardcode_direct=yes
8377         hardcode_shlibpath_var=no
8378         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8379           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8380           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8381           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8382           export_dynamic_flag_spec='${wl}-E'
8383         else
8384           case $host_os in
8385            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8386              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8387              hardcode_libdir_flag_spec='-R$libdir'
8388              ;;
8389            *)
8390              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8391              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8392              ;;
8393           esac
8394         fi
8395       else
8396         ld_shlibs=no
8397       fi
8398       ;;
8399
8400     os2*)
8401       hardcode_libdir_flag_spec='-L$libdir'
8402       hardcode_minus_L=yes
8403       allow_undefined_flag=unsupported
8404       archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8405       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8406       ;;
8407
8408     osf3*)
8409       if test "$GCC" = yes; then
8410         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8411         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8412       else
8413         allow_undefined_flag=' -expect_unresolved \*'
8414         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8415       fi
8416       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8417       hardcode_libdir_separator=:
8418       ;;
8419
8420     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8421       if test "$GCC" = yes; then
8422         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8423         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8424         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8425       else
8426         allow_undefined_flag=' -expect_unresolved \*'
8427         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8428         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8429         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8430
8431         # Both c and cxx compiler support -rpath directly
8432         hardcode_libdir_flag_spec='-rpath $libdir'
8433       fi
8434       hardcode_libdir_separator=:
8435       ;;
8436
8437     solaris*)
8438       no_undefined_flag=' -z text'
8439       if test "$GCC" = yes; then
8440         wlarc='${wl}'
8441         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8442         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8443           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8444       else
8445         wlarc=''
8446         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8447         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8448         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8449       fi
8450       hardcode_libdir_flag_spec='-R$libdir'
8451       hardcode_shlibpath_var=no
8452       case $host_os in
8453       solaris2.[0-5] | solaris2.[0-5].*) ;;
8454       *)
8455         # The compiler driver will combine and reorder linker options,
8456         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8457         # but is careful enough not to reorder.
8458         # Supported since Solaris 2.6 (maybe 2.5.1?)
8459         if test "$GCC" = yes; then
8460           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8461         else
8462           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8463         fi
8464         ;;
8465       esac
8466       link_all_deplibs=yes
8467       ;;
8468
8469     sunos4*)
8470       if test "x$host_vendor" = xsequent; then
8471         # Use $CC to link under sequent, because it throws in some extra .o
8472         # files that make .init and .fini sections work.
8473         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8474       else
8475         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8476       fi
8477       hardcode_libdir_flag_spec='-L$libdir'
8478       hardcode_direct=yes
8479       hardcode_minus_L=yes
8480       hardcode_shlibpath_var=no
8481       ;;
8482
8483     sysv4)
8484       case $host_vendor in
8485         sni)
8486           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8487           hardcode_direct=yes # is this really true???
8488         ;;
8489         siemens)
8490           ## LD is ld it makes a PLAMLIB
8491           ## CC just makes a GrossModule.
8492           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8493           reload_cmds='$CC -r -o $output$reload_objs'
8494           hardcode_direct=no
8495         ;;
8496         motorola)
8497           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8498           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8499         ;;
8500       esac
8501       runpath_var='LD_RUN_PATH'
8502       hardcode_shlibpath_var=no
8503       ;;
8504
8505     sysv4.3*)
8506       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8507       hardcode_shlibpath_var=no
8508       export_dynamic_flag_spec='-Bexport'
8509       ;;
8510
8511     sysv4*MP*)
8512       if test -d /usr/nec; then
8513         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8514         hardcode_shlibpath_var=no
8515         runpath_var=LD_RUN_PATH
8516         hardcode_runpath_var=yes
8517         ld_shlibs=yes
8518       fi
8519       ;;
8520
8521     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8522       no_undefined_flag='${wl}-z,text'
8523       archive_cmds_need_lc=no
8524       hardcode_shlibpath_var=no
8525       runpath_var='LD_RUN_PATH'
8526
8527       if test "$GCC" = yes; then
8528         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8529         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8530       else
8531         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8532         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8533       fi
8534       ;;
8535
8536     sysv5* | sco3.2v5* | sco5v6*)
8537       # Note: We can NOT use -z defs as we might desire, because we do not
8538       # link with -lc, and that would cause any symbols used from libc to
8539       # always be unresolved, which means just about no library would
8540       # ever link correctly.  If we're not using GNU ld we use -z text
8541       # though, which does catch some bad symbols but isn't as heavy-handed
8542       # as -z defs.
8543       no_undefined_flag='${wl}-z,text'
8544       allow_undefined_flag='${wl}-z,nodefs'
8545       archive_cmds_need_lc=no
8546       hardcode_shlibpath_var=no
8547       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8548       hardcode_libdir_separator=':'
8549       link_all_deplibs=yes
8550       export_dynamic_flag_spec='${wl}-Bexport'
8551       runpath_var='LD_RUN_PATH'
8552
8553       if test "$GCC" = yes; then
8554         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8555         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8556       else
8557         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8558         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8559       fi
8560       ;;
8561
8562     uts4*)
8563       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8564       hardcode_libdir_flag_spec='-L$libdir'
8565       hardcode_shlibpath_var=no
8566       ;;
8567
8568     *)
8569       ld_shlibs=no
8570       ;;
8571     esac
8572   fi
8573
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8575 $as_echo "$ld_shlibs" >&6; }
8576 test "$ld_shlibs" = no && can_build_shared=no
8577
8578 #
8579 # Do we need to explicitly link libc?
8580 #
8581 case "x$archive_cmds_need_lc" in
8582 x|xyes)
8583   # Assume -lc should be added
8584   archive_cmds_need_lc=yes
8585
8586   if test "$enable_shared" = yes && test "$GCC" = yes; then
8587     case $archive_cmds in
8588     *'~'*)
8589       # FIXME: we may have to deal with multi-command sequences.
8590       ;;
8591     '$CC '*)
8592       # Test whether the compiler implicitly links with -lc since on some
8593       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8594       # to ld, don't add -lc before -lgcc.
8595       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8596 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8597       $rm conftest*
8598       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8599
8600       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8601   (eval $ac_compile) 2>&5
8602   ac_status=$?
8603   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8604   test $ac_status = 0; } 2>conftest.err; then
8605         soname=conftest
8606         lib=conftest
8607         libobjs=conftest.$ac_objext
8608         deplibs=
8609         wl=$lt_prog_compiler_wl
8610         pic_flag=$lt_prog_compiler_pic
8611         compiler_flags=-v
8612         linker_flags=-v
8613         verstring=
8614         output_objdir=.
8615         libname=conftest
8616         lt_save_allow_undefined_flag=$allow_undefined_flag
8617         allow_undefined_flag=
8618         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8619   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8620   ac_status=$?
8621   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8622   test $ac_status = 0; }
8623         then
8624           archive_cmds_need_lc=no
8625         else
8626           archive_cmds_need_lc=yes
8627         fi
8628         allow_undefined_flag=$lt_save_allow_undefined_flag
8629       else
8630         cat conftest.err 1>&5
8631       fi
8632       $rm conftest*
8633       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8634 $as_echo "$archive_cmds_need_lc" >&6; }
8635       ;;
8636     esac
8637   fi
8638   ;;
8639 esac
8640
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8642 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8643 library_names_spec=
8644 libname_spec='lib$name'
8645 soname_spec=
8646 shrext_cmds=".so"
8647 postinstall_cmds=
8648 postuninstall_cmds=
8649 finish_cmds=
8650 finish_eval=
8651 shlibpath_var=
8652 shlibpath_overrides_runpath=unknown
8653 version_type=none
8654 dynamic_linker="$host_os ld.so"
8655 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8656
8657 if test "$GCC" = yes; then
8658   case $host_os in
8659     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8660     *) lt_awk_arg="/^libraries:/" ;;
8661   esac
8662   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8663   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8664     # if the path contains ";" then we assume it to be the separator
8665     # otherwise default to the standard path separator (i.e. ":") - it is
8666     # assumed that no part of a normal pathname contains ";" but that should
8667     # okay in the real world where ";" in dirpaths is itself problematic.
8668     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8669   else
8670     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8671   fi
8672   # Ok, now we have the path, separated by spaces, we can step through it
8673   # and add multilib dir if necessary.
8674   lt_tmp_lt_search_path_spec=
8675   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8676   for lt_sys_path in $lt_search_path_spec; do
8677     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8678       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8679     else
8680       test -d "$lt_sys_path" && \
8681         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8682     fi
8683   done
8684   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8685 BEGIN {RS=" "; FS="/|\n";} {
8686   lt_foo="";
8687   lt_count=0;
8688   for (lt_i = NF; lt_i > 0; lt_i--) {
8689     if ($lt_i != "" && $lt_i != ".") {
8690       if ($lt_i == "..") {
8691         lt_count++;
8692       } else {
8693         if (lt_count == 0) {
8694           lt_foo="/" $lt_i lt_foo;
8695         } else {
8696           lt_count--;
8697         }
8698       }
8699     }
8700   }
8701   if (lt_foo != "") { lt_freq[lt_foo]++; }
8702   if (lt_freq[lt_foo] == 1) { print lt_foo; }
8703 }'`
8704   sys_lib_search_path_spec=`echo $lt_search_path_spec`
8705 else
8706   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8707 fi
8708 need_lib_prefix=unknown
8709 hardcode_into_libs=no
8710
8711 # when you set need_version to no, make sure it does not cause -set_version
8712 # flags to be left without arguments
8713 need_version=unknown
8714
8715 case $host_os in
8716 aix3*)
8717   version_type=linux
8718   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8719   shlibpath_var=LIBPATH
8720
8721   # AIX 3 has no versioning support, so we append a major version to the name.
8722   soname_spec='${libname}${release}${shared_ext}$major'
8723   ;;
8724
8725 aix[4-9]*)
8726   version_type=linux
8727   need_lib_prefix=no
8728   need_version=no
8729   hardcode_into_libs=yes
8730   if test "$host_cpu" = ia64; then
8731     # AIX 5 supports IA64
8732     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8733     shlibpath_var=LD_LIBRARY_PATH
8734   else
8735     # With GCC up to 2.95.x, collect2 would create an import file
8736     # for dependence libraries.  The import file would start with
8737     # the line `#! .'.  This would cause the generated library to
8738     # depend on `.', always an invalid library.  This was fixed in
8739     # development snapshots of GCC prior to 3.0.
8740     case $host_os in
8741       aix4 | aix4.[01] | aix4.[01].*)
8742       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8743            echo ' yes '
8744            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8745         :
8746       else
8747         can_build_shared=no
8748       fi
8749       ;;
8750     esac
8751     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8752     # soname into executable. Probably we can add versioning support to
8753     # collect2, so additional links can be useful in future.
8754     if test "$aix_use_runtimelinking" = yes; then
8755       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8756       # instead of lib<name>.a to let people know that these are not
8757       # typical AIX shared libraries.
8758       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8759     else
8760       # We preserve .a as extension for shared libraries through AIX4.2
8761       # and later when we are not doing run time linking.
8762       library_names_spec='${libname}${release}.a $libname.a'
8763       soname_spec='${libname}${release}${shared_ext}$major'
8764     fi
8765     shlibpath_var=LIBPATH
8766   fi
8767   ;;
8768
8769 amigaos*)
8770   library_names_spec='$libname.ixlibrary $libname.a'
8771   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8772   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8773   ;;
8774
8775 beos*)
8776   library_names_spec='${libname}${shared_ext}'
8777   dynamic_linker="$host_os ld.so"
8778   shlibpath_var=LIBRARY_PATH
8779   ;;
8780
8781 bsdi[45]*)
8782   version_type=linux
8783   need_version=no
8784   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8785   soname_spec='${libname}${release}${shared_ext}$major'
8786   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8787   shlibpath_var=LD_LIBRARY_PATH
8788   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8789   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8790   # the default ld.so.conf also contains /usr/contrib/lib and
8791   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8792   # libtool to hard-code these into programs
8793   ;;
8794
8795 cygwin* | mingw* | pw32*)
8796   version_type=windows
8797   shrext_cmds=".dll"
8798   need_version=no
8799   need_lib_prefix=no
8800
8801   case $GCC,$host_os in
8802   yes,cygwin* | yes,mingw* | yes,pw32*)
8803     library_names_spec='$libname.dll.a'
8804     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8805     postinstall_cmds='base_file=`basename \${file}`~
8806       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8807       dldir=$destdir/`dirname \$dlpath`~
8808       test -d \$dldir || mkdir -p \$dldir~
8809       $install_prog $dir/$dlname \$dldir/$dlname~
8810       chmod a+x \$dldir/$dlname'
8811     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8812       dlpath=$dir/\$dldll~
8813        $rm \$dlpath'
8814     shlibpath_overrides_runpath=yes
8815
8816     case $host_os in
8817     cygwin*)
8818       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8819       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8820       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8821       ;;
8822     mingw*)
8823       # MinGW DLLs use traditional 'lib' prefix
8824       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8825       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8826       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8827         # It is most probably a Windows format PATH printed by
8828         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8829         # path with ; separators, and with drive letters. We can handle the
8830         # drive letters (cygwin fileutils understands them), so leave them,
8831         # especially as we might pass files found there to a mingw objdump,
8832         # which wouldn't understand a cygwinified path. Ahh.
8833         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8834       else
8835         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8836       fi
8837       ;;
8838     pw32*)
8839       # pw32 DLLs use 'pw' prefix rather than 'lib'
8840       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8841       ;;
8842     esac
8843     ;;
8844
8845   *)
8846     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8847     ;;
8848   esac
8849   dynamic_linker='Win32 ld.exe'
8850   # FIXME: first we should search . and the directory the executable is in
8851   shlibpath_var=PATH
8852   ;;
8853
8854 darwin* | rhapsody*)
8855   dynamic_linker="$host_os dyld"
8856   version_type=darwin
8857   need_lib_prefix=no
8858   need_version=no
8859   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8860   soname_spec='${libname}${release}${major}$shared_ext'
8861   shlibpath_overrides_runpath=yes
8862   shlibpath_var=DYLD_LIBRARY_PATH
8863   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8864
8865   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8866   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8867   ;;
8868
8869 dgux*)
8870   version_type=linux
8871   need_lib_prefix=no
8872   need_version=no
8873   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8874   soname_spec='${libname}${release}${shared_ext}$major'
8875   shlibpath_var=LD_LIBRARY_PATH
8876   ;;
8877
8878 freebsd1*)
8879   dynamic_linker=no
8880   ;;
8881
8882 freebsd* | dragonfly*)
8883   # DragonFly does not have aout.  When/if they implement a new
8884   # versioning mechanism, adjust this.
8885   if test -x /usr/bin/objformat; then
8886     objformat=`/usr/bin/objformat`
8887   else
8888     case $host_os in
8889     freebsd[123]*) objformat=aout ;;
8890     *) objformat=elf ;;
8891     esac
8892   fi
8893   version_type=freebsd-$objformat
8894   case $version_type in
8895     freebsd-elf*)
8896       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8897       need_version=no
8898       need_lib_prefix=no
8899       ;;
8900     freebsd-*)
8901       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8902       need_version=yes
8903       ;;
8904   esac
8905   shlibpath_var=LD_LIBRARY_PATH
8906   case $host_os in
8907   freebsd2*)
8908     shlibpath_overrides_runpath=yes
8909     ;;
8910   freebsd3.[01]* | freebsdelf3.[01]*)
8911     shlibpath_overrides_runpath=yes
8912     hardcode_into_libs=yes
8913     ;;
8914   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8915   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8916     shlibpath_overrides_runpath=no
8917     hardcode_into_libs=yes
8918     ;;
8919   *) # from 4.6 on, and DragonFly
8920     shlibpath_overrides_runpath=yes
8921     hardcode_into_libs=yes
8922     ;;
8923   esac
8924   ;;
8925
8926 gnu*)
8927   version_type=linux
8928   need_lib_prefix=no
8929   need_version=no
8930   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8931   soname_spec='${libname}${release}${shared_ext}$major'
8932   shlibpath_var=LD_LIBRARY_PATH
8933   hardcode_into_libs=yes
8934   ;;
8935
8936 hpux9* | hpux10* | hpux11*)
8937   # Give a soname corresponding to the major version so that dld.sl refuses to
8938   # link against other versions.
8939   version_type=sunos
8940   need_lib_prefix=no
8941   need_version=no
8942   case $host_cpu in
8943   ia64*)
8944     shrext_cmds='.so'
8945     hardcode_into_libs=yes
8946     dynamic_linker="$host_os dld.so"
8947     shlibpath_var=LD_LIBRARY_PATH
8948     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8949     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8950     soname_spec='${libname}${release}${shared_ext}$major'
8951     if test "X$HPUX_IA64_MODE" = X32; then
8952       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8953     else
8954       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8955     fi
8956     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8957     ;;
8958    hppa*64*)
8959      shrext_cmds='.sl'
8960      hardcode_into_libs=yes
8961      dynamic_linker="$host_os dld.sl"
8962      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8963      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8964      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8965      soname_spec='${libname}${release}${shared_ext}$major'
8966      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8967      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8968      ;;
8969    *)
8970     shrext_cmds='.sl'
8971     dynamic_linker="$host_os dld.sl"
8972     shlibpath_var=SHLIB_PATH
8973     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8974     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8975     soname_spec='${libname}${release}${shared_ext}$major'
8976     ;;
8977   esac
8978   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8979   postinstall_cmds='chmod 555 $lib'
8980   ;;
8981
8982 interix[3-9]*)
8983   version_type=linux
8984   need_lib_prefix=no
8985   need_version=no
8986   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8987   soname_spec='${libname}${release}${shared_ext}$major'
8988   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8989   shlibpath_var=LD_LIBRARY_PATH
8990   shlibpath_overrides_runpath=no
8991   hardcode_into_libs=yes
8992   ;;
8993
8994 irix5* | irix6* | nonstopux*)
8995   case $host_os in
8996     nonstopux*) version_type=nonstopux ;;
8997     *)
8998         if test "$lt_cv_prog_gnu_ld" = yes; then
8999                 version_type=linux
9000         else
9001                 version_type=irix
9002         fi ;;
9003   esac
9004   need_lib_prefix=no
9005   need_version=no
9006   soname_spec='${libname}${release}${shared_ext}$major'
9007   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9008   case $host_os in
9009   irix5* | nonstopux*)
9010     libsuff= shlibsuff=
9011     ;;
9012   *)
9013     case $LD in # libtool.m4 will add one of these switches to LD
9014     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9015       libsuff= shlibsuff= libmagic=32-bit;;
9016     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9017       libsuff=32 shlibsuff=N32 libmagic=N32;;
9018     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9019       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9020     *) libsuff= shlibsuff= libmagic=never-match;;
9021     esac
9022     ;;
9023   esac
9024   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9025   shlibpath_overrides_runpath=no
9026   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9027   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9028   hardcode_into_libs=yes
9029   ;;
9030
9031 # No shared lib support for Linux oldld, aout, or coff.
9032 linux*oldld* | linux*aout* | linux*coff*)
9033   dynamic_linker=no
9034   ;;
9035
9036 # This must be Linux ELF.
9037 linux* | k*bsd*-gnu)
9038   version_type=linux
9039   need_lib_prefix=no
9040   need_version=no
9041   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9042   soname_spec='${libname}${release}${shared_ext}$major'
9043   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9044   shlibpath_var=LD_LIBRARY_PATH
9045   shlibpath_overrides_runpath=no
9046   # This implies no fast_install, which is unacceptable.
9047   # Some rework will be needed to allow for fast_install
9048   # before this can be enabled.
9049   hardcode_into_libs=yes
9050
9051   # Append ld.so.conf contents to the search path
9052   if test -f /etc/ld.so.conf; then
9053     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9054     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9055   fi
9056
9057   # We used to test for /lib/ld.so.1 and disable shared libraries on
9058   # powerpc, because MkLinux only supported shared libraries with the
9059   # GNU dynamic linker.  Since this was broken with cross compilers,
9060   # most powerpc-linux boxes support dynamic linking these days and
9061   # people can always --disable-shared, the test was removed, and we
9062   # assume the GNU/Linux dynamic linker is in use.
9063   dynamic_linker='GNU/Linux ld.so'
9064   ;;
9065
9066 netbsdelf*-gnu)
9067   version_type=linux
9068   need_lib_prefix=no
9069   need_version=no
9070   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9071   soname_spec='${libname}${release}${shared_ext}$major'
9072   shlibpath_var=LD_LIBRARY_PATH
9073   shlibpath_overrides_runpath=no
9074   hardcode_into_libs=yes
9075   dynamic_linker='NetBSD ld.elf_so'
9076   ;;
9077
9078 netbsd*)
9079   version_type=sunos
9080   need_lib_prefix=no
9081   need_version=no
9082   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9083     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9084     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9085     dynamic_linker='NetBSD (a.out) ld.so'
9086   else
9087     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9088     soname_spec='${libname}${release}${shared_ext}$major'
9089     dynamic_linker='NetBSD ld.elf_so'
9090   fi
9091   shlibpath_var=LD_LIBRARY_PATH
9092   shlibpath_overrides_runpath=yes
9093   hardcode_into_libs=yes
9094   ;;
9095
9096 newsos6)
9097   version_type=linux
9098   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9099   shlibpath_var=LD_LIBRARY_PATH
9100   shlibpath_overrides_runpath=yes
9101   ;;
9102
9103 nto-qnx*)
9104   version_type=linux
9105   need_lib_prefix=no
9106   need_version=no
9107   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9108   soname_spec='${libname}${release}${shared_ext}$major'
9109   shlibpath_var=LD_LIBRARY_PATH
9110   shlibpath_overrides_runpath=yes
9111   ;;
9112
9113 openbsd*)
9114   version_type=sunos
9115   sys_lib_dlsearch_path_spec="/usr/lib"
9116   need_lib_prefix=no
9117   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9118   case $host_os in
9119     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9120     *)                         need_version=no  ;;
9121   esac
9122   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9123   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9124   shlibpath_var=LD_LIBRARY_PATH
9125   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9126     case $host_os in
9127       openbsd2.[89] | openbsd2.[89].*)
9128         shlibpath_overrides_runpath=no
9129         ;;
9130       *)
9131         shlibpath_overrides_runpath=yes
9132         ;;
9133       esac
9134   else
9135     shlibpath_overrides_runpath=yes
9136   fi
9137   ;;
9138
9139 os2*)
9140   libname_spec='$name'
9141   shrext_cmds=".dll"
9142   need_lib_prefix=no
9143   library_names_spec='$libname${shared_ext} $libname.a'
9144   dynamic_linker='OS/2 ld.exe'
9145   shlibpath_var=LIBPATH
9146   ;;
9147
9148 osf3* | osf4* | osf5*)
9149   version_type=osf
9150   need_lib_prefix=no
9151   need_version=no
9152   soname_spec='${libname}${release}${shared_ext}$major'
9153   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9154   shlibpath_var=LD_LIBRARY_PATH
9155   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9156   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9157   ;;
9158
9159 rdos*)
9160   dynamic_linker=no
9161   ;;
9162
9163 solaris*)
9164   version_type=linux
9165   need_lib_prefix=no
9166   need_version=no
9167   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9168   soname_spec='${libname}${release}${shared_ext}$major'
9169   shlibpath_var=LD_LIBRARY_PATH
9170   shlibpath_overrides_runpath=yes
9171   hardcode_into_libs=yes
9172   # ldd complains unless libraries are executable
9173   postinstall_cmds='chmod +x $lib'
9174   ;;
9175
9176 sunos4*)
9177   version_type=sunos
9178   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9179   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9180   shlibpath_var=LD_LIBRARY_PATH
9181   shlibpath_overrides_runpath=yes
9182   if test "$with_gnu_ld" = yes; then
9183     need_lib_prefix=no
9184   fi
9185   need_version=yes
9186   ;;
9187
9188 sysv4 | sysv4.3*)
9189   version_type=linux
9190   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9191   soname_spec='${libname}${release}${shared_ext}$major'
9192   shlibpath_var=LD_LIBRARY_PATH
9193   case $host_vendor in
9194     sni)
9195       shlibpath_overrides_runpath=no
9196       need_lib_prefix=no
9197       export_dynamic_flag_spec='${wl}-Blargedynsym'
9198       runpath_var=LD_RUN_PATH
9199       ;;
9200     siemens)
9201       need_lib_prefix=no
9202       ;;
9203     motorola)
9204       need_lib_prefix=no
9205       need_version=no
9206       shlibpath_overrides_runpath=no
9207       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9208       ;;
9209   esac
9210   ;;
9211
9212 sysv4*MP*)
9213   if test -d /usr/nec ;then
9214     version_type=linux
9215     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9216     soname_spec='$libname${shared_ext}.$major'
9217     shlibpath_var=LD_LIBRARY_PATH
9218   fi
9219   ;;
9220
9221 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9222   version_type=freebsd-elf
9223   need_lib_prefix=no
9224   need_version=no
9225   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9226   soname_spec='${libname}${release}${shared_ext}$major'
9227   shlibpath_var=LD_LIBRARY_PATH
9228   hardcode_into_libs=yes
9229   if test "$with_gnu_ld" = yes; then
9230     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9231     shlibpath_overrides_runpath=no
9232   else
9233     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9234     shlibpath_overrides_runpath=yes
9235     case $host_os in
9236       sco3.2v5*)
9237         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9238         ;;
9239     esac
9240   fi
9241   sys_lib_dlsearch_path_spec='/usr/lib'
9242   ;;
9243
9244 uts4*)
9245   version_type=linux
9246   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9247   soname_spec='${libname}${release}${shared_ext}$major'
9248   shlibpath_var=LD_LIBRARY_PATH
9249   ;;
9250
9251 *)
9252   dynamic_linker=no
9253   ;;
9254 esac
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9256 $as_echo "$dynamic_linker" >&6; }
9257 test "$dynamic_linker" = no && can_build_shared=no
9258
9259 if ${lt_cv_sys_lib_search_path_spec+:} false; then :
9260   $as_echo_n "(cached) " >&6
9261 else
9262   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9263 fi
9264
9265 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9266 if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
9267   $as_echo_n "(cached) " >&6
9268 else
9269   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9270 fi
9271
9272 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9273
9274 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9275 if test "$GCC" = yes; then
9276   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9277 fi
9278
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9280 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9281 hardcode_action=
9282 if test -n "$hardcode_libdir_flag_spec" || \
9283    test -n "$runpath_var" || \
9284    test "X$hardcode_automatic" = "Xyes" ; then
9285
9286   # We can hardcode non-existant directories.
9287   if test "$hardcode_direct" != no &&
9288      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9289      # have to relink, otherwise we might link with an installed library
9290      # when we should be linking with a yet-to-be-installed one
9291      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9292      test "$hardcode_minus_L" != no; then
9293     # Linking always hardcodes the temporary library directory.
9294     hardcode_action=relink
9295   else
9296     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9297     hardcode_action=immediate
9298   fi
9299 else
9300   # We cannot hardcode anything, or else we can only hardcode existing
9301   # directories.
9302   hardcode_action=unsupported
9303 fi
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9305 $as_echo "$hardcode_action" >&6; }
9306
9307 if test "$hardcode_action" = relink; then
9308   # Fast installation is not supported
9309   enable_fast_install=no
9310 elif test "$shlibpath_overrides_runpath" = yes ||
9311      test "$enable_shared" = no; then
9312   # Fast installation is not necessary
9313   enable_fast_install=needless
9314 fi
9315
9316 striplib=
9317 old_striplib=
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9319 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9320 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9321   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9322   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9324 $as_echo "yes" >&6; }
9325 else
9326 # FIXME - insert some real tests, host_os isn't really good enough
9327   case $host_os in
9328    darwin*)
9329        if test -n "$STRIP" ; then
9330          striplib="$STRIP -x"
9331          old_striplib="$STRIP -S"
9332          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9333 $as_echo "yes" >&6; }
9334        else
9335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9336 $as_echo "no" >&6; }
9337 fi
9338        ;;
9339    *)
9340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9341 $as_echo "no" >&6; }
9342     ;;
9343   esac
9344 fi
9345
9346 if test "x$enable_dlopen" != xyes; then
9347   enable_dlopen=unknown
9348   enable_dlopen_self=unknown
9349   enable_dlopen_self_static=unknown
9350 else
9351   lt_cv_dlopen=no
9352   lt_cv_dlopen_libs=
9353
9354   case $host_os in
9355   beos*)
9356     lt_cv_dlopen="load_add_on"
9357     lt_cv_dlopen_libs=
9358     lt_cv_dlopen_self=yes
9359     ;;
9360
9361   mingw* | pw32*)
9362     lt_cv_dlopen="LoadLibrary"
9363     lt_cv_dlopen_libs=
9364    ;;
9365
9366   cygwin*)
9367     lt_cv_dlopen="dlopen"
9368     lt_cv_dlopen_libs=
9369    ;;
9370
9371   darwin*)
9372   # if libdl is installed we need to link against it
9373     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9374 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9375 if ${ac_cv_lib_dl_dlopen+:} false; then :
9376   $as_echo_n "(cached) " >&6
9377 else
9378   ac_check_lib_save_LIBS=$LIBS
9379 LIBS="-ldl  $LIBS"
9380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9381 /* end confdefs.h.  */
9382
9383 /* Override any GCC internal prototype to avoid an error.
9384    Use char because int might match the return type of a GCC
9385    builtin and then its argument prototype would still apply.  */
9386 #ifdef __cplusplus
9387 extern "C"
9388 #endif
9389 char dlopen ();
9390 int
9391 main ()
9392 {
9393 return dlopen ();
9394   ;
9395   return 0;
9396 }
9397 _ACEOF
9398 if ac_fn_c_try_link "$LINENO"; then :
9399   ac_cv_lib_dl_dlopen=yes
9400 else
9401   ac_cv_lib_dl_dlopen=no
9402 fi
9403 rm -f core conftest.err conftest.$ac_objext \
9404     conftest$ac_exeext conftest.$ac_ext
9405 LIBS=$ac_check_lib_save_LIBS
9406 fi
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9408 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9409 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9410   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9411 else
9412
9413     lt_cv_dlopen="dyld"
9414     lt_cv_dlopen_libs=
9415     lt_cv_dlopen_self=yes
9416
9417 fi
9418
9419    ;;
9420
9421   *)
9422     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9423 if test "x$ac_cv_func_shl_load" = xyes; then :
9424   lt_cv_dlopen="shl_load"
9425 else
9426   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9427 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9428 if ${ac_cv_lib_dld_shl_load+:} false; then :
9429   $as_echo_n "(cached) " >&6
9430 else
9431   ac_check_lib_save_LIBS=$LIBS
9432 LIBS="-ldld  $LIBS"
9433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9434 /* end confdefs.h.  */
9435
9436 /* Override any GCC internal prototype to avoid an error.
9437    Use char because int might match the return type of a GCC
9438    builtin and then its argument prototype would still apply.  */
9439 #ifdef __cplusplus
9440 extern "C"
9441 #endif
9442 char shl_load ();
9443 int
9444 main ()
9445 {
9446 return shl_load ();
9447   ;
9448   return 0;
9449 }
9450 _ACEOF
9451 if ac_fn_c_try_link "$LINENO"; then :
9452   ac_cv_lib_dld_shl_load=yes
9453 else
9454   ac_cv_lib_dld_shl_load=no
9455 fi
9456 rm -f core conftest.err conftest.$ac_objext \
9457     conftest$ac_exeext conftest.$ac_ext
9458 LIBS=$ac_check_lib_save_LIBS
9459 fi
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9461 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9462 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
9463   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9464 else
9465   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9466 if test "x$ac_cv_func_dlopen" = xyes; then :
9467   lt_cv_dlopen="dlopen"
9468 else
9469   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9470 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9471 if ${ac_cv_lib_dl_dlopen+:} false; then :
9472   $as_echo_n "(cached) " >&6
9473 else
9474   ac_check_lib_save_LIBS=$LIBS
9475 LIBS="-ldl  $LIBS"
9476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9477 /* end confdefs.h.  */
9478
9479 /* Override any GCC internal prototype to avoid an error.
9480    Use char because int might match the return type of a GCC
9481    builtin and then its argument prototype would still apply.  */
9482 #ifdef __cplusplus
9483 extern "C"
9484 #endif
9485 char dlopen ();
9486 int
9487 main ()
9488 {
9489 return dlopen ();
9490   ;
9491   return 0;
9492 }
9493 _ACEOF
9494 if ac_fn_c_try_link "$LINENO"; then :
9495   ac_cv_lib_dl_dlopen=yes
9496 else
9497   ac_cv_lib_dl_dlopen=no
9498 fi
9499 rm -f core conftest.err conftest.$ac_objext \
9500     conftest$ac_exeext conftest.$ac_ext
9501 LIBS=$ac_check_lib_save_LIBS
9502 fi
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9504 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9505 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9506   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9507 else
9508   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9509 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9510 if ${ac_cv_lib_svld_dlopen+:} false; then :
9511   $as_echo_n "(cached) " >&6
9512 else
9513   ac_check_lib_save_LIBS=$LIBS
9514 LIBS="-lsvld  $LIBS"
9515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9516 /* end confdefs.h.  */
9517
9518 /* Override any GCC internal prototype to avoid an error.
9519    Use char because int might match the return type of a GCC
9520    builtin and then its argument prototype would still apply.  */
9521 #ifdef __cplusplus
9522 extern "C"
9523 #endif
9524 char dlopen ();
9525 int
9526 main ()
9527 {
9528 return dlopen ();
9529   ;
9530   return 0;
9531 }
9532 _ACEOF
9533 if ac_fn_c_try_link "$LINENO"; then :
9534   ac_cv_lib_svld_dlopen=yes
9535 else
9536   ac_cv_lib_svld_dlopen=no
9537 fi
9538 rm -f core conftest.err conftest.$ac_objext \
9539     conftest$ac_exeext conftest.$ac_ext
9540 LIBS=$ac_check_lib_save_LIBS
9541 fi
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9543 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9544 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
9545   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9546 else
9547   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9548 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9549 if ${ac_cv_lib_dld_dld_link+:} false; then :
9550   $as_echo_n "(cached) " >&6
9551 else
9552   ac_check_lib_save_LIBS=$LIBS
9553 LIBS="-ldld  $LIBS"
9554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9555 /* end confdefs.h.  */
9556
9557 /* Override any GCC internal prototype to avoid an error.
9558    Use char because int might match the return type of a GCC
9559    builtin and then its argument prototype would still apply.  */
9560 #ifdef __cplusplus
9561 extern "C"
9562 #endif
9563 char dld_link ();
9564 int
9565 main ()
9566 {
9567 return dld_link ();
9568   ;
9569   return 0;
9570 }
9571 _ACEOF
9572 if ac_fn_c_try_link "$LINENO"; then :
9573   ac_cv_lib_dld_dld_link=yes
9574 else
9575   ac_cv_lib_dld_dld_link=no
9576 fi
9577 rm -f core conftest.err conftest.$ac_objext \
9578     conftest$ac_exeext conftest.$ac_ext
9579 LIBS=$ac_check_lib_save_LIBS
9580 fi
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9582 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9583 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
9584   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9585 fi
9586
9587
9588 fi
9589
9590
9591 fi
9592
9593
9594 fi
9595
9596
9597 fi
9598
9599
9600 fi
9601
9602     ;;
9603   esac
9604
9605   if test "x$lt_cv_dlopen" != xno; then
9606     enable_dlopen=yes
9607   else
9608     enable_dlopen=no
9609   fi
9610
9611   case $lt_cv_dlopen in
9612   dlopen)
9613     save_CPPFLAGS="$CPPFLAGS"
9614     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9615
9616     save_LDFLAGS="$LDFLAGS"
9617     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9618
9619     save_LIBS="$LIBS"
9620     LIBS="$lt_cv_dlopen_libs $LIBS"
9621
9622     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9623 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
9624 if ${lt_cv_dlopen_self+:} false; then :
9625   $as_echo_n "(cached) " >&6
9626 else
9627           if test "$cross_compiling" = yes; then :
9628   lt_cv_dlopen_self=cross
9629 else
9630   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9631   lt_status=$lt_dlunknown
9632   cat > conftest.$ac_ext <<EOF
9633 #line 9633 "configure"
9634 #include "confdefs.h"
9635
9636 #if HAVE_DLFCN_H
9637 #include <dlfcn.h>
9638 #endif
9639
9640 #include <stdio.h>
9641
9642 #ifdef RTLD_GLOBAL
9643 #  define LT_DLGLOBAL           RTLD_GLOBAL
9644 #else
9645 #  ifdef DL_GLOBAL
9646 #    define LT_DLGLOBAL         DL_GLOBAL
9647 #  else
9648 #    define LT_DLGLOBAL         0
9649 #  endif
9650 #endif
9651
9652 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9653    find out it does not work in some platform. */
9654 #ifndef LT_DLLAZY_OR_NOW
9655 #  ifdef RTLD_LAZY
9656 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9657 #  else
9658 #    ifdef DL_LAZY
9659 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9660 #    else
9661 #      ifdef RTLD_NOW
9662 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9663 #      else
9664 #        ifdef DL_NOW
9665 #          define LT_DLLAZY_OR_NOW      DL_NOW
9666 #        else
9667 #          define LT_DLLAZY_OR_NOW      0
9668 #        endif
9669 #      endif
9670 #    endif
9671 #  endif
9672 #endif
9673
9674 #ifdef __cplusplus
9675 extern "C" void exit (int);
9676 #endif
9677
9678 void fnord() { int i=42;}
9679 int main ()
9680 {
9681   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9682   int status = $lt_dlunknown;
9683
9684   if (self)
9685     {
9686       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9687       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9688       /* dlclose (self); */
9689     }
9690   else
9691     puts (dlerror ());
9692
9693     exit (status);
9694 }
9695 EOF
9696   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9697   (eval $ac_link) 2>&5
9698   ac_status=$?
9699   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9700   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9701     (./conftest; exit; ) >&5 2>/dev/null
9702     lt_status=$?
9703     case x$lt_status in
9704       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9705       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9706       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9707     esac
9708   else :
9709     # compilation failed
9710     lt_cv_dlopen_self=no
9711   fi
9712 fi
9713 rm -fr conftest*
9714
9715
9716 fi
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9718 $as_echo "$lt_cv_dlopen_self" >&6; }
9719
9720     if test "x$lt_cv_dlopen_self" = xyes; then
9721       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9722       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9723 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9724 if ${lt_cv_dlopen_self_static+:} false; then :
9725   $as_echo_n "(cached) " >&6
9726 else
9727           if test "$cross_compiling" = yes; then :
9728   lt_cv_dlopen_self_static=cross
9729 else
9730   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9731   lt_status=$lt_dlunknown
9732   cat > conftest.$ac_ext <<EOF
9733 #line 9733 "configure"
9734 #include "confdefs.h"
9735
9736 #if HAVE_DLFCN_H
9737 #include <dlfcn.h>
9738 #endif
9739
9740 #include <stdio.h>
9741
9742 #ifdef RTLD_GLOBAL
9743 #  define LT_DLGLOBAL           RTLD_GLOBAL
9744 #else
9745 #  ifdef DL_GLOBAL
9746 #    define LT_DLGLOBAL         DL_GLOBAL
9747 #  else
9748 #    define LT_DLGLOBAL         0
9749 #  endif
9750 #endif
9751
9752 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9753    find out it does not work in some platform. */
9754 #ifndef LT_DLLAZY_OR_NOW
9755 #  ifdef RTLD_LAZY
9756 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9757 #  else
9758 #    ifdef DL_LAZY
9759 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9760 #    else
9761 #      ifdef RTLD_NOW
9762 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9763 #      else
9764 #        ifdef DL_NOW
9765 #          define LT_DLLAZY_OR_NOW      DL_NOW
9766 #        else
9767 #          define LT_DLLAZY_OR_NOW      0
9768 #        endif
9769 #      endif
9770 #    endif
9771 #  endif
9772 #endif
9773
9774 #ifdef __cplusplus
9775 extern "C" void exit (int);
9776 #endif
9777
9778 void fnord() { int i=42;}
9779 int main ()
9780 {
9781   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9782   int status = $lt_dlunknown;
9783
9784   if (self)
9785     {
9786       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9787       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9788       /* dlclose (self); */
9789     }
9790   else
9791     puts (dlerror ());
9792
9793     exit (status);
9794 }
9795 EOF
9796   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9797   (eval $ac_link) 2>&5
9798   ac_status=$?
9799   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9800   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9801     (./conftest; exit; ) >&5 2>/dev/null
9802     lt_status=$?
9803     case x$lt_status in
9804       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9805       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9806       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9807     esac
9808   else :
9809     # compilation failed
9810     lt_cv_dlopen_self_static=no
9811   fi
9812 fi
9813 rm -fr conftest*
9814
9815
9816 fi
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
9818 $as_echo "$lt_cv_dlopen_self_static" >&6; }
9819     fi
9820
9821     CPPFLAGS="$save_CPPFLAGS"
9822     LDFLAGS="$save_LDFLAGS"
9823     LIBS="$save_LIBS"
9824     ;;
9825   esac
9826
9827   case $lt_cv_dlopen_self in
9828   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9829   *) enable_dlopen_self=unknown ;;
9830   esac
9831
9832   case $lt_cv_dlopen_self_static in
9833   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9834   *) enable_dlopen_self_static=unknown ;;
9835   esac
9836 fi
9837
9838
9839 # Report which library types will actually be built
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
9841 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
9843 $as_echo "$can_build_shared" >&6; }
9844
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
9846 $as_echo_n "checking whether to build shared libraries... " >&6; }
9847 test "$can_build_shared" = "no" && enable_shared=no
9848
9849 # On AIX, shared libraries and static libraries use the same namespace, and
9850 # are all built from PIC.
9851 case $host_os in
9852 aix3*)
9853   test "$enable_shared" = yes && enable_static=no
9854   if test -n "$RANLIB"; then
9855     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9856     postinstall_cmds='$RANLIB $lib'
9857   fi
9858   ;;
9859
9860 aix[4-9]*)
9861   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9862     test "$enable_shared" = yes && enable_static=no
9863   fi
9864     ;;
9865 esac
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
9867 $as_echo "$enable_shared" >&6; }
9868
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
9870 $as_echo_n "checking whether to build static libraries... " >&6; }
9871 # Make sure either enable_shared or enable_static is yes.
9872 test "$enable_shared" = yes || enable_static=yes
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
9874 $as_echo "$enable_static" >&6; }
9875
9876 # The else clause should only fire when bootstrapping the
9877 # libtool distribution, otherwise you forgot to ship ltmain.sh
9878 # with your package, and you will get complaints that there are
9879 # no rules to generate ltmain.sh.
9880 if test -f "$ltmain"; then
9881   # See if we are running on zsh, and set the options which allow our commands through
9882   # without removal of \ escapes.
9883   if test -n "${ZSH_VERSION+set}" ; then
9884     setopt NO_GLOB_SUBST
9885   fi
9886   # Now quote all the things that may contain metacharacters while being
9887   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9888   # variables and quote the copies for generation of the libtool script.
9889   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9890     SED SHELL STRIP \
9891     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9892     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9893     deplibs_check_method reload_flag reload_cmds need_locks \
9894     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9895     lt_cv_sys_global_symbol_to_c_name_address \
9896     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9897     old_postinstall_cmds old_postuninstall_cmds \
9898     compiler \
9899     CC \
9900     LD \
9901     lt_prog_compiler_wl \
9902     lt_prog_compiler_pic \
9903     lt_prog_compiler_static \
9904     lt_prog_compiler_no_builtin_flag \
9905     export_dynamic_flag_spec \
9906     thread_safe_flag_spec \
9907     whole_archive_flag_spec \
9908     enable_shared_with_static_runtimes \
9909     old_archive_cmds \
9910     old_archive_from_new_cmds \
9911     predep_objects \
9912     postdep_objects \
9913     predeps \
9914     postdeps \
9915     compiler_lib_search_path \
9916     compiler_lib_search_dirs \
9917     archive_cmds \
9918     archive_expsym_cmds \
9919     postinstall_cmds \
9920     postuninstall_cmds \
9921     old_archive_from_expsyms_cmds \
9922     allow_undefined_flag \
9923     no_undefined_flag \
9924     export_symbols_cmds \
9925     hardcode_libdir_flag_spec \
9926     hardcode_libdir_flag_spec_ld \
9927     hardcode_libdir_separator \
9928     hardcode_automatic \
9929     module_cmds \
9930     module_expsym_cmds \
9931     lt_cv_prog_compiler_c_o \
9932     fix_srcfile_path \
9933     exclude_expsyms \
9934     include_expsyms; do
9935
9936     case $var in
9937     old_archive_cmds | \
9938     old_archive_from_new_cmds | \
9939     archive_cmds | \
9940     archive_expsym_cmds | \
9941     module_cmds | \
9942     module_expsym_cmds | \
9943     old_archive_from_expsyms_cmds | \
9944     export_symbols_cmds | \
9945     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9946     postinstall_cmds | postuninstall_cmds | \
9947     old_postinstall_cmds | old_postuninstall_cmds | \
9948     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9949       # Double-quote double-evaled strings.
9950       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9951       ;;
9952     *)
9953       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9954       ;;
9955     esac
9956   done
9957
9958   case $lt_echo in
9959   *'\$0 --fallback-echo"')
9960     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9961     ;;
9962   esac
9963
9964 cfgfile="${ofile}T"
9965   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9966   $rm -f "$cfgfile"
9967   { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
9968 $as_echo "$as_me: creating $ofile" >&6;}
9969
9970   cat <<__EOF__ >> "$cfgfile"
9971 #! $SHELL
9972
9973 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9974 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9975 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9976 #
9977 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
9978 # Free Software Foundation, Inc.
9979 #
9980 # This file is part of GNU Libtool:
9981 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9982 #
9983 # This program is free software; you can redistribute it and/or modify
9984 # it under the terms of the GNU General Public License as published by
9985 # the Free Software Foundation; either version 2 of the License, or
9986 # (at your option) any later version.
9987 #
9988 # This program is distributed in the hope that it will be useful, but
9989 # WITHOUT ANY WARRANTY; without even the implied warranty of
9990 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9991 # General Public License for more details.
9992 #
9993 # You should have received a copy of the GNU General Public License
9994 # along with this program; if not, write to the Free Software
9995 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9996 #
9997 # As a special exception to the GNU General Public License, if you
9998 # distribute this file as part of a program that contains a
9999 # configuration script generated by Autoconf, you may include it under
10000 # the same distribution terms that you use for the rest of that program.
10001
10002 # A sed program that does not truncate output.
10003 SED=$lt_SED
10004
10005 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10006 Xsed="$SED -e 1s/^X//"
10007
10008 # The HP-UX ksh and POSIX shell print the target directory to stdout
10009 # if CDPATH is set.
10010 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10011
10012 # The names of the tagged configurations supported by this script.
10013 available_tags=
10014
10015 # ### BEGIN LIBTOOL CONFIG
10016
10017 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10018
10019 # Shell to use when invoking shell scripts.
10020 SHELL=$lt_SHELL
10021
10022 # Whether or not to build shared libraries.
10023 build_libtool_libs=$enable_shared
10024
10025 # Whether or not to build static libraries.
10026 build_old_libs=$enable_static
10027
10028 # Whether or not to add -lc for building shared libraries.
10029 build_libtool_need_lc=$archive_cmds_need_lc
10030
10031 # Whether or not to disallow shared libs when runtime libs are static
10032 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10033
10034 # Whether or not to optimize for fast installation.
10035 fast_install=$enable_fast_install
10036
10037 # The host system.
10038 host_alias=$host_alias
10039 host=$host
10040 host_os=$host_os
10041
10042 # The build system.
10043 build_alias=$build_alias
10044 build=$build
10045 build_os=$build_os
10046
10047 # An echo program that does not interpret backslashes.
10048 echo=$lt_echo
10049
10050 # The archiver.
10051 AR=$lt_AR
10052 AR_FLAGS=$lt_AR_FLAGS
10053
10054 # A C compiler.
10055 LTCC=$lt_LTCC
10056
10057 # LTCC compiler flags.
10058 LTCFLAGS=$lt_LTCFLAGS
10059
10060 # A language-specific compiler.
10061 CC=$lt_compiler
10062
10063 # Is the compiler the GNU C compiler?
10064 with_gcc=$GCC
10065
10066 # An ERE matcher.
10067 EGREP=$lt_EGREP
10068
10069 # The linker used to build libraries.
10070 LD=$lt_LD
10071
10072 # Whether we need hard or soft links.
10073 LN_S=$lt_LN_S
10074
10075 # A BSD-compatible nm program.
10076 NM=$lt_NM
10077
10078 # A symbol stripping program
10079 STRIP=$lt_STRIP
10080
10081 # Used to examine libraries when file_magic_cmd begins "file"
10082 MAGIC_CMD=$MAGIC_CMD
10083
10084 # Used on cygwin: DLL creation program.
10085 DLLTOOL="$DLLTOOL"
10086
10087 # Used on cygwin: object dumper.
10088 OBJDUMP="$OBJDUMP"
10089
10090 # Used on cygwin: assembler.
10091 AS="$AS"
10092
10093 # The name of the directory that contains temporary libtool files.
10094 objdir=$objdir
10095
10096 # How to create reloadable object files.
10097 reload_flag=$lt_reload_flag
10098 reload_cmds=$lt_reload_cmds
10099
10100 # How to pass a linker flag through the compiler.
10101 wl=$lt_lt_prog_compiler_wl
10102
10103 # Object file suffix (normally "o").
10104 objext="$ac_objext"
10105
10106 # Old archive suffix (normally "a").
10107 libext="$libext"
10108
10109 # Shared library suffix (normally ".so").
10110 shrext_cmds='$shrext_cmds'
10111
10112 # Executable file suffix (normally "").
10113 exeext="$exeext"
10114
10115 # Additional compiler flags for building library objects.
10116 pic_flag=$lt_lt_prog_compiler_pic
10117 pic_mode=$pic_mode
10118
10119 # What is the maximum length of a command?
10120 max_cmd_len=$lt_cv_sys_max_cmd_len
10121
10122 # Does compiler simultaneously support -c and -o options?
10123 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10124
10125 # Must we lock files when doing compilation?
10126 need_locks=$lt_need_locks
10127
10128 # Do we need the lib prefix for modules?
10129 need_lib_prefix=$need_lib_prefix
10130
10131 # Do we need a version for libraries?
10132 need_version=$need_version
10133
10134 # Whether dlopen is supported.
10135 dlopen_support=$enable_dlopen
10136
10137 # Whether dlopen of programs is supported.
10138 dlopen_self=$enable_dlopen_self
10139
10140 # Whether dlopen of statically linked programs is supported.
10141 dlopen_self_static=$enable_dlopen_self_static
10142
10143 # Compiler flag to prevent dynamic linking.
10144 link_static_flag=$lt_lt_prog_compiler_static
10145
10146 # Compiler flag to turn off builtin functions.
10147 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10148
10149 # Compiler flag to allow reflexive dlopens.
10150 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10151
10152 # Compiler flag to generate shared objects directly from archives.
10153 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10154
10155 # Compiler flag to generate thread-safe objects.
10156 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10157
10158 # Library versioning type.
10159 version_type=$version_type
10160
10161 # Format of library name prefix.
10162 libname_spec=$lt_libname_spec
10163
10164 # List of archive names.  First name is the real one, the rest are links.
10165 # The last name is the one that the linker finds with -lNAME.
10166 library_names_spec=$lt_library_names_spec
10167
10168 # The coded name of the library, if different from the real name.
10169 soname_spec=$lt_soname_spec
10170
10171 # Commands used to build and install an old-style archive.
10172 RANLIB=$lt_RANLIB
10173 old_archive_cmds=$lt_old_archive_cmds
10174 old_postinstall_cmds=$lt_old_postinstall_cmds
10175 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10176
10177 # Create an old-style archive from a shared archive.
10178 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10179
10180 # Create a temporary old-style archive to link instead of a shared archive.
10181 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10182
10183 # Commands used to build and install a shared archive.
10184 archive_cmds=$lt_archive_cmds
10185 archive_expsym_cmds=$lt_archive_expsym_cmds
10186 postinstall_cmds=$lt_postinstall_cmds
10187 postuninstall_cmds=$lt_postuninstall_cmds
10188
10189 # Commands used to build a loadable module (assumed same as above if empty)
10190 module_cmds=$lt_module_cmds
10191 module_expsym_cmds=$lt_module_expsym_cmds
10192
10193 # Commands to strip libraries.
10194 old_striplib=$lt_old_striplib
10195 striplib=$lt_striplib
10196
10197 # Dependencies to place before the objects being linked to create a
10198 # shared library.
10199 predep_objects=$lt_predep_objects
10200
10201 # Dependencies to place after the objects being linked to create a
10202 # shared library.
10203 postdep_objects=$lt_postdep_objects
10204
10205 # Dependencies to place before the objects being linked to create a
10206 # shared library.
10207 predeps=$lt_predeps
10208
10209 # Dependencies to place after the objects being linked to create a
10210 # shared library.
10211 postdeps=$lt_postdeps
10212
10213 # The directories searched by this compiler when creating a shared
10214 # library
10215 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10216
10217 # The library search path used internally by the compiler when linking
10218 # a shared library.
10219 compiler_lib_search_path=$lt_compiler_lib_search_path
10220
10221 # Method to check whether dependent libraries are shared objects.
10222 deplibs_check_method=$lt_deplibs_check_method
10223
10224 # Command to use when deplibs_check_method == file_magic.
10225 file_magic_cmd=$lt_file_magic_cmd
10226
10227 # Flag that allows shared libraries with undefined symbols to be built.
10228 allow_undefined_flag=$lt_allow_undefined_flag
10229
10230 # Flag that forces no undefined symbols.
10231 no_undefined_flag=$lt_no_undefined_flag
10232
10233 # Commands used to finish a libtool library installation in a directory.
10234 finish_cmds=$lt_finish_cmds
10235
10236 # Same as above, but a single script fragment to be evaled but not shown.
10237 finish_eval=$lt_finish_eval
10238
10239 # Take the output of nm and produce a listing of raw symbols and C names.
10240 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10241
10242 # Transform the output of nm in a proper C declaration
10243 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10244
10245 # Transform the output of nm in a C name address pair
10246 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10247
10248 # This is the shared library runtime path variable.
10249 runpath_var=$runpath_var
10250
10251 # This is the shared library path variable.
10252 shlibpath_var=$shlibpath_var
10253
10254 # Is shlibpath searched before the hard-coded library search path?
10255 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10256
10257 # How to hardcode a shared library path into an executable.
10258 hardcode_action=$hardcode_action
10259
10260 # Whether we should hardcode library paths into libraries.
10261 hardcode_into_libs=$hardcode_into_libs
10262
10263 # Flag to hardcode \$libdir into a binary during linking.
10264 # This must work even if \$libdir does not exist.
10265 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10266
10267 # If ld is used when linking, flag to hardcode \$libdir into
10268 # a binary during linking. This must work even if \$libdir does
10269 # not exist.
10270 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10271
10272 # Whether we need a single -rpath flag with a separated argument.
10273 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10274
10275 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10276 # resulting binary.
10277 hardcode_direct=$hardcode_direct
10278
10279 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10280 # resulting binary.
10281 hardcode_minus_L=$hardcode_minus_L
10282
10283 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10284 # the resulting binary.
10285 hardcode_shlibpath_var=$hardcode_shlibpath_var
10286
10287 # Set to yes if building a shared library automatically hardcodes DIR into the library
10288 # and all subsequent libraries and executables linked against it.
10289 hardcode_automatic=$hardcode_automatic
10290
10291 # Variables whose values should be saved in libtool wrapper scripts and
10292 # restored at relink time.
10293 variables_saved_for_relink="$variables_saved_for_relink"
10294
10295 # Whether libtool must link a program against all its dependency libraries.
10296 link_all_deplibs=$link_all_deplibs
10297
10298 # Compile-time system search path for libraries
10299 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10300
10301 # Run-time system search path for libraries
10302 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10303
10304 # Fix the shell variable \$srcfile for the compiler.
10305 fix_srcfile_path=$lt_fix_srcfile_path
10306
10307 # Set to yes if exported symbols are required.
10308 always_export_symbols=$always_export_symbols
10309
10310 # The commands to list exported symbols.
10311 export_symbols_cmds=$lt_export_symbols_cmds
10312
10313 # The commands to extract the exported symbol list from a shared archive.
10314 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10315
10316 # Symbols that should not be listed in the preloaded symbols.
10317 exclude_expsyms=$lt_exclude_expsyms
10318
10319 # Symbols that must always be exported.
10320 include_expsyms=$lt_include_expsyms
10321
10322 # ### END LIBTOOL CONFIG
10323
10324 __EOF__
10325
10326
10327   case $host_os in
10328   aix3*)
10329     cat <<\EOF >> "$cfgfile"
10330
10331 # AIX sometimes has problems with the GCC collect2 program.  For some
10332 # reason, if we set the COLLECT_NAMES environment variable, the problems
10333 # vanish in a puff of smoke.
10334 if test "X${COLLECT_NAMES+set}" != Xset; then
10335   COLLECT_NAMES=
10336   export COLLECT_NAMES
10337 fi
10338 EOF
10339     ;;
10340   esac
10341
10342   # We use sed instead of cat because bash on DJGPP gets confused if
10343   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10344   # text mode, it properly converts lines to CR/LF.  This bash problem
10345   # is reportedly fixed, but why not run on old versions too?
10346   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10347
10348   mv -f "$cfgfile" "$ofile" || \
10349     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10350   chmod +x "$ofile"
10351
10352 else
10353   # If there is no Makefile yet, we rely on a make rule to execute
10354   # `config.status --recheck' to rerun these tests and create the
10355   # libtool script then.
10356   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10357   if test -f "$ltmain_in"; then
10358     test -f Makefile && make "$ltmain"
10359   fi
10360 fi
10361
10362
10363 ac_ext=c
10364 ac_cpp='$CPP $CPPFLAGS'
10365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10368
10369 CC="$lt_save_CC"
10370
10371
10372 # Check whether --with-tags was given.
10373 if test "${with_tags+set}" = set; then :
10374   withval=$with_tags; tagnames="$withval"
10375 fi
10376
10377
10378 if test -f "$ltmain" && test -n "$tagnames"; then
10379   if test ! -f "${ofile}"; then
10380     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
10381 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10382   fi
10383
10384   if test -z "$LTCC"; then
10385     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10386     if test -z "$LTCC"; then
10387       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10388 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10389     else
10390       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10391 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10392     fi
10393   fi
10394   if test -z "$LTCFLAGS"; then
10395     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10396   fi
10397
10398   # Extract list of available tagged configurations in $ofile.
10399   # Note that this assumes the entire list is on one line.
10400   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10401
10402   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10403   for tagname in $tagnames; do
10404     IFS="$lt_save_ifs"
10405     # Check whether tagname contains only valid characters
10406     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10407     "") ;;
10408     *)  as_fn_error $? "invalid tag name: $tagname" "$LINENO" 5
10409         ;;
10410     esac
10411
10412     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10413     then
10414       as_fn_error $? "tag name \"$tagname\" already exists" "$LINENO" 5
10415     fi
10416
10417     # Update the list of available tags.
10418     if test -n "$tagname"; then
10419       echo appending configuration tag \"$tagname\" to $ofile
10420
10421       case $tagname in
10422       CXX)
10423         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10424             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10425             (test "X$CXX" != "Xg++"))) ; then
10426           ac_ext=cpp
10427 ac_cpp='$CXXCPP $CPPFLAGS'
10428 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10429 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10430 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10431
10432
10433
10434
10435 archive_cmds_need_lc_CXX=no
10436 allow_undefined_flag_CXX=
10437 always_export_symbols_CXX=no
10438 archive_expsym_cmds_CXX=
10439 export_dynamic_flag_spec_CXX=
10440 hardcode_direct_CXX=no
10441 hardcode_libdir_flag_spec_CXX=
10442 hardcode_libdir_flag_spec_ld_CXX=
10443 hardcode_libdir_separator_CXX=
10444 hardcode_minus_L_CXX=no
10445 hardcode_shlibpath_var_CXX=unsupported
10446 hardcode_automatic_CXX=no
10447 module_cmds_CXX=
10448 module_expsym_cmds_CXX=
10449 link_all_deplibs_CXX=unknown
10450 old_archive_cmds_CXX=$old_archive_cmds
10451 no_undefined_flag_CXX=
10452 whole_archive_flag_spec_CXX=
10453 enable_shared_with_static_runtimes_CXX=no
10454
10455 # Dependencies to place before and after the object being linked:
10456 predep_objects_CXX=
10457 postdep_objects_CXX=
10458 predeps_CXX=
10459 postdeps_CXX=
10460 compiler_lib_search_path_CXX=
10461 compiler_lib_search_dirs_CXX=
10462
10463 # Source file extension for C++ test sources.
10464 ac_ext=cpp
10465
10466 # Object file extension for compiled C++ test sources.
10467 objext=o
10468 objext_CXX=$objext
10469
10470 # Code to be used in simple compile tests
10471 lt_simple_compile_test_code="int some_variable = 0;"
10472
10473 # Code to be used in simple link tests
10474 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10475
10476 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10477
10478 # If no C compiler was specified, use CC.
10479 LTCC=${LTCC-"$CC"}
10480
10481 # If no C compiler flags were specified, use CFLAGS.
10482 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10483
10484 # Allow CC to be a program name with arguments.
10485 compiler=$CC
10486
10487
10488 # save warnings/boilerplate of simple test code
10489 ac_outfile=conftest.$ac_objext
10490 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10491 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10492 _lt_compiler_boilerplate=`cat conftest.err`
10493 $rm conftest*
10494
10495 ac_outfile=conftest.$ac_objext
10496 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10497 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10498 _lt_linker_boilerplate=`cat conftest.err`
10499 $rm -r conftest*
10500
10501
10502 # Allow CC to be a program name with arguments.
10503 lt_save_CC=$CC
10504 lt_save_LD=$LD
10505 lt_save_GCC=$GCC
10506 GCC=$GXX
10507 lt_save_with_gnu_ld=$with_gnu_ld
10508 lt_save_path_LD=$lt_cv_path_LD
10509 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10510   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10511 else
10512   $as_unset lt_cv_prog_gnu_ld
10513 fi
10514 if test -n "${lt_cv_path_LDCXX+set}"; then
10515   lt_cv_path_LD=$lt_cv_path_LDCXX
10516 else
10517   $as_unset lt_cv_path_LD
10518 fi
10519 test -z "${LDCXX+set}" || LD=$LDCXX
10520 CC=${CXX-"c++"}
10521 compiler=$CC
10522 compiler_CXX=$CC
10523 for cc_temp in $compiler""; do
10524   case $cc_temp in
10525     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10526     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10527     \-*) ;;
10528     *) break;;
10529   esac
10530 done
10531 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10532
10533
10534 # We don't want -fno-exception wen compiling C++ code, so set the
10535 # no_builtin_flag separately
10536 if test "$GXX" = yes; then
10537   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10538 else
10539   lt_prog_compiler_no_builtin_flag_CXX=
10540 fi
10541
10542 if test "$GXX" = yes; then
10543   # Set up default GNU C++ configuration
10544
10545
10546 # Check whether --with-gnu-ld was given.
10547 if test "${with_gnu_ld+set}" = set; then :
10548   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10549 else
10550   with_gnu_ld=no
10551 fi
10552
10553 ac_prog=ld
10554 if test "$GCC" = yes; then
10555   # Check if gcc -print-prog-name=ld gives a path.
10556   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10557 $as_echo_n "checking for ld used by $CC... " >&6; }
10558   case $host in
10559   *-*-mingw*)
10560     # gcc leaves a trailing carriage return which upsets mingw
10561     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10562   *)
10563     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10564   esac
10565   case $ac_prog in
10566     # Accept absolute paths.
10567     [\\/]* | ?:[\\/]*)
10568       re_direlt='/[^/][^/]*/\.\./'
10569       # Canonicalize the pathname of ld
10570       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10571       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10572         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10573       done
10574       test -z "$LD" && LD="$ac_prog"
10575       ;;
10576   "")
10577     # If it fails, then pretend we aren't using GCC.
10578     ac_prog=ld
10579     ;;
10580   *)
10581     # If it is relative, then search for the first ld in PATH.
10582     with_gnu_ld=unknown
10583     ;;
10584   esac
10585 elif test "$with_gnu_ld" = yes; then
10586   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10587 $as_echo_n "checking for GNU ld... " >&6; }
10588 else
10589   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10590 $as_echo_n "checking for non-GNU ld... " >&6; }
10591 fi
10592 if ${lt_cv_path_LD+:} false; then :
10593   $as_echo_n "(cached) " >&6
10594 else
10595   if test -z "$LD"; then
10596   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10597   for ac_dir in $PATH; do
10598     IFS="$lt_save_ifs"
10599     test -z "$ac_dir" && ac_dir=.
10600     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10601       lt_cv_path_LD="$ac_dir/$ac_prog"
10602       # Check to see if the program is GNU ld.  I'd rather use --version,
10603       # but apparently some variants of GNU ld only accept -v.
10604       # Break only if it was the GNU/non-GNU ld that we prefer.
10605       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10606       *GNU* | *'with BFD'*)
10607         test "$with_gnu_ld" != no && break
10608         ;;
10609       *)
10610         test "$with_gnu_ld" != yes && break
10611         ;;
10612       esac
10613     fi
10614   done
10615   IFS="$lt_save_ifs"
10616 else
10617   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10618 fi
10619 fi
10620
10621 LD="$lt_cv_path_LD"
10622 if test -n "$LD"; then
10623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10624 $as_echo "$LD" >&6; }
10625 else
10626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10627 $as_echo "no" >&6; }
10628 fi
10629 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10631 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10632 if ${lt_cv_prog_gnu_ld+:} false; then :
10633   $as_echo_n "(cached) " >&6
10634 else
10635   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10636 case `$LD -v 2>&1 </dev/null` in
10637 *GNU* | *'with BFD'*)
10638   lt_cv_prog_gnu_ld=yes
10639   ;;
10640 *)
10641   lt_cv_prog_gnu_ld=no
10642   ;;
10643 esac
10644 fi
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
10646 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
10647 with_gnu_ld=$lt_cv_prog_gnu_ld
10648
10649
10650
10651   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10652   # archiving commands below assume that GNU ld is being used.
10653   if test "$with_gnu_ld" = yes; then
10654     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10655     archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10656
10657     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10658     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10659
10660     # If archive_cmds runs LD, not CC, wlarc should be empty
10661     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10662     #     investigate it a little bit more. (MM)
10663     wlarc='${wl}'
10664
10665     # ancient GNU ld didn't support --whole-archive et. al.
10666     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10667         grep 'no-whole-archive' > /dev/null; then
10668       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10669     else
10670       whole_archive_flag_spec_CXX=
10671     fi
10672   else
10673     with_gnu_ld=no
10674     wlarc=
10675
10676     # A generic and very simple default shared library creation
10677     # command for GNU C++ for the case where it uses the native
10678     # linker, instead of GNU ld.  If possible, this setting should
10679     # overridden to take advantage of the native linker features on
10680     # the platform it is being used on.
10681     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10682   fi
10683
10684   # Commands to make compiler produce verbose output that lists
10685   # what "hidden" libraries, object files and flags are used when
10686   # linking a shared library.
10687   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10688
10689 else
10690   GXX=no
10691   with_gnu_ld=no
10692   wlarc=
10693 fi
10694
10695 # PORTME: fill in a description of your system's C++ link characteristics
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10697 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10698 ld_shlibs_CXX=yes
10699 case $host_os in
10700   aix3*)
10701     # FIXME: insert proper C++ library support
10702     ld_shlibs_CXX=no
10703     ;;
10704   aix[4-9]*)
10705     if test "$host_cpu" = ia64; then
10706       # On IA64, the linker does run time linking by default, so we don't
10707       # have to do anything special.
10708       aix_use_runtimelinking=no
10709       exp_sym_flag='-Bexport'
10710       no_entry_flag=""
10711     else
10712       aix_use_runtimelinking=no
10713
10714       # Test if we are trying to use run time linking or normal
10715       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10716       # need to do runtime linking.
10717       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10718         for ld_flag in $LDFLAGS; do
10719           case $ld_flag in
10720           *-brtl*)
10721             aix_use_runtimelinking=yes
10722             break
10723             ;;
10724           esac
10725         done
10726         ;;
10727       esac
10728
10729       exp_sym_flag='-bexport'
10730       no_entry_flag='-bnoentry'
10731     fi
10732
10733     # When large executables or shared objects are built, AIX ld can
10734     # have problems creating the table of contents.  If linking a library
10735     # or program results in "error TOC overflow" add -mminimal-toc to
10736     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10737     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10738
10739     archive_cmds_CXX=''
10740     hardcode_direct_CXX=yes
10741     hardcode_libdir_separator_CXX=':'
10742     link_all_deplibs_CXX=yes
10743
10744     if test "$GXX" = yes; then
10745       case $host_os in aix4.[012]|aix4.[012].*)
10746       # We only want to do this on AIX 4.2 and lower, the check
10747       # below for broken collect2 doesn't work under 4.3+
10748         collect2name=`${CC} -print-prog-name=collect2`
10749         if test -f "$collect2name" && \
10750            strings "$collect2name" | grep resolve_lib_name >/dev/null
10751         then
10752           # We have reworked collect2
10753           :
10754         else
10755           # We have old collect2
10756           hardcode_direct_CXX=unsupported
10757           # It fails to find uninstalled libraries when the uninstalled
10758           # path is not listed in the libpath.  Setting hardcode_minus_L
10759           # to unsupported forces relinking
10760           hardcode_minus_L_CXX=yes
10761           hardcode_libdir_flag_spec_CXX='-L$libdir'
10762           hardcode_libdir_separator_CXX=
10763         fi
10764         ;;
10765       esac
10766       shared_flag='-shared'
10767       if test "$aix_use_runtimelinking" = yes; then
10768         shared_flag="$shared_flag "'${wl}-G'
10769       fi
10770     else
10771       # not using gcc
10772       if test "$host_cpu" = ia64; then
10773         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10774         # chokes on -Wl,-G. The following line is correct:
10775         shared_flag='-G'
10776       else
10777         if test "$aix_use_runtimelinking" = yes; then
10778           shared_flag='${wl}-G'
10779         else
10780           shared_flag='${wl}-bM:SRE'
10781         fi
10782       fi
10783     fi
10784
10785     # It seems that -bexpall does not export symbols beginning with
10786     # underscore (_), so it is better to generate a list of symbols to export.
10787     always_export_symbols_CXX=yes
10788     if test "$aix_use_runtimelinking" = yes; then
10789       # Warning - without using the other runtime loading flags (-brtl),
10790       # -berok will link without error, but may produce a broken library.
10791       allow_undefined_flag_CXX='-berok'
10792       # Determine the default libpath from the value encoded in an empty executable.
10793       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10794 /* end confdefs.h.  */
10795
10796 int
10797 main ()
10798 {
10799
10800   ;
10801   return 0;
10802 }
10803 _ACEOF
10804 if ac_fn_cxx_try_link "$LINENO"; then :
10805
10806 lt_aix_libpath_sed='
10807     /Import File Strings/,/^$/ {
10808         /^0/ {
10809             s/^0  *\(.*\)$/\1/
10810             p
10811         }
10812     }'
10813 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10814 # Check for a 64-bit object if we didn't find anything.
10815 if test -z "$aix_libpath"; then
10816   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10817 fi
10818 fi
10819 rm -f core conftest.err conftest.$ac_objext \
10820     conftest$ac_exeext conftest.$ac_ext
10821 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10822
10823       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10824
10825       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10826      else
10827       if test "$host_cpu" = ia64; then
10828         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10829         allow_undefined_flag_CXX="-z nodefs"
10830         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10831       else
10832         # Determine the default libpath from the value encoded in an empty executable.
10833         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10834 /* end confdefs.h.  */
10835
10836 int
10837 main ()
10838 {
10839
10840   ;
10841   return 0;
10842 }
10843 _ACEOF
10844 if ac_fn_cxx_try_link "$LINENO"; then :
10845
10846 lt_aix_libpath_sed='
10847     /Import File Strings/,/^$/ {
10848         /^0/ {
10849             s/^0  *\(.*\)$/\1/
10850             p
10851         }
10852     }'
10853 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10854 # Check for a 64-bit object if we didn't find anything.
10855 if test -z "$aix_libpath"; then
10856   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10857 fi
10858 fi
10859 rm -f core conftest.err conftest.$ac_objext \
10860     conftest$ac_exeext conftest.$ac_ext
10861 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10862
10863         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10864         # Warning - without using the other run time loading flags,
10865         # -berok will link without error, but may produce a broken library.
10866         no_undefined_flag_CXX=' ${wl}-bernotok'
10867         allow_undefined_flag_CXX=' ${wl}-berok'
10868         # Exported symbols can be pulled into shared objects from archives
10869         whole_archive_flag_spec_CXX='$convenience'
10870         archive_cmds_need_lc_CXX=yes
10871         # This is similar to how AIX traditionally builds its shared libraries.
10872         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10873       fi
10874     fi
10875     ;;
10876
10877   beos*)
10878     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10879       allow_undefined_flag_CXX=unsupported
10880       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10881       # support --undefined.  This deserves some investigation.  FIXME
10882       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10883     else
10884       ld_shlibs_CXX=no
10885     fi
10886     ;;
10887
10888   chorus*)
10889     case $cc_basename in
10890       *)
10891         # FIXME: insert proper C++ library support
10892         ld_shlibs_CXX=no
10893         ;;
10894     esac
10895     ;;
10896
10897   cygwin* | mingw* | pw32*)
10898     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10899     # as there is no search path for DLLs.
10900     hardcode_libdir_flag_spec_CXX='-L$libdir'
10901     allow_undefined_flag_CXX=unsupported
10902     always_export_symbols_CXX=no
10903     enable_shared_with_static_runtimes_CXX=yes
10904
10905     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10906       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10907       # If the export-symbols file already is a .def file (1st line
10908       # is EXPORTS), use it as is; otherwise, prepend...
10909       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10910         cp $export_symbols $output_objdir/$soname.def;
10911       else
10912         echo EXPORTS > $output_objdir/$soname.def;
10913         cat $export_symbols >> $output_objdir/$soname.def;
10914       fi~
10915       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10916     else
10917       ld_shlibs_CXX=no
10918     fi
10919   ;;
10920       darwin* | rhapsody*)
10921       archive_cmds_need_lc_CXX=no
10922       hardcode_direct_CXX=no
10923       hardcode_automatic_CXX=yes
10924       hardcode_shlibpath_var_CXX=unsupported
10925       whole_archive_flag_spec_CXX=''
10926       link_all_deplibs_CXX=yes
10927       allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
10928       if test "$GXX" = yes ; then
10929       output_verbose_link_cmd='echo'
10930       archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10931       module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10932       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10933       module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10934       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
10935         archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
10936         archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
10937       fi
10938       else
10939       case $cc_basename in
10940         xlc*)
10941          output_verbose_link_cmd='echo'
10942           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
10943           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10944           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10945           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10946           module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10947           ;;
10948        *)
10949          ld_shlibs_CXX=no
10950           ;;
10951       esac
10952       fi
10953         ;;
10954
10955   dgux*)
10956     case $cc_basename in
10957       ec++*)
10958         # FIXME: insert proper C++ library support
10959         ld_shlibs_CXX=no
10960         ;;
10961       ghcx*)
10962         # Green Hills C++ Compiler
10963         # FIXME: insert proper C++ library support
10964         ld_shlibs_CXX=no
10965         ;;
10966       *)
10967         # FIXME: insert proper C++ library support
10968         ld_shlibs_CXX=no
10969         ;;
10970     esac
10971     ;;
10972   freebsd[12]*)
10973     # C++ shared libraries reported to be fairly broken before switch to ELF
10974     ld_shlibs_CXX=no
10975     ;;
10976   freebsd-elf*)
10977     archive_cmds_need_lc_CXX=no
10978     ;;
10979   freebsd* | dragonfly*)
10980     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10981     # conventions
10982     ld_shlibs_CXX=yes
10983     ;;
10984   gnu*)
10985     ;;
10986   hpux9*)
10987     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10988     hardcode_libdir_separator_CXX=:
10989     export_dynamic_flag_spec_CXX='${wl}-E'
10990     hardcode_direct_CXX=yes
10991     hardcode_minus_L_CXX=yes # Not in the search PATH,
10992                                 # but as the default
10993                                 # location of the library.
10994
10995     case $cc_basename in
10996     CC*)
10997       # FIXME: insert proper C++ library support
10998       ld_shlibs_CXX=no
10999       ;;
11000     aCC*)
11001       archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11002       # Commands to make compiler produce verbose output that lists
11003       # what "hidden" libraries, object files and flags are used when
11004       # linking a shared library.
11005       #
11006       # There doesn't appear to be a way to prevent this compiler from
11007       # explicitly linking system object files so we need to strip them
11008       # from the output so that they don't get included in the library
11009       # dependencies.
11010       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11011       ;;
11012     *)
11013       if test "$GXX" = yes; then
11014         archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11015       else
11016         # FIXME: insert proper C++ library support
11017         ld_shlibs_CXX=no
11018       fi
11019       ;;
11020     esac
11021     ;;
11022   hpux10*|hpux11*)
11023     if test $with_gnu_ld = no; then
11024       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11025       hardcode_libdir_separator_CXX=:
11026
11027       case $host_cpu in
11028       hppa*64*|ia64*) ;;
11029       *)
11030         export_dynamic_flag_spec_CXX='${wl}-E'
11031         ;;
11032       esac
11033     fi
11034     case $host_cpu in
11035     hppa*64*|ia64*)
11036       hardcode_direct_CXX=no
11037       hardcode_shlibpath_var_CXX=no
11038       ;;
11039     *)
11040       hardcode_direct_CXX=yes
11041       hardcode_minus_L_CXX=yes # Not in the search PATH,
11042                                               # but as the default
11043                                               # location of the library.
11044       ;;
11045     esac
11046
11047     case $cc_basename in
11048       CC*)
11049         # FIXME: insert proper C++ library support
11050         ld_shlibs_CXX=no
11051         ;;
11052       aCC*)
11053         case $host_cpu in
11054         hppa*64*)
11055           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11056           ;;
11057         ia64*)
11058           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11059           ;;
11060         *)
11061           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11062           ;;
11063         esac
11064         # Commands to make compiler produce verbose output that lists
11065         # what "hidden" libraries, object files and flags are used when
11066         # linking a shared library.
11067         #
11068         # There doesn't appear to be a way to prevent this compiler from
11069         # explicitly linking system object files so we need to strip them
11070         # from the output so that they don't get included in the library
11071         # dependencies.
11072         output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11073         ;;
11074       *)
11075         if test "$GXX" = yes; then
11076           if test $with_gnu_ld = no; then
11077             case $host_cpu in
11078             hppa*64*)
11079               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11080               ;;
11081             ia64*)
11082               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11083               ;;
11084             *)
11085               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11086               ;;
11087             esac
11088           fi
11089         else
11090           # FIXME: insert proper C++ library support
11091           ld_shlibs_CXX=no
11092         fi
11093         ;;
11094     esac
11095     ;;
11096   interix[3-9]*)
11097     hardcode_direct_CXX=no
11098     hardcode_shlibpath_var_CXX=no
11099     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11100     export_dynamic_flag_spec_CXX='${wl}-E'
11101     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11102     # Instead, shared libraries are loaded at an image base (0x10000000 by
11103     # default) and relocated if they conflict, which is a slow very memory
11104     # consuming and fragmenting process.  To avoid this, we pick a random,
11105     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11106     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11107     archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11108     archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11109     ;;
11110   irix5* | irix6*)
11111     case $cc_basename in
11112       CC*)
11113         # SGI C++
11114         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11115
11116         # Archives containing C++ object files must be created using
11117         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11118         # necessary to make sure instantiated templates are included
11119         # in the archive.
11120         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11121         ;;
11122       *)
11123         if test "$GXX" = yes; then
11124           if test "$with_gnu_ld" = no; then
11125             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11126           else
11127             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11128           fi
11129         fi
11130         link_all_deplibs_CXX=yes
11131         ;;
11132     esac
11133     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11134     hardcode_libdir_separator_CXX=:
11135     ;;
11136   linux* | k*bsd*-gnu)
11137     case $cc_basename in
11138       KCC*)
11139         # Kuck and Associates, Inc. (KAI) C++ Compiler
11140
11141         # KCC will only create a shared library if the output file
11142         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11143         # to its proper name (with version) after linking.
11144         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11145         archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11146         # Commands to make compiler produce verbose output that lists
11147         # what "hidden" libraries, object files and flags are used when
11148         # linking a shared library.
11149         #
11150         # There doesn't appear to be a way to prevent this compiler from
11151         # explicitly linking system object files so we need to strip them
11152         # from the output so that they don't get included in the library
11153         # dependencies.
11154         output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11155
11156         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11157         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11158
11159         # Archives containing C++ object files must be created using
11160         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11161         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11162         ;;
11163       icpc*)
11164         # Intel C++
11165         with_gnu_ld=yes
11166         # version 8.0 and above of icpc choke on multiply defined symbols
11167         # if we add $predep_objects and $postdep_objects, however 7.1 and
11168         # earlier do not add the objects themselves.
11169         case `$CC -V 2>&1` in
11170         *"Version 7."*)
11171           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11172           archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11173           ;;
11174         *)  # Version 8.0 or newer
11175           tmp_idyn=
11176           case $host_cpu in
11177             ia64*) tmp_idyn=' -i_dynamic';;
11178           esac
11179           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11180           archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11181           ;;
11182         esac
11183         archive_cmds_need_lc_CXX=no
11184         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11185         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11186         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11187         ;;
11188       pgCC* | pgcpp*)
11189         # Portland Group C++ compiler
11190         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11191         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11192
11193         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11194         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11195         whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11196         ;;
11197       cxx*)
11198         # Compaq C++
11199         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11200         archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11201
11202         runpath_var=LD_RUN_PATH
11203         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11204         hardcode_libdir_separator_CXX=:
11205
11206         # Commands to make compiler produce verbose output that lists
11207         # what "hidden" libraries, object files and flags are used when
11208         # linking a shared library.
11209         #
11210         # There doesn't appear to be a way to prevent this compiler from
11211         # explicitly linking system object files so we need to strip them
11212         # from the output so that they don't get included in the library
11213         # dependencies.
11214         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11215         ;;
11216       *)
11217         case `$CC -V 2>&1 | sed 5q` in
11218         *Sun\ C*)
11219           # Sun C++ 5.9
11220           no_undefined_flag_CXX=' -zdefs'
11221           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11222           archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11223           hardcode_libdir_flag_spec_CXX='-R$libdir'
11224           whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11225
11226           # Not sure whether something based on
11227           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11228           # would be better.
11229           output_verbose_link_cmd='echo'
11230
11231           # Archives containing C++ object files must be created using
11232           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11233           # necessary to make sure instantiated templates are included
11234           # in the archive.
11235           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11236           ;;
11237         esac
11238         ;;
11239     esac
11240     ;;
11241   lynxos*)
11242     # FIXME: insert proper C++ library support
11243     ld_shlibs_CXX=no
11244     ;;
11245   m88k*)
11246     # FIXME: insert proper C++ library support
11247     ld_shlibs_CXX=no
11248     ;;
11249   mvs*)
11250     case $cc_basename in
11251       cxx*)
11252         # FIXME: insert proper C++ library support
11253         ld_shlibs_CXX=no
11254         ;;
11255       *)
11256         # FIXME: insert proper C++ library support
11257         ld_shlibs_CXX=no
11258         ;;
11259     esac
11260     ;;
11261   netbsd* | netbsdelf*-gnu)
11262     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11263       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11264       wlarc=
11265       hardcode_libdir_flag_spec_CXX='-R$libdir'
11266       hardcode_direct_CXX=yes
11267       hardcode_shlibpath_var_CXX=no
11268     fi
11269     # Workaround some broken pre-1.5 toolchains
11270     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11271     ;;
11272   openbsd2*)
11273     # C++ shared libraries are fairly broken
11274     ld_shlibs_CXX=no
11275     ;;
11276   openbsd*)
11277     if test -f /usr/libexec/ld.so; then
11278       hardcode_direct_CXX=yes
11279       hardcode_shlibpath_var_CXX=no
11280       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11281       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11282       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11283         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11284         export_dynamic_flag_spec_CXX='${wl}-E'
11285         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11286       fi
11287       output_verbose_link_cmd='echo'
11288     else
11289       ld_shlibs_CXX=no
11290     fi
11291     ;;
11292   osf3*)
11293     case $cc_basename in
11294       KCC*)
11295         # Kuck and Associates, Inc. (KAI) C++ Compiler
11296
11297         # KCC will only create a shared library if the output file
11298         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11299         # to its proper name (with version) after linking.
11300         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11301
11302         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11303         hardcode_libdir_separator_CXX=:
11304
11305         # Archives containing C++ object files must be created using
11306         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11307         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11308
11309         ;;
11310       RCC*)
11311         # Rational C++ 2.4.1
11312         # FIXME: insert proper C++ library support
11313         ld_shlibs_CXX=no
11314         ;;
11315       cxx*)
11316         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11317         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11318
11319         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11320         hardcode_libdir_separator_CXX=:
11321
11322         # Commands to make compiler produce verbose output that lists
11323         # what "hidden" libraries, object files and flags are used when
11324         # linking a shared library.
11325         #
11326         # There doesn't appear to be a way to prevent this compiler from
11327         # explicitly linking system object files so we need to strip them
11328         # from the output so that they don't get included in the library
11329         # dependencies.
11330         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11331         ;;
11332       *)
11333         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11334           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11335           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11336
11337           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11338           hardcode_libdir_separator_CXX=:
11339
11340           # Commands to make compiler produce verbose output that lists
11341           # what "hidden" libraries, object files and flags are used when
11342           # linking a shared library.
11343           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11344
11345         else
11346           # FIXME: insert proper C++ library support
11347           ld_shlibs_CXX=no
11348         fi
11349         ;;
11350     esac
11351     ;;
11352   osf4* | osf5*)
11353     case $cc_basename in
11354       KCC*)
11355         # Kuck and Associates, Inc. (KAI) C++ Compiler
11356
11357         # KCC will only create a shared library if the output file
11358         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11359         # to its proper name (with version) after linking.
11360         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11361
11362         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11363         hardcode_libdir_separator_CXX=:
11364
11365         # Archives containing C++ object files must be created using
11366         # the KAI C++ compiler.
11367         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11368         ;;
11369       RCC*)
11370         # Rational C++ 2.4.1
11371         # FIXME: insert proper C++ library support
11372         ld_shlibs_CXX=no
11373         ;;
11374       cxx*)
11375         allow_undefined_flag_CXX=' -expect_unresolved \*'
11376         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11377         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11378           echo "-hidden">> $lib.exp~
11379           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11380           $rm $lib.exp'
11381
11382         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11383         hardcode_libdir_separator_CXX=:
11384
11385         # Commands to make compiler produce verbose output that lists
11386         # what "hidden" libraries, object files and flags are used when
11387         # linking a shared library.
11388         #
11389         # There doesn't appear to be a way to prevent this compiler from
11390         # explicitly linking system object files so we need to strip them
11391         # from the output so that they don't get included in the library
11392         # dependencies.
11393         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11394         ;;
11395       *)
11396         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11397           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11398          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11399
11400           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11401           hardcode_libdir_separator_CXX=:
11402
11403           # Commands to make compiler produce verbose output that lists
11404           # what "hidden" libraries, object files and flags are used when
11405           # linking a shared library.
11406           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11407
11408         else
11409           # FIXME: insert proper C++ library support
11410           ld_shlibs_CXX=no
11411         fi
11412         ;;
11413     esac
11414     ;;
11415   psos*)
11416     # FIXME: insert proper C++ library support
11417     ld_shlibs_CXX=no
11418     ;;
11419   sunos4*)
11420     case $cc_basename in
11421       CC*)
11422         # Sun C++ 4.x
11423         # FIXME: insert proper C++ library support
11424         ld_shlibs_CXX=no
11425         ;;
11426       lcc*)
11427         # Lucid
11428         # FIXME: insert proper C++ library support
11429         ld_shlibs_CXX=no
11430         ;;
11431       *)
11432         # FIXME: insert proper C++ library support
11433         ld_shlibs_CXX=no
11434         ;;
11435     esac
11436     ;;
11437   solaris*)
11438     case $cc_basename in
11439       CC*)
11440         # Sun C++ 4.2, 5.x and Centerline C++
11441         archive_cmds_need_lc_CXX=yes
11442         no_undefined_flag_CXX=' -zdefs'
11443         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11444         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11445         $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11446
11447         hardcode_libdir_flag_spec_CXX='-R$libdir'
11448         hardcode_shlibpath_var_CXX=no
11449         case $host_os in
11450           solaris2.[0-5] | solaris2.[0-5].*) ;;
11451           *)
11452             # The compiler driver will combine and reorder linker options,
11453             # but understands `-z linker_flag'.
11454             # Supported since Solaris 2.6 (maybe 2.5.1?)
11455             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11456             ;;
11457         esac
11458         link_all_deplibs_CXX=yes
11459
11460         output_verbose_link_cmd='echo'
11461
11462         # Archives containing C++ object files must be created using
11463         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11464         # necessary to make sure instantiated templates are included
11465         # in the archive.
11466         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11467         ;;
11468       gcx*)
11469         # Green Hills C++ Compiler
11470         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11471
11472         # The C++ compiler must be used to create the archive.
11473         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11474         ;;
11475       *)
11476         # GNU C++ compiler with Solaris linker
11477         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11478           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11479           if $CC --version | grep -v '^2\.7' > /dev/null; then
11480             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11481             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11482                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11483
11484             # Commands to make compiler produce verbose output that lists
11485             # what "hidden" libraries, object files and flags are used when
11486             # linking a shared library.
11487             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11488           else
11489             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11490             # platform.
11491             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11492             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11493                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11494
11495             # Commands to make compiler produce verbose output that lists
11496             # what "hidden" libraries, object files and flags are used when
11497             # linking a shared library.
11498             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11499           fi
11500
11501           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11502           case $host_os in
11503           solaris2.[0-5] | solaris2.[0-5].*) ;;
11504           *)
11505             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11506             ;;
11507           esac
11508         fi
11509         ;;
11510     esac
11511     ;;
11512   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11513     no_undefined_flag_CXX='${wl}-z,text'
11514     archive_cmds_need_lc_CXX=no
11515     hardcode_shlibpath_var_CXX=no
11516     runpath_var='LD_RUN_PATH'
11517
11518     case $cc_basename in
11519       CC*)
11520         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11521         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11522         ;;
11523       *)
11524         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11525         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11526         ;;
11527     esac
11528     ;;
11529   sysv5* | sco3.2v5* | sco5v6*)
11530     # Note: We can NOT use -z defs as we might desire, because we do not
11531     # link with -lc, and that would cause any symbols used from libc to
11532     # always be unresolved, which means just about no library would
11533     # ever link correctly.  If we're not using GNU ld we use -z text
11534     # though, which does catch some bad symbols but isn't as heavy-handed
11535     # as -z defs.
11536     # For security reasons, it is highly recommended that you always
11537     # use absolute paths for naming shared libraries, and exclude the
11538     # DT_RUNPATH tag from executables and libraries.  But doing so
11539     # requires that you compile everything twice, which is a pain.
11540     # So that behaviour is only enabled if SCOABSPATH is set to a
11541     # non-empty value in the environment.  Most likely only useful for
11542     # creating official distributions of packages.
11543     # This is a hack until libtool officially supports absolute path
11544     # names for shared libraries.
11545     no_undefined_flag_CXX='${wl}-z,text'
11546     allow_undefined_flag_CXX='${wl}-z,nodefs'
11547     archive_cmds_need_lc_CXX=no
11548     hardcode_shlibpath_var_CXX=no
11549     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11550     hardcode_libdir_separator_CXX=':'
11551     link_all_deplibs_CXX=yes
11552     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11553     runpath_var='LD_RUN_PATH'
11554
11555     case $cc_basename in
11556       CC*)
11557         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11558         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11559         ;;
11560       *)
11561         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11562         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11563         ;;
11564     esac
11565     ;;
11566   tandem*)
11567     case $cc_basename in
11568       NCC*)
11569         # NonStop-UX NCC 3.20
11570         # FIXME: insert proper C++ library support
11571         ld_shlibs_CXX=no
11572         ;;
11573       *)
11574         # FIXME: insert proper C++ library support
11575         ld_shlibs_CXX=no
11576         ;;
11577     esac
11578     ;;
11579   vxworks*)
11580     # FIXME: insert proper C++ library support
11581     ld_shlibs_CXX=no
11582     ;;
11583   *)
11584     # FIXME: insert proper C++ library support
11585     ld_shlibs_CXX=no
11586     ;;
11587 esac
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
11589 $as_echo "$ld_shlibs_CXX" >&6; }
11590 test "$ld_shlibs_CXX" = no && can_build_shared=no
11591
11592 GCC_CXX="$GXX"
11593 LD_CXX="$LD"
11594
11595 cat > conftest.$ac_ext <<EOF
11596 class Foo
11597 {
11598 public:
11599   Foo (void) { a = 0; }
11600 private:
11601   int a;
11602 };
11603 EOF
11604
11605 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11606   (eval $ac_compile) 2>&5
11607   ac_status=$?
11608   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11609   test $ac_status = 0; }; then
11610   # Parse the compiler output and extract the necessary
11611   # objects, libraries and library flags.
11612
11613   # Sentinel used to keep track of whether or not we are before
11614   # the conftest object file.
11615   pre_test_object_deps_done=no
11616
11617   # The `*' in the case matches for architectures that use `case' in
11618   # $output_verbose_cmd can trigger glob expansion during the loop
11619   # eval without this substitution.
11620   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11621
11622   for p in `eval $output_verbose_link_cmd`; do
11623     case $p in
11624
11625     -L* | -R* | -l*)
11626        # Some compilers place space between "-{L,R}" and the path.
11627        # Remove the space.
11628        if test $p = "-L" \
11629           || test $p = "-R"; then
11630          prev=$p
11631          continue
11632        else
11633          prev=
11634        fi
11635
11636        if test "$pre_test_object_deps_done" = no; then
11637          case $p in
11638          -L* | -R*)
11639            # Internal compiler library paths should come after those
11640            # provided the user.  The postdeps already come after the
11641            # user supplied libs so there is no need to process them.
11642            if test -z "$compiler_lib_search_path_CXX"; then
11643              compiler_lib_search_path_CXX="${prev}${p}"
11644            else
11645              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11646            fi
11647            ;;
11648          # The "-l" case would never come before the object being
11649          # linked, so don't bother handling this case.
11650          esac
11651        else
11652          if test -z "$postdeps_CXX"; then
11653            postdeps_CXX="${prev}${p}"
11654          else
11655            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11656          fi
11657        fi
11658        ;;
11659
11660     *.$objext)
11661        # This assumes that the test object file only shows up
11662        # once in the compiler output.
11663        if test "$p" = "conftest.$objext"; then
11664          pre_test_object_deps_done=yes
11665          continue
11666        fi
11667
11668        if test "$pre_test_object_deps_done" = no; then
11669          if test -z "$predep_objects_CXX"; then
11670            predep_objects_CXX="$p"
11671          else
11672            predep_objects_CXX="$predep_objects_CXX $p"
11673          fi
11674        else
11675          if test -z "$postdep_objects_CXX"; then
11676            postdep_objects_CXX="$p"
11677          else
11678            postdep_objects_CXX="$postdep_objects_CXX $p"
11679          fi
11680        fi
11681        ;;
11682
11683     *) ;; # Ignore the rest.
11684
11685     esac
11686   done
11687
11688   # Clean up.
11689   rm -f a.out a.exe
11690 else
11691   echo "libtool.m4: error: problem compiling CXX test program"
11692 fi
11693
11694 $rm -f confest.$objext
11695
11696 compiler_lib_search_dirs_CXX=
11697 if test -n "$compiler_lib_search_path_CXX"; then
11698   compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
11699 fi
11700
11701 # PORTME: override above test on systems where it is broken
11702 case $host_os in
11703 interix[3-9]*)
11704   # Interix 3.5 installs completely hosed .la files for C++, so rather than
11705   # hack all around it, let's just trust "g++" to DTRT.
11706   predep_objects_CXX=
11707   postdep_objects_CXX=
11708   postdeps_CXX=
11709   ;;
11710
11711 linux*)
11712   case `$CC -V 2>&1 | sed 5q` in
11713   *Sun\ C*)
11714     # Sun C++ 5.9
11715     #
11716     # The more standards-conforming stlport4 library is
11717     # incompatible with the Cstd library. Avoid specifying
11718     # it if it's in CXXFLAGS. Ignore libCrun as
11719     # -library=stlport4 depends on it.
11720     case " $CXX $CXXFLAGS " in
11721     *" -library=stlport4 "*)
11722       solaris_use_stlport4=yes
11723       ;;
11724     esac
11725     if test "$solaris_use_stlport4" != yes; then
11726       postdeps_CXX='-library=Cstd -library=Crun'
11727     fi
11728     ;;
11729   esac
11730   ;;
11731
11732 solaris*)
11733   case $cc_basename in
11734   CC*)
11735     # The more standards-conforming stlport4 library is
11736     # incompatible with the Cstd library. Avoid specifying
11737     # it if it's in CXXFLAGS. Ignore libCrun as
11738     # -library=stlport4 depends on it.
11739     case " $CXX $CXXFLAGS " in
11740     *" -library=stlport4 "*)
11741       solaris_use_stlport4=yes
11742       ;;
11743     esac
11744
11745     # Adding this requires a known-good setup of shared libraries for
11746     # Sun compiler versions before 5.6, else PIC objects from an old
11747     # archive will be linked into the output, leading to subtle bugs.
11748     if test "$solaris_use_stlport4" != yes; then
11749       postdeps_CXX='-library=Cstd -library=Crun'
11750     fi
11751     ;;
11752   esac
11753   ;;
11754 esac
11755
11756 case " $postdeps_CXX " in
11757 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11758 esac
11759
11760 lt_prog_compiler_wl_CXX=
11761 lt_prog_compiler_pic_CXX=
11762 lt_prog_compiler_static_CXX=
11763
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11765 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11766
11767   # C++ specific cases for pic, static, wl, etc.
11768   if test "$GXX" = yes; then
11769     lt_prog_compiler_wl_CXX='-Wl,'
11770     lt_prog_compiler_static_CXX='-static'
11771
11772     case $host_os in
11773     aix*)
11774       # All AIX code is PIC.
11775       if test "$host_cpu" = ia64; then
11776         # AIX 5 now supports IA64 processor
11777         lt_prog_compiler_static_CXX='-Bstatic'
11778       fi
11779       ;;
11780     amigaos*)
11781       # FIXME: we need at least 68020 code to build shared libraries, but
11782       # adding the `-m68020' flag to GCC prevents building anything better,
11783       # like `-m68040'.
11784       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11785       ;;
11786     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11787       # PIC is the default for these OSes.
11788       ;;
11789     mingw* | cygwin* | os2* | pw32*)
11790       # This hack is so that the source file can tell whether it is being
11791       # built for inclusion in a dll (and should export symbols for example).
11792       # Although the cygwin gcc ignores -fPIC, still need this for old-style
11793       # (--disable-auto-import) libraries
11794       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11795       ;;
11796     darwin* | rhapsody*)
11797       # PIC is the default on this platform
11798       # Common symbols not allowed in MH_DYLIB files
11799       lt_prog_compiler_pic_CXX='-fno-common'
11800       ;;
11801     *djgpp*)
11802       # DJGPP does not support shared libraries at all
11803       lt_prog_compiler_pic_CXX=
11804       ;;
11805     interix[3-9]*)
11806       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11807       # Instead, we relocate shared libraries at runtime.
11808       ;;
11809     sysv4*MP*)
11810       if test -d /usr/nec; then
11811         lt_prog_compiler_pic_CXX=-Kconform_pic
11812       fi
11813       ;;
11814     hpux*)
11815       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11816       # not for PA HP-UX.
11817       case $host_cpu in
11818       hppa*64*|ia64*)
11819         ;;
11820       *)
11821         lt_prog_compiler_pic_CXX='-fPIC'
11822         ;;
11823       esac
11824       ;;
11825     *)
11826       lt_prog_compiler_pic_CXX='-fPIC'
11827       ;;
11828     esac
11829   else
11830     case $host_os in
11831       aix[4-9]*)
11832         # All AIX code is PIC.
11833         if test "$host_cpu" = ia64; then
11834           # AIX 5 now supports IA64 processor
11835           lt_prog_compiler_static_CXX='-Bstatic'
11836         else
11837           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11838         fi
11839         ;;
11840       chorus*)
11841         case $cc_basename in
11842         cxch68*)
11843           # Green Hills C++ Compiler
11844           # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
11845           ;;
11846         esac
11847         ;;
11848        darwin*)
11849          # PIC is the default on this platform
11850          # Common symbols not allowed in MH_DYLIB files
11851          case $cc_basename in
11852            xlc*)
11853            lt_prog_compiler_pic_CXX='-qnocommon'
11854            lt_prog_compiler_wl_CXX='-Wl,'
11855            ;;
11856          esac
11857        ;;
11858       dgux*)
11859         case $cc_basename in
11860           ec++*)
11861             lt_prog_compiler_pic_CXX='-KPIC'
11862             ;;
11863           ghcx*)
11864             # Green Hills C++ Compiler
11865             lt_prog_compiler_pic_CXX='-pic'
11866             ;;
11867           *)
11868             ;;
11869         esac
11870         ;;
11871       freebsd* | dragonfly*)
11872         # FreeBSD uses GNU C++
11873         ;;
11874       hpux9* | hpux10* | hpux11*)
11875         case $cc_basename in
11876           CC*)
11877             lt_prog_compiler_wl_CXX='-Wl,'
11878             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11879             if test "$host_cpu" != ia64; then
11880               lt_prog_compiler_pic_CXX='+Z'
11881             fi
11882             ;;
11883           aCC*)
11884             lt_prog_compiler_wl_CXX='-Wl,'
11885             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11886             case $host_cpu in
11887             hppa*64*|ia64*)
11888               # +Z the default
11889               ;;
11890             *)
11891               lt_prog_compiler_pic_CXX='+Z'
11892               ;;
11893             esac
11894             ;;
11895           *)
11896             ;;
11897         esac
11898         ;;
11899       interix*)
11900         # This is c89, which is MS Visual C++ (no shared libs)
11901         # Anyone wants to do a port?
11902         ;;
11903       irix5* | irix6* | nonstopux*)
11904         case $cc_basename in
11905           CC*)
11906             lt_prog_compiler_wl_CXX='-Wl,'
11907             lt_prog_compiler_static_CXX='-non_shared'
11908             # CC pic flag -KPIC is the default.
11909             ;;
11910           *)
11911             ;;
11912         esac
11913         ;;
11914       linux* | k*bsd*-gnu)
11915         case $cc_basename in
11916           KCC*)
11917             # KAI C++ Compiler
11918             lt_prog_compiler_wl_CXX='--backend -Wl,'
11919             lt_prog_compiler_pic_CXX='-fPIC'
11920             ;;
11921           icpc* | ecpc*)
11922             # Intel C++
11923             lt_prog_compiler_wl_CXX='-Wl,'
11924             lt_prog_compiler_pic_CXX='-KPIC'
11925             lt_prog_compiler_static_CXX='-static'
11926             ;;
11927           pgCC* | pgcpp*)
11928             # Portland Group C++ compiler.
11929             lt_prog_compiler_wl_CXX='-Wl,'
11930             lt_prog_compiler_pic_CXX='-fpic'
11931             lt_prog_compiler_static_CXX='-Bstatic'
11932             ;;
11933           cxx*)
11934             # Compaq C++
11935             # Make sure the PIC flag is empty.  It appears that all Alpha
11936             # Linux and Compaq Tru64 Unix objects are PIC.
11937             lt_prog_compiler_pic_CXX=
11938             lt_prog_compiler_static_CXX='-non_shared'
11939             ;;
11940           *)
11941             case `$CC -V 2>&1 | sed 5q` in
11942             *Sun\ C*)
11943               # Sun C++ 5.9
11944               lt_prog_compiler_pic_CXX='-KPIC'
11945               lt_prog_compiler_static_CXX='-Bstatic'
11946               lt_prog_compiler_wl_CXX='-Qoption ld '
11947               ;;
11948             esac
11949             ;;
11950         esac
11951         ;;
11952       lynxos*)
11953         ;;
11954       m88k*)
11955         ;;
11956       mvs*)
11957         case $cc_basename in
11958           cxx*)
11959             lt_prog_compiler_pic_CXX='-W c,exportall'
11960             ;;
11961           *)
11962             ;;
11963         esac
11964         ;;
11965       netbsd* | netbsdelf*-gnu)
11966         ;;
11967       osf3* | osf4* | osf5*)
11968         case $cc_basename in
11969           KCC*)
11970             lt_prog_compiler_wl_CXX='--backend -Wl,'
11971             ;;
11972           RCC*)
11973             # Rational C++ 2.4.1
11974             lt_prog_compiler_pic_CXX='-pic'
11975             ;;
11976           cxx*)
11977             # Digital/Compaq C++
11978             lt_prog_compiler_wl_CXX='-Wl,'
11979             # Make sure the PIC flag is empty.  It appears that all Alpha
11980             # Linux and Compaq Tru64 Unix objects are PIC.
11981             lt_prog_compiler_pic_CXX=
11982             lt_prog_compiler_static_CXX='-non_shared'
11983             ;;
11984           *)
11985             ;;
11986         esac
11987         ;;
11988       psos*)
11989         ;;
11990       solaris*)
11991         case $cc_basename in
11992           CC*)
11993             # Sun C++ 4.2, 5.x and Centerline C++
11994             lt_prog_compiler_pic_CXX='-KPIC'
11995             lt_prog_compiler_static_CXX='-Bstatic'
11996             lt_prog_compiler_wl_CXX='-Qoption ld '
11997             ;;
11998           gcx*)
11999             # Green Hills C++ Compiler
12000             lt_prog_compiler_pic_CXX='-PIC'
12001             ;;
12002           *)
12003             ;;
12004         esac
12005         ;;
12006       sunos4*)
12007         case $cc_basename in
12008           CC*)
12009             # Sun C++ 4.x
12010             lt_prog_compiler_pic_CXX='-pic'
12011             lt_prog_compiler_static_CXX='-Bstatic'
12012             ;;
12013           lcc*)
12014             # Lucid
12015             lt_prog_compiler_pic_CXX='-pic'
12016             ;;
12017           *)
12018             ;;
12019         esac
12020         ;;
12021       tandem*)
12022         case $cc_basename in
12023           NCC*)
12024             # NonStop-UX NCC 3.20
12025             lt_prog_compiler_pic_CXX='-KPIC'
12026             ;;
12027           *)
12028             ;;
12029         esac
12030         ;;
12031       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12032         case $cc_basename in
12033           CC*)
12034             lt_prog_compiler_wl_CXX='-Wl,'
12035             lt_prog_compiler_pic_CXX='-KPIC'
12036             lt_prog_compiler_static_CXX='-Bstatic'
12037             ;;
12038         esac
12039         ;;
12040       vxworks*)
12041         ;;
12042       *)
12043         lt_prog_compiler_can_build_shared_CXX=no
12044         ;;
12045     esac
12046   fi
12047
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
12049 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12050
12051 #
12052 # Check to make sure the PIC flag actually works.
12053 #
12054 if test -n "$lt_prog_compiler_pic_CXX"; then
12055
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12057 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12058 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
12059   $as_echo_n "(cached) " >&6
12060 else
12061   lt_cv_prog_compiler_pic_works_CXX=no
12062   ac_outfile=conftest.$ac_objext
12063    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12064    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12065    # Insert the option either (1) after the last *FLAGS variable, or
12066    # (2) before a word containing "conftest.", or (3) at the end.
12067    # Note that $ac_compile itself does not contain backslashes and begins
12068    # with a dollar sign (not a hyphen), so the echo should work correctly.
12069    # The option is referenced via a variable to avoid confusing sed.
12070    lt_compile=`echo "$ac_compile" | $SED \
12071    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12072    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12073    -e 's:$: $lt_compiler_flag:'`
12074    (eval echo "\"\$as_me:12074: $lt_compile\"" >&5)
12075    (eval "$lt_compile" 2>conftest.err)
12076    ac_status=$?
12077    cat conftest.err >&5
12078    echo "$as_me:12078: \$? = $ac_status" >&5
12079    if (exit $ac_status) && test -s "$ac_outfile"; then
12080      # The compiler can only warn and ignore the option if not recognized
12081      # So say no if there are warnings other than the usual output.
12082      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12083      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12084      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12085        lt_cv_prog_compiler_pic_works_CXX=yes
12086      fi
12087    fi
12088    $rm conftest*
12089
12090 fi
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12092 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12093
12094 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12095     case $lt_prog_compiler_pic_CXX in
12096      "" | " "*) ;;
12097      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12098      esac
12099 else
12100     lt_prog_compiler_pic_CXX=
12101      lt_prog_compiler_can_build_shared_CXX=no
12102 fi
12103
12104 fi
12105 case $host_os in
12106   # For platforms which do not support PIC, -DPIC is meaningless:
12107   *djgpp*)
12108     lt_prog_compiler_pic_CXX=
12109     ;;
12110   *)
12111     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12112     ;;
12113 esac
12114
12115 #
12116 # Check to make sure the static flag actually works.
12117 #
12118 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12120 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12121 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
12122   $as_echo_n "(cached) " >&6
12123 else
12124   lt_cv_prog_compiler_static_works_CXX=no
12125    save_LDFLAGS="$LDFLAGS"
12126    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12127    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12128    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12129      # The linker can only warn and ignore the option if not recognized
12130      # So say no if there are warnings
12131      if test -s conftest.err; then
12132        # Append any errors to the config.log.
12133        cat conftest.err 1>&5
12134        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12135        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12136        if diff conftest.exp conftest.er2 >/dev/null; then
12137          lt_cv_prog_compiler_static_works_CXX=yes
12138        fi
12139      else
12140        lt_cv_prog_compiler_static_works_CXX=yes
12141      fi
12142    fi
12143    $rm -r conftest*
12144    LDFLAGS="$save_LDFLAGS"
12145
12146 fi
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12148 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12149
12150 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12151     :
12152 else
12153     lt_prog_compiler_static_CXX=
12154 fi
12155
12156
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12158 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12159 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
12160   $as_echo_n "(cached) " >&6
12161 else
12162   lt_cv_prog_compiler_c_o_CXX=no
12163    $rm -r conftest 2>/dev/null
12164    mkdir conftest
12165    cd conftest
12166    mkdir out
12167    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12168
12169    lt_compiler_flag="-o out/conftest2.$ac_objext"
12170    # Insert the option either (1) after the last *FLAGS variable, or
12171    # (2) before a word containing "conftest.", or (3) at the end.
12172    # Note that $ac_compile itself does not contain backslashes and begins
12173    # with a dollar sign (not a hyphen), so the echo should work correctly.
12174    lt_compile=`echo "$ac_compile" | $SED \
12175    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12176    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12177    -e 's:$: $lt_compiler_flag:'`
12178    (eval echo "\"\$as_me:12178: $lt_compile\"" >&5)
12179    (eval "$lt_compile" 2>out/conftest.err)
12180    ac_status=$?
12181    cat out/conftest.err >&5
12182    echo "$as_me:12182: \$? = $ac_status" >&5
12183    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12184    then
12185      # The compiler can only warn and ignore the option if not recognized
12186      # So say no if there are warnings
12187      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12188      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12189      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12190        lt_cv_prog_compiler_c_o_CXX=yes
12191      fi
12192    fi
12193    chmod u+w . 2>&5
12194    $rm conftest*
12195    # SGI C++ compiler will create directory out/ii_files/ for
12196    # template instantiation
12197    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12198    $rm out/* && rmdir out
12199    cd ..
12200    rmdir conftest
12201    $rm conftest*
12202
12203 fi
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12205 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12206
12207
12208 hard_links="nottested"
12209 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12210   # do not overwrite the value of need_locks provided by the user
12211   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12212 $as_echo_n "checking if we can lock with hard links... " >&6; }
12213   hard_links=yes
12214   $rm conftest*
12215   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12216   touch conftest.a
12217   ln conftest.a conftest.b 2>&5 || hard_links=no
12218   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12220 $as_echo "$hard_links" >&6; }
12221   if test "$hard_links" = no; then
12222     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12223 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12224     need_locks=warn
12225   fi
12226 else
12227   need_locks=no
12228 fi
12229
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12231 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12232
12233   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12234   case $host_os in
12235   aix[4-9]*)
12236     # If we're using GNU nm, then we don't want the "-C" option.
12237     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12238     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12239       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12240     else
12241       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12242     fi
12243     ;;
12244   pw32*)
12245     export_symbols_cmds_CXX="$ltdll_cmds"
12246   ;;
12247   cygwin* | mingw*)
12248     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12249   ;;
12250   linux* | k*bsd*-gnu)
12251     link_all_deplibs_CXX=no
12252   ;;
12253   *)
12254     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12255   ;;
12256   esac
12257   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12258
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12260 $as_echo "$ld_shlibs_CXX" >&6; }
12261 test "$ld_shlibs_CXX" = no && can_build_shared=no
12262
12263 #
12264 # Do we need to explicitly link libc?
12265 #
12266 case "x$archive_cmds_need_lc_CXX" in
12267 x|xyes)
12268   # Assume -lc should be added
12269   archive_cmds_need_lc_CXX=yes
12270
12271   if test "$enable_shared" = yes && test "$GCC" = yes; then
12272     case $archive_cmds_CXX in
12273     *'~'*)
12274       # FIXME: we may have to deal with multi-command sequences.
12275       ;;
12276     '$CC '*)
12277       # Test whether the compiler implicitly links with -lc since on some
12278       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12279       # to ld, don't add -lc before -lgcc.
12280       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12281 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12282       $rm conftest*
12283       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12284
12285       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12286   (eval $ac_compile) 2>&5
12287   ac_status=$?
12288   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12289   test $ac_status = 0; } 2>conftest.err; then
12290         soname=conftest
12291         lib=conftest
12292         libobjs=conftest.$ac_objext
12293         deplibs=
12294         wl=$lt_prog_compiler_wl_CXX
12295         pic_flag=$lt_prog_compiler_pic_CXX
12296         compiler_flags=-v
12297         linker_flags=-v
12298         verstring=
12299         output_objdir=.
12300         libname=conftest
12301         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12302         allow_undefined_flag_CXX=
12303         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12304   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12305   ac_status=$?
12306   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12307   test $ac_status = 0; }
12308         then
12309           archive_cmds_need_lc_CXX=no
12310         else
12311           archive_cmds_need_lc_CXX=yes
12312         fi
12313         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12314       else
12315         cat conftest.err 1>&5
12316       fi
12317       $rm conftest*
12318       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
12319 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
12320       ;;
12321     esac
12322   fi
12323   ;;
12324 esac
12325
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12327 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12328 library_names_spec=
12329 libname_spec='lib$name'
12330 soname_spec=
12331 shrext_cmds=".so"
12332 postinstall_cmds=
12333 postuninstall_cmds=
12334 finish_cmds=
12335 finish_eval=
12336 shlibpath_var=
12337 shlibpath_overrides_runpath=unknown
12338 version_type=none
12339 dynamic_linker="$host_os ld.so"
12340 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12341
12342 need_lib_prefix=unknown
12343 hardcode_into_libs=no
12344
12345 # when you set need_version to no, make sure it does not cause -set_version
12346 # flags to be left without arguments
12347 need_version=unknown
12348
12349 case $host_os in
12350 aix3*)
12351   version_type=linux
12352   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12353   shlibpath_var=LIBPATH
12354
12355   # AIX 3 has no versioning support, so we append a major version to the name.
12356   soname_spec='${libname}${release}${shared_ext}$major'
12357   ;;
12358
12359 aix[4-9]*)
12360   version_type=linux
12361   need_lib_prefix=no
12362   need_version=no
12363   hardcode_into_libs=yes
12364   if test "$host_cpu" = ia64; then
12365     # AIX 5 supports IA64
12366     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12367     shlibpath_var=LD_LIBRARY_PATH
12368   else
12369     # With GCC up to 2.95.x, collect2 would create an import file
12370     # for dependence libraries.  The import file would start with
12371     # the line `#! .'.  This would cause the generated library to
12372     # depend on `.', always an invalid library.  This was fixed in
12373     # development snapshots of GCC prior to 3.0.
12374     case $host_os in
12375       aix4 | aix4.[01] | aix4.[01].*)
12376       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12377            echo ' yes '
12378            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12379         :
12380       else
12381         can_build_shared=no
12382       fi
12383       ;;
12384     esac
12385     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12386     # soname into executable. Probably we can add versioning support to
12387     # collect2, so additional links can be useful in future.
12388     if test "$aix_use_runtimelinking" = yes; then
12389       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12390       # instead of lib<name>.a to let people know that these are not
12391       # typical AIX shared libraries.
12392       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12393     else
12394       # We preserve .a as extension for shared libraries through AIX4.2
12395       # and later when we are not doing run time linking.
12396       library_names_spec='${libname}${release}.a $libname.a'
12397       soname_spec='${libname}${release}${shared_ext}$major'
12398     fi
12399     shlibpath_var=LIBPATH
12400   fi
12401   ;;
12402
12403 amigaos*)
12404   library_names_spec='$libname.ixlibrary $libname.a'
12405   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12406   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12407   ;;
12408
12409 beos*)
12410   library_names_spec='${libname}${shared_ext}'
12411   dynamic_linker="$host_os ld.so"
12412   shlibpath_var=LIBRARY_PATH
12413   ;;
12414
12415 bsdi[45]*)
12416   version_type=linux
12417   need_version=no
12418   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12419   soname_spec='${libname}${release}${shared_ext}$major'
12420   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12421   shlibpath_var=LD_LIBRARY_PATH
12422   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12423   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12424   # the default ld.so.conf also contains /usr/contrib/lib and
12425   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12426   # libtool to hard-code these into programs
12427   ;;
12428
12429 cygwin* | mingw* | pw32*)
12430   version_type=windows
12431   shrext_cmds=".dll"
12432   need_version=no
12433   need_lib_prefix=no
12434
12435   case $GCC,$host_os in
12436   yes,cygwin* | yes,mingw* | yes,pw32*)
12437     library_names_spec='$libname.dll.a'
12438     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12439     postinstall_cmds='base_file=`basename \${file}`~
12440       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12441       dldir=$destdir/`dirname \$dlpath`~
12442       test -d \$dldir || mkdir -p \$dldir~
12443       $install_prog $dir/$dlname \$dldir/$dlname~
12444       chmod a+x \$dldir/$dlname'
12445     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12446       dlpath=$dir/\$dldll~
12447        $rm \$dlpath'
12448     shlibpath_overrides_runpath=yes
12449
12450     case $host_os in
12451     cygwin*)
12452       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12453       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12454       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12455       ;;
12456     mingw*)
12457       # MinGW DLLs use traditional 'lib' prefix
12458       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12459       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12460       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12461         # It is most probably a Windows format PATH printed by
12462         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12463         # path with ; separators, and with drive letters. We can handle the
12464         # drive letters (cygwin fileutils understands them), so leave them,
12465         # especially as we might pass files found there to a mingw objdump,
12466         # which wouldn't understand a cygwinified path. Ahh.
12467         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12468       else
12469         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12470       fi
12471       ;;
12472     pw32*)
12473       # pw32 DLLs use 'pw' prefix rather than 'lib'
12474       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12475       ;;
12476     esac
12477     ;;
12478
12479   *)
12480     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12481     ;;
12482   esac
12483   dynamic_linker='Win32 ld.exe'
12484   # FIXME: first we should search . and the directory the executable is in
12485   shlibpath_var=PATH
12486   ;;
12487
12488 darwin* | rhapsody*)
12489   dynamic_linker="$host_os dyld"
12490   version_type=darwin
12491   need_lib_prefix=no
12492   need_version=no
12493   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12494   soname_spec='${libname}${release}${major}$shared_ext'
12495   shlibpath_overrides_runpath=yes
12496   shlibpath_var=DYLD_LIBRARY_PATH
12497   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12498
12499   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12500   ;;
12501
12502 dgux*)
12503   version_type=linux
12504   need_lib_prefix=no
12505   need_version=no
12506   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12507   soname_spec='${libname}${release}${shared_ext}$major'
12508   shlibpath_var=LD_LIBRARY_PATH
12509   ;;
12510
12511 freebsd1*)
12512   dynamic_linker=no
12513   ;;
12514
12515 freebsd* | dragonfly*)
12516   # DragonFly does not have aout.  When/if they implement a new
12517   # versioning mechanism, adjust this.
12518   if test -x /usr/bin/objformat; then
12519     objformat=`/usr/bin/objformat`
12520   else
12521     case $host_os in
12522     freebsd[123]*) objformat=aout ;;
12523     *) objformat=elf ;;
12524     esac
12525   fi
12526   version_type=freebsd-$objformat
12527   case $version_type in
12528     freebsd-elf*)
12529       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12530       need_version=no
12531       need_lib_prefix=no
12532       ;;
12533     freebsd-*)
12534       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12535       need_version=yes
12536       ;;
12537   esac
12538   shlibpath_var=LD_LIBRARY_PATH
12539   case $host_os in
12540   freebsd2*)
12541     shlibpath_overrides_runpath=yes
12542     ;;
12543   freebsd3.[01]* | freebsdelf3.[01]*)
12544     shlibpath_overrides_runpath=yes
12545     hardcode_into_libs=yes
12546     ;;
12547   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12548   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12549     shlibpath_overrides_runpath=no
12550     hardcode_into_libs=yes
12551     ;;
12552   *) # from 4.6 on, and DragonFly
12553     shlibpath_overrides_runpath=yes
12554     hardcode_into_libs=yes
12555     ;;
12556   esac
12557   ;;
12558
12559 gnu*)
12560   version_type=linux
12561   need_lib_prefix=no
12562   need_version=no
12563   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12564   soname_spec='${libname}${release}${shared_ext}$major'
12565   shlibpath_var=LD_LIBRARY_PATH
12566   hardcode_into_libs=yes
12567   ;;
12568
12569 hpux9* | hpux10* | hpux11*)
12570   # Give a soname corresponding to the major version so that dld.sl refuses to
12571   # link against other versions.
12572   version_type=sunos
12573   need_lib_prefix=no
12574   need_version=no
12575   case $host_cpu in
12576   ia64*)
12577     shrext_cmds='.so'
12578     hardcode_into_libs=yes
12579     dynamic_linker="$host_os dld.so"
12580     shlibpath_var=LD_LIBRARY_PATH
12581     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12582     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12583     soname_spec='${libname}${release}${shared_ext}$major'
12584     if test "X$HPUX_IA64_MODE" = X32; then
12585       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12586     else
12587       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12588     fi
12589     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12590     ;;
12591    hppa*64*)
12592      shrext_cmds='.sl'
12593      hardcode_into_libs=yes
12594      dynamic_linker="$host_os dld.sl"
12595      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12596      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12597      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12598      soname_spec='${libname}${release}${shared_ext}$major'
12599      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12600      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12601      ;;
12602    *)
12603     shrext_cmds='.sl'
12604     dynamic_linker="$host_os dld.sl"
12605     shlibpath_var=SHLIB_PATH
12606     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12607     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12608     soname_spec='${libname}${release}${shared_ext}$major'
12609     ;;
12610   esac
12611   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12612   postinstall_cmds='chmod 555 $lib'
12613   ;;
12614
12615 interix[3-9]*)
12616   version_type=linux
12617   need_lib_prefix=no
12618   need_version=no
12619   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12620   soname_spec='${libname}${release}${shared_ext}$major'
12621   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12622   shlibpath_var=LD_LIBRARY_PATH
12623   shlibpath_overrides_runpath=no
12624   hardcode_into_libs=yes
12625   ;;
12626
12627 irix5* | irix6* | nonstopux*)
12628   case $host_os in
12629     nonstopux*) version_type=nonstopux ;;
12630     *)
12631         if test "$lt_cv_prog_gnu_ld" = yes; then
12632                 version_type=linux
12633         else
12634                 version_type=irix
12635         fi ;;
12636   esac
12637   need_lib_prefix=no
12638   need_version=no
12639   soname_spec='${libname}${release}${shared_ext}$major'
12640   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12641   case $host_os in
12642   irix5* | nonstopux*)
12643     libsuff= shlibsuff=
12644     ;;
12645   *)
12646     case $LD in # libtool.m4 will add one of these switches to LD
12647     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12648       libsuff= shlibsuff= libmagic=32-bit;;
12649     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12650       libsuff=32 shlibsuff=N32 libmagic=N32;;
12651     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12652       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12653     *) libsuff= shlibsuff= libmagic=never-match;;
12654     esac
12655     ;;
12656   esac
12657   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12658   shlibpath_overrides_runpath=no
12659   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12660   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12661   hardcode_into_libs=yes
12662   ;;
12663
12664 # No shared lib support for Linux oldld, aout, or coff.
12665 linux*oldld* | linux*aout* | linux*coff*)
12666   dynamic_linker=no
12667   ;;
12668
12669 # This must be Linux ELF.
12670 linux* | k*bsd*-gnu)
12671   version_type=linux
12672   need_lib_prefix=no
12673   need_version=no
12674   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12675   soname_spec='${libname}${release}${shared_ext}$major'
12676   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12677   shlibpath_var=LD_LIBRARY_PATH
12678   shlibpath_overrides_runpath=no
12679   # This implies no fast_install, which is unacceptable.
12680   # Some rework will be needed to allow for fast_install
12681   # before this can be enabled.
12682   hardcode_into_libs=yes
12683
12684   # Append ld.so.conf contents to the search path
12685   if test -f /etc/ld.so.conf; then
12686     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12687     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12688   fi
12689
12690   # We used to test for /lib/ld.so.1 and disable shared libraries on
12691   # powerpc, because MkLinux only supported shared libraries with the
12692   # GNU dynamic linker.  Since this was broken with cross compilers,
12693   # most powerpc-linux boxes support dynamic linking these days and
12694   # people can always --disable-shared, the test was removed, and we
12695   # assume the GNU/Linux dynamic linker is in use.
12696   dynamic_linker='GNU/Linux ld.so'
12697   ;;
12698
12699 netbsdelf*-gnu)
12700   version_type=linux
12701   need_lib_prefix=no
12702   need_version=no
12703   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12704   soname_spec='${libname}${release}${shared_ext}$major'
12705   shlibpath_var=LD_LIBRARY_PATH
12706   shlibpath_overrides_runpath=no
12707   hardcode_into_libs=yes
12708   dynamic_linker='NetBSD ld.elf_so'
12709   ;;
12710
12711 netbsd*)
12712   version_type=sunos
12713   need_lib_prefix=no
12714   need_version=no
12715   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12716     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12717     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12718     dynamic_linker='NetBSD (a.out) ld.so'
12719   else
12720     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12721     soname_spec='${libname}${release}${shared_ext}$major'
12722     dynamic_linker='NetBSD ld.elf_so'
12723   fi
12724   shlibpath_var=LD_LIBRARY_PATH
12725   shlibpath_overrides_runpath=yes
12726   hardcode_into_libs=yes
12727   ;;
12728
12729 newsos6)
12730   version_type=linux
12731   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12732   shlibpath_var=LD_LIBRARY_PATH
12733   shlibpath_overrides_runpath=yes
12734   ;;
12735
12736 nto-qnx*)
12737   version_type=linux
12738   need_lib_prefix=no
12739   need_version=no
12740   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12741   soname_spec='${libname}${release}${shared_ext}$major'
12742   shlibpath_var=LD_LIBRARY_PATH
12743   shlibpath_overrides_runpath=yes
12744   ;;
12745
12746 openbsd*)
12747   version_type=sunos
12748   sys_lib_dlsearch_path_spec="/usr/lib"
12749   need_lib_prefix=no
12750   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12751   case $host_os in
12752     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12753     *)                         need_version=no  ;;
12754   esac
12755   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12756   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12757   shlibpath_var=LD_LIBRARY_PATH
12758   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12759     case $host_os in
12760       openbsd2.[89] | openbsd2.[89].*)
12761         shlibpath_overrides_runpath=no
12762         ;;
12763       *)
12764         shlibpath_overrides_runpath=yes
12765         ;;
12766       esac
12767   else
12768     shlibpath_overrides_runpath=yes
12769   fi
12770   ;;
12771
12772 os2*)
12773   libname_spec='$name'
12774   shrext_cmds=".dll"
12775   need_lib_prefix=no
12776   library_names_spec='$libname${shared_ext} $libname.a'
12777   dynamic_linker='OS/2 ld.exe'
12778   shlibpath_var=LIBPATH
12779   ;;
12780
12781 osf3* | osf4* | osf5*)
12782   version_type=osf
12783   need_lib_prefix=no
12784   need_version=no
12785   soname_spec='${libname}${release}${shared_ext}$major'
12786   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12787   shlibpath_var=LD_LIBRARY_PATH
12788   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12789   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12790   ;;
12791
12792 rdos*)
12793   dynamic_linker=no
12794   ;;
12795
12796 solaris*)
12797   version_type=linux
12798   need_lib_prefix=no
12799   need_version=no
12800   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12801   soname_spec='${libname}${release}${shared_ext}$major'
12802   shlibpath_var=LD_LIBRARY_PATH
12803   shlibpath_overrides_runpath=yes
12804   hardcode_into_libs=yes
12805   # ldd complains unless libraries are executable
12806   postinstall_cmds='chmod +x $lib'
12807   ;;
12808
12809 sunos4*)
12810   version_type=sunos
12811   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12812   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12813   shlibpath_var=LD_LIBRARY_PATH
12814   shlibpath_overrides_runpath=yes
12815   if test "$with_gnu_ld" = yes; then
12816     need_lib_prefix=no
12817   fi
12818   need_version=yes
12819   ;;
12820
12821 sysv4 | sysv4.3*)
12822   version_type=linux
12823   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12824   soname_spec='${libname}${release}${shared_ext}$major'
12825   shlibpath_var=LD_LIBRARY_PATH
12826   case $host_vendor in
12827     sni)
12828       shlibpath_overrides_runpath=no
12829       need_lib_prefix=no
12830       export_dynamic_flag_spec='${wl}-Blargedynsym'
12831       runpath_var=LD_RUN_PATH
12832       ;;
12833     siemens)
12834       need_lib_prefix=no
12835       ;;
12836     motorola)
12837       need_lib_prefix=no
12838       need_version=no
12839       shlibpath_overrides_runpath=no
12840       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12841       ;;
12842   esac
12843   ;;
12844
12845 sysv4*MP*)
12846   if test -d /usr/nec ;then
12847     version_type=linux
12848     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12849     soname_spec='$libname${shared_ext}.$major'
12850     shlibpath_var=LD_LIBRARY_PATH
12851   fi
12852   ;;
12853
12854 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12855   version_type=freebsd-elf
12856   need_lib_prefix=no
12857   need_version=no
12858   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12859   soname_spec='${libname}${release}${shared_ext}$major'
12860   shlibpath_var=LD_LIBRARY_PATH
12861   hardcode_into_libs=yes
12862   if test "$with_gnu_ld" = yes; then
12863     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12864     shlibpath_overrides_runpath=no
12865   else
12866     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12867     shlibpath_overrides_runpath=yes
12868     case $host_os in
12869       sco3.2v5*)
12870         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12871         ;;
12872     esac
12873   fi
12874   sys_lib_dlsearch_path_spec='/usr/lib'
12875   ;;
12876
12877 uts4*)
12878   version_type=linux
12879   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12880   soname_spec='${libname}${release}${shared_ext}$major'
12881   shlibpath_var=LD_LIBRARY_PATH
12882   ;;
12883
12884 *)
12885   dynamic_linker=no
12886   ;;
12887 esac
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12889 $as_echo "$dynamic_linker" >&6; }
12890 test "$dynamic_linker" = no && can_build_shared=no
12891
12892 if ${lt_cv_sys_lib_search_path_spec+:} false; then :
12893   $as_echo_n "(cached) " >&6
12894 else
12895   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
12896 fi
12897
12898 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12899 if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
12900   $as_echo_n "(cached) " >&6
12901 else
12902   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
12903 fi
12904
12905 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12906
12907 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12908 if test "$GCC" = yes; then
12909   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12910 fi
12911
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12913 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12914 hardcode_action_CXX=
12915 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12916    test -n "$runpath_var_CXX" || \
12917    test "X$hardcode_automatic_CXX" = "Xyes" ; then
12918
12919   # We can hardcode non-existant directories.
12920   if test "$hardcode_direct_CXX" != no &&
12921      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12922      # have to relink, otherwise we might link with an installed library
12923      # when we should be linking with a yet-to-be-installed one
12924      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12925      test "$hardcode_minus_L_CXX" != no; then
12926     # Linking always hardcodes the temporary library directory.
12927     hardcode_action_CXX=relink
12928   else
12929     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12930     hardcode_action_CXX=immediate
12931   fi
12932 else
12933   # We cannot hardcode anything, or else we can only hardcode existing
12934   # directories.
12935   hardcode_action_CXX=unsupported
12936 fi
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
12938 $as_echo "$hardcode_action_CXX" >&6; }
12939
12940 if test "$hardcode_action_CXX" = relink; then
12941   # Fast installation is not supported
12942   enable_fast_install=no
12943 elif test "$shlibpath_overrides_runpath" = yes ||
12944      test "$enable_shared" = no; then
12945   # Fast installation is not necessary
12946   enable_fast_install=needless
12947 fi
12948
12949
12950 # The else clause should only fire when bootstrapping the
12951 # libtool distribution, otherwise you forgot to ship ltmain.sh
12952 # with your package, and you will get complaints that there are
12953 # no rules to generate ltmain.sh.
12954 if test -f "$ltmain"; then
12955   # See if we are running on zsh, and set the options which allow our commands through
12956   # without removal of \ escapes.
12957   if test -n "${ZSH_VERSION+set}" ; then
12958     setopt NO_GLOB_SUBST
12959   fi
12960   # Now quote all the things that may contain metacharacters while being
12961   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12962   # variables and quote the copies for generation of the libtool script.
12963   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12964     SED SHELL STRIP \
12965     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12966     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12967     deplibs_check_method reload_flag reload_cmds need_locks \
12968     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12969     lt_cv_sys_global_symbol_to_c_name_address \
12970     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12971     old_postinstall_cmds old_postuninstall_cmds \
12972     compiler_CXX \
12973     CC_CXX \
12974     LD_CXX \
12975     lt_prog_compiler_wl_CXX \
12976     lt_prog_compiler_pic_CXX \
12977     lt_prog_compiler_static_CXX \
12978     lt_prog_compiler_no_builtin_flag_CXX \
12979     export_dynamic_flag_spec_CXX \
12980     thread_safe_flag_spec_CXX \
12981     whole_archive_flag_spec_CXX \
12982     enable_shared_with_static_runtimes_CXX \
12983     old_archive_cmds_CXX \
12984     old_archive_from_new_cmds_CXX \
12985     predep_objects_CXX \
12986     postdep_objects_CXX \
12987     predeps_CXX \
12988     postdeps_CXX \
12989     compiler_lib_search_path_CXX \
12990     compiler_lib_search_dirs_CXX \
12991     archive_cmds_CXX \
12992     archive_expsym_cmds_CXX \
12993     postinstall_cmds_CXX \
12994     postuninstall_cmds_CXX \
12995     old_archive_from_expsyms_cmds_CXX \
12996     allow_undefined_flag_CXX \
12997     no_undefined_flag_CXX \
12998     export_symbols_cmds_CXX \
12999     hardcode_libdir_flag_spec_CXX \
13000     hardcode_libdir_flag_spec_ld_CXX \
13001     hardcode_libdir_separator_CXX \
13002     hardcode_automatic_CXX \
13003     module_cmds_CXX \
13004     module_expsym_cmds_CXX \
13005     lt_cv_prog_compiler_c_o_CXX \
13006     fix_srcfile_path_CXX \
13007     exclude_expsyms_CXX \
13008     include_expsyms_CXX; do
13009
13010     case $var in
13011     old_archive_cmds_CXX | \
13012     old_archive_from_new_cmds_CXX | \
13013     archive_cmds_CXX | \
13014     archive_expsym_cmds_CXX | \
13015     module_cmds_CXX | \
13016     module_expsym_cmds_CXX | \
13017     old_archive_from_expsyms_cmds_CXX | \
13018     export_symbols_cmds_CXX | \
13019     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13020     postinstall_cmds | postuninstall_cmds | \
13021     old_postinstall_cmds | old_postuninstall_cmds | \
13022     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13023       # Double-quote double-evaled strings.
13024       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13025       ;;
13026     *)
13027       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13028       ;;
13029     esac
13030   done
13031
13032   case $lt_echo in
13033   *'\$0 --fallback-echo"')
13034     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13035     ;;
13036   esac
13037
13038 cfgfile="$ofile"
13039
13040   cat <<__EOF__ >> "$cfgfile"
13041 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13042
13043 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13044
13045 # Shell to use when invoking shell scripts.
13046 SHELL=$lt_SHELL
13047
13048 # Whether or not to build shared libraries.
13049 build_libtool_libs=$enable_shared
13050
13051 # Whether or not to build static libraries.
13052 build_old_libs=$enable_static
13053
13054 # Whether or not to add -lc for building shared libraries.
13055 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13056
13057 # Whether or not to disallow shared libs when runtime libs are static
13058 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13059
13060 # Whether or not to optimize for fast installation.
13061 fast_install=$enable_fast_install
13062
13063 # The host system.
13064 host_alias=$host_alias
13065 host=$host
13066 host_os=$host_os
13067
13068 # The build system.
13069 build_alias=$build_alias
13070 build=$build
13071 build_os=$build_os
13072
13073 # An echo program that does not interpret backslashes.
13074 echo=$lt_echo
13075
13076 # The archiver.
13077 AR=$lt_AR
13078 AR_FLAGS=$lt_AR_FLAGS
13079
13080 # A C compiler.
13081 LTCC=$lt_LTCC
13082
13083 # LTCC compiler flags.
13084 LTCFLAGS=$lt_LTCFLAGS
13085
13086 # A language-specific compiler.
13087 CC=$lt_compiler_CXX
13088
13089 # Is the compiler the GNU C compiler?
13090 with_gcc=$GCC_CXX
13091
13092 # An ERE matcher.
13093 EGREP=$lt_EGREP
13094
13095 # The linker used to build libraries.
13096 LD=$lt_LD_CXX
13097
13098 # Whether we need hard or soft links.
13099 LN_S=$lt_LN_S
13100
13101 # A BSD-compatible nm program.
13102 NM=$lt_NM
13103
13104 # A symbol stripping program
13105 STRIP=$lt_STRIP
13106
13107 # Used to examine libraries when file_magic_cmd begins "file"
13108 MAGIC_CMD=$MAGIC_CMD
13109
13110 # Used on cygwin: DLL creation program.
13111 DLLTOOL="$DLLTOOL"
13112
13113 # Used on cygwin: object dumper.
13114 OBJDUMP="$OBJDUMP"
13115
13116 # Used on cygwin: assembler.
13117 AS="$AS"
13118
13119 # The name of the directory that contains temporary libtool files.
13120 objdir=$objdir
13121
13122 # How to create reloadable object files.
13123 reload_flag=$lt_reload_flag
13124 reload_cmds=$lt_reload_cmds
13125
13126 # How to pass a linker flag through the compiler.
13127 wl=$lt_lt_prog_compiler_wl_CXX
13128
13129 # Object file suffix (normally "o").
13130 objext="$ac_objext"
13131
13132 # Old archive suffix (normally "a").
13133 libext="$libext"
13134
13135 # Shared library suffix (normally ".so").
13136 shrext_cmds='$shrext_cmds'
13137
13138 # Executable file suffix (normally "").
13139 exeext="$exeext"
13140
13141 # Additional compiler flags for building library objects.
13142 pic_flag=$lt_lt_prog_compiler_pic_CXX
13143 pic_mode=$pic_mode
13144
13145 # What is the maximum length of a command?
13146 max_cmd_len=$lt_cv_sys_max_cmd_len
13147
13148 # Does compiler simultaneously support -c and -o options?
13149 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13150
13151 # Must we lock files when doing compilation?
13152 need_locks=$lt_need_locks
13153
13154 # Do we need the lib prefix for modules?
13155 need_lib_prefix=$need_lib_prefix
13156
13157 # Do we need a version for libraries?
13158 need_version=$need_version
13159
13160 # Whether dlopen is supported.
13161 dlopen_support=$enable_dlopen
13162
13163 # Whether dlopen of programs is supported.
13164 dlopen_self=$enable_dlopen_self
13165
13166 # Whether dlopen of statically linked programs is supported.
13167 dlopen_self_static=$enable_dlopen_self_static
13168
13169 # Compiler flag to prevent dynamic linking.
13170 link_static_flag=$lt_lt_prog_compiler_static_CXX
13171
13172 # Compiler flag to turn off builtin functions.
13173 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13174
13175 # Compiler flag to allow reflexive dlopens.
13176 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13177
13178 # Compiler flag to generate shared objects directly from archives.
13179 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13180
13181 # Compiler flag to generate thread-safe objects.
13182 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13183
13184 # Library versioning type.
13185 version_type=$version_type
13186
13187 # Format of library name prefix.
13188 libname_spec=$lt_libname_spec
13189
13190 # List of archive names.  First name is the real one, the rest are links.
13191 # The last name is the one that the linker finds with -lNAME.
13192 library_names_spec=$lt_library_names_spec
13193
13194 # The coded name of the library, if different from the real name.
13195 soname_spec=$lt_soname_spec
13196
13197 # Commands used to build and install an old-style archive.
13198 RANLIB=$lt_RANLIB
13199 old_archive_cmds=$lt_old_archive_cmds_CXX
13200 old_postinstall_cmds=$lt_old_postinstall_cmds
13201 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13202
13203 # Create an old-style archive from a shared archive.
13204 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13205
13206 # Create a temporary old-style archive to link instead of a shared archive.
13207 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13208
13209 # Commands used to build and install a shared archive.
13210 archive_cmds=$lt_archive_cmds_CXX
13211 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13212 postinstall_cmds=$lt_postinstall_cmds
13213 postuninstall_cmds=$lt_postuninstall_cmds
13214
13215 # Commands used to build a loadable module (assumed same as above if empty)
13216 module_cmds=$lt_module_cmds_CXX
13217 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13218
13219 # Commands to strip libraries.
13220 old_striplib=$lt_old_striplib
13221 striplib=$lt_striplib
13222
13223 # Dependencies to place before the objects being linked to create a
13224 # shared library.
13225 predep_objects=$lt_predep_objects_CXX
13226
13227 # Dependencies to place after the objects being linked to create a
13228 # shared library.
13229 postdep_objects=$lt_postdep_objects_CXX
13230
13231 # Dependencies to place before the objects being linked to create a
13232 # shared library.
13233 predeps=$lt_predeps_CXX
13234
13235 # Dependencies to place after the objects being linked to create a
13236 # shared library.
13237 postdeps=$lt_postdeps_CXX
13238
13239 # The directories searched by this compiler when creating a shared
13240 # library
13241 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13242
13243 # The library search path used internally by the compiler when linking
13244 # a shared library.
13245 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13246
13247 # Method to check whether dependent libraries are shared objects.
13248 deplibs_check_method=$lt_deplibs_check_method
13249
13250 # Command to use when deplibs_check_method == file_magic.
13251 file_magic_cmd=$lt_file_magic_cmd
13252
13253 # Flag that allows shared libraries with undefined symbols to be built.
13254 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13255
13256 # Flag that forces no undefined symbols.
13257 no_undefined_flag=$lt_no_undefined_flag_CXX
13258
13259 # Commands used to finish a libtool library installation in a directory.
13260 finish_cmds=$lt_finish_cmds
13261
13262 # Same as above, but a single script fragment to be evaled but not shown.
13263 finish_eval=$lt_finish_eval
13264
13265 # Take the output of nm and produce a listing of raw symbols and C names.
13266 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13267
13268 # Transform the output of nm in a proper C declaration
13269 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13270
13271 # Transform the output of nm in a C name address pair
13272 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13273
13274 # This is the shared library runtime path variable.
13275 runpath_var=$runpath_var
13276
13277 # This is the shared library path variable.
13278 shlibpath_var=$shlibpath_var
13279
13280 # Is shlibpath searched before the hard-coded library search path?
13281 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13282
13283 # How to hardcode a shared library path into an executable.
13284 hardcode_action=$hardcode_action_CXX
13285
13286 # Whether we should hardcode library paths into libraries.
13287 hardcode_into_libs=$hardcode_into_libs
13288
13289 # Flag to hardcode \$libdir into a binary during linking.
13290 # This must work even if \$libdir does not exist.
13291 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13292
13293 # If ld is used when linking, flag to hardcode \$libdir into
13294 # a binary during linking. This must work even if \$libdir does
13295 # not exist.
13296 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13297
13298 # Whether we need a single -rpath flag with a separated argument.
13299 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13300
13301 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13302 # resulting binary.
13303 hardcode_direct=$hardcode_direct_CXX
13304
13305 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13306 # resulting binary.
13307 hardcode_minus_L=$hardcode_minus_L_CXX
13308
13309 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13310 # the resulting binary.
13311 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13312
13313 # Set to yes if building a shared library automatically hardcodes DIR into the library
13314 # and all subsequent libraries and executables linked against it.
13315 hardcode_automatic=$hardcode_automatic_CXX
13316
13317 # Variables whose values should be saved in libtool wrapper scripts and
13318 # restored at relink time.
13319 variables_saved_for_relink="$variables_saved_for_relink"
13320
13321 # Whether libtool must link a program against all its dependency libraries.
13322 link_all_deplibs=$link_all_deplibs_CXX
13323
13324 # Compile-time system search path for libraries
13325 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13326
13327 # Run-time system search path for libraries
13328 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13329
13330 # Fix the shell variable \$srcfile for the compiler.
13331 fix_srcfile_path=$lt_fix_srcfile_path
13332
13333 # Set to yes if exported symbols are required.
13334 always_export_symbols=$always_export_symbols_CXX
13335
13336 # The commands to list exported symbols.
13337 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13338
13339 # The commands to extract the exported symbol list from a shared archive.
13340 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13341
13342 # Symbols that should not be listed in the preloaded symbols.
13343 exclude_expsyms=$lt_exclude_expsyms_CXX
13344
13345 # Symbols that must always be exported.
13346 include_expsyms=$lt_include_expsyms_CXX
13347
13348 # ### END LIBTOOL TAG CONFIG: $tagname
13349
13350 __EOF__
13351
13352
13353 else
13354   # If there is no Makefile yet, we rely on a make rule to execute
13355   # `config.status --recheck' to rerun these tests and create the
13356   # libtool script then.
13357   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13358   if test -f "$ltmain_in"; then
13359     test -f Makefile && make "$ltmain"
13360   fi
13361 fi
13362
13363
13364 ac_ext=c
13365 ac_cpp='$CPP $CPPFLAGS'
13366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13369
13370 CC=$lt_save_CC
13371 LDCXX=$LD
13372 LD=$lt_save_LD
13373 GCC=$lt_save_GCC
13374 with_gnu_ldcxx=$with_gnu_ld
13375 with_gnu_ld=$lt_save_with_gnu_ld
13376 lt_cv_path_LDCXX=$lt_cv_path_LD
13377 lt_cv_path_LD=$lt_save_path_LD
13378 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13379 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13380
13381         else
13382           tagname=""
13383         fi
13384         ;;
13385
13386       F77)
13387         if test -n "$F77" && test "X$F77" != "Xno"; then
13388
13389 ac_ext=f
13390 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13391 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13392 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13393
13394
13395 archive_cmds_need_lc_F77=no
13396 allow_undefined_flag_F77=
13397 always_export_symbols_F77=no
13398 archive_expsym_cmds_F77=
13399 export_dynamic_flag_spec_F77=
13400 hardcode_direct_F77=no
13401 hardcode_libdir_flag_spec_F77=
13402 hardcode_libdir_flag_spec_ld_F77=
13403 hardcode_libdir_separator_F77=
13404 hardcode_minus_L_F77=no
13405 hardcode_automatic_F77=no
13406 module_cmds_F77=
13407 module_expsym_cmds_F77=
13408 link_all_deplibs_F77=unknown
13409 old_archive_cmds_F77=$old_archive_cmds
13410 no_undefined_flag_F77=
13411 whole_archive_flag_spec_F77=
13412 enable_shared_with_static_runtimes_F77=no
13413
13414 # Source file extension for f77 test sources.
13415 ac_ext=f
13416
13417 # Object file extension for compiled f77 test sources.
13418 objext=o
13419 objext_F77=$objext
13420
13421 # Code to be used in simple compile tests
13422 lt_simple_compile_test_code="\
13423       subroutine t
13424       return
13425       end
13426 "
13427
13428 # Code to be used in simple link tests
13429 lt_simple_link_test_code="\
13430       program t
13431       end
13432 "
13433
13434 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13435
13436 # If no C compiler was specified, use CC.
13437 LTCC=${LTCC-"$CC"}
13438
13439 # If no C compiler flags were specified, use CFLAGS.
13440 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13441
13442 # Allow CC to be a program name with arguments.
13443 compiler=$CC
13444
13445
13446 # save warnings/boilerplate of simple test code
13447 ac_outfile=conftest.$ac_objext
13448 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13449 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13450 _lt_compiler_boilerplate=`cat conftest.err`
13451 $rm conftest*
13452
13453 ac_outfile=conftest.$ac_objext
13454 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13455 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13456 _lt_linker_boilerplate=`cat conftest.err`
13457 $rm -r conftest*
13458
13459
13460 # Allow CC to be a program name with arguments.
13461 lt_save_CC="$CC"
13462 CC=${F77-"f77"}
13463 compiler=$CC
13464 compiler_F77=$CC
13465 for cc_temp in $compiler""; do
13466   case $cc_temp in
13467     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13468     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13469     \-*) ;;
13470     *) break;;
13471   esac
13472 done
13473 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13474
13475
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13477 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13479 $as_echo "$can_build_shared" >&6; }
13480
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13482 $as_echo_n "checking whether to build shared libraries... " >&6; }
13483 test "$can_build_shared" = "no" && enable_shared=no
13484
13485 # On AIX, shared libraries and static libraries use the same namespace, and
13486 # are all built from PIC.
13487 case $host_os in
13488 aix3*)
13489   test "$enable_shared" = yes && enable_static=no
13490   if test -n "$RANLIB"; then
13491     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13492     postinstall_cmds='$RANLIB $lib'
13493   fi
13494   ;;
13495 aix[4-9]*)
13496   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13497     test "$enable_shared" = yes && enable_static=no
13498   fi
13499   ;;
13500 esac
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13502 $as_echo "$enable_shared" >&6; }
13503
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13505 $as_echo_n "checking whether to build static libraries... " >&6; }
13506 # Make sure either enable_shared or enable_static is yes.
13507 test "$enable_shared" = yes || enable_static=yes
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13509 $as_echo "$enable_static" >&6; }
13510
13511 GCC_F77="$G77"
13512 LD_F77="$LD"
13513
13514 lt_prog_compiler_wl_F77=
13515 lt_prog_compiler_pic_F77=
13516 lt_prog_compiler_static_F77=
13517
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13519 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13520
13521   if test "$GCC" = yes; then
13522     lt_prog_compiler_wl_F77='-Wl,'
13523     lt_prog_compiler_static_F77='-static'
13524
13525     case $host_os in
13526       aix*)
13527       # All AIX code is PIC.
13528       if test "$host_cpu" = ia64; then
13529         # AIX 5 now supports IA64 processor
13530         lt_prog_compiler_static_F77='-Bstatic'
13531       fi
13532       ;;
13533
13534     amigaos*)
13535       # FIXME: we need at least 68020 code to build shared libraries, but
13536       # adding the `-m68020' flag to GCC prevents building anything better,
13537       # like `-m68040'.
13538       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13539       ;;
13540
13541     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13542       # PIC is the default for these OSes.
13543       ;;
13544
13545     mingw* | cygwin* | pw32* | os2*)
13546       # This hack is so that the source file can tell whether it is being
13547       # built for inclusion in a dll (and should export symbols for example).
13548       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13549       # (--disable-auto-import) libraries
13550       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13551       ;;
13552
13553     darwin* | rhapsody*)
13554       # PIC is the default on this platform
13555       # Common symbols not allowed in MH_DYLIB files
13556       lt_prog_compiler_pic_F77='-fno-common'
13557       ;;
13558
13559     interix[3-9]*)
13560       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13561       # Instead, we relocate shared libraries at runtime.
13562       ;;
13563
13564     msdosdjgpp*)
13565       # Just because we use GCC doesn't mean we suddenly get shared libraries
13566       # on systems that don't support them.
13567       lt_prog_compiler_can_build_shared_F77=no
13568       enable_shared=no
13569       ;;
13570
13571     sysv4*MP*)
13572       if test -d /usr/nec; then
13573         lt_prog_compiler_pic_F77=-Kconform_pic
13574       fi
13575       ;;
13576
13577     hpux*)
13578       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13579       # not for PA HP-UX.
13580       case $host_cpu in
13581       hppa*64*|ia64*)
13582         # +Z the default
13583         ;;
13584       *)
13585         lt_prog_compiler_pic_F77='-fPIC'
13586         ;;
13587       esac
13588       ;;
13589
13590     *)
13591       lt_prog_compiler_pic_F77='-fPIC'
13592       ;;
13593     esac
13594   else
13595     # PORTME Check for flag to pass linker flags through the system compiler.
13596     case $host_os in
13597     aix*)
13598       lt_prog_compiler_wl_F77='-Wl,'
13599       if test "$host_cpu" = ia64; then
13600         # AIX 5 now supports IA64 processor
13601         lt_prog_compiler_static_F77='-Bstatic'
13602       else
13603         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13604       fi
13605       ;;
13606       darwin*)
13607         # PIC is the default on this platform
13608         # Common symbols not allowed in MH_DYLIB files
13609        case $cc_basename in
13610          xlc*)
13611          lt_prog_compiler_pic_F77='-qnocommon'
13612          lt_prog_compiler_wl_F77='-Wl,'
13613          ;;
13614        esac
13615        ;;
13616
13617     mingw* | cygwin* | pw32* | os2*)
13618       # This hack is so that the source file can tell whether it is being
13619       # built for inclusion in a dll (and should export symbols for example).
13620       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13621       ;;
13622
13623     hpux9* | hpux10* | hpux11*)
13624       lt_prog_compiler_wl_F77='-Wl,'
13625       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13626       # not for PA HP-UX.
13627       case $host_cpu in
13628       hppa*64*|ia64*)
13629         # +Z the default
13630         ;;
13631       *)
13632         lt_prog_compiler_pic_F77='+Z'
13633         ;;
13634       esac
13635       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13636       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13637       ;;
13638
13639     irix5* | irix6* | nonstopux*)
13640       lt_prog_compiler_wl_F77='-Wl,'
13641       # PIC (with -KPIC) is the default.
13642       lt_prog_compiler_static_F77='-non_shared'
13643       ;;
13644
13645     newsos6)
13646       lt_prog_compiler_pic_F77='-KPIC'
13647       lt_prog_compiler_static_F77='-Bstatic'
13648       ;;
13649
13650     linux* | k*bsd*-gnu)
13651       case $cc_basename in
13652       icc* | ecc*)
13653         lt_prog_compiler_wl_F77='-Wl,'
13654         lt_prog_compiler_pic_F77='-KPIC'
13655         lt_prog_compiler_static_F77='-static'
13656         ;;
13657       pgcc* | pgf77* | pgf90* | pgf95*)
13658         # Portland Group compilers (*not* the Pentium gcc compiler,
13659         # which looks to be a dead project)
13660         lt_prog_compiler_wl_F77='-Wl,'
13661         lt_prog_compiler_pic_F77='-fpic'
13662         lt_prog_compiler_static_F77='-Bstatic'
13663         ;;
13664       ccc*)
13665         lt_prog_compiler_wl_F77='-Wl,'
13666         # All Alpha code is PIC.
13667         lt_prog_compiler_static_F77='-non_shared'
13668         ;;
13669       *)
13670         case `$CC -V 2>&1 | sed 5q` in
13671         *Sun\ C*)
13672           # Sun C 5.9
13673           lt_prog_compiler_pic_F77='-KPIC'
13674           lt_prog_compiler_static_F77='-Bstatic'
13675           lt_prog_compiler_wl_F77='-Wl,'
13676           ;;
13677         *Sun\ F*)
13678           # Sun Fortran 8.3 passes all unrecognized flags to the linker
13679           lt_prog_compiler_pic_F77='-KPIC'
13680           lt_prog_compiler_static_F77='-Bstatic'
13681           lt_prog_compiler_wl_F77=''
13682           ;;
13683         esac
13684         ;;
13685       esac
13686       ;;
13687
13688     osf3* | osf4* | osf5*)
13689       lt_prog_compiler_wl_F77='-Wl,'
13690       # All OSF/1 code is PIC.
13691       lt_prog_compiler_static_F77='-non_shared'
13692       ;;
13693
13694     rdos*)
13695       lt_prog_compiler_static_F77='-non_shared'
13696       ;;
13697
13698     solaris*)
13699       lt_prog_compiler_pic_F77='-KPIC'
13700       lt_prog_compiler_static_F77='-Bstatic'
13701       case $cc_basename in
13702       f77* | f90* | f95*)
13703         lt_prog_compiler_wl_F77='-Qoption ld ';;
13704       *)
13705         lt_prog_compiler_wl_F77='-Wl,';;
13706       esac
13707       ;;
13708
13709     sunos4*)
13710       lt_prog_compiler_wl_F77='-Qoption ld '
13711       lt_prog_compiler_pic_F77='-PIC'
13712       lt_prog_compiler_static_F77='-Bstatic'
13713       ;;
13714
13715     sysv4 | sysv4.2uw2* | sysv4.3*)
13716       lt_prog_compiler_wl_F77='-Wl,'
13717       lt_prog_compiler_pic_F77='-KPIC'
13718       lt_prog_compiler_static_F77='-Bstatic'
13719       ;;
13720
13721     sysv4*MP*)
13722       if test -d /usr/nec ;then
13723         lt_prog_compiler_pic_F77='-Kconform_pic'
13724         lt_prog_compiler_static_F77='-Bstatic'
13725       fi
13726       ;;
13727
13728     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13729       lt_prog_compiler_wl_F77='-Wl,'
13730       lt_prog_compiler_pic_F77='-KPIC'
13731       lt_prog_compiler_static_F77='-Bstatic'
13732       ;;
13733
13734     unicos*)
13735       lt_prog_compiler_wl_F77='-Wl,'
13736       lt_prog_compiler_can_build_shared_F77=no
13737       ;;
13738
13739     uts4*)
13740       lt_prog_compiler_pic_F77='-pic'
13741       lt_prog_compiler_static_F77='-Bstatic'
13742       ;;
13743
13744     *)
13745       lt_prog_compiler_can_build_shared_F77=no
13746       ;;
13747     esac
13748   fi
13749
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
13751 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
13752
13753 #
13754 # Check to make sure the PIC flag actually works.
13755 #
13756 if test -n "$lt_prog_compiler_pic_F77"; then
13757
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13759 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
13760 if ${lt_cv_prog_compiler_pic_works_F77+:} false; then :
13761   $as_echo_n "(cached) " >&6
13762 else
13763   lt_cv_prog_compiler_pic_works_F77=no
13764   ac_outfile=conftest.$ac_objext
13765    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13766    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13767    # Insert the option either (1) after the last *FLAGS variable, or
13768    # (2) before a word containing "conftest.", or (3) at the end.
13769    # Note that $ac_compile itself does not contain backslashes and begins
13770    # with a dollar sign (not a hyphen), so the echo should work correctly.
13771    # The option is referenced via a variable to avoid confusing sed.
13772    lt_compile=`echo "$ac_compile" | $SED \
13773    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13774    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13775    -e 's:$: $lt_compiler_flag:'`
13776    (eval echo "\"\$as_me:13776: $lt_compile\"" >&5)
13777    (eval "$lt_compile" 2>conftest.err)
13778    ac_status=$?
13779    cat conftest.err >&5
13780    echo "$as_me:13780: \$? = $ac_status" >&5
13781    if (exit $ac_status) && test -s "$ac_outfile"; then
13782      # The compiler can only warn and ignore the option if not recognized
13783      # So say no if there are warnings other than the usual output.
13784      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13785      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13786      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13787        lt_cv_prog_compiler_pic_works_F77=yes
13788      fi
13789    fi
13790    $rm conftest*
13791
13792 fi
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
13794 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
13795
13796 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
13797     case $lt_prog_compiler_pic_F77 in
13798      "" | " "*) ;;
13799      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13800      esac
13801 else
13802     lt_prog_compiler_pic_F77=
13803      lt_prog_compiler_can_build_shared_F77=no
13804 fi
13805
13806 fi
13807 case $host_os in
13808   # For platforms which do not support PIC, -DPIC is meaningless:
13809   *djgpp*)
13810     lt_prog_compiler_pic_F77=
13811     ;;
13812   *)
13813     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13814     ;;
13815 esac
13816
13817 #
13818 # Check to make sure the static flag actually works.
13819 #
13820 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13822 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13823 if ${lt_cv_prog_compiler_static_works_F77+:} false; then :
13824   $as_echo_n "(cached) " >&6
13825 else
13826   lt_cv_prog_compiler_static_works_F77=no
13827    save_LDFLAGS="$LDFLAGS"
13828    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13829    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13830    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13831      # The linker can only warn and ignore the option if not recognized
13832      # So say no if there are warnings
13833      if test -s conftest.err; then
13834        # Append any errors to the config.log.
13835        cat conftest.err 1>&5
13836        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13837        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13838        if diff conftest.exp conftest.er2 >/dev/null; then
13839          lt_cv_prog_compiler_static_works_F77=yes
13840        fi
13841      else
13842        lt_cv_prog_compiler_static_works_F77=yes
13843      fi
13844    fi
13845    $rm -r conftest*
13846    LDFLAGS="$save_LDFLAGS"
13847
13848 fi
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
13850 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
13851
13852 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
13853     :
13854 else
13855     lt_prog_compiler_static_F77=
13856 fi
13857
13858
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13860 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13861 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
13862   $as_echo_n "(cached) " >&6
13863 else
13864   lt_cv_prog_compiler_c_o_F77=no
13865    $rm -r conftest 2>/dev/null
13866    mkdir conftest
13867    cd conftest
13868    mkdir out
13869    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13870
13871    lt_compiler_flag="-o out/conftest2.$ac_objext"
13872    # Insert the option either (1) after the last *FLAGS variable, or
13873    # (2) before a word containing "conftest.", or (3) at the end.
13874    # Note that $ac_compile itself does not contain backslashes and begins
13875    # with a dollar sign (not a hyphen), so the echo should work correctly.
13876    lt_compile=`echo "$ac_compile" | $SED \
13877    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13878    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13879    -e 's:$: $lt_compiler_flag:'`
13880    (eval echo "\"\$as_me:13880: $lt_compile\"" >&5)
13881    (eval "$lt_compile" 2>out/conftest.err)
13882    ac_status=$?
13883    cat out/conftest.err >&5
13884    echo "$as_me:13884: \$? = $ac_status" >&5
13885    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13886    then
13887      # The compiler can only warn and ignore the option if not recognized
13888      # So say no if there are warnings
13889      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13890      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13891      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13892        lt_cv_prog_compiler_c_o_F77=yes
13893      fi
13894    fi
13895    chmod u+w . 2>&5
13896    $rm conftest*
13897    # SGI C++ compiler will create directory out/ii_files/ for
13898    # template instantiation
13899    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13900    $rm out/* && rmdir out
13901    cd ..
13902    rmdir conftest
13903    $rm conftest*
13904
13905 fi
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
13907 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
13908
13909
13910 hard_links="nottested"
13911 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13912   # do not overwrite the value of need_locks provided by the user
13913   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13914 $as_echo_n "checking if we can lock with hard links... " >&6; }
13915   hard_links=yes
13916   $rm conftest*
13917   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13918   touch conftest.a
13919   ln conftest.a conftest.b 2>&5 || hard_links=no
13920   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13922 $as_echo "$hard_links" >&6; }
13923   if test "$hard_links" = no; then
13924     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13925 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13926     need_locks=warn
13927   fi
13928 else
13929   need_locks=no
13930 fi
13931
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13933 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13934
13935   runpath_var=
13936   allow_undefined_flag_F77=
13937   enable_shared_with_static_runtimes_F77=no
13938   archive_cmds_F77=
13939   archive_expsym_cmds_F77=
13940   old_archive_From_new_cmds_F77=
13941   old_archive_from_expsyms_cmds_F77=
13942   export_dynamic_flag_spec_F77=
13943   whole_archive_flag_spec_F77=
13944   thread_safe_flag_spec_F77=
13945   hardcode_libdir_flag_spec_F77=
13946   hardcode_libdir_flag_spec_ld_F77=
13947   hardcode_libdir_separator_F77=
13948   hardcode_direct_F77=no
13949   hardcode_minus_L_F77=no
13950   hardcode_shlibpath_var_F77=unsupported
13951   link_all_deplibs_F77=unknown
13952   hardcode_automatic_F77=no
13953   module_cmds_F77=
13954   module_expsym_cmds_F77=
13955   always_export_symbols_F77=no
13956   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13957   # include_expsyms should be a list of space-separated symbols to be *always*
13958   # included in the symbol list
13959   include_expsyms_F77=
13960   # exclude_expsyms can be an extended regexp of symbols to exclude
13961   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13962   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13963   # as well as any symbol that contains `d'.
13964   exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13965   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13966   # platforms (ab)use it in PIC code, but their linkers get confused if
13967   # the symbol is explicitly referenced.  Since portable code cannot
13968   # rely on this symbol name, it's probably fine to never include it in
13969   # preloaded symbol tables.
13970   # Exclude shared library initialization/finalization symbols.
13971   extract_expsyms_cmds=
13972   # Just being paranoid about ensuring that cc_basename is set.
13973   for cc_temp in $compiler""; do
13974   case $cc_temp in
13975     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13976     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13977     \-*) ;;
13978     *) break;;
13979   esac
13980 done
13981 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13982
13983   case $host_os in
13984   cygwin* | mingw* | pw32*)
13985     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13986     # When not using gcc, we currently assume that we are using
13987     # Microsoft Visual C++.
13988     if test "$GCC" != yes; then
13989       with_gnu_ld=no
13990     fi
13991     ;;
13992   interix*)
13993     # we just hope/assume this is gcc and not c89 (= MSVC++)
13994     with_gnu_ld=yes
13995     ;;
13996   openbsd*)
13997     with_gnu_ld=no
13998     ;;
13999   esac
14000
14001   ld_shlibs_F77=yes
14002   if test "$with_gnu_ld" = yes; then
14003     # If archive_cmds runs LD, not CC, wlarc should be empty
14004     wlarc='${wl}'
14005
14006     # Set some defaults for GNU ld with shared library support. These
14007     # are reset later if shared libraries are not supported. Putting them
14008     # here allows them to be overridden if necessary.
14009     runpath_var=LD_RUN_PATH
14010     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14011     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14012     # ancient GNU ld didn't support --whole-archive et. al.
14013     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14014         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14015       else
14016         whole_archive_flag_spec_F77=
14017     fi
14018     supports_anon_versioning=no
14019     case `$LD -v 2>/dev/null` in
14020       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14021       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14022       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14023       *\ 2.11.*) ;; # other 2.11 versions
14024       *) supports_anon_versioning=yes ;;
14025     esac
14026
14027     # See if GNU ld supports shared libraries.
14028     case $host_os in
14029     aix[3-9]*)
14030       # On AIX/PPC, the GNU linker is very broken
14031       if test "$host_cpu" != ia64; then
14032         ld_shlibs_F77=no
14033         cat <<EOF 1>&2
14034
14035 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14036 *** to be unable to reliably create shared libraries on AIX.
14037 *** Therefore, libtool is disabling shared libraries support.  If you
14038 *** really care for shared libraries, you may want to modify your PATH
14039 *** so that a non-GNU linker is found, and then restart.
14040
14041 EOF
14042       fi
14043       ;;
14044
14045     amigaos*)
14046       archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14047       hardcode_libdir_flag_spec_F77='-L$libdir'
14048       hardcode_minus_L_F77=yes
14049
14050       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14051       # that the semantics of dynamic libraries on AmigaOS, at least up
14052       # to version 4, is to share data among multiple programs linked
14053       # with the same dynamic library.  Since this doesn't match the
14054       # behavior of shared libraries on other platforms, we can't use
14055       # them.
14056       ld_shlibs_F77=no
14057       ;;
14058
14059     beos*)
14060       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14061         allow_undefined_flag_F77=unsupported
14062         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14063         # support --undefined.  This deserves some investigation.  FIXME
14064         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14065       else
14066         ld_shlibs_F77=no
14067       fi
14068       ;;
14069
14070     cygwin* | mingw* | pw32*)
14071       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14072       # as there is no search path for DLLs.
14073       hardcode_libdir_flag_spec_F77='-L$libdir'
14074       allow_undefined_flag_F77=unsupported
14075       always_export_symbols_F77=no
14076       enable_shared_with_static_runtimes_F77=yes
14077       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14078
14079       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14080         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14081         # If the export-symbols file already is a .def file (1st line
14082         # is EXPORTS), use it as is; otherwise, prepend...
14083         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14084           cp $export_symbols $output_objdir/$soname.def;
14085         else
14086           echo EXPORTS > $output_objdir/$soname.def;
14087           cat $export_symbols >> $output_objdir/$soname.def;
14088         fi~
14089         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14090       else
14091         ld_shlibs_F77=no
14092       fi
14093       ;;
14094
14095     interix[3-9]*)
14096       hardcode_direct_F77=no
14097       hardcode_shlibpath_var_F77=no
14098       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14099       export_dynamic_flag_spec_F77='${wl}-E'
14100       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14101       # Instead, shared libraries are loaded at an image base (0x10000000 by
14102       # default) and relocated if they conflict, which is a slow very memory
14103       # consuming and fragmenting process.  To avoid this, we pick a random,
14104       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14105       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14106       archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14107       archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14108       ;;
14109
14110     gnu* | linux* | k*bsd*-gnu)
14111       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14112         tmp_addflag=
14113         case $cc_basename,$host_cpu in
14114         pgcc*)                          # Portland Group C compiler
14115           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14116           tmp_addflag=' $pic_flag'
14117           ;;
14118         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14119           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14120           tmp_addflag=' $pic_flag -Mnomain' ;;
14121         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14122           tmp_addflag=' -i_dynamic' ;;
14123         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14124           tmp_addflag=' -i_dynamic -nofor_main' ;;
14125         ifc* | ifort*)                  # Intel Fortran compiler
14126           tmp_addflag=' -nofor_main' ;;
14127         esac
14128         case `$CC -V 2>&1 | sed 5q` in
14129         *Sun\ C*)                       # Sun C 5.9
14130           whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14131           tmp_sharedflag='-G' ;;
14132         *Sun\ F*)                       # Sun Fortran 8.3
14133           tmp_sharedflag='-G' ;;
14134         *)
14135           tmp_sharedflag='-shared' ;;
14136         esac
14137         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14138
14139         if test $supports_anon_versioning = yes; then
14140           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14141   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14142   $echo "local: *; };" >> $output_objdir/$libname.ver~
14143           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14144         fi
14145         link_all_deplibs_F77=no
14146       else
14147         ld_shlibs_F77=no
14148       fi
14149       ;;
14150
14151     netbsd* | netbsdelf*-gnu)
14152       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14153         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14154         wlarc=
14155       else
14156         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14157         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14158       fi
14159       ;;
14160
14161     solaris*)
14162       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14163         ld_shlibs_F77=no
14164         cat <<EOF 1>&2
14165
14166 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14167 *** create shared libraries on Solaris systems.  Therefore, libtool
14168 *** is disabling shared libraries support.  We urge you to upgrade GNU
14169 *** binutils to release 2.9.1 or newer.  Another option is to modify
14170 *** your PATH or compiler configuration so that the native linker is
14171 *** used, and then restart.
14172
14173 EOF
14174       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14175         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14176         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14177       else
14178         ld_shlibs_F77=no
14179       fi
14180       ;;
14181
14182     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14183       case `$LD -v 2>&1` in
14184         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14185         ld_shlibs_F77=no
14186         cat <<_LT_EOF 1>&2
14187
14188 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14189 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14190 *** is disabling shared libraries support.  We urge you to upgrade GNU
14191 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14192 *** your PATH or compiler configuration so that the native linker is
14193 *** used, and then restart.
14194
14195 _LT_EOF
14196         ;;
14197         *)
14198           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14199             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14200             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14201             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14202           else
14203             ld_shlibs_F77=no
14204           fi
14205         ;;
14206       esac
14207       ;;
14208
14209     sunos4*)
14210       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14211       wlarc=
14212       hardcode_direct_F77=yes
14213       hardcode_shlibpath_var_F77=no
14214       ;;
14215
14216     *)
14217       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14218         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14219         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14220       else
14221         ld_shlibs_F77=no
14222       fi
14223       ;;
14224     esac
14225
14226     if test "$ld_shlibs_F77" = no; then
14227       runpath_var=
14228       hardcode_libdir_flag_spec_F77=
14229       export_dynamic_flag_spec_F77=
14230       whole_archive_flag_spec_F77=
14231     fi
14232   else
14233     # PORTME fill in a description of your system's linker (not GNU ld)
14234     case $host_os in
14235     aix3*)
14236       allow_undefined_flag_F77=unsupported
14237       always_export_symbols_F77=yes
14238       archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14239       # Note: this linker hardcodes the directories in LIBPATH if there
14240       # are no directories specified by -L.
14241       hardcode_minus_L_F77=yes
14242       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14243         # Neither direct hardcoding nor static linking is supported with a
14244         # broken collect2.
14245         hardcode_direct_F77=unsupported
14246       fi
14247       ;;
14248
14249     aix[4-9]*)
14250       if test "$host_cpu" = ia64; then
14251         # On IA64, the linker does run time linking by default, so we don't
14252         # have to do anything special.
14253         aix_use_runtimelinking=no
14254         exp_sym_flag='-Bexport'
14255         no_entry_flag=""
14256       else
14257         # If we're using GNU nm, then we don't want the "-C" option.
14258         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14259         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14260           export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14261         else
14262           export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14263         fi
14264         aix_use_runtimelinking=no
14265
14266         # Test if we are trying to use run time linking or normal
14267         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14268         # need to do runtime linking.
14269         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14270           for ld_flag in $LDFLAGS; do
14271           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14272             aix_use_runtimelinking=yes
14273             break
14274           fi
14275           done
14276           ;;
14277         esac
14278
14279         exp_sym_flag='-bexport'
14280         no_entry_flag='-bnoentry'
14281       fi
14282
14283       # When large executables or shared objects are built, AIX ld can
14284       # have problems creating the table of contents.  If linking a library
14285       # or program results in "error TOC overflow" add -mminimal-toc to
14286       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14287       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14288
14289       archive_cmds_F77=''
14290       hardcode_direct_F77=yes
14291       hardcode_libdir_separator_F77=':'
14292       link_all_deplibs_F77=yes
14293
14294       if test "$GCC" = yes; then
14295         case $host_os in aix4.[012]|aix4.[012].*)
14296         # We only want to do this on AIX 4.2 and lower, the check
14297         # below for broken collect2 doesn't work under 4.3+
14298           collect2name=`${CC} -print-prog-name=collect2`
14299           if test -f "$collect2name" && \
14300            strings "$collect2name" | grep resolve_lib_name >/dev/null
14301           then
14302           # We have reworked collect2
14303           :
14304           else
14305           # We have old collect2
14306           hardcode_direct_F77=unsupported
14307           # It fails to find uninstalled libraries when the uninstalled
14308           # path is not listed in the libpath.  Setting hardcode_minus_L
14309           # to unsupported forces relinking
14310           hardcode_minus_L_F77=yes
14311           hardcode_libdir_flag_spec_F77='-L$libdir'
14312           hardcode_libdir_separator_F77=
14313           fi
14314           ;;
14315         esac
14316         shared_flag='-shared'
14317         if test "$aix_use_runtimelinking" = yes; then
14318           shared_flag="$shared_flag "'${wl}-G'
14319         fi
14320       else
14321         # not using gcc
14322         if test "$host_cpu" = ia64; then
14323         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14324         # chokes on -Wl,-G. The following line is correct:
14325           shared_flag='-G'
14326         else
14327           if test "$aix_use_runtimelinking" = yes; then
14328             shared_flag='${wl}-G'
14329           else
14330             shared_flag='${wl}-bM:SRE'
14331           fi
14332         fi
14333       fi
14334
14335       # It seems that -bexpall does not export symbols beginning with
14336       # underscore (_), so it is better to generate a list of symbols to export.
14337       always_export_symbols_F77=yes
14338       if test "$aix_use_runtimelinking" = yes; then
14339         # Warning - without using the other runtime loading flags (-brtl),
14340         # -berok will link without error, but may produce a broken library.
14341         allow_undefined_flag_F77='-berok'
14342        # Determine the default libpath from the value encoded in an empty executable.
14343        cat > conftest.$ac_ext <<_ACEOF
14344       program main
14345
14346       end
14347 _ACEOF
14348 if ac_fn_f77_try_link "$LINENO"; then :
14349
14350 lt_aix_libpath_sed='
14351     /Import File Strings/,/^$/ {
14352         /^0/ {
14353             s/^0  *\(.*\)$/\1/
14354             p
14355         }
14356     }'
14357 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14358 # Check for a 64-bit object if we didn't find anything.
14359 if test -z "$aix_libpath"; then
14360   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14361 fi
14362 fi
14363 rm -f core conftest.err conftest.$ac_objext \
14364     conftest$ac_exeext conftest.$ac_ext
14365 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14366
14367        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14368         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14369        else
14370         if test "$host_cpu" = ia64; then
14371           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14372           allow_undefined_flag_F77="-z nodefs"
14373           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14374         else
14375          # Determine the default libpath from the value encoded in an empty executable.
14376          cat > conftest.$ac_ext <<_ACEOF
14377       program main
14378
14379       end
14380 _ACEOF
14381 if ac_fn_f77_try_link "$LINENO"; then :
14382
14383 lt_aix_libpath_sed='
14384     /Import File Strings/,/^$/ {
14385         /^0/ {
14386             s/^0  *\(.*\)$/\1/
14387             p
14388         }
14389     }'
14390 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14391 # Check for a 64-bit object if we didn't find anything.
14392 if test -z "$aix_libpath"; then
14393   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14394 fi
14395 fi
14396 rm -f core conftest.err conftest.$ac_objext \
14397     conftest$ac_exeext conftest.$ac_ext
14398 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14399
14400          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14401           # Warning - without using the other run time loading flags,
14402           # -berok will link without error, but may produce a broken library.
14403           no_undefined_flag_F77=' ${wl}-bernotok'
14404           allow_undefined_flag_F77=' ${wl}-berok'
14405           # Exported symbols can be pulled into shared objects from archives
14406           whole_archive_flag_spec_F77='$convenience'
14407           archive_cmds_need_lc_F77=yes
14408           # This is similar to how AIX traditionally builds its shared libraries.
14409           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14410         fi
14411       fi
14412       ;;
14413
14414     amigaos*)
14415       archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14416       hardcode_libdir_flag_spec_F77='-L$libdir'
14417       hardcode_minus_L_F77=yes
14418       # see comment about different semantics on the GNU ld section
14419       ld_shlibs_F77=no
14420       ;;
14421
14422     bsdi[45]*)
14423       export_dynamic_flag_spec_F77=-rdynamic
14424       ;;
14425
14426     cygwin* | mingw* | pw32*)
14427       # When not using gcc, we currently assume that we are using
14428       # Microsoft Visual C++.
14429       # hardcode_libdir_flag_spec is actually meaningless, as there is
14430       # no search path for DLLs.
14431       hardcode_libdir_flag_spec_F77=' '
14432       allow_undefined_flag_F77=unsupported
14433       # Tell ltmain to make .lib files, not .a files.
14434       libext=lib
14435       # Tell ltmain to make .dll files, not .so files.
14436       shrext_cmds=".dll"
14437       # FIXME: Setting linknames here is a bad hack.
14438       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14439       # The linker will automatically build a .lib file if we build a DLL.
14440       old_archive_From_new_cmds_F77='true'
14441       # FIXME: Should let the user specify the lib program.
14442       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14443       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14444       enable_shared_with_static_runtimes_F77=yes
14445       ;;
14446
14447     darwin* | rhapsody*)
14448       case $host_os in
14449         rhapsody* | darwin1.[012])
14450          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14451          ;;
14452        *) # Darwin 1.3 on
14453          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14454            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14455          else
14456            case ${MACOSX_DEPLOYMENT_TARGET} in
14457              10.[012])
14458                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14459                ;;
14460              10.*)
14461                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14462                ;;
14463            esac
14464          fi
14465          ;;
14466       esac
14467       archive_cmds_need_lc_F77=no
14468       hardcode_direct_F77=no
14469       hardcode_automatic_F77=yes
14470       hardcode_shlibpath_var_F77=unsupported
14471       whole_archive_flag_spec_F77=''
14472       link_all_deplibs_F77=yes
14473     if test "$GCC" = yes ; then
14474         output_verbose_link_cmd='echo'
14475         archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14476         module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14477         archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
14478         module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
14479     else
14480       case $cc_basename in
14481         xlc*)
14482          output_verbose_link_cmd='echo'
14483          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14484          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14485           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14486          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14487           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14488           ;;
14489        *)
14490          ld_shlibs_F77=no
14491           ;;
14492       esac
14493     fi
14494       ;;
14495
14496     dgux*)
14497       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14498       hardcode_libdir_flag_spec_F77='-L$libdir'
14499       hardcode_shlibpath_var_F77=no
14500       ;;
14501
14502     freebsd1*)
14503       ld_shlibs_F77=no
14504       ;;
14505
14506     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14507     # support.  Future versions do this automatically, but an explicit c++rt0.o
14508     # does not break anything, and helps significantly (at the cost of a little
14509     # extra space).
14510     freebsd2.2*)
14511       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14512       hardcode_libdir_flag_spec_F77='-R$libdir'
14513       hardcode_direct_F77=yes
14514       hardcode_shlibpath_var_F77=no
14515       ;;
14516
14517     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14518     freebsd2*)
14519       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14520       hardcode_direct_F77=yes
14521       hardcode_minus_L_F77=yes
14522       hardcode_shlibpath_var_F77=no
14523       ;;
14524
14525     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14526     freebsd* | dragonfly*)
14527       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14528       hardcode_libdir_flag_spec_F77='-R$libdir'
14529       hardcode_direct_F77=yes
14530       hardcode_shlibpath_var_F77=no
14531       ;;
14532
14533     hpux9*)
14534       if test "$GCC" = yes; then
14535         archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14536       else
14537         archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14538       fi
14539       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14540       hardcode_libdir_separator_F77=:
14541       hardcode_direct_F77=yes
14542
14543       # hardcode_minus_L: Not really in the search PATH,
14544       # but as the default location of the library.
14545       hardcode_minus_L_F77=yes
14546       export_dynamic_flag_spec_F77='${wl}-E'
14547       ;;
14548
14549     hpux10*)
14550       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14551         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14552       else
14553         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14554       fi
14555       if test "$with_gnu_ld" = no; then
14556         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14557         hardcode_libdir_separator_F77=:
14558
14559         hardcode_direct_F77=yes
14560         export_dynamic_flag_spec_F77='${wl}-E'
14561
14562         # hardcode_minus_L: Not really in the search PATH,
14563         # but as the default location of the library.
14564         hardcode_minus_L_F77=yes
14565       fi
14566       ;;
14567
14568     hpux11*)
14569       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14570         case $host_cpu in
14571         hppa*64*)
14572           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14573           ;;
14574         ia64*)
14575           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14576           ;;
14577         *)
14578           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14579           ;;
14580         esac
14581       else
14582         case $host_cpu in
14583         hppa*64*)
14584           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14585           ;;
14586         ia64*)
14587           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14588           ;;
14589         *)
14590           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14591           ;;
14592         esac
14593       fi
14594       if test "$with_gnu_ld" = no; then
14595         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14596         hardcode_libdir_separator_F77=:
14597
14598         case $host_cpu in
14599         hppa*64*|ia64*)
14600           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14601           hardcode_direct_F77=no
14602           hardcode_shlibpath_var_F77=no
14603           ;;
14604         *)
14605           hardcode_direct_F77=yes
14606           export_dynamic_flag_spec_F77='${wl}-E'
14607
14608           # hardcode_minus_L: Not really in the search PATH,
14609           # but as the default location of the library.
14610           hardcode_minus_L_F77=yes
14611           ;;
14612         esac
14613       fi
14614       ;;
14615
14616     irix5* | irix6* | nonstopux*)
14617       if test "$GCC" = yes; then
14618         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14619       else
14620         archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14621         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14622       fi
14623       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14624       hardcode_libdir_separator_F77=:
14625       link_all_deplibs_F77=yes
14626       ;;
14627
14628     netbsd* | netbsdelf*-gnu)
14629       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14630         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14631       else
14632         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14633       fi
14634       hardcode_libdir_flag_spec_F77='-R$libdir'
14635       hardcode_direct_F77=yes
14636       hardcode_shlibpath_var_F77=no
14637       ;;
14638
14639     newsos6)
14640       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14641       hardcode_direct_F77=yes
14642       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14643       hardcode_libdir_separator_F77=:
14644       hardcode_shlibpath_var_F77=no
14645       ;;
14646
14647     openbsd*)
14648       if test -f /usr/libexec/ld.so; then
14649         hardcode_direct_F77=yes
14650         hardcode_shlibpath_var_F77=no
14651         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14652           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14653           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14654           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14655           export_dynamic_flag_spec_F77='${wl}-E'
14656         else
14657           case $host_os in
14658            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14659              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14660              hardcode_libdir_flag_spec_F77='-R$libdir'
14661              ;;
14662            *)
14663              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14664              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14665              ;;
14666           esac
14667         fi
14668       else
14669         ld_shlibs_F77=no
14670       fi
14671       ;;
14672
14673     os2*)
14674       hardcode_libdir_flag_spec_F77='-L$libdir'
14675       hardcode_minus_L_F77=yes
14676       allow_undefined_flag_F77=unsupported
14677       archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
14678       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14679       ;;
14680
14681     osf3*)
14682       if test "$GCC" = yes; then
14683         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14684         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14685       else
14686         allow_undefined_flag_F77=' -expect_unresolved \*'
14687         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14688       fi
14689       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14690       hardcode_libdir_separator_F77=:
14691       ;;
14692
14693     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14694       if test "$GCC" = yes; then
14695         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14696         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14697         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14698       else
14699         allow_undefined_flag_F77=' -expect_unresolved \*'
14700         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14701         archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14702         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14703
14704         # Both c and cxx compiler support -rpath directly
14705         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14706       fi
14707       hardcode_libdir_separator_F77=:
14708       ;;
14709
14710     solaris*)
14711       no_undefined_flag_F77=' -z text'
14712       if test "$GCC" = yes; then
14713         wlarc='${wl}'
14714         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14715         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14716           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14717       else
14718         wlarc=''
14719         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14720         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14721         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14722       fi
14723       hardcode_libdir_flag_spec_F77='-R$libdir'
14724       hardcode_shlibpath_var_F77=no
14725       case $host_os in
14726       solaris2.[0-5] | solaris2.[0-5].*) ;;
14727       *)
14728         # The compiler driver will combine and reorder linker options,
14729         # but understands `-z linker_flag'.  GCC discards it without `$wl',
14730         # but is careful enough not to reorder.
14731         # Supported since Solaris 2.6 (maybe 2.5.1?)
14732         if test "$GCC" = yes; then
14733           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14734         else
14735           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
14736         fi
14737         ;;
14738       esac
14739       link_all_deplibs_F77=yes
14740       ;;
14741
14742     sunos4*)
14743       if test "x$host_vendor" = xsequent; then
14744         # Use $CC to link under sequent, because it throws in some extra .o
14745         # files that make .init and .fini sections work.
14746         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14747       else
14748         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14749       fi
14750       hardcode_libdir_flag_spec_F77='-L$libdir'
14751       hardcode_direct_F77=yes
14752       hardcode_minus_L_F77=yes
14753       hardcode_shlibpath_var_F77=no
14754       ;;
14755
14756     sysv4)
14757       case $host_vendor in
14758         sni)
14759           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14760           hardcode_direct_F77=yes # is this really true???
14761         ;;
14762         siemens)
14763           ## LD is ld it makes a PLAMLIB
14764           ## CC just makes a GrossModule.
14765           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14766           reload_cmds_F77='$CC -r -o $output$reload_objs'
14767           hardcode_direct_F77=no
14768         ;;
14769         motorola)
14770           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14771           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14772         ;;
14773       esac
14774       runpath_var='LD_RUN_PATH'
14775       hardcode_shlibpath_var_F77=no
14776       ;;
14777
14778     sysv4.3*)
14779       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14780       hardcode_shlibpath_var_F77=no
14781       export_dynamic_flag_spec_F77='-Bexport'
14782       ;;
14783
14784     sysv4*MP*)
14785       if test -d /usr/nec; then
14786         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14787         hardcode_shlibpath_var_F77=no
14788         runpath_var=LD_RUN_PATH
14789         hardcode_runpath_var=yes
14790         ld_shlibs_F77=yes
14791       fi
14792       ;;
14793
14794     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14795       no_undefined_flag_F77='${wl}-z,text'
14796       archive_cmds_need_lc_F77=no
14797       hardcode_shlibpath_var_F77=no
14798       runpath_var='LD_RUN_PATH'
14799
14800       if test "$GCC" = yes; then
14801         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14802         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14803       else
14804         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14805         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14806       fi
14807       ;;
14808
14809     sysv5* | sco3.2v5* | sco5v6*)
14810       # Note: We can NOT use -z defs as we might desire, because we do not
14811       # link with -lc, and that would cause any symbols used from libc to
14812       # always be unresolved, which means just about no library would
14813       # ever link correctly.  If we're not using GNU ld we use -z text
14814       # though, which does catch some bad symbols but isn't as heavy-handed
14815       # as -z defs.
14816       no_undefined_flag_F77='${wl}-z,text'
14817       allow_undefined_flag_F77='${wl}-z,nodefs'
14818       archive_cmds_need_lc_F77=no
14819       hardcode_shlibpath_var_F77=no
14820       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14821       hardcode_libdir_separator_F77=':'
14822       link_all_deplibs_F77=yes
14823       export_dynamic_flag_spec_F77='${wl}-Bexport'
14824       runpath_var='LD_RUN_PATH'
14825
14826       if test "$GCC" = yes; then
14827         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14828         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14829       else
14830         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14831         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14832       fi
14833       ;;
14834
14835     uts4*)
14836       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14837       hardcode_libdir_flag_spec_F77='-L$libdir'
14838       hardcode_shlibpath_var_F77=no
14839       ;;
14840
14841     *)
14842       ld_shlibs_F77=no
14843       ;;
14844     esac
14845   fi
14846
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
14848 $as_echo "$ld_shlibs_F77" >&6; }
14849 test "$ld_shlibs_F77" = no && can_build_shared=no
14850
14851 #
14852 # Do we need to explicitly link libc?
14853 #
14854 case "x$archive_cmds_need_lc_F77" in
14855 x|xyes)
14856   # Assume -lc should be added
14857   archive_cmds_need_lc_F77=yes
14858
14859   if test "$enable_shared" = yes && test "$GCC" = yes; then
14860     case $archive_cmds_F77 in
14861     *'~'*)
14862       # FIXME: we may have to deal with multi-command sequences.
14863       ;;
14864     '$CC '*)
14865       # Test whether the compiler implicitly links with -lc since on some
14866       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14867       # to ld, don't add -lc before -lgcc.
14868       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14869 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14870       $rm conftest*
14871       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14872
14873       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14874   (eval $ac_compile) 2>&5
14875   ac_status=$?
14876   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14877   test $ac_status = 0; } 2>conftest.err; then
14878         soname=conftest
14879         lib=conftest
14880         libobjs=conftest.$ac_objext
14881         deplibs=
14882         wl=$lt_prog_compiler_wl_F77
14883         pic_flag=$lt_prog_compiler_pic_F77
14884         compiler_flags=-v
14885         linker_flags=-v
14886         verstring=
14887         output_objdir=.
14888         libname=conftest
14889         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14890         allow_undefined_flag_F77=
14891         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14892   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14893   ac_status=$?
14894   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14895   test $ac_status = 0; }
14896         then
14897           archive_cmds_need_lc_F77=no
14898         else
14899           archive_cmds_need_lc_F77=yes
14900         fi
14901         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14902       else
14903         cat conftest.err 1>&5
14904       fi
14905       $rm conftest*
14906       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
14907 $as_echo "$archive_cmds_need_lc_F77" >&6; }
14908       ;;
14909     esac
14910   fi
14911   ;;
14912 esac
14913
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14915 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14916 library_names_spec=
14917 libname_spec='lib$name'
14918 soname_spec=
14919 shrext_cmds=".so"
14920 postinstall_cmds=
14921 postuninstall_cmds=
14922 finish_cmds=
14923 finish_eval=
14924 shlibpath_var=
14925 shlibpath_overrides_runpath=unknown
14926 version_type=none
14927 dynamic_linker="$host_os ld.so"
14928 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14929
14930 need_lib_prefix=unknown
14931 hardcode_into_libs=no
14932
14933 # when you set need_version to no, make sure it does not cause -set_version
14934 # flags to be left without arguments
14935 need_version=unknown
14936
14937 case $host_os in
14938 aix3*)
14939   version_type=linux
14940   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14941   shlibpath_var=LIBPATH
14942
14943   # AIX 3 has no versioning support, so we append a major version to the name.
14944   soname_spec='${libname}${release}${shared_ext}$major'
14945   ;;
14946
14947 aix[4-9]*)
14948   version_type=linux
14949   need_lib_prefix=no
14950   need_version=no
14951   hardcode_into_libs=yes
14952   if test "$host_cpu" = ia64; then
14953     # AIX 5 supports IA64
14954     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14955     shlibpath_var=LD_LIBRARY_PATH
14956   else
14957     # With GCC up to 2.95.x, collect2 would create an import file
14958     # for dependence libraries.  The import file would start with
14959     # the line `#! .'.  This would cause the generated library to
14960     # depend on `.', always an invalid library.  This was fixed in
14961     # development snapshots of GCC prior to 3.0.
14962     case $host_os in
14963       aix4 | aix4.[01] | aix4.[01].*)
14964       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14965            echo ' yes '
14966            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14967         :
14968       else
14969         can_build_shared=no
14970       fi
14971       ;;
14972     esac
14973     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14974     # soname into executable. Probably we can add versioning support to
14975     # collect2, so additional links can be useful in future.
14976     if test "$aix_use_runtimelinking" = yes; then
14977       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14978       # instead of lib<name>.a to let people know that these are not
14979       # typical AIX shared libraries.
14980       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14981     else
14982       # We preserve .a as extension for shared libraries through AIX4.2
14983       # and later when we are not doing run time linking.
14984       library_names_spec='${libname}${release}.a $libname.a'
14985       soname_spec='${libname}${release}${shared_ext}$major'
14986     fi
14987     shlibpath_var=LIBPATH
14988   fi
14989   ;;
14990
14991 amigaos*)
14992   library_names_spec='$libname.ixlibrary $libname.a'
14993   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14994   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14995   ;;
14996
14997 beos*)
14998   library_names_spec='${libname}${shared_ext}'
14999   dynamic_linker="$host_os ld.so"
15000   shlibpath_var=LIBRARY_PATH
15001   ;;
15002
15003 bsdi[45]*)
15004   version_type=linux
15005   need_version=no
15006   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15007   soname_spec='${libname}${release}${shared_ext}$major'
15008   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15009   shlibpath_var=LD_LIBRARY_PATH
15010   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15011   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15012   # the default ld.so.conf also contains /usr/contrib/lib and
15013   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15014   # libtool to hard-code these into programs
15015   ;;
15016
15017 cygwin* | mingw* | pw32*)
15018   version_type=windows
15019   shrext_cmds=".dll"
15020   need_version=no
15021   need_lib_prefix=no
15022
15023   case $GCC,$host_os in
15024   yes,cygwin* | yes,mingw* | yes,pw32*)
15025     library_names_spec='$libname.dll.a'
15026     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15027     postinstall_cmds='base_file=`basename \${file}`~
15028       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15029       dldir=$destdir/`dirname \$dlpath`~
15030       test -d \$dldir || mkdir -p \$dldir~
15031       $install_prog $dir/$dlname \$dldir/$dlname~
15032       chmod a+x \$dldir/$dlname'
15033     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15034       dlpath=$dir/\$dldll~
15035        $rm \$dlpath'
15036     shlibpath_overrides_runpath=yes
15037
15038     case $host_os in
15039     cygwin*)
15040       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15041       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15042       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15043       ;;
15044     mingw*)
15045       # MinGW DLLs use traditional 'lib' prefix
15046       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15047       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15048       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15049         # It is most probably a Windows format PATH printed by
15050         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15051         # path with ; separators, and with drive letters. We can handle the
15052         # drive letters (cygwin fileutils understands them), so leave them,
15053         # especially as we might pass files found there to a mingw objdump,
15054         # which wouldn't understand a cygwinified path. Ahh.
15055         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15056       else
15057         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15058       fi
15059       ;;
15060     pw32*)
15061       # pw32 DLLs use 'pw' prefix rather than 'lib'
15062       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15063       ;;
15064     esac
15065     ;;
15066
15067   *)
15068     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15069     ;;
15070   esac
15071   dynamic_linker='Win32 ld.exe'
15072   # FIXME: first we should search . and the directory the executable is in
15073   shlibpath_var=PATH
15074   ;;
15075
15076 darwin* | rhapsody*)
15077   dynamic_linker="$host_os dyld"
15078   version_type=darwin
15079   need_lib_prefix=no
15080   need_version=no
15081   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15082   soname_spec='${libname}${release}${major}$shared_ext'
15083   shlibpath_overrides_runpath=yes
15084   shlibpath_var=DYLD_LIBRARY_PATH
15085   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15086
15087   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15088   ;;
15089
15090 dgux*)
15091   version_type=linux
15092   need_lib_prefix=no
15093   need_version=no
15094   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15095   soname_spec='${libname}${release}${shared_ext}$major'
15096   shlibpath_var=LD_LIBRARY_PATH
15097   ;;
15098
15099 freebsd1*)
15100   dynamic_linker=no
15101   ;;
15102
15103 freebsd* | dragonfly*)
15104   # DragonFly does not have aout.  When/if they implement a new
15105   # versioning mechanism, adjust this.
15106   if test -x /usr/bin/objformat; then
15107     objformat=`/usr/bin/objformat`
15108   else
15109     case $host_os in
15110     freebsd[123]*) objformat=aout ;;
15111     *) objformat=elf ;;
15112     esac
15113   fi
15114   version_type=freebsd-$objformat
15115   case $version_type in
15116     freebsd-elf*)
15117       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15118       need_version=no
15119       need_lib_prefix=no
15120       ;;
15121     freebsd-*)
15122       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15123       need_version=yes
15124       ;;
15125   esac
15126   shlibpath_var=LD_LIBRARY_PATH
15127   case $host_os in
15128   freebsd2*)
15129     shlibpath_overrides_runpath=yes
15130     ;;
15131   freebsd3.[01]* | freebsdelf3.[01]*)
15132     shlibpath_overrides_runpath=yes
15133     hardcode_into_libs=yes
15134     ;;
15135   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15136   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15137     shlibpath_overrides_runpath=no
15138     hardcode_into_libs=yes
15139     ;;
15140   *) # from 4.6 on, and DragonFly
15141     shlibpath_overrides_runpath=yes
15142     hardcode_into_libs=yes
15143     ;;
15144   esac
15145   ;;
15146
15147 gnu*)
15148   version_type=linux
15149   need_lib_prefix=no
15150   need_version=no
15151   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15152   soname_spec='${libname}${release}${shared_ext}$major'
15153   shlibpath_var=LD_LIBRARY_PATH
15154   hardcode_into_libs=yes
15155   ;;
15156
15157 hpux9* | hpux10* | hpux11*)
15158   # Give a soname corresponding to the major version so that dld.sl refuses to
15159   # link against other versions.
15160   version_type=sunos
15161   need_lib_prefix=no
15162   need_version=no
15163   case $host_cpu in
15164   ia64*)
15165     shrext_cmds='.so'
15166     hardcode_into_libs=yes
15167     dynamic_linker="$host_os dld.so"
15168     shlibpath_var=LD_LIBRARY_PATH
15169     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15170     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15171     soname_spec='${libname}${release}${shared_ext}$major'
15172     if test "X$HPUX_IA64_MODE" = X32; then
15173       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15174     else
15175       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15176     fi
15177     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15178     ;;
15179    hppa*64*)
15180      shrext_cmds='.sl'
15181      hardcode_into_libs=yes
15182      dynamic_linker="$host_os dld.sl"
15183      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15184      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15185      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15186      soname_spec='${libname}${release}${shared_ext}$major'
15187      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15188      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15189      ;;
15190    *)
15191     shrext_cmds='.sl'
15192     dynamic_linker="$host_os dld.sl"
15193     shlibpath_var=SHLIB_PATH
15194     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15195     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15196     soname_spec='${libname}${release}${shared_ext}$major'
15197     ;;
15198   esac
15199   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15200   postinstall_cmds='chmod 555 $lib'
15201   ;;
15202
15203 interix[3-9]*)
15204   version_type=linux
15205   need_lib_prefix=no
15206   need_version=no
15207   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15208   soname_spec='${libname}${release}${shared_ext}$major'
15209   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15210   shlibpath_var=LD_LIBRARY_PATH
15211   shlibpath_overrides_runpath=no
15212   hardcode_into_libs=yes
15213   ;;
15214
15215 irix5* | irix6* | nonstopux*)
15216   case $host_os in
15217     nonstopux*) version_type=nonstopux ;;
15218     *)
15219         if test "$lt_cv_prog_gnu_ld" = yes; then
15220                 version_type=linux
15221         else
15222                 version_type=irix
15223         fi ;;
15224   esac
15225   need_lib_prefix=no
15226   need_version=no
15227   soname_spec='${libname}${release}${shared_ext}$major'
15228   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15229   case $host_os in
15230   irix5* | nonstopux*)
15231     libsuff= shlibsuff=
15232     ;;
15233   *)
15234     case $LD in # libtool.m4 will add one of these switches to LD
15235     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15236       libsuff= shlibsuff= libmagic=32-bit;;
15237     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15238       libsuff=32 shlibsuff=N32 libmagic=N32;;
15239     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15240       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15241     *) libsuff= shlibsuff= libmagic=never-match;;
15242     esac
15243     ;;
15244   esac
15245   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15246   shlibpath_overrides_runpath=no
15247   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15248   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15249   hardcode_into_libs=yes
15250   ;;
15251
15252 # No shared lib support for Linux oldld, aout, or coff.
15253 linux*oldld* | linux*aout* | linux*coff*)
15254   dynamic_linker=no
15255   ;;
15256
15257 # This must be Linux ELF.
15258 linux* | k*bsd*-gnu)
15259   version_type=linux
15260   need_lib_prefix=no
15261   need_version=no
15262   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15263   soname_spec='${libname}${release}${shared_ext}$major'
15264   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15265   shlibpath_var=LD_LIBRARY_PATH
15266   shlibpath_overrides_runpath=no
15267   # This implies no fast_install, which is unacceptable.
15268   # Some rework will be needed to allow for fast_install
15269   # before this can be enabled.
15270   hardcode_into_libs=yes
15271
15272   # Append ld.so.conf contents to the search path
15273   if test -f /etc/ld.so.conf; then
15274     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15275     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15276   fi
15277
15278   # We used to test for /lib/ld.so.1 and disable shared libraries on
15279   # powerpc, because MkLinux only supported shared libraries with the
15280   # GNU dynamic linker.  Since this was broken with cross compilers,
15281   # most powerpc-linux boxes support dynamic linking these days and
15282   # people can always --disable-shared, the test was removed, and we
15283   # assume the GNU/Linux dynamic linker is in use.
15284   dynamic_linker='GNU/Linux ld.so'
15285   ;;
15286
15287 netbsdelf*-gnu)
15288   version_type=linux
15289   need_lib_prefix=no
15290   need_version=no
15291   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15292   soname_spec='${libname}${release}${shared_ext}$major'
15293   shlibpath_var=LD_LIBRARY_PATH
15294   shlibpath_overrides_runpath=no
15295   hardcode_into_libs=yes
15296   dynamic_linker='NetBSD ld.elf_so'
15297   ;;
15298
15299 netbsd*)
15300   version_type=sunos
15301   need_lib_prefix=no
15302   need_version=no
15303   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15304     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15305     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15306     dynamic_linker='NetBSD (a.out) ld.so'
15307   else
15308     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15309     soname_spec='${libname}${release}${shared_ext}$major'
15310     dynamic_linker='NetBSD ld.elf_so'
15311   fi
15312   shlibpath_var=LD_LIBRARY_PATH
15313   shlibpath_overrides_runpath=yes
15314   hardcode_into_libs=yes
15315   ;;
15316
15317 newsos6)
15318   version_type=linux
15319   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15320   shlibpath_var=LD_LIBRARY_PATH
15321   shlibpath_overrides_runpath=yes
15322   ;;
15323
15324 nto-qnx*)
15325   version_type=linux
15326   need_lib_prefix=no
15327   need_version=no
15328   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15329   soname_spec='${libname}${release}${shared_ext}$major'
15330   shlibpath_var=LD_LIBRARY_PATH
15331   shlibpath_overrides_runpath=yes
15332   ;;
15333
15334 openbsd*)
15335   version_type=sunos
15336   sys_lib_dlsearch_path_spec="/usr/lib"
15337   need_lib_prefix=no
15338   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15339   case $host_os in
15340     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15341     *)                         need_version=no  ;;
15342   esac
15343   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15344   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15345   shlibpath_var=LD_LIBRARY_PATH
15346   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15347     case $host_os in
15348       openbsd2.[89] | openbsd2.[89].*)
15349         shlibpath_overrides_runpath=no
15350         ;;
15351       *)
15352         shlibpath_overrides_runpath=yes
15353         ;;
15354       esac
15355   else
15356     shlibpath_overrides_runpath=yes
15357   fi
15358   ;;
15359
15360 os2*)
15361   libname_spec='$name'
15362   shrext_cmds=".dll"
15363   need_lib_prefix=no
15364   library_names_spec='$libname${shared_ext} $libname.a'
15365   dynamic_linker='OS/2 ld.exe'
15366   shlibpath_var=LIBPATH
15367   ;;
15368
15369 osf3* | osf4* | osf5*)
15370   version_type=osf
15371   need_lib_prefix=no
15372   need_version=no
15373   soname_spec='${libname}${release}${shared_ext}$major'
15374   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15375   shlibpath_var=LD_LIBRARY_PATH
15376   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15377   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15378   ;;
15379
15380 rdos*)
15381   dynamic_linker=no
15382   ;;
15383
15384 solaris*)
15385   version_type=linux
15386   need_lib_prefix=no
15387   need_version=no
15388   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15389   soname_spec='${libname}${release}${shared_ext}$major'
15390   shlibpath_var=LD_LIBRARY_PATH
15391   shlibpath_overrides_runpath=yes
15392   hardcode_into_libs=yes
15393   # ldd complains unless libraries are executable
15394   postinstall_cmds='chmod +x $lib'
15395   ;;
15396
15397 sunos4*)
15398   version_type=sunos
15399   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15400   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15401   shlibpath_var=LD_LIBRARY_PATH
15402   shlibpath_overrides_runpath=yes
15403   if test "$with_gnu_ld" = yes; then
15404     need_lib_prefix=no
15405   fi
15406   need_version=yes
15407   ;;
15408
15409 sysv4 | sysv4.3*)
15410   version_type=linux
15411   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15412   soname_spec='${libname}${release}${shared_ext}$major'
15413   shlibpath_var=LD_LIBRARY_PATH
15414   case $host_vendor in
15415     sni)
15416       shlibpath_overrides_runpath=no
15417       need_lib_prefix=no
15418       export_dynamic_flag_spec='${wl}-Blargedynsym'
15419       runpath_var=LD_RUN_PATH
15420       ;;
15421     siemens)
15422       need_lib_prefix=no
15423       ;;
15424     motorola)
15425       need_lib_prefix=no
15426       need_version=no
15427       shlibpath_overrides_runpath=no
15428       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15429       ;;
15430   esac
15431   ;;
15432
15433 sysv4*MP*)
15434   if test -d /usr/nec ;then
15435     version_type=linux
15436     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15437     soname_spec='$libname${shared_ext}.$major'
15438     shlibpath_var=LD_LIBRARY_PATH
15439   fi
15440   ;;
15441
15442 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15443   version_type=freebsd-elf
15444   need_lib_prefix=no
15445   need_version=no
15446   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15447   soname_spec='${libname}${release}${shared_ext}$major'
15448   shlibpath_var=LD_LIBRARY_PATH
15449   hardcode_into_libs=yes
15450   if test "$with_gnu_ld" = yes; then
15451     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15452     shlibpath_overrides_runpath=no
15453   else
15454     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15455     shlibpath_overrides_runpath=yes
15456     case $host_os in
15457       sco3.2v5*)
15458         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15459         ;;
15460     esac
15461   fi
15462   sys_lib_dlsearch_path_spec='/usr/lib'
15463   ;;
15464
15465 uts4*)
15466   version_type=linux
15467   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15468   soname_spec='${libname}${release}${shared_ext}$major'
15469   shlibpath_var=LD_LIBRARY_PATH
15470   ;;
15471
15472 *)
15473   dynamic_linker=no
15474   ;;
15475 esac
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15477 $as_echo "$dynamic_linker" >&6; }
15478 test "$dynamic_linker" = no && can_build_shared=no
15479
15480 if ${lt_cv_sys_lib_search_path_spec+:} false; then :
15481   $as_echo_n "(cached) " >&6
15482 else
15483   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
15484 fi
15485
15486 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15487 if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
15488   $as_echo_n "(cached) " >&6
15489 else
15490   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
15491 fi
15492
15493 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15494
15495 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15496 if test "$GCC" = yes; then
15497   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15498 fi
15499
15500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15501 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15502 hardcode_action_F77=
15503 if test -n "$hardcode_libdir_flag_spec_F77" || \
15504    test -n "$runpath_var_F77" || \
15505    test "X$hardcode_automatic_F77" = "Xyes" ; then
15506
15507   # We can hardcode non-existant directories.
15508   if test "$hardcode_direct_F77" != no &&
15509      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15510      # have to relink, otherwise we might link with an installed library
15511      # when we should be linking with a yet-to-be-installed one
15512      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15513      test "$hardcode_minus_L_F77" != no; then
15514     # Linking always hardcodes the temporary library directory.
15515     hardcode_action_F77=relink
15516   else
15517     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15518     hardcode_action_F77=immediate
15519   fi
15520 else
15521   # We cannot hardcode anything, or else we can only hardcode existing
15522   # directories.
15523   hardcode_action_F77=unsupported
15524 fi
15525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
15526 $as_echo "$hardcode_action_F77" >&6; }
15527
15528 if test "$hardcode_action_F77" = relink; then
15529   # Fast installation is not supported
15530   enable_fast_install=no
15531 elif test "$shlibpath_overrides_runpath" = yes ||
15532      test "$enable_shared" = no; then
15533   # Fast installation is not necessary
15534   enable_fast_install=needless
15535 fi
15536
15537
15538 # The else clause should only fire when bootstrapping the
15539 # libtool distribution, otherwise you forgot to ship ltmain.sh
15540 # with your package, and you will get complaints that there are
15541 # no rules to generate ltmain.sh.
15542 if test -f "$ltmain"; then
15543   # See if we are running on zsh, and set the options which allow our commands through
15544   # without removal of \ escapes.
15545   if test -n "${ZSH_VERSION+set}" ; then
15546     setopt NO_GLOB_SUBST
15547   fi
15548   # Now quote all the things that may contain metacharacters while being
15549   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15550   # variables and quote the copies for generation of the libtool script.
15551   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15552     SED SHELL STRIP \
15553     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15554     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15555     deplibs_check_method reload_flag reload_cmds need_locks \
15556     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15557     lt_cv_sys_global_symbol_to_c_name_address \
15558     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15559     old_postinstall_cmds old_postuninstall_cmds \
15560     compiler_F77 \
15561     CC_F77 \
15562     LD_F77 \
15563     lt_prog_compiler_wl_F77 \
15564     lt_prog_compiler_pic_F77 \
15565     lt_prog_compiler_static_F77 \
15566     lt_prog_compiler_no_builtin_flag_F77 \
15567     export_dynamic_flag_spec_F77 \
15568     thread_safe_flag_spec_F77 \
15569     whole_archive_flag_spec_F77 \
15570     enable_shared_with_static_runtimes_F77 \
15571     old_archive_cmds_F77 \
15572     old_archive_from_new_cmds_F77 \
15573     predep_objects_F77 \
15574     postdep_objects_F77 \
15575     predeps_F77 \
15576     postdeps_F77 \
15577     compiler_lib_search_path_F77 \
15578     compiler_lib_search_dirs_F77 \
15579     archive_cmds_F77 \
15580     archive_expsym_cmds_F77 \
15581     postinstall_cmds_F77 \
15582     postuninstall_cmds_F77 \
15583     old_archive_from_expsyms_cmds_F77 \
15584     allow_undefined_flag_F77 \
15585     no_undefined_flag_F77 \
15586     export_symbols_cmds_F77 \
15587     hardcode_libdir_flag_spec_F77 \
15588     hardcode_libdir_flag_spec_ld_F77 \
15589     hardcode_libdir_separator_F77 \
15590     hardcode_automatic_F77 \
15591     module_cmds_F77 \
15592     module_expsym_cmds_F77 \
15593     lt_cv_prog_compiler_c_o_F77 \
15594     fix_srcfile_path_F77 \
15595     exclude_expsyms_F77 \
15596     include_expsyms_F77; do
15597
15598     case $var in
15599     old_archive_cmds_F77 | \
15600     old_archive_from_new_cmds_F77 | \
15601     archive_cmds_F77 | \
15602     archive_expsym_cmds_F77 | \
15603     module_cmds_F77 | \
15604     module_expsym_cmds_F77 | \
15605     old_archive_from_expsyms_cmds_F77 | \
15606     export_symbols_cmds_F77 | \
15607     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15608     postinstall_cmds | postuninstall_cmds | \
15609     old_postinstall_cmds | old_postuninstall_cmds | \
15610     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15611       # Double-quote double-evaled strings.
15612       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15613       ;;
15614     *)
15615       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15616       ;;
15617     esac
15618   done
15619
15620   case $lt_echo in
15621   *'\$0 --fallback-echo"')
15622     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15623     ;;
15624   esac
15625
15626 cfgfile="$ofile"
15627
15628   cat <<__EOF__ >> "$cfgfile"
15629 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15630
15631 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15632
15633 # Shell to use when invoking shell scripts.
15634 SHELL=$lt_SHELL
15635
15636 # Whether or not to build shared libraries.
15637 build_libtool_libs=$enable_shared
15638
15639 # Whether or not to build static libraries.
15640 build_old_libs=$enable_static
15641
15642 # Whether or not to add -lc for building shared libraries.
15643 build_libtool_need_lc=$archive_cmds_need_lc_F77
15644
15645 # Whether or not to disallow shared libs when runtime libs are static
15646 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15647
15648 # Whether or not to optimize for fast installation.
15649 fast_install=$enable_fast_install
15650
15651 # The host system.
15652 host_alias=$host_alias
15653 host=$host
15654 host_os=$host_os
15655
15656 # The build system.
15657 build_alias=$build_alias
15658 build=$build
15659 build_os=$build_os
15660
15661 # An echo program that does not interpret backslashes.
15662 echo=$lt_echo
15663
15664 # The archiver.
15665 AR=$lt_AR
15666 AR_FLAGS=$lt_AR_FLAGS
15667
15668 # A C compiler.
15669 LTCC=$lt_LTCC
15670
15671 # LTCC compiler flags.
15672 LTCFLAGS=$lt_LTCFLAGS
15673
15674 # A language-specific compiler.
15675 CC=$lt_compiler_F77
15676
15677 # Is the compiler the GNU C compiler?
15678 with_gcc=$GCC_F77
15679
15680 # An ERE matcher.
15681 EGREP=$lt_EGREP
15682
15683 # The linker used to build libraries.
15684 LD=$lt_LD_F77
15685
15686 # Whether we need hard or soft links.
15687 LN_S=$lt_LN_S
15688
15689 # A BSD-compatible nm program.
15690 NM=$lt_NM
15691
15692 # A symbol stripping program
15693 STRIP=$lt_STRIP
15694
15695 # Used to examine libraries when file_magic_cmd begins "file"
15696 MAGIC_CMD=$MAGIC_CMD
15697
15698 # Used on cygwin: DLL creation program.
15699 DLLTOOL="$DLLTOOL"
15700
15701 # Used on cygwin: object dumper.
15702 OBJDUMP="$OBJDUMP"
15703
15704 # Used on cygwin: assembler.
15705 AS="$AS"
15706
15707 # The name of the directory that contains temporary libtool files.
15708 objdir=$objdir
15709
15710 # How to create reloadable object files.
15711 reload_flag=$lt_reload_flag
15712 reload_cmds=$lt_reload_cmds
15713
15714 # How to pass a linker flag through the compiler.
15715 wl=$lt_lt_prog_compiler_wl_F77
15716
15717 # Object file suffix (normally "o").
15718 objext="$ac_objext"
15719
15720 # Old archive suffix (normally "a").
15721 libext="$libext"
15722
15723 # Shared library suffix (normally ".so").
15724 shrext_cmds='$shrext_cmds'
15725
15726 # Executable file suffix (normally "").
15727 exeext="$exeext"
15728
15729 # Additional compiler flags for building library objects.
15730 pic_flag=$lt_lt_prog_compiler_pic_F77
15731 pic_mode=$pic_mode
15732
15733 # What is the maximum length of a command?
15734 max_cmd_len=$lt_cv_sys_max_cmd_len
15735
15736 # Does compiler simultaneously support -c and -o options?
15737 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15738
15739 # Must we lock files when doing compilation?
15740 need_locks=$lt_need_locks
15741
15742 # Do we need the lib prefix for modules?
15743 need_lib_prefix=$need_lib_prefix
15744
15745 # Do we need a version for libraries?
15746 need_version=$need_version
15747
15748 # Whether dlopen is supported.
15749 dlopen_support=$enable_dlopen
15750
15751 # Whether dlopen of programs is supported.
15752 dlopen_self=$enable_dlopen_self
15753
15754 # Whether dlopen of statically linked programs is supported.
15755 dlopen_self_static=$enable_dlopen_self_static
15756
15757 # Compiler flag to prevent dynamic linking.
15758 link_static_flag=$lt_lt_prog_compiler_static_F77
15759
15760 # Compiler flag to turn off builtin functions.
15761 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15762
15763 # Compiler flag to allow reflexive dlopens.
15764 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15765
15766 # Compiler flag to generate shared objects directly from archives.
15767 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15768
15769 # Compiler flag to generate thread-safe objects.
15770 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15771
15772 # Library versioning type.
15773 version_type=$version_type
15774
15775 # Format of library name prefix.
15776 libname_spec=$lt_libname_spec
15777
15778 # List of archive names.  First name is the real one, the rest are links.
15779 # The last name is the one that the linker finds with -lNAME.
15780 library_names_spec=$lt_library_names_spec
15781
15782 # The coded name of the library, if different from the real name.
15783 soname_spec=$lt_soname_spec
15784
15785 # Commands used to build and install an old-style archive.
15786 RANLIB=$lt_RANLIB
15787 old_archive_cmds=$lt_old_archive_cmds_F77
15788 old_postinstall_cmds=$lt_old_postinstall_cmds
15789 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15790
15791 # Create an old-style archive from a shared archive.
15792 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15793
15794 # Create a temporary old-style archive to link instead of a shared archive.
15795 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15796
15797 # Commands used to build and install a shared archive.
15798 archive_cmds=$lt_archive_cmds_F77
15799 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15800 postinstall_cmds=$lt_postinstall_cmds
15801 postuninstall_cmds=$lt_postuninstall_cmds
15802
15803 # Commands used to build a loadable module (assumed same as above if empty)
15804 module_cmds=$lt_module_cmds_F77
15805 module_expsym_cmds=$lt_module_expsym_cmds_F77
15806
15807 # Commands to strip libraries.
15808 old_striplib=$lt_old_striplib
15809 striplib=$lt_striplib
15810
15811 # Dependencies to place before the objects being linked to create a
15812 # shared library.
15813 predep_objects=$lt_predep_objects_F77
15814
15815 # Dependencies to place after the objects being linked to create a
15816 # shared library.
15817 postdep_objects=$lt_postdep_objects_F77
15818
15819 # Dependencies to place before the objects being linked to create a
15820 # shared library.
15821 predeps=$lt_predeps_F77
15822
15823 # Dependencies to place after the objects being linked to create a
15824 # shared library.
15825 postdeps=$lt_postdeps_F77
15826
15827 # The directories searched by this compiler when creating a shared
15828 # library
15829 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
15830
15831 # The library search path used internally by the compiler when linking
15832 # a shared library.
15833 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15834
15835 # Method to check whether dependent libraries are shared objects.
15836 deplibs_check_method=$lt_deplibs_check_method
15837
15838 # Command to use when deplibs_check_method == file_magic.
15839 file_magic_cmd=$lt_file_magic_cmd
15840
15841 # Flag that allows shared libraries with undefined symbols to be built.
15842 allow_undefined_flag=$lt_allow_undefined_flag_F77
15843
15844 # Flag that forces no undefined symbols.
15845 no_undefined_flag=$lt_no_undefined_flag_F77
15846
15847 # Commands used to finish a libtool library installation in a directory.
15848 finish_cmds=$lt_finish_cmds
15849
15850 # Same as above, but a single script fragment to be evaled but not shown.
15851 finish_eval=$lt_finish_eval
15852
15853 # Take the output of nm and produce a listing of raw symbols and C names.
15854 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15855
15856 # Transform the output of nm in a proper C declaration
15857 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15858
15859 # Transform the output of nm in a C name address pair
15860 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15861
15862 # This is the shared library runtime path variable.
15863 runpath_var=$runpath_var
15864
15865 # This is the shared library path variable.
15866 shlibpath_var=$shlibpath_var
15867
15868 # Is shlibpath searched before the hard-coded library search path?
15869 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15870
15871 # How to hardcode a shared library path into an executable.
15872 hardcode_action=$hardcode_action_F77
15873
15874 # Whether we should hardcode library paths into libraries.
15875 hardcode_into_libs=$hardcode_into_libs
15876
15877 # Flag to hardcode \$libdir into a binary during linking.
15878 # This must work even if \$libdir does not exist.
15879 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15880
15881 # If ld is used when linking, flag to hardcode \$libdir into
15882 # a binary during linking. This must work even if \$libdir does
15883 # not exist.
15884 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15885
15886 # Whether we need a single -rpath flag with a separated argument.
15887 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15888
15889 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15890 # resulting binary.
15891 hardcode_direct=$hardcode_direct_F77
15892
15893 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15894 # resulting binary.
15895 hardcode_minus_L=$hardcode_minus_L_F77
15896
15897 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15898 # the resulting binary.
15899 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15900
15901 # Set to yes if building a shared library automatically hardcodes DIR into the library
15902 # and all subsequent libraries and executables linked against it.
15903 hardcode_automatic=$hardcode_automatic_F77
15904
15905 # Variables whose values should be saved in libtool wrapper scripts and
15906 # restored at relink time.
15907 variables_saved_for_relink="$variables_saved_for_relink"
15908
15909 # Whether libtool must link a program against all its dependency libraries.
15910 link_all_deplibs=$link_all_deplibs_F77
15911
15912 # Compile-time system search path for libraries
15913 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15914
15915 # Run-time system search path for libraries
15916 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15917
15918 # Fix the shell variable \$srcfile for the compiler.
15919 fix_srcfile_path=$lt_fix_srcfile_path
15920
15921 # Set to yes if exported symbols are required.
15922 always_export_symbols=$always_export_symbols_F77
15923
15924 # The commands to list exported symbols.
15925 export_symbols_cmds=$lt_export_symbols_cmds_F77
15926
15927 # The commands to extract the exported symbol list from a shared archive.
15928 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15929
15930 # Symbols that should not be listed in the preloaded symbols.
15931 exclude_expsyms=$lt_exclude_expsyms_F77
15932
15933 # Symbols that must always be exported.
15934 include_expsyms=$lt_include_expsyms_F77
15935
15936 # ### END LIBTOOL TAG CONFIG: $tagname
15937
15938 __EOF__
15939
15940
15941 else
15942   # If there is no Makefile yet, we rely on a make rule to execute
15943   # `config.status --recheck' to rerun these tests and create the
15944   # libtool script then.
15945   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15946   if test -f "$ltmain_in"; then
15947     test -f Makefile && make "$ltmain"
15948   fi
15949 fi
15950
15951
15952 ac_ext=c
15953 ac_cpp='$CPP $CPPFLAGS'
15954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15957
15958 CC="$lt_save_CC"
15959
15960         else
15961           tagname=""
15962         fi
15963         ;;
15964
15965       GCJ)
15966         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15967
15968
15969 # Source file extension for Java test sources.
15970 ac_ext=java
15971
15972 # Object file extension for compiled Java test sources.
15973 objext=o
15974 objext_GCJ=$objext
15975
15976 # Code to be used in simple compile tests
15977 lt_simple_compile_test_code="class foo {}"
15978
15979 # Code to be used in simple link tests
15980 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
15981
15982 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15983
15984 # If no C compiler was specified, use CC.
15985 LTCC=${LTCC-"$CC"}
15986
15987 # If no C compiler flags were specified, use CFLAGS.
15988 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15989
15990 # Allow CC to be a program name with arguments.
15991 compiler=$CC
15992
15993
15994 # save warnings/boilerplate of simple test code
15995 ac_outfile=conftest.$ac_objext
15996 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15997 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15998 _lt_compiler_boilerplate=`cat conftest.err`
15999 $rm conftest*
16000
16001 ac_outfile=conftest.$ac_objext
16002 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16003 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16004 _lt_linker_boilerplate=`cat conftest.err`
16005 $rm -r conftest*
16006
16007
16008 # Allow CC to be a program name with arguments.
16009 lt_save_CC="$CC"
16010 CC=${GCJ-"gcj"}
16011 compiler=$CC
16012 compiler_GCJ=$CC
16013 for cc_temp in $compiler""; do
16014   case $cc_temp in
16015     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16016     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16017     \-*) ;;
16018     *) break;;
16019   esac
16020 done
16021 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16022
16023
16024 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16025 archive_cmds_need_lc_GCJ=no
16026
16027 old_archive_cmds_GCJ=$old_archive_cmds
16028
16029
16030 lt_prog_compiler_no_builtin_flag_GCJ=
16031
16032 if test "$GCC" = yes; then
16033   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16034
16035
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16037 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16038 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16039   $as_echo_n "(cached) " >&6
16040 else
16041   lt_cv_prog_compiler_rtti_exceptions=no
16042   ac_outfile=conftest.$ac_objext
16043    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16044    lt_compiler_flag="-fno-rtti -fno-exceptions"
16045    # Insert the option either (1) after the last *FLAGS variable, or
16046    # (2) before a word containing "conftest.", or (3) at the end.
16047    # Note that $ac_compile itself does not contain backslashes and begins
16048    # with a dollar sign (not a hyphen), so the echo should work correctly.
16049    # The option is referenced via a variable to avoid confusing sed.
16050    lt_compile=`echo "$ac_compile" | $SED \
16051    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16052    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16053    -e 's:$: $lt_compiler_flag:'`
16054    (eval echo "\"\$as_me:16054: $lt_compile\"" >&5)
16055    (eval "$lt_compile" 2>conftest.err)
16056    ac_status=$?
16057    cat conftest.err >&5
16058    echo "$as_me:16058: \$? = $ac_status" >&5
16059    if (exit $ac_status) && test -s "$ac_outfile"; then
16060      # The compiler can only warn and ignore the option if not recognized
16061      # So say no if there are warnings other than the usual output.
16062      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16063      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16064      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16065        lt_cv_prog_compiler_rtti_exceptions=yes
16066      fi
16067    fi
16068    $rm conftest*
16069
16070 fi
16071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16072 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16073
16074 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16075     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16076 else
16077     :
16078 fi
16079
16080 fi
16081
16082 lt_prog_compiler_wl_GCJ=
16083 lt_prog_compiler_pic_GCJ=
16084 lt_prog_compiler_static_GCJ=
16085
16086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16087 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16088
16089   if test "$GCC" = yes; then
16090     lt_prog_compiler_wl_GCJ='-Wl,'
16091     lt_prog_compiler_static_GCJ='-static'
16092
16093     case $host_os in
16094       aix*)
16095       # All AIX code is PIC.
16096       if test "$host_cpu" = ia64; then
16097         # AIX 5 now supports IA64 processor
16098         lt_prog_compiler_static_GCJ='-Bstatic'
16099       fi
16100       ;;
16101
16102     amigaos*)
16103       # FIXME: we need at least 68020 code to build shared libraries, but
16104       # adding the `-m68020' flag to GCC prevents building anything better,
16105       # like `-m68040'.
16106       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16107       ;;
16108
16109     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16110       # PIC is the default for these OSes.
16111       ;;
16112
16113     mingw* | cygwin* | pw32* | os2*)
16114       # This hack is so that the source file can tell whether it is being
16115       # built for inclusion in a dll (and should export symbols for example).
16116       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16117       # (--disable-auto-import) libraries
16118
16119       ;;
16120
16121     darwin* | rhapsody*)
16122       # PIC is the default on this platform
16123       # Common symbols not allowed in MH_DYLIB files
16124       lt_prog_compiler_pic_GCJ='-fno-common'
16125       ;;
16126
16127     interix[3-9]*)
16128       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16129       # Instead, we relocate shared libraries at runtime.
16130       ;;
16131
16132     msdosdjgpp*)
16133       # Just because we use GCC doesn't mean we suddenly get shared libraries
16134       # on systems that don't support them.
16135       lt_prog_compiler_can_build_shared_GCJ=no
16136       enable_shared=no
16137       ;;
16138
16139     sysv4*MP*)
16140       if test -d /usr/nec; then
16141         lt_prog_compiler_pic_GCJ=-Kconform_pic
16142       fi
16143       ;;
16144
16145     hpux*)
16146       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16147       # not for PA HP-UX.
16148       case $host_cpu in
16149       hppa*64*|ia64*)
16150         # +Z the default
16151         ;;
16152       *)
16153         lt_prog_compiler_pic_GCJ='-fPIC'
16154         ;;
16155       esac
16156       ;;
16157
16158     *)
16159       lt_prog_compiler_pic_GCJ='-fPIC'
16160       ;;
16161     esac
16162   else
16163     # PORTME Check for flag to pass linker flags through the system compiler.
16164     case $host_os in
16165     aix*)
16166       lt_prog_compiler_wl_GCJ='-Wl,'
16167       if test "$host_cpu" = ia64; then
16168         # AIX 5 now supports IA64 processor
16169         lt_prog_compiler_static_GCJ='-Bstatic'
16170       else
16171         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16172       fi
16173       ;;
16174       darwin*)
16175         # PIC is the default on this platform
16176         # Common symbols not allowed in MH_DYLIB files
16177        case $cc_basename in
16178          xlc*)
16179          lt_prog_compiler_pic_GCJ='-qnocommon'
16180          lt_prog_compiler_wl_GCJ='-Wl,'
16181          ;;
16182        esac
16183        ;;
16184
16185     mingw* | cygwin* | pw32* | os2*)
16186       # This hack is so that the source file can tell whether it is being
16187       # built for inclusion in a dll (and should export symbols for example).
16188
16189       ;;
16190
16191     hpux9* | hpux10* | hpux11*)
16192       lt_prog_compiler_wl_GCJ='-Wl,'
16193       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16194       # not for PA HP-UX.
16195       case $host_cpu in
16196       hppa*64*|ia64*)
16197         # +Z the default
16198         ;;
16199       *)
16200         lt_prog_compiler_pic_GCJ='+Z'
16201         ;;
16202       esac
16203       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16204       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16205       ;;
16206
16207     irix5* | irix6* | nonstopux*)
16208       lt_prog_compiler_wl_GCJ='-Wl,'
16209       # PIC (with -KPIC) is the default.
16210       lt_prog_compiler_static_GCJ='-non_shared'
16211       ;;
16212
16213     newsos6)
16214       lt_prog_compiler_pic_GCJ='-KPIC'
16215       lt_prog_compiler_static_GCJ='-Bstatic'
16216       ;;
16217
16218     linux* | k*bsd*-gnu)
16219       case $cc_basename in
16220       icc* | ecc*)
16221         lt_prog_compiler_wl_GCJ='-Wl,'
16222         lt_prog_compiler_pic_GCJ='-KPIC'
16223         lt_prog_compiler_static_GCJ='-static'
16224         ;;
16225       pgcc* | pgf77* | pgf90* | pgf95*)
16226         # Portland Group compilers (*not* the Pentium gcc compiler,
16227         # which looks to be a dead project)
16228         lt_prog_compiler_wl_GCJ='-Wl,'
16229         lt_prog_compiler_pic_GCJ='-fpic'
16230         lt_prog_compiler_static_GCJ='-Bstatic'
16231         ;;
16232       ccc*)
16233         lt_prog_compiler_wl_GCJ='-Wl,'
16234         # All Alpha code is PIC.
16235         lt_prog_compiler_static_GCJ='-non_shared'
16236         ;;
16237       *)
16238         case `$CC -V 2>&1 | sed 5q` in
16239         *Sun\ C*)
16240           # Sun C 5.9
16241           lt_prog_compiler_pic_GCJ='-KPIC'
16242           lt_prog_compiler_static_GCJ='-Bstatic'
16243           lt_prog_compiler_wl_GCJ='-Wl,'
16244           ;;
16245         *Sun\ F*)
16246           # Sun Fortran 8.3 passes all unrecognized flags to the linker
16247           lt_prog_compiler_pic_GCJ='-KPIC'
16248           lt_prog_compiler_static_GCJ='-Bstatic'
16249           lt_prog_compiler_wl_GCJ=''
16250           ;;
16251         esac
16252         ;;
16253       esac
16254       ;;
16255
16256     osf3* | osf4* | osf5*)
16257       lt_prog_compiler_wl_GCJ='-Wl,'
16258       # All OSF/1 code is PIC.
16259       lt_prog_compiler_static_GCJ='-non_shared'
16260       ;;
16261
16262     rdos*)
16263       lt_prog_compiler_static_GCJ='-non_shared'
16264       ;;
16265
16266     solaris*)
16267       lt_prog_compiler_pic_GCJ='-KPIC'
16268       lt_prog_compiler_static_GCJ='-Bstatic'
16269       case $cc_basename in
16270       f77* | f90* | f95*)
16271         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16272       *)
16273         lt_prog_compiler_wl_GCJ='-Wl,';;
16274       esac
16275       ;;
16276
16277     sunos4*)
16278       lt_prog_compiler_wl_GCJ='-Qoption ld '
16279       lt_prog_compiler_pic_GCJ='-PIC'
16280       lt_prog_compiler_static_GCJ='-Bstatic'
16281       ;;
16282
16283     sysv4 | sysv4.2uw2* | sysv4.3*)
16284       lt_prog_compiler_wl_GCJ='-Wl,'
16285       lt_prog_compiler_pic_GCJ='-KPIC'
16286       lt_prog_compiler_static_GCJ='-Bstatic'
16287       ;;
16288
16289     sysv4*MP*)
16290       if test -d /usr/nec ;then
16291         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16292         lt_prog_compiler_static_GCJ='-Bstatic'
16293       fi
16294       ;;
16295
16296     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16297       lt_prog_compiler_wl_GCJ='-Wl,'
16298       lt_prog_compiler_pic_GCJ='-KPIC'
16299       lt_prog_compiler_static_GCJ='-Bstatic'
16300       ;;
16301
16302     unicos*)
16303       lt_prog_compiler_wl_GCJ='-Wl,'
16304       lt_prog_compiler_can_build_shared_GCJ=no
16305       ;;
16306
16307     uts4*)
16308       lt_prog_compiler_pic_GCJ='-pic'
16309       lt_prog_compiler_static_GCJ='-Bstatic'
16310       ;;
16311
16312     *)
16313       lt_prog_compiler_can_build_shared_GCJ=no
16314       ;;
16315     esac
16316   fi
16317
16318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
16319 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
16320
16321 #
16322 # Check to make sure the PIC flag actually works.
16323 #
16324 if test -n "$lt_prog_compiler_pic_GCJ"; then
16325
16326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16327 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
16328 if ${lt_cv_prog_compiler_pic_works_GCJ+:} false; then :
16329   $as_echo_n "(cached) " >&6
16330 else
16331   lt_cv_prog_compiler_pic_works_GCJ=no
16332   ac_outfile=conftest.$ac_objext
16333    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16334    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16335    # Insert the option either (1) after the last *FLAGS variable, or
16336    # (2) before a word containing "conftest.", or (3) at the end.
16337    # Note that $ac_compile itself does not contain backslashes and begins
16338    # with a dollar sign (not a hyphen), so the echo should work correctly.
16339    # The option is referenced via a variable to avoid confusing sed.
16340    lt_compile=`echo "$ac_compile" | $SED \
16341    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16342    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16343    -e 's:$: $lt_compiler_flag:'`
16344    (eval echo "\"\$as_me:16344: $lt_compile\"" >&5)
16345    (eval "$lt_compile" 2>conftest.err)
16346    ac_status=$?
16347    cat conftest.err >&5
16348    echo "$as_me:16348: \$? = $ac_status" >&5
16349    if (exit $ac_status) && test -s "$ac_outfile"; then
16350      # The compiler can only warn and ignore the option if not recognized
16351      # So say no if there are warnings other than the usual output.
16352      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16353      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16354      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16355        lt_cv_prog_compiler_pic_works_GCJ=yes
16356      fi
16357    fi
16358    $rm conftest*
16359
16360 fi
16361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
16362 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
16363
16364 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
16365     case $lt_prog_compiler_pic_GCJ in
16366      "" | " "*) ;;
16367      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16368      esac
16369 else
16370     lt_prog_compiler_pic_GCJ=
16371      lt_prog_compiler_can_build_shared_GCJ=no
16372 fi
16373
16374 fi
16375 case $host_os in
16376   # For platforms which do not support PIC, -DPIC is meaningless:
16377   *djgpp*)
16378     lt_prog_compiler_pic_GCJ=
16379     ;;
16380   *)
16381     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16382     ;;
16383 esac
16384
16385 #
16386 # Check to make sure the static flag actually works.
16387 #
16388 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16390 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16391 if ${lt_cv_prog_compiler_static_works_GCJ+:} false; then :
16392   $as_echo_n "(cached) " >&6
16393 else
16394   lt_cv_prog_compiler_static_works_GCJ=no
16395    save_LDFLAGS="$LDFLAGS"
16396    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16397    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16398    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16399      # The linker can only warn and ignore the option if not recognized
16400      # So say no if there are warnings
16401      if test -s conftest.err; then
16402        # Append any errors to the config.log.
16403        cat conftest.err 1>&5
16404        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16405        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16406        if diff conftest.exp conftest.er2 >/dev/null; then
16407          lt_cv_prog_compiler_static_works_GCJ=yes
16408        fi
16409      else
16410        lt_cv_prog_compiler_static_works_GCJ=yes
16411      fi
16412    fi
16413    $rm -r conftest*
16414    LDFLAGS="$save_LDFLAGS"
16415
16416 fi
16417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
16418 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
16419
16420 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
16421     :
16422 else
16423     lt_prog_compiler_static_GCJ=
16424 fi
16425
16426
16427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16428 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16429 if ${lt_cv_prog_compiler_c_o_GCJ+:} false; then :
16430   $as_echo_n "(cached) " >&6
16431 else
16432   lt_cv_prog_compiler_c_o_GCJ=no
16433    $rm -r conftest 2>/dev/null
16434    mkdir conftest
16435    cd conftest
16436    mkdir out
16437    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16438
16439    lt_compiler_flag="-o out/conftest2.$ac_objext"
16440    # Insert the option either (1) after the last *FLAGS variable, or
16441    # (2) before a word containing "conftest.", or (3) at the end.
16442    # Note that $ac_compile itself does not contain backslashes and begins
16443    # with a dollar sign (not a hyphen), so the echo should work correctly.
16444    lt_compile=`echo "$ac_compile" | $SED \
16445    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16446    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16447    -e 's:$: $lt_compiler_flag:'`
16448    (eval echo "\"\$as_me:16448: $lt_compile\"" >&5)
16449    (eval "$lt_compile" 2>out/conftest.err)
16450    ac_status=$?
16451    cat out/conftest.err >&5
16452    echo "$as_me:16452: \$? = $ac_status" >&5
16453    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16454    then
16455      # The compiler can only warn and ignore the option if not recognized
16456      # So say no if there are warnings
16457      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16458      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16459      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16460        lt_cv_prog_compiler_c_o_GCJ=yes
16461      fi
16462    fi
16463    chmod u+w . 2>&5
16464    $rm conftest*
16465    # SGI C++ compiler will create directory out/ii_files/ for
16466    # template instantiation
16467    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16468    $rm out/* && rmdir out
16469    cd ..
16470    rmdir conftest
16471    $rm conftest*
16472
16473 fi
16474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16475 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16476
16477
16478 hard_links="nottested"
16479 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16480   # do not overwrite the value of need_locks provided by the user
16481   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16482 $as_echo_n "checking if we can lock with hard links... " >&6; }
16483   hard_links=yes
16484   $rm conftest*
16485   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16486   touch conftest.a
16487   ln conftest.a conftest.b 2>&5 || hard_links=no
16488   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16490 $as_echo "$hard_links" >&6; }
16491   if test "$hard_links" = no; then
16492     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16493 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16494     need_locks=warn
16495   fi
16496 else
16497   need_locks=no
16498 fi
16499
16500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16501 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16502
16503   runpath_var=
16504   allow_undefined_flag_GCJ=
16505   enable_shared_with_static_runtimes_GCJ=no
16506   archive_cmds_GCJ=
16507   archive_expsym_cmds_GCJ=
16508   old_archive_From_new_cmds_GCJ=
16509   old_archive_from_expsyms_cmds_GCJ=
16510   export_dynamic_flag_spec_GCJ=
16511   whole_archive_flag_spec_GCJ=
16512   thread_safe_flag_spec_GCJ=
16513   hardcode_libdir_flag_spec_GCJ=
16514   hardcode_libdir_flag_spec_ld_GCJ=
16515   hardcode_libdir_separator_GCJ=
16516   hardcode_direct_GCJ=no
16517   hardcode_minus_L_GCJ=no
16518   hardcode_shlibpath_var_GCJ=unsupported
16519   link_all_deplibs_GCJ=unknown
16520   hardcode_automatic_GCJ=no
16521   module_cmds_GCJ=
16522   module_expsym_cmds_GCJ=
16523   always_export_symbols_GCJ=no
16524   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16525   # include_expsyms should be a list of space-separated symbols to be *always*
16526   # included in the symbol list
16527   include_expsyms_GCJ=
16528   # exclude_expsyms can be an extended regexp of symbols to exclude
16529   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16530   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16531   # as well as any symbol that contains `d'.
16532   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16533   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16534   # platforms (ab)use it in PIC code, but their linkers get confused if
16535   # the symbol is explicitly referenced.  Since portable code cannot
16536   # rely on this symbol name, it's probably fine to never include it in
16537   # preloaded symbol tables.
16538   # Exclude shared library initialization/finalization symbols.
16539   extract_expsyms_cmds=
16540   # Just being paranoid about ensuring that cc_basename is set.
16541   for cc_temp in $compiler""; do
16542   case $cc_temp in
16543     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16544     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16545     \-*) ;;
16546     *) break;;
16547   esac
16548 done
16549 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16550
16551   case $host_os in
16552   cygwin* | mingw* | pw32*)
16553     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16554     # When not using gcc, we currently assume that we are using
16555     # Microsoft Visual C++.
16556     if test "$GCC" != yes; then
16557       with_gnu_ld=no
16558     fi
16559     ;;
16560   interix*)
16561     # we just hope/assume this is gcc and not c89 (= MSVC++)
16562     with_gnu_ld=yes
16563     ;;
16564   openbsd*)
16565     with_gnu_ld=no
16566     ;;
16567   esac
16568
16569   ld_shlibs_GCJ=yes
16570   if test "$with_gnu_ld" = yes; then
16571     # If archive_cmds runs LD, not CC, wlarc should be empty
16572     wlarc='${wl}'
16573
16574     # Set some defaults for GNU ld with shared library support. These
16575     # are reset later if shared libraries are not supported. Putting them
16576     # here allows them to be overridden if necessary.
16577     runpath_var=LD_RUN_PATH
16578     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16579     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16580     # ancient GNU ld didn't support --whole-archive et. al.
16581     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16582         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16583       else
16584         whole_archive_flag_spec_GCJ=
16585     fi
16586     supports_anon_versioning=no
16587     case `$LD -v 2>/dev/null` in
16588       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16589       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16590       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16591       *\ 2.11.*) ;; # other 2.11 versions
16592       *) supports_anon_versioning=yes ;;
16593     esac
16594
16595     # See if GNU ld supports shared libraries.
16596     case $host_os in
16597     aix[3-9]*)
16598       # On AIX/PPC, the GNU linker is very broken
16599       if test "$host_cpu" != ia64; then
16600         ld_shlibs_GCJ=no
16601         cat <<EOF 1>&2
16602
16603 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16604 *** to be unable to reliably create shared libraries on AIX.
16605 *** Therefore, libtool is disabling shared libraries support.  If you
16606 *** really care for shared libraries, you may want to modify your PATH
16607 *** so that a non-GNU linker is found, and then restart.
16608
16609 EOF
16610       fi
16611       ;;
16612
16613     amigaos*)
16614       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16615       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16616       hardcode_minus_L_GCJ=yes
16617
16618       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16619       # that the semantics of dynamic libraries on AmigaOS, at least up
16620       # to version 4, is to share data among multiple programs linked
16621       # with the same dynamic library.  Since this doesn't match the
16622       # behavior of shared libraries on other platforms, we can't use
16623       # them.
16624       ld_shlibs_GCJ=no
16625       ;;
16626
16627     beos*)
16628       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16629         allow_undefined_flag_GCJ=unsupported
16630         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16631         # support --undefined.  This deserves some investigation.  FIXME
16632         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16633       else
16634         ld_shlibs_GCJ=no
16635       fi
16636       ;;
16637
16638     cygwin* | mingw* | pw32*)
16639       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16640       # as there is no search path for DLLs.
16641       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16642       allow_undefined_flag_GCJ=unsupported
16643       always_export_symbols_GCJ=no
16644       enable_shared_with_static_runtimes_GCJ=yes
16645       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16646
16647       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16648         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16649         # If the export-symbols file already is a .def file (1st line
16650         # is EXPORTS), use it as is; otherwise, prepend...
16651         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16652           cp $export_symbols $output_objdir/$soname.def;
16653         else
16654           echo EXPORTS > $output_objdir/$soname.def;
16655           cat $export_symbols >> $output_objdir/$soname.def;
16656         fi~
16657         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16658       else
16659         ld_shlibs_GCJ=no
16660       fi
16661       ;;
16662
16663     interix[3-9]*)
16664       hardcode_direct_GCJ=no
16665       hardcode_shlibpath_var_GCJ=no
16666       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16667       export_dynamic_flag_spec_GCJ='${wl}-E'
16668       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16669       # Instead, shared libraries are loaded at an image base (0x10000000 by
16670       # default) and relocated if they conflict, which is a slow very memory
16671       # consuming and fragmenting process.  To avoid this, we pick a random,
16672       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16673       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16674       archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16675       archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16676       ;;
16677
16678     gnu* | linux* | k*bsd*-gnu)
16679       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16680         tmp_addflag=
16681         case $cc_basename,$host_cpu in
16682         pgcc*)                          # Portland Group C compiler
16683           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16684           tmp_addflag=' $pic_flag'
16685           ;;
16686         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16687           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16688           tmp_addflag=' $pic_flag -Mnomain' ;;
16689         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16690           tmp_addflag=' -i_dynamic' ;;
16691         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16692           tmp_addflag=' -i_dynamic -nofor_main' ;;
16693         ifc* | ifort*)                  # Intel Fortran compiler
16694           tmp_addflag=' -nofor_main' ;;
16695         esac
16696         case `$CC -V 2>&1 | sed 5q` in
16697         *Sun\ C*)                       # Sun C 5.9
16698           whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16699           tmp_sharedflag='-G' ;;
16700         *Sun\ F*)                       # Sun Fortran 8.3
16701           tmp_sharedflag='-G' ;;
16702         *)
16703           tmp_sharedflag='-shared' ;;
16704         esac
16705         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16706
16707         if test $supports_anon_versioning = yes; then
16708           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16709   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16710   $echo "local: *; };" >> $output_objdir/$libname.ver~
16711           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16712         fi
16713         link_all_deplibs_GCJ=no
16714       else
16715         ld_shlibs_GCJ=no
16716       fi
16717       ;;
16718
16719     netbsd* | netbsdelf*-gnu)
16720       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16721         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16722         wlarc=
16723       else
16724         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16725         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16726       fi
16727       ;;
16728
16729     solaris*)
16730       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16731         ld_shlibs_GCJ=no
16732         cat <<EOF 1>&2
16733
16734 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16735 *** create shared libraries on Solaris systems.  Therefore, libtool
16736 *** is disabling shared libraries support.  We urge you to upgrade GNU
16737 *** binutils to release 2.9.1 or newer.  Another option is to modify
16738 *** your PATH or compiler configuration so that the native linker is
16739 *** used, and then restart.
16740
16741 EOF
16742       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16743         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16744         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16745       else
16746         ld_shlibs_GCJ=no
16747       fi
16748       ;;
16749
16750     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16751       case `$LD -v 2>&1` in
16752         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16753         ld_shlibs_GCJ=no
16754         cat <<_LT_EOF 1>&2
16755
16756 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16757 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16758 *** is disabling shared libraries support.  We urge you to upgrade GNU
16759 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16760 *** your PATH or compiler configuration so that the native linker is
16761 *** used, and then restart.
16762
16763 _LT_EOF
16764         ;;
16765         *)
16766           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16767             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16768             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16769             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16770           else
16771             ld_shlibs_GCJ=no
16772           fi
16773         ;;
16774       esac
16775       ;;
16776
16777     sunos4*)
16778       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16779       wlarc=
16780       hardcode_direct_GCJ=yes
16781       hardcode_shlibpath_var_GCJ=no
16782       ;;
16783
16784     *)
16785       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16786         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16787         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16788       else
16789         ld_shlibs_GCJ=no
16790       fi
16791       ;;
16792     esac
16793
16794     if test "$ld_shlibs_GCJ" = no; then
16795       runpath_var=
16796       hardcode_libdir_flag_spec_GCJ=
16797       export_dynamic_flag_spec_GCJ=
16798       whole_archive_flag_spec_GCJ=
16799     fi
16800   else
16801     # PORTME fill in a description of your system's linker (not GNU ld)
16802     case $host_os in
16803     aix3*)
16804       allow_undefined_flag_GCJ=unsupported
16805       always_export_symbols_GCJ=yes
16806       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16807       # Note: this linker hardcodes the directories in LIBPATH if there
16808       # are no directories specified by -L.
16809       hardcode_minus_L_GCJ=yes
16810       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16811         # Neither direct hardcoding nor static linking is supported with a
16812         # broken collect2.
16813         hardcode_direct_GCJ=unsupported
16814       fi
16815       ;;
16816
16817     aix[4-9]*)
16818       if test "$host_cpu" = ia64; then
16819         # On IA64, the linker does run time linking by default, so we don't
16820         # have to do anything special.
16821         aix_use_runtimelinking=no
16822         exp_sym_flag='-Bexport'
16823         no_entry_flag=""
16824       else
16825         # If we're using GNU nm, then we don't want the "-C" option.
16826         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16827         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16828           export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16829         else
16830           export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16831         fi
16832         aix_use_runtimelinking=no
16833
16834         # Test if we are trying to use run time linking or normal
16835         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16836         # need to do runtime linking.
16837         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16838           for ld_flag in $LDFLAGS; do
16839           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16840             aix_use_runtimelinking=yes
16841             break
16842           fi
16843           done
16844           ;;
16845         esac
16846
16847         exp_sym_flag='-bexport'
16848         no_entry_flag='-bnoentry'
16849       fi
16850
16851       # When large executables or shared objects are built, AIX ld can
16852       # have problems creating the table of contents.  If linking a library
16853       # or program results in "error TOC overflow" add -mminimal-toc to
16854       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16855       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16856
16857       archive_cmds_GCJ=''
16858       hardcode_direct_GCJ=yes
16859       hardcode_libdir_separator_GCJ=':'
16860       link_all_deplibs_GCJ=yes
16861
16862       if test "$GCC" = yes; then
16863         case $host_os in aix4.[012]|aix4.[012].*)
16864         # We only want to do this on AIX 4.2 and lower, the check
16865         # below for broken collect2 doesn't work under 4.3+
16866           collect2name=`${CC} -print-prog-name=collect2`
16867           if test -f "$collect2name" && \
16868            strings "$collect2name" | grep resolve_lib_name >/dev/null
16869           then
16870           # We have reworked collect2
16871           :
16872           else
16873           # We have old collect2
16874           hardcode_direct_GCJ=unsupported
16875           # It fails to find uninstalled libraries when the uninstalled
16876           # path is not listed in the libpath.  Setting hardcode_minus_L
16877           # to unsupported forces relinking
16878           hardcode_minus_L_GCJ=yes
16879           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16880           hardcode_libdir_separator_GCJ=
16881           fi
16882           ;;
16883         esac
16884         shared_flag='-shared'
16885         if test "$aix_use_runtimelinking" = yes; then
16886           shared_flag="$shared_flag "'${wl}-G'
16887         fi
16888       else
16889         # not using gcc
16890         if test "$host_cpu" = ia64; then
16891         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16892         # chokes on -Wl,-G. The following line is correct:
16893           shared_flag='-G'
16894         else
16895           if test "$aix_use_runtimelinking" = yes; then
16896             shared_flag='${wl}-G'
16897           else
16898             shared_flag='${wl}-bM:SRE'
16899           fi
16900         fi
16901       fi
16902
16903       # It seems that -bexpall does not export symbols beginning with
16904       # underscore (_), so it is better to generate a list of symbols to export.
16905       always_export_symbols_GCJ=yes
16906       if test "$aix_use_runtimelinking" = yes; then
16907         # Warning - without using the other runtime loading flags (-brtl),
16908         # -berok will link without error, but may produce a broken library.
16909         allow_undefined_flag_GCJ='-berok'
16910        # Determine the default libpath from the value encoded in an empty executable.
16911        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16912 /* end confdefs.h.  */
16913
16914 int
16915 main ()
16916 {
16917
16918   ;
16919   return 0;
16920 }
16921 _ACEOF
16922 if ac_fn_c_try_link "$LINENO"; then :
16923
16924 lt_aix_libpath_sed='
16925     /Import File Strings/,/^$/ {
16926         /^0/ {
16927             s/^0  *\(.*\)$/\1/
16928             p
16929         }
16930     }'
16931 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16932 # Check for a 64-bit object if we didn't find anything.
16933 if test -z "$aix_libpath"; then
16934   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16935 fi
16936 fi
16937 rm -f core conftest.err conftest.$ac_objext \
16938     conftest$ac_exeext conftest.$ac_ext
16939 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16940
16941        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16942         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16943        else
16944         if test "$host_cpu" = ia64; then
16945           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16946           allow_undefined_flag_GCJ="-z nodefs"
16947           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16948         else
16949          # Determine the default libpath from the value encoded in an empty executable.
16950          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16951 /* end confdefs.h.  */
16952
16953 int
16954 main ()
16955 {
16956
16957   ;
16958   return 0;
16959 }
16960 _ACEOF
16961 if ac_fn_c_try_link "$LINENO"; then :
16962
16963 lt_aix_libpath_sed='
16964     /Import File Strings/,/^$/ {
16965         /^0/ {
16966             s/^0  *\(.*\)$/\1/
16967             p
16968         }
16969     }'
16970 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16971 # Check for a 64-bit object if we didn't find anything.
16972 if test -z "$aix_libpath"; then
16973   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16974 fi
16975 fi
16976 rm -f core conftest.err conftest.$ac_objext \
16977     conftest$ac_exeext conftest.$ac_ext
16978 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16979
16980          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16981           # Warning - without using the other run time loading flags,
16982           # -berok will link without error, but may produce a broken library.
16983           no_undefined_flag_GCJ=' ${wl}-bernotok'
16984           allow_undefined_flag_GCJ=' ${wl}-berok'
16985           # Exported symbols can be pulled into shared objects from archives
16986           whole_archive_flag_spec_GCJ='$convenience'
16987           archive_cmds_need_lc_GCJ=yes
16988           # This is similar to how AIX traditionally builds its shared libraries.
16989           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16990         fi
16991       fi
16992       ;;
16993
16994     amigaos*)
16995       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16996       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16997       hardcode_minus_L_GCJ=yes
16998       # see comment about different semantics on the GNU ld section
16999       ld_shlibs_GCJ=no
17000       ;;
17001
17002     bsdi[45]*)
17003       export_dynamic_flag_spec_GCJ=-rdynamic
17004       ;;
17005
17006     cygwin* | mingw* | pw32*)
17007       # When not using gcc, we currently assume that we are using
17008       # Microsoft Visual C++.
17009       # hardcode_libdir_flag_spec is actually meaningless, as there is
17010       # no search path for DLLs.
17011       hardcode_libdir_flag_spec_GCJ=' '
17012       allow_undefined_flag_GCJ=unsupported
17013       # Tell ltmain to make .lib files, not .a files.
17014       libext=lib
17015       # Tell ltmain to make .dll files, not .so files.
17016       shrext_cmds=".dll"
17017       # FIXME: Setting linknames here is a bad hack.
17018       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17019       # The linker will automatically build a .lib file if we build a DLL.
17020       old_archive_From_new_cmds_GCJ='true'
17021       # FIXME: Should let the user specify the lib program.
17022       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17023       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17024       enable_shared_with_static_runtimes_GCJ=yes
17025       ;;
17026
17027     darwin* | rhapsody*)
17028       case $host_os in
17029         rhapsody* | darwin1.[012])
17030          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17031          ;;
17032        *) # Darwin 1.3 on
17033          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17034            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17035          else
17036            case ${MACOSX_DEPLOYMENT_TARGET} in
17037              10.[012])
17038                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17039                ;;
17040              10.*)
17041                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17042                ;;
17043            esac
17044          fi
17045          ;;
17046       esac
17047       archive_cmds_need_lc_GCJ=no
17048       hardcode_direct_GCJ=no
17049       hardcode_automatic_GCJ=yes
17050       hardcode_shlibpath_var_GCJ=unsupported
17051       whole_archive_flag_spec_GCJ=''
17052       link_all_deplibs_GCJ=yes
17053     if test "$GCC" = yes ; then
17054         output_verbose_link_cmd='echo'
17055         archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17056         module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17057         archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17058         module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17059     else
17060       case $cc_basename in
17061         xlc*)
17062          output_verbose_link_cmd='echo'
17063          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17064          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17065           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17066          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17067           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17068           ;;
17069        *)
17070          ld_shlibs_GCJ=no
17071           ;;
17072       esac
17073     fi
17074       ;;
17075
17076     dgux*)
17077       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17078       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17079       hardcode_shlibpath_var_GCJ=no
17080       ;;
17081
17082     freebsd1*)
17083       ld_shlibs_GCJ=no
17084       ;;
17085
17086     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17087     # support.  Future versions do this automatically, but an explicit c++rt0.o
17088     # does not break anything, and helps significantly (at the cost of a little
17089     # extra space).
17090     freebsd2.2*)
17091       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17092       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17093       hardcode_direct_GCJ=yes
17094       hardcode_shlibpath_var_GCJ=no
17095       ;;
17096
17097     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17098     freebsd2*)
17099       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17100       hardcode_direct_GCJ=yes
17101       hardcode_minus_L_GCJ=yes
17102       hardcode_shlibpath_var_GCJ=no
17103       ;;
17104
17105     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17106     freebsd* | dragonfly*)
17107       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17108       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17109       hardcode_direct_GCJ=yes
17110       hardcode_shlibpath_var_GCJ=no
17111       ;;
17112
17113     hpux9*)
17114       if test "$GCC" = yes; then
17115         archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17116       else
17117         archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17118       fi
17119       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17120       hardcode_libdir_separator_GCJ=:
17121       hardcode_direct_GCJ=yes
17122
17123       # hardcode_minus_L: Not really in the search PATH,
17124       # but as the default location of the library.
17125       hardcode_minus_L_GCJ=yes
17126       export_dynamic_flag_spec_GCJ='${wl}-E'
17127       ;;
17128
17129     hpux10*)
17130       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17131         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17132       else
17133         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17134       fi
17135       if test "$with_gnu_ld" = no; then
17136         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17137         hardcode_libdir_separator_GCJ=:
17138
17139         hardcode_direct_GCJ=yes
17140         export_dynamic_flag_spec_GCJ='${wl}-E'
17141
17142         # hardcode_minus_L: Not really in the search PATH,
17143         # but as the default location of the library.
17144         hardcode_minus_L_GCJ=yes
17145       fi
17146       ;;
17147
17148     hpux11*)
17149       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17150         case $host_cpu in
17151         hppa*64*)
17152           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17153           ;;
17154         ia64*)
17155           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17156           ;;
17157         *)
17158           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17159           ;;
17160         esac
17161       else
17162         case $host_cpu in
17163         hppa*64*)
17164           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17165           ;;
17166         ia64*)
17167           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17168           ;;
17169         *)
17170           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17171           ;;
17172         esac
17173       fi
17174       if test "$with_gnu_ld" = no; then
17175         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17176         hardcode_libdir_separator_GCJ=:
17177
17178         case $host_cpu in
17179         hppa*64*|ia64*)
17180           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17181           hardcode_direct_GCJ=no
17182           hardcode_shlibpath_var_GCJ=no
17183           ;;
17184         *)
17185           hardcode_direct_GCJ=yes
17186           export_dynamic_flag_spec_GCJ='${wl}-E'
17187
17188           # hardcode_minus_L: Not really in the search PATH,
17189           # but as the default location of the library.
17190           hardcode_minus_L_GCJ=yes
17191           ;;
17192         esac
17193       fi
17194       ;;
17195
17196     irix5* | irix6* | nonstopux*)
17197       if test "$GCC" = yes; then
17198         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17199       else
17200         archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17201         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17202       fi
17203       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17204       hardcode_libdir_separator_GCJ=:
17205       link_all_deplibs_GCJ=yes
17206       ;;
17207
17208     netbsd* | netbsdelf*-gnu)
17209       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17210         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17211       else
17212         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17213       fi
17214       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17215       hardcode_direct_GCJ=yes
17216       hardcode_shlibpath_var_GCJ=no
17217       ;;
17218
17219     newsos6)
17220       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17221       hardcode_direct_GCJ=yes
17222       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17223       hardcode_libdir_separator_GCJ=:
17224       hardcode_shlibpath_var_GCJ=no
17225       ;;
17226
17227     openbsd*)
17228       if test -f /usr/libexec/ld.so; then
17229         hardcode_direct_GCJ=yes
17230         hardcode_shlibpath_var_GCJ=no
17231         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17232           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17233           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17234           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17235           export_dynamic_flag_spec_GCJ='${wl}-E'
17236         else
17237           case $host_os in
17238            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17239              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17240              hardcode_libdir_flag_spec_GCJ='-R$libdir'
17241              ;;
17242            *)
17243              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17244              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17245              ;;
17246           esac
17247         fi
17248       else
17249         ld_shlibs_GCJ=no
17250       fi
17251       ;;
17252
17253     os2*)
17254       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17255       hardcode_minus_L_GCJ=yes
17256       allow_undefined_flag_GCJ=unsupported
17257       archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
17258       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17259       ;;
17260
17261     osf3*)
17262       if test "$GCC" = yes; then
17263         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17264         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17265       else
17266         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17267         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17268       fi
17269       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17270       hardcode_libdir_separator_GCJ=:
17271       ;;
17272
17273     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17274       if test "$GCC" = yes; then
17275         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17276         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17277         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17278       else
17279         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17280         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17281         archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17282         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17283
17284         # Both c and cxx compiler support -rpath directly
17285         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17286       fi
17287       hardcode_libdir_separator_GCJ=:
17288       ;;
17289
17290     solaris*)
17291       no_undefined_flag_GCJ=' -z text'
17292       if test "$GCC" = yes; then
17293         wlarc='${wl}'
17294         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17295         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17296           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17297       else
17298         wlarc=''
17299         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17300         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17301         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17302       fi
17303       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17304       hardcode_shlibpath_var_GCJ=no
17305       case $host_os in
17306       solaris2.[0-5] | solaris2.[0-5].*) ;;
17307       *)
17308         # The compiler driver will combine and reorder linker options,
17309         # but understands `-z linker_flag'.  GCC discards it without `$wl',
17310         # but is careful enough not to reorder.
17311         # Supported since Solaris 2.6 (maybe 2.5.1?)
17312         if test "$GCC" = yes; then
17313           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17314         else
17315           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17316         fi
17317         ;;
17318       esac
17319       link_all_deplibs_GCJ=yes
17320       ;;
17321
17322     sunos4*)
17323       if test "x$host_vendor" = xsequent; then
17324         # Use $CC to link under sequent, because it throws in some extra .o
17325         # files that make .init and .fini sections work.
17326         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17327       else
17328         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17329       fi
17330       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17331       hardcode_direct_GCJ=yes
17332       hardcode_minus_L_GCJ=yes
17333       hardcode_shlibpath_var_GCJ=no
17334       ;;
17335
17336     sysv4)
17337       case $host_vendor in
17338         sni)
17339           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17340           hardcode_direct_GCJ=yes # is this really true???
17341         ;;
17342         siemens)
17343           ## LD is ld it makes a PLAMLIB
17344           ## CC just makes a GrossModule.
17345           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17346           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17347           hardcode_direct_GCJ=no
17348         ;;
17349         motorola)
17350           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17351           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17352         ;;
17353       esac
17354       runpath_var='LD_RUN_PATH'
17355       hardcode_shlibpath_var_GCJ=no
17356       ;;
17357
17358     sysv4.3*)
17359       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17360       hardcode_shlibpath_var_GCJ=no
17361       export_dynamic_flag_spec_GCJ='-Bexport'
17362       ;;
17363
17364     sysv4*MP*)
17365       if test -d /usr/nec; then
17366         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17367         hardcode_shlibpath_var_GCJ=no
17368         runpath_var=LD_RUN_PATH
17369         hardcode_runpath_var=yes
17370         ld_shlibs_GCJ=yes
17371       fi
17372       ;;
17373
17374     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17375       no_undefined_flag_GCJ='${wl}-z,text'
17376       archive_cmds_need_lc_GCJ=no
17377       hardcode_shlibpath_var_GCJ=no
17378       runpath_var='LD_RUN_PATH'
17379
17380       if test "$GCC" = yes; then
17381         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17382         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17383       else
17384         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17385         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17386       fi
17387       ;;
17388
17389     sysv5* | sco3.2v5* | sco5v6*)
17390       # Note: We can NOT use -z defs as we might desire, because we do not
17391       # link with -lc, and that would cause any symbols used from libc to
17392       # always be unresolved, which means just about no library would
17393       # ever link correctly.  If we're not using GNU ld we use -z text
17394       # though, which does catch some bad symbols but isn't as heavy-handed
17395       # as -z defs.
17396       no_undefined_flag_GCJ='${wl}-z,text'
17397       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17398       archive_cmds_need_lc_GCJ=no
17399       hardcode_shlibpath_var_GCJ=no
17400       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17401       hardcode_libdir_separator_GCJ=':'
17402       link_all_deplibs_GCJ=yes
17403       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17404       runpath_var='LD_RUN_PATH'
17405
17406       if test "$GCC" = yes; then
17407         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17408         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17409       else
17410         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17411         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17412       fi
17413       ;;
17414
17415     uts4*)
17416       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17417       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17418       hardcode_shlibpath_var_GCJ=no
17419       ;;
17420
17421     *)
17422       ld_shlibs_GCJ=no
17423       ;;
17424     esac
17425   fi
17426
17427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
17428 $as_echo "$ld_shlibs_GCJ" >&6; }
17429 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17430
17431 #
17432 # Do we need to explicitly link libc?
17433 #
17434 case "x$archive_cmds_need_lc_GCJ" in
17435 x|xyes)
17436   # Assume -lc should be added
17437   archive_cmds_need_lc_GCJ=yes
17438
17439   if test "$enable_shared" = yes && test "$GCC" = yes; then
17440     case $archive_cmds_GCJ in
17441     *'~'*)
17442       # FIXME: we may have to deal with multi-command sequences.
17443       ;;
17444     '$CC '*)
17445       # Test whether the compiler implicitly links with -lc since on some
17446       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17447       # to ld, don't add -lc before -lgcc.
17448       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17449 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17450       $rm conftest*
17451       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17452
17453       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17454   (eval $ac_compile) 2>&5
17455   ac_status=$?
17456   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17457   test $ac_status = 0; } 2>conftest.err; then
17458         soname=conftest
17459         lib=conftest
17460         libobjs=conftest.$ac_objext
17461         deplibs=
17462         wl=$lt_prog_compiler_wl_GCJ
17463         pic_flag=$lt_prog_compiler_pic_GCJ
17464         compiler_flags=-v
17465         linker_flags=-v
17466         verstring=
17467         output_objdir=.
17468         libname=conftest
17469         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17470         allow_undefined_flag_GCJ=
17471         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17472   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17473   ac_status=$?
17474   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17475   test $ac_status = 0; }
17476         then
17477           archive_cmds_need_lc_GCJ=no
17478         else
17479           archive_cmds_need_lc_GCJ=yes
17480         fi
17481         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17482       else
17483         cat conftest.err 1>&5
17484       fi
17485       $rm conftest*
17486       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
17487 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
17488       ;;
17489     esac
17490   fi
17491   ;;
17492 esac
17493
17494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17495 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17496 library_names_spec=
17497 libname_spec='lib$name'
17498 soname_spec=
17499 shrext_cmds=".so"
17500 postinstall_cmds=
17501 postuninstall_cmds=
17502 finish_cmds=
17503 finish_eval=
17504 shlibpath_var=
17505 shlibpath_overrides_runpath=unknown
17506 version_type=none
17507 dynamic_linker="$host_os ld.so"
17508 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17509
17510 need_lib_prefix=unknown
17511 hardcode_into_libs=no
17512
17513 # when you set need_version to no, make sure it does not cause -set_version
17514 # flags to be left without arguments
17515 need_version=unknown
17516
17517 case $host_os in
17518 aix3*)
17519   version_type=linux
17520   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17521   shlibpath_var=LIBPATH
17522
17523   # AIX 3 has no versioning support, so we append a major version to the name.
17524   soname_spec='${libname}${release}${shared_ext}$major'
17525   ;;
17526
17527 aix[4-9]*)
17528   version_type=linux
17529   need_lib_prefix=no
17530   need_version=no
17531   hardcode_into_libs=yes
17532   if test "$host_cpu" = ia64; then
17533     # AIX 5 supports IA64
17534     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17535     shlibpath_var=LD_LIBRARY_PATH
17536   else
17537     # With GCC up to 2.95.x, collect2 would create an import file
17538     # for dependence libraries.  The import file would start with
17539     # the line `#! .'.  This would cause the generated library to
17540     # depend on `.', always an invalid library.  This was fixed in
17541     # development snapshots of GCC prior to 3.0.
17542     case $host_os in
17543       aix4 | aix4.[01] | aix4.[01].*)
17544       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17545            echo ' yes '
17546            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17547         :
17548       else
17549         can_build_shared=no
17550       fi
17551       ;;
17552     esac
17553     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17554     # soname into executable. Probably we can add versioning support to
17555     # collect2, so additional links can be useful in future.
17556     if test "$aix_use_runtimelinking" = yes; then
17557       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17558       # instead of lib<name>.a to let people know that these are not
17559       # typical AIX shared libraries.
17560       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17561     else
17562       # We preserve .a as extension for shared libraries through AIX4.2
17563       # and later when we are not doing run time linking.
17564       library_names_spec='${libname}${release}.a $libname.a'
17565       soname_spec='${libname}${release}${shared_ext}$major'
17566     fi
17567     shlibpath_var=LIBPATH
17568   fi
17569   ;;
17570
17571 amigaos*)
17572   library_names_spec='$libname.ixlibrary $libname.a'
17573   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17574   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
17575   ;;
17576
17577 beos*)
17578   library_names_spec='${libname}${shared_ext}'
17579   dynamic_linker="$host_os ld.so"
17580   shlibpath_var=LIBRARY_PATH
17581   ;;
17582
17583 bsdi[45]*)
17584   version_type=linux
17585   need_version=no
17586   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17587   soname_spec='${libname}${release}${shared_ext}$major'
17588   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17589   shlibpath_var=LD_LIBRARY_PATH
17590   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17591   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17592   # the default ld.so.conf also contains /usr/contrib/lib and
17593   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17594   # libtool to hard-code these into programs
17595   ;;
17596
17597 cygwin* | mingw* | pw32*)
17598   version_type=windows
17599   shrext_cmds=".dll"
17600   need_version=no
17601   need_lib_prefix=no
17602
17603   case $GCC,$host_os in
17604   yes,cygwin* | yes,mingw* | yes,pw32*)
17605     library_names_spec='$libname.dll.a'
17606     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17607     postinstall_cmds='base_file=`basename \${file}`~
17608       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17609       dldir=$destdir/`dirname \$dlpath`~
17610       test -d \$dldir || mkdir -p \$dldir~
17611       $install_prog $dir/$dlname \$dldir/$dlname~
17612       chmod a+x \$dldir/$dlname'
17613     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17614       dlpath=$dir/\$dldll~
17615        $rm \$dlpath'
17616     shlibpath_overrides_runpath=yes
17617
17618     case $host_os in
17619     cygwin*)
17620       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17621       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17622       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17623       ;;
17624     mingw*)
17625       # MinGW DLLs use traditional 'lib' prefix
17626       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17627       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17628       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17629         # It is most probably a Windows format PATH printed by
17630         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17631         # path with ; separators, and with drive letters. We can handle the
17632         # drive letters (cygwin fileutils understands them), so leave them,
17633         # especially as we might pass files found there to a mingw objdump,
17634         # which wouldn't understand a cygwinified path. Ahh.
17635         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17636       else
17637         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17638       fi
17639       ;;
17640     pw32*)
17641       # pw32 DLLs use 'pw' prefix rather than 'lib'
17642       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17643       ;;
17644     esac
17645     ;;
17646
17647   *)
17648     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17649     ;;
17650   esac
17651   dynamic_linker='Win32 ld.exe'
17652   # FIXME: first we should search . and the directory the executable is in
17653   shlibpath_var=PATH
17654   ;;
17655
17656 darwin* | rhapsody*)
17657   dynamic_linker="$host_os dyld"
17658   version_type=darwin
17659   need_lib_prefix=no
17660   need_version=no
17661   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17662   soname_spec='${libname}${release}${major}$shared_ext'
17663   shlibpath_overrides_runpath=yes
17664   shlibpath_var=DYLD_LIBRARY_PATH
17665   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17666
17667   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17668   ;;
17669
17670 dgux*)
17671   version_type=linux
17672   need_lib_prefix=no
17673   need_version=no
17674   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17675   soname_spec='${libname}${release}${shared_ext}$major'
17676   shlibpath_var=LD_LIBRARY_PATH
17677   ;;
17678
17679 freebsd1*)
17680   dynamic_linker=no
17681   ;;
17682
17683 freebsd* | dragonfly*)
17684   # DragonFly does not have aout.  When/if they implement a new
17685   # versioning mechanism, adjust this.
17686   if test -x /usr/bin/objformat; then
17687     objformat=`/usr/bin/objformat`
17688   else
17689     case $host_os in
17690     freebsd[123]*) objformat=aout ;;
17691     *) objformat=elf ;;
17692     esac
17693   fi
17694   version_type=freebsd-$objformat
17695   case $version_type in
17696     freebsd-elf*)
17697       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17698       need_version=no
17699       need_lib_prefix=no
17700       ;;
17701     freebsd-*)
17702       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17703       need_version=yes
17704       ;;
17705   esac
17706   shlibpath_var=LD_LIBRARY_PATH
17707   case $host_os in
17708   freebsd2*)
17709     shlibpath_overrides_runpath=yes
17710     ;;
17711   freebsd3.[01]* | freebsdelf3.[01]*)
17712     shlibpath_overrides_runpath=yes
17713     hardcode_into_libs=yes
17714     ;;
17715   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17716   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17717     shlibpath_overrides_runpath=no
17718     hardcode_into_libs=yes
17719     ;;
17720   *) # from 4.6 on, and DragonFly
17721     shlibpath_overrides_runpath=yes
17722     hardcode_into_libs=yes
17723     ;;
17724   esac
17725   ;;
17726
17727 gnu*)
17728   version_type=linux
17729   need_lib_prefix=no
17730   need_version=no
17731   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17732   soname_spec='${libname}${release}${shared_ext}$major'
17733   shlibpath_var=LD_LIBRARY_PATH
17734   hardcode_into_libs=yes
17735   ;;
17736
17737 hpux9* | hpux10* | hpux11*)
17738   # Give a soname corresponding to the major version so that dld.sl refuses to
17739   # link against other versions.
17740   version_type=sunos
17741   need_lib_prefix=no
17742   need_version=no
17743   case $host_cpu in
17744   ia64*)
17745     shrext_cmds='.so'
17746     hardcode_into_libs=yes
17747     dynamic_linker="$host_os dld.so"
17748     shlibpath_var=LD_LIBRARY_PATH
17749     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17750     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17751     soname_spec='${libname}${release}${shared_ext}$major'
17752     if test "X$HPUX_IA64_MODE" = X32; then
17753       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17754     else
17755       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17756     fi
17757     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17758     ;;
17759    hppa*64*)
17760      shrext_cmds='.sl'
17761      hardcode_into_libs=yes
17762      dynamic_linker="$host_os dld.sl"
17763      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17764      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17765      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17766      soname_spec='${libname}${release}${shared_ext}$major'
17767      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17768      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17769      ;;
17770    *)
17771     shrext_cmds='.sl'
17772     dynamic_linker="$host_os dld.sl"
17773     shlibpath_var=SHLIB_PATH
17774     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17775     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17776     soname_spec='${libname}${release}${shared_ext}$major'
17777     ;;
17778   esac
17779   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17780   postinstall_cmds='chmod 555 $lib'
17781   ;;
17782
17783 interix[3-9]*)
17784   version_type=linux
17785   need_lib_prefix=no
17786   need_version=no
17787   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17788   soname_spec='${libname}${release}${shared_ext}$major'
17789   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17790   shlibpath_var=LD_LIBRARY_PATH
17791   shlibpath_overrides_runpath=no
17792   hardcode_into_libs=yes
17793   ;;
17794
17795 irix5* | irix6* | nonstopux*)
17796   case $host_os in
17797     nonstopux*) version_type=nonstopux ;;
17798     *)
17799         if test "$lt_cv_prog_gnu_ld" = yes; then
17800                 version_type=linux
17801         else
17802                 version_type=irix
17803         fi ;;
17804   esac
17805   need_lib_prefix=no
17806   need_version=no
17807   soname_spec='${libname}${release}${shared_ext}$major'
17808   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17809   case $host_os in
17810   irix5* | nonstopux*)
17811     libsuff= shlibsuff=
17812     ;;
17813   *)
17814     case $LD in # libtool.m4 will add one of these switches to LD
17815     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17816       libsuff= shlibsuff= libmagic=32-bit;;
17817     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17818       libsuff=32 shlibsuff=N32 libmagic=N32;;
17819     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17820       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17821     *) libsuff= shlibsuff= libmagic=never-match;;
17822     esac
17823     ;;
17824   esac
17825   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17826   shlibpath_overrides_runpath=no
17827   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17828   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17829   hardcode_into_libs=yes
17830   ;;
17831
17832 # No shared lib support for Linux oldld, aout, or coff.
17833 linux*oldld* | linux*aout* | linux*coff*)
17834   dynamic_linker=no
17835   ;;
17836
17837 # This must be Linux ELF.
17838 linux* | k*bsd*-gnu)
17839   version_type=linux
17840   need_lib_prefix=no
17841   need_version=no
17842   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17843   soname_spec='${libname}${release}${shared_ext}$major'
17844   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17845   shlibpath_var=LD_LIBRARY_PATH
17846   shlibpath_overrides_runpath=no
17847   # This implies no fast_install, which is unacceptable.
17848   # Some rework will be needed to allow for fast_install
17849   # before this can be enabled.
17850   hardcode_into_libs=yes
17851
17852   # Append ld.so.conf contents to the search path
17853   if test -f /etc/ld.so.conf; then
17854     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17855     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17856   fi
17857
17858   # We used to test for /lib/ld.so.1 and disable shared libraries on
17859   # powerpc, because MkLinux only supported shared libraries with the
17860   # GNU dynamic linker.  Since this was broken with cross compilers,
17861   # most powerpc-linux boxes support dynamic linking these days and
17862   # people can always --disable-shared, the test was removed, and we
17863   # assume the GNU/Linux dynamic linker is in use.
17864   dynamic_linker='GNU/Linux ld.so'
17865   ;;
17866
17867 netbsdelf*-gnu)
17868   version_type=linux
17869   need_lib_prefix=no
17870   need_version=no
17871   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17872   soname_spec='${libname}${release}${shared_ext}$major'
17873   shlibpath_var=LD_LIBRARY_PATH
17874   shlibpath_overrides_runpath=no
17875   hardcode_into_libs=yes
17876   dynamic_linker='NetBSD ld.elf_so'
17877   ;;
17878
17879 netbsd*)
17880   version_type=sunos
17881   need_lib_prefix=no
17882   need_version=no
17883   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17884     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17885     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17886     dynamic_linker='NetBSD (a.out) ld.so'
17887   else
17888     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17889     soname_spec='${libname}${release}${shared_ext}$major'
17890     dynamic_linker='NetBSD ld.elf_so'
17891   fi
17892   shlibpath_var=LD_LIBRARY_PATH
17893   shlibpath_overrides_runpath=yes
17894   hardcode_into_libs=yes
17895   ;;
17896
17897 newsos6)
17898   version_type=linux
17899   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17900   shlibpath_var=LD_LIBRARY_PATH
17901   shlibpath_overrides_runpath=yes
17902   ;;
17903
17904 nto-qnx*)
17905   version_type=linux
17906   need_lib_prefix=no
17907   need_version=no
17908   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17909   soname_spec='${libname}${release}${shared_ext}$major'
17910   shlibpath_var=LD_LIBRARY_PATH
17911   shlibpath_overrides_runpath=yes
17912   ;;
17913
17914 openbsd*)
17915   version_type=sunos
17916   sys_lib_dlsearch_path_spec="/usr/lib"
17917   need_lib_prefix=no
17918   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17919   case $host_os in
17920     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17921     *)                         need_version=no  ;;
17922   esac
17923   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17924   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17925   shlibpath_var=LD_LIBRARY_PATH
17926   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17927     case $host_os in
17928       openbsd2.[89] | openbsd2.[89].*)
17929         shlibpath_overrides_runpath=no
17930         ;;
17931       *)
17932         shlibpath_overrides_runpath=yes
17933         ;;
17934       esac
17935   else
17936     shlibpath_overrides_runpath=yes
17937   fi
17938   ;;
17939
17940 os2*)
17941   libname_spec='$name'
17942   shrext_cmds=".dll"
17943   need_lib_prefix=no
17944   library_names_spec='$libname${shared_ext} $libname.a'
17945   dynamic_linker='OS/2 ld.exe'
17946   shlibpath_var=LIBPATH
17947   ;;
17948
17949 osf3* | osf4* | osf5*)
17950   version_type=osf
17951   need_lib_prefix=no
17952   need_version=no
17953   soname_spec='${libname}${release}${shared_ext}$major'
17954   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17955   shlibpath_var=LD_LIBRARY_PATH
17956   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17957   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17958   ;;
17959
17960 rdos*)
17961   dynamic_linker=no
17962   ;;
17963
17964 solaris*)
17965   version_type=linux
17966   need_lib_prefix=no
17967   need_version=no
17968   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17969   soname_spec='${libname}${release}${shared_ext}$major'
17970   shlibpath_var=LD_LIBRARY_PATH
17971   shlibpath_overrides_runpath=yes
17972   hardcode_into_libs=yes
17973   # ldd complains unless libraries are executable
17974   postinstall_cmds='chmod +x $lib'
17975   ;;
17976
17977 sunos4*)
17978   version_type=sunos
17979   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17980   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17981   shlibpath_var=LD_LIBRARY_PATH
17982   shlibpath_overrides_runpath=yes
17983   if test "$with_gnu_ld" = yes; then
17984     need_lib_prefix=no
17985   fi
17986   need_version=yes
17987   ;;
17988
17989 sysv4 | sysv4.3*)
17990   version_type=linux
17991   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17992   soname_spec='${libname}${release}${shared_ext}$major'
17993   shlibpath_var=LD_LIBRARY_PATH
17994   case $host_vendor in
17995     sni)
17996       shlibpath_overrides_runpath=no
17997       need_lib_prefix=no
17998       export_dynamic_flag_spec='${wl}-Blargedynsym'
17999       runpath_var=LD_RUN_PATH
18000       ;;
18001     siemens)
18002       need_lib_prefix=no
18003       ;;
18004     motorola)
18005       need_lib_prefix=no
18006       need_version=no
18007       shlibpath_overrides_runpath=no
18008       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18009       ;;
18010   esac
18011   ;;
18012
18013 sysv4*MP*)
18014   if test -d /usr/nec ;then
18015     version_type=linux
18016     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18017     soname_spec='$libname${shared_ext}.$major'
18018     shlibpath_var=LD_LIBRARY_PATH
18019   fi
18020   ;;
18021
18022 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18023   version_type=freebsd-elf
18024   need_lib_prefix=no
18025   need_version=no
18026   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18027   soname_spec='${libname}${release}${shared_ext}$major'
18028   shlibpath_var=LD_LIBRARY_PATH
18029   hardcode_into_libs=yes
18030   if test "$with_gnu_ld" = yes; then
18031     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18032     shlibpath_overrides_runpath=no
18033   else
18034     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18035     shlibpath_overrides_runpath=yes
18036     case $host_os in
18037       sco3.2v5*)
18038         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18039         ;;
18040     esac
18041   fi
18042   sys_lib_dlsearch_path_spec='/usr/lib'
18043   ;;
18044
18045 uts4*)
18046   version_type=linux
18047   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18048   soname_spec='${libname}${release}${shared_ext}$major'
18049   shlibpath_var=LD_LIBRARY_PATH
18050   ;;
18051
18052 *)
18053   dynamic_linker=no
18054   ;;
18055 esac
18056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18057 $as_echo "$dynamic_linker" >&6; }
18058 test "$dynamic_linker" = no && can_build_shared=no
18059
18060 if ${lt_cv_sys_lib_search_path_spec+:} false; then :
18061   $as_echo_n "(cached) " >&6
18062 else
18063   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18064 fi
18065
18066 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18067 if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
18068   $as_echo_n "(cached) " >&6
18069 else
18070   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18071 fi
18072
18073 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18074
18075 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18076 if test "$GCC" = yes; then
18077   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18078 fi
18079
18080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18081 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18082 hardcode_action_GCJ=
18083 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18084    test -n "$runpath_var_GCJ" || \
18085    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18086
18087   # We can hardcode non-existant directories.
18088   if test "$hardcode_direct_GCJ" != no &&
18089      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18090      # have to relink, otherwise we might link with an installed library
18091      # when we should be linking with a yet-to-be-installed one
18092      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18093      test "$hardcode_minus_L_GCJ" != no; then
18094     # Linking always hardcodes the temporary library directory.
18095     hardcode_action_GCJ=relink
18096   else
18097     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18098     hardcode_action_GCJ=immediate
18099   fi
18100 else
18101   # We cannot hardcode anything, or else we can only hardcode existing
18102   # directories.
18103   hardcode_action_GCJ=unsupported
18104 fi
18105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
18106 $as_echo "$hardcode_action_GCJ" >&6; }
18107
18108 if test "$hardcode_action_GCJ" = relink; then
18109   # Fast installation is not supported
18110   enable_fast_install=no
18111 elif test "$shlibpath_overrides_runpath" = yes ||
18112      test "$enable_shared" = no; then
18113   # Fast installation is not necessary
18114   enable_fast_install=needless
18115 fi
18116
18117
18118 # The else clause should only fire when bootstrapping the
18119 # libtool distribution, otherwise you forgot to ship ltmain.sh
18120 # with your package, and you will get complaints that there are
18121 # no rules to generate ltmain.sh.
18122 if test -f "$ltmain"; then
18123   # See if we are running on zsh, and set the options which allow our commands through
18124   # without removal of \ escapes.
18125   if test -n "${ZSH_VERSION+set}" ; then
18126     setopt NO_GLOB_SUBST
18127   fi
18128   # Now quote all the things that may contain metacharacters while being
18129   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18130   # variables and quote the copies for generation of the libtool script.
18131   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18132     SED SHELL STRIP \
18133     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18134     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18135     deplibs_check_method reload_flag reload_cmds need_locks \
18136     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18137     lt_cv_sys_global_symbol_to_c_name_address \
18138     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18139     old_postinstall_cmds old_postuninstall_cmds \
18140     compiler_GCJ \
18141     CC_GCJ \
18142     LD_GCJ \
18143     lt_prog_compiler_wl_GCJ \
18144     lt_prog_compiler_pic_GCJ \
18145     lt_prog_compiler_static_GCJ \
18146     lt_prog_compiler_no_builtin_flag_GCJ \
18147     export_dynamic_flag_spec_GCJ \
18148     thread_safe_flag_spec_GCJ \
18149     whole_archive_flag_spec_GCJ \
18150     enable_shared_with_static_runtimes_GCJ \
18151     old_archive_cmds_GCJ \
18152     old_archive_from_new_cmds_GCJ \
18153     predep_objects_GCJ \
18154     postdep_objects_GCJ \
18155     predeps_GCJ \
18156     postdeps_GCJ \
18157     compiler_lib_search_path_GCJ \
18158     compiler_lib_search_dirs_GCJ \
18159     archive_cmds_GCJ \
18160     archive_expsym_cmds_GCJ \
18161     postinstall_cmds_GCJ \
18162     postuninstall_cmds_GCJ \
18163     old_archive_from_expsyms_cmds_GCJ \
18164     allow_undefined_flag_GCJ \
18165     no_undefined_flag_GCJ \
18166     export_symbols_cmds_GCJ \
18167     hardcode_libdir_flag_spec_GCJ \
18168     hardcode_libdir_flag_spec_ld_GCJ \
18169     hardcode_libdir_separator_GCJ \
18170     hardcode_automatic_GCJ \
18171     module_cmds_GCJ \
18172     module_expsym_cmds_GCJ \
18173     lt_cv_prog_compiler_c_o_GCJ \
18174     fix_srcfile_path_GCJ \
18175     exclude_expsyms_GCJ \
18176     include_expsyms_GCJ; do
18177
18178     case $var in
18179     old_archive_cmds_GCJ | \
18180     old_archive_from_new_cmds_GCJ | \
18181     archive_cmds_GCJ | \
18182     archive_expsym_cmds_GCJ | \
18183     module_cmds_GCJ | \
18184     module_expsym_cmds_GCJ | \
18185     old_archive_from_expsyms_cmds_GCJ | \
18186     export_symbols_cmds_GCJ | \
18187     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18188     postinstall_cmds | postuninstall_cmds | \
18189     old_postinstall_cmds | old_postuninstall_cmds | \
18190     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18191       # Double-quote double-evaled strings.
18192       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18193       ;;
18194     *)
18195       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18196       ;;
18197     esac
18198   done
18199
18200   case $lt_echo in
18201   *'\$0 --fallback-echo"')
18202     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18203     ;;
18204   esac
18205
18206 cfgfile="$ofile"
18207
18208   cat <<__EOF__ >> "$cfgfile"
18209 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18210
18211 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18212
18213 # Shell to use when invoking shell scripts.
18214 SHELL=$lt_SHELL
18215
18216 # Whether or not to build shared libraries.
18217 build_libtool_libs=$enable_shared
18218
18219 # Whether or not to build static libraries.
18220 build_old_libs=$enable_static
18221
18222 # Whether or not to add -lc for building shared libraries.
18223 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18224
18225 # Whether or not to disallow shared libs when runtime libs are static
18226 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18227
18228 # Whether or not to optimize for fast installation.
18229 fast_install=$enable_fast_install
18230
18231 # The host system.
18232 host_alias=$host_alias
18233 host=$host
18234 host_os=$host_os
18235
18236 # The build system.
18237 build_alias=$build_alias
18238 build=$build
18239 build_os=$build_os
18240
18241 # An echo program that does not interpret backslashes.
18242 echo=$lt_echo
18243
18244 # The archiver.
18245 AR=$lt_AR
18246 AR_FLAGS=$lt_AR_FLAGS
18247
18248 # A C compiler.
18249 LTCC=$lt_LTCC
18250
18251 # LTCC compiler flags.
18252 LTCFLAGS=$lt_LTCFLAGS
18253
18254 # A language-specific compiler.
18255 CC=$lt_compiler_GCJ
18256
18257 # Is the compiler the GNU C compiler?
18258 with_gcc=$GCC_GCJ
18259
18260 # An ERE matcher.
18261 EGREP=$lt_EGREP
18262
18263 # The linker used to build libraries.
18264 LD=$lt_LD_GCJ
18265
18266 # Whether we need hard or soft links.
18267 LN_S=$lt_LN_S
18268
18269 # A BSD-compatible nm program.
18270 NM=$lt_NM
18271
18272 # A symbol stripping program
18273 STRIP=$lt_STRIP
18274
18275 # Used to examine libraries when file_magic_cmd begins "file"
18276 MAGIC_CMD=$MAGIC_CMD
18277
18278 # Used on cygwin: DLL creation program.
18279 DLLTOOL="$DLLTOOL"
18280
18281 # Used on cygwin: object dumper.
18282 OBJDUMP="$OBJDUMP"
18283
18284 # Used on cygwin: assembler.
18285 AS="$AS"
18286
18287 # The name of the directory that contains temporary libtool files.
18288 objdir=$objdir
18289
18290 # How to create reloadable object files.
18291 reload_flag=$lt_reload_flag
18292 reload_cmds=$lt_reload_cmds
18293
18294 # How to pass a linker flag through the compiler.
18295 wl=$lt_lt_prog_compiler_wl_GCJ
18296
18297 # Object file suffix (normally "o").
18298 objext="$ac_objext"
18299
18300 # Old archive suffix (normally "a").
18301 libext="$libext"
18302
18303 # Shared library suffix (normally ".so").
18304 shrext_cmds='$shrext_cmds'
18305
18306 # Executable file suffix (normally "").
18307 exeext="$exeext"
18308
18309 # Additional compiler flags for building library objects.
18310 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18311 pic_mode=$pic_mode
18312
18313 # What is the maximum length of a command?
18314 max_cmd_len=$lt_cv_sys_max_cmd_len
18315
18316 # Does compiler simultaneously support -c and -o options?
18317 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18318
18319 # Must we lock files when doing compilation?
18320 need_locks=$lt_need_locks
18321
18322 # Do we need the lib prefix for modules?
18323 need_lib_prefix=$need_lib_prefix
18324
18325 # Do we need a version for libraries?
18326 need_version=$need_version
18327
18328 # Whether dlopen is supported.
18329 dlopen_support=$enable_dlopen
18330
18331 # Whether dlopen of programs is supported.
18332 dlopen_self=$enable_dlopen_self
18333
18334 # Whether dlopen of statically linked programs is supported.
18335 dlopen_self_static=$enable_dlopen_self_static
18336
18337 # Compiler flag to prevent dynamic linking.
18338 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18339
18340 # Compiler flag to turn off builtin functions.
18341 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18342
18343 # Compiler flag to allow reflexive dlopens.
18344 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18345
18346 # Compiler flag to generate shared objects directly from archives.
18347 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18348
18349 # Compiler flag to generate thread-safe objects.
18350 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18351
18352 # Library versioning type.
18353 version_type=$version_type
18354
18355 # Format of library name prefix.
18356 libname_spec=$lt_libname_spec
18357
18358 # List of archive names.  First name is the real one, the rest are links.
18359 # The last name is the one that the linker finds with -lNAME.
18360 library_names_spec=$lt_library_names_spec
18361
18362 # The coded name of the library, if different from the real name.
18363 soname_spec=$lt_soname_spec
18364
18365 # Commands used to build and install an old-style archive.
18366 RANLIB=$lt_RANLIB
18367 old_archive_cmds=$lt_old_archive_cmds_GCJ
18368 old_postinstall_cmds=$lt_old_postinstall_cmds
18369 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18370
18371 # Create an old-style archive from a shared archive.
18372 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18373
18374 # Create a temporary old-style archive to link instead of a shared archive.
18375 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18376
18377 # Commands used to build and install a shared archive.
18378 archive_cmds=$lt_archive_cmds_GCJ
18379 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18380 postinstall_cmds=$lt_postinstall_cmds
18381 postuninstall_cmds=$lt_postuninstall_cmds
18382
18383 # Commands used to build a loadable module (assumed same as above if empty)
18384 module_cmds=$lt_module_cmds_GCJ
18385 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18386
18387 # Commands to strip libraries.
18388 old_striplib=$lt_old_striplib
18389 striplib=$lt_striplib
18390
18391 # Dependencies to place before the objects being linked to create a
18392 # shared library.
18393 predep_objects=$lt_predep_objects_GCJ
18394
18395 # Dependencies to place after the objects being linked to create a
18396 # shared library.
18397 postdep_objects=$lt_postdep_objects_GCJ
18398
18399 # Dependencies to place before the objects being linked to create a
18400 # shared library.
18401 predeps=$lt_predeps_GCJ
18402
18403 # Dependencies to place after the objects being linked to create a
18404 # shared library.
18405 postdeps=$lt_postdeps_GCJ
18406
18407 # The directories searched by this compiler when creating a shared
18408 # library
18409 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
18410
18411 # The library search path used internally by the compiler when linking
18412 # a shared library.
18413 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18414
18415 # Method to check whether dependent libraries are shared objects.
18416 deplibs_check_method=$lt_deplibs_check_method
18417
18418 # Command to use when deplibs_check_method == file_magic.
18419 file_magic_cmd=$lt_file_magic_cmd
18420
18421 # Flag that allows shared libraries with undefined symbols to be built.
18422 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18423
18424 # Flag that forces no undefined symbols.
18425 no_undefined_flag=$lt_no_undefined_flag_GCJ
18426
18427 # Commands used to finish a libtool library installation in a directory.
18428 finish_cmds=$lt_finish_cmds
18429
18430 # Same as above, but a single script fragment to be evaled but not shown.
18431 finish_eval=$lt_finish_eval
18432
18433 # Take the output of nm and produce a listing of raw symbols and C names.
18434 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18435
18436 # Transform the output of nm in a proper C declaration
18437 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18438
18439 # Transform the output of nm in a C name address pair
18440 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18441
18442 # This is the shared library runtime path variable.
18443 runpath_var=$runpath_var
18444
18445 # This is the shared library path variable.
18446 shlibpath_var=$shlibpath_var
18447
18448 # Is shlibpath searched before the hard-coded library search path?
18449 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18450
18451 # How to hardcode a shared library path into an executable.
18452 hardcode_action=$hardcode_action_GCJ
18453
18454 # Whether we should hardcode library paths into libraries.
18455 hardcode_into_libs=$hardcode_into_libs
18456
18457 # Flag to hardcode \$libdir into a binary during linking.
18458 # This must work even if \$libdir does not exist.
18459 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18460
18461 # If ld is used when linking, flag to hardcode \$libdir into
18462 # a binary during linking. This must work even if \$libdir does
18463 # not exist.
18464 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18465
18466 # Whether we need a single -rpath flag with a separated argument.
18467 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18468
18469 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18470 # resulting binary.
18471 hardcode_direct=$hardcode_direct_GCJ
18472
18473 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18474 # resulting binary.
18475 hardcode_minus_L=$hardcode_minus_L_GCJ
18476
18477 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18478 # the resulting binary.
18479 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18480
18481 # Set to yes if building a shared library automatically hardcodes DIR into the library
18482 # and all subsequent libraries and executables linked against it.
18483 hardcode_automatic=$hardcode_automatic_GCJ
18484
18485 # Variables whose values should be saved in libtool wrapper scripts and
18486 # restored at relink time.
18487 variables_saved_for_relink="$variables_saved_for_relink"
18488
18489 # Whether libtool must link a program against all its dependency libraries.
18490 link_all_deplibs=$link_all_deplibs_GCJ
18491
18492 # Compile-time system search path for libraries
18493 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18494
18495 # Run-time system search path for libraries
18496 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18497
18498 # Fix the shell variable \$srcfile for the compiler.
18499 fix_srcfile_path=$lt_fix_srcfile_path
18500
18501 # Set to yes if exported symbols are required.
18502 always_export_symbols=$always_export_symbols_GCJ
18503
18504 # The commands to list exported symbols.
18505 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18506
18507 # The commands to extract the exported symbol list from a shared archive.
18508 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18509
18510 # Symbols that should not be listed in the preloaded symbols.
18511 exclude_expsyms=$lt_exclude_expsyms_GCJ
18512
18513 # Symbols that must always be exported.
18514 include_expsyms=$lt_include_expsyms_GCJ
18515
18516 # ### END LIBTOOL TAG CONFIG: $tagname
18517
18518 __EOF__
18519
18520
18521 else
18522   # If there is no Makefile yet, we rely on a make rule to execute
18523   # `config.status --recheck' to rerun these tests and create the
18524   # libtool script then.
18525   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18526   if test -f "$ltmain_in"; then
18527     test -f Makefile && make "$ltmain"
18528   fi
18529 fi
18530
18531
18532 ac_ext=c
18533 ac_cpp='$CPP $CPPFLAGS'
18534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18537
18538 CC="$lt_save_CC"
18539
18540         else
18541           tagname=""
18542         fi
18543         ;;
18544
18545       RC)
18546
18547
18548 # Source file extension for RC test sources.
18549 ac_ext=rc
18550
18551 # Object file extension for compiled RC test sources.
18552 objext=o
18553 objext_RC=$objext
18554
18555 # Code to be used in simple compile tests
18556 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18557
18558 # Code to be used in simple link tests
18559 lt_simple_link_test_code="$lt_simple_compile_test_code"
18560
18561 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18562
18563 # If no C compiler was specified, use CC.
18564 LTCC=${LTCC-"$CC"}
18565
18566 # If no C compiler flags were specified, use CFLAGS.
18567 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18568
18569 # Allow CC to be a program name with arguments.
18570 compiler=$CC
18571
18572
18573 # save warnings/boilerplate of simple test code
18574 ac_outfile=conftest.$ac_objext
18575 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18576 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18577 _lt_compiler_boilerplate=`cat conftest.err`
18578 $rm conftest*
18579
18580 ac_outfile=conftest.$ac_objext
18581 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18582 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18583 _lt_linker_boilerplate=`cat conftest.err`
18584 $rm -r conftest*
18585
18586
18587 # Allow CC to be a program name with arguments.
18588 lt_save_CC="$CC"
18589 CC=${RC-"windres"}
18590 compiler=$CC
18591 compiler_RC=$CC
18592 for cc_temp in $compiler""; do
18593   case $cc_temp in
18594     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18595     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18596     \-*) ;;
18597     *) break;;
18598   esac
18599 done
18600 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18601
18602 lt_cv_prog_compiler_c_o_RC=yes
18603
18604 # The else clause should only fire when bootstrapping the
18605 # libtool distribution, otherwise you forgot to ship ltmain.sh
18606 # with your package, and you will get complaints that there are
18607 # no rules to generate ltmain.sh.
18608 if test -f "$ltmain"; then
18609   # See if we are running on zsh, and set the options which allow our commands through
18610   # without removal of \ escapes.
18611   if test -n "${ZSH_VERSION+set}" ; then
18612     setopt NO_GLOB_SUBST
18613   fi
18614   # Now quote all the things that may contain metacharacters while being
18615   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18616   # variables and quote the copies for generation of the libtool script.
18617   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18618     SED SHELL STRIP \
18619     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18620     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18621     deplibs_check_method reload_flag reload_cmds need_locks \
18622     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18623     lt_cv_sys_global_symbol_to_c_name_address \
18624     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18625     old_postinstall_cmds old_postuninstall_cmds \
18626     compiler_RC \
18627     CC_RC \
18628     LD_RC \
18629     lt_prog_compiler_wl_RC \
18630     lt_prog_compiler_pic_RC \
18631     lt_prog_compiler_static_RC \
18632     lt_prog_compiler_no_builtin_flag_RC \
18633     export_dynamic_flag_spec_RC \
18634     thread_safe_flag_spec_RC \
18635     whole_archive_flag_spec_RC \
18636     enable_shared_with_static_runtimes_RC \
18637     old_archive_cmds_RC \
18638     old_archive_from_new_cmds_RC \
18639     predep_objects_RC \
18640     postdep_objects_RC \
18641     predeps_RC \
18642     postdeps_RC \
18643     compiler_lib_search_path_RC \
18644     compiler_lib_search_dirs_RC \
18645     archive_cmds_RC \
18646     archive_expsym_cmds_RC \
18647     postinstall_cmds_RC \
18648     postuninstall_cmds_RC \
18649     old_archive_from_expsyms_cmds_RC \
18650     allow_undefined_flag_RC \
18651     no_undefined_flag_RC \
18652     export_symbols_cmds_RC \
18653     hardcode_libdir_flag_spec_RC \
18654     hardcode_libdir_flag_spec_ld_RC \
18655     hardcode_libdir_separator_RC \
18656     hardcode_automatic_RC \
18657     module_cmds_RC \
18658     module_expsym_cmds_RC \
18659     lt_cv_prog_compiler_c_o_RC \
18660     fix_srcfile_path_RC \
18661     exclude_expsyms_RC \
18662     include_expsyms_RC; do
18663
18664     case $var in
18665     old_archive_cmds_RC | \
18666     old_archive_from_new_cmds_RC | \
18667     archive_cmds_RC | \
18668     archive_expsym_cmds_RC | \
18669     module_cmds_RC | \
18670     module_expsym_cmds_RC | \
18671     old_archive_from_expsyms_cmds_RC | \
18672     export_symbols_cmds_RC | \
18673     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18674     postinstall_cmds | postuninstall_cmds | \
18675     old_postinstall_cmds | old_postuninstall_cmds | \
18676     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18677       # Double-quote double-evaled strings.
18678       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18679       ;;
18680     *)
18681       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18682       ;;
18683     esac
18684   done
18685
18686   case $lt_echo in
18687   *'\$0 --fallback-echo"')
18688     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18689     ;;
18690   esac
18691
18692 cfgfile="$ofile"
18693
18694   cat <<__EOF__ >> "$cfgfile"
18695 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18696
18697 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18698
18699 # Shell to use when invoking shell scripts.
18700 SHELL=$lt_SHELL
18701
18702 # Whether or not to build shared libraries.
18703 build_libtool_libs=$enable_shared
18704
18705 # Whether or not to build static libraries.
18706 build_old_libs=$enable_static
18707
18708 # Whether or not to add -lc for building shared libraries.
18709 build_libtool_need_lc=$archive_cmds_need_lc_RC
18710
18711 # Whether or not to disallow shared libs when runtime libs are static
18712 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18713
18714 # Whether or not to optimize for fast installation.
18715 fast_install=$enable_fast_install
18716
18717 # The host system.
18718 host_alias=$host_alias
18719 host=$host
18720 host_os=$host_os
18721
18722 # The build system.
18723 build_alias=$build_alias
18724 build=$build
18725 build_os=$build_os
18726
18727 # An echo program that does not interpret backslashes.
18728 echo=$lt_echo
18729
18730 # The archiver.
18731 AR=$lt_AR
18732 AR_FLAGS=$lt_AR_FLAGS
18733
18734 # A C compiler.
18735 LTCC=$lt_LTCC
18736
18737 # LTCC compiler flags.
18738 LTCFLAGS=$lt_LTCFLAGS
18739
18740 # A language-specific compiler.
18741 CC=$lt_compiler_RC
18742
18743 # Is the compiler the GNU C compiler?
18744 with_gcc=$GCC_RC
18745
18746 # An ERE matcher.
18747 EGREP=$lt_EGREP
18748
18749 # The linker used to build libraries.
18750 LD=$lt_LD_RC
18751
18752 # Whether we need hard or soft links.
18753 LN_S=$lt_LN_S
18754
18755 # A BSD-compatible nm program.
18756 NM=$lt_NM
18757
18758 # A symbol stripping program
18759 STRIP=$lt_STRIP
18760
18761 # Used to examine libraries when file_magic_cmd begins "file"
18762 MAGIC_CMD=$MAGIC_CMD
18763
18764 # Used on cygwin: DLL creation program.
18765 DLLTOOL="$DLLTOOL"
18766
18767 # Used on cygwin: object dumper.
18768 OBJDUMP="$OBJDUMP"
18769
18770 # Used on cygwin: assembler.
18771 AS="$AS"
18772
18773 # The name of the directory that contains temporary libtool files.
18774 objdir=$objdir
18775
18776 # How to create reloadable object files.
18777 reload_flag=$lt_reload_flag
18778 reload_cmds=$lt_reload_cmds
18779
18780 # How to pass a linker flag through the compiler.
18781 wl=$lt_lt_prog_compiler_wl_RC
18782
18783 # Object file suffix (normally "o").
18784 objext="$ac_objext"
18785
18786 # Old archive suffix (normally "a").
18787 libext="$libext"
18788
18789 # Shared library suffix (normally ".so").
18790 shrext_cmds='$shrext_cmds'
18791
18792 # Executable file suffix (normally "").
18793 exeext="$exeext"
18794
18795 # Additional compiler flags for building library objects.
18796 pic_flag=$lt_lt_prog_compiler_pic_RC
18797 pic_mode=$pic_mode
18798
18799 # What is the maximum length of a command?
18800 max_cmd_len=$lt_cv_sys_max_cmd_len
18801
18802 # Does compiler simultaneously support -c and -o options?
18803 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18804
18805 # Must we lock files when doing compilation?
18806 need_locks=$lt_need_locks
18807
18808 # Do we need the lib prefix for modules?
18809 need_lib_prefix=$need_lib_prefix
18810
18811 # Do we need a version for libraries?
18812 need_version=$need_version
18813
18814 # Whether dlopen is supported.
18815 dlopen_support=$enable_dlopen
18816
18817 # Whether dlopen of programs is supported.
18818 dlopen_self=$enable_dlopen_self
18819
18820 # Whether dlopen of statically linked programs is supported.
18821 dlopen_self_static=$enable_dlopen_self_static
18822
18823 # Compiler flag to prevent dynamic linking.
18824 link_static_flag=$lt_lt_prog_compiler_static_RC
18825
18826 # Compiler flag to turn off builtin functions.
18827 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18828
18829 # Compiler flag to allow reflexive dlopens.
18830 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18831
18832 # Compiler flag to generate shared objects directly from archives.
18833 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18834
18835 # Compiler flag to generate thread-safe objects.
18836 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18837
18838 # Library versioning type.
18839 version_type=$version_type
18840
18841 # Format of library name prefix.
18842 libname_spec=$lt_libname_spec
18843
18844 # List of archive names.  First name is the real one, the rest are links.
18845 # The last name is the one that the linker finds with -lNAME.
18846 library_names_spec=$lt_library_names_spec
18847
18848 # The coded name of the library, if different from the real name.
18849 soname_spec=$lt_soname_spec
18850
18851 # Commands used to build and install an old-style archive.
18852 RANLIB=$lt_RANLIB
18853 old_archive_cmds=$lt_old_archive_cmds_RC
18854 old_postinstall_cmds=$lt_old_postinstall_cmds
18855 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18856
18857 # Create an old-style archive from a shared archive.
18858 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18859
18860 # Create a temporary old-style archive to link instead of a shared archive.
18861 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18862
18863 # Commands used to build and install a shared archive.
18864 archive_cmds=$lt_archive_cmds_RC
18865 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18866 postinstall_cmds=$lt_postinstall_cmds
18867 postuninstall_cmds=$lt_postuninstall_cmds
18868
18869 # Commands used to build a loadable module (assumed same as above if empty)
18870 module_cmds=$lt_module_cmds_RC
18871 module_expsym_cmds=$lt_module_expsym_cmds_RC
18872
18873 # Commands to strip libraries.
18874 old_striplib=$lt_old_striplib
18875 striplib=$lt_striplib
18876
18877 # Dependencies to place before the objects being linked to create a
18878 # shared library.
18879 predep_objects=$lt_predep_objects_RC
18880
18881 # Dependencies to place after the objects being linked to create a
18882 # shared library.
18883 postdep_objects=$lt_postdep_objects_RC
18884
18885 # Dependencies to place before the objects being linked to create a
18886 # shared library.
18887 predeps=$lt_predeps_RC
18888
18889 # Dependencies to place after the objects being linked to create a
18890 # shared library.
18891 postdeps=$lt_postdeps_RC
18892
18893 # The directories searched by this compiler when creating a shared
18894 # library
18895 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
18896
18897 # The library search path used internally by the compiler when linking
18898 # a shared library.
18899 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18900
18901 # Method to check whether dependent libraries are shared objects.
18902 deplibs_check_method=$lt_deplibs_check_method
18903
18904 # Command to use when deplibs_check_method == file_magic.
18905 file_magic_cmd=$lt_file_magic_cmd
18906
18907 # Flag that allows shared libraries with undefined symbols to be built.
18908 allow_undefined_flag=$lt_allow_undefined_flag_RC
18909
18910 # Flag that forces no undefined symbols.
18911 no_undefined_flag=$lt_no_undefined_flag_RC
18912
18913 # Commands used to finish a libtool library installation in a directory.
18914 finish_cmds=$lt_finish_cmds
18915
18916 # Same as above, but a single script fragment to be evaled but not shown.
18917 finish_eval=$lt_finish_eval
18918
18919 # Take the output of nm and produce a listing of raw symbols and C names.
18920 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18921
18922 # Transform the output of nm in a proper C declaration
18923 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18924
18925 # Transform the output of nm in a C name address pair
18926 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18927
18928 # This is the shared library runtime path variable.
18929 runpath_var=$runpath_var
18930
18931 # This is the shared library path variable.
18932 shlibpath_var=$shlibpath_var
18933
18934 # Is shlibpath searched before the hard-coded library search path?
18935 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18936
18937 # How to hardcode a shared library path into an executable.
18938 hardcode_action=$hardcode_action_RC
18939
18940 # Whether we should hardcode library paths into libraries.
18941 hardcode_into_libs=$hardcode_into_libs
18942
18943 # Flag to hardcode \$libdir into a binary during linking.
18944 # This must work even if \$libdir does not exist.
18945 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18946
18947 # If ld is used when linking, flag to hardcode \$libdir into
18948 # a binary during linking. This must work even if \$libdir does
18949 # not exist.
18950 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18951
18952 # Whether we need a single -rpath flag with a separated argument.
18953 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18954
18955 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18956 # resulting binary.
18957 hardcode_direct=$hardcode_direct_RC
18958
18959 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18960 # resulting binary.
18961 hardcode_minus_L=$hardcode_minus_L_RC
18962
18963 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18964 # the resulting binary.
18965 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18966
18967 # Set to yes if building a shared library automatically hardcodes DIR into the library
18968 # and all subsequent libraries and executables linked against it.
18969 hardcode_automatic=$hardcode_automatic_RC
18970
18971 # Variables whose values should be saved in libtool wrapper scripts and
18972 # restored at relink time.
18973 variables_saved_for_relink="$variables_saved_for_relink"
18974
18975 # Whether libtool must link a program against all its dependency libraries.
18976 link_all_deplibs=$link_all_deplibs_RC
18977
18978 # Compile-time system search path for libraries
18979 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18980
18981 # Run-time system search path for libraries
18982 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18983
18984 # Fix the shell variable \$srcfile for the compiler.
18985 fix_srcfile_path=$lt_fix_srcfile_path
18986
18987 # Set to yes if exported symbols are required.
18988 always_export_symbols=$always_export_symbols_RC
18989
18990 # The commands to list exported symbols.
18991 export_symbols_cmds=$lt_export_symbols_cmds_RC
18992
18993 # The commands to extract the exported symbol list from a shared archive.
18994 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18995
18996 # Symbols that should not be listed in the preloaded symbols.
18997 exclude_expsyms=$lt_exclude_expsyms_RC
18998
18999 # Symbols that must always be exported.
19000 include_expsyms=$lt_include_expsyms_RC
19001
19002 # ### END LIBTOOL TAG CONFIG: $tagname
19003
19004 __EOF__
19005
19006
19007 else
19008   # If there is no Makefile yet, we rely on a make rule to execute
19009   # `config.status --recheck' to rerun these tests and create the
19010   # libtool script then.
19011   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19012   if test -f "$ltmain_in"; then
19013     test -f Makefile && make "$ltmain"
19014   fi
19015 fi
19016
19017
19018 ac_ext=c
19019 ac_cpp='$CPP $CPPFLAGS'
19020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19023
19024 CC="$lt_save_CC"
19025
19026         ;;
19027
19028       *)
19029         as_fn_error $? "Unsupported tag name: $tagname" "$LINENO" 5
19030         ;;
19031       esac
19032
19033       # Append the new tag name to the list of available tags.
19034       if test -n "$tagname" ; then
19035       available_tags="$available_tags $tagname"
19036     fi
19037     fi
19038   done
19039   IFS="$lt_save_ifs"
19040
19041   # Now substitute the updated list of available tags.
19042   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19043     mv "${ofile}T" "$ofile"
19044     chmod +x "$ofile"
19045   else
19046     rm -f "${ofile}T"
19047     as_fn_error $? "unable to update list of available tagged configurations." "$LINENO" 5
19048   fi
19049 fi
19050
19051
19052
19053 # This can be used to rebuild libtool when needed
19054 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19055
19056 # Always use our own libtool.
19057 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19058
19059 # Prevent multiple expansion
19060
19061
19062
19063
19064
19065
19066
19067
19068
19069
19070
19071
19072
19073
19074
19075
19076
19077
19078
19079
19080
19081 ac_ext=c
19082 ac_cpp='$CPP $CPPFLAGS'
19083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19086 if test -n "$ac_tool_prefix"; then
19087   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19088 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19090 $as_echo_n "checking for $ac_word... " >&6; }
19091 if ${ac_cv_prog_CC+:} false; then :
19092   $as_echo_n "(cached) " >&6
19093 else
19094   if test -n "$CC"; then
19095   ac_cv_prog_CC="$CC" # Let the user override the test.
19096 else
19097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19098 for as_dir in $PATH
19099 do
19100   IFS=$as_save_IFS
19101   test -z "$as_dir" && as_dir=.
19102     for ac_exec_ext in '' $ac_executable_extensions; do
19103   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19104     ac_cv_prog_CC="${ac_tool_prefix}gcc"
19105     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19106     break 2
19107   fi
19108 done
19109   done
19110 IFS=$as_save_IFS
19111
19112 fi
19113 fi
19114 CC=$ac_cv_prog_CC
19115 if test -n "$CC"; then
19116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
19117 $as_echo "$CC" >&6; }
19118 else
19119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19120 $as_echo "no" >&6; }
19121 fi
19122
19123
19124 fi
19125 if test -z "$ac_cv_prog_CC"; then
19126   ac_ct_CC=$CC
19127   # Extract the first word of "gcc", so it can be a program name with args.
19128 set dummy gcc; ac_word=$2
19129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19130 $as_echo_n "checking for $ac_word... " >&6; }
19131 if ${ac_cv_prog_ac_ct_CC+:} false; then :
19132   $as_echo_n "(cached) " >&6
19133 else
19134   if test -n "$ac_ct_CC"; then
19135   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19136 else
19137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19138 for as_dir in $PATH
19139 do
19140   IFS=$as_save_IFS
19141   test -z "$as_dir" && as_dir=.
19142     for ac_exec_ext in '' $ac_executable_extensions; do
19143   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19144     ac_cv_prog_ac_ct_CC="gcc"
19145     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19146     break 2
19147   fi
19148 done
19149   done
19150 IFS=$as_save_IFS
19151
19152 fi
19153 fi
19154 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19155 if test -n "$ac_ct_CC"; then
19156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
19157 $as_echo "$ac_ct_CC" >&6; }
19158 else
19159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19160 $as_echo "no" >&6; }
19161 fi
19162
19163   if test "x$ac_ct_CC" = x; then
19164     CC=""
19165   else
19166     case $cross_compiling:$ac_tool_warned in
19167 yes:)
19168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19170 ac_tool_warned=yes ;;
19171 esac
19172     CC=$ac_ct_CC
19173   fi
19174 else
19175   CC="$ac_cv_prog_CC"
19176 fi
19177
19178 if test -z "$CC"; then
19179           if test -n "$ac_tool_prefix"; then
19180     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19181 set dummy ${ac_tool_prefix}cc; ac_word=$2
19182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19183 $as_echo_n "checking for $ac_word... " >&6; }
19184 if ${ac_cv_prog_CC+:} false; then :
19185   $as_echo_n "(cached) " >&6
19186 else
19187   if test -n "$CC"; then
19188   ac_cv_prog_CC="$CC" # Let the user override the test.
19189 else
19190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19191 for as_dir in $PATH
19192 do
19193   IFS=$as_save_IFS
19194   test -z "$as_dir" && as_dir=.
19195     for ac_exec_ext in '' $ac_executable_extensions; do
19196   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19197     ac_cv_prog_CC="${ac_tool_prefix}cc"
19198     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19199     break 2
19200   fi
19201 done
19202   done
19203 IFS=$as_save_IFS
19204
19205 fi
19206 fi
19207 CC=$ac_cv_prog_CC
19208 if test -n "$CC"; then
19209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
19210 $as_echo "$CC" >&6; }
19211 else
19212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19213 $as_echo "no" >&6; }
19214 fi
19215
19216
19217   fi
19218 fi
19219 if test -z "$CC"; then
19220   # Extract the first word of "cc", so it can be a program name with args.
19221 set dummy cc; ac_word=$2
19222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19223 $as_echo_n "checking for $ac_word... " >&6; }
19224 if ${ac_cv_prog_CC+:} false; then :
19225   $as_echo_n "(cached) " >&6
19226 else
19227   if test -n "$CC"; then
19228   ac_cv_prog_CC="$CC" # Let the user override the test.
19229 else
19230   ac_prog_rejected=no
19231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19232 for as_dir in $PATH
19233 do
19234   IFS=$as_save_IFS
19235   test -z "$as_dir" && as_dir=.
19236     for ac_exec_ext in '' $ac_executable_extensions; do
19237   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19238     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19239        ac_prog_rejected=yes
19240        continue
19241      fi
19242     ac_cv_prog_CC="cc"
19243     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19244     break 2
19245   fi
19246 done
19247   done
19248 IFS=$as_save_IFS
19249
19250 if test $ac_prog_rejected = yes; then
19251   # We found a bogon in the path, so make sure we never use it.
19252   set dummy $ac_cv_prog_CC
19253   shift
19254   if test $# != 0; then
19255     # We chose a different compiler from the bogus one.
19256     # However, it has the same basename, so the bogon will be chosen
19257     # first if we set CC to just the basename; use the full file name.
19258     shift
19259     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19260   fi
19261 fi
19262 fi
19263 fi
19264 CC=$ac_cv_prog_CC
19265 if test -n "$CC"; then
19266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
19267 $as_echo "$CC" >&6; }
19268 else
19269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19270 $as_echo "no" >&6; }
19271 fi
19272
19273
19274 fi
19275 if test -z "$CC"; then
19276   if test -n "$ac_tool_prefix"; then
19277   for ac_prog in cl.exe
19278   do
19279     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19280 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19282 $as_echo_n "checking for $ac_word... " >&6; }
19283 if ${ac_cv_prog_CC+:} false; then :
19284   $as_echo_n "(cached) " >&6
19285 else
19286   if test -n "$CC"; then
19287   ac_cv_prog_CC="$CC" # Let the user override the test.
19288 else
19289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19290 for as_dir in $PATH
19291 do
19292   IFS=$as_save_IFS
19293   test -z "$as_dir" && as_dir=.
19294     for ac_exec_ext in '' $ac_executable_extensions; do
19295   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19296     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19297     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19298     break 2
19299   fi
19300 done
19301   done
19302 IFS=$as_save_IFS
19303
19304 fi
19305 fi
19306 CC=$ac_cv_prog_CC
19307 if test -n "$CC"; then
19308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
19309 $as_echo "$CC" >&6; }
19310 else
19311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19312 $as_echo "no" >&6; }
19313 fi
19314
19315
19316     test -n "$CC" && break
19317   done
19318 fi
19319 if test -z "$CC"; then
19320   ac_ct_CC=$CC
19321   for ac_prog in cl.exe
19322 do
19323   # Extract the first word of "$ac_prog", so it can be a program name with args.
19324 set dummy $ac_prog; ac_word=$2
19325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19326 $as_echo_n "checking for $ac_word... " >&6; }
19327 if ${ac_cv_prog_ac_ct_CC+:} false; then :
19328   $as_echo_n "(cached) " >&6
19329 else
19330   if test -n "$ac_ct_CC"; then
19331   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19332 else
19333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19334 for as_dir in $PATH
19335 do
19336   IFS=$as_save_IFS
19337   test -z "$as_dir" && as_dir=.
19338     for ac_exec_ext in '' $ac_executable_extensions; do
19339   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19340     ac_cv_prog_ac_ct_CC="$ac_prog"
19341     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19342     break 2
19343   fi
19344 done
19345   done
19346 IFS=$as_save_IFS
19347
19348 fi
19349 fi
19350 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19351 if test -n "$ac_ct_CC"; then
19352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
19353 $as_echo "$ac_ct_CC" >&6; }
19354 else
19355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19356 $as_echo "no" >&6; }
19357 fi
19358
19359
19360   test -n "$ac_ct_CC" && break
19361 done
19362
19363   if test "x$ac_ct_CC" = x; then
19364     CC=""
19365   else
19366     case $cross_compiling:$ac_tool_warned in
19367 yes:)
19368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19369 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19370 ac_tool_warned=yes ;;
19371 esac
19372     CC=$ac_ct_CC
19373   fi
19374 fi
19375
19376 fi
19377
19378
19379 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19381 as_fn_error $? "no acceptable C compiler found in \$PATH
19382 See \`config.log' for more details" "$LINENO" 5; }
19383
19384 # Provide some information about the compiler.
19385 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
19386 set X $ac_compile
19387 ac_compiler=$2
19388 for ac_option in --version -v -V -qversion; do
19389   { { ac_try="$ac_compiler $ac_option >&5"
19390 case "(($ac_try" in
19391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19392   *) ac_try_echo=$ac_try;;
19393 esac
19394 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19395 $as_echo "$ac_try_echo"; } >&5
19396   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
19397   ac_status=$?
19398   if test -s conftest.err; then
19399     sed '10a\
19400 ... rest of stderr output deleted ...
19401          10q' conftest.err >conftest.er1
19402     cat conftest.er1 >&5
19403   fi
19404   rm -f conftest.er1 conftest.err
19405   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19406   test $ac_status = 0; }
19407 done
19408
19409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
19410 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
19411 if ${ac_cv_c_compiler_gnu+:} false; then :
19412   $as_echo_n "(cached) " >&6
19413 else
19414   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19415 /* end confdefs.h.  */
19416
19417 int
19418 main ()
19419 {
19420 #ifndef __GNUC__
19421        choke me
19422 #endif
19423
19424   ;
19425   return 0;
19426 }
19427 _ACEOF
19428 if ac_fn_c_try_compile "$LINENO"; then :
19429   ac_compiler_gnu=yes
19430 else
19431   ac_compiler_gnu=no
19432 fi
19433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19434 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19435
19436 fi
19437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
19438 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
19439 if test $ac_compiler_gnu = yes; then
19440   GCC=yes
19441 else
19442   GCC=
19443 fi
19444 ac_test_CFLAGS=${CFLAGS+set}
19445 ac_save_CFLAGS=$CFLAGS
19446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
19447 $as_echo_n "checking whether $CC accepts -g... " >&6; }
19448 if ${ac_cv_prog_cc_g+:} false; then :
19449   $as_echo_n "(cached) " >&6
19450 else
19451   ac_save_c_werror_flag=$ac_c_werror_flag
19452    ac_c_werror_flag=yes
19453    ac_cv_prog_cc_g=no
19454    CFLAGS="-g"
19455    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19456 /* end confdefs.h.  */
19457
19458 int
19459 main ()
19460 {
19461
19462   ;
19463   return 0;
19464 }
19465 _ACEOF
19466 if ac_fn_c_try_compile "$LINENO"; then :
19467   ac_cv_prog_cc_g=yes
19468 else
19469   CFLAGS=""
19470       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19471 /* end confdefs.h.  */
19472
19473 int
19474 main ()
19475 {
19476
19477   ;
19478   return 0;
19479 }
19480 _ACEOF
19481 if ac_fn_c_try_compile "$LINENO"; then :
19482
19483 else
19484   ac_c_werror_flag=$ac_save_c_werror_flag
19485          CFLAGS="-g"
19486          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19487 /* end confdefs.h.  */
19488
19489 int
19490 main ()
19491 {
19492
19493   ;
19494   return 0;
19495 }
19496 _ACEOF
19497 if ac_fn_c_try_compile "$LINENO"; then :
19498   ac_cv_prog_cc_g=yes
19499 fi
19500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19501 fi
19502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19503 fi
19504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19505    ac_c_werror_flag=$ac_save_c_werror_flag
19506 fi
19507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
19508 $as_echo "$ac_cv_prog_cc_g" >&6; }
19509 if test "$ac_test_CFLAGS" = set; then
19510   CFLAGS=$ac_save_CFLAGS
19511 elif test $ac_cv_prog_cc_g = yes; then
19512   if test "$GCC" = yes; then
19513     CFLAGS="-g -O2"
19514   else
19515     CFLAGS="-g"
19516   fi
19517 else
19518   if test "$GCC" = yes; then
19519     CFLAGS="-O2"
19520   else
19521     CFLAGS=
19522   fi
19523 fi
19524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
19525 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
19526 if ${ac_cv_prog_cc_c89+:} false; then :
19527   $as_echo_n "(cached) " >&6
19528 else
19529   ac_cv_prog_cc_c89=no
19530 ac_save_CC=$CC
19531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19532 /* end confdefs.h.  */
19533 #include <stdarg.h>
19534 #include <stdio.h>
19535 #include <sys/types.h>
19536 #include <sys/stat.h>
19537 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
19538 struct buf { int x; };
19539 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19540 static char *e (p, i)
19541      char **p;
19542      int i;
19543 {
19544   return p[i];
19545 }
19546 static char *f (char * (*g) (char **, int), char **p, ...)
19547 {
19548   char *s;
19549   va_list v;
19550   va_start (v,p);
19551   s = g (p, va_arg (v,int));
19552   va_end (v);
19553   return s;
19554 }
19555
19556 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
19557    function prototypes and stuff, but not '\xHH' hex character constants.
19558    These don't provoke an error unfortunately, instead are silently treated
19559    as 'x'.  The following induces an error, until -std is added to get
19560    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
19561    array size at least.  It's necessary to write '\x00'==0 to get something
19562    that's true only with -std.  */
19563 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19564
19565 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
19566    inside strings and character constants.  */
19567 #define FOO(x) 'x'
19568 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
19569
19570 int test (int i, double x);
19571 struct s1 {int (*f) (int a);};
19572 struct s2 {int (*f) (double a);};
19573 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19574 int argc;
19575 char **argv;
19576 int
19577 main ()
19578 {
19579 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
19580   ;
19581   return 0;
19582 }
19583 _ACEOF
19584 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
19585         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19586 do
19587   CC="$ac_save_CC $ac_arg"
19588   if ac_fn_c_try_compile "$LINENO"; then :
19589   ac_cv_prog_cc_c89=$ac_arg
19590 fi
19591 rm -f core conftest.err conftest.$ac_objext
19592   test "x$ac_cv_prog_cc_c89" != "xno" && break
19593 done
19594 rm -f conftest.$ac_ext
19595 CC=$ac_save_CC
19596
19597 fi
19598 # AC_CACHE_VAL
19599 case "x$ac_cv_prog_cc_c89" in
19600   x)
19601     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
19602 $as_echo "none needed" >&6; } ;;
19603   xno)
19604     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
19605 $as_echo "unsupported" >&6; } ;;
19606   *)
19607     CC="$CC $ac_cv_prog_cc_c89"
19608     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
19609 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
19610 esac
19611 if test "x$ac_cv_prog_cc_c89" != xno; then :
19612
19613 fi
19614
19615 ac_ext=c
19616 ac_cpp='$CPP $CPPFLAGS'
19617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19620
19621 depcc="$CC"   am_compiler_list=
19622
19623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
19624 $as_echo_n "checking dependency style of $depcc... " >&6; }
19625 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
19626   $as_echo_n "(cached) " >&6
19627 else
19628   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19629   # We make a subdir and do the tests there.  Otherwise we can end up
19630   # making bogus files that we don't know about and never remove.  For
19631   # instance it was reported that on HP-UX the gcc test will end up
19632   # making a dummy file named `D' -- because `-MD' means `put the output
19633   # in D'.
19634   mkdir conftest.dir
19635   # Copy depcomp to subdir because otherwise we won't find it if we're
19636   # using a relative directory.
19637   cp "$am_depcomp" conftest.dir
19638   cd conftest.dir
19639   # We will build objects and dependencies in a subdirectory because
19640   # it helps to detect inapplicable dependency modes.  For instance
19641   # both Tru64's cc and ICC support -MD to output dependencies as a
19642   # side effect of compilation, but ICC will put the dependencies in
19643   # the current directory while Tru64 will put them in the object
19644   # directory.
19645   mkdir sub
19646
19647   am_cv_CC_dependencies_compiler_type=none
19648   if test "$am_compiler_list" = ""; then
19649      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19650   fi
19651   for depmode in $am_compiler_list; do
19652     # Setup a source with many dependencies, because some compilers
19653     # like to wrap large dependency lists on column 80 (with \), and
19654     # we should not choose a depcomp mode which is confused by this.
19655     #
19656     # We need to recreate these files for each test, as the compiler may
19657     # overwrite some of them when testing with obscure command lines.
19658     # This happens at least with the AIX C compiler.
19659     : > sub/conftest.c
19660     for i in 1 2 3 4 5 6; do
19661       echo '#include "conftst'$i'.h"' >> sub/conftest.c
19662       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19663       # Solaris 8's {/usr,}/bin/sh.
19664       touch sub/conftst$i.h
19665     done
19666     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19667
19668     case $depmode in
19669     nosideeffect)
19670       # after this tag, mechanisms are not by side-effect, so they'll
19671       # only be used when explicitly requested
19672       if test "x$enable_dependency_tracking" = xyes; then
19673         continue
19674       else
19675         break
19676       fi
19677       ;;
19678     none) break ;;
19679     esac
19680     # We check with `-c' and `-o' for the sake of the "dashmstdout"
19681     # mode.  It turns out that the SunPro C++ compiler does not properly
19682     # handle `-M -o', and we need to detect this.
19683     if depmode=$depmode \
19684        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19685        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19686        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19687          >/dev/null 2>conftest.err &&
19688        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
19689        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19690        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19691        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19692       # icc doesn't choke on unknown options, it will just issue warnings
19693       # or remarks (even with -Werror).  So we grep stderr for any message
19694       # that says an option was ignored or not supported.
19695       # When given -MP, icc 7.0 and 7.1 complain thusly:
19696       #   icc: Command line warning: ignoring option '-M'; no argument required
19697       # The diagnosis changed in icc 8.0:
19698       #   icc: Command line remark: option '-MP' not supported
19699       if (grep 'ignoring option' conftest.err ||
19700           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19701         am_cv_CC_dependencies_compiler_type=$depmode
19702         break
19703       fi
19704     fi
19705   done
19706
19707   cd ..
19708   rm -rf conftest.dir
19709 else
19710   am_cv_CC_dependencies_compiler_type=none
19711 fi
19712
19713 fi
19714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
19715 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
19716 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19717
19718  if
19719   test "x$enable_dependency_tracking" != xno \
19720   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19721   am__fastdepCC_TRUE=
19722   am__fastdepCC_FALSE='#'
19723 else
19724   am__fastdepCC_TRUE='#'
19725   am__fastdepCC_FALSE=
19726 fi
19727
19728
19729
19730 # Checks for libraries.
19731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lapr-1" >&5
19732 $as_echo_n "checking for main in -lapr-1... " >&6; }
19733 if ${ac_cv_lib_apr_1_main+:} false; then :
19734   $as_echo_n "(cached) " >&6
19735 else
19736   ac_check_lib_save_LIBS=$LIBS
19737 LIBS="-lapr-1  $LIBS"
19738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19739 /* end confdefs.h.  */
19740
19741
19742 int
19743 main ()
19744 {
19745 return main ();
19746   ;
19747   return 0;
19748 }
19749 _ACEOF
19750 if ac_fn_c_try_link "$LINENO"; then :
19751   ac_cv_lib_apr_1_main=yes
19752 else
19753   ac_cv_lib_apr_1_main=no
19754 fi
19755 rm -f core conftest.err conftest.$ac_objext \
19756     conftest$ac_exeext conftest.$ac_ext
19757 LIBS=$ac_check_lib_save_LIBS
19758 fi
19759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_apr_1_main" >&5
19760 $as_echo "$ac_cv_lib_apr_1_main" >&6; }
19761 if test "x$ac_cv_lib_apr_1_main" = xyes; then :
19762   cat >>confdefs.h <<_ACEOF
19763 #define HAVE_LIBAPR_1 1
19764 _ACEOF
19765
19766   LIBS="-lapr-1 $LIBS"
19767
19768 fi
19769
19770
19771 # Checks for header files.
19772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
19773 $as_echo_n "checking for ANSI C header files... " >&6; }
19774 if ${ac_cv_header_stdc+:} false; then :
19775   $as_echo_n "(cached) " >&6
19776 else
19777   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19778 /* end confdefs.h.  */
19779 #include <stdlib.h>
19780 #include <stdarg.h>
19781 #include <string.h>
19782 #include <float.h>
19783
19784 int
19785 main ()
19786 {
19787
19788   ;
19789   return 0;
19790 }
19791 _ACEOF
19792 if ac_fn_c_try_compile "$LINENO"; then :
19793   ac_cv_header_stdc=yes
19794 else
19795   ac_cv_header_stdc=no
19796 fi
19797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19798
19799 if test $ac_cv_header_stdc = yes; then
19800   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19801   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19802 /* end confdefs.h.  */
19803 #include <string.h>
19804
19805 _ACEOF
19806 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19807   $EGREP "memchr" >/dev/null 2>&1; then :
19808
19809 else
19810   ac_cv_header_stdc=no
19811 fi
19812 rm -f conftest*
19813
19814 fi
19815
19816 if test $ac_cv_header_stdc = yes; then
19817   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19818   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19819 /* end confdefs.h.  */
19820 #include <stdlib.h>
19821
19822 _ACEOF
19823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19824   $EGREP "free" >/dev/null 2>&1; then :
19825
19826 else
19827   ac_cv_header_stdc=no
19828 fi
19829 rm -f conftest*
19830
19831 fi
19832
19833 if test $ac_cv_header_stdc = yes; then
19834   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19835   if test "$cross_compiling" = yes; then :
19836   :
19837 else
19838   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19839 /* end confdefs.h.  */
19840 #include <ctype.h>
19841 #include <stdlib.h>
19842 #if ((' ' & 0x0FF) == 0x020)
19843 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19844 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19845 #else
19846 # define ISLOWER(c) \
19847                    (('a' <= (c) && (c) <= 'i') \
19848                      || ('j' <= (c) && (c) <= 'r') \
19849                      || ('s' <= (c) && (c) <= 'z'))
19850 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19851 #endif
19852
19853 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19854 int
19855 main ()
19856 {
19857   int i;
19858   for (i = 0; i < 256; i++)
19859     if (XOR (islower (i), ISLOWER (i))
19860         || toupper (i) != TOUPPER (i))
19861       return 2;
19862   return 0;
19863 }
19864 _ACEOF
19865 if ac_fn_c_try_run "$LINENO"; then :
19866
19867 else
19868   ac_cv_header_stdc=no
19869 fi
19870 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19871   conftest.$ac_objext conftest.beam conftest.$ac_ext
19872 fi
19873
19874 fi
19875 fi
19876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
19877 $as_echo "$ac_cv_header_stdc" >&6; }
19878 if test $ac_cv_header_stdc = yes; then
19879
19880 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
19881
19882 fi
19883
19884 for ac_header in string.h
19885 do :
19886   ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
19887 if test "x$ac_cv_header_string_h" = xyes; then :
19888   cat >>confdefs.h <<_ACEOF
19889 #define HAVE_STRING_H 1
19890 _ACEOF
19891
19892 fi
19893
19894 done
19895
19896
19897
19898 # Check whether --with-apr-config was given.
19899 if test "${with_apr_config+set}" = set; then :
19900   withval=$with_apr_config;
19901 fi
19902
19903 if test "x$with_apr_config" = "xyes" ; then
19904     as_fn_error $? "
19905 Please specify the --with-apr-config option. And, please specify the place of the apr-config program.
19906 " "$LINENO" 5
19907 fi
19908
19909
19910 # Check whether --with-apu-config was given.
19911 if test "${with_apu_config+set}" = set; then :
19912   withval=$with_apu_config;
19913 fi
19914
19915 if test "x$with_apu_config" = "xyes" ; then
19916     as_fn_error $? "
19917 Please specify the --with-apu-config option. And, please specify the place of the apu-config program.
19918 " "$LINENO" 5
19919 fi
19920
19921 # Extract the first word of "libtool", so it can be a program name with args.
19922 set dummy libtool; ac_word=$2
19923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19924 $as_echo_n "checking for $ac_word... " >&6; }
19925 if ${ac_cv_path_LIBTOOL+:} false; then :
19926   $as_echo_n "(cached) " >&6
19927 else
19928   case $LIBTOOL in
19929   [\\/]* | ?:[\\/]*)
19930   ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
19931   ;;
19932   *)
19933   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19934 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
19935 for as_dir in $as_dummy
19936 do
19937   IFS=$as_save_IFS
19938   test -z "$as_dir" && as_dir=.
19939     for ac_exec_ext in '' $ac_executable_extensions; do
19940   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19941     ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
19942     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19943     break 2
19944   fi
19945 done
19946   done
19947 IFS=$as_save_IFS
19948
19949   test -z "$ac_cv_path_LIBTOOL" && ac_cv_path_LIBTOOL="no"
19950   ;;
19951 esac
19952 fi
19953 LIBTOOL=$ac_cv_path_LIBTOOL
19954 if test -n "$LIBTOOL"; then
19955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBTOOL" >&5
19956 $as_echo "$LIBTOOL" >&6; }
19957 else
19958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19959 $as_echo "no" >&6; }
19960 fi
19961
19962
19963 if test "x$LIBTOOL" = "xno"; then
19964     as_fn_error $? "libtool not found." "$LINENO" 5
19965 fi
19966
19967
19968 if test "x$with_apr_config" = "x" ; then
19969   # Extract the first word of "apr-config", so it can be a program name with args.
19970 set dummy apr-config; ac_word=$2
19971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19972 $as_echo_n "checking for $ac_word... " >&6; }
19973 if ${ac_cv_path_APR_CONFIG+:} false; then :
19974   $as_echo_n "(cached) " >&6
19975 else
19976   case $APR_CONFIG in
19977   [\\/]* | ?:[\\/]*)
19978   ac_cv_path_APR_CONFIG="$APR_CONFIG" # Let the user override the test with a path.
19979   ;;
19980   *)
19981   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19982 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
19983 for as_dir in $as_dummy
19984 do
19985   IFS=$as_save_IFS
19986   test -z "$as_dir" && as_dir=.
19987     for ac_exec_ext in '' $ac_executable_extensions; do
19988   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19989     ac_cv_path_APR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19990     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19991     break 2
19992   fi
19993 done
19994   done
19995 IFS=$as_save_IFS
19996
19997   test -z "$ac_cv_path_APR_CONFIG" && ac_cv_path_APR_CONFIG="no"
19998   ;;
19999 esac
20000 fi
20001 APR_CONFIG=$ac_cv_path_APR_CONFIG
20002 if test -n "$APR_CONFIG"; then
20003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APR_CONFIG" >&5
20004 $as_echo "$APR_CONFIG" >&6; }
20005 else
20006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20007 $as_echo "no" >&6; }
20008 fi
20009
20010
20011   if test "x$APR_CONFIG" = "xno" ; then
20012     # Extract the first word of "apr-1-config", so it can be a program name with args.
20013 set dummy apr-1-config; ac_word=$2
20014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20015 $as_echo_n "checking for $ac_word... " >&6; }
20016 if ${ac_cv_path_APR_1_CONFIG+:} false; then :
20017   $as_echo_n "(cached) " >&6
20018 else
20019   case $APR_1_CONFIG in
20020   [\\/]* | ?:[\\/]*)
20021   ac_cv_path_APR_1_CONFIG="$APR_1_CONFIG" # Let the user override the test with a path.
20022   ;;
20023   *)
20024   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20025 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20026 for as_dir in $as_dummy
20027 do
20028   IFS=$as_save_IFS
20029   test -z "$as_dir" && as_dir=.
20030     for ac_exec_ext in '' $ac_executable_extensions; do
20031   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20032     ac_cv_path_APR_1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20033     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20034     break 2
20035   fi
20036 done
20037   done
20038 IFS=$as_save_IFS
20039
20040   test -z "$ac_cv_path_APR_1_CONFIG" && ac_cv_path_APR_1_CONFIG="no"
20041   ;;
20042 esac
20043 fi
20044 APR_1_CONFIG=$ac_cv_path_APR_1_CONFIG
20045 if test -n "$APR_1_CONFIG"; then
20046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APR_1_CONFIG" >&5
20047 $as_echo "$APR_1_CONFIG" >&6; }
20048 else
20049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20050 $as_echo "no" >&6; }
20051 fi
20052
20053
20054     if test "x$APR_1_CONFIG" = "xno" ; then
20055       as_fn_error $? "apr-config and apr-1-config not found." "$LINENO" 5
20056     else
20057       APR_CONFIG="$APR_1_CONFIG"
20058     fi
20059   fi
20060 fi
20061 if test "x$with_apr_config" != "x" ; then
20062   APR_CONFIG=$with_apr_config
20063 fi
20064 if test "x$with_apu_config" = "x" ; then
20065   # Extract the first word of "apu-config", so it can be a program name with args.
20066 set dummy apu-config; ac_word=$2
20067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20068 $as_echo_n "checking for $ac_word... " >&6; }
20069 if ${ac_cv_path_APU_CONFIG+:} false; then :
20070   $as_echo_n "(cached) " >&6
20071 else
20072   case $APU_CONFIG in
20073   [\\/]* | ?:[\\/]*)
20074   ac_cv_path_APU_CONFIG="$APU_CONFIG" # Let the user override the test with a path.
20075   ;;
20076   *)
20077   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20078 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20079 for as_dir in $as_dummy
20080 do
20081   IFS=$as_save_IFS
20082   test -z "$as_dir" && as_dir=.
20083     for ac_exec_ext in '' $ac_executable_extensions; do
20084   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20085     ac_cv_path_APU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20086     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20087     break 2
20088   fi
20089 done
20090   done
20091 IFS=$as_save_IFS
20092
20093   test -z "$ac_cv_path_APU_CONFIG" && ac_cv_path_APU_CONFIG="no"
20094   ;;
20095 esac
20096 fi
20097 APU_CONFIG=$ac_cv_path_APU_CONFIG
20098 if test -n "$APU_CONFIG"; then
20099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APU_CONFIG" >&5
20100 $as_echo "$APU_CONFIG" >&6; }
20101 else
20102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20103 $as_echo "no" >&6; }
20104 fi
20105
20106
20107   if test "x$APU_CONFIG" = "xno" ; then
20108     # Extract the first word of "apu-1-config", so it can be a program name with args.
20109 set dummy apu-1-config; ac_word=$2
20110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20111 $as_echo_n "checking for $ac_word... " >&6; }
20112 if ${ac_cv_path_APU_1_CONFIG+:} false; then :
20113   $as_echo_n "(cached) " >&6
20114 else
20115   case $APU_1_CONFIG in
20116   [\\/]* | ?:[\\/]*)
20117   ac_cv_path_APU_1_CONFIG="$APU_1_CONFIG" # Let the user override the test with a path.
20118   ;;
20119   *)
20120   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20121 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20122 for as_dir in $as_dummy
20123 do
20124   IFS=$as_save_IFS
20125   test -z "$as_dir" && as_dir=.
20126     for ac_exec_ext in '' $ac_executable_extensions; do
20127   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20128     ac_cv_path_APU_1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20129     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20130     break 2
20131   fi
20132 done
20133   done
20134 IFS=$as_save_IFS
20135
20136   test -z "$ac_cv_path_APU_1_CONFIG" && ac_cv_path_APU_1_CONFIG="no"
20137   ;;
20138 esac
20139 fi
20140 APU_1_CONFIG=$ac_cv_path_APU_1_CONFIG
20141 if test -n "$APU_1_CONFIG"; then
20142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APU_1_CONFIG" >&5
20143 $as_echo "$APU_1_CONFIG" >&6; }
20144 else
20145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20146 $as_echo "no" >&6; }
20147 fi
20148
20149
20150     if test "x$APU_1_CONFIG" = "xno" ; then
20151       as_fn_error $? "apu-config and apu-1-config not found." "$LINENO" 5
20152     else
20153       APU_CONFIG="$APU_1_CONFIG"
20154     fi
20155   fi
20156 fi
20157 if test "x$with_apu_config" != "x" ; then
20158   APU_CONFIG=$with_apu_config
20159 fi
20160
20161
20162 if test "x$with_apu_config" != "x" ; then
20163   APU_CONFIG=$with_apu_config
20164 fi
20165
20166 <<<<<<< HEAD:src/css/configure
20167 CFLAGS="${CFLAGS} -DLIBICONV_PLUG -I/usr/local/include"
20168 LIBS="${LIBS} `${APR_CONFIG} --ldflags` `${APR_CONFIG} --libs` "
20169 LIBS="${LIBS} `${APU_CONFIG} --ldflags` `${APU_CONFIG} --libs` "
20170 CFLAGS="${CFLAGS} `${APR_CONFIG} --includes` `${APR_CONFIG} --cflags` `${APR_CONFIG} --cppflags`"
20171 CFLAGS="${CFLAGS} `${APU_CONFIG} --includes`"
20172
20173
20174 =======
20175 >>>>>>> branch_0.13.0:src/css/configure
20176 # Checks for typedefs, structures, and compiler characteristics.
20177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
20178 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20179 if ${ac_cv_c_const+:} false; then :
20180   $as_echo_n "(cached) " >&6
20181 else
20182   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20183 /* end confdefs.h.  */
20184
20185 int
20186 main ()
20187 {
20188 /* FIXME: Include the comments suggested by Paul. */
20189 #ifndef __cplusplus
20190   /* Ultrix mips cc rejects this.  */
20191   typedef int charset[2];
20192   const charset cs;
20193   /* SunOS 4.1.1 cc rejects this.  */
20194   char const *const *pcpcc;
20195   char **ppc;
20196   /* NEC SVR4.0.2 mips cc rejects this.  */
20197   struct point {int x, y;};
20198   static struct point const zero = {0,0};
20199   /* AIX XL C 1.02.0.0 rejects this.
20200      It does not let you subtract one const X* pointer from another in
20201      an arm of an if-expression whose if-part is not a constant
20202      expression */
20203   const char *g = "string";
20204   pcpcc = &g + (g ? g-g : 0);
20205   /* HPUX 7.0 cc rejects these. */
20206   ++pcpcc;
20207   ppc = (char**) pcpcc;
20208   pcpcc = (char const *const *) ppc;
20209   { /* SCO 3.2v4 cc rejects this.  */
20210     char *t;
20211     char const *s = 0 ? (char *) 0 : (char const *) 0;
20212
20213     *t++ = 0;
20214     if (s) return 0;
20215   }
20216   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20217     int x[] = {25, 17};
20218     const int *foo = &x[0];
20219     ++foo;
20220   }
20221   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20222     typedef const int *iptr;
20223     iptr p = 0;
20224     ++p;
20225   }
20226   { /* AIX XL C 1.02.0.0 rejects this saying
20227        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20228     struct s { int j; const int *ap[3]; };
20229     struct s *b; b->j = 5;
20230   }
20231   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20232     const int foo = 10;
20233     if (!foo) return 0;
20234   }
20235   return !cs[0] && !zero.x;
20236 #endif
20237
20238   ;
20239   return 0;
20240 }
20241 _ACEOF
20242 if ac_fn_c_try_compile "$LINENO"; then :
20243   ac_cv_c_const=yes
20244 else
20245   ac_cv_c_const=no
20246 fi
20247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20248 fi
20249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
20250 $as_echo "$ac_cv_c_const" >&6; }
20251 if test $ac_cv_c_const = no; then
20252
20253 $as_echo "#define const /**/" >>confdefs.h
20254
20255 fi
20256
20257
20258 # Checks for library functions.
20259 for ac_func in memset strcasecmp strncasecmp
20260 do :
20261   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20262 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20263 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20264   cat >>confdefs.h <<_ACEOF
20265 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20266 _ACEOF
20267
20268 fi
20269 done
20270
20271
20272 CFLAGS="${CFLAGS} -DLIBICONV_PLUG "
20273 LIBS="${LIBS} `${APR_CONFIG} --ldflags` `${APR_CONFIG} --libs` "
20274 LIBS="${LIBS} `${APU_CONFIG} --ldflags` `${APU_CONFIG} --libs` "
20275 CFLAGS="${CFLAGS} `${APR_CONFIG} --includes` `${APR_CONFIG} --cflags` `${APR_CONFIG} --cppflags`"
20276 CFLAGS="${CFLAGS} `${APU_CONFIG} --includes`"
20277
20278
20279
20280
20281
20282
20283
20284 ac_config_files="$ac_config_files Makefile src/Makefile"
20285
20286 cat >confcache <<\_ACEOF
20287 # This file is a shell script that caches the results of configure
20288 # tests run on this system so they can be shared between configure
20289 # scripts and configure runs, see configure's option --config-cache.
20290 # It is not useful on other systems.  If it contains results you don't
20291 # want to keep, you may remove or edit it.
20292 #
20293 # config.status only pays attention to the cache file if you give it
20294 # the --recheck option to rerun configure.
20295 #
20296 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20297 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20298 # following values.
20299
20300 _ACEOF
20301
20302 # The following way of writing the cache mishandles newlines in values,
20303 # but we know of no workaround that is simple, portable, and efficient.
20304 # So, we kill variables containing newlines.
20305 # Ultrix sh set writes to stderr and can't be redirected directly,
20306 # and sets the high bit in the cache file unless we assign to the vars.
20307 (
20308   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20309     eval ac_val=\$$ac_var
20310     case $ac_val in #(
20311     *${as_nl}*)
20312       case $ac_var in #(
20313       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20314 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20315       esac
20316       case $ac_var in #(
20317       _ | IFS | as_nl) ;; #(
20318       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20319       *) { eval $ac_var=; unset $ac_var;} ;;
20320       esac ;;
20321     esac
20322   done
20323
20324   (set) 2>&1 |
20325     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20326     *${as_nl}ac_space=\ *)
20327       # `set' does not quote correctly, so add quotes: double-quote
20328       # substitution turns \\\\ into \\, and sed turns \\ into \.
20329       sed -n \
20330         "s/'/'\\\\''/g;
20331           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20332       ;; #(
20333     *)
20334       # `set' quotes correctly as required by POSIX, so do not add quotes.
20335       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20336       ;;
20337     esac |
20338     sort
20339 ) |
20340   sed '
20341      /^ac_cv_env_/b end
20342      t clear
20343      :clear
20344      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20345      t end
20346      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20347      :end' >>confcache
20348 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20349   if test -w "$cache_file"; then
20350     if test "x$cache_file" != "x/dev/null"; then
20351       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20352 $as_echo "$as_me: updating cache $cache_file" >&6;}
20353       if test ! -f "$cache_file" || test -h "$cache_file"; then
20354         cat confcache >"$cache_file"
20355       else
20356         case $cache_file in #(
20357         */* | ?:*)
20358           mv -f confcache "$cache_file"$$ &&
20359           mv -f "$cache_file"$$ "$cache_file" ;; #(
20360         *)
20361           mv -f confcache "$cache_file" ;;
20362         esac
20363       fi
20364     fi
20365   else
20366     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20367 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20368   fi
20369 fi
20370 rm -f confcache
20371
20372 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20373 # Let make expand exec_prefix.
20374 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20375
20376 DEFS=-DHAVE_CONFIG_H
20377
20378 ac_libobjs=
20379 ac_ltlibobjs=
20380 U=
20381 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20382   # 1. Remove the extension, and $U if already installed.
20383   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20384   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20385   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20386   #    will be set to the directory where LIBOBJS objects are built.
20387   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20388   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20389 done
20390 LIBOBJS=$ac_libobjs
20391
20392 LTLIBOBJS=$ac_ltlibobjs
20393
20394
20395 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20396   as_fn_error $? "conditional \"AMDEP\" was never defined.
20397 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20398 fi
20399 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20400   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20401 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20402 fi
20403 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20404   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20405 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20406 fi
20407 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20408   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20409 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20410 fi
20411
20412 : "${CONFIG_STATUS=./config.status}"
20413 ac_write_fail=0
20414 ac_clean_files_save=$ac_clean_files
20415 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20416 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20417 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20418 as_write_fail=0
20419 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20420 #! $SHELL
20421 # Generated by $as_me.
20422 # Run this file to recreate the current configuration.
20423 # Compiler output produced by configure, useful for debugging
20424 # configure, is in config.log if it exists.
20425
20426 debug=false
20427 ac_cs_recheck=false
20428 ac_cs_silent=false
20429
20430 SHELL=\${CONFIG_SHELL-$SHELL}
20431 export SHELL
20432 _ASEOF
20433 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20434 ## -------------------- ##
20435 ## M4sh Initialization. ##
20436 ## -------------------- ##
20437
20438 # Be more Bourne compatible
20439 DUALCASE=1; export DUALCASE # for MKS sh
20440 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20441   emulate sh
20442   NULLCMD=:
20443   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20444   # is contrary to our usage.  Disable this feature.
20445   alias -g '${1+"$@"}'='"$@"'
20446   setopt NO_GLOB_SUBST
20447 else
20448   case `(set -o) 2>/dev/null` in #(
20449   *posix*) :
20450     set -o posix ;; #(
20451   *) :
20452      ;;
20453 esac
20454 fi
20455
20456
20457 as_nl='
20458 '
20459 export as_nl
20460 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20461 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20462 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20463 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20464 # Prefer a ksh shell builtin over an external printf program on Solaris,
20465 # but without wasting forks for bash or zsh.
20466 if test -z "$BASH_VERSION$ZSH_VERSION" \
20467     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20468   as_echo='print -r --'
20469   as_echo_n='print -rn --'
20470 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20471   as_echo='printf %s\n'
20472   as_echo_n='printf %s'
20473 else
20474   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20475     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20476     as_echo_n='/usr/ucb/echo -n'
20477   else
20478     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20479     as_echo_n_body='eval
20480       arg=$1;
20481       case $arg in #(
20482       *"$as_nl"*)
20483         expr "X$arg" : "X\\(.*\\)$as_nl";
20484         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20485       esac;
20486       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20487     '
20488     export as_echo_n_body
20489     as_echo_n='sh -c $as_echo_n_body as_echo'
20490   fi
20491   export as_echo_body
20492   as_echo='sh -c $as_echo_body as_echo'
20493 fi
20494
20495 # The user is always right.
20496 if test "${PATH_SEPARATOR+set}" != set; then
20497   PATH_SEPARATOR=:
20498   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20499     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20500       PATH_SEPARATOR=';'
20501   }
20502 fi
20503
20504
20505 # IFS
20506 # We need space, tab and new line, in precisely that order.  Quoting is
20507 # there to prevent editors from complaining about space-tab.
20508 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20509 # splitting by setting IFS to empty value.)
20510 IFS=" ""        $as_nl"
20511
20512 # Find who we are.  Look in the path if we contain no directory separator.
20513 as_myself=
20514 case $0 in #((
20515   *[\\/]* ) as_myself=$0 ;;
20516   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20517 for as_dir in $PATH
20518 do
20519   IFS=$as_save_IFS
20520   test -z "$as_dir" && as_dir=.
20521     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20522   done
20523 IFS=$as_save_IFS
20524
20525      ;;
20526 esac
20527 # We did not find ourselves, most probably we were run as `sh COMMAND'
20528 # in which case we are not to be found in the path.
20529 if test "x$as_myself" = x; then
20530   as_myself=$0
20531 fi
20532 if test ! -f "$as_myself"; then
20533   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20534   exit 1
20535 fi
20536
20537 # Unset variables that we do not need and which cause bugs (e.g. in
20538 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
20539 # suppresses any "Segmentation fault" message there.  '((' could
20540 # trigger a bug in pdksh 5.2.14.
20541 for as_var in BASH_ENV ENV MAIL MAILPATH
20542 do eval test x\${$as_var+set} = xset \
20543   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20544 done
20545 PS1='$ '
20546 PS2='> '
20547 PS4='+ '
20548
20549 # NLS nuisances.
20550 LC_ALL=C
20551 export LC_ALL
20552 LANGUAGE=C
20553 export LANGUAGE
20554
20555 # CDPATH.
20556 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20557
20558
20559 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20560 # ----------------------------------------
20561 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20562 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20563 # script with STATUS, using 1 if that was 0.
20564 as_fn_error ()
20565 {
20566   as_status=$1; test $as_status -eq 0 && as_status=1
20567   if test "$4"; then
20568     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20569     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20570   fi
20571   $as_echo "$as_me: error: $2" >&2
20572   as_fn_exit $as_status
20573 } # as_fn_error
20574
20575
20576 # as_fn_set_status STATUS
20577 # -----------------------
20578 # Set $? to STATUS, without forking.
20579 as_fn_set_status ()
20580 {
20581   return $1
20582 } # as_fn_set_status
20583
20584 # as_fn_exit STATUS
20585 # -----------------
20586 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20587 as_fn_exit ()
20588 {
20589   set +e
20590   as_fn_set_status $1
20591   exit $1
20592 } # as_fn_exit
20593
20594 # as_fn_unset VAR
20595 # ---------------
20596 # Portably unset VAR.
20597 as_fn_unset ()
20598 {
20599   { eval $1=; unset $1;}
20600 }
20601 as_unset=as_fn_unset
20602 # as_fn_append VAR VALUE
20603 # ----------------------
20604 # Append the text in VALUE to the end of the definition contained in VAR. Take
20605 # advantage of any shell optimizations that allow amortized linear growth over
20606 # repeated appends, instead of the typical quadratic growth present in naive
20607 # implementations.
20608 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20609   eval 'as_fn_append ()
20610   {
20611     eval $1+=\$2
20612   }'
20613 else
20614   as_fn_append ()
20615   {
20616     eval $1=\$$1\$2
20617   }
20618 fi # as_fn_append
20619
20620 # as_fn_arith ARG...
20621 # ------------------
20622 # Perform arithmetic evaluation on the ARGs, and store the result in the
20623 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20624 # must be portable across $(()) and expr.
20625 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20626   eval 'as_fn_arith ()
20627   {
20628     as_val=$(( $* ))
20629   }'
20630 else
20631   as_fn_arith ()
20632   {
20633     as_val=`expr "$@" || test $? -eq 1`
20634   }
20635 fi # as_fn_arith
20636
20637
20638 if expr a : '\(a\)' >/dev/null 2>&1 &&
20639    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20640   as_expr=expr
20641 else
20642   as_expr=false
20643 fi
20644
20645 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20646   as_basename=basename
20647 else
20648   as_basename=false
20649 fi
20650
20651 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20652   as_dirname=dirname
20653 else
20654   as_dirname=false
20655 fi
20656
20657 as_me=`$as_basename -- "$0" ||
20658 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20659          X"$0" : 'X\(//\)$' \| \
20660          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20661 $as_echo X/"$0" |
20662     sed '/^.*\/\([^/][^/]*\)\/*$/{
20663             s//\1/
20664             q
20665           }
20666           /^X\/\(\/\/\)$/{
20667             s//\1/
20668             q
20669           }
20670           /^X\/\(\/\).*/{
20671             s//\1/
20672             q
20673           }
20674           s/.*/./; q'`
20675
20676 # Avoid depending upon Character Ranges.
20677 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20678 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20679 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20680 as_cr_digits='0123456789'
20681 as_cr_alnum=$as_cr_Letters$as_cr_digits
20682
20683 ECHO_C= ECHO_N= ECHO_T=
20684 case `echo -n x` in #(((((
20685 -n*)
20686   case `echo 'xy\c'` in
20687   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
20688   xy)  ECHO_C='\c';;
20689   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20690        ECHO_T=' ';;
20691   esac;;
20692 *)
20693   ECHO_N='-n';;
20694 esac
20695
20696 rm -f conf$$ conf$$.exe conf$$.file
20697 if test -d conf$$.dir; then
20698   rm -f conf$$.dir/conf$$.file
20699 else
20700   rm -f conf$$.dir
20701   mkdir conf$$.dir 2>/dev/null
20702 fi
20703 if (echo >conf$$.file) 2>/dev/null; then
20704   if ln -s conf$$.file conf$$ 2>/dev/null; then
20705     as_ln_s='ln -s'
20706     # ... but there are two gotchas:
20707     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20708     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20709     # In both cases, we have to default to `cp -p'.
20710     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20711       as_ln_s='cp -p'
20712   elif ln conf$$.file conf$$ 2>/dev/null; then
20713     as_ln_s=ln
20714   else
20715     as_ln_s='cp -p'
20716   fi
20717 else
20718   as_ln_s='cp -p'
20719 fi
20720 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20721 rmdir conf$$.dir 2>/dev/null
20722
20723
20724 # as_fn_mkdir_p
20725 # -------------
20726 # Create "$as_dir" as a directory, including parents if necessary.
20727 as_fn_mkdir_p ()
20728 {
20729
20730   case $as_dir in #(
20731   -*) as_dir=./$as_dir;;
20732   esac
20733   test -d "$as_dir" || eval $as_mkdir_p || {
20734     as_dirs=
20735     while :; do
20736       case $as_dir in #(
20737       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20738       *) as_qdir=$as_dir;;
20739       esac
20740       as_dirs="'$as_qdir' $as_dirs"
20741       as_dir=`$as_dirname -- "$as_dir" ||
20742 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20743          X"$as_dir" : 'X\(//\)[^/]' \| \
20744          X"$as_dir" : 'X\(//\)$' \| \
20745          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20746 $as_echo X"$as_dir" |
20747     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20748             s//\1/
20749             q
20750           }
20751           /^X\(\/\/\)[^/].*/{
20752             s//\1/
20753             q
20754           }
20755           /^X\(\/\/\)$/{
20756             s//\1/
20757             q
20758           }
20759           /^X\(\/\).*/{
20760             s//\1/
20761             q
20762           }
20763           s/.*/./; q'`
20764       test -d "$as_dir" && break
20765     done
20766     test -z "$as_dirs" || eval "mkdir $as_dirs"
20767   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20768
20769
20770 } # as_fn_mkdir_p
20771 if mkdir -p . 2>/dev/null; then
20772   as_mkdir_p='mkdir -p "$as_dir"'
20773 else
20774   test -d ./-p && rmdir ./-p
20775   as_mkdir_p=false
20776 fi
20777
20778 if test -x / >/dev/null 2>&1; then
20779   as_test_x='test -x'
20780 else
20781   if ls -dL / >/dev/null 2>&1; then
20782     as_ls_L_option=L
20783   else
20784     as_ls_L_option=
20785   fi
20786   as_test_x='
20787     eval sh -c '\''
20788       if test -d "$1"; then
20789         test -d "$1/.";
20790       else
20791         case $1 in #(
20792         -*)set "./$1";;
20793         esac;
20794         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20795         ???[sx]*):;;*)false;;esac;fi
20796     '\'' sh
20797   '
20798 fi
20799 as_executable_p=$as_test_x
20800
20801 # Sed expression to map a string onto a valid CPP name.
20802 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20803
20804 # Sed expression to map a string onto a valid variable name.
20805 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20806
20807
20808 exec 6>&1
20809 ## ----------------------------------- ##
20810 ## Main body of $CONFIG_STATUS script. ##
20811 ## ----------------------------------- ##
20812 _ASEOF
20813 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20814
20815 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20816 # Save the log message, to keep $0 and so on meaningful, and to
20817 # report actual input values of CONFIG_FILES etc. instead of their
20818 # values after options handling.
20819 ac_log="
20820 This file was extended by scss $as_me 1.0.0, which was
20821 generated by GNU Autoconf 2.68.  Invocation command line was
20822
20823   CONFIG_FILES    = $CONFIG_FILES
20824   CONFIG_HEADERS  = $CONFIG_HEADERS
20825   CONFIG_LINKS    = $CONFIG_LINKS
20826   CONFIG_COMMANDS = $CONFIG_COMMANDS
20827   $ $0 $@
20828
20829 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20830 "
20831
20832 _ACEOF
20833
20834 case $ac_config_files in *"
20835 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20836 esac
20837
20838 case $ac_config_headers in *"
20839 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20840 esac
20841
20842
20843 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20844 # Files that config.status was made for.
20845 config_files="$ac_config_files"
20846 config_headers="$ac_config_headers"
20847 config_commands="$ac_config_commands"
20848
20849 _ACEOF
20850
20851 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20852 ac_cs_usage="\
20853 \`$as_me' instantiates files and other configuration actions
20854 from templates according to the current configuration.  Unless the files
20855 and actions are specified as TAGs, all are instantiated by default.
20856
20857 Usage: $0 [OPTION]... [TAG]...
20858
20859   -h, --help       print this help, then exit
20860   -V, --version    print version number and configuration settings, then exit
20861       --config     print configuration, then exit
20862   -q, --quiet, --silent
20863                    do not print progress messages
20864   -d, --debug      don't remove temporary files
20865       --recheck    update $as_me by reconfiguring in the same conditions
20866       --file=FILE[:TEMPLATE]
20867                    instantiate the configuration file FILE
20868       --header=FILE[:TEMPLATE]
20869                    instantiate the configuration header FILE
20870
20871 Configuration files:
20872 $config_files
20873
20874 Configuration headers:
20875 $config_headers
20876
20877 Configuration commands:
20878 $config_commands
20879
20880 Report bugs to <konn@users.sourceforge.jp>."
20881
20882 _ACEOF
20883 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20884 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20885 ac_cs_version="\\
20886 scss config.status 1.0.0
20887 configured by $0, generated by GNU Autoconf 2.68,
20888   with options \\"\$ac_cs_config\\"
20889
20890 Copyright (C) 2010 Free Software Foundation, Inc.
20891 This config.status script is free software; the Free Software Foundation
20892 gives unlimited permission to copy, distribute and modify it."
20893
20894 ac_pwd='$ac_pwd'
20895 srcdir='$srcdir'
20896 INSTALL='$INSTALL'
20897 MKDIR_P='$MKDIR_P'
20898 AWK='$AWK'
20899 test -n "\$AWK" || AWK=awk
20900 _ACEOF
20901
20902 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20903 # The default lists apply if the user does not specify any file.
20904 ac_need_defaults=:
20905 while test $# != 0
20906 do
20907   case $1 in
20908   --*=?*)
20909     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20910     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20911     ac_shift=:
20912     ;;
20913   --*=)
20914     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20915     ac_optarg=
20916     ac_shift=:
20917     ;;
20918   *)
20919     ac_option=$1
20920     ac_optarg=$2
20921     ac_shift=shift
20922     ;;
20923   esac
20924
20925   case $ac_option in
20926   # Handling of the options.
20927   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20928     ac_cs_recheck=: ;;
20929   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20930     $as_echo "$ac_cs_version"; exit ;;
20931   --config | --confi | --conf | --con | --co | --c )
20932     $as_echo "$ac_cs_config"; exit ;;
20933   --debug | --debu | --deb | --de | --d | -d )
20934     debug=: ;;
20935   --file | --fil | --fi | --f )
20936     $ac_shift
20937     case $ac_optarg in
20938     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20939     '') as_fn_error $? "missing file argument" ;;
20940     esac
20941     as_fn_append CONFIG_FILES " '$ac_optarg'"
20942     ac_need_defaults=false;;
20943   --header | --heade | --head | --hea )
20944     $ac_shift
20945     case $ac_optarg in
20946     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20947     esac
20948     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20949     ac_need_defaults=false;;
20950   --he | --h)
20951     # Conflict between --help and --header
20952     as_fn_error $? "ambiguous option: \`$1'
20953 Try \`$0 --help' for more information.";;
20954   --help | --hel | -h )
20955     $as_echo "$ac_cs_usage"; exit ;;
20956   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20957   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20958     ac_cs_silent=: ;;
20959
20960   # This is an error.
20961   -*) as_fn_error $? "unrecognized option: \`$1'
20962 Try \`$0 --help' for more information." ;;
20963
20964   *) as_fn_append ac_config_targets " $1"
20965      ac_need_defaults=false ;;
20966
20967   esac
20968   shift
20969 done
20970
20971 ac_configure_extra_args=
20972
20973 if $ac_cs_silent; then
20974   exec 6>/dev/null
20975   ac_configure_extra_args="$ac_configure_extra_args --silent"
20976 fi
20977
20978 _ACEOF
20979 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20980 if \$ac_cs_recheck; then
20981   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20982   shift
20983   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20984   CONFIG_SHELL='$SHELL'
20985   export CONFIG_SHELL
20986   exec "\$@"
20987 fi
20988
20989 _ACEOF
20990 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20991 exec 5>>config.log
20992 {
20993   echo
20994   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20995 ## Running $as_me. ##
20996 _ASBOX
20997   $as_echo "$ac_log"
20998 } >&5
20999
21000 _ACEOF
21001 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21002 #
21003 # INIT-COMMANDS
21004 #
21005 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21006
21007 _ACEOF
21008
21009 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21010
21011 # Handling of arguments.
21012 for ac_config_target in $ac_config_targets
21013 do
21014   case $ac_config_target in
21015     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
21016     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21017     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21018     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21019
21020   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21021   esac
21022 done
21023
21024
21025 # If the user did not use the arguments to specify the items to instantiate,
21026 # then the envvar interface is used.  Set only those that are not.
21027 # We use the long form for the default assignment because of an extremely
21028 # bizarre bug on SunOS 4.1.3.
21029 if $ac_need_defaults; then
21030   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21031   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21032   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21033 fi
21034
21035 # Have a temporary directory for convenience.  Make it in the build tree
21036 # simply because there is no reason against having it here, and in addition,
21037 # creating and moving files from /tmp can sometimes cause problems.
21038 # Hook for its removal unless debugging.
21039 # Note that there is a small window in which the directory will not be cleaned:
21040 # after its creation but before its name has been assigned to `$tmp'.
21041 $debug ||
21042 {
21043   tmp= ac_tmp=
21044   trap 'exit_status=$?
21045   : "${ac_tmp:=$tmp}"
21046   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21047 ' 0
21048   trap 'as_fn_exit 1' 1 2 13 15
21049 }
21050 # Create a (secure) tmp directory for tmp files.
21051
21052 {
21053   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21054   test -d "$tmp"
21055 }  ||
21056 {
21057   tmp=./conf$$-$RANDOM
21058   (umask 077 && mkdir "$tmp")
21059 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21060 ac_tmp=$tmp
21061
21062 # Set up the scripts for CONFIG_FILES section.
21063 # No need to generate them if there are no CONFIG_FILES.
21064 # This happens for instance with `./config.status config.h'.
21065 if test -n "$CONFIG_FILES"; then
21066
21067
21068 ac_cr=`echo X | tr X '\015'`
21069 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21070 # But we know of no other shell where ac_cr would be empty at this
21071 # point, so we can use a bashism as a fallback.
21072 if test "x$ac_cr" = x; then
21073   eval ac_cr=\$\'\\r\'
21074 fi
21075 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21076 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21077   ac_cs_awk_cr='\\r'
21078 else
21079   ac_cs_awk_cr=$ac_cr
21080 fi
21081
21082 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21083 _ACEOF
21084
21085
21086 {
21087   echo "cat >conf$$subs.awk <<_ACEOF" &&
21088   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21089   echo "_ACEOF"
21090 } >conf$$subs.sh ||
21091   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21092 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21093 ac_delim='%!_!# '
21094 for ac_last_try in false false false false false :; do
21095   . ./conf$$subs.sh ||
21096     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21097
21098   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21099   if test $ac_delim_n = $ac_delim_num; then
21100     break
21101   elif $ac_last_try; then
21102     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21103   else
21104     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21105   fi
21106 done
21107 rm -f conf$$subs.sh
21108
21109 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21110 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21111 _ACEOF
21112 sed -n '
21113 h
21114 s/^/S["/; s/!.*/"]=/
21115 p
21116 g
21117 s/^[^!]*!//
21118 :repl
21119 t repl
21120 s/'"$ac_delim"'$//
21121 t delim
21122 :nl
21123 h
21124 s/\(.\{148\}\)..*/\1/
21125 t more1
21126 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21127 p
21128 n
21129 b repl
21130 :more1
21131 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21132 p
21133 g
21134 s/.\{148\}//
21135 t nl
21136 :delim
21137 h
21138 s/\(.\{148\}\)..*/\1/
21139 t more2
21140 s/["\\]/\\&/g; s/^/"/; s/$/"/
21141 p
21142 b
21143 :more2
21144 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21145 p
21146 g
21147 s/.\{148\}//
21148 t delim
21149 ' <conf$$subs.awk | sed '
21150 /^[^""]/{
21151   N
21152   s/\n//
21153 }
21154 ' >>$CONFIG_STATUS || ac_write_fail=1
21155 rm -f conf$$subs.awk
21156 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21157 _ACAWK
21158 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21159   for (key in S) S_is_set[key] = 1
21160   FS = "\a"
21161
21162 }
21163 {
21164   line = $ 0
21165   nfields = split(line, field, "@")
21166   substed = 0
21167   len = length(field[1])
21168   for (i = 2; i < nfields; i++) {
21169     key = field[i]
21170     keylen = length(key)
21171     if (S_is_set[key]) {
21172       value = S[key]
21173       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21174       len += length(value) + length(field[++i])
21175       substed = 1
21176     } else
21177       len += 1 + keylen
21178   }
21179
21180   print line
21181 }
21182
21183 _ACAWK
21184 _ACEOF
21185 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21186 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21187   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21188 else
21189   cat
21190 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21191   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21192 _ACEOF
21193
21194 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21195 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21196 # trailing colons and then remove the whole line if VPATH becomes empty
21197 # (actually we leave an empty line to preserve line numbers).
21198 if test "x$srcdir" = x.; then
21199   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
21200 h
21201 s///
21202 s/^/:/
21203 s/[      ]*$/:/
21204 s/:\$(srcdir):/:/g
21205 s/:\${srcdir}:/:/g
21206 s/:@srcdir@:/:/g
21207 s/^:*//
21208 s/:*$//
21209 x
21210 s/\(=[   ]*\).*/\1/
21211 G
21212 s/\n//
21213 s/^[^=]*=[       ]*$//
21214 }'
21215 fi
21216
21217 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21218 fi # test -n "$CONFIG_FILES"
21219
21220 # Set up the scripts for CONFIG_HEADERS section.
21221 # No need to generate them if there are no CONFIG_HEADERS.
21222 # This happens for instance with `./config.status Makefile'.
21223 if test -n "$CONFIG_HEADERS"; then
21224 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21225 BEGIN {
21226 _ACEOF
21227
21228 # Transform confdefs.h into an awk script `defines.awk', embedded as
21229 # here-document in config.status, that substitutes the proper values into
21230 # config.h.in to produce config.h.
21231
21232 # Create a delimiter string that does not exist in confdefs.h, to ease
21233 # handling of long lines.
21234 ac_delim='%!_!# '
21235 for ac_last_try in false false :; do
21236   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21237   if test -z "$ac_tt"; then
21238     break
21239   elif $ac_last_try; then
21240     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21241   else
21242     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21243   fi
21244 done
21245
21246 # For the awk script, D is an array of macro values keyed by name,
21247 # likewise P contains macro parameters if any.  Preserve backslash
21248 # newline sequences.
21249
21250 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21251 sed -n '
21252 s/.\{148\}/&'"$ac_delim"'/g
21253 t rset
21254 :rset
21255 s/^[     ]*#[    ]*define[       ][      ]*/ /
21256 t def
21257 d
21258 :def
21259 s/\\$//
21260 t bsnl
21261 s/["\\]/\\&/g
21262 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
21263 D["\1"]=" \3"/p
21264 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
21265 d
21266 :bsnl
21267 s/["\\]/\\&/g
21268 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
21269 D["\1"]=" \3\\\\\\n"\\/p
21270 t cont
21271 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21272 t cont
21273 d
21274 :cont
21275 n
21276 s/.\{148\}/&'"$ac_delim"'/g
21277 t clear
21278 :clear
21279 s/\\$//
21280 t bsnlc
21281 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21282 d
21283 :bsnlc
21284 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21285 b cont
21286 ' <confdefs.h | sed '
21287 s/'"$ac_delim"'/"\\\
21288 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21289
21290 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21291   for (key in D) D_is_set[key] = 1
21292   FS = "\a"
21293 }
21294 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21295   line = \$ 0
21296   split(line, arg, " ")
21297   if (arg[1] == "#") {
21298     defundef = arg[2]
21299     mac1 = arg[3]
21300   } else {
21301     defundef = substr(arg[1], 2)
21302     mac1 = arg[2]
21303   }
21304   split(mac1, mac2, "(") #)
21305   macro = mac2[1]
21306   prefix = substr(line, 1, index(line, defundef) - 1)
21307   if (D_is_set[macro]) {
21308     # Preserve the white space surrounding the "#".
21309     print prefix "define", macro P[macro] D[macro]
21310     next
21311   } else {
21312     # Replace #undef with comments.  This is necessary, for example,
21313     # in the case of _POSIX_SOURCE, which is predefined and required
21314     # on some systems where configure will not decide to define it.
21315     if (defundef == "undef") {
21316       print "/*", prefix defundef, macro, "*/"
21317       next
21318     }
21319   }
21320 }
21321 { print }
21322 _ACAWK
21323 _ACEOF
21324 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21325   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21326 fi # test -n "$CONFIG_HEADERS"
21327
21328
21329 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21330 shift
21331 for ac_tag
21332 do
21333   case $ac_tag in
21334   :[FHLC]) ac_mode=$ac_tag; continue;;
21335   esac
21336   case $ac_mode$ac_tag in
21337   :[FHL]*:*);;
21338   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21339   :[FH]-) ac_tag=-:-;;
21340   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21341   esac
21342   ac_save_IFS=$IFS
21343   IFS=:
21344   set x $ac_tag
21345   IFS=$ac_save_IFS
21346   shift
21347   ac_file=$1
21348   shift
21349
21350   case $ac_mode in
21351   :L) ac_source=$1;;
21352   :[FH])
21353     ac_file_inputs=
21354     for ac_f
21355     do
21356       case $ac_f in
21357       -) ac_f="$ac_tmp/stdin";;
21358       *) # Look for the file first in the build tree, then in the source tree
21359          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21360          # because $ac_f cannot contain `:'.
21361          test -f "$ac_f" ||
21362            case $ac_f in
21363            [\\/$]*) false;;
21364            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21365            esac ||
21366            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21367       esac
21368       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21369       as_fn_append ac_file_inputs " '$ac_f'"
21370     done
21371
21372     # Let's still pretend it is `configure' which instantiates (i.e., don't
21373     # use $as_me), people would be surprised to read:
21374     #    /* config.h.  Generated by config.status.  */
21375     configure_input='Generated from '`
21376           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21377         `' by configure.'
21378     if test x"$ac_file" != x-; then
21379       configure_input="$ac_file.  $configure_input"
21380       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21381 $as_echo "$as_me: creating $ac_file" >&6;}
21382     fi
21383     # Neutralize special characters interpreted by sed in replacement strings.
21384     case $configure_input in #(
21385     *\&* | *\|* | *\\* )
21386        ac_sed_conf_input=`$as_echo "$configure_input" |
21387        sed 's/[\\\\&|]/\\\\&/g'`;; #(
21388     *) ac_sed_conf_input=$configure_input;;
21389     esac
21390
21391     case $ac_tag in
21392     *:-:* | *:-) cat >"$ac_tmp/stdin" \
21393       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21394     esac
21395     ;;
21396   esac
21397
21398   ac_dir=`$as_dirname -- "$ac_file" ||
21399 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21400          X"$ac_file" : 'X\(//\)[^/]' \| \
21401          X"$ac_file" : 'X\(//\)$' \| \
21402          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21403 $as_echo X"$ac_file" |
21404     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21405             s//\1/
21406             q
21407           }
21408           /^X\(\/\/\)[^/].*/{
21409             s//\1/
21410             q
21411           }
21412           /^X\(\/\/\)$/{
21413             s//\1/
21414             q
21415           }
21416           /^X\(\/\).*/{
21417             s//\1/
21418             q
21419           }
21420           s/.*/./; q'`
21421   as_dir="$ac_dir"; as_fn_mkdir_p
21422   ac_builddir=.
21423
21424 case "$ac_dir" in
21425 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21426 *)
21427   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21428   # A ".." for each directory in $ac_dir_suffix.
21429   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21430   case $ac_top_builddir_sub in
21431   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21432   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21433   esac ;;
21434 esac
21435 ac_abs_top_builddir=$ac_pwd
21436 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21437 # for backward compatibility:
21438 ac_top_builddir=$ac_top_build_prefix
21439
21440 case $srcdir in
21441   .)  # We are building in place.
21442     ac_srcdir=.
21443     ac_top_srcdir=$ac_top_builddir_sub
21444     ac_abs_top_srcdir=$ac_pwd ;;
21445   [\\/]* | ?:[\\/]* )  # Absolute name.
21446     ac_srcdir=$srcdir$ac_dir_suffix;
21447     ac_top_srcdir=$srcdir
21448     ac_abs_top_srcdir=$srcdir ;;
21449   *) # Relative name.
21450     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21451     ac_top_srcdir=$ac_top_build_prefix$srcdir
21452     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21453 esac
21454 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21455
21456
21457   case $ac_mode in
21458   :F)
21459   #
21460   # CONFIG_FILE
21461   #
21462
21463   case $INSTALL in
21464   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21465   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21466   esac
21467   ac_MKDIR_P=$MKDIR_P
21468   case $MKDIR_P in
21469   [\\/$]* | ?:[\\/]* ) ;;
21470   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21471   esac
21472 _ACEOF
21473
21474 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21475 # If the template does not know about datarootdir, expand it.
21476 # FIXME: This hack should be removed a few years after 2.60.
21477 ac_datarootdir_hack=; ac_datarootdir_seen=
21478 ac_sed_dataroot='
21479 /datarootdir/ {
21480   p
21481   q
21482 }
21483 /@datadir@/p
21484 /@docdir@/p
21485 /@infodir@/p
21486 /@localedir@/p
21487 /@mandir@/p'
21488 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21489 *datarootdir*) ac_datarootdir_seen=yes;;
21490 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21491   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21492 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21493 _ACEOF
21494 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21495   ac_datarootdir_hack='
21496   s&@datadir@&$datadir&g
21497   s&@docdir@&$docdir&g
21498   s&@infodir@&$infodir&g
21499   s&@localedir@&$localedir&g
21500   s&@mandir@&$mandir&g
21501   s&\\\${datarootdir}&$datarootdir&g' ;;
21502 esac
21503 _ACEOF
21504
21505 # Neutralize VPATH when `$srcdir' = `.'.
21506 # Shell code in configure.ac might set extrasub.
21507 # FIXME: do we really want to maintain this feature?
21508 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21509 ac_sed_extra="$ac_vpsub
21510 $extrasub
21511 _ACEOF
21512 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21513 :t
21514 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21515 s|@configure_input@|$ac_sed_conf_input|;t t
21516 s&@top_builddir@&$ac_top_builddir_sub&;t t
21517 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21518 s&@srcdir@&$ac_srcdir&;t t
21519 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21520 s&@top_srcdir@&$ac_top_srcdir&;t t
21521 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21522 s&@builddir@&$ac_builddir&;t t
21523 s&@abs_builddir@&$ac_abs_builddir&;t t
21524 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21525 s&@INSTALL@&$ac_INSTALL&;t t
21526 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21527 $ac_datarootdir_hack
21528 "
21529 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21530   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21531
21532 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21533   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21534   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
21535       "$ac_tmp/out"`; test -z "$ac_out"; } &&
21536   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21537 which seems to be undefined.  Please make sure it is defined" >&5
21538 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21539 which seems to be undefined.  Please make sure it is defined" >&2;}
21540
21541   rm -f "$ac_tmp/stdin"
21542   case $ac_file in
21543   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21544   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21545   esac \
21546   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21547  ;;
21548   :H)
21549   #
21550   # CONFIG_HEADER
21551   #
21552   if test x"$ac_file" != x-; then
21553     {
21554       $as_echo "/* $configure_input  */" \
21555       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21556     } >"$ac_tmp/config.h" \
21557       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21558     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21559       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21560 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21561     else
21562       rm -f "$ac_file"
21563       mv "$ac_tmp/config.h" "$ac_file" \
21564         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21565     fi
21566   else
21567     $as_echo "/* $configure_input  */" \
21568       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21569       || as_fn_error $? "could not create -" "$LINENO" 5
21570   fi
21571 # Compute "$ac_file"'s index in $config_headers.
21572 _am_arg="$ac_file"
21573 _am_stamp_count=1
21574 for _am_header in $config_headers :; do
21575   case $_am_header in
21576     $_am_arg | $_am_arg:* )
21577       break ;;
21578     * )
21579       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21580   esac
21581 done
21582 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21583 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21584          X"$_am_arg" : 'X\(//\)[^/]' \| \
21585          X"$_am_arg" : 'X\(//\)$' \| \
21586          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21587 $as_echo X"$_am_arg" |
21588     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21589             s//\1/
21590             q
21591           }
21592           /^X\(\/\/\)[^/].*/{
21593             s//\1/
21594             q
21595           }
21596           /^X\(\/\/\)$/{
21597             s//\1/
21598             q
21599           }
21600           /^X\(\/\).*/{
21601             s//\1/
21602             q
21603           }
21604           s/.*/./; q'`/stamp-h$_am_stamp_count
21605  ;;
21606
21607   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21608 $as_echo "$as_me: executing $ac_file commands" >&6;}
21609  ;;
21610   esac
21611
21612
21613   case $ac_file$ac_mode in
21614     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21615   # Strip MF so we end up with the name of the file.
21616   mf=`echo "$mf" | sed -e 's/:.*$//'`
21617   # Check whether this is an Automake generated Makefile or not.
21618   # We used to match only the files named `Makefile.in', but
21619   # some people rename them; so instead we look at the file content.
21620   # Grep'ing the first line is not enough: some people post-process
21621   # each Makefile.in and add a new line on top of each file to say so.
21622   # Grep'ing the whole file is not good either: AIX grep has a line
21623   # limit of 2048, but all sed's we know have understand at least 4000.
21624   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21625     dirpart=`$as_dirname -- "$mf" ||
21626 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21627          X"$mf" : 'X\(//\)[^/]' \| \
21628          X"$mf" : 'X\(//\)$' \| \
21629          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21630 $as_echo X"$mf" |
21631     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21632             s//\1/
21633             q
21634           }
21635           /^X\(\/\/\)[^/].*/{
21636             s//\1/
21637             q
21638           }
21639           /^X\(\/\/\)$/{
21640             s//\1/
21641             q
21642           }
21643           /^X\(\/\).*/{
21644             s//\1/
21645             q
21646           }
21647           s/.*/./; q'`
21648   else
21649     continue
21650   fi
21651   # Extract the definition of DEPDIR, am__include, and am__quote
21652   # from the Makefile without running `make'.
21653   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21654   test -z "$DEPDIR" && continue
21655   am__include=`sed -n 's/^am__include = //p' < "$mf"`
21656   test -z "am__include" && continue
21657   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21658   # When using ansi2knr, U may be empty or an underscore; expand it
21659   U=`sed -n 's/^U = //p' < "$mf"`
21660   # Find all dependency output files, they are included files with
21661   # $(DEPDIR) in their names.  We invoke sed twice because it is the
21662   # simplest approach to changing $(DEPDIR) to its actual value in the
21663   # expansion.
21664   for file in `sed -n "
21665     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21666        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21667     # Make sure the directory exists.
21668     test -f "$dirpart/$file" && continue
21669     fdir=`$as_dirname -- "$file" ||
21670 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21671          X"$file" : 'X\(//\)[^/]' \| \
21672          X"$file" : 'X\(//\)$' \| \
21673          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21674 $as_echo X"$file" |
21675     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21676             s//\1/
21677             q
21678           }
21679           /^X\(\/\/\)[^/].*/{
21680             s//\1/
21681             q
21682           }
21683           /^X\(\/\/\)$/{
21684             s//\1/
21685             q
21686           }
21687           /^X\(\/\).*/{
21688             s//\1/
21689             q
21690           }
21691           s/.*/./; q'`
21692     as_dir=$dirpart/$fdir; as_fn_mkdir_p
21693     # echo "creating $dirpart/$file"
21694     echo '# dummy' > "$dirpart/$file"
21695   done
21696 done
21697  ;;
21698
21699   esac
21700 done # for ac_tag
21701
21702
21703 as_fn_exit 0
21704 _ACEOF
21705 ac_clean_files=$ac_clean_files_save
21706
21707 test $ac_write_fail = 0 ||
21708   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21709
21710
21711 # configure is writing to config.log, and then calls config.status.
21712 # config.status does its own redirection, appending to config.log.
21713 # Unfortunately, on DOS this fails, as config.log is still kept open
21714 # by configure, so config.status won't be able to write to it; its
21715 # output is simply discarded.  So we exec the FD to /dev/null,
21716 # effectively closing config.log, so it can be properly (re)opened and
21717 # appended to by config.status.  When coming back to configure, we
21718 # need to make the FD available again.
21719 if test "$no_create" != yes; then
21720   ac_cs_success=:
21721   ac_config_status_args=
21722   test "$silent" = yes &&
21723     ac_config_status_args="$ac_config_status_args --quiet"
21724   exec 5>/dev/null
21725   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21726   exec 5>>config.log
21727   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21728   # would make configure fail if this is the last instruction.
21729   $ac_cs_success || as_fn_exit 1
21730 fi
21731 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21732   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21733 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21734 fi
21735