commit some automake cruft
[official-gcc.git] / libgpython / autom4te.cache / output.1
blob562c900a3fa96ddfde1f943fd901b4acd53e1e38
1 @%:@! /bin/sh
2 @%:@ Guess values for system-dependent variables and create Makefiles.
3 @%:@ Generated by GNU Autoconf 2.67 for GNU Python Runtime Library 0.1.
4 @%:@ 
5 @%:@ 
6 @%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 @%:@ 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 @%:@ Foundation, Inc.
9 @%:@ 
10 @%:@ 
11 @%:@ This configure script is free software; the Free Software Foundation
12 @%:@ gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in @%:@(
28   *posix*) :
29     set -o posix ;; @%:@(
30   *) :
31      ;;
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in @%:@(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
91 # Find who we are.  Look in the path if we contain no directory separator.
92 case $0 in @%:@((
93   *[\\/]* ) as_myself=$0 ;;
94   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
97   IFS=$as_save_IFS
98   test -z "$as_dir" && as_dir=.
99     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100   done
101 IFS=$as_save_IFS
103      ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108   as_myself=$0
110 if test ! -f "$as_myself"; then
111   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112   exit 1
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there.  '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138   emulate sh
139   NULLCMD=:
140   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141   # is contrary to our usage.  Disable this feature.
142   alias -g '\${1+\"\$@\"}'='\"\$@\"'
143   setopt NO_GLOB_SUBST
144 else
145   case \`(set -o) 2>/dev/null\` in @%:@(
146   *posix*) :
147     set -o posix ;; @%:@(
148   *) :
149      ;;
150 esac
153   as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165   
166 else
167   exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175   if (eval "$as_required") 2>/dev/null; then :
176   as_have_required=yes
177 else
178   as_have_required=no
180   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181   
182 else
183   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187   IFS=$as_save_IFS
188   test -z "$as_dir" && as_dir=.
189   as_found=:
190   case $as_dir in @%:@(
191          /*)
192            for as_base in sh bash ksh sh5; do
193              # Try only shells that exist, to save several forks.
194              as_shell=$as_dir/$as_base
195              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197   CONFIG_SHELL=$as_shell as_have_required=yes
198                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   break 2
202            done;;
203        esac
204   as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208   CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
213       if test "x$CONFIG_SHELL" != x; then :
214   # We cannot yet assume a decent shell, so we have to provide a
215         # neutralization value for shells without unset; and this also
216         # works around shells that cannot unset nonexistent variables.
217         BASH_ENV=/dev/null
218         ENV=/dev/null
219         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220         export CONFIG_SHELL
221         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224     if test x$as_have_required = xno; then :
225   $as_echo "$0: This script requires a shell more modern than all"
226   $as_echo "$0: the shells that I found on your system."
227   if test x${ZSH_VERSION+set} = xset ; then
228     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230   else
231     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
235   fi
236   exit 1
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 @%:@ as_fn_unset VAR
250 @%:@ ---------------
251 @%:@ Portably unset VAR.
252 as_fn_unset ()
254   { eval $1=; unset $1;}
256 as_unset=as_fn_unset
258 @%:@ as_fn_set_status STATUS
259 @%:@ -----------------------
260 @%:@ Set @S|@? to STATUS, without forking.
261 as_fn_set_status ()
263   return $1
264 } @%:@ as_fn_set_status
266 @%:@ as_fn_exit STATUS
267 @%:@ -----------------
268 @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
271   set +e
272   as_fn_set_status $1
273   exit $1
274 } @%:@ as_fn_exit
276 @%:@ as_fn_mkdir_p
277 @%:@ -------------
278 @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
282   case $as_dir in #(
283   -*) as_dir=./$as_dir;;
284   esac
285   test -d "$as_dir" || eval $as_mkdir_p || {
286     as_dirs=
287     while :; do
288       case $as_dir in #(
289       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290       *) as_qdir=$as_dir;;
291       esac
292       as_dirs="'$as_qdir' $as_dirs"
293       as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295          X"$as_dir" : 'X\(//\)[^/]' \| \
296          X"$as_dir" : 'X\(//\)$' \| \
297          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300             s//\1/
301             q
302           }
303           /^X\(\/\/\)[^/].*/{
304             s//\1/
305             q
306           }
307           /^X\(\/\/\)$/{
308             s//\1/
309             q
310           }
311           /^X\(\/\).*/{
312             s//\1/
313             q
314           }
315           s/.*/./; q'`
316       test -d "$as_dir" && break
317     done
318     test -z "$as_dirs" || eval "mkdir $as_dirs"
319   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
322 } @%:@ as_fn_mkdir_p
323 @%:@ as_fn_append VAR VALUE
324 @%:@ ----------------------
325 @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
326 @%:@ advantage of any shell optimizations that allow amortized linear growth over
327 @%:@ repeated appends, instead of the typical quadratic growth present in naive
328 @%:@ implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330   eval 'as_fn_append ()
331   {
332     eval $1+=\$2
333   }'
334 else
335   as_fn_append ()
336   {
337     eval $1=\$$1\$2
338   }
339 fi # as_fn_append
341 @%:@ as_fn_arith ARG...
342 @%:@ ------------------
343 @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
344 @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
345 @%:@ must be portable across @S|@(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347   eval 'as_fn_arith ()
348   {
349     as_val=$(( $* ))
350   }'
351 else
352   as_fn_arith ()
353   {
354     as_val=`expr "$@" || test $? -eq 1`
355   }
356 fi # as_fn_arith
359 @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
360 @%:@ ----------------------------------------
361 @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 @%:@ script with STATUS, using 1 if that was 0.
364 as_fn_error ()
366   as_status=$1; test $as_status -eq 0 && as_status=1
367   if test "$4"; then
368     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
370   fi
371   $as_echo "$as_me: error: $2" >&2
372   as_fn_exit $as_status
373 } @%:@ as_fn_error
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376    test "X`expr 00001 : '.*\(...\)'`" = X001; then
377   as_expr=expr
378 else
379   as_expr=false
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383   as_basename=basename
384 else
385   as_basename=false
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389   as_dirname=dirname
390 else
391   as_dirname=false
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396          X"$0" : 'X\(//\)$' \| \
397          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399     sed '/^.*\/\([^/][^/]*\)\/*$/{
400             s//\1/
401             q
402           }
403           /^X\/\(\/\/\)$/{
404             s//\1/
405             q
406           }
407           /^X\/\(\/\).*/{
408             s//\1/
409             q
410           }
411           s/.*/./; q'`
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
421   as_lineno_1=$LINENO as_lineno_1a=$LINENO
422   as_lineno_2=$LINENO as_lineno_2a=$LINENO
423   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
426   sed -n '
427     p
428     /[$]LINENO/=
429   ' <$as_myself |
430     sed '
431       s/[$]LINENO.*/&-/
432       t lineno
433       b
434       :lineno
435       N
436       :loop
437       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438       t loop
439       s/-\n.*//
440     ' >$as_me.lineno &&
441   chmod +x "$as_me.lineno" ||
442     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444   # Don't try to exec as it changes $[0], causing all sort of problems
445   # (the dirname of $[0] is not the place where we might find the
446   # original and so on.  Autoconf is especially sensitive to this).
447   . "./$as_me.lineno"
448   # Exit status is that of the last command.
449   exit
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in @%:@(((((
454 -n*)
455   case `echo 'xy\c'` in
456   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
457   xy)  ECHO_C='\c';;
458   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
459        ECHO_T=' ';;
460   esac;;
462   ECHO_N='-n';;
463 esac
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467   rm -f conf$$.dir/conf$$.file
468 else
469   rm -f conf$$.dir
470   mkdir conf$$.dir 2>/dev/null
472 if (echo >conf$$.file) 2>/dev/null; then
473   if ln -s conf$$.file conf$$ 2>/dev/null; then
474     as_ln_s='ln -s'
475     # ... but there are two gotchas:
476     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478     # In both cases, we have to default to `cp -p'.
479     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480       as_ln_s='cp -p'
481   elif ln conf$$.file conf$$ 2>/dev/null; then
482     as_ln_s=ln
483   else
484     as_ln_s='cp -p'
485   fi
486 else
487   as_ln_s='cp -p'
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
492 if mkdir -p . 2>/dev/null; then
493   as_mkdir_p='mkdir -p "$as_dir"'
494 else
495   test -d ./-p && rmdir ./-p
496   as_mkdir_p=false
499 if test -x / >/dev/null 2>&1; then
500   as_test_x='test -x'
501 else
502   if ls -dL / >/dev/null 2>&1; then
503     as_ls_L_option=L
504   else
505     as_ls_L_option=
506   fi
507   as_test_x='
508     eval sh -c '\''
509       if test -d "$1"; then
510         test -d "$1/.";
511       else
512         case $1 in @%:@(
513         -*)set "./$1";;
514         esac;
515         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
516         ???[sx]*):;;*)false;;esac;fi
517     '\'' sh
518   '
520 as_executable_p=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530 # Check that we are running under the correct shell.
531 SHELL=${CONFIG_SHELL-/bin/sh}
533 case X$lt_ECHO in
534 X*--fallback-echo)
535   # Remove one level of quotation (which was required for Make).
536   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
537   ;;
538 esac
540 ECHO=${lt_ECHO-echo}
541 if test "X$1" = X--no-reexec; then
542   # Discard the --no-reexec flag, and continue.
543   shift
544 elif test "X$1" = X--fallback-echo; then
545   # Avoid inline document here, it may be left over
546   :
547 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
548   # Yippee, $ECHO works!
549   :
550 else
551   # Restart under the correct shell.
552   exec $SHELL "$0" --no-reexec ${1+"$@"}
555 if test "X$1" = X--fallback-echo; then
556   # used as fallback echo
557   shift
558   cat <<_LT_EOF
560 _LT_EOF
561   exit 0
564 # The HP-UX ksh and POSIX shell print the target directory to stdout
565 # if CDPATH is set.
566 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
568 if test -z "$lt_ECHO"; then
569   if test "X${echo_test_string+set}" != Xset; then
570     # find a string as large as possible, as long as the shell can cope with it
571     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
572       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
573       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
574          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
575       then
576         break
577       fi
578     done
579   fi
581   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
582      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
583      test "X$echo_testing_string" = "X$echo_test_string"; then
584     :
585   else
586     # The Solaris, AIX, and Digital Unix default echo programs unquote
587     # backslashes.  This makes it impossible to quote backslashes using
588     #   echo "$something" | sed 's/\\/\\\\/g'
589     #
590     # So, first we look for a working echo in the user's PATH.
592     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
593     for dir in $PATH /usr/ucb; do
594       IFS="$lt_save_ifs"
595       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
596          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
597          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
598          test "X$echo_testing_string" = "X$echo_test_string"; then
599         ECHO="$dir/echo"
600         break
601       fi
602     done
603     IFS="$lt_save_ifs"
605     if test "X$ECHO" = Xecho; then
606       # We didn't find a better echo, so look for alternatives.
607       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
608          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
609          test "X$echo_testing_string" = "X$echo_test_string"; then
610         # This shell has a builtin print -r that does the trick.
611         ECHO='print -r'
612       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
613            test "X$CONFIG_SHELL" != X/bin/ksh; then
614         # If we have ksh, try running configure again with it.
615         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
616         export ORIGINAL_CONFIG_SHELL
617         CONFIG_SHELL=/bin/ksh
618         export CONFIG_SHELL
619         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
620       else
621         # Try using printf.
622         ECHO='printf %s\n'
623         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
624            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
625            test "X$echo_testing_string" = "X$echo_test_string"; then
626           # Cool, printf works
627           :
628         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
629              test "X$echo_testing_string" = 'X\t' &&
630              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
631              test "X$echo_testing_string" = "X$echo_test_string"; then
632           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
633           export CONFIG_SHELL
634           SHELL="$CONFIG_SHELL"
635           export SHELL
636           ECHO="$CONFIG_SHELL $0 --fallback-echo"
637         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638              test "X$echo_testing_string" = 'X\t' &&
639              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640              test "X$echo_testing_string" = "X$echo_test_string"; then
641           ECHO="$CONFIG_SHELL $0 --fallback-echo"
642         else
643           # maybe with a smaller string...
644           prev=:
646           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
647             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
648             then
649               break
650             fi
651             prev="$cmd"
652           done
654           if test "$prev" != 'sed 50q "$0"'; then
655             echo_test_string=`eval $prev`
656             export echo_test_string
657             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
658           else
659             # Oops.  We lost completely, so just stick with echo.
660             ECHO=echo
661           fi
662         fi
663       fi
664     fi
665   fi
668 # Copy echo and quote the copy suitably for passing to libtool from
669 # the Makefile, instead of quoting the original, which is used later.
670 lt_ECHO=$ECHO
671 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
672    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
678 test -n "$DJDIR" || exec 7<&0 </dev/null
679 exec 6>&1
681 # Name of the host.
682 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
683 # so uname gets run too.
684 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
687 # Initializations.
689 ac_default_prefix=/usr/local
690 ac_clean_files=
691 ac_config_libobj_dir=.
692 LIB@&t@OBJS=
693 cross_compiling=no
694 subdirs=
695 MFLAGS=
696 MAKEFLAGS=
698 # Identity of this package.
699 PACKAGE_NAME='GNU Python Runtime Library'
700 PACKAGE_TARNAME='libgpython'
701 PACKAGE_VERSION='0.1'
702 PACKAGE_STRING='GNU Python Runtime Library 0.1'
703 PACKAGE_BUGREPORT=''
704 PACKAGE_URL='http://www.gnu.org/software/libgpython/'
706 # Factoring default headers for most tests.
707 ac_includes_default="\
708 #include <stdio.h>
709 #ifdef HAVE_SYS_TYPES_H
710 # include <sys/types.h>
711 #endif
712 #ifdef HAVE_SYS_STAT_H
713 # include <sys/stat.h>
714 #endif
715 #ifdef STDC_HEADERS
716 # include <stdlib.h>
717 # include <stddef.h>
718 #else
719 # ifdef HAVE_STDLIB_H
720 #  include <stdlib.h>
721 # endif
722 #endif
723 #ifdef HAVE_STRING_H
724 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
725 #  include <memory.h>
726 # endif
727 # include <string.h>
728 #endif
729 #ifdef HAVE_STRINGS_H
730 # include <strings.h>
731 #endif
732 #ifdef HAVE_INTTYPES_H
733 # include <inttypes.h>
734 #endif
735 #ifdef HAVE_STDINT_H
736 # include <stdint.h>
737 #endif
738 #ifdef HAVE_UNISTD_H
739 # include <unistd.h>
740 #endif"
742 ac_header_list=
743 ac_subst_vars='am__EXEEXT_FALSE
744 am__EXEEXT_TRUE
745 LTLIBOBJS
746 LIB@&t@OBJS
747 am__fastdepCXX_FALSE
748 am__fastdepCXX_TRUE
749 CXXDEPMODE
750 am__fastdepCC_FALSE
751 am__fastdepCC_TRUE
752 CCDEPMODE
753 AMDEPBACKSLASH
754 AMDEP_FALSE
755 AMDEP_TRUE
756 am__quote
757 am__include
758 DEPDIR
759 am__untar
760 am__tar
761 AMTAR
762 am__leading_dot
763 mkdir_p
764 MKDIR_P
765 INSTALL_STRIP_PROGRAM
766 install_sh
767 MAKEINFO
768 AUTOHEADER
769 AUTOMAKE
770 AUTOCONF
771 ACLOCAL
772 VERSION
773 PACKAGE
774 CYGPATH_W
775 am__isrc
776 HOSTNAME
777 CHMOD
782 CXXCPP
783 OTOOL64
784 OTOOL
785 LIPO
786 NMEDIT
787 DSYMUTIL
788 lt_ECHO
789 STRIP
790 OBJDUMP
792 ac_ct_DUMPBIN
793 DUMPBIN
795 FGREP
796 EGREP
797 GREP
799 host_os
800 host_vendor
801 host_cpu
802 host
803 build_os
804 build_vendor
805 build_cpu
806 build
807 LIBTOOL
808 ac_ct_CXX
809 CXXFLAGS
812 RANLIB
813 SET_MAKE
814 LN_S
815 INSTALL_DATA
816 INSTALL_SCRIPT
817 INSTALL_PROGRAM
819 OBJEXT
820 EXEEXT
821 ac_ct_CC
822 CPPFLAGS
823 LDFLAGS
824 CFLAGS
827 target_alias
828 host_alias
829 build_alias
830 LIBS
831 ECHO_T
832 ECHO_N
833 ECHO_C
834 DEFS
835 mandir
836 localedir
837 libdir
838 psdir
839 pdfdir
840 dvidir
841 htmldir
842 infodir
843 docdir
844 oldincludedir
845 includedir
846 localstatedir
847 sharedstatedir
848 sysconfdir
849 datadir
850 datarootdir
851 libexecdir
852 sbindir
853 bindir
854 program_transform_name
855 prefix
856 exec_prefix
857 PACKAGE_URL
858 PACKAGE_BUGREPORT
859 PACKAGE_STRING
860 PACKAGE_VERSION
861 PACKAGE_TARNAME
862 PACKAGE_NAME
863 PATH_SEPARATOR
864 SHELL'
865 ac_subst_files=''
866 ac_user_opts='
867 enable_option_checking
868 enable_shared
869 enable_static
870 with_pic
871 enable_fast_install
872 with_gnu_ld
873 enable_libtool_lock
874 with_debug
875 enable_dependency_tracking
877       ac_precious_vars='build_alias
878 host_alias
879 target_alias
881 CFLAGS
882 LDFLAGS
883 LIBS
884 CPPFLAGS
887 CXXFLAGS
889 CXXCPP'
892 # Initialize some variables set by options.
893 ac_init_help=
894 ac_init_version=false
895 ac_unrecognized_opts=
896 ac_unrecognized_sep=
897 # The variables have the same names as the options, with
898 # dashes changed to underlines.
899 cache_file=/dev/null
900 exec_prefix=NONE
901 no_create=
902 no_recursion=
903 prefix=NONE
904 program_prefix=NONE
905 program_suffix=NONE
906 program_transform_name=s,x,x,
907 silent=
908 site=
909 srcdir=
910 verbose=
911 x_includes=NONE
912 x_libraries=NONE
914 # Installation directory options.
915 # These are left unexpanded so users can "make install exec_prefix=/foo"
916 # and all the variables that are supposed to be based on exec_prefix
917 # by default will actually change.
918 # Use braces instead of parens because sh, perl, etc. also accept them.
919 # (The list follows the same order as the GNU Coding Standards.)
920 bindir='${exec_prefix}/bin'
921 sbindir='${exec_prefix}/sbin'
922 libexecdir='${exec_prefix}/libexec'
923 datarootdir='${prefix}/share'
924 datadir='${datarootdir}'
925 sysconfdir='${prefix}/etc'
926 sharedstatedir='${prefix}/com'
927 localstatedir='${prefix}/var'
928 includedir='${prefix}/include'
929 oldincludedir='/usr/include'
930 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
931 infodir='${datarootdir}/info'
932 htmldir='${docdir}'
933 dvidir='${docdir}'
934 pdfdir='${docdir}'
935 psdir='${docdir}'
936 libdir='${exec_prefix}/lib'
937 localedir='${datarootdir}/locale'
938 mandir='${datarootdir}/man'
940 ac_prev=
941 ac_dashdash=
942 for ac_option
944   # If the previous option needs an argument, assign it.
945   if test -n "$ac_prev"; then
946     eval $ac_prev=\$ac_option
947     ac_prev=
948     continue
949   fi
951   case $ac_option in
952   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
953   *=)   ac_optarg= ;;
954   *)    ac_optarg=yes ;;
955   esac
957   # Accept the important Cygnus configure options, so we can diagnose typos.
959   case $ac_dashdash$ac_option in
960   --)
961     ac_dashdash=yes ;;
963   -bindir | --bindir | --bindi | --bind | --bin | --bi)
964     ac_prev=bindir ;;
965   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
966     bindir=$ac_optarg ;;
968   -build | --build | --buil | --bui | --bu)
969     ac_prev=build_alias ;;
970   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
971     build_alias=$ac_optarg ;;
973   -cache-file | --cache-file | --cache-fil | --cache-fi \
974   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
975     ac_prev=cache_file ;;
976   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
977   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
978     cache_file=$ac_optarg ;;
980   --config-cache | -C)
981     cache_file=config.cache ;;
983   -datadir | --datadir | --datadi | --datad)
984     ac_prev=datadir ;;
985   -datadir=* | --datadir=* | --datadi=* | --datad=*)
986     datadir=$ac_optarg ;;
988   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
989   | --dataroo | --dataro | --datar)
990     ac_prev=datarootdir ;;
991   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
992   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
993     datarootdir=$ac_optarg ;;
995   -disable-* | --disable-*)
996     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
997     # Reject names that are not valid shell variable names.
998     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
999       as_fn_error $? "invalid feature name: $ac_useropt"
1000     ac_useropt_orig=$ac_useropt
1001     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1002     case $ac_user_opts in
1003       *"
1004 "enable_$ac_useropt"
1005 "*) ;;
1006       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1007          ac_unrecognized_sep=', ';;
1008     esac
1009     eval enable_$ac_useropt=no ;;
1011   -docdir | --docdir | --docdi | --doc | --do)
1012     ac_prev=docdir ;;
1013   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1014     docdir=$ac_optarg ;;
1016   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1017     ac_prev=dvidir ;;
1018   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1019     dvidir=$ac_optarg ;;
1021   -enable-* | --enable-*)
1022     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1023     # Reject names that are not valid shell variable names.
1024     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1025       as_fn_error $? "invalid feature name: $ac_useropt"
1026     ac_useropt_orig=$ac_useropt
1027     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1028     case $ac_user_opts in
1029       *"
1030 "enable_$ac_useropt"
1031 "*) ;;
1032       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1033          ac_unrecognized_sep=', ';;
1034     esac
1035     eval enable_$ac_useropt=\$ac_optarg ;;
1037   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1038   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1039   | --exec | --exe | --ex)
1040     ac_prev=exec_prefix ;;
1041   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1042   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1043   | --exec=* | --exe=* | --ex=*)
1044     exec_prefix=$ac_optarg ;;
1046   -gas | --gas | --ga | --g)
1047     # Obsolete; use --with-gas.
1048     with_gas=yes ;;
1050   -help | --help | --hel | --he | -h)
1051     ac_init_help=long ;;
1052   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1053     ac_init_help=recursive ;;
1054   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1055     ac_init_help=short ;;
1057   -host | --host | --hos | --ho)
1058     ac_prev=host_alias ;;
1059   -host=* | --host=* | --hos=* | --ho=*)
1060     host_alias=$ac_optarg ;;
1062   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1063     ac_prev=htmldir ;;
1064   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1065   | --ht=*)
1066     htmldir=$ac_optarg ;;
1068   -includedir | --includedir | --includedi | --included | --include \
1069   | --includ | --inclu | --incl | --inc)
1070     ac_prev=includedir ;;
1071   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1072   | --includ=* | --inclu=* | --incl=* | --inc=*)
1073     includedir=$ac_optarg ;;
1075   -infodir | --infodir | --infodi | --infod | --info | --inf)
1076     ac_prev=infodir ;;
1077   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1078     infodir=$ac_optarg ;;
1080   -libdir | --libdir | --libdi | --libd)
1081     ac_prev=libdir ;;
1082   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1083     libdir=$ac_optarg ;;
1085   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1086   | --libexe | --libex | --libe)
1087     ac_prev=libexecdir ;;
1088   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1089   | --libexe=* | --libex=* | --libe=*)
1090     libexecdir=$ac_optarg ;;
1092   -localedir | --localedir | --localedi | --localed | --locale)
1093     ac_prev=localedir ;;
1094   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1095     localedir=$ac_optarg ;;
1097   -localstatedir | --localstatedir | --localstatedi | --localstated \
1098   | --localstate | --localstat | --localsta | --localst | --locals)
1099     ac_prev=localstatedir ;;
1100   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1101   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1102     localstatedir=$ac_optarg ;;
1104   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1105     ac_prev=mandir ;;
1106   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1107     mandir=$ac_optarg ;;
1109   -nfp | --nfp | --nf)
1110     # Obsolete; use --without-fp.
1111     with_fp=no ;;
1113   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1114   | --no-cr | --no-c | -n)
1115     no_create=yes ;;
1117   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1118   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1119     no_recursion=yes ;;
1121   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1122   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1123   | --oldin | --oldi | --old | --ol | --o)
1124     ac_prev=oldincludedir ;;
1125   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1126   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1127   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1128     oldincludedir=$ac_optarg ;;
1130   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1131     ac_prev=prefix ;;
1132   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1133     prefix=$ac_optarg ;;
1135   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1136   | --program-pre | --program-pr | --program-p)
1137     ac_prev=program_prefix ;;
1138   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1139   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1140     program_prefix=$ac_optarg ;;
1142   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1143   | --program-suf | --program-su | --program-s)
1144     ac_prev=program_suffix ;;
1145   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1146   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1147     program_suffix=$ac_optarg ;;
1149   -program-transform-name | --program-transform-name \
1150   | --program-transform-nam | --program-transform-na \
1151   | --program-transform-n | --program-transform- \
1152   | --program-transform | --program-transfor \
1153   | --program-transfo | --program-transf \
1154   | --program-trans | --program-tran \
1155   | --progr-tra | --program-tr | --program-t)
1156     ac_prev=program_transform_name ;;
1157   -program-transform-name=* | --program-transform-name=* \
1158   | --program-transform-nam=* | --program-transform-na=* \
1159   | --program-transform-n=* | --program-transform-=* \
1160   | --program-transform=* | --program-transfor=* \
1161   | --program-transfo=* | --program-transf=* \
1162   | --program-trans=* | --program-tran=* \
1163   | --progr-tra=* | --program-tr=* | --program-t=*)
1164     program_transform_name=$ac_optarg ;;
1166   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1167     ac_prev=pdfdir ;;
1168   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1169     pdfdir=$ac_optarg ;;
1171   -psdir | --psdir | --psdi | --psd | --ps)
1172     ac_prev=psdir ;;
1173   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1174     psdir=$ac_optarg ;;
1176   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1177   | -silent | --silent | --silen | --sile | --sil)
1178     silent=yes ;;
1180   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1181     ac_prev=sbindir ;;
1182   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1183   | --sbi=* | --sb=*)
1184     sbindir=$ac_optarg ;;
1186   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1187   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1188   | --sharedst | --shareds | --shared | --share | --shar \
1189   | --sha | --sh)
1190     ac_prev=sharedstatedir ;;
1191   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1192   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1193   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1194   | --sha=* | --sh=*)
1195     sharedstatedir=$ac_optarg ;;
1197   -site | --site | --sit)
1198     ac_prev=site ;;
1199   -site=* | --site=* | --sit=*)
1200     site=$ac_optarg ;;
1202   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1203     ac_prev=srcdir ;;
1204   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1205     srcdir=$ac_optarg ;;
1207   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1208   | --syscon | --sysco | --sysc | --sys | --sy)
1209     ac_prev=sysconfdir ;;
1210   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1211   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1212     sysconfdir=$ac_optarg ;;
1214   -target | --target | --targe | --targ | --tar | --ta | --t)
1215     ac_prev=target_alias ;;
1216   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1217     target_alias=$ac_optarg ;;
1219   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1220     verbose=yes ;;
1222   -version | --version | --versio | --versi | --vers | -V)
1223     ac_init_version=: ;;
1225   -with-* | --with-*)
1226     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1227     # Reject names that are not valid shell variable names.
1228     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1229       as_fn_error $? "invalid package name: $ac_useropt"
1230     ac_useropt_orig=$ac_useropt
1231     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1232     case $ac_user_opts in
1233       *"
1234 "with_$ac_useropt"
1235 "*) ;;
1236       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1237          ac_unrecognized_sep=', ';;
1238     esac
1239     eval with_$ac_useropt=\$ac_optarg ;;
1241   -without-* | --without-*)
1242     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1243     # Reject names that are not valid shell variable names.
1244     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1245       as_fn_error $? "invalid package name: $ac_useropt"
1246     ac_useropt_orig=$ac_useropt
1247     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1248     case $ac_user_opts in
1249       *"
1250 "with_$ac_useropt"
1251 "*) ;;
1252       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1253          ac_unrecognized_sep=', ';;
1254     esac
1255     eval with_$ac_useropt=no ;;
1257   --x)
1258     # Obsolete; use --with-x.
1259     with_x=yes ;;
1261   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1262   | --x-incl | --x-inc | --x-in | --x-i)
1263     ac_prev=x_includes ;;
1264   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1265   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1266     x_includes=$ac_optarg ;;
1268   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1269   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1270     ac_prev=x_libraries ;;
1271   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1272   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1273     x_libraries=$ac_optarg ;;
1275   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1276 Try \`$0 --help' for more information"
1277     ;;
1279   *=*)
1280     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1281     # Reject names that are not valid shell variable names.
1282     case $ac_envvar in #(
1283       '' | [0-9]* | *[!_$as_cr_alnum]* )
1284       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1285     esac
1286     eval $ac_envvar=\$ac_optarg
1287     export $ac_envvar ;;
1289   *)
1290     # FIXME: should be removed in autoconf 3.0.
1291     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1292     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1293       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1294     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1295     ;;
1297   esac
1298 done
1300 if test -n "$ac_prev"; then
1301   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1302   as_fn_error $? "missing argument to $ac_option"
1305 if test -n "$ac_unrecognized_opts"; then
1306   case $enable_option_checking in
1307     no) ;;
1308     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1309     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1310   esac
1313 # Check all directory arguments for consistency.
1314 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1315                 datadir sysconfdir sharedstatedir localstatedir includedir \
1316                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1317                 libdir localedir mandir
1319   eval ac_val=\$$ac_var
1320   # Remove trailing slashes.
1321   case $ac_val in
1322     */ )
1323       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1324       eval $ac_var=\$ac_val;;
1325   esac
1326   # Be sure to have absolute directory names.
1327   case $ac_val in
1328     [\\/$]* | ?:[\\/]* )  continue;;
1329     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1330   esac
1331   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1332 done
1334 # There might be people who depend on the old broken behavior: `$host'
1335 # used to hold the argument of --host etc.
1336 # FIXME: To remove some day.
1337 build=$build_alias
1338 host=$host_alias
1339 target=$target_alias
1341 # FIXME: To remove some day.
1342 if test "x$host_alias" != x; then
1343   if test "x$build_alias" = x; then
1344     cross_compiling=maybe
1345     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1346     If a cross compiler is detected then cross compile mode will be used" >&2
1347   elif test "x$build_alias" != "x$host_alias"; then
1348     cross_compiling=yes
1349   fi
1352 ac_tool_prefix=
1353 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1355 test "$silent" = yes && exec 6>/dev/null
1358 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1359 ac_ls_di=`ls -di .` &&
1360 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1361   as_fn_error $? "working directory cannot be determined"
1362 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1363   as_fn_error $? "pwd does not report name of working directory"
1366 # Find the source files, if location was not specified.
1367 if test -z "$srcdir"; then
1368   ac_srcdir_defaulted=yes
1369   # Try the directory containing this script, then the parent directory.
1370   ac_confdir=`$as_dirname -- "$as_myself" ||
1371 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1372          X"$as_myself" : 'X\(//\)[^/]' \| \
1373          X"$as_myself" : 'X\(//\)$' \| \
1374          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1375 $as_echo X"$as_myself" |
1376     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1377             s//\1/
1378             q
1379           }
1380           /^X\(\/\/\)[^/].*/{
1381             s//\1/
1382             q
1383           }
1384           /^X\(\/\/\)$/{
1385             s//\1/
1386             q
1387           }
1388           /^X\(\/\).*/{
1389             s//\1/
1390             q
1391           }
1392           s/.*/./; q'`
1393   srcdir=$ac_confdir
1394   if test ! -r "$srcdir/$ac_unique_file"; then
1395     srcdir=..
1396   fi
1397 else
1398   ac_srcdir_defaulted=no
1400 if test ! -r "$srcdir/$ac_unique_file"; then
1401   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1402   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1404 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1405 ac_abs_confdir=`(
1406         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1407         pwd)`
1408 # When building in place, set srcdir=.
1409 if test "$ac_abs_confdir" = "$ac_pwd"; then
1410   srcdir=.
1412 # Remove unnecessary trailing slashes from srcdir.
1413 # Double slashes in file names in object file debugging info
1414 # mess up M-x gdb in Emacs.
1415 case $srcdir in
1416 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1417 esac
1418 for ac_var in $ac_precious_vars; do
1419   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1420   eval ac_env_${ac_var}_value=\$${ac_var}
1421   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1422   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1423 done
1426 # Report the --help message.
1428 if test "$ac_init_help" = "long"; then
1429   # Omit some internal or obsolete options to make the list less imposing.
1430   # This message is too long to be a string in the A/UX 3.1 sh.
1431   cat <<_ACEOF
1432 \`configure' configures GNU Python Runtime Library 0.1 to adapt to many kinds of systems.
1434 Usage: $0 [OPTION]... [VAR=VALUE]...
1436 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1437 VAR=VALUE.  See below for descriptions of some of the useful variables.
1439 Defaults for the options are specified in brackets.
1441 Configuration:
1442   -h, --help              display this help and exit
1443       --help=short        display options specific to this package
1444       --help=recursive    display the short help of all the included packages
1445   -V, --version           display version information and exit
1446   -q, --quiet, --silent   do not print \`checking ...' messages
1447       --cache-file=FILE   cache test results in FILE [disabled]
1448   -C, --config-cache      alias for \`--cache-file=config.cache'
1449   -n, --no-create         do not create output files
1450       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1452 Installation directories:
1453   --prefix=PREFIX         install architecture-independent files in PREFIX
1454                           @<:@@S|@ac_default_prefix@:>@
1455   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1456                           @<:@PREFIX@:>@
1458 By default, \`make install' will install all the files in
1459 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1460 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1461 for instance \`--prefix=\$HOME'.
1463 For better control, use the options below.
1465 Fine tuning of the installation directories:
1466   --bindir=DIR            user executables [EPREFIX/bin]
1467   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1468   --libexecdir=DIR        program executables [EPREFIX/libexec]
1469   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1470   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1471   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1472   --libdir=DIR            object code libraries [EPREFIX/lib]
1473   --includedir=DIR        C header files [PREFIX/include]
1474   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1475   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1476   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1477   --infodir=DIR           info documentation [DATAROOTDIR/info]
1478   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1479   --mandir=DIR            man documentation [DATAROOTDIR/man]
1480   --docdir=DIR            documentation root @<:@DATAROOTDIR/doc/libgpython@:>@
1481   --htmldir=DIR           html documentation [DOCDIR]
1482   --dvidir=DIR            dvi documentation [DOCDIR]
1483   --pdfdir=DIR            pdf documentation [DOCDIR]
1484   --psdir=DIR             ps documentation [DOCDIR]
1485 _ACEOF
1487   cat <<\_ACEOF
1489 Program names:
1490   --program-prefix=PREFIX            prepend PREFIX to installed program names
1491   --program-suffix=SUFFIX            append SUFFIX to installed program names
1492   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1494 System types:
1495   --build=BUILD     configure for building on BUILD [guessed]
1496   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1497 _ACEOF
1500 if test -n "$ac_init_help"; then
1501   case $ac_init_help in
1502      short | recursive ) echo "Configuration of GNU Python Runtime Library 0.1:";;
1503    esac
1504   cat <<\_ACEOF
1506 Optional Features:
1507   --disable-option-checking  ignore unrecognized --enable/--with options
1508   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1509   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1510   --enable-shared@<:@=PKGS@:>@  build shared libraries @<:@default=yes@:>@
1511   --enable-static@<:@=PKGS@:>@  build static libraries @<:@default=yes@:>@
1512   --enable-fast-install@<:@=PKGS@:>@ 
1513                           optimize for fast installation @<:@default=yes@:>@
1514   --disable-libtool-lock  avoid locking (might break parallel builds)
1515   --disable-dependency-tracking  speeds up one-time build
1516   --enable-dependency-tracking   do not reject slow dependency extractors
1518 Optional Packages:
1519   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1520   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1521   --with-pic              try to use only PIC/non-PIC objects @<:@default=use
1522                           both@:>@
1523   --with-gnu-ld           assume the C compiler uses GNU ld @<:@default=no@:>@
1524   --with-libgpython-debug=yes/no 
1525                           With Debug symbols, default no.
1527 Some influential environment variables:
1528   CC          C compiler command
1529   CFLAGS      C compiler flags
1530   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1531               nonstandard directory <lib dir>
1532   LIBS        libraries to pass to the linker, e.g. -l<library>
1533   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1534               you have headers in a nonstandard directory <include dir>
1535   CPP         C preprocessor
1536   CXX         C++ compiler command
1537   CXXFLAGS    C++ compiler flags
1538   CXXCPP      C++ preprocessor
1540 Use these variables to override the choices made by `configure' or to help
1541 it to find libraries and programs with nonstandard names/locations.
1543 Report bugs to the package provider.
1544 GNU Python Runtime Library home page: <http://www.gnu.org/software/libgpython/>.
1545 General help using GNU software: <http://www.gnu.org/gethelp/>.
1546 _ACEOF
1547 ac_status=$?
1550 if test "$ac_init_help" = "recursive"; then
1551   # If there are subdirs, report their specific --help.
1552   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1553     test -d "$ac_dir" ||
1554       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1555       continue
1556     ac_builddir=.
1558 case "$ac_dir" in
1559 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1561   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1562   # A ".." for each directory in $ac_dir_suffix.
1563   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1564   case $ac_top_builddir_sub in
1565   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1566   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1567   esac ;;
1568 esac
1569 ac_abs_top_builddir=$ac_pwd
1570 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1571 # for backward compatibility:
1572 ac_top_builddir=$ac_top_build_prefix
1574 case $srcdir in
1575   .)  # We are building in place.
1576     ac_srcdir=.
1577     ac_top_srcdir=$ac_top_builddir_sub
1578     ac_abs_top_srcdir=$ac_pwd ;;
1579   [\\/]* | ?:[\\/]* )  # Absolute name.
1580     ac_srcdir=$srcdir$ac_dir_suffix;
1581     ac_top_srcdir=$srcdir
1582     ac_abs_top_srcdir=$srcdir ;;
1583   *) # Relative name.
1584     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1585     ac_top_srcdir=$ac_top_build_prefix$srcdir
1586     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1587 esac
1588 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1590     cd "$ac_dir" || { ac_status=$?; continue; }
1591     # Check for guested configure.
1592     if test -f "$ac_srcdir/configure.gnu"; then
1593       echo &&
1594       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1595     elif test -f "$ac_srcdir/configure"; then
1596       echo &&
1597       $SHELL "$ac_srcdir/configure" --help=recursive
1598     else
1599       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1600     fi || ac_status=$?
1601     cd "$ac_pwd" || { ac_status=$?; break; }
1602   done
1605 test -n "$ac_init_help" && exit $ac_status
1606 if $ac_init_version; then
1607   cat <<\_ACEOF
1608 GNU Python Runtime Library configure 0.1
1609 generated by GNU Autoconf 2.67
1611 Copyright (C) 2010 Free Software Foundation, Inc.
1612 This configure script is free software; the Free Software Foundation
1613 gives unlimited permission to copy, distribute and modify it.
1614 _ACEOF
1615   exit
1618 ## ------------------------ ##
1619 ## Autoconf initialization. ##
1620 ## ------------------------ ##
1622 @%:@ ac_fn_c_try_compile LINENO
1623 @%:@ --------------------------
1624 @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1625 ac_fn_c_try_compile ()
1627   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628   rm -f conftest.$ac_objext
1629   if { { ac_try="$ac_compile"
1630 case "(($ac_try" in
1631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1632   *) ac_try_echo=$ac_try;;
1633 esac
1634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1635 $as_echo "$ac_try_echo"; } >&5
1636   (eval "$ac_compile") 2>conftest.err
1637   ac_status=$?
1638   if test -s conftest.err; then
1639     grep -v '^ *+' conftest.err >conftest.er1
1640     cat conftest.er1 >&5
1641     mv -f conftest.er1 conftest.err
1642   fi
1643   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1644   test $ac_status = 0; } && {
1645          test -z "$ac_c_werror_flag" ||
1646          test ! -s conftest.err
1647        } && test -s conftest.$ac_objext; then :
1648   ac_retval=0
1649 else
1650   $as_echo "$as_me: failed program was:" >&5
1651 sed 's/^/| /' conftest.$ac_ext >&5
1653         ac_retval=1
1655   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1656   as_fn_set_status $ac_retval
1658 } @%:@ ac_fn_c_try_compile
1660 @%:@ ac_fn_c_try_cpp LINENO
1661 @%:@ ----------------------
1662 @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1663 ac_fn_c_try_cpp ()
1665   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666   if { { ac_try="$ac_cpp conftest.$ac_ext"
1667 case "(($ac_try" in
1668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1669   *) ac_try_echo=$ac_try;;
1670 esac
1671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1672 $as_echo "$ac_try_echo"; } >&5
1673   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1674   ac_status=$?
1675   if test -s conftest.err; then
1676     grep -v '^ *+' conftest.err >conftest.er1
1677     cat conftest.er1 >&5
1678     mv -f conftest.er1 conftest.err
1679   fi
1680   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681   test $ac_status = 0; } > conftest.i && {
1682          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1683          test ! -s conftest.err
1684        }; then :
1685   ac_retval=0
1686 else
1687   $as_echo "$as_me: failed program was:" >&5
1688 sed 's/^/| /' conftest.$ac_ext >&5
1690     ac_retval=1
1692   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1693   as_fn_set_status $ac_retval
1695 } @%:@ ac_fn_c_try_cpp
1697 @%:@ ac_fn_cxx_try_compile LINENO
1698 @%:@ ----------------------------
1699 @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1700 ac_fn_cxx_try_compile ()
1702   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703   rm -f conftest.$ac_objext
1704   if { { ac_try="$ac_compile"
1705 case "(($ac_try" in
1706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1707   *) ac_try_echo=$ac_try;;
1708 esac
1709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1710 $as_echo "$ac_try_echo"; } >&5
1711   (eval "$ac_compile") 2>conftest.err
1712   ac_status=$?
1713   if test -s conftest.err; then
1714     grep -v '^ *+' conftest.err >conftest.er1
1715     cat conftest.er1 >&5
1716     mv -f conftest.er1 conftest.err
1717   fi
1718   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719   test $ac_status = 0; } && {
1720          test -z "$ac_cxx_werror_flag" ||
1721          test ! -s conftest.err
1722        } && test -s conftest.$ac_objext; then :
1723   ac_retval=0
1724 else
1725   $as_echo "$as_me: failed program was:" >&5
1726 sed 's/^/| /' conftest.$ac_ext >&5
1728         ac_retval=1
1730   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1731   as_fn_set_status $ac_retval
1733 } @%:@ ac_fn_cxx_try_compile
1735 @%:@ ac_fn_c_try_link LINENO
1736 @%:@ -----------------------
1737 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1738 ac_fn_c_try_link ()
1740   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741   rm -f conftest.$ac_objext conftest$ac_exeext
1742   if { { ac_try="$ac_link"
1743 case "(($ac_try" in
1744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745   *) ac_try_echo=$ac_try;;
1746 esac
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749   (eval "$ac_link") 2>conftest.err
1750   ac_status=$?
1751   if test -s conftest.err; then
1752     grep -v '^ *+' conftest.err >conftest.er1
1753     cat conftest.er1 >&5
1754     mv -f conftest.er1 conftest.err
1755   fi
1756   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757   test $ac_status = 0; } && {
1758          test -z "$ac_c_werror_flag" ||
1759          test ! -s conftest.err
1760        } && test -s conftest$ac_exeext && {
1761          test "$cross_compiling" = yes ||
1762          $as_test_x conftest$ac_exeext
1763        }; then :
1764   ac_retval=0
1765 else
1766   $as_echo "$as_me: failed program was:" >&5
1767 sed 's/^/| /' conftest.$ac_ext >&5
1769         ac_retval=1
1771   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1772   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1773   # interfere with the next link command; also delete a directory that is
1774   # left behind by Apple's compiler.  We do this before executing the actions.
1775   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1776   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1777   as_fn_set_status $ac_retval
1779 } @%:@ ac_fn_c_try_link
1781 @%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1782 @%:@ -------------------------------------------------------
1783 @%:@ Tests whether HEADER exists and can be compiled using the include files in
1784 @%:@ INCLUDES, setting the cache variable VAR accordingly.
1785 ac_fn_c_check_header_compile ()
1787   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1789 $as_echo_n "checking for $2... " >&6; }
1790 if eval "test \"\${$3+set}\"" = set; then :
1791   $as_echo_n "(cached) " >&6
1792 else
1793   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1794 /* end confdefs.h.  */
1796 @%:@include <$2>
1797 _ACEOF
1798 if ac_fn_c_try_compile "$LINENO"; then :
1799   eval "$3=yes"
1800 else
1801   eval "$3=no"
1803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1805 eval ac_res=\$$3
1806                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1807 $as_echo "$ac_res" >&6; }
1808   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1810 } @%:@ ac_fn_c_check_header_compile
1812 @%:@ ac_fn_c_try_run LINENO
1813 @%:@ ----------------------
1814 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
1815 @%:@ that executables *can* be run.
1816 ac_fn_c_try_run ()
1818   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819   if { { ac_try="$ac_link"
1820 case "(($ac_try" in
1821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1822   *) ac_try_echo=$ac_try;;
1823 esac
1824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825 $as_echo "$ac_try_echo"; } >&5
1826   (eval "$ac_link") 2>&5
1827   ac_status=$?
1828   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1829   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1830   { { case "(($ac_try" in
1831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1832   *) ac_try_echo=$ac_try;;
1833 esac
1834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1835 $as_echo "$ac_try_echo"; } >&5
1836   (eval "$ac_try") 2>&5
1837   ac_status=$?
1838   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1839   test $ac_status = 0; }; }; then :
1840   ac_retval=0
1841 else
1842   $as_echo "$as_me: program exited with status $ac_status" >&5
1843        $as_echo "$as_me: failed program was:" >&5
1844 sed 's/^/| /' conftest.$ac_ext >&5
1846        ac_retval=$ac_status
1848   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1849   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1850   as_fn_set_status $ac_retval
1852 } @%:@ ac_fn_c_try_run
1854 @%:@ ac_fn_c_check_func LINENO FUNC VAR
1855 @%:@ ----------------------------------
1856 @%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
1857 ac_fn_c_check_func ()
1859   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1861 $as_echo_n "checking for $2... " >&6; }
1862 if eval "test \"\${$3+set}\"" = set; then :
1863   $as_echo_n "(cached) " >&6
1864 else
1865   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866 /* end confdefs.h.  */
1867 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1868    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1869 #define $2 innocuous_$2
1871 /* System header to define __stub macros and hopefully few prototypes,
1872     which can conflict with char $2 (); below.
1873     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1874     <limits.h> exists even on freestanding compilers.  */
1876 #ifdef __STDC__
1877 # include <limits.h>
1878 #else
1879 # include <assert.h>
1880 #endif
1882 #undef $2
1884 /* Override any GCC internal prototype to avoid an error.
1885    Use char because int might match the return type of a GCC
1886    builtin and then its argument prototype would still apply.  */
1887 #ifdef __cplusplus
1888 extern "C"
1889 #endif
1890 char $2 ();
1891 /* The GNU C library defines this for functions which it implements
1892     to always fail with ENOSYS.  Some functions are actually named
1893     something starting with __ and the normal name is an alias.  */
1894 #if defined __stub_$2 || defined __stub___$2
1895 choke me
1896 #endif
1899 main ()
1901 return $2 ();
1902   ;
1903   return 0;
1905 _ACEOF
1906 if ac_fn_c_try_link "$LINENO"; then :
1907   eval "$3=yes"
1908 else
1909   eval "$3=no"
1911 rm -f core conftest.err conftest.$ac_objext \
1912     conftest$ac_exeext conftest.$ac_ext
1914 eval ac_res=\$$3
1915                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1916 $as_echo "$ac_res" >&6; }
1917   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1919 } @%:@ ac_fn_c_check_func
1921 @%:@ ac_fn_cxx_try_cpp LINENO
1922 @%:@ ------------------------
1923 @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1924 ac_fn_cxx_try_cpp ()
1926   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927   if { { ac_try="$ac_cpp conftest.$ac_ext"
1928 case "(($ac_try" in
1929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1930   *) ac_try_echo=$ac_try;;
1931 esac
1932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1933 $as_echo "$ac_try_echo"; } >&5
1934   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1935   ac_status=$?
1936   if test -s conftest.err; then
1937     grep -v '^ *+' conftest.err >conftest.er1
1938     cat conftest.er1 >&5
1939     mv -f conftest.er1 conftest.err
1940   fi
1941   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1942   test $ac_status = 0; } > conftest.i && {
1943          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1944          test ! -s conftest.err
1945        }; then :
1946   ac_retval=0
1947 else
1948   $as_echo "$as_me: failed program was:" >&5
1949 sed 's/^/| /' conftest.$ac_ext >&5
1951     ac_retval=1
1953   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1954   as_fn_set_status $ac_retval
1956 } @%:@ ac_fn_cxx_try_cpp
1958 @%:@ ac_fn_cxx_try_link LINENO
1959 @%:@ -------------------------
1960 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1961 ac_fn_cxx_try_link ()
1963   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964   rm -f conftest.$ac_objext conftest$ac_exeext
1965   if { { ac_try="$ac_link"
1966 case "(($ac_try" in
1967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1968   *) ac_try_echo=$ac_try;;
1969 esac
1970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1971 $as_echo "$ac_try_echo"; } >&5
1972   (eval "$ac_link") 2>conftest.err
1973   ac_status=$?
1974   if test -s conftest.err; then
1975     grep -v '^ *+' conftest.err >conftest.er1
1976     cat conftest.er1 >&5
1977     mv -f conftest.er1 conftest.err
1978   fi
1979   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1980   test $ac_status = 0; } && {
1981          test -z "$ac_cxx_werror_flag" ||
1982          test ! -s conftest.err
1983        } && test -s conftest$ac_exeext && {
1984          test "$cross_compiling" = yes ||
1985          $as_test_x conftest$ac_exeext
1986        }; then :
1987   ac_retval=0
1988 else
1989   $as_echo "$as_me: failed program was:" >&5
1990 sed 's/^/| /' conftest.$ac_ext >&5
1992         ac_retval=1
1994   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1995   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1996   # interfere with the next link command; also delete a directory that is
1997   # left behind by Apple's compiler.  We do this before executing the actions.
1998   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1999   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2000   as_fn_set_status $ac_retval
2002 } @%:@ ac_fn_cxx_try_link
2004 @%:@ ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2005 @%:@ --------------------------------------------
2006 @%:@ Tries to find the compile-time value of EXPR in a program that includes
2007 @%:@ INCLUDES, setting VAR accordingly. Returns whether the value could be
2008 @%:@ computed
2009 ac_fn_c_compute_int ()
2011   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012   if test "$cross_compiling" = yes; then
2013     # Depending upon the size, compute the lo and hi bounds.
2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015 /* end confdefs.h.  */
2018 main ()
2020 static int test_array @<:@1 - 2 * !(($2) >= 0)@:>@;
2021 test_array @<:@0@:>@ = 0
2023   ;
2024   return 0;
2026 _ACEOF
2027 if ac_fn_c_try_compile "$LINENO"; then :
2028   ac_lo=0 ac_mid=0
2029   while :; do
2030     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2031 /* end confdefs.h.  */
2034 main ()
2036 static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@;
2037 test_array @<:@0@:>@ = 0
2039   ;
2040   return 0;
2042 _ACEOF
2043 if ac_fn_c_try_compile "$LINENO"; then :
2044   ac_hi=$ac_mid; break
2045 else
2046   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2047                         if test $ac_lo -le $ac_mid; then
2048                           ac_lo= ac_hi=
2049                           break
2050                         fi
2051                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2054   done
2055 else
2056   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057 /* end confdefs.h.  */
2060 main ()
2062 static int test_array @<:@1 - 2 * !(($2) < 0)@:>@;
2063 test_array @<:@0@:>@ = 0
2065   ;
2066   return 0;
2068 _ACEOF
2069 if ac_fn_c_try_compile "$LINENO"; then :
2070   ac_hi=-1 ac_mid=-1
2071   while :; do
2072     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2073 /* end confdefs.h.  */
2076 main ()
2078 static int test_array @<:@1 - 2 * !(($2) >= $ac_mid)@:>@;
2079 test_array @<:@0@:>@ = 0
2081   ;
2082   return 0;
2084 _ACEOF
2085 if ac_fn_c_try_compile "$LINENO"; then :
2086   ac_lo=$ac_mid; break
2087 else
2088   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2089                         if test $ac_mid -le $ac_hi; then
2090                           ac_lo= ac_hi=
2091                           break
2092                         fi
2093                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2096   done
2097 else
2098   ac_lo= ac_hi=
2100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2103 # Binary search between lo and hi bounds.
2104 while test "x$ac_lo" != "x$ac_hi"; do
2105   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2106   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107 /* end confdefs.h.  */
2110 main ()
2112 static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@;
2113 test_array @<:@0@:>@ = 0
2115   ;
2116   return 0;
2118 _ACEOF
2119 if ac_fn_c_try_compile "$LINENO"; then :
2120   ac_hi=$ac_mid
2121 else
2122   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125 done
2126 case $ac_lo in @%:@((
2127 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2128 '') ac_retval=1 ;;
2129 esac
2130   else
2131     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2132 /* end confdefs.h.  */
2134 static long int longval () { return $2; }
2135 static unsigned long int ulongval () { return $2; }
2136 @%:@include <stdio.h>
2137 @%:@include <stdlib.h>
2139 main ()
2142   FILE *f = fopen ("conftest.val", "w");
2143   if (! f)
2144     return 1;
2145   if (($2) < 0)
2146     {
2147       long int i = longval ();
2148       if (i != ($2))
2149         return 1;
2150       fprintf (f, "%ld", i);
2151     }
2152   else
2153     {
2154       unsigned long int i = ulongval ();
2155       if (i != ($2))
2156         return 1;
2157       fprintf (f, "%lu", i);
2158     }
2159   /* Do not output a trailing newline, as this causes \r\n confusion
2160      on some platforms.  */
2161   return ferror (f) || fclose (f) != 0;
2163   ;
2164   return 0;
2166 _ACEOF
2167 if ac_fn_c_try_run "$LINENO"; then :
2168   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2169 else
2170   ac_retval=1
2172 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2173   conftest.$ac_objext conftest.beam conftest.$ac_ext
2174 rm -f conftest.val
2176   fi
2177   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2178   as_fn_set_status $ac_retval
2180 } @%:@ ac_fn_c_compute_int
2182 @%:@ ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2183 @%:@ -------------------------------------------
2184 @%:@ Tests whether TYPE exists after having included INCLUDES, setting cache
2185 @%:@ variable VAR accordingly.
2186 ac_fn_c_check_type ()
2188   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2189   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2190 $as_echo_n "checking for $2... " >&6; }
2191 if eval "test \"\${$3+set}\"" = set; then :
2192   $as_echo_n "(cached) " >&6
2193 else
2194   eval "$3=no"
2195   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2196 /* end confdefs.h.  */
2199 main ()
2201 if (sizeof ($2))
2202          return 0;
2203   ;
2204   return 0;
2206 _ACEOF
2207 if ac_fn_c_try_compile "$LINENO"; then :
2208   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2209 /* end confdefs.h.  */
2212 main ()
2214 if (sizeof (($2)))
2215             return 0;
2216   ;
2217   return 0;
2219 _ACEOF
2220 if ac_fn_c_try_compile "$LINENO"; then :
2221   
2222 else
2223   eval "$3=yes"
2225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2229 eval ac_res=\$$3
2230                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2231 $as_echo "$ac_res" >&6; }
2232   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2234 } @%:@ ac_fn_c_check_type
2236 @%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2237 @%:@ -------------------------------------------------------
2238 @%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
2239 @%:@ the include files in INCLUDES and setting the cache variable VAR
2240 @%:@ accordingly.
2241 ac_fn_c_check_header_mongrel ()
2243   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2244   if eval "test \"\${$3+set}\"" = set; then :
2245   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2246 $as_echo_n "checking for $2... " >&6; }
2247 if eval "test \"\${$3+set}\"" = set; then :
2248   $as_echo_n "(cached) " >&6
2250 eval ac_res=\$$3
2251                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2252 $as_echo "$ac_res" >&6; }
2253 else
2254   # Is the header compilable?
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2256 $as_echo_n "checking $2 usability... " >&6; }
2257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2258 /* end confdefs.h.  */
2260 @%:@include <$2>
2261 _ACEOF
2262 if ac_fn_c_try_compile "$LINENO"; then :
2263   ac_header_compiler=yes
2264 else
2265   ac_header_compiler=no
2267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2269 $as_echo "$ac_header_compiler" >&6; }
2271 # Is the header present?
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2273 $as_echo_n "checking $2 presence... " >&6; }
2274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2275 /* end confdefs.h.  */
2276 @%:@include <$2>
2277 _ACEOF
2278 if ac_fn_c_try_cpp "$LINENO"; then :
2279   ac_header_preproc=yes
2280 else
2281   ac_header_preproc=no
2283 rm -f conftest.err conftest.i conftest.$ac_ext
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2285 $as_echo "$ac_header_preproc" >&6; }
2287 # So?  What about this header?
2288 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2289   yes:no: )
2290     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2291 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2292     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2293 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2294     ;;
2295   no:yes:* )
2296     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2297 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2298     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2299 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2300     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2301 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2302     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2303 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2304     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2305 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2306     ;;
2307 esac
2308   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2309 $as_echo_n "checking for $2... " >&6; }
2310 if eval "test \"\${$3+set}\"" = set; then :
2311   $as_echo_n "(cached) " >&6
2312 else
2313   eval "$3=\$ac_header_compiler"
2315 eval ac_res=\$$3
2316                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2317 $as_echo "$ac_res" >&6; }
2319   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2321 } @%:@ ac_fn_c_check_header_mongrel
2322 cat >config.log <<_ACEOF
2323 This file contains any messages produced by compilers while
2324 running configure, to aid debugging if configure makes a mistake.
2326 It was created by GNU Python Runtime Library $as_me 0.1, which was
2327 generated by GNU Autoconf 2.67.  Invocation command line was
2329   $ $0 $@
2331 _ACEOF
2332 exec 5>>config.log
2334 cat <<_ASUNAME
2335 ## --------- ##
2336 ## Platform. ##
2337 ## --------- ##
2339 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2340 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2341 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2342 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2343 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2345 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2346 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2348 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2349 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2350 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2351 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2352 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2353 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2354 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2356 _ASUNAME
2358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359 for as_dir in $PATH
2361   IFS=$as_save_IFS
2362   test -z "$as_dir" && as_dir=.
2363     $as_echo "PATH: $as_dir"
2364   done
2365 IFS=$as_save_IFS
2367 } >&5
2369 cat >&5 <<_ACEOF
2372 ## ----------- ##
2373 ## Core tests. ##
2374 ## ----------- ##
2376 _ACEOF
2379 # Keep a trace of the command line.
2380 # Strip out --no-create and --no-recursion so they do not pile up.
2381 # Strip out --silent because we don't want to record it for future runs.
2382 # Also quote any args containing shell meta-characters.
2383 # Make two passes to allow for proper duplicate-argument suppression.
2384 ac_configure_args=
2385 ac_configure_args0=
2386 ac_configure_args1=
2387 ac_must_keep_next=false
2388 for ac_pass in 1 2
2390   for ac_arg
2391   do
2392     case $ac_arg in
2393     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2394     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2395     | -silent | --silent | --silen | --sile | --sil)
2396       continue ;;
2397     *\'*)
2398       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2399     esac
2400     case $ac_pass in
2401     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2402     2)
2403       as_fn_append ac_configure_args1 " '$ac_arg'"
2404       if test $ac_must_keep_next = true; then
2405         ac_must_keep_next=false # Got value, back to normal.
2406       else
2407         case $ac_arg in
2408           *=* | --config-cache | -C | -disable-* | --disable-* \
2409           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2410           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2411           | -with-* | --with-* | -without-* | --without-* | --x)
2412             case "$ac_configure_args0 " in
2413               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2414             esac
2415             ;;
2416           -* ) ac_must_keep_next=true ;;
2417         esac
2418       fi
2419       as_fn_append ac_configure_args " '$ac_arg'"
2420       ;;
2421     esac
2422   done
2423 done
2424 { ac_configure_args0=; unset ac_configure_args0;}
2425 { ac_configure_args1=; unset ac_configure_args1;}
2427 # When interrupted or exit'd, cleanup temporary files, and complete
2428 # config.log.  We remove comments because anyway the quotes in there
2429 # would cause problems or look ugly.
2430 # WARNING: Use '\'' to represent an apostrophe within the trap.
2431 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2432 trap 'exit_status=$?
2433   # Save into config.log some information that might help in debugging.
2434   {
2435     echo
2437     $as_echo "## ---------------- ##
2438 ## Cache variables. ##
2439 ## ---------------- ##"
2440     echo
2441     # The following way of writing the cache mishandles newlines in values,
2443   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2444     eval ac_val=\$$ac_var
2445     case $ac_val in #(
2446     *${as_nl}*)
2447       case $ac_var in #(
2448       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2449 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2450       esac
2451       case $ac_var in #(
2452       _ | IFS | as_nl) ;; #(
2453       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2454       *) { eval $ac_var=; unset $ac_var;} ;;
2455       esac ;;
2456     esac
2457   done
2458   (set) 2>&1 |
2459     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2460     *${as_nl}ac_space=\ *)
2461       sed -n \
2462         "s/'\''/'\''\\\\'\'''\''/g;
2463           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2464       ;; #(
2465     *)
2466       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2467       ;;
2468     esac |
2469     sort
2471     echo
2473     $as_echo "## ----------------- ##
2474 ## Output variables. ##
2475 ## ----------------- ##"
2476     echo
2477     for ac_var in $ac_subst_vars
2478     do
2479       eval ac_val=\$$ac_var
2480       case $ac_val in
2481       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2482       esac
2483       $as_echo "$ac_var='\''$ac_val'\''"
2484     done | sort
2485     echo
2487     if test -n "$ac_subst_files"; then
2488       $as_echo "## ------------------- ##
2489 ## File substitutions. ##
2490 ## ------------------- ##"
2491       echo
2492       for ac_var in $ac_subst_files
2493       do
2494         eval ac_val=\$$ac_var
2495         case $ac_val in
2496         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2497         esac
2498         $as_echo "$ac_var='\''$ac_val'\''"
2499       done | sort
2500       echo
2501     fi
2503     if test -s confdefs.h; then
2504       $as_echo "## ----------- ##
2505 ## confdefs.h. ##
2506 ## ----------- ##"
2507       echo
2508       cat confdefs.h
2509       echo
2510     fi
2511     test "$ac_signal" != 0 &&
2512       $as_echo "$as_me: caught signal $ac_signal"
2513     $as_echo "$as_me: exit $exit_status"
2514   } >&5
2515   rm -f core *.core core.conftest.* &&
2516     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2517     exit $exit_status
2518 ' 0
2519 for ac_signal in 1 2 13 15; do
2520   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2521 done
2522 ac_signal=0
2524 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2525 rm -f -r conftest* confdefs.h
2527 $as_echo "/* confdefs.h */" > confdefs.h
2529 # Predefined preprocessor variables.
2531 cat >>confdefs.h <<_ACEOF
2532 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
2533 _ACEOF
2535 cat >>confdefs.h <<_ACEOF
2536 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2537 _ACEOF
2539 cat >>confdefs.h <<_ACEOF
2540 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
2541 _ACEOF
2543 cat >>confdefs.h <<_ACEOF
2544 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
2545 _ACEOF
2547 cat >>confdefs.h <<_ACEOF
2548 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2549 _ACEOF
2551 cat >>confdefs.h <<_ACEOF
2552 @%:@define PACKAGE_URL "$PACKAGE_URL"
2553 _ACEOF
2556 # Let the site file select an alternate cache file if it wants to.
2557 # Prefer an explicitly selected file to automatically selected ones.
2558 ac_site_file1=NONE
2559 ac_site_file2=NONE
2560 if test -n "$CONFIG_SITE"; then
2561   # We do not want a PATH search for config.site.
2562   case $CONFIG_SITE in @%:@((
2563     -*)  ac_site_file1=./$CONFIG_SITE;;
2564     */*) ac_site_file1=$CONFIG_SITE;;
2565     *)   ac_site_file1=./$CONFIG_SITE;;
2566   esac
2567 elif test "x$prefix" != xNONE; then
2568   ac_site_file1=$prefix/share/config.site
2569   ac_site_file2=$prefix/etc/config.site
2570 else
2571   ac_site_file1=$ac_default_prefix/share/config.site
2572   ac_site_file2=$ac_default_prefix/etc/config.site
2574 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2576   test "x$ac_site_file" = xNONE && continue
2577   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2578     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2579 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2580     sed 's/^/| /' "$ac_site_file" >&5
2581     . "$ac_site_file" \
2582       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2584 as_fn_error $? "failed to load site script $ac_site_file
2585 See \`config.log' for more details" "$LINENO" 5 ; }
2586   fi
2587 done
2589 if test -r "$cache_file"; then
2590   # Some versions of bash will fail to source /dev/null (special files
2591   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2592   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2593     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2594 $as_echo "$as_me: loading cache $cache_file" >&6;}
2595     case $cache_file in
2596       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2597       *)                      . "./$cache_file";;
2598     esac
2599   fi
2600 else
2601   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2602 $as_echo "$as_me: creating cache $cache_file" >&6;}
2603   >$cache_file
2606 as_fn_append ac_header_list " utime.h"
2607 # Check that the precious variables saved in the cache have kept the same
2608 # value.
2609 ac_cache_corrupted=false
2610 for ac_var in $ac_precious_vars; do
2611   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2612   eval ac_new_set=\$ac_env_${ac_var}_set
2613   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2614   eval ac_new_val=\$ac_env_${ac_var}_value
2615   case $ac_old_set,$ac_new_set in
2616     set,)
2617       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2618 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2619       ac_cache_corrupted=: ;;
2620     ,set)
2621       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2622 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2623       ac_cache_corrupted=: ;;
2624     ,);;
2625     *)
2626       if test "x$ac_old_val" != "x$ac_new_val"; then
2627         # differences in whitespace do not lead to failure.
2628         ac_old_val_w=`echo x $ac_old_val`
2629         ac_new_val_w=`echo x $ac_new_val`
2630         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2631           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2632 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2633           ac_cache_corrupted=:
2634         else
2635           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2636 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2637           eval $ac_var=\$ac_old_val
2638         fi
2639         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2640 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2641         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2642 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2643       fi;;
2644   esac
2645   # Pass precious variables to config.status.
2646   if test "$ac_new_set" = set; then
2647     case $ac_new_val in
2648     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2649     *) ac_arg=$ac_var=$ac_new_val ;;
2650     esac
2651     case " $ac_configure_args " in
2652       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2653       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2654     esac
2655   fi
2656 done
2657 if $ac_cache_corrupted; then
2658   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2659 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2660   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2661 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2662   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 
2664 ## -------------------- ##
2665 ## Main body of script. ##
2666 ## -------------------- ##
2668 ac_ext=c
2669 ac_cpp='$CPP $CPPFLAGS'
2670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2675 ac_config_headers="$ac_config_headers config.h"
2678 ac_aux_dir=
2679 for ac_dir in config "$srcdir"/config; do
2680   if test -f "$ac_dir/install-sh"; then
2681     ac_aux_dir=$ac_dir
2682     ac_install_sh="$ac_aux_dir/install-sh -c"
2683     break
2684   elif test -f "$ac_dir/install.sh"; then
2685     ac_aux_dir=$ac_dir
2686     ac_install_sh="$ac_aux_dir/install.sh -c"
2687     break
2688   elif test -f "$ac_dir/shtool"; then
2689     ac_aux_dir=$ac_dir
2690     ac_install_sh="$ac_aux_dir/shtool install -c"
2691     break
2692   fi
2693 done
2694 if test -z "$ac_aux_dir"; then
2695   as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 
2698 # These three variables are undocumented and unsupported,
2699 # and are intended to be withdrawn in a future Autoconf release.
2700 # They can cause serious problems if a builder's source tree is in a directory
2701 # whose full name contains unusual characters.
2702 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2703 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2704 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2709 $as_echo_n "checking whether build environment is sane... " >&6; }
2710 # Just in case
2711 sleep 1
2712 echo timestamp > conftest.file
2713 # Reject unsafe characters in $srcdir or the absolute working directory
2714 # name.  Accept space and tab only in the latter.
2715 am_lf='
2717 case `pwd` in
2718   *[\\\"\#\$\&\'\`$am_lf]*)
2719     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2720 esac
2721 case $srcdir in
2722   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2723     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2724 esac
2726 # Do `set' in a subshell so we don't clobber the current shell's
2727 # arguments.  Must try -L first in case configure is actually a
2728 # symlink; some systems play weird games with the mod time of symlinks
2729 # (eg FreeBSD returns the mod time of the symlink's containing
2730 # directory).
2731 if (
2732    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2733    if test "$*" = "X"; then
2734       # -L didn't work.
2735       set X `ls -t "$srcdir/configure" conftest.file`
2736    fi
2737    rm -f conftest.file
2738    if test "$*" != "X $srcdir/configure conftest.file" \
2739       && test "$*" != "X conftest.file $srcdir/configure"; then
2741       # If neither matched, then we have a broken ls.  This can happen
2742       # if, for instance, CONFIG_SHELL is bash and it inherits a
2743       # broken ls alias from the environment.  This has actually
2744       # happened.  Such a system could not be considered "sane".
2745       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2746 alias in your environment" "$LINENO" 5 
2747    fi
2749    test "$2" = conftest.file
2750    )
2751 then
2752    # Ok.
2753    :
2754 else
2755    as_fn_error $? "newly created file is older than distributed files!
2756 Check your system clock" "$LINENO" 5 
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2759 $as_echo "yes" >&6; }
2761 for ac_prog in gawk mawk nawk awk
2763   # Extract the first word of "$ac_prog", so it can be a program name with args.
2764 set dummy $ac_prog; ac_word=$2
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2766 $as_echo_n "checking for $ac_word... " >&6; }
2767 if test "${ac_cv_prog_AWK+set}" = set; then :
2768   $as_echo_n "(cached) " >&6
2769 else
2770   if test -n "$AWK"; then
2771   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2772 else
2773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2774 for as_dir in $PATH
2776   IFS=$as_save_IFS
2777   test -z "$as_dir" && as_dir=.
2778     for ac_exec_ext in '' $ac_executable_extensions; do
2779   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2780     ac_cv_prog_AWK="$ac_prog"
2781     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2782     break 2
2783   fi
2784 done
2785   done
2786 IFS=$as_save_IFS
2790 AWK=$ac_cv_prog_AWK
2791 if test -n "$AWK"; then
2792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2793 $as_echo "$AWK" >&6; }
2794 else
2795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2796 $as_echo "no" >&6; }
2800   test -n "$AWK" && break
2801 done
2803 ac_ext=c
2804 ac_cpp='$CPP $CPPFLAGS'
2805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2808 if test -n "$ac_tool_prefix"; then
2809   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2810 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2812 $as_echo_n "checking for $ac_word... " >&6; }
2813 if test "${ac_cv_prog_CC+set}" = set; then :
2814   $as_echo_n "(cached) " >&6
2815 else
2816   if test -n "$CC"; then
2817   ac_cv_prog_CC="$CC" # Let the user override the test.
2818 else
2819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820 for as_dir in $PATH
2822   IFS=$as_save_IFS
2823   test -z "$as_dir" && as_dir=.
2824     for ac_exec_ext in '' $ac_executable_extensions; do
2825   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2826     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2827     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2828     break 2
2829   fi
2830 done
2831   done
2832 IFS=$as_save_IFS
2836 CC=$ac_cv_prog_CC
2837 if test -n "$CC"; then
2838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2839 $as_echo "$CC" >&6; }
2840 else
2841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2842 $as_echo "no" >&6; }
2847 if test -z "$ac_cv_prog_CC"; then
2848   ac_ct_CC=$CC
2849   # Extract the first word of "gcc", so it can be a program name with args.
2850 set dummy gcc; ac_word=$2
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2852 $as_echo_n "checking for $ac_word... " >&6; }
2853 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2854   $as_echo_n "(cached) " >&6
2855 else
2856   if test -n "$ac_ct_CC"; then
2857   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2858 else
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860 for as_dir in $PATH
2862   IFS=$as_save_IFS
2863   test -z "$as_dir" && as_dir=.
2864     for ac_exec_ext in '' $ac_executable_extensions; do
2865   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2866     ac_cv_prog_ac_ct_CC="gcc"
2867     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2868     break 2
2869   fi
2870 done
2871   done
2872 IFS=$as_save_IFS
2876 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2877 if test -n "$ac_ct_CC"; then
2878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2879 $as_echo "$ac_ct_CC" >&6; }
2880 else
2881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2882 $as_echo "no" >&6; }
2885   if test "x$ac_ct_CC" = x; then
2886     CC=""
2887   else
2888     case $cross_compiling:$ac_tool_warned in
2889 yes:)
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2891 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2892 ac_tool_warned=yes ;;
2893 esac
2894     CC=$ac_ct_CC
2895   fi
2896 else
2897   CC="$ac_cv_prog_CC"
2900 if test -z "$CC"; then
2901           if test -n "$ac_tool_prefix"; then
2902     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2903 set dummy ${ac_tool_prefix}cc; ac_word=$2
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2905 $as_echo_n "checking for $ac_word... " >&6; }
2906 if test "${ac_cv_prog_CC+set}" = set; then :
2907   $as_echo_n "(cached) " >&6
2908 else
2909   if test -n "$CC"; then
2910   ac_cv_prog_CC="$CC" # Let the user override the test.
2911 else
2912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2913 for as_dir in $PATH
2915   IFS=$as_save_IFS
2916   test -z "$as_dir" && as_dir=.
2917     for ac_exec_ext in '' $ac_executable_extensions; do
2918   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2919     ac_cv_prog_CC="${ac_tool_prefix}cc"
2920     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2921     break 2
2922   fi
2923 done
2924   done
2925 IFS=$as_save_IFS
2929 CC=$ac_cv_prog_CC
2930 if test -n "$CC"; then
2931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2932 $as_echo "$CC" >&6; }
2933 else
2934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2935 $as_echo "no" >&6; }
2939   fi
2941 if test -z "$CC"; then
2942   # Extract the first word of "cc", so it can be a program name with args.
2943 set dummy cc; ac_word=$2
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2945 $as_echo_n "checking for $ac_word... " >&6; }
2946 if test "${ac_cv_prog_CC+set}" = set; then :
2947   $as_echo_n "(cached) " >&6
2948 else
2949   if test -n "$CC"; then
2950   ac_cv_prog_CC="$CC" # Let the user override the test.
2951 else
2952   ac_prog_rejected=no
2953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954 for as_dir in $PATH
2956   IFS=$as_save_IFS
2957   test -z "$as_dir" && as_dir=.
2958     for ac_exec_ext in '' $ac_executable_extensions; do
2959   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2960     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2961        ac_prog_rejected=yes
2962        continue
2963      fi
2964     ac_cv_prog_CC="cc"
2965     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2966     break 2
2967   fi
2968 done
2969   done
2970 IFS=$as_save_IFS
2972 if test $ac_prog_rejected = yes; then
2973   # We found a bogon in the path, so make sure we never use it.
2974   set dummy $ac_cv_prog_CC
2975   shift
2976   if test $@%:@ != 0; then
2977     # We chose a different compiler from the bogus one.
2978     # However, it has the same basename, so the bogon will be chosen
2979     # first if we set CC to just the basename; use the full file name.
2980     shift
2981     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2982   fi
2986 CC=$ac_cv_prog_CC
2987 if test -n "$CC"; then
2988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2989 $as_echo "$CC" >&6; }
2990 else
2991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2992 $as_echo "no" >&6; }
2997 if test -z "$CC"; then
2998   if test -n "$ac_tool_prefix"; then
2999   for ac_prog in cl.exe
3000   do
3001     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3002 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3004 $as_echo_n "checking for $ac_word... " >&6; }
3005 if test "${ac_cv_prog_CC+set}" = set; then :
3006   $as_echo_n "(cached) " >&6
3007 else
3008   if test -n "$CC"; then
3009   ac_cv_prog_CC="$CC" # Let the user override the test.
3010 else
3011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3012 for as_dir in $PATH
3014   IFS=$as_save_IFS
3015   test -z "$as_dir" && as_dir=.
3016     for ac_exec_ext in '' $ac_executable_extensions; do
3017   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3018     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3019     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3020     break 2
3021   fi
3022 done
3023   done
3024 IFS=$as_save_IFS
3028 CC=$ac_cv_prog_CC
3029 if test -n "$CC"; then
3030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3031 $as_echo "$CC" >&6; }
3032 else
3033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3034 $as_echo "no" >&6; }
3038     test -n "$CC" && break
3039   done
3041 if test -z "$CC"; then
3042   ac_ct_CC=$CC
3043   for ac_prog in cl.exe
3045   # Extract the first word of "$ac_prog", so it can be a program name with args.
3046 set dummy $ac_prog; ac_word=$2
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3048 $as_echo_n "checking for $ac_word... " >&6; }
3049 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3050   $as_echo_n "(cached) " >&6
3051 else
3052   if test -n "$ac_ct_CC"; then
3053   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3054 else
3055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056 for as_dir in $PATH
3058   IFS=$as_save_IFS
3059   test -z "$as_dir" && as_dir=.
3060     for ac_exec_ext in '' $ac_executable_extensions; do
3061   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3062     ac_cv_prog_ac_ct_CC="$ac_prog"
3063     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3064     break 2
3065   fi
3066 done
3067   done
3068 IFS=$as_save_IFS
3072 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3073 if test -n "$ac_ct_CC"; then
3074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3075 $as_echo "$ac_ct_CC" >&6; }
3076 else
3077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3078 $as_echo "no" >&6; }
3082   test -n "$ac_ct_CC" && break
3083 done
3085   if test "x$ac_ct_CC" = x; then
3086     CC=""
3087   else
3088     case $cross_compiling:$ac_tool_warned in
3089 yes:)
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3091 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3092 ac_tool_warned=yes ;;
3093 esac
3094     CC=$ac_ct_CC
3095   fi
3101 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3102 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3103 as_fn_error $? "no acceptable C compiler found in \$PATH
3104 See \`config.log' for more details" "$LINENO" 5 ; }
3106 # Provide some information about the compiler.
3107 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3108 set X $ac_compile
3109 ac_compiler=$2
3110 for ac_option in --version -v -V -qversion; do
3111   { { ac_try="$ac_compiler $ac_option >&5"
3112 case "(($ac_try" in
3113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114   *) ac_try_echo=$ac_try;;
3115 esac
3116 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3117 $as_echo "$ac_try_echo"; } >&5
3118   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3119   ac_status=$?
3120   if test -s conftest.err; then
3121     sed '10a\
3122 ... rest of stderr output deleted ...
3123          10q' conftest.err >conftest.er1
3124     cat conftest.er1 >&5
3125   fi
3126   rm -f conftest.er1 conftest.err
3127   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3128   test $ac_status = 0; }
3129 done
3131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3132 /* end confdefs.h.  */
3135 main ()
3138   ;
3139   return 0;
3141 _ACEOF
3142 ac_clean_files_save=$ac_clean_files
3143 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3144 # Try to create an executable without -o first, disregard a.out.
3145 # It will help us diagnose broken compilers, and finding out an intuition
3146 # of exeext.
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3148 $as_echo_n "checking whether the C compiler works... " >&6; }
3149 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3151 # The possible output files:
3152 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3154 ac_rmfiles=
3155 for ac_file in $ac_files
3157   case $ac_file in
3158     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3159     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3160   esac
3161 done
3162 rm -f $ac_rmfiles
3164 if { { ac_try="$ac_link_default"
3165 case "(($ac_try" in
3166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167   *) ac_try_echo=$ac_try;;
3168 esac
3169 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3170 $as_echo "$ac_try_echo"; } >&5
3171   (eval "$ac_link_default") 2>&5
3172   ac_status=$?
3173   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3174   test $ac_status = 0; }; then :
3175   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3176 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3177 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3178 # so that the user can short-circuit this test for compilers unknown to
3179 # Autoconf.
3180 for ac_file in $ac_files ''
3182   test -f "$ac_file" || continue
3183   case $ac_file in
3184     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3185         ;;
3186     [ab].out )
3187         # We found the default executable, but exeext='' is most
3188         # certainly right.
3189         break;;
3190     *.* )
3191         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3192         then :; else
3193            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3194         fi
3195         # We set ac_cv_exeext here because the later test for it is not
3196         # safe: cross compilers may not add the suffix if given an `-o'
3197         # argument, so we may need to know it at that point already.
3198         # Even if this section looks crufty: it has the advantage of
3199         # actually working.
3200         break;;
3201     * )
3202         break;;
3203   esac
3204 done
3205 test "$ac_cv_exeext" = no && ac_cv_exeext=
3207 else
3208   ac_file=''
3210 if test -z "$ac_file"; then :
3211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3212 $as_echo "no" >&6; }
3213 $as_echo "$as_me: failed program was:" >&5
3214 sed 's/^/| /' conftest.$ac_ext >&5
3216 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3217 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3218 as_fn_error 77 "C compiler cannot create executables
3219 See \`config.log' for more details" "$LINENO" 5 ; }
3220 else
3221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3222 $as_echo "yes" >&6; }
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3225 $as_echo_n "checking for C compiler default output file name... " >&6; }
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3227 $as_echo "$ac_file" >&6; }
3228 ac_exeext=$ac_cv_exeext
3230 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3231 ac_clean_files=$ac_clean_files_save
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3233 $as_echo_n "checking for suffix of executables... " >&6; }
3234 if { { ac_try="$ac_link"
3235 case "(($ac_try" in
3236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3237   *) ac_try_echo=$ac_try;;
3238 esac
3239 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3240 $as_echo "$ac_try_echo"; } >&5
3241   (eval "$ac_link") 2>&5
3242   ac_status=$?
3243   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3244   test $ac_status = 0; }; then :
3245   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3246 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3247 # work properly (i.e., refer to `conftest.exe'), while it won't with
3248 # `rm'.
3249 for ac_file in conftest.exe conftest conftest.*; do
3250   test -f "$ac_file" || continue
3251   case $ac_file in
3252     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3253     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3254           break;;
3255     * ) break;;
3256   esac
3257 done
3258 else
3259   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3260 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3261 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3262 See \`config.log' for more details" "$LINENO" 5 ; }
3264 rm -f conftest conftest$ac_cv_exeext
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3266 $as_echo "$ac_cv_exeext" >&6; }
3268 rm -f conftest.$ac_ext
3269 EXEEXT=$ac_cv_exeext
3270 ac_exeext=$EXEEXT
3271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3272 /* end confdefs.h.  */
3273 @%:@include <stdio.h>
3275 main ()
3277 FILE *f = fopen ("conftest.out", "w");
3278  return ferror (f) || fclose (f) != 0;
3280   ;
3281   return 0;
3283 _ACEOF
3284 ac_clean_files="$ac_clean_files conftest.out"
3285 # Check that the compiler produces executables we can run.  If not, either
3286 # the compiler is broken, or we cross compile.
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3288 $as_echo_n "checking whether we are cross compiling... " >&6; }
3289 if test "$cross_compiling" != yes; then
3290   { { ac_try="$ac_link"
3291 case "(($ac_try" in
3292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293   *) ac_try_echo=$ac_try;;
3294 esac
3295 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3296 $as_echo "$ac_try_echo"; } >&5
3297   (eval "$ac_link") 2>&5
3298   ac_status=$?
3299   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3300   test $ac_status = 0; }
3301   if { ac_try='./conftest$ac_cv_exeext'
3302   { { case "(($ac_try" in
3303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3304   *) ac_try_echo=$ac_try;;
3305 esac
3306 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3307 $as_echo "$ac_try_echo"; } >&5
3308   (eval "$ac_try") 2>&5
3309   ac_status=$?
3310   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3311   test $ac_status = 0; }; }; then
3312     cross_compiling=no
3313   else
3314     if test "$cross_compiling" = maybe; then
3315         cross_compiling=yes
3316     else
3317         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3319 as_fn_error $? "cannot run C compiled programs.
3320 If you meant to cross compile, use \`--host'.
3321 See \`config.log' for more details" "$LINENO" 5 ; }
3322     fi
3323   fi
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3326 $as_echo "$cross_compiling" >&6; }
3328 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3329 ac_clean_files=$ac_clean_files_save
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3331 $as_echo_n "checking for suffix of object files... " >&6; }
3332 if test "${ac_cv_objext+set}" = set; then :
3333   $as_echo_n "(cached) " >&6
3334 else
3335   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3336 /* end confdefs.h.  */
3339 main ()
3342   ;
3343   return 0;
3345 _ACEOF
3346 rm -f conftest.o conftest.obj
3347 if { { ac_try="$ac_compile"
3348 case "(($ac_try" in
3349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350   *) ac_try_echo=$ac_try;;
3351 esac
3352 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3353 $as_echo "$ac_try_echo"; } >&5
3354   (eval "$ac_compile") 2>&5
3355   ac_status=$?
3356   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3357   test $ac_status = 0; }; then :
3358   for ac_file in conftest.o conftest.obj conftest.*; do
3359   test -f "$ac_file" || continue;
3360   case $ac_file in
3361     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3362     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3363        break;;
3364   esac
3365 done
3366 else
3367   $as_echo "$as_me: failed program was:" >&5
3368 sed 's/^/| /' conftest.$ac_ext >&5
3370 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3371 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3372 as_fn_error $? "cannot compute suffix of object files: cannot compile
3373 See \`config.log' for more details" "$LINENO" 5 ; }
3375 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3378 $as_echo "$ac_cv_objext" >&6; }
3379 OBJEXT=$ac_cv_objext
3380 ac_objext=$OBJEXT
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3382 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3383 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3384   $as_echo_n "(cached) " >&6
3385 else
3386   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3387 /* end confdefs.h.  */
3390 main ()
3392 #ifndef __GNUC__
3393        choke me
3394 #endif
3396   ;
3397   return 0;
3399 _ACEOF
3400 if ac_fn_c_try_compile "$LINENO"; then :
3401   ac_compiler_gnu=yes
3402 else
3403   ac_compiler_gnu=no
3405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3406 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3410 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3411 if test $ac_compiler_gnu = yes; then
3412   GCC=yes
3413 else
3414   GCC=
3416 ac_test_CFLAGS=${CFLAGS+set}
3417 ac_save_CFLAGS=$CFLAGS
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3419 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3420 if test "${ac_cv_prog_cc_g+set}" = set; then :
3421   $as_echo_n "(cached) " >&6
3422 else
3423   ac_save_c_werror_flag=$ac_c_werror_flag
3424    ac_c_werror_flag=yes
3425    ac_cv_prog_cc_g=no
3426    CFLAGS="-g"
3427    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3428 /* end confdefs.h.  */
3431 main ()
3434   ;
3435   return 0;
3437 _ACEOF
3438 if ac_fn_c_try_compile "$LINENO"; then :
3439   ac_cv_prog_cc_g=yes
3440 else
3441   CFLAGS=""
3442       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3443 /* end confdefs.h.  */
3446 main ()
3449   ;
3450   return 0;
3452 _ACEOF
3453 if ac_fn_c_try_compile "$LINENO"; then :
3454   
3455 else
3456   ac_c_werror_flag=$ac_save_c_werror_flag
3457          CFLAGS="-g"
3458          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3459 /* end confdefs.h.  */
3462 main ()
3465   ;
3466   return 0;
3468 _ACEOF
3469 if ac_fn_c_try_compile "$LINENO"; then :
3470   ac_cv_prog_cc_g=yes
3472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3477    ac_c_werror_flag=$ac_save_c_werror_flag
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3480 $as_echo "$ac_cv_prog_cc_g" >&6; }
3481 if test "$ac_test_CFLAGS" = set; then
3482   CFLAGS=$ac_save_CFLAGS
3483 elif test $ac_cv_prog_cc_g = yes; then
3484   if test "$GCC" = yes; then
3485     CFLAGS="-g -O2"
3486   else
3487     CFLAGS="-g"
3488   fi
3489 else
3490   if test "$GCC" = yes; then
3491     CFLAGS="-O2"
3492   else
3493     CFLAGS=
3494   fi
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3497 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3498 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3499   $as_echo_n "(cached) " >&6
3500 else
3501   ac_cv_prog_cc_c89=no
3502 ac_save_CC=$CC
3503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504 /* end confdefs.h.  */
3505 #include <stdarg.h>
3506 #include <stdio.h>
3507 #include <sys/types.h>
3508 #include <sys/stat.h>
3509 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3510 struct buf { int x; };
3511 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3512 static char *e (p, i)
3513      char **p;
3514      int i;
3516   return p[i];
3518 static char *f (char * (*g) (char **, int), char **p, ...)
3520   char *s;
3521   va_list v;
3522   va_start (v,p);
3523   s = g (p, va_arg (v,int));
3524   va_end (v);
3525   return s;
3528 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3529    function prototypes and stuff, but not '\xHH' hex character constants.
3530    These don't provoke an error unfortunately, instead are silently treated
3531    as 'x'.  The following induces an error, until -std is added to get
3532    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3533    array size at least.  It's necessary to write '\x00'==0 to get something
3534    that's true only with -std.  */
3535 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3537 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3538    inside strings and character constants.  */
3539 #define FOO(x) 'x'
3540 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3542 int test (int i, double x);
3543 struct s1 {int (*f) (int a);};
3544 struct s2 {int (*f) (double a);};
3545 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3546 int argc;
3547 char **argv;
3549 main ()
3551 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3552   ;
3553   return 0;
3555 _ACEOF
3556 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3557         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3559   CC="$ac_save_CC $ac_arg"
3560   if ac_fn_c_try_compile "$LINENO"; then :
3561   ac_cv_prog_cc_c89=$ac_arg
3563 rm -f core conftest.err conftest.$ac_objext
3564   test "x$ac_cv_prog_cc_c89" != "xno" && break
3565 done
3566 rm -f conftest.$ac_ext
3567 CC=$ac_save_CC
3570 # AC_CACHE_VAL
3571 case "x$ac_cv_prog_cc_c89" in
3572   x)
3573     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3574 $as_echo "none needed" >&6; } ;;
3575   xno)
3576     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3577 $as_echo "unsupported" >&6; } ;;
3578   *)
3579     CC="$CC $ac_cv_prog_cc_c89"
3580     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3581 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3582 esac
3583 if test "x$ac_cv_prog_cc_c89" != xno; then :
3584   
3587 ac_ext=c
3588 ac_cpp='$CPP $CPPFLAGS'
3589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3593 ac_ext=c
3594 ac_cpp='$CPP $CPPFLAGS'
3595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3599 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3600 # On Suns, sometimes $CPP names a directory.
3601 if test -n "$CPP" && test -d "$CPP"; then
3602   CPP=
3604 if test -z "$CPP"; then
3605   if test "${ac_cv_prog_CPP+set}" = set; then :
3606   $as_echo_n "(cached) " >&6
3607 else
3608       # Double quotes because CPP needs to be expanded
3609     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3610     do
3611       ac_preproc_ok=false
3612 for ac_c_preproc_warn_flag in '' yes
3614   # Use a header file that comes with gcc, so configuring glibc
3615   # with a fresh cross-compiler works.
3616   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3617   # <limits.h> exists even on freestanding compilers.
3618   # On the NeXT, cc -E runs the code through the compiler's parser,
3619   # not just through cpp. "Syntax error" is here to catch this case.
3620   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3621 /* end confdefs.h.  */
3622 @%:@ifdef __STDC__
3623 @%:@ include <limits.h>
3624 @%:@else
3625 @%:@ include <assert.h>
3626 @%:@endif
3627                      Syntax error
3628 _ACEOF
3629 if ac_fn_c_try_cpp "$LINENO"; then :
3630   
3631 else
3632   # Broken: fails on valid input.
3633 continue
3635 rm -f conftest.err conftest.i conftest.$ac_ext
3637   # OK, works on sane cases.  Now check whether nonexistent headers
3638   # can be detected and how.
3639   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3640 /* end confdefs.h.  */
3641 @%:@include <ac_nonexistent.h>
3642 _ACEOF
3643 if ac_fn_c_try_cpp "$LINENO"; then :
3644   # Broken: success on invalid input.
3645 continue
3646 else
3647   # Passes both tests.
3648 ac_preproc_ok=:
3649 break
3651 rm -f conftest.err conftest.i conftest.$ac_ext
3653 done
3654 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3655 rm -f conftest.i conftest.err conftest.$ac_ext
3656 if $ac_preproc_ok; then :
3657   break
3660     done
3661     ac_cv_prog_CPP=$CPP
3662   
3664   CPP=$ac_cv_prog_CPP
3665 else
3666   ac_cv_prog_CPP=$CPP
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3669 $as_echo "$CPP" >&6; }
3670 ac_preproc_ok=false
3671 for ac_c_preproc_warn_flag in '' yes
3673   # Use a header file that comes with gcc, so configuring glibc
3674   # with a fresh cross-compiler works.
3675   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3676   # <limits.h> exists even on freestanding compilers.
3677   # On the NeXT, cc -E runs the code through the compiler's parser,
3678   # not just through cpp. "Syntax error" is here to catch this case.
3679   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3680 /* end confdefs.h.  */
3681 @%:@ifdef __STDC__
3682 @%:@ include <limits.h>
3683 @%:@else
3684 @%:@ include <assert.h>
3685 @%:@endif
3686                      Syntax error
3687 _ACEOF
3688 if ac_fn_c_try_cpp "$LINENO"; then :
3689   
3690 else
3691   # Broken: fails on valid input.
3692 continue
3694 rm -f conftest.err conftest.i conftest.$ac_ext
3696   # OK, works on sane cases.  Now check whether nonexistent headers
3697   # can be detected and how.
3698   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3699 /* end confdefs.h.  */
3700 @%:@include <ac_nonexistent.h>
3701 _ACEOF
3702 if ac_fn_c_try_cpp "$LINENO"; then :
3703   # Broken: success on invalid input.
3704 continue
3705 else
3706   # Passes both tests.
3707 ac_preproc_ok=:
3708 break
3710 rm -f conftest.err conftest.i conftest.$ac_ext
3712 done
3713 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3714 rm -f conftest.i conftest.err conftest.$ac_ext
3715 if $ac_preproc_ok; then :
3716   
3717 else
3718   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3719 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3720 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3721 See \`config.log' for more details" "$LINENO" 5 ; }
3724 ac_ext=c
3725 ac_cpp='$CPP $CPPFLAGS'
3726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3730 # Find a good install program.  We prefer a C program (faster),
3731 # so one script is as good as another.  But avoid the broken or
3732 # incompatible versions:
3733 # SysV /etc/install, /usr/sbin/install
3734 # SunOS /usr/etc/install
3735 # IRIX /sbin/install
3736 # AIX /bin/install
3737 # AmigaOS /C/install, which installs bootblocks on floppy discs
3738 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3739 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3740 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3741 # OS/2's system install, which has a completely different semantic
3742 # ./install, which can be erroneously created by make from ./install.sh.
3743 # Reject install programs that cannot install multiple files.
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3745 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3746 if test -z "$INSTALL"; then
3747 if test "${ac_cv_path_install+set}" = set; then :
3748   $as_echo_n "(cached) " >&6
3749 else
3750   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751 for as_dir in $PATH
3753   IFS=$as_save_IFS
3754   test -z "$as_dir" && as_dir=.
3755     # Account for people who put trailing slashes in PATH elements.
3756 case $as_dir/ in @%:@((
3757   ./ | .// | /[cC]/* | \
3758   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3759   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3760   /usr/ucb/* ) ;;
3761   *)
3762     # OSF1 and SCO ODT 3.0 have their own names for install.
3763     # Don't use installbsd from OSF since it installs stuff as root
3764     # by default.
3765     for ac_prog in ginstall scoinst install; do
3766       for ac_exec_ext in '' $ac_executable_extensions; do
3767         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3768           if test $ac_prog = install &&
3769             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3770             # AIX install.  It has an incompatible calling convention.
3771             :
3772           elif test $ac_prog = install &&
3773             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3774             # program-specific install script used by HP pwplus--don't use.
3775             :
3776           else
3777             rm -rf conftest.one conftest.two conftest.dir
3778             echo one > conftest.one
3779             echo two > conftest.two
3780             mkdir conftest.dir
3781             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3782               test -s conftest.one && test -s conftest.two &&
3783               test -s conftest.dir/conftest.one &&
3784               test -s conftest.dir/conftest.two
3785             then
3786               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3787               break 3
3788             fi
3789           fi
3790         fi
3791       done
3792     done
3793     ;;
3794 esac
3796   done
3797 IFS=$as_save_IFS
3799 rm -rf conftest.one conftest.two conftest.dir
3802   if test "${ac_cv_path_install+set}" = set; then
3803     INSTALL=$ac_cv_path_install
3804   else
3805     # As a last resort, use the slow shell script.  Don't cache a
3806     # value for INSTALL within a source directory, because that will
3807     # break other packages using the cache if that directory is
3808     # removed, or if the value is a relative name.
3809     INSTALL=$ac_install_sh
3810   fi
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3813 $as_echo "$INSTALL" >&6; }
3815 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3816 # It thinks the first close brace ends the variable substitution.
3817 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3819 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3821 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3824 $as_echo_n "checking whether ln -s works... " >&6; }
3825 LN_S=$as_ln_s
3826 if test "$LN_S" = "ln -s"; then
3827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3828 $as_echo "yes" >&6; }
3829 else
3830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3831 $as_echo "no, using $LN_S" >&6; }
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3835 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3836 set x ${MAKE-make}
3837 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3838 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3839   $as_echo_n "(cached) " >&6
3840 else
3841   cat >conftest.make <<\_ACEOF
3842 SHELL = /bin/sh
3843 all:
3844         @echo '@@@%%%=$(MAKE)=@@@%%%'
3845 _ACEOF
3846 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3847 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3848   *@@@%%%=?*=@@@%%%*)
3849     eval ac_cv_prog_make_${ac_make}_set=yes;;
3850   *)
3851     eval ac_cv_prog_make_${ac_make}_set=no;;
3852 esac
3853 rm -f conftest.make
3855 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3857 $as_echo "yes" >&6; }
3858   SET_MAKE=
3859 else
3860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3861 $as_echo "no" >&6; }
3862   SET_MAKE="MAKE=${MAKE-make}"
3865 if test -n "$ac_tool_prefix"; then
3866   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3867 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3869 $as_echo_n "checking for $ac_word... " >&6; }
3870 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3871   $as_echo_n "(cached) " >&6
3872 else
3873   if test -n "$RANLIB"; then
3874   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3875 else
3876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3877 for as_dir in $PATH
3879   IFS=$as_save_IFS
3880   test -z "$as_dir" && as_dir=.
3881     for ac_exec_ext in '' $ac_executable_extensions; do
3882   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3883     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3884     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3885     break 2
3886   fi
3887 done
3888   done
3889 IFS=$as_save_IFS
3893 RANLIB=$ac_cv_prog_RANLIB
3894 if test -n "$RANLIB"; then
3895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3896 $as_echo "$RANLIB" >&6; }
3897 else
3898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3899 $as_echo "no" >&6; }
3904 if test -z "$ac_cv_prog_RANLIB"; then
3905   ac_ct_RANLIB=$RANLIB
3906   # Extract the first word of "ranlib", so it can be a program name with args.
3907 set dummy ranlib; ac_word=$2
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3909 $as_echo_n "checking for $ac_word... " >&6; }
3910 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3911   $as_echo_n "(cached) " >&6
3912 else
3913   if test -n "$ac_ct_RANLIB"; then
3914   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3915 else
3916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3917 for as_dir in $PATH
3919   IFS=$as_save_IFS
3920   test -z "$as_dir" && as_dir=.
3921     for ac_exec_ext in '' $ac_executable_extensions; do
3922   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3923     ac_cv_prog_ac_ct_RANLIB="ranlib"
3924     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3925     break 2
3926   fi
3927 done
3928   done
3929 IFS=$as_save_IFS
3933 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3934 if test -n "$ac_ct_RANLIB"; then
3935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3936 $as_echo "$ac_ct_RANLIB" >&6; }
3937 else
3938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3939 $as_echo "no" >&6; }
3942   if test "x$ac_ct_RANLIB" = x; then
3943     RANLIB=":"
3944   else
3945     case $cross_compiling:$ac_tool_warned in
3946 yes:)
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3948 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3949 ac_tool_warned=yes ;;
3950 esac
3951     RANLIB=$ac_ct_RANLIB
3952   fi
3953 else
3954   RANLIB="$ac_cv_prog_RANLIB"
3957 for ac_prog in ar aal
3959   # Extract the first word of "$ac_prog", so it can be a program name with args.
3960 set dummy $ac_prog; ac_word=$2
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3962 $as_echo_n "checking for $ac_word... " >&6; }
3963 if test "${ac_cv_prog_AR+set}" = set; then :
3964   $as_echo_n "(cached) " >&6
3965 else
3966   if test -n "$AR"; then
3967   ac_cv_prog_AR="$AR" # Let the user override the test.
3968 else
3969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3970 for as_dir in $PATH
3972   IFS=$as_save_IFS
3973   test -z "$as_dir" && as_dir=.
3974     for ac_exec_ext in '' $ac_executable_extensions; do
3975   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3976     ac_cv_prog_AR="$ac_prog"
3977     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3978     break 2
3979   fi
3980 done
3981   done
3982 IFS=$as_save_IFS
3986 AR=$ac_cv_prog_AR
3987 if test -n "$AR"; then
3988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3989 $as_echo "$AR" >&6; }
3990 else
3991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3992 $as_echo "no" >&6; }
3996   test -n "$AR" && break
3997 done
3998 test -n "$AR" || AR="ar"
4000    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4001 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4002 if test "${ac_cv_prog_cc_c99+set}" = set; then :
4003   $as_echo_n "(cached) " >&6
4004 else
4005   ac_cv_prog_cc_c99=no
4006 ac_save_CC=$CC
4007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4008 /* end confdefs.h.  */
4009 #include <stdarg.h>
4010 #include <stdbool.h>
4011 #include <stdlib.h>
4012 #include <wchar.h>
4013 #include <stdio.h>
4015 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
4016 #define debug(...) fprintf (stderr, __VA_ARGS__)
4017 #define showlist(...) puts (#__VA_ARGS__)
4018 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4019 static void
4020 test_varargs_macros (void)
4022   int x = 1234;
4023   int y = 5678;
4024   debug ("Flag");
4025   debug ("X = %d\n", x);
4026   showlist (The first, second, and third items.);
4027   report (x>y, "x is %d but y is %d", x, y);
4030 // Check long long types.
4031 #define BIG64 18446744073709551615ull
4032 #define BIG32 4294967295ul
4033 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4034 #if !BIG_OK
4035   your preprocessor is broken;
4036 #endif
4037 #if BIG_OK
4038 #else
4039   your preprocessor is broken;
4040 #endif
4041 static long long int bignum = -9223372036854775807LL;
4042 static unsigned long long int ubignum = BIG64;
4044 struct incomplete_array
4046   int datasize;
4047   double data[];
4050 struct named_init {
4051   int number;
4052   const wchar_t *name;
4053   double average;
4056 typedef const char *ccp;
4058 static inline int
4059 test_restrict (ccp restrict text)
4061   // See if C++-style comments work.
4062   // Iterate through items via the restricted pointer.
4063   // Also check for declarations in for loops.
4064   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4065     continue;
4066   return 0;
4069 // Check varargs and va_copy.
4070 static void
4071 test_varargs (const char *format, ...)
4073   va_list args;
4074   va_start (args, format);
4075   va_list args_copy;
4076   va_copy (args_copy, args);
4078   const char *str;
4079   int number;
4080   float fnumber;
4082   while (*format)
4083     {
4084       switch (*format++)
4085         {
4086         case 's': // string
4087           str = va_arg (args_copy, const char *);
4088           break;
4089         case 'd': // int
4090           number = va_arg (args_copy, int);
4091           break;
4092         case 'f': // float
4093           fnumber = va_arg (args_copy, double);
4094           break;
4095         default:
4096           break;
4097         }
4098     }
4099   va_end (args_copy);
4100   va_end (args);
4104 main ()
4107   // Check bool.
4108   _Bool success = false;
4110   // Check restrict.
4111   if (test_restrict ("String literal") == 0)
4112     success = true;
4113   char *restrict newvar = "Another string";
4115   // Check varargs.
4116   test_varargs ("s, d' f .", "string", 65, 34.234);
4117   test_varargs_macros ();
4119   // Check flexible array members.
4120   struct incomplete_array *ia =
4121     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4122   ia->datasize = 10;
4123   for (int i = 0; i < ia->datasize; ++i)
4124     ia->data[i] = i * 1.234;
4126   // Check named initializers.
4127   struct named_init ni = {
4128     .number = 34,
4129     .name = L"Test wide string",
4130     .average = 543.34343,
4131   };
4133   ni.number = 58;
4135   int dynamic_array[ni.number];
4136   dynamic_array[ni.number - 1] = 543;
4138   // work around unused variable warnings
4139   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4140           || dynamic_array[ni.number - 1] != 543);
4142   ;
4143   return 0;
4145 _ACEOF
4146 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4148   CC="$ac_save_CC $ac_arg"
4149   if ac_fn_c_try_compile "$LINENO"; then :
4150   ac_cv_prog_cc_c99=$ac_arg
4152 rm -f core conftest.err conftest.$ac_objext
4153   test "x$ac_cv_prog_cc_c99" != "xno" && break
4154 done
4155 rm -f conftest.$ac_ext
4156 CC=$ac_save_CC
4159 # AC_CACHE_VAL
4160 case "x$ac_cv_prog_cc_c99" in
4161   x)
4162     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4163 $as_echo "none needed" >&6; } ;;
4164   xno)
4165     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4166 $as_echo "unsupported" >&6; } ;;
4167   *)
4168     CC="$CC $ac_cv_prog_cc_c99"
4169     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4170 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4171 esac
4172 if test "x$ac_cv_prog_cc_c99" != xno; then :
4173   
4177 ac_ext=cpp
4178 ac_cpp='$CXXCPP $CPPFLAGS'
4179 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4180 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4181 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4182 if test -z "$CXX"; then
4183   if test -n "$CCC"; then
4184     CXX=$CCC
4185   else
4186     if test -n "$ac_tool_prefix"; then
4187   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4188   do
4189     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4190 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4192 $as_echo_n "checking for $ac_word... " >&6; }
4193 if test "${ac_cv_prog_CXX+set}" = set; then :
4194   $as_echo_n "(cached) " >&6
4195 else
4196   if test -n "$CXX"; then
4197   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4198 else
4199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4200 for as_dir in $PATH
4202   IFS=$as_save_IFS
4203   test -z "$as_dir" && as_dir=.
4204     for ac_exec_ext in '' $ac_executable_extensions; do
4205   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4206     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4207     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4208     break 2
4209   fi
4210 done
4211   done
4212 IFS=$as_save_IFS
4216 CXX=$ac_cv_prog_CXX
4217 if test -n "$CXX"; then
4218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4219 $as_echo "$CXX" >&6; }
4220 else
4221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4222 $as_echo "no" >&6; }
4226     test -n "$CXX" && break
4227   done
4229 if test -z "$CXX"; then
4230   ac_ct_CXX=$CXX
4231   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4233   # Extract the first word of "$ac_prog", so it can be a program name with args.
4234 set dummy $ac_prog; ac_word=$2
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4236 $as_echo_n "checking for $ac_word... " >&6; }
4237 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4238   $as_echo_n "(cached) " >&6
4239 else
4240   if test -n "$ac_ct_CXX"; then
4241   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4242 else
4243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244 for as_dir in $PATH
4246   IFS=$as_save_IFS
4247   test -z "$as_dir" && as_dir=.
4248     for ac_exec_ext in '' $ac_executable_extensions; do
4249   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4250     ac_cv_prog_ac_ct_CXX="$ac_prog"
4251     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4252     break 2
4253   fi
4254 done
4255   done
4256 IFS=$as_save_IFS
4260 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4261 if test -n "$ac_ct_CXX"; then
4262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4263 $as_echo "$ac_ct_CXX" >&6; }
4264 else
4265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4266 $as_echo "no" >&6; }
4270   test -n "$ac_ct_CXX" && break
4271 done
4273   if test "x$ac_ct_CXX" = x; then
4274     CXX="g++"
4275   else
4276     case $cross_compiling:$ac_tool_warned in
4277 yes:)
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4279 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4280 ac_tool_warned=yes ;;
4281 esac
4282     CXX=$ac_ct_CXX
4283   fi
4286   fi
4288 # Provide some information about the compiler.
4289 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4290 set X $ac_compile
4291 ac_compiler=$2
4292 for ac_option in --version -v -V -qversion; do
4293   { { ac_try="$ac_compiler $ac_option >&5"
4294 case "(($ac_try" in
4295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4296   *) ac_try_echo=$ac_try;;
4297 esac
4298 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4299 $as_echo "$ac_try_echo"; } >&5
4300   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4301   ac_status=$?
4302   if test -s conftest.err; then
4303     sed '10a\
4304 ... rest of stderr output deleted ...
4305          10q' conftest.err >conftest.er1
4306     cat conftest.er1 >&5
4307   fi
4308   rm -f conftest.er1 conftest.err
4309   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4310   test $ac_status = 0; }
4311 done
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4314 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4315 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4316   $as_echo_n "(cached) " >&6
4317 else
4318   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4319 /* end confdefs.h.  */
4322 main ()
4324 #ifndef __GNUC__
4325        choke me
4326 #endif
4328   ;
4329   return 0;
4331 _ACEOF
4332 if ac_fn_cxx_try_compile "$LINENO"; then :
4333   ac_compiler_gnu=yes
4334 else
4335   ac_compiler_gnu=no
4337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4338 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4342 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4343 if test $ac_compiler_gnu = yes; then
4344   GXX=yes
4345 else
4346   GXX=
4348 ac_test_CXXFLAGS=${CXXFLAGS+set}
4349 ac_save_CXXFLAGS=$CXXFLAGS
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4351 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4352 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4353   $as_echo_n "(cached) " >&6
4354 else
4355   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4356    ac_cxx_werror_flag=yes
4357    ac_cv_prog_cxx_g=no
4358    CXXFLAGS="-g"
4359    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4360 /* end confdefs.h.  */
4363 main ()
4366   ;
4367   return 0;
4369 _ACEOF
4370 if ac_fn_cxx_try_compile "$LINENO"; then :
4371   ac_cv_prog_cxx_g=yes
4372 else
4373   CXXFLAGS=""
4374       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4375 /* end confdefs.h.  */
4378 main ()
4381   ;
4382   return 0;
4384 _ACEOF
4385 if ac_fn_cxx_try_compile "$LINENO"; then :
4386   
4387 else
4388   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4389          CXXFLAGS="-g"
4390          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4391 /* end confdefs.h.  */
4394 main ()
4397   ;
4398   return 0;
4400 _ACEOF
4401 if ac_fn_cxx_try_compile "$LINENO"; then :
4402   ac_cv_prog_cxx_g=yes
4404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4409    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4412 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4413 if test "$ac_test_CXXFLAGS" = set; then
4414   CXXFLAGS=$ac_save_CXXFLAGS
4415 elif test $ac_cv_prog_cxx_g = yes; then
4416   if test "$GXX" = yes; then
4417     CXXFLAGS="-g -O2"
4418   else
4419     CXXFLAGS="-g"
4420   fi
4421 else
4422   if test "$GXX" = yes; then
4423     CXXFLAGS="-O2"
4424   else
4425     CXXFLAGS=
4426   fi
4428 ac_ext=c
4429 ac_cpp='$CPP $CPPFLAGS'
4430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4437 enable_dlopen=yes
4441 case `pwd` in
4442   *\ * | *\     *)
4443     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4444 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4445 esac
4449 macro_version='2.2.6b'
4450 macro_revision='1.3017'
4452     
4453     
4454     
4457     
4458     
4459     
4464 ltmain="$ac_aux_dir/ltmain.sh"
4466 # Make sure we can run config.sub.
4467 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4468   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4471 $as_echo_n "checking build system type... " >&6; }
4472 if test "${ac_cv_build+set}" = set; then :
4473   $as_echo_n "(cached) " >&6
4474 else
4475   ac_build_alias=$build_alias
4476 test "x$ac_build_alias" = x &&
4477   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4478 test "x$ac_build_alias" = x &&
4479   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 
4480 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4481   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4485 $as_echo "$ac_cv_build" >&6; }
4486 case $ac_cv_build in
4487 *-*-*) ;;
4488 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
4489 esac
4490 build=$ac_cv_build
4491 ac_save_IFS=$IFS; IFS='-'
4492 set x $ac_cv_build
4493 shift
4494 build_cpu=$1
4495 build_vendor=$2
4496 shift; shift
4497 # Remember, the first character of IFS is used to create $*,
4498 # except with old shells:
4499 build_os=$*
4500 IFS=$ac_save_IFS
4501 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4505 $as_echo_n "checking host system type... " >&6; }
4506 if test "${ac_cv_host+set}" = set; then :
4507   $as_echo_n "(cached) " >&6
4508 else
4509   if test "x$host_alias" = x; then
4510   ac_cv_host=$ac_cv_build
4511 else
4512   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4513     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4518 $as_echo "$ac_cv_host" >&6; }
4519 case $ac_cv_host in
4520 *-*-*) ;;
4521 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
4522 esac
4523 host=$ac_cv_host
4524 ac_save_IFS=$IFS; IFS='-'
4525 set x $ac_cv_host
4526 shift
4527 host_cpu=$1
4528 host_vendor=$2
4529 shift; shift
4530 # Remember, the first character of IFS is used to create $*,
4531 # except with old shells:
4532 host_os=$*
4533 IFS=$ac_save_IFS
4534 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4538 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4539 if test "${ac_cv_path_SED+set}" = set; then :
4540   $as_echo_n "(cached) " >&6
4541 else
4542             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4543      for ac_i in 1 2 3 4 5 6 7; do
4544        ac_script="$ac_script$as_nl$ac_script"
4545      done
4546      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4547      { ac_script=; unset ac_script;}
4548      if test -z "$SED"; then
4549   ac_path_SED_found=false
4550   # Loop through the user's path and test for each of PROGNAME-LIST
4551   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552 for as_dir in $PATH
4554   IFS=$as_save_IFS
4555   test -z "$as_dir" && as_dir=.
4556     for ac_prog in sed gsed; do
4557     for ac_exec_ext in '' $ac_executable_extensions; do
4558       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4559       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4560 # Check for GNU ac_path_SED and select it if it is found.
4561   # Check for GNU $ac_path_SED
4562 case `"$ac_path_SED" --version 2>&1` in
4563 *GNU*)
4564   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4566   ac_count=0
4567   $as_echo_n 0123456789 >"conftest.in"
4568   while :
4569   do
4570     cat "conftest.in" "conftest.in" >"conftest.tmp"
4571     mv "conftest.tmp" "conftest.in"
4572     cp "conftest.in" "conftest.nl"
4573     $as_echo '' >> "conftest.nl"
4574     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4575     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4576     as_fn_arith $ac_count + 1 && ac_count=$as_val
4577     if test $ac_count -gt ${ac_path_SED_max-0}; then
4578       # Best one so far, save it but keep looking for a better one
4579       ac_cv_path_SED="$ac_path_SED"
4580       ac_path_SED_max=$ac_count
4581     fi
4582     # 10*(2^10) chars as input seems more than enough
4583     test $ac_count -gt 10 && break
4584   done
4585   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4586 esac
4588       $ac_path_SED_found && break 3
4589     done
4590   done
4591   done
4592 IFS=$as_save_IFS
4593   if test -z "$ac_cv_path_SED"; then
4594     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 
4595   fi
4596 else
4597   ac_cv_path_SED=$SED
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4602 $as_echo "$ac_cv_path_SED" >&6; }
4603  SED="$ac_cv_path_SED"
4604   rm -f conftest.sed
4606 test -z "$SED" && SED=sed
4607 Xsed="$SED -e 1s/^X//"
4609     
4610     
4611     
4614     
4615     
4616     
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4620 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4621 if test "${ac_cv_path_GREP+set}" = set; then :
4622   $as_echo_n "(cached) " >&6
4623 else
4624   if test -z "$GREP"; then
4625   ac_path_GREP_found=false
4626   # Loop through the user's path and test for each of PROGNAME-LIST
4627   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4628 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4630   IFS=$as_save_IFS
4631   test -z "$as_dir" && as_dir=.
4632     for ac_prog in grep ggrep; do
4633     for ac_exec_ext in '' $ac_executable_extensions; do
4634       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4635       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4636 # Check for GNU ac_path_GREP and select it if it is found.
4637   # Check for GNU $ac_path_GREP
4638 case `"$ac_path_GREP" --version 2>&1` in
4639 *GNU*)
4640   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4642   ac_count=0
4643   $as_echo_n 0123456789 >"conftest.in"
4644   while :
4645   do
4646     cat "conftest.in" "conftest.in" >"conftest.tmp"
4647     mv "conftest.tmp" "conftest.in"
4648     cp "conftest.in" "conftest.nl"
4649     $as_echo 'GREP' >> "conftest.nl"
4650     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4651     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4652     as_fn_arith $ac_count + 1 && ac_count=$as_val
4653     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4654       # Best one so far, save it but keep looking for a better one
4655       ac_cv_path_GREP="$ac_path_GREP"
4656       ac_path_GREP_max=$ac_count
4657     fi
4658     # 10*(2^10) chars as input seems more than enough
4659     test $ac_count -gt 10 && break
4660   done
4661   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4662 esac
4664       $ac_path_GREP_found && break 3
4665     done
4666   done
4667   done
4668 IFS=$as_save_IFS
4669   if test -z "$ac_cv_path_GREP"; then
4670     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 
4671   fi
4672 else
4673   ac_cv_path_GREP=$GREP
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4678 $as_echo "$ac_cv_path_GREP" >&6; }
4679  GREP="$ac_cv_path_GREP"
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4683 $as_echo_n "checking for egrep... " >&6; }
4684 if test "${ac_cv_path_EGREP+set}" = set; then :
4685   $as_echo_n "(cached) " >&6
4686 else
4687   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4688    then ac_cv_path_EGREP="$GREP -E"
4689    else
4690      if test -z "$EGREP"; then
4691   ac_path_EGREP_found=false
4692   # Loop through the user's path and test for each of PROGNAME-LIST
4693   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4694 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4696   IFS=$as_save_IFS
4697   test -z "$as_dir" && as_dir=.
4698     for ac_prog in egrep; do
4699     for ac_exec_ext in '' $ac_executable_extensions; do
4700       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4701       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4702 # Check for GNU ac_path_EGREP and select it if it is found.
4703   # Check for GNU $ac_path_EGREP
4704 case `"$ac_path_EGREP" --version 2>&1` in
4705 *GNU*)
4706   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4708   ac_count=0
4709   $as_echo_n 0123456789 >"conftest.in"
4710   while :
4711   do
4712     cat "conftest.in" "conftest.in" >"conftest.tmp"
4713     mv "conftest.tmp" "conftest.in"
4714     cp "conftest.in" "conftest.nl"
4715     $as_echo 'EGREP' >> "conftest.nl"
4716     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4717     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4718     as_fn_arith $ac_count + 1 && ac_count=$as_val
4719     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4720       # Best one so far, save it but keep looking for a better one
4721       ac_cv_path_EGREP="$ac_path_EGREP"
4722       ac_path_EGREP_max=$ac_count
4723     fi
4724     # 10*(2^10) chars as input seems more than enough
4725     test $ac_count -gt 10 && break
4726   done
4727   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4728 esac
4730       $ac_path_EGREP_found && break 3
4731     done
4732   done
4733   done
4734 IFS=$as_save_IFS
4735   if test -z "$ac_cv_path_EGREP"; then
4736     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 
4737   fi
4738 else
4739   ac_cv_path_EGREP=$EGREP
4742    fi
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4745 $as_echo "$ac_cv_path_EGREP" >&6; }
4746  EGREP="$ac_cv_path_EGREP"
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4750 $as_echo_n "checking for fgrep... " >&6; }
4751 if test "${ac_cv_path_FGREP+set}" = set; then :
4752   $as_echo_n "(cached) " >&6
4753 else
4754   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4755    then ac_cv_path_FGREP="$GREP -F"
4756    else
4757      if test -z "$FGREP"; then
4758   ac_path_FGREP_found=false
4759   # Loop through the user's path and test for each of PROGNAME-LIST
4760   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4763   IFS=$as_save_IFS
4764   test -z "$as_dir" && as_dir=.
4765     for ac_prog in fgrep; do
4766     for ac_exec_ext in '' $ac_executable_extensions; do
4767       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4768       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4769 # Check for GNU ac_path_FGREP and select it if it is found.
4770   # Check for GNU $ac_path_FGREP
4771 case `"$ac_path_FGREP" --version 2>&1` in
4772 *GNU*)
4773   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4775   ac_count=0
4776   $as_echo_n 0123456789 >"conftest.in"
4777   while :
4778   do
4779     cat "conftest.in" "conftest.in" >"conftest.tmp"
4780     mv "conftest.tmp" "conftest.in"
4781     cp "conftest.in" "conftest.nl"
4782     $as_echo 'FGREP' >> "conftest.nl"
4783     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4784     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4785     as_fn_arith $ac_count + 1 && ac_count=$as_val
4786     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4787       # Best one so far, save it but keep looking for a better one
4788       ac_cv_path_FGREP="$ac_path_FGREP"
4789       ac_path_FGREP_max=$ac_count
4790     fi
4791     # 10*(2^10) chars as input seems more than enough
4792     test $ac_count -gt 10 && break
4793   done
4794   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4795 esac
4797       $ac_path_FGREP_found && break 3
4798     done
4799   done
4800   done
4801 IFS=$as_save_IFS
4802   if test -z "$ac_cv_path_FGREP"; then
4803     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 
4804   fi
4805 else
4806   ac_cv_path_FGREP=$FGREP
4809    fi
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4812 $as_echo "$ac_cv_path_FGREP" >&6; }
4813  FGREP="$ac_cv_path_FGREP"
4816 test -z "$GREP" && GREP=grep
4818     
4819     
4820     
4823     
4824     
4825     
4828     
4829     
4830     
4836 @%:@ Check whether --with-gnu-ld was given.
4837 if test "${with_gnu_ld+set}" = set; then :
4838   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4839 else
4840   with_gnu_ld=no
4843 ac_prog=ld
4844 if test "$GCC" = yes; then
4845   # Check if gcc -print-prog-name=ld gives a path.
4846   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4847 $as_echo_n "checking for ld used by $CC... " >&6; }
4848   case $host in
4849   *-*-mingw*)
4850     # gcc leaves a trailing carriage return which upsets mingw
4851     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4852   *)
4853     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4854   esac
4855   case $ac_prog in
4856     # Accept absolute paths.
4857     [\\/]* | ?:[\\/]*)
4858       re_direlt='/[^/][^/]*/\.\./'
4859       # Canonicalize the pathname of ld
4860       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4861       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4862         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4863       done
4864       test -z "$LD" && LD="$ac_prog"
4865       ;;
4866   "")
4867     # If it fails, then pretend we aren't using GCC.
4868     ac_prog=ld
4869     ;;
4870   *)
4871     # If it is relative, then search for the first ld in PATH.
4872     with_gnu_ld=unknown
4873     ;;
4874   esac
4875 elif test "$with_gnu_ld" = yes; then
4876   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4877 $as_echo_n "checking for GNU ld... " >&6; }
4878 else
4879   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4880 $as_echo_n "checking for non-GNU ld... " >&6; }
4882 if test "${lt_cv_path_LD+set}" = set; then :
4883   $as_echo_n "(cached) " >&6
4884 else
4885   if test -z "$LD"; then
4886   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4887   for ac_dir in $PATH; do
4888     IFS="$lt_save_ifs"
4889     test -z "$ac_dir" && ac_dir=.
4890     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4891       lt_cv_path_LD="$ac_dir/$ac_prog"
4892       # Check to see if the program is GNU ld.  I'd rather use --version,
4893       # but apparently some variants of GNU ld only accept -v.
4894       # Break only if it was the GNU/non-GNU ld that we prefer.
4895       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4896       *GNU* | *'with BFD'*)
4897         test "$with_gnu_ld" != no && break
4898         ;;
4899       *)
4900         test "$with_gnu_ld" != yes && break
4901         ;;
4902       esac
4903     fi
4904   done
4905   IFS="$lt_save_ifs"
4906 else
4907   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4911 LD="$lt_cv_path_LD"
4912 if test -n "$LD"; then
4913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4914 $as_echo "$LD" >&6; }
4915 else
4916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4917 $as_echo "no" >&6; }
4919 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4921 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4922 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4923   $as_echo_n "(cached) " >&6
4924 else
4925   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4926 case `$LD -v 2>&1 </dev/null` in
4927 *GNU* | *'with BFD'*)
4928   lt_cv_prog_gnu_ld=yes
4929   ;;
4931   lt_cv_prog_gnu_ld=no
4932   ;;
4933 esac
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4936 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4937 with_gnu_ld=$lt_cv_prog_gnu_ld
4942     
4943     
4944     
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4948 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4949 if test "${lt_cv_path_NM+set}" = set; then :
4950   $as_echo_n "(cached) " >&6
4951 else
4952   if test -n "$NM"; then
4953   # Let the user override the test.
4954   lt_cv_path_NM="$NM"
4955 else
4956   lt_nm_to_check="${ac_tool_prefix}nm"
4957   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4958     lt_nm_to_check="$lt_nm_to_check nm"
4959   fi
4960   for lt_tmp_nm in $lt_nm_to_check; do
4961     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4962     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4963       IFS="$lt_save_ifs"
4964       test -z "$ac_dir" && ac_dir=.
4965       tmp_nm="$ac_dir/$lt_tmp_nm"
4966       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4967         # Check to see if the nm accepts a BSD-compat flag.
4968         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4969         #   nm: unknown option "B" ignored
4970         # Tru64's nm complains that /dev/null is an invalid object file
4971         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4972         */dev/null* | *'Invalid file or object type'*)
4973           lt_cv_path_NM="$tmp_nm -B"
4974           break
4975           ;;
4976         *)
4977           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4978           */dev/null*)
4979             lt_cv_path_NM="$tmp_nm -p"
4980             break
4981             ;;
4982           *)
4983             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4984             continue # so that we can try to find one that supports BSD flags
4985             ;;
4986           esac
4987           ;;
4988         esac
4989       fi
4990     done
4991     IFS="$lt_save_ifs"
4992   done
4993   : ${lt_cv_path_NM=no}
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4997 $as_echo "$lt_cv_path_NM" >&6; }
4998 if test "$lt_cv_path_NM" != "no"; then
4999   NM="$lt_cv_path_NM"
5000 else
5001   # Didn't find any BSD compatible name lister, look for dumpbin.
5002   if test -n "$ac_tool_prefix"; then
5003   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5004   do
5005     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5006 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5008 $as_echo_n "checking for $ac_word... " >&6; }
5009 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5010   $as_echo_n "(cached) " >&6
5011 else
5012   if test -n "$DUMPBIN"; then
5013   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5014 else
5015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5016 for as_dir in $PATH
5018   IFS=$as_save_IFS
5019   test -z "$as_dir" && as_dir=.
5020     for ac_exec_ext in '' $ac_executable_extensions; do
5021   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5022     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5023     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5024     break 2
5025   fi
5026 done
5027   done
5028 IFS=$as_save_IFS
5032 DUMPBIN=$ac_cv_prog_DUMPBIN
5033 if test -n "$DUMPBIN"; then
5034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5035 $as_echo "$DUMPBIN" >&6; }
5036 else
5037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5038 $as_echo "no" >&6; }
5042     test -n "$DUMPBIN" && break
5043   done
5045 if test -z "$DUMPBIN"; then
5046   ac_ct_DUMPBIN=$DUMPBIN
5047   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5049   # Extract the first word of "$ac_prog", so it can be a program name with args.
5050 set dummy $ac_prog; ac_word=$2
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5052 $as_echo_n "checking for $ac_word... " >&6; }
5053 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5054   $as_echo_n "(cached) " >&6
5055 else
5056   if test -n "$ac_ct_DUMPBIN"; then
5057   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5058 else
5059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5060 for as_dir in $PATH
5062   IFS=$as_save_IFS
5063   test -z "$as_dir" && as_dir=.
5064     for ac_exec_ext in '' $ac_executable_extensions; do
5065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5066     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5067     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5068     break 2
5069   fi
5070 done
5071   done
5072 IFS=$as_save_IFS
5076 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5077 if test -n "$ac_ct_DUMPBIN"; then
5078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5079 $as_echo "$ac_ct_DUMPBIN" >&6; }
5080 else
5081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5082 $as_echo "no" >&6; }
5086   test -n "$ac_ct_DUMPBIN" && break
5087 done
5089   if test "x$ac_ct_DUMPBIN" = x; then
5090     DUMPBIN=":"
5091   else
5092     case $cross_compiling:$ac_tool_warned in
5093 yes:)
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5095 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5096 ac_tool_warned=yes ;;
5097 esac
5098     DUMPBIN=$ac_ct_DUMPBIN
5099   fi
5102   
5103   if test "$DUMPBIN" != ":"; then
5104     NM="$DUMPBIN"
5105   fi
5107 test -z "$NM" && NM=nm
5110     
5111     
5112     
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5115 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5116 if test "${lt_cv_nm_interface+set}" = set; then :
5117   $as_echo_n "(cached) " >&6
5118 else
5119   lt_cv_nm_interface="BSD nm"
5120   echo "int some_variable = 0;" > conftest.$ac_ext
5121   (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&5)
5122   (eval "$ac_compile" 2>conftest.err)
5123   cat conftest.err >&5
5124   (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5125   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5126   cat conftest.err >&5
5127   (eval echo "\"\$as_me:__oline__: output\"" >&5)
5128   cat conftest.out >&5
5129   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5130     lt_cv_nm_interface="MS dumpbin"
5131   fi
5132   rm -f conftest*
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5135 $as_echo "$lt_cv_nm_interface" >&6; }
5137 # find the maximum length of command line arguments
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5139 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5140 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5141   $as_echo_n "(cached) " >&6
5142 else
5143     i=0
5144   teststring="ABCD"
5146   case $build_os in
5147   msdosdjgpp*)
5148     # On DJGPP, this test can blow up pretty badly due to problems in libc
5149     # (any single argument exceeding 2000 bytes causes a buffer overrun
5150     # during glob expansion).  Even if it were fixed, the result of this
5151     # check would be larger than it should be.
5152     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5153     ;;
5155   gnu*)
5156     # Under GNU Hurd, this test is not required because there is
5157     # no limit to the length of command line arguments.
5158     # Libtool will interpret -1 as no limit whatsoever
5159     lt_cv_sys_max_cmd_len=-1;
5160     ;;
5162   cygwin* | mingw* | cegcc*)
5163     # On Win9x/ME, this test blows up -- it succeeds, but takes
5164     # about 5 minutes as the teststring grows exponentially.
5165     # Worse, since 9x/ME are not pre-emptively multitasking,
5166     # you end up with a "frozen" computer, even though with patience
5167     # the test eventually succeeds (with a max line length of 256k).
5168     # Instead, let's just punt: use the minimum linelength reported by
5169     # all of the supported platforms: 8192 (on NT/2K/XP).
5170     lt_cv_sys_max_cmd_len=8192;
5171     ;;
5173   amigaos*)
5174     # On AmigaOS with pdksh, this test takes hours, literally.
5175     # So we just punt and use a minimum line length of 8192.
5176     lt_cv_sys_max_cmd_len=8192;
5177     ;;
5179   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5180     # This has been around since 386BSD, at least.  Likely further.
5181     if test -x /sbin/sysctl; then
5182       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5183     elif test -x /usr/sbin/sysctl; then
5184       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5185     else
5186       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5187     fi
5188     # And add a safety zone
5189     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5190     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5191     ;;
5193   interix*)
5194     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5195     lt_cv_sys_max_cmd_len=196608
5196     ;;
5198   osf*)
5199     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5200     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5201     # nice to cause kernel panics so lets avoid the loop below.
5202     # First set a reasonable default.
5203     lt_cv_sys_max_cmd_len=16384
5204     #
5205     if test -x /sbin/sysconfig; then
5206       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5207         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5208       esac
5209     fi
5210     ;;
5211   sco3.2v5*)
5212     lt_cv_sys_max_cmd_len=102400
5213     ;;
5214   sysv5* | sco5v6* | sysv4.2uw2*)
5215     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5216     if test -n "$kargmax"; then
5217       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5218     else
5219       lt_cv_sys_max_cmd_len=32768
5220     fi
5221     ;;
5222   *)
5223     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5224     if test -n "$lt_cv_sys_max_cmd_len"; then
5225       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5226       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5227     else
5228       # Make teststring a little bigger before we do anything with it.
5229       # a 1K string should be a reasonable start.
5230       for i in 1 2 3 4 5 6 7 8 ; do
5231         teststring=$teststring$teststring
5232       done
5233       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5234       # If test is not a shell built-in, we'll probably end up computing a
5235       # maximum length that is only half of the actual maximum length, but
5236       # we can't tell.
5237       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5238                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5239               test $i != 17 # 1/2 MB should be enough
5240       do
5241         i=`expr $i + 1`
5242         teststring=$teststring$teststring
5243       done
5244       # Only check the string length outside the loop.
5245       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5246       teststring=
5247       # Add a significant safety factor because C++ compilers can tack on
5248       # massive amounts of additional arguments before passing them to the
5249       # linker.  It appears as though 1/2 is a usable value.
5250       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5251     fi
5252     ;;
5253   esac
5257 if test -n $lt_cv_sys_max_cmd_len ; then
5258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5259 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5260 else
5261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5262 $as_echo "none" >&6; }
5264 max_cmd_len=$lt_cv_sys_max_cmd_len
5266     
5267     
5268     
5271 : ${CP="cp -f"}
5272 : ${MV="mv -f"}
5273 : ${RM="rm -f"}
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5276 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5277 # Try some XSI features
5278 xsi_shell=no
5279 ( _lt_dummy="a/b/c"
5280   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5281       = c,a/b,, \
5282     && eval 'test $(( 1 + 1 )) -eq 2 \
5283     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5284   && xsi_shell=yes
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5286 $as_echo "$xsi_shell" >&6; }
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5290 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5291 lt_shell_append=no
5292 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5293     >/dev/null 2>&1 \
5294   && lt_shell_append=yes
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5296 $as_echo "$lt_shell_append" >&6; }
5299 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5300   lt_unset=unset
5301 else
5302   lt_unset=false
5305     
5306     
5307     
5309 # test EBCDIC or ASCII
5310 case `echo X|tr X '\101'` in
5311  A) # ASCII based system
5312     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5313   lt_SP2NL='tr \040 \012'
5314   lt_NL2SP='tr \015\012 \040\040'
5315   ;;
5316  *) # EBCDIC based system
5317   lt_SP2NL='tr \100 \n'
5318   lt_NL2SP='tr \r\n \100\100'
5319   ;;
5320 esac
5322     
5323     
5324     
5326     
5327     
5328     
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5331 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5332 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5333   $as_echo_n "(cached) " >&6
5334 else
5335   lt_cv_ld_reload_flag='-r'
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5338 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5339 reload_flag=$lt_cv_ld_reload_flag
5340 case $reload_flag in
5341 "" | " "*) ;;
5342 *) reload_flag=" $reload_flag" ;;
5343 esac
5344 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5345 case $host_os in
5346   darwin*)
5347     if test "$GCC" = yes; then
5348       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5349     else
5350       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5351     fi
5352     ;;
5353 esac
5355     
5356     
5357     
5359     
5360     
5361     
5363 if test -n "$ac_tool_prefix"; then
5364   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5365 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5367 $as_echo_n "checking for $ac_word... " >&6; }
5368 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5369   $as_echo_n "(cached) " >&6
5370 else
5371   if test -n "$OBJDUMP"; then
5372   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5373 else
5374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5375 for as_dir in $PATH
5377   IFS=$as_save_IFS
5378   test -z "$as_dir" && as_dir=.
5379     for ac_exec_ext in '' $ac_executable_extensions; do
5380   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5381     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5382     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5383     break 2
5384   fi
5385 done
5386   done
5387 IFS=$as_save_IFS
5391 OBJDUMP=$ac_cv_prog_OBJDUMP
5392 if test -n "$OBJDUMP"; then
5393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5394 $as_echo "$OBJDUMP" >&6; }
5395 else
5396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5397 $as_echo "no" >&6; }
5402 if test -z "$ac_cv_prog_OBJDUMP"; then
5403   ac_ct_OBJDUMP=$OBJDUMP
5404   # Extract the first word of "objdump", so it can be a program name with args.
5405 set dummy objdump; ac_word=$2
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5407 $as_echo_n "checking for $ac_word... " >&6; }
5408 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5409   $as_echo_n "(cached) " >&6
5410 else
5411   if test -n "$ac_ct_OBJDUMP"; then
5412   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5413 else
5414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5415 for as_dir in $PATH
5417   IFS=$as_save_IFS
5418   test -z "$as_dir" && as_dir=.
5419     for ac_exec_ext in '' $ac_executable_extensions; do
5420   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5421     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5422     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5423     break 2
5424   fi
5425 done
5426   done
5427 IFS=$as_save_IFS
5431 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5432 if test -n "$ac_ct_OBJDUMP"; then
5433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5434 $as_echo "$ac_ct_OBJDUMP" >&6; }
5435 else
5436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5437 $as_echo "no" >&6; }
5440   if test "x$ac_ct_OBJDUMP" = x; then
5441     OBJDUMP="false"
5442   else
5443     case $cross_compiling:$ac_tool_warned in
5444 yes:)
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5446 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5447 ac_tool_warned=yes ;;
5448 esac
5449     OBJDUMP=$ac_ct_OBJDUMP
5450   fi
5451 else
5452   OBJDUMP="$ac_cv_prog_OBJDUMP"
5455 test -z "$OBJDUMP" && OBJDUMP=objdump
5457     
5458     
5459     
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5466 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5467 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5468   $as_echo_n "(cached) " >&6
5469 else
5470   lt_cv_file_magic_cmd='$MAGIC_CMD'
5471 lt_cv_file_magic_test_file=
5472 lt_cv_deplibs_check_method='unknown'
5473 # Need to set the preceding variable on all platforms that support
5474 # interlibrary dependencies.
5475 # 'none' -- dependencies not supported.
5476 # `unknown' -- same as none, but documents that we really don't know.
5477 # 'pass_all' -- all dependencies passed with no checks.
5478 # 'test_compile' -- check by making test program.
5479 # 'file_magic [[regex]]' -- check by looking for files in library path
5480 # which responds to the $file_magic_cmd with a given extended regex.
5481 # If you have `file' or equivalent on your system and you're not sure
5482 # whether `pass_all' will *always* work, you probably want this one.
5484 case $host_os in
5485 aix[4-9]*)
5486   lt_cv_deplibs_check_method=pass_all
5487   ;;
5489 beos*)
5490   lt_cv_deplibs_check_method=pass_all
5491   ;;
5493 bsdi[45]*)
5494   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5495   lt_cv_file_magic_cmd='/usr/bin/file -L'
5496   lt_cv_file_magic_test_file=/shlib/libc.so
5497   ;;
5499 cygwin*)
5500   # func_win32_libid is a shell function defined in ltmain.sh
5501   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5502   lt_cv_file_magic_cmd='func_win32_libid'
5503   ;;
5505 mingw* | pw32*)
5506   # Base MSYS/MinGW do not provide the 'file' command needed by
5507   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5508   # unless we find 'file', for example because we are cross-compiling.
5509   if ( file / ) >/dev/null 2>&1; then
5510     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5511     lt_cv_file_magic_cmd='func_win32_libid'
5512   else
5513     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5514     lt_cv_file_magic_cmd='$OBJDUMP -f'
5515   fi
5516   ;;
5518 cegcc)
5519   # use the weaker test based on 'objdump'. See mingw*.
5520   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5521   lt_cv_file_magic_cmd='$OBJDUMP -f'
5522   ;;
5524 darwin* | rhapsody*)
5525   lt_cv_deplibs_check_method=pass_all
5526   ;;
5528 freebsd* | dragonfly*)
5529   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5530     case $host_cpu in
5531     i*86 )
5532       # Not sure whether the presence of OpenBSD here was a mistake.
5533       # Let's accept both of them until this is cleared up.
5534       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5535       lt_cv_file_magic_cmd=/usr/bin/file
5536       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5537       ;;
5538     esac
5539   else
5540     lt_cv_deplibs_check_method=pass_all
5541   fi
5542   ;;
5544 gnu*)
5545   lt_cv_deplibs_check_method=pass_all
5546   ;;
5548 hpux10.20* | hpux11*)
5549   lt_cv_file_magic_cmd=/usr/bin/file
5550   case $host_cpu in
5551   ia64*)
5552     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5553     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5554     ;;
5555   hppa*64*)
5556     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]'
5557     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5558     ;;
5559   *)
5560     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5561     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5562     ;;
5563   esac
5564   ;;
5566 interix[3-9]*)
5567   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5568   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5569   ;;
5571 irix5* | irix6* | nonstopux*)
5572   case $LD in
5573   *-32|*"-32 ") libmagic=32-bit;;
5574   *-n32|*"-n32 ") libmagic=N32;;
5575   *-64|*"-64 ") libmagic=64-bit;;
5576   *) libmagic=never-match;;
5577   esac
5578   lt_cv_deplibs_check_method=pass_all
5579   ;;
5581 # This must be Linux ELF.
5582 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5583   lt_cv_deplibs_check_method=pass_all
5584   ;;
5586 netbsd* | netbsdelf*-gnu)
5587   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5588     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5589   else
5590     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5591   fi
5592   ;;
5594 newos6*)
5595   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5596   lt_cv_file_magic_cmd=/usr/bin/file
5597   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5598   ;;
5600 *nto* | *qnx*)
5601   lt_cv_deplibs_check_method=pass_all
5602   ;;
5604 openbsd*)
5605   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5606     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5607   else
5608     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5609   fi
5610   ;;
5612 osf3* | osf4* | osf5*)
5613   lt_cv_deplibs_check_method=pass_all
5614   ;;
5616 rdos*)
5617   lt_cv_deplibs_check_method=pass_all
5618   ;;
5620 solaris*)
5621   lt_cv_deplibs_check_method=pass_all
5622   ;;
5624 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5625   lt_cv_deplibs_check_method=pass_all
5626   ;;
5628 sysv4 | sysv4.3*)
5629   case $host_vendor in
5630   motorola)
5631     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]'
5632     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5633     ;;
5634   ncr)
5635     lt_cv_deplibs_check_method=pass_all
5636     ;;
5637   sequent)
5638     lt_cv_file_magic_cmd='/bin/file'
5639     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5640     ;;
5641   sni)
5642     lt_cv_file_magic_cmd='/bin/file'
5643     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5644     lt_cv_file_magic_test_file=/lib/libc.so
5645     ;;
5646   siemens)
5647     lt_cv_deplibs_check_method=pass_all
5648     ;;
5649   pc)
5650     lt_cv_deplibs_check_method=pass_all
5651     ;;
5652   esac
5653   ;;
5655 tpf*)
5656   lt_cv_deplibs_check_method=pass_all
5657   ;;
5658 esac
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5662 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5663 file_magic_cmd=$lt_cv_file_magic_cmd
5664 deplibs_check_method=$lt_cv_deplibs_check_method
5665 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5668     
5669     
5670     
5673     
5674     
5675     
5678 if test -n "$ac_tool_prefix"; then
5679   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5680 set dummy ${ac_tool_prefix}ar; ac_word=$2
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5682 $as_echo_n "checking for $ac_word... " >&6; }
5683 if test "${ac_cv_prog_AR+set}" = set; then :
5684   $as_echo_n "(cached) " >&6
5685 else
5686   if test -n "$AR"; then
5687   ac_cv_prog_AR="$AR" # Let the user override the test.
5688 else
5689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5690 for as_dir in $PATH
5692   IFS=$as_save_IFS
5693   test -z "$as_dir" && as_dir=.
5694     for ac_exec_ext in '' $ac_executable_extensions; do
5695   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5696     ac_cv_prog_AR="${ac_tool_prefix}ar"
5697     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5698     break 2
5699   fi
5700 done
5701   done
5702 IFS=$as_save_IFS
5706 AR=$ac_cv_prog_AR
5707 if test -n "$AR"; then
5708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5709 $as_echo "$AR" >&6; }
5710 else
5711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5712 $as_echo "no" >&6; }
5717 if test -z "$ac_cv_prog_AR"; then
5718   ac_ct_AR=$AR
5719   # Extract the first word of "ar", so it can be a program name with args.
5720 set dummy ar; ac_word=$2
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5722 $as_echo_n "checking for $ac_word... " >&6; }
5723 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5724   $as_echo_n "(cached) " >&6
5725 else
5726   if test -n "$ac_ct_AR"; then
5727   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5728 else
5729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5730 for as_dir in $PATH
5732   IFS=$as_save_IFS
5733   test -z "$as_dir" && as_dir=.
5734     for ac_exec_ext in '' $ac_executable_extensions; do
5735   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5736     ac_cv_prog_ac_ct_AR="ar"
5737     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5738     break 2
5739   fi
5740 done
5741   done
5742 IFS=$as_save_IFS
5746 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5747 if test -n "$ac_ct_AR"; then
5748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5749 $as_echo "$ac_ct_AR" >&6; }
5750 else
5751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5752 $as_echo "no" >&6; }
5755   if test "x$ac_ct_AR" = x; then
5756     AR="false"
5757   else
5758     case $cross_compiling:$ac_tool_warned in
5759 yes:)
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5761 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5762 ac_tool_warned=yes ;;
5763 esac
5764     AR=$ac_ct_AR
5765   fi
5766 else
5767   AR="$ac_cv_prog_AR"
5770 test -z "$AR" && AR=ar
5771 test -z "$AR_FLAGS" && AR_FLAGS=cru
5773     
5774     
5775     
5778     
5779     
5780     
5783 if test -n "$ac_tool_prefix"; then
5784   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5785 set dummy ${ac_tool_prefix}strip; ac_word=$2
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5787 $as_echo_n "checking for $ac_word... " >&6; }
5788 if test "${ac_cv_prog_STRIP+set}" = set; then :
5789   $as_echo_n "(cached) " >&6
5790 else
5791   if test -n "$STRIP"; then
5792   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5793 else
5794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5795 for as_dir in $PATH
5797   IFS=$as_save_IFS
5798   test -z "$as_dir" && as_dir=.
5799     for ac_exec_ext in '' $ac_executable_extensions; do
5800   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5801     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5802     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5803     break 2
5804   fi
5805 done
5806   done
5807 IFS=$as_save_IFS
5811 STRIP=$ac_cv_prog_STRIP
5812 if test -n "$STRIP"; then
5813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5814 $as_echo "$STRIP" >&6; }
5815 else
5816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5817 $as_echo "no" >&6; }
5822 if test -z "$ac_cv_prog_STRIP"; then
5823   ac_ct_STRIP=$STRIP
5824   # Extract the first word of "strip", so it can be a program name with args.
5825 set dummy strip; ac_word=$2
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5827 $as_echo_n "checking for $ac_word... " >&6; }
5828 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5829   $as_echo_n "(cached) " >&6
5830 else
5831   if test -n "$ac_ct_STRIP"; then
5832   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5833 else
5834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5835 for as_dir in $PATH
5837   IFS=$as_save_IFS
5838   test -z "$as_dir" && as_dir=.
5839     for ac_exec_ext in '' $ac_executable_extensions; do
5840   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5841     ac_cv_prog_ac_ct_STRIP="strip"
5842     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5843     break 2
5844   fi
5845 done
5846   done
5847 IFS=$as_save_IFS
5851 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5852 if test -n "$ac_ct_STRIP"; then
5853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5854 $as_echo "$ac_ct_STRIP" >&6; }
5855 else
5856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5857 $as_echo "no" >&6; }
5860   if test "x$ac_ct_STRIP" = x; then
5861     STRIP=":"
5862   else
5863     case $cross_compiling:$ac_tool_warned in
5864 yes:)
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5866 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5867 ac_tool_warned=yes ;;
5868 esac
5869     STRIP=$ac_ct_STRIP
5870   fi
5871 else
5872   STRIP="$ac_cv_prog_STRIP"
5875 test -z "$STRIP" && STRIP=:
5877     
5878     
5879     
5882 if test -n "$ac_tool_prefix"; then
5883   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5884 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5886 $as_echo_n "checking for $ac_word... " >&6; }
5887 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5888   $as_echo_n "(cached) " >&6
5889 else
5890   if test -n "$RANLIB"; then
5891   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5892 else
5893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5894 for as_dir in $PATH
5896   IFS=$as_save_IFS
5897   test -z "$as_dir" && as_dir=.
5898     for ac_exec_ext in '' $ac_executable_extensions; do
5899   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5900     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5901     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5902     break 2
5903   fi
5904 done
5905   done
5906 IFS=$as_save_IFS
5910 RANLIB=$ac_cv_prog_RANLIB
5911 if test -n "$RANLIB"; then
5912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5913 $as_echo "$RANLIB" >&6; }
5914 else
5915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5916 $as_echo "no" >&6; }
5921 if test -z "$ac_cv_prog_RANLIB"; then
5922   ac_ct_RANLIB=$RANLIB
5923   # Extract the first word of "ranlib", so it can be a program name with args.
5924 set dummy ranlib; ac_word=$2
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5926 $as_echo_n "checking for $ac_word... " >&6; }
5927 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5928   $as_echo_n "(cached) " >&6
5929 else
5930   if test -n "$ac_ct_RANLIB"; then
5931   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5932 else
5933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5934 for as_dir in $PATH
5936   IFS=$as_save_IFS
5937   test -z "$as_dir" && as_dir=.
5938     for ac_exec_ext in '' $ac_executable_extensions; do
5939   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5940     ac_cv_prog_ac_ct_RANLIB="ranlib"
5941     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5942     break 2
5943   fi
5944 done
5945   done
5946 IFS=$as_save_IFS
5950 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5951 if test -n "$ac_ct_RANLIB"; then
5952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5953 $as_echo "$ac_ct_RANLIB" >&6; }
5954 else
5955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5956 $as_echo "no" >&6; }
5959   if test "x$ac_ct_RANLIB" = x; then
5960     RANLIB=":"
5961   else
5962     case $cross_compiling:$ac_tool_warned in
5963 yes:)
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5965 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5966 ac_tool_warned=yes ;;
5967 esac
5968     RANLIB=$ac_ct_RANLIB
5969   fi
5970 else
5971   RANLIB="$ac_cv_prog_RANLIB"
5974 test -z "$RANLIB" && RANLIB=:
5976     
5977     
5978     
5981 # Determine commands to create old-style static archives.
5982 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5983 old_postinstall_cmds='chmod 644 $oldlib'
5984 old_postuninstall_cmds=
5986 if test -n "$RANLIB"; then
5987   case $host_os in
5988   openbsd*)
5989     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5990     ;;
5991   *)
5992     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5993     ;;
5994   esac
5995   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5998     
5999     
6000     
6003     
6004     
6005     
6008     
6009     
6010     
6015     
6016     
6017     
6019     
6020     
6021     
6023     
6024     
6025     
6027     
6028     
6029     
6031 # If no C compiler was specified, use CC.
6032 LTCC=${LTCC-"$CC"}
6034 # If no C compiler flags were specified, use CFLAGS.
6035 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6037 # Allow CC to be a program name with arguments.
6038 compiler=$CC
6041 # Check for command to grab the raw symbol name followed by C symbol from nm.
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6043 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6044 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6045   $as_echo_n "(cached) " >&6
6046 else
6047   
6048 # These are sane defaults that work on at least a few old systems.
6049 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6051 # Character class describing NM global symbol codes.
6052 symcode='[BCDEGRST]'
6054 # Regexp to match symbols that can be accessed directly from C.
6055 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6057 # Define system-specific variables.
6058 case $host_os in
6059 aix*)
6060   symcode='[BCDT]'
6061   ;;
6062 cygwin* | mingw* | pw32* | cegcc*)
6063   symcode='[ABCDGISTW]'
6064   ;;
6065 hpux*)
6066   if test "$host_cpu" = ia64; then
6067     symcode='[ABCDEGRST]'
6068   fi
6069   ;;
6070 irix* | nonstopux*)
6071   symcode='[BCDEGRST]'
6072   ;;
6073 osf*)
6074   symcode='[BCDEGQRST]'
6075   ;;
6076 solaris*)
6077   symcode='[BDRT]'
6078   ;;
6079 sco3.2v5*)
6080   symcode='[DT]'
6081   ;;
6082 sysv4.2uw2*)
6083   symcode='[DT]'
6084   ;;
6085 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6086   symcode='[ABDT]'
6087   ;;
6088 sysv4)
6089   symcode='[DFNSTU]'
6090   ;;
6091 esac
6093 # If we're using GNU nm, then use its standard symbol codes.
6094 case `$NM -V 2>&1` in
6095 *GNU* | *'with BFD'*)
6096   symcode='[ABCDGIRSTW]' ;;
6097 esac
6099 # Transform an extracted symbol line into a proper C declaration.
6100 # Some systems (esp. on ia64) link data and code symbols differently,
6101 # so use this general approach.
6102 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6104 # Transform an extracted symbol line into symbol name and symbol address
6105 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6106 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6108 # Handle CRLF in mingw tool chain
6109 opt_cr=
6110 case $build_os in
6111 mingw*)
6112   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6113   ;;
6114 esac
6116 # Try without a prefix underscore, then with it.
6117 for ac_symprfx in "" "_"; do
6119   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6120   symxfrm="\\1 $ac_symprfx\\2 \\2"
6122   # Write the raw and C identifiers.
6123   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6124     # Fake it for dumpbin and say T for any non-static function
6125     # and D for any global variable.
6126     # Also find C++ and __fastcall symbols from MSVC++,
6127     # which start with @ or ?.
6128     lt_cv_sys_global_symbol_pipe="$AWK '"\
6129 "     {last_section=section; section=\$ 3};"\
6130 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6131 "     \$ 0!~/External *\|/{next};"\
6132 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6133 "     {if(hide[section]) next};"\
6134 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6135 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6136 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6137 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6138 "     ' prfx=^$ac_symprfx"
6139   else
6140     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6141   fi
6143   # Check to see that the pipe works correctly.
6144   pipe_works=no
6146   rm -f conftest*
6147   cat > conftest.$ac_ext <<_LT_EOF
6148 #ifdef __cplusplus
6149 extern "C" {
6150 #endif
6151 char nm_test_var;
6152 void nm_test_func(void);
6153 void nm_test_func(void){}
6154 #ifdef __cplusplus
6156 #endif
6157 int main(){nm_test_var='a';nm_test_func();return(0);}
6158 _LT_EOF
6160   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6161   (eval $ac_compile) 2>&5
6162   ac_status=$?
6163   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6164   test $ac_status = 0; }; then
6165     # Now try to grab the symbols.
6166     nlist=conftest.nm
6167     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6168   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6169   ac_status=$?
6170   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6171   test $ac_status = 0; } && test -s "$nlist"; then
6172       # Try sorting and uniquifying the output.
6173       if sort "$nlist" | uniq > "$nlist"T; then
6174         mv -f "$nlist"T "$nlist"
6175       else
6176         rm -f "$nlist"T
6177       fi
6179       # Make sure that we snagged all the symbols we need.
6180       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6181         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6182           cat <<_LT_EOF > conftest.$ac_ext
6183 #ifdef __cplusplus
6184 extern "C" {
6185 #endif
6187 _LT_EOF
6188           # Now generate the symbol file.
6189           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6191           cat <<_LT_EOF >> conftest.$ac_ext
6193 /* The mapping between symbol names and symbols.  */
6194 const struct {
6195   const char *name;
6196   void       *address;
6198 lt__PROGRAM__LTX_preloaded_symbols[] =
6200   { "@PROGRAM@", (void *) 0 },
6201 _LT_EOF
6202           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6203           cat <<\_LT_EOF >> conftest.$ac_ext
6204   {0, (void *) 0}
6207 /* This works around a problem in FreeBSD linker */
6208 #ifdef FREEBSD_WORKAROUND
6209 static const void *lt_preloaded_setup() {
6210   return lt__PROGRAM__LTX_preloaded_symbols;
6212 #endif
6214 #ifdef __cplusplus
6216 #endif
6217 _LT_EOF
6218           # Now try linking the two files.
6219           mv conftest.$ac_objext conftstm.$ac_objext
6220           lt_save_LIBS="$LIBS"
6221           lt_save_CFLAGS="$CFLAGS"
6222           LIBS="conftstm.$ac_objext"
6223           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6224           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6225   (eval $ac_link) 2>&5
6226   ac_status=$?
6227   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6228   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6229             pipe_works=yes
6230           fi
6231           LIBS="$lt_save_LIBS"
6232           CFLAGS="$lt_save_CFLAGS"
6233         else
6234           echo "cannot find nm_test_func in $nlist" >&5
6235         fi
6236       else
6237         echo "cannot find nm_test_var in $nlist" >&5
6238       fi
6239     else
6240       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6241     fi
6242   else
6243     echo "$progname: failed program was:" >&5
6244     cat conftest.$ac_ext >&5
6245   fi
6246   rm -rf conftest* conftst*
6248   # Do not use the global_symbol_pipe unless it works.
6249   if test "$pipe_works" = yes; then
6250     break
6251   else
6252     lt_cv_sys_global_symbol_pipe=
6253   fi
6254 done
6258 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6259   lt_cv_sys_global_symbol_to_cdecl=
6261 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6263 $as_echo "failed" >&6; }
6264 else
6265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6266 $as_echo "ok" >&6; }
6270     
6271     
6272     
6275     
6276     
6277     
6280     
6281     
6282     
6285     
6286     
6287     
6291 @%:@ Check whether --enable-libtool-lock was given.
6292 if test "${enable_libtool_lock+set}" = set; then :
6293   enableval=$enable_libtool_lock; 
6296 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6298 # Some flags need to be propagated to the compiler or linker for good
6299 # libtool support.
6300 case $host in
6301 ia64-*-hpux*)
6302   # Find out which ABI we are using.
6303   echo 'int i;' > conftest.$ac_ext
6304   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6305   (eval $ac_compile) 2>&5
6306   ac_status=$?
6307   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6308   test $ac_status = 0; }; then
6309     case `/usr/bin/file conftest.$ac_objext` in
6310       *ELF-32*)
6311         HPUX_IA64_MODE="32"
6312         ;;
6313       *ELF-64*)
6314         HPUX_IA64_MODE="64"
6315         ;;
6316     esac
6317   fi
6318   rm -rf conftest*
6319   ;;
6320 *-*-irix6*)
6321   # Find out which ABI we are using.
6322   echo '#line __oline__ "configure"' > conftest.$ac_ext
6323   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6324   (eval $ac_compile) 2>&5
6325   ac_status=$?
6326   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6327   test $ac_status = 0; }; then
6328     if test "$lt_cv_prog_gnu_ld" = yes; then
6329       case `/usr/bin/file conftest.$ac_objext` in
6330         *32-bit*)
6331           LD="${LD-ld} -melf32bsmip"
6332           ;;
6333         *N32*)
6334           LD="${LD-ld} -melf32bmipn32"
6335           ;;
6336         *64-bit*)
6337           LD="${LD-ld} -melf64bmip"
6338         ;;
6339       esac
6340     else
6341       case `/usr/bin/file conftest.$ac_objext` in
6342         *32-bit*)
6343           LD="${LD-ld} -32"
6344           ;;
6345         *N32*)
6346           LD="${LD-ld} -n32"
6347           ;;
6348         *64-bit*)
6349           LD="${LD-ld} -64"
6350           ;;
6351       esac
6352     fi
6353   fi
6354   rm -rf conftest*
6355   ;;
6357 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6358 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6359   # Find out which ABI we are using.
6360   echo 'int i;' > conftest.$ac_ext
6361   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6362   (eval $ac_compile) 2>&5
6363   ac_status=$?
6364   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6365   test $ac_status = 0; }; then
6366     case `/usr/bin/file conftest.o` in
6367       *32-bit*)
6368         case $host in
6369           x86_64-*kfreebsd*-gnu)
6370             LD="${LD-ld} -m elf_i386_fbsd"
6371             ;;
6372           x86_64-*linux*)
6373             LD="${LD-ld} -m elf_i386"
6374             ;;
6375           ppc64-*linux*|powerpc64-*linux*)
6376             LD="${LD-ld} -m elf32ppclinux"
6377             ;;
6378           s390x-*linux*)
6379             LD="${LD-ld} -m elf_s390"
6380             ;;
6381           sparc64-*linux*)
6382             LD="${LD-ld} -m elf32_sparc"
6383             ;;
6384         esac
6385         ;;
6386       *64-bit*)
6387         case $host in
6388           x86_64-*kfreebsd*-gnu)
6389             LD="${LD-ld} -m elf_x86_64_fbsd"
6390             ;;
6391           x86_64-*linux*)
6392             LD="${LD-ld} -m elf_x86_64"
6393             ;;
6394           ppc*-*linux*|powerpc*-*linux*)
6395             LD="${LD-ld} -m elf64ppc"
6396             ;;
6397           s390*-*linux*|s390*-*tpf*)
6398             LD="${LD-ld} -m elf64_s390"
6399             ;;
6400           sparc*-*linux*)
6401             LD="${LD-ld} -m elf64_sparc"
6402             ;;
6403         esac
6404         ;;
6405     esac
6406   fi
6407   rm -rf conftest*
6408   ;;
6410 *-*-sco3.2v5*)
6411   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6412   SAVE_CFLAGS="$CFLAGS"
6413   CFLAGS="$CFLAGS -belf"
6414   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6415 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6416 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6417   $as_echo_n "(cached) " >&6
6418 else
6419   ac_ext=c
6420 ac_cpp='$CPP $CPPFLAGS'
6421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6425      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6426 /* end confdefs.h.  */
6429 main ()
6432   ;
6433   return 0;
6435 _ACEOF
6436 if ac_fn_c_try_link "$LINENO"; then :
6437   lt_cv_cc_needs_belf=yes
6438 else
6439   lt_cv_cc_needs_belf=no
6441 rm -f core conftest.err conftest.$ac_objext \
6442     conftest$ac_exeext conftest.$ac_ext
6443      ac_ext=c
6444 ac_cpp='$CPP $CPPFLAGS'
6445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6451 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6452   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6453     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6454     CFLAGS="$SAVE_CFLAGS"
6455   fi
6456   ;;
6457 sparc*-*solaris*)
6458   # Find out which ABI we are using.
6459   echo 'int i;' > conftest.$ac_ext
6460   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6461   (eval $ac_compile) 2>&5
6462   ac_status=$?
6463   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6464   test $ac_status = 0; }; then
6465     case `/usr/bin/file conftest.o` in
6466     *64-bit*)
6467       case $lt_cv_prog_gnu_ld in
6468       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6469       *)
6470         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6471           LD="${LD-ld} -64"
6472         fi
6473         ;;
6474       esac
6475       ;;
6476     esac
6477   fi
6478   rm -rf conftest*
6479   ;;
6480 esac
6482 need_locks="$enable_libtool_lock"
6485   case $host_os in
6486     rhapsody* | darwin*)
6487     if test -n "$ac_tool_prefix"; then
6488   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6489 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6491 $as_echo_n "checking for $ac_word... " >&6; }
6492 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6493   $as_echo_n "(cached) " >&6
6494 else
6495   if test -n "$DSYMUTIL"; then
6496   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6497 else
6498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6499 for as_dir in $PATH
6501   IFS=$as_save_IFS
6502   test -z "$as_dir" && as_dir=.
6503     for ac_exec_ext in '' $ac_executable_extensions; do
6504   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6505     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6506     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6507     break 2
6508   fi
6509 done
6510   done
6511 IFS=$as_save_IFS
6515 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6516 if test -n "$DSYMUTIL"; then
6517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6518 $as_echo "$DSYMUTIL" >&6; }
6519 else
6520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6521 $as_echo "no" >&6; }
6526 if test -z "$ac_cv_prog_DSYMUTIL"; then
6527   ac_ct_DSYMUTIL=$DSYMUTIL
6528   # Extract the first word of "dsymutil", so it can be a program name with args.
6529 set dummy dsymutil; ac_word=$2
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6531 $as_echo_n "checking for $ac_word... " >&6; }
6532 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6533   $as_echo_n "(cached) " >&6
6534 else
6535   if test -n "$ac_ct_DSYMUTIL"; then
6536   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6537 else
6538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6539 for as_dir in $PATH
6541   IFS=$as_save_IFS
6542   test -z "$as_dir" && as_dir=.
6543     for ac_exec_ext in '' $ac_executable_extensions; do
6544   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6545     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6546     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6547     break 2
6548   fi
6549 done
6550   done
6551 IFS=$as_save_IFS
6555 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6556 if test -n "$ac_ct_DSYMUTIL"; then
6557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6558 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6559 else
6560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6561 $as_echo "no" >&6; }
6564   if test "x$ac_ct_DSYMUTIL" = x; then
6565     DSYMUTIL=":"
6566   else
6567     case $cross_compiling:$ac_tool_warned in
6568 yes:)
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6570 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6571 ac_tool_warned=yes ;;
6572 esac
6573     DSYMUTIL=$ac_ct_DSYMUTIL
6574   fi
6575 else
6576   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6579     if test -n "$ac_tool_prefix"; then
6580   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6581 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6583 $as_echo_n "checking for $ac_word... " >&6; }
6584 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6585   $as_echo_n "(cached) " >&6
6586 else
6587   if test -n "$NMEDIT"; then
6588   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6589 else
6590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6591 for as_dir in $PATH
6593   IFS=$as_save_IFS
6594   test -z "$as_dir" && as_dir=.
6595     for ac_exec_ext in '' $ac_executable_extensions; do
6596   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6597     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6598     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6599     break 2
6600   fi
6601 done
6602   done
6603 IFS=$as_save_IFS
6607 NMEDIT=$ac_cv_prog_NMEDIT
6608 if test -n "$NMEDIT"; then
6609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6610 $as_echo "$NMEDIT" >&6; }
6611 else
6612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6613 $as_echo "no" >&6; }
6618 if test -z "$ac_cv_prog_NMEDIT"; then
6619   ac_ct_NMEDIT=$NMEDIT
6620   # Extract the first word of "nmedit", so it can be a program name with args.
6621 set dummy nmedit; ac_word=$2
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6623 $as_echo_n "checking for $ac_word... " >&6; }
6624 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6625   $as_echo_n "(cached) " >&6
6626 else
6627   if test -n "$ac_ct_NMEDIT"; then
6628   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6629 else
6630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6631 for as_dir in $PATH
6633   IFS=$as_save_IFS
6634   test -z "$as_dir" && as_dir=.
6635     for ac_exec_ext in '' $ac_executable_extensions; do
6636   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6637     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6638     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6639     break 2
6640   fi
6641 done
6642   done
6643 IFS=$as_save_IFS
6647 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6648 if test -n "$ac_ct_NMEDIT"; then
6649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6650 $as_echo "$ac_ct_NMEDIT" >&6; }
6651 else
6652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6653 $as_echo "no" >&6; }
6656   if test "x$ac_ct_NMEDIT" = x; then
6657     NMEDIT=":"
6658   else
6659     case $cross_compiling:$ac_tool_warned in
6660 yes:)
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6662 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6663 ac_tool_warned=yes ;;
6664 esac
6665     NMEDIT=$ac_ct_NMEDIT
6666   fi
6667 else
6668   NMEDIT="$ac_cv_prog_NMEDIT"
6671     if test -n "$ac_tool_prefix"; then
6672   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6673 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6675 $as_echo_n "checking for $ac_word... " >&6; }
6676 if test "${ac_cv_prog_LIPO+set}" = set; then :
6677   $as_echo_n "(cached) " >&6
6678 else
6679   if test -n "$LIPO"; then
6680   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6681 else
6682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6683 for as_dir in $PATH
6685   IFS=$as_save_IFS
6686   test -z "$as_dir" && as_dir=.
6687     for ac_exec_ext in '' $ac_executable_extensions; do
6688   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6689     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6690     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6691     break 2
6692   fi
6693 done
6694   done
6695 IFS=$as_save_IFS
6699 LIPO=$ac_cv_prog_LIPO
6700 if test -n "$LIPO"; then
6701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6702 $as_echo "$LIPO" >&6; }
6703 else
6704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6705 $as_echo "no" >&6; }
6710 if test -z "$ac_cv_prog_LIPO"; then
6711   ac_ct_LIPO=$LIPO
6712   # Extract the first word of "lipo", so it can be a program name with args.
6713 set dummy lipo; ac_word=$2
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6715 $as_echo_n "checking for $ac_word... " >&6; }
6716 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6717   $as_echo_n "(cached) " >&6
6718 else
6719   if test -n "$ac_ct_LIPO"; then
6720   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6721 else
6722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6723 for as_dir in $PATH
6725   IFS=$as_save_IFS
6726   test -z "$as_dir" && as_dir=.
6727     for ac_exec_ext in '' $ac_executable_extensions; do
6728   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6729     ac_cv_prog_ac_ct_LIPO="lipo"
6730     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6731     break 2
6732   fi
6733 done
6734   done
6735 IFS=$as_save_IFS
6739 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6740 if test -n "$ac_ct_LIPO"; then
6741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6742 $as_echo "$ac_ct_LIPO" >&6; }
6743 else
6744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6745 $as_echo "no" >&6; }
6748   if test "x$ac_ct_LIPO" = x; then
6749     LIPO=":"
6750   else
6751     case $cross_compiling:$ac_tool_warned in
6752 yes:)
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6754 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6755 ac_tool_warned=yes ;;
6756 esac
6757     LIPO=$ac_ct_LIPO
6758   fi
6759 else
6760   LIPO="$ac_cv_prog_LIPO"
6763     if test -n "$ac_tool_prefix"; then
6764   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6765 set dummy ${ac_tool_prefix}otool; ac_word=$2
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6767 $as_echo_n "checking for $ac_word... " >&6; }
6768 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6769   $as_echo_n "(cached) " >&6
6770 else
6771   if test -n "$OTOOL"; then
6772   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6773 else
6774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6775 for as_dir in $PATH
6777   IFS=$as_save_IFS
6778   test -z "$as_dir" && as_dir=.
6779     for ac_exec_ext in '' $ac_executable_extensions; do
6780   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6781     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6782     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6783     break 2
6784   fi
6785 done
6786   done
6787 IFS=$as_save_IFS
6791 OTOOL=$ac_cv_prog_OTOOL
6792 if test -n "$OTOOL"; then
6793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6794 $as_echo "$OTOOL" >&6; }
6795 else
6796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6797 $as_echo "no" >&6; }
6802 if test -z "$ac_cv_prog_OTOOL"; then
6803   ac_ct_OTOOL=$OTOOL
6804   # Extract the first word of "otool", so it can be a program name with args.
6805 set dummy otool; ac_word=$2
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6807 $as_echo_n "checking for $ac_word... " >&6; }
6808 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6809   $as_echo_n "(cached) " >&6
6810 else
6811   if test -n "$ac_ct_OTOOL"; then
6812   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6813 else
6814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6815 for as_dir in $PATH
6817   IFS=$as_save_IFS
6818   test -z "$as_dir" && as_dir=.
6819     for ac_exec_ext in '' $ac_executable_extensions; do
6820   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6821     ac_cv_prog_ac_ct_OTOOL="otool"
6822     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6823     break 2
6824   fi
6825 done
6826   done
6827 IFS=$as_save_IFS
6831 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6832 if test -n "$ac_ct_OTOOL"; then
6833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6834 $as_echo "$ac_ct_OTOOL" >&6; }
6835 else
6836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6837 $as_echo "no" >&6; }
6840   if test "x$ac_ct_OTOOL" = x; then
6841     OTOOL=":"
6842   else
6843     case $cross_compiling:$ac_tool_warned in
6844 yes:)
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6846 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6847 ac_tool_warned=yes ;;
6848 esac
6849     OTOOL=$ac_ct_OTOOL
6850   fi
6851 else
6852   OTOOL="$ac_cv_prog_OTOOL"
6855     if test -n "$ac_tool_prefix"; then
6856   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6857 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6859 $as_echo_n "checking for $ac_word... " >&6; }
6860 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6861   $as_echo_n "(cached) " >&6
6862 else
6863   if test -n "$OTOOL64"; then
6864   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6865 else
6866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6867 for as_dir in $PATH
6869   IFS=$as_save_IFS
6870   test -z "$as_dir" && as_dir=.
6871     for ac_exec_ext in '' $ac_executable_extensions; do
6872   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6873     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6874     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6875     break 2
6876   fi
6877 done
6878   done
6879 IFS=$as_save_IFS
6883 OTOOL64=$ac_cv_prog_OTOOL64
6884 if test -n "$OTOOL64"; then
6885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6886 $as_echo "$OTOOL64" >&6; }
6887 else
6888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6889 $as_echo "no" >&6; }
6894 if test -z "$ac_cv_prog_OTOOL64"; then
6895   ac_ct_OTOOL64=$OTOOL64
6896   # Extract the first word of "otool64", so it can be a program name with args.
6897 set dummy otool64; ac_word=$2
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6899 $as_echo_n "checking for $ac_word... " >&6; }
6900 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6901   $as_echo_n "(cached) " >&6
6902 else
6903   if test -n "$ac_ct_OTOOL64"; then
6904   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6905 else
6906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6907 for as_dir in $PATH
6909   IFS=$as_save_IFS
6910   test -z "$as_dir" && as_dir=.
6911     for ac_exec_ext in '' $ac_executable_extensions; do
6912   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6913     ac_cv_prog_ac_ct_OTOOL64="otool64"
6914     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6915     break 2
6916   fi
6917 done
6918   done
6919 IFS=$as_save_IFS
6923 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6924 if test -n "$ac_ct_OTOOL64"; then
6925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6926 $as_echo "$ac_ct_OTOOL64" >&6; }
6927 else
6928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6929 $as_echo "no" >&6; }
6932   if test "x$ac_ct_OTOOL64" = x; then
6933     OTOOL64=":"
6934   else
6935     case $cross_compiling:$ac_tool_warned in
6936 yes:)
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6938 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6939 ac_tool_warned=yes ;;
6940 esac
6941     OTOOL64=$ac_ct_OTOOL64
6942   fi
6943 else
6944   OTOOL64="$ac_cv_prog_OTOOL64"
6947     
6948     
6949     
6950     
6952     
6953     
6954     
6955     
6957     
6958     
6959     
6960     
6962     
6963     
6964     
6965     
6967     
6968     
6969     
6970     
6973     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6974 $as_echo_n "checking for -single_module linker flag... " >&6; }
6975 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6976   $as_echo_n "(cached) " >&6
6977 else
6978   lt_cv_apple_cc_single_mod=no
6979       if test -z "${LT_MULTI_MODULE}"; then
6980         # By default we will add the -single_module flag. You can override
6981         # by either setting the environment variable LT_MULTI_MODULE
6982         # non-empty at configure time, or by adding -multi_module to the
6983         # link flags.
6984         rm -rf libconftest.dylib*
6985         echo "int foo(void){return 1;}" > conftest.c
6986         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6987 -dynamiclib -Wl,-single_module conftest.c" >&5
6988         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6989           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6990         _lt_result=$?
6991         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6992           lt_cv_apple_cc_single_mod=yes
6993         else
6994           cat conftest.err >&5
6995         fi
6996         rm -rf libconftest.dylib*
6997         rm -f conftest.*
6998       fi
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7001 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7002     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7003 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7004 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7005   $as_echo_n "(cached) " >&6
7006 else
7007   lt_cv_ld_exported_symbols_list=no
7008       save_LDFLAGS=$LDFLAGS
7009       echo "_main" > conftest.sym
7010       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7011       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7012 /* end confdefs.h.  */
7015 main ()
7018   ;
7019   return 0;
7021 _ACEOF
7022 if ac_fn_c_try_link "$LINENO"; then :
7023   lt_cv_ld_exported_symbols_list=yes
7024 else
7025   lt_cv_ld_exported_symbols_list=no
7027 rm -f core conftest.err conftest.$ac_objext \
7028     conftest$ac_exeext conftest.$ac_ext
7029         LDFLAGS="$save_LDFLAGS"
7030     
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7033 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7034     case $host_os in
7035     rhapsody* | darwin1.[012])
7036       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7037     darwin1.*)
7038       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7039     darwin*) # darwin 5.x on
7040       # if running on 10.5 or later, the deployment target defaults
7041       # to the OS version, if on x86, and 10.4, the deployment
7042       # target defaults to 10.4. Don't you love it?
7043       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7044         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7045           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7046         10.[012]*)
7047           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7048         10.*)
7049           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7050       esac
7051     ;;
7052   esac
7053     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7054       _lt_dar_single_mod='$single_module'
7055     fi
7056     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7057       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7058     else
7059       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7060     fi
7061     if test "$DSYMUTIL" != ":"; then
7062       _lt_dsymutil='~$DSYMUTIL $lib || :'
7063     else
7064       _lt_dsymutil=
7065     fi
7066     ;;
7067   esac
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7071 $as_echo_n "checking for ANSI C header files... " >&6; }
7072 if test "${ac_cv_header_stdc+set}" = set; then :
7073   $as_echo_n "(cached) " >&6
7074 else
7075   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7076 /* end confdefs.h.  */
7077 #include <stdlib.h>
7078 #include <stdarg.h>
7079 #include <string.h>
7080 #include <float.h>
7083 main ()
7086   ;
7087   return 0;
7089 _ACEOF
7090 if ac_fn_c_try_compile "$LINENO"; then :
7091   ac_cv_header_stdc=yes
7092 else
7093   ac_cv_header_stdc=no
7095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7097 if test $ac_cv_header_stdc = yes; then
7098   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7099   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7100 /* end confdefs.h.  */
7101 #include <string.h>
7103 _ACEOF
7104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7105   $EGREP "memchr" >/dev/null 2>&1; then :
7106   
7107 else
7108   ac_cv_header_stdc=no
7110 rm -f conftest*
7114 if test $ac_cv_header_stdc = yes; then
7115   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7116   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7117 /* end confdefs.h.  */
7118 #include <stdlib.h>
7120 _ACEOF
7121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7122   $EGREP "free" >/dev/null 2>&1; then :
7123   
7124 else
7125   ac_cv_header_stdc=no
7127 rm -f conftest*
7131 if test $ac_cv_header_stdc = yes; then
7132   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7133   if test "$cross_compiling" = yes; then :
7134   :
7135 else
7136   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7137 /* end confdefs.h.  */
7138 #include <ctype.h>
7139 #include <stdlib.h>
7140 #if ((' ' & 0x0FF) == 0x020)
7141 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7142 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7143 #else
7144 # define ISLOWER(c) \
7145                    (('a' <= (c) && (c) <= 'i') \
7146                      || ('j' <= (c) && (c) <= 'r') \
7147                      || ('s' <= (c) && (c) <= 'z'))
7148 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7149 #endif
7151 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7153 main ()
7155   int i;
7156   for (i = 0; i < 256; i++)
7157     if (XOR (islower (i), ISLOWER (i))
7158         || toupper (i) != TOUPPER (i))
7159       return 2;
7160   return 0;
7162 _ACEOF
7163 if ac_fn_c_try_run "$LINENO"; then :
7164   
7165 else
7166   ac_cv_header_stdc=no
7168 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7169   conftest.$ac_objext conftest.beam conftest.$ac_ext
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7175 $as_echo "$ac_cv_header_stdc" >&6; }
7176 if test $ac_cv_header_stdc = yes; then
7177   
7178 $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
7182 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7183 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7184                   inttypes.h stdint.h unistd.h
7185 do :
7186   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7187 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7189 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7190   cat >>confdefs.h <<_ACEOF
7191 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7192 _ACEOF
7196 done
7199 for ac_header in dlfcn.h
7200 do :
7201   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7203 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7204   cat >>confdefs.h <<_ACEOF
7205 @%:@define HAVE_DLFCN_H 1
7206 _ACEOF
7210 done
7214 ac_ext=cpp
7215 ac_cpp='$CXXCPP $CPPFLAGS'
7216 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7217 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7218 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7219 if test -z "$CXX"; then
7220   if test -n "$CCC"; then
7221     CXX=$CCC
7222   else
7223     if test -n "$ac_tool_prefix"; then
7224   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7225   do
7226     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7227 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7229 $as_echo_n "checking for $ac_word... " >&6; }
7230 if test "${ac_cv_prog_CXX+set}" = set; then :
7231   $as_echo_n "(cached) " >&6
7232 else
7233   if test -n "$CXX"; then
7234   ac_cv_prog_CXX="$CXX" # Let the user override the test.
7235 else
7236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7237 for as_dir in $PATH
7239   IFS=$as_save_IFS
7240   test -z "$as_dir" && as_dir=.
7241     for ac_exec_ext in '' $ac_executable_extensions; do
7242   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7243     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7244     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7245     break 2
7246   fi
7247 done
7248   done
7249 IFS=$as_save_IFS
7253 CXX=$ac_cv_prog_CXX
7254 if test -n "$CXX"; then
7255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7256 $as_echo "$CXX" >&6; }
7257 else
7258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7259 $as_echo "no" >&6; }
7263     test -n "$CXX" && break
7264   done
7266 if test -z "$CXX"; then
7267   ac_ct_CXX=$CXX
7268   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7270   # Extract the first word of "$ac_prog", so it can be a program name with args.
7271 set dummy $ac_prog; ac_word=$2
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7273 $as_echo_n "checking for $ac_word... " >&6; }
7274 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
7275   $as_echo_n "(cached) " >&6
7276 else
7277   if test -n "$ac_ct_CXX"; then
7278   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7279 else
7280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7281 for as_dir in $PATH
7283   IFS=$as_save_IFS
7284   test -z "$as_dir" && as_dir=.
7285     for ac_exec_ext in '' $ac_executable_extensions; do
7286   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7287     ac_cv_prog_ac_ct_CXX="$ac_prog"
7288     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7289     break 2
7290   fi
7291 done
7292   done
7293 IFS=$as_save_IFS
7297 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7298 if test -n "$ac_ct_CXX"; then
7299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7300 $as_echo "$ac_ct_CXX" >&6; }
7301 else
7302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7303 $as_echo "no" >&6; }
7307   test -n "$ac_ct_CXX" && break
7308 done
7310   if test "x$ac_ct_CXX" = x; then
7311     CXX="g++"
7312   else
7313     case $cross_compiling:$ac_tool_warned in
7314 yes:)
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7316 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7317 ac_tool_warned=yes ;;
7318 esac
7319     CXX=$ac_ct_CXX
7320   fi
7323   fi
7325 # Provide some information about the compiler.
7326 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7327 set X $ac_compile
7328 ac_compiler=$2
7329 for ac_option in --version -v -V -qversion; do
7330   { { ac_try="$ac_compiler $ac_option >&5"
7331 case "(($ac_try" in
7332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7333   *) ac_try_echo=$ac_try;;
7334 esac
7335 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7336 $as_echo "$ac_try_echo"; } >&5
7337   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7338   ac_status=$?
7339   if test -s conftest.err; then
7340     sed '10a\
7341 ... rest of stderr output deleted ...
7342          10q' conftest.err >conftest.er1
7343     cat conftest.er1 >&5
7344   fi
7345   rm -f conftest.er1 conftest.err
7346   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7347   test $ac_status = 0; }
7348 done
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7351 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7352 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
7353   $as_echo_n "(cached) " >&6
7354 else
7355   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7356 /* end confdefs.h.  */
7359 main ()
7361 #ifndef __GNUC__
7362        choke me
7363 #endif
7365   ;
7366   return 0;
7368 _ACEOF
7369 if ac_fn_cxx_try_compile "$LINENO"; then :
7370   ac_compiler_gnu=yes
7371 else
7372   ac_compiler_gnu=no
7374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7375 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7379 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7380 if test $ac_compiler_gnu = yes; then
7381   GXX=yes
7382 else
7383   GXX=
7385 ac_test_CXXFLAGS=${CXXFLAGS+set}
7386 ac_save_CXXFLAGS=$CXXFLAGS
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7388 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
7389 if test "${ac_cv_prog_cxx_g+set}" = set; then :
7390   $as_echo_n "(cached) " >&6
7391 else
7392   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7393    ac_cxx_werror_flag=yes
7394    ac_cv_prog_cxx_g=no
7395    CXXFLAGS="-g"
7396    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7397 /* end confdefs.h.  */
7400 main ()
7403   ;
7404   return 0;
7406 _ACEOF
7407 if ac_fn_cxx_try_compile "$LINENO"; then :
7408   ac_cv_prog_cxx_g=yes
7409 else
7410   CXXFLAGS=""
7411       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7412 /* end confdefs.h.  */
7415 main ()
7418   ;
7419   return 0;
7421 _ACEOF
7422 if ac_fn_cxx_try_compile "$LINENO"; then :
7423   
7424 else
7425   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7426          CXXFLAGS="-g"
7427          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7428 /* end confdefs.h.  */
7431 main ()
7434   ;
7435   return 0;
7437 _ACEOF
7438 if ac_fn_cxx_try_compile "$LINENO"; then :
7439   ac_cv_prog_cxx_g=yes
7441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7446    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7449 $as_echo "$ac_cv_prog_cxx_g" >&6; }
7450 if test "$ac_test_CXXFLAGS" = set; then
7451   CXXFLAGS=$ac_save_CXXFLAGS
7452 elif test $ac_cv_prog_cxx_g = yes; then
7453   if test "$GXX" = yes; then
7454     CXXFLAGS="-g -O2"
7455   else
7456     CXXFLAGS="-g"
7457   fi
7458 else
7459   if test "$GXX" = yes; then
7460     CXXFLAGS="-O2"
7461   else
7462     CXXFLAGS=
7463   fi
7465 ac_ext=c
7466 ac_cpp='$CPP $CPPFLAGS'
7467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7471 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7472     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7473     (test "X$CXX" != "Xg++"))) ; then
7474   ac_ext=cpp
7475 ac_cpp='$CXXCPP $CPPFLAGS'
7476 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7477 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7478 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
7480 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
7481 if test -z "$CXXCPP"; then
7482   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
7483   $as_echo_n "(cached) " >&6
7484 else
7485       # Double quotes because CXXCPP needs to be expanded
7486     for CXXCPP in "$CXX -E" "/lib/cpp"
7487     do
7488       ac_preproc_ok=false
7489 for ac_cxx_preproc_warn_flag in '' yes
7491   # Use a header file that comes with gcc, so configuring glibc
7492   # with a fresh cross-compiler works.
7493   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7494   # <limits.h> exists even on freestanding compilers.
7495   # On the NeXT, cc -E runs the code through the compiler's parser,
7496   # not just through cpp. "Syntax error" is here to catch this case.
7497   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7498 /* end confdefs.h.  */
7499 @%:@ifdef __STDC__
7500 @%:@ include <limits.h>
7501 @%:@else
7502 @%:@ include <assert.h>
7503 @%:@endif
7504                      Syntax error
7505 _ACEOF
7506 if ac_fn_cxx_try_cpp "$LINENO"; then :
7507   
7508 else
7509   # Broken: fails on valid input.
7510 continue
7512 rm -f conftest.err conftest.i conftest.$ac_ext
7514   # OK, works on sane cases.  Now check whether nonexistent headers
7515   # can be detected and how.
7516   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7517 /* end confdefs.h.  */
7518 @%:@include <ac_nonexistent.h>
7519 _ACEOF
7520 if ac_fn_cxx_try_cpp "$LINENO"; then :
7521   # Broken: success on invalid input.
7522 continue
7523 else
7524   # Passes both tests.
7525 ac_preproc_ok=:
7526 break
7528 rm -f conftest.err conftest.i conftest.$ac_ext
7530 done
7531 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7532 rm -f conftest.i conftest.err conftest.$ac_ext
7533 if $ac_preproc_ok; then :
7534   break
7537     done
7538     ac_cv_prog_CXXCPP=$CXXCPP
7539   
7541   CXXCPP=$ac_cv_prog_CXXCPP
7542 else
7543   ac_cv_prog_CXXCPP=$CXXCPP
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
7546 $as_echo "$CXXCPP" >&6; }
7547 ac_preproc_ok=false
7548 for ac_cxx_preproc_warn_flag in '' yes
7550   # Use a header file that comes with gcc, so configuring glibc
7551   # with a fresh cross-compiler works.
7552   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7553   # <limits.h> exists even on freestanding compilers.
7554   # On the NeXT, cc -E runs the code through the compiler's parser,
7555   # not just through cpp. "Syntax error" is here to catch this case.
7556   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7557 /* end confdefs.h.  */
7558 @%:@ifdef __STDC__
7559 @%:@ include <limits.h>
7560 @%:@else
7561 @%:@ include <assert.h>
7562 @%:@endif
7563                      Syntax error
7564 _ACEOF
7565 if ac_fn_cxx_try_cpp "$LINENO"; then :
7566   
7567 else
7568   # Broken: fails on valid input.
7569 continue
7571 rm -f conftest.err conftest.i conftest.$ac_ext
7573   # OK, works on sane cases.  Now check whether nonexistent headers
7574   # can be detected and how.
7575   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7576 /* end confdefs.h.  */
7577 @%:@include <ac_nonexistent.h>
7578 _ACEOF
7579 if ac_fn_cxx_try_cpp "$LINENO"; then :
7580   # Broken: success on invalid input.
7581 continue
7582 else
7583   # Passes both tests.
7584 ac_preproc_ok=:
7585 break
7587 rm -f conftest.err conftest.i conftest.$ac_ext
7589 done
7590 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7591 rm -f conftest.i conftest.err conftest.$ac_ext
7592 if $ac_preproc_ok; then :
7593   
7594 else
7595   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7597 _lt_caught_CXX_error=yes; }
7600 ac_ext=c
7601 ac_cpp='$CPP $CPPFLAGS'
7602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7606 else
7607   _lt_caught_CXX_error=yes
7614 # Set options
7618         
7619   enable_win32_dll=no
7620   
7622             @%:@ Check whether --enable-shared was given.
7623 if test "${enable_shared+set}" = set; then :
7624   enableval=$enable_shared; p=${PACKAGE-default}
7625     case $enableval in
7626     yes) enable_shared=yes ;;
7627     no) enable_shared=no ;;
7628     *)
7629       enable_shared=no
7630       # Look at the argument we got.  We use all the common list separators.
7631       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7632       for pkg in $enableval; do
7633         IFS="$lt_save_ifs"
7634         if test "X$pkg" = "X$p"; then
7635           enable_shared=yes
7636         fi
7637       done
7638       IFS="$lt_save_ifs"
7639       ;;
7640     esac
7641 else
7642   enable_shared=yes
7646     
7647     
7648     
7649     
7653   @%:@ Check whether --enable-static was given.
7654 if test "${enable_static+set}" = set; then :
7655   enableval=$enable_static; p=${PACKAGE-default}
7656     case $enableval in
7657     yes) enable_static=yes ;;
7658     no) enable_static=no ;;
7659     *)
7660      enable_static=no
7661       # Look at the argument we got.  We use all the common list separators.
7662       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7663       for pkg in $enableval; do
7664         IFS="$lt_save_ifs"
7665         if test "X$pkg" = "X$p"; then
7666           enable_static=yes
7667         fi
7668       done
7669       IFS="$lt_save_ifs"
7670       ;;
7671     esac
7672 else
7673   enable_static=yes
7677     
7678     
7679     
7680     
7684   
7685 @%:@ Check whether --with-pic was given.
7686 if test "${with_pic+set}" = set; then :
7687   withval=$with_pic; pic_mode="$withval"
7688 else
7689   pic_mode=default
7693 test -z "$pic_mode" && pic_mode=default
7696     
7697     
7698     
7701   @%:@ Check whether --enable-fast-install was given.
7702 if test "${enable_fast_install+set}" = set; then :
7703   enableval=$enable_fast_install; p=${PACKAGE-default}
7704     case $enableval in
7705     yes) enable_fast_install=yes ;;
7706     no) enable_fast_install=no ;;
7707     *)
7708       enable_fast_install=no
7709       # Look at the argument we got.  We use all the common list separators.
7710       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7711       for pkg in $enableval; do
7712         IFS="$lt_save_ifs"
7713         if test "X$pkg" = "X$p"; then
7714           enable_fast_install=yes
7715         fi
7716       done
7717       IFS="$lt_save_ifs"
7718       ;;
7719     esac
7720 else
7721   enable_fast_install=yes
7726     
7727     
7728     
7731   
7734 # This can be used to rebuild libtool when needed
7735 LIBTOOL_DEPS="$ltmain"
7737 # Always use our own libtool.
7738 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7741     
7742     
7743     
7745     
7746     
7747     
7749     
7750     
7751     
7753     
7754     
7755     
7757     
7758     
7759     
7761     
7762     
7763     
7764 test -z "$LN_S" && LN_S="ln -s"
7766     
7767     
7768     
7770     
7771     
7772     
7774     
7775     
7776     
7779 if test -n "${ZSH_VERSION+set}" ; then
7780    setopt NO_GLOB_SUBST
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7784 $as_echo_n "checking for objdir... " >&6; }
7785 if test "${lt_cv_objdir+set}" = set; then :
7786   $as_echo_n "(cached) " >&6
7787 else
7788   rm -f .libs 2>/dev/null
7789 mkdir .libs 2>/dev/null
7790 if test -d .libs; then
7791   lt_cv_objdir=.libs
7792 else
7793   # MS-DOS does not allow filenames that begin with a dot.
7794   lt_cv_objdir=_libs
7796 rmdir .libs 2>/dev/null
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7799 $as_echo "$lt_cv_objdir" >&6; }
7800 objdir=$lt_cv_objdir
7802     
7803     
7804     
7806 cat >>confdefs.h <<_ACEOF
7807 @%:@define LT_OBJDIR "$lt_cv_objdir/"
7808 _ACEOF
7815     
7816     
7817     
7820     
7821     
7822     
7826 case $host_os in
7827 aix3*)
7828   # AIX sometimes has problems with the GCC collect2 program.  For some
7829   # reason, if we set the COLLECT_NAMES environment variable, the problems
7830   # vanish in a puff of smoke.
7831   if test "X${COLLECT_NAMES+set}" != Xset; then
7832     COLLECT_NAMES=
7833     export COLLECT_NAMES
7834   fi
7835   ;;
7836 esac
7838 # Sed substitution that helps us do robust quoting.  It backslashifies
7839 # metacharacters that are still active within double-quoted strings.
7840 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7842 # Same as above, but do not quote variable references.
7843 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7845 # Sed substitution to delay expansion of an escaped shell variable in a
7846 # double_quote_subst'ed string.
7847 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7849 # Sed substitution to delay expansion of an escaped single quote.
7850 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7852 # Sed substitution to avoid accidental globbing in evaled expressions
7853 no_glob_subst='s/\*/\\\*/g'
7855 # Global variables:
7856 ofile=libtool
7857 can_build_shared=yes
7859 # All known linkers require a `.a' archive for static linking (except MSVC,
7860 # which needs '.lib').
7861 libext=a
7863 with_gnu_ld="$lt_cv_prog_gnu_ld"
7865 old_CC="$CC"
7866 old_CFLAGS="$CFLAGS"
7868 # Set sane defaults for various variables
7869 test -z "$CC" && CC=cc
7870 test -z "$LTCC" && LTCC=$CC
7871 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7872 test -z "$LD" && LD=ld
7873 test -z "$ac_objext" && ac_objext=o
7875 for cc_temp in $compiler""; do
7876   case $cc_temp in
7877     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7878     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7879     \-*) ;;
7880     *) break;;
7881   esac
7882 done
7883 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7886 # Only perform the check for file, if the check method requires it
7887 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7888 case $deplibs_check_method in
7889 file_magic*)
7890   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7891     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7892 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7893 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7894   $as_echo_n "(cached) " >&6
7895 else
7896   case $MAGIC_CMD in
7897 [\\/*] |  ?:[\\/]*)
7898   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7899   ;;
7901   lt_save_MAGIC_CMD="$MAGIC_CMD"
7902   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7903   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7904   for ac_dir in $ac_dummy; do
7905     IFS="$lt_save_ifs"
7906     test -z "$ac_dir" && ac_dir=.
7907     if test -f $ac_dir/${ac_tool_prefix}file; then
7908       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7909       if test -n "$file_magic_test_file"; then
7910         case $deplibs_check_method in
7911         "file_magic "*)
7912           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7913           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7914           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7915             $EGREP "$file_magic_regex" > /dev/null; then
7916             :
7917           else
7918             cat <<_LT_EOF 1>&2
7920 *** Warning: the command libtool uses to detect shared libraries,
7921 *** $file_magic_cmd, produces output that libtool cannot recognize.
7922 *** The result is that libtool may fail to recognize shared libraries
7923 *** as such.  This will affect the creation of libtool libraries that
7924 *** depend on shared libraries, but programs linked with such libtool
7925 *** libraries will work regardless of this problem.  Nevertheless, you
7926 *** may want to report the problem to your system manager and/or to
7927 *** bug-libtool@gnu.org
7929 _LT_EOF
7930           fi ;;
7931         esac
7932       fi
7933       break
7934     fi
7935   done
7936   IFS="$lt_save_ifs"
7937   MAGIC_CMD="$lt_save_MAGIC_CMD"
7938   ;;
7939 esac
7942 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7943 if test -n "$MAGIC_CMD"; then
7944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7945 $as_echo "$MAGIC_CMD" >&6; }
7946 else
7947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7948 $as_echo "no" >&6; }
7951     
7952     
7953     
7955 if test -z "$lt_cv_path_MAGIC_CMD"; then
7956   if test -n "$ac_tool_prefix"; then
7957     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7958 $as_echo_n "checking for file... " >&6; }
7959 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7960   $as_echo_n "(cached) " >&6
7961 else
7962   case $MAGIC_CMD in
7963 [\\/*] |  ?:[\\/]*)
7964   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7965   ;;
7967   lt_save_MAGIC_CMD="$MAGIC_CMD"
7968   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7969   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7970   for ac_dir in $ac_dummy; do
7971     IFS="$lt_save_ifs"
7972     test -z "$ac_dir" && ac_dir=.
7973     if test -f $ac_dir/file; then
7974       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7975       if test -n "$file_magic_test_file"; then
7976         case $deplibs_check_method in
7977         "file_magic "*)
7978           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7979           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7980           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7981             $EGREP "$file_magic_regex" > /dev/null; then
7982             :
7983           else
7984             cat <<_LT_EOF 1>&2
7986 *** Warning: the command libtool uses to detect shared libraries,
7987 *** $file_magic_cmd, produces output that libtool cannot recognize.
7988 *** The result is that libtool may fail to recognize shared libraries
7989 *** as such.  This will affect the creation of libtool libraries that
7990 *** depend on shared libraries, but programs linked with such libtool
7991 *** libraries will work regardless of this problem.  Nevertheless, you
7992 *** may want to report the problem to your system manager and/or to
7993 *** bug-libtool@gnu.org
7995 _LT_EOF
7996           fi ;;
7997         esac
7998       fi
7999       break
8000     fi
8001   done
8002   IFS="$lt_save_ifs"
8003   MAGIC_CMD="$lt_save_MAGIC_CMD"
8004   ;;
8005 esac
8008 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8009 if test -n "$MAGIC_CMD"; then
8010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8011 $as_echo "$MAGIC_CMD" >&6; }
8012 else
8013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8014 $as_echo "no" >&6; }
8018   else
8019     MAGIC_CMD=:
8020   fi
8023   fi
8024   ;;
8025 esac
8027 # Use C for the default configuration in the libtool script
8029 lt_save_CC="$CC"
8030 ac_ext=c
8031 ac_cpp='$CPP $CPPFLAGS'
8032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8037 # Source file extension for C test sources.
8038 ac_ext=c
8040 # Object file extension for compiled C test sources.
8041 objext=o
8042 objext=$objext
8044 # Code to be used in simple compile tests
8045 lt_simple_compile_test_code="int some_variable = 0;"
8047 # Code to be used in simple link tests
8048 lt_simple_link_test_code='int main(){return(0);}'
8056 # If no C compiler was specified, use CC.
8057 LTCC=${LTCC-"$CC"}
8059 # If no C compiler flags were specified, use CFLAGS.
8060 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8062 # Allow CC to be a program name with arguments.
8063 compiler=$CC
8065 # Save the default compiler, since it gets overwritten when the other
8066 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8067 compiler_DEFAULT=$CC
8069 # save warnings/boilerplate of simple test code
8070 ac_outfile=conftest.$ac_objext
8071 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8072 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8073 _lt_compiler_boilerplate=`cat conftest.err`
8074 $RM conftest*
8076 ac_outfile=conftest.$ac_objext
8077 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8078 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8079 _lt_linker_boilerplate=`cat conftest.err`
8080 $RM -r conftest*
8083 if test -n "$compiler"; then
8084   
8085 lt_prog_compiler_no_builtin_flag=
8087 if test "$GCC" = yes; then
8088   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8090   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8091 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8092 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8093   $as_echo_n "(cached) " >&6
8094 else
8095   lt_cv_prog_compiler_rtti_exceptions=no
8096    ac_outfile=conftest.$ac_objext
8097    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8098    lt_compiler_flag="-fno-rtti -fno-exceptions"
8099    # Insert the option either (1) after the last *FLAGS variable, or
8100    # (2) before a word containing "conftest.", or (3) at the end.
8101    # Note that $ac_compile itself does not contain backslashes and begins
8102    # with a dollar sign (not a hyphen), so the echo should work correctly.
8103    # The option is referenced via a variable to avoid confusing sed.
8104    lt_compile=`echo "$ac_compile" | $SED \
8105    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8106    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8107    -e 's:$: $lt_compiler_flag:'`
8108    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
8109    (eval "$lt_compile" 2>conftest.err)
8110    ac_status=$?
8111    cat conftest.err >&5
8112    echo "$as_me:__oline__: \$? = $ac_status" >&5
8113    if (exit $ac_status) && test -s "$ac_outfile"; then
8114      # The compiler can only warn and ignore the option if not recognized
8115      # So say no if there are warnings other than the usual output.
8116      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8117      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8118      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8119        lt_cv_prog_compiler_rtti_exceptions=yes
8120      fi
8121    fi
8122    $RM conftest*
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8126 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8128 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8129     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8130 else
8131     :
8136     
8137     
8138     
8141   lt_prog_compiler_wl=
8142 lt_prog_compiler_pic=
8143 lt_prog_compiler_static=
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8146 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8148   if test "$GCC" = yes; then
8149     lt_prog_compiler_wl='-Wl,'
8150     lt_prog_compiler_static='-static'
8152     case $host_os in
8153       aix*)
8154       # All AIX code is PIC.
8155       if test "$host_cpu" = ia64; then
8156         # AIX 5 now supports IA64 processor
8157         lt_prog_compiler_static='-Bstatic'
8158       fi
8159       ;;
8161     amigaos*)
8162       case $host_cpu in
8163       powerpc)
8164             # see comment about AmigaOS4 .so support
8165             lt_prog_compiler_pic='-fPIC'
8166         ;;
8167       m68k)
8168             # FIXME: we need at least 68020 code to build shared libraries, but
8169             # adding the `-m68020' flag to GCC prevents building anything better,
8170             # like `-m68040'.
8171             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8172         ;;
8173       esac
8174       ;;
8176     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8177       # PIC is the default for these OSes.
8178       ;;
8180     mingw* | cygwin* | pw32* | os2* | cegcc*)
8181       # This hack is so that the source file can tell whether it is being
8182       # built for inclusion in a dll (and should export symbols for example).
8183       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8184       # (--disable-auto-import) libraries
8185       lt_prog_compiler_pic='-DDLL_EXPORT'
8186       ;;
8188     darwin* | rhapsody*)
8189       # PIC is the default on this platform
8190       # Common symbols not allowed in MH_DYLIB files
8191       lt_prog_compiler_pic='-fno-common'
8192       ;;
8194     hpux*)
8195       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8196       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8197       # sets the default TLS model and affects inlining.
8198       case $host_cpu in
8199       hppa*64*)
8200         # +Z the default
8201         ;;
8202       *)
8203         lt_prog_compiler_pic='-fPIC'
8204         ;;
8205       esac
8206       ;;
8208     interix[3-9]*)
8209       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8210       # Instead, we relocate shared libraries at runtime.
8211       ;;
8213     msdosdjgpp*)
8214       # Just because we use GCC doesn't mean we suddenly get shared libraries
8215       # on systems that don't support them.
8216       lt_prog_compiler_can_build_shared=no
8217       enable_shared=no
8218       ;;
8220     *nto* | *qnx*)
8221       # QNX uses GNU C++, but need to define -shared option too, otherwise
8222       # it will coredump.
8223       lt_prog_compiler_pic='-fPIC -shared'
8224       ;;
8226     sysv4*MP*)
8227       if test -d /usr/nec; then
8228         lt_prog_compiler_pic=-Kconform_pic
8229       fi
8230       ;;
8232     *)
8233       lt_prog_compiler_pic='-fPIC'
8234       ;;
8235     esac
8236   else
8237     # PORTME Check for flag to pass linker flags through the system compiler.
8238     case $host_os in
8239     aix*)
8240       lt_prog_compiler_wl='-Wl,'
8241       if test "$host_cpu" = ia64; then
8242         # AIX 5 now supports IA64 processor
8243         lt_prog_compiler_static='-Bstatic'
8244       else
8245         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8246       fi
8247       ;;
8249     mingw* | cygwin* | pw32* | os2* | cegcc*)
8250       # This hack is so that the source file can tell whether it is being
8251       # built for inclusion in a dll (and should export symbols for example).
8252       lt_prog_compiler_pic='-DDLL_EXPORT'
8253       ;;
8255     hpux9* | hpux10* | hpux11*)
8256       lt_prog_compiler_wl='-Wl,'
8257       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8258       # not for PA HP-UX.
8259       case $host_cpu in
8260       hppa*64*|ia64*)
8261         # +Z the default
8262         ;;
8263       *)
8264         lt_prog_compiler_pic='+Z'
8265         ;;
8266       esac
8267       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8268       lt_prog_compiler_static='${wl}-a ${wl}archive'
8269       ;;
8271     irix5* | irix6* | nonstopux*)
8272       lt_prog_compiler_wl='-Wl,'
8273       # PIC (with -KPIC) is the default.
8274       lt_prog_compiler_static='-non_shared'
8275       ;;
8277     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8278       case $cc_basename in
8279       # old Intel for x86_64 which still supported -KPIC.
8280       ecc*)
8281         lt_prog_compiler_wl='-Wl,'
8282         lt_prog_compiler_pic='-KPIC'
8283         lt_prog_compiler_static='-static'
8284         ;;
8285       # icc used to be incompatible with GCC.
8286       # ICC 10 doesn't accept -KPIC any more.
8287       icc* | ifort*)
8288         lt_prog_compiler_wl='-Wl,'
8289         lt_prog_compiler_pic='-fPIC'
8290         lt_prog_compiler_static='-static'
8291         ;;
8292       # Lahey Fortran 8.1.
8293       lf95*)
8294         lt_prog_compiler_wl='-Wl,'
8295         lt_prog_compiler_pic='--shared'
8296         lt_prog_compiler_static='--static'
8297         ;;
8298       pgcc* | pgf77* | pgf90* | pgf95*)
8299         # Portland Group compilers (*not* the Pentium gcc compiler,
8300         # which looks to be a dead project)
8301         lt_prog_compiler_wl='-Wl,'
8302         lt_prog_compiler_pic='-fpic'
8303         lt_prog_compiler_static='-Bstatic'
8304         ;;
8305       ccc*)
8306         lt_prog_compiler_wl='-Wl,'
8307         # All Alpha code is PIC.
8308         lt_prog_compiler_static='-non_shared'
8309         ;;
8310       xl*)
8311         # IBM XL C 8.0/Fortran 10.1 on PPC
8312         lt_prog_compiler_wl='-Wl,'
8313         lt_prog_compiler_pic='-qpic'
8314         lt_prog_compiler_static='-qstaticlink'
8315         ;;
8316       *)
8317         case `$CC -V 2>&1 | sed 5q` in
8318         *Sun\ C*)
8319           # Sun C 5.9
8320           lt_prog_compiler_pic='-KPIC'
8321           lt_prog_compiler_static='-Bstatic'
8322           lt_prog_compiler_wl='-Wl,'
8323           ;;
8324         *Sun\ F*)
8325           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8326           lt_prog_compiler_pic='-KPIC'
8327           lt_prog_compiler_static='-Bstatic'
8328           lt_prog_compiler_wl=''
8329           ;;
8330         esac
8331         ;;
8332       esac
8333       ;;
8335     newsos6)
8336       lt_prog_compiler_pic='-KPIC'
8337       lt_prog_compiler_static='-Bstatic'
8338       ;;
8340     *nto* | *qnx*)
8341       # QNX uses GNU C++, but need to define -shared option too, otherwise
8342       # it will coredump.
8343       lt_prog_compiler_pic='-fPIC -shared'
8344       ;;
8346     osf3* | osf4* | osf5*)
8347       lt_prog_compiler_wl='-Wl,'
8348       # All OSF/1 code is PIC.
8349       lt_prog_compiler_static='-non_shared'
8350       ;;
8352     rdos*)
8353       lt_prog_compiler_static='-non_shared'
8354       ;;
8356     solaris*)
8357       lt_prog_compiler_pic='-KPIC'
8358       lt_prog_compiler_static='-Bstatic'
8359       case $cc_basename in
8360       f77* | f90* | f95*)
8361         lt_prog_compiler_wl='-Qoption ld ';;
8362       *)
8363         lt_prog_compiler_wl='-Wl,';;
8364       esac
8365       ;;
8367     sunos4*)
8368       lt_prog_compiler_wl='-Qoption ld '
8369       lt_prog_compiler_pic='-PIC'
8370       lt_prog_compiler_static='-Bstatic'
8371       ;;
8373     sysv4 | sysv4.2uw2* | sysv4.3*)
8374       lt_prog_compiler_wl='-Wl,'
8375       lt_prog_compiler_pic='-KPIC'
8376       lt_prog_compiler_static='-Bstatic'
8377       ;;
8379     sysv4*MP*)
8380       if test -d /usr/nec ;then
8381         lt_prog_compiler_pic='-Kconform_pic'
8382         lt_prog_compiler_static='-Bstatic'
8383       fi
8384       ;;
8386     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8387       lt_prog_compiler_wl='-Wl,'
8388       lt_prog_compiler_pic='-KPIC'
8389       lt_prog_compiler_static='-Bstatic'
8390       ;;
8392     unicos*)
8393       lt_prog_compiler_wl='-Wl,'
8394       lt_prog_compiler_can_build_shared=no
8395       ;;
8397     uts4*)
8398       lt_prog_compiler_pic='-pic'
8399       lt_prog_compiler_static='-Bstatic'
8400       ;;
8402     *)
8403       lt_prog_compiler_can_build_shared=no
8404       ;;
8405     esac
8406   fi
8408 case $host_os in
8409   # For platforms which do not support PIC, -DPIC is meaningless:
8410   *djgpp*)
8411     lt_prog_compiler_pic=
8412     ;;
8413   *)
8414     lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC"
8415     ;;
8416 esac
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8418 $as_echo "$lt_prog_compiler_pic" >&6; }
8420     
8421     
8422     
8426 # Check to make sure the PIC flag actually works.
8428 if test -n "$lt_prog_compiler_pic"; then
8429   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8430 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8431 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8432   $as_echo_n "(cached) " >&6
8433 else
8434   lt_cv_prog_compiler_pic_works=no
8435    ac_outfile=conftest.$ac_objext
8436    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8437    lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC"
8438    # Insert the option either (1) after the last *FLAGS variable, or
8439    # (2) before a word containing "conftest.", or (3) at the end.
8440    # Note that $ac_compile itself does not contain backslashes and begins
8441    # with a dollar sign (not a hyphen), so the echo should work correctly.
8442    # The option is referenced via a variable to avoid confusing sed.
8443    lt_compile=`echo "$ac_compile" | $SED \
8444    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8445    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8446    -e 's:$: $lt_compiler_flag:'`
8447    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
8448    (eval "$lt_compile" 2>conftest.err)
8449    ac_status=$?
8450    cat conftest.err >&5
8451    echo "$as_me:__oline__: \$? = $ac_status" >&5
8452    if (exit $ac_status) && test -s "$ac_outfile"; then
8453      # The compiler can only warn and ignore the option if not recognized
8454      # So say no if there are warnings other than the usual output.
8455      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8456      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8457      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8458        lt_cv_prog_compiler_pic_works=yes
8459      fi
8460    fi
8461    $RM conftest*
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8465 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8467 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8468     case $lt_prog_compiler_pic in
8469      "" | " "*) ;;
8470      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8471      esac
8472 else
8473     lt_prog_compiler_pic=
8474      lt_prog_compiler_can_build_shared=no
8479     
8480     
8481     
8485 # Check to make sure the static flag actually works.
8487 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8489 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8490 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8491   $as_echo_n "(cached) " >&6
8492 else
8493   lt_cv_prog_compiler_static_works=no
8494    save_LDFLAGS="$LDFLAGS"
8495    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8496    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8497    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8498      # The linker can only warn and ignore the option if not recognized
8499      # So say no if there are warnings
8500      if test -s conftest.err; then
8501        # Append any errors to the config.log.
8502        cat conftest.err 1>&5
8503        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8504        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8505        if diff conftest.exp conftest.er2 >/dev/null; then
8506          lt_cv_prog_compiler_static_works=yes
8507        fi
8508      else
8509        lt_cv_prog_compiler_static_works=yes
8510      fi
8511    fi
8512    $RM -r conftest*
8513    LDFLAGS="$save_LDFLAGS"
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8517 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8519 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8520     :
8521 else
8522     lt_prog_compiler_static=
8526     
8527     
8528     
8531   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8532 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8533 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8534   $as_echo_n "(cached) " >&6
8535 else
8536   lt_cv_prog_compiler_c_o=no
8537    $RM -r conftest 2>/dev/null
8538    mkdir conftest
8539    cd conftest
8540    mkdir out
8541    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8543    lt_compiler_flag="-o out/conftest2.$ac_objext"
8544    # Insert the option either (1) after the last *FLAGS variable, or
8545    # (2) before a word containing "conftest.", or (3) at the end.
8546    # Note that $ac_compile itself does not contain backslashes and begins
8547    # with a dollar sign (not a hyphen), so the echo should work correctly.
8548    lt_compile=`echo "$ac_compile" | $SED \
8549    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8550    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8551    -e 's:$: $lt_compiler_flag:'`
8552    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
8553    (eval "$lt_compile" 2>out/conftest.err)
8554    ac_status=$?
8555    cat out/conftest.err >&5
8556    echo "$as_me:__oline__: \$? = $ac_status" >&5
8557    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8558    then
8559      # The compiler can only warn and ignore the option if not recognized
8560      # So say no if there are warnings
8561      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8562      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8563      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8564        lt_cv_prog_compiler_c_o=yes
8565      fi
8566    fi
8567    chmod u+w . 2>&5
8568    $RM conftest*
8569    # SGI C++ compiler will create directory out/ii_files/ for
8570    # template instantiation
8571    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8572    $RM out/* && rmdir out
8573    cd ..
8574    $RM -r conftest
8575    $RM conftest*
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8579 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8581     
8582     
8583     
8586   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8587 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8588 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8589   $as_echo_n "(cached) " >&6
8590 else
8591   lt_cv_prog_compiler_c_o=no
8592    $RM -r conftest 2>/dev/null
8593    mkdir conftest
8594    cd conftest
8595    mkdir out
8596    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8598    lt_compiler_flag="-o out/conftest2.$ac_objext"
8599    # Insert the option either (1) after the last *FLAGS variable, or
8600    # (2) before a word containing "conftest.", or (3) at the end.
8601    # Note that $ac_compile itself does not contain backslashes and begins
8602    # with a dollar sign (not a hyphen), so the echo should work correctly.
8603    lt_compile=`echo "$ac_compile" | $SED \
8604    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8605    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8606    -e 's:$: $lt_compiler_flag:'`
8607    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
8608    (eval "$lt_compile" 2>out/conftest.err)
8609    ac_status=$?
8610    cat out/conftest.err >&5
8611    echo "$as_me:__oline__: \$? = $ac_status" >&5
8612    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8613    then
8614      # The compiler can only warn and ignore the option if not recognized
8615      # So say no if there are warnings
8616      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8617      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8618      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8619        lt_cv_prog_compiler_c_o=yes
8620      fi
8621    fi
8622    chmod u+w . 2>&5
8623    $RM conftest*
8624    # SGI C++ compiler will create directory out/ii_files/ for
8625    # template instantiation
8626    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8627    $RM out/* && rmdir out
8628    cd ..
8629    $RM -r conftest
8630    $RM conftest*
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8634 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8639 hard_links="nottested"
8640 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8641   # do not overwrite the value of need_locks provided by the user
8642   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8643 $as_echo_n "checking if we can lock with hard links... " >&6; }
8644   hard_links=yes
8645   $RM conftest*
8646   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8647   touch conftest.a
8648   ln conftest.a conftest.b 2>&5 || hard_links=no
8649   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8651 $as_echo "$hard_links" >&6; }
8652   if test "$hard_links" = no; then
8653     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8654 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8655     need_locks=warn
8656   fi
8657 else
8658   need_locks=no
8661     
8662     
8663     
8666   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8667 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8669   runpath_var=
8670   allow_undefined_flag=
8671   always_export_symbols=no
8672   archive_cmds=
8673   archive_expsym_cmds=
8674   compiler_needs_object=no
8675   enable_shared_with_static_runtimes=no
8676   export_dynamic_flag_spec=
8677   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8678   hardcode_automatic=no
8679   hardcode_direct=no
8680   hardcode_direct_absolute=no
8681   hardcode_libdir_flag_spec=
8682   hardcode_libdir_flag_spec_ld=
8683   hardcode_libdir_separator=
8684   hardcode_minus_L=no
8685   hardcode_shlibpath_var=unsupported
8686   inherit_rpath=no
8687   link_all_deplibs=unknown
8688   module_cmds=
8689   module_expsym_cmds=
8690   old_archive_from_new_cmds=
8691   old_archive_from_expsyms_cmds=
8692   thread_safe_flag_spec=
8693   whole_archive_flag_spec=
8694   # include_expsyms should be a list of space-separated symbols to be *always*
8695   # included in the symbol list
8696   include_expsyms=
8697   # exclude_expsyms can be an extended regexp of symbols to exclude
8698   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8699   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8700   # as well as any symbol that contains `d'.
8701   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8702   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8703   # platforms (ab)use it in PIC code, but their linkers get confused if
8704   # the symbol is explicitly referenced.  Since portable code cannot
8705   # rely on this symbol name, it's probably fine to never include it in
8706   # preloaded symbol tables.
8707   # Exclude shared library initialization/finalization symbols.
8708   extract_expsyms_cmds=
8710   case $host_os in
8711   cygwin* | mingw* | pw32* | cegcc*)
8712     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8713     # When not using gcc, we currently assume that we are using
8714     # Microsoft Visual C++.
8715     if test "$GCC" != yes; then
8716       with_gnu_ld=no
8717     fi
8718     ;;
8719   interix*)
8720     # we just hope/assume this is gcc and not c89 (= MSVC++)
8721     with_gnu_ld=yes
8722     ;;
8723   openbsd*)
8724     with_gnu_ld=no
8725     ;;
8726   linux* | k*bsd*-gnu)
8727     link_all_deplibs=no
8728     ;;
8729   esac
8731   ld_shlibs=yes
8732   if test "$with_gnu_ld" = yes; then
8733     # If archive_cmds runs LD, not CC, wlarc should be empty
8734     wlarc='${wl}'
8736     # Set some defaults for GNU ld with shared library support. These
8737     # are reset later if shared libraries are not supported. Putting them
8738     # here allows them to be overridden if necessary.
8739     runpath_var=LD_RUN_PATH
8740     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8741     export_dynamic_flag_spec='${wl}--export-dynamic'
8742     # ancient GNU ld didn't support --whole-archive et. al.
8743     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8744       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8745     else
8746       whole_archive_flag_spec=
8747     fi
8748     supports_anon_versioning=no
8749     case `$LD -v 2>&1` in
8750       *GNU\ gold*) supports_anon_versioning=yes ;;
8751       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8752       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8753       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8754       *\ 2.11.*) ;; # other 2.11 versions
8755       *) supports_anon_versioning=yes ;;
8756     esac
8758     # See if GNU ld supports shared libraries.
8759     case $host_os in
8760     aix[3-9]*)
8761       # On AIX/PPC, the GNU linker is very broken
8762       if test "$host_cpu" != ia64; then
8763         ld_shlibs=no
8764         cat <<_LT_EOF 1>&2
8766 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8767 *** to be unable to reliably create shared libraries on AIX.
8768 *** Therefore, libtool is disabling shared libraries support.  If you
8769 *** really care for shared libraries, you may want to modify your PATH
8770 *** so that a non-GNU linker is found, and then restart.
8772 _LT_EOF
8773       fi
8774       ;;
8776     amigaos*)
8777       case $host_cpu in
8778       powerpc)
8779             # see comment about AmigaOS4 .so support
8780             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8781             archive_expsym_cmds=''
8782         ;;
8783       m68k)
8784             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)'
8785             hardcode_libdir_flag_spec='-L$libdir'
8786             hardcode_minus_L=yes
8787         ;;
8788       esac
8789       ;;
8791     beos*)
8792       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8793         allow_undefined_flag=unsupported
8794         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8795         # support --undefined.  This deserves some investigation.  FIXME
8796         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8797       else
8798         ld_shlibs=no
8799       fi
8800       ;;
8802     cygwin* | mingw* | pw32* | cegcc*)
8803       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8804       # as there is no search path for DLLs.
8805       hardcode_libdir_flag_spec='-L$libdir'
8806       allow_undefined_flag=unsupported
8807       always_export_symbols=no
8808       enable_shared_with_static_runtimes=yes
8809       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8811       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8812         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8813         # If the export-symbols file already is a .def file (1st line
8814         # is EXPORTS), use it as is; otherwise, prepend...
8815         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8816           cp $export_symbols $output_objdir/$soname.def;
8817         else
8818           echo EXPORTS > $output_objdir/$soname.def;
8819           cat $export_symbols >> $output_objdir/$soname.def;
8820         fi~
8821         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8822       else
8823         ld_shlibs=no
8824       fi
8825       ;;
8827     interix[3-9]*)
8828       hardcode_direct=no
8829       hardcode_shlibpath_var=no
8830       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8831       export_dynamic_flag_spec='${wl}-E'
8832       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8833       # Instead, shared libraries are loaded at an image base (0x10000000 by
8834       # default) and relocated if they conflict, which is a slow very memory
8835       # consuming and fragmenting process.  To avoid this, we pick a random,
8836       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8837       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8838       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8839       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'
8840       ;;
8842     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8843       tmp_diet=no
8844       if test "$host_os" = linux-dietlibc; then
8845         case $cc_basename in
8846           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8847         esac
8848       fi
8849       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8850          && test "$tmp_diet" = no
8851       then
8852         tmp_addflag=
8853         tmp_sharedflag='-shared'
8854         case $cc_basename,$host_cpu in
8855         pgcc*)                          # Portland Group C compiler
8856           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'
8857           tmp_addflag=' $pic_flag'
8858           ;;
8859         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8860           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'
8861           tmp_addflag=' $pic_flag -Mnomain' ;;
8862         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8863           tmp_addflag=' -i_dynamic' ;;
8864         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8865           tmp_addflag=' -i_dynamic -nofor_main' ;;
8866         ifc* | ifort*)                  # Intel Fortran compiler
8867           tmp_addflag=' -nofor_main' ;;
8868         lf95*)                          # Lahey Fortran 8.1
8869           whole_archive_flag_spec=
8870           tmp_sharedflag='--shared' ;;
8871         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8872           tmp_sharedflag='-qmkshrobj'
8873           tmp_addflag= ;;
8874         esac
8875         case `$CC -V 2>&1 | sed 5q` in
8876         *Sun\ C*)                       # Sun C 5.9
8877           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'
8878           compiler_needs_object=yes
8879           tmp_sharedflag='-G' ;;
8880         *Sun\ F*)                       # Sun Fortran 8.3
8881           tmp_sharedflag='-G' ;;
8882         esac
8883         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8885         if test "x$supports_anon_versioning" = xyes; then
8886           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8887             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8888             echo "local: *; };" >> $output_objdir/$libname.ver~
8889             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8890         fi
8892         case $cc_basename in
8893         xlf*)
8894           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8895           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8896           hardcode_libdir_flag_spec=
8897           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8898           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8899           if test "x$supports_anon_versioning" = xyes; then
8900             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8901               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8902               echo "local: *; };" >> $output_objdir/$libname.ver~
8903               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8904           fi
8905           ;;
8906         esac
8907       else
8908         ld_shlibs=no
8909       fi
8910       ;;
8912     netbsd* | netbsdelf*-gnu)
8913       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8914         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8915         wlarc=
8916       else
8917         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8918         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8919       fi
8920       ;;
8922     solaris*)
8923       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8924         ld_shlibs=no
8925         cat <<_LT_EOF 1>&2
8927 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8928 *** create shared libraries on Solaris systems.  Therefore, libtool
8929 *** is disabling shared libraries support.  We urge you to upgrade GNU
8930 *** binutils to release 2.9.1 or newer.  Another option is to modify
8931 *** your PATH or compiler configuration so that the native linker is
8932 *** used, and then restart.
8934 _LT_EOF
8935       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8936         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8937         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8938       else
8939         ld_shlibs=no
8940       fi
8941       ;;
8943     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8944       case `$LD -v 2>&1` in
8945         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8946         ld_shlibs=no
8947         cat <<_LT_EOF 1>&2
8949 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8950 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8951 *** is disabling shared libraries support.  We urge you to upgrade GNU
8952 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8953 *** your PATH or compiler configuration so that the native linker is
8954 *** used, and then restart.
8956 _LT_EOF
8957         ;;
8958         *)
8959           # For security reasons, it is highly recommended that you always
8960           # use absolute paths for naming shared libraries, and exclude the
8961           # DT_RUNPATH tag from executables and libraries.  But doing so
8962           # requires that you compile everything twice, which is a pain.
8963           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8964             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8965             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8966             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8967           else
8968             ld_shlibs=no
8969           fi
8970         ;;
8971       esac
8972       ;;
8974     sunos4*)
8975       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8976       wlarc=
8977       hardcode_direct=yes
8978       hardcode_shlibpath_var=no
8979       ;;
8981     *)
8982       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8983         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8984         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8985       else
8986         ld_shlibs=no
8987       fi
8988       ;;
8989     esac
8991     if test "$ld_shlibs" = no; then
8992       runpath_var=
8993       hardcode_libdir_flag_spec=
8994       export_dynamic_flag_spec=
8995       whole_archive_flag_spec=
8996     fi
8997   else
8998     # PORTME fill in a description of your system's linker (not GNU ld)
8999     case $host_os in
9000     aix3*)
9001       allow_undefined_flag=unsupported
9002       always_export_symbols=yes
9003       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'
9004       # Note: this linker hardcodes the directories in LIBPATH if there
9005       # are no directories specified by -L.
9006       hardcode_minus_L=yes
9007       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9008         # Neither direct hardcoding nor static linking is supported with a
9009         # broken collect2.
9010         hardcode_direct=unsupported
9011       fi
9012       ;;
9014     aix[4-9]*)
9015       if test "$host_cpu" = ia64; then
9016         # On IA64, the linker does run time linking by default, so we don't
9017         # have to do anything special.
9018         aix_use_runtimelinking=no
9019         exp_sym_flag='-Bexport'
9020         no_entry_flag=""
9021       else
9022         # If we're using GNU nm, then we don't want the "-C" option.
9023         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9024         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9025           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'
9026         else
9027           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'
9028         fi
9029         aix_use_runtimelinking=no
9031         # Test if we are trying to use run time linking or normal
9032         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9033         # need to do runtime linking.
9034         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9035           for ld_flag in $LDFLAGS; do
9036           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9037             aix_use_runtimelinking=yes
9038             break
9039           fi
9040           done
9041           ;;
9042         esac
9044         exp_sym_flag='-bexport'
9045         no_entry_flag='-bnoentry'
9046       fi
9048       # When large executables or shared objects are built, AIX ld can
9049       # have problems creating the table of contents.  If linking a library
9050       # or program results in "error TOC overflow" add -mminimal-toc to
9051       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9052       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9054       archive_cmds=''
9055       hardcode_direct=yes
9056       hardcode_direct_absolute=yes
9057       hardcode_libdir_separator=':'
9058       link_all_deplibs=yes
9059       file_list_spec='${wl}-f,'
9061       if test "$GCC" = yes; then
9062         case $host_os in aix4.[012]|aix4.[012].*)
9063         # We only want to do this on AIX 4.2 and lower, the check
9064         # below for broken collect2 doesn't work under 4.3+
9065           collect2name=`${CC} -print-prog-name=collect2`
9066           if test -f "$collect2name" &&
9067            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9068           then
9069           # We have reworked collect2
9070           :
9071           else
9072           # We have old collect2
9073           hardcode_direct=unsupported
9074           # It fails to find uninstalled libraries when the uninstalled
9075           # path is not listed in the libpath.  Setting hardcode_minus_L
9076           # to unsupported forces relinking
9077           hardcode_minus_L=yes
9078           hardcode_libdir_flag_spec='-L$libdir'
9079           hardcode_libdir_separator=
9080           fi
9081           ;;
9082         esac
9083         shared_flag='-shared'
9084         if test "$aix_use_runtimelinking" = yes; then
9085           shared_flag="$shared_flag "'${wl}-G'
9086         fi
9087         link_all_deplibs=no
9088       else
9089         # not using gcc
9090         if test "$host_cpu" = ia64; then
9091         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9092         # chokes on -Wl,-G. The following line is correct:
9093           shared_flag='-G'
9094         else
9095           if test "$aix_use_runtimelinking" = yes; then
9096             shared_flag='${wl}-G'
9097           else
9098             shared_flag='${wl}-bM:SRE'
9099           fi
9100         fi
9101       fi
9103       export_dynamic_flag_spec='${wl}-bexpall'
9104       # It seems that -bexpall does not export symbols beginning with
9105       # underscore (_), so it is better to generate a list of symbols to export.
9106       always_export_symbols=yes
9107       if test "$aix_use_runtimelinking" = yes; then
9108         # Warning - without using the other runtime loading flags (-brtl),
9109         # -berok will link without error, but may produce a broken library.
9110         allow_undefined_flag='-berok'
9111         # Determine the default libpath from the value encoded in an
9112         # empty executable.
9113         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9114 /* end confdefs.h.  */
9117 main ()
9120   ;
9121   return 0;
9123 _ACEOF
9124 if ac_fn_c_try_link "$LINENO"; then :
9125   
9126 lt_aix_libpath_sed='
9127     /Import File Strings/,/^$/ {
9128         /^0/ {
9129             s/^0  *\(.*\)$/\1/
9130             p
9131         }
9132     }'
9133 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9134 # Check for a 64-bit object if we didn't find anything.
9135 if test -z "$aix_libpath"; then
9136   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9139 rm -f core conftest.err conftest.$ac_objext \
9140     conftest$ac_exeext conftest.$ac_ext
9141 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9143         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9144         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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9145       else
9146         if test "$host_cpu" = ia64; then
9147           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9148           allow_undefined_flag="-z nodefs"
9149           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"
9150         else
9151          # Determine the default libpath from the value encoded in an
9152          # empty executable.
9153          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9154 /* end confdefs.h.  */
9157 main ()
9160   ;
9161   return 0;
9163 _ACEOF
9164 if ac_fn_c_try_link "$LINENO"; then :
9165   
9166 lt_aix_libpath_sed='
9167     /Import File Strings/,/^$/ {
9168         /^0/ {
9169             s/^0  *\(.*\)$/\1/
9170             p
9171         }
9172     }'
9173 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9174 # Check for a 64-bit object if we didn't find anything.
9175 if test -z "$aix_libpath"; then
9176   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9179 rm -f core conftest.err conftest.$ac_objext \
9180     conftest$ac_exeext conftest.$ac_ext
9181 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9183          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9184           # Warning - without using the other run time loading flags,
9185           # -berok will link without error, but may produce a broken library.
9186           no_undefined_flag=' ${wl}-bernotok'
9187           allow_undefined_flag=' ${wl}-berok'
9188           # Exported symbols can be pulled into shared objects from archives
9189           whole_archive_flag_spec='$convenience'
9190           archive_cmds_need_lc=yes
9191           # This is similar to how AIX traditionally builds its shared libraries.
9192           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'
9193         fi
9194       fi
9195       ;;
9197     amigaos*)
9198       case $host_cpu in
9199       powerpc)
9200             # see comment about AmigaOS4 .so support
9201             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9202             archive_expsym_cmds=''
9203         ;;
9204       m68k)
9205             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)'
9206             hardcode_libdir_flag_spec='-L$libdir'
9207             hardcode_minus_L=yes
9208         ;;
9209       esac
9210       ;;
9212     bsdi[45]*)
9213       export_dynamic_flag_spec=-rdynamic
9214       ;;
9216     cygwin* | mingw* | pw32* | cegcc*)
9217       # When not using gcc, we currently assume that we are using
9218       # Microsoft Visual C++.
9219       # hardcode_libdir_flag_spec is actually meaningless, as there is
9220       # no search path for DLLs.
9221       hardcode_libdir_flag_spec=' '
9222       allow_undefined_flag=unsupported
9223       # Tell ltmain to make .lib files, not .a files.
9224       libext=lib
9225       # Tell ltmain to make .dll files, not .so files.
9226       shrext_cmds=".dll"
9227       # FIXME: Setting linknames here is a bad hack.
9228       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9229       # The linker will automatically build a .lib file if we build a DLL.
9230       old_archive_from_new_cmds='true'
9231       # FIXME: Should let the user specify the lib program.
9232       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9233       fix_srcfile_path='`cygpath -w "$srcfile"`'
9234       enable_shared_with_static_runtimes=yes
9235       ;;
9237     darwin* | rhapsody*)
9238       
9239   
9240   archive_cmds_need_lc=no
9241   hardcode_direct=no
9242   hardcode_automatic=yes
9243   hardcode_shlibpath_var=unsupported
9244   whole_archive_flag_spec=''
9245   link_all_deplibs=yes
9246   allow_undefined_flag="$_lt_dar_allow_undefined"
9247   case $cc_basename in
9248      ifort*) _lt_dar_can_shared=yes ;;
9249      *) _lt_dar_can_shared=$GCC ;;
9250   esac
9251   if test "$_lt_dar_can_shared" = "yes"; then
9252     output_verbose_link_cmd=echo
9253     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9254     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9255     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}"
9256     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}"
9257     
9258   else
9259   ld_shlibs=no
9260   fi
9262       ;;
9264     dgux*)
9265       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9266       hardcode_libdir_flag_spec='-L$libdir'
9267       hardcode_shlibpath_var=no
9268       ;;
9270     freebsd1*)
9271       ld_shlibs=no
9272       ;;
9274     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9275     # support.  Future versions do this automatically, but an explicit c++rt0.o
9276     # does not break anything, and helps significantly (at the cost of a little
9277     # extra space).
9278     freebsd2.2*)
9279       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9280       hardcode_libdir_flag_spec='-R$libdir'
9281       hardcode_direct=yes
9282       hardcode_shlibpath_var=no
9283       ;;
9285     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9286     freebsd2*)
9287       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9288       hardcode_direct=yes
9289       hardcode_minus_L=yes
9290       hardcode_shlibpath_var=no
9291       ;;
9293     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9294     freebsd* | dragonfly*)
9295       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9296       hardcode_libdir_flag_spec='-R$libdir'
9297       hardcode_direct=yes
9298       hardcode_shlibpath_var=no
9299       ;;
9301     hpux9*)
9302       if test "$GCC" = yes; then
9303         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'
9304       else
9305         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'
9306       fi
9307       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9308       hardcode_libdir_separator=:
9309       hardcode_direct=yes
9311       # hardcode_minus_L: Not really in the search PATH,
9312       # but as the default location of the library.
9313       hardcode_minus_L=yes
9314       export_dynamic_flag_spec='${wl}-E'
9315       ;;
9317     hpux10*)
9318       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9319         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9320       else
9321         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9322       fi
9323       if test "$with_gnu_ld" = no; then
9324         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9325         hardcode_libdir_flag_spec_ld='+b $libdir'
9326         hardcode_libdir_separator=:
9327         hardcode_direct=yes
9328         hardcode_direct_absolute=yes
9329         export_dynamic_flag_spec='${wl}-E'
9330         # hardcode_minus_L: Not really in the search PATH,
9331         # but as the default location of the library.
9332         hardcode_minus_L=yes
9333       fi
9334       ;;
9336     hpux11*)
9337       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9338         case $host_cpu in
9339         hppa*64*)
9340           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9341           ;;
9342         ia64*)
9343           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9344           ;;
9345         *)
9346           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9347           ;;
9348         esac
9349       else
9350         case $host_cpu in
9351         hppa*64*)
9352           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9353           ;;
9354         ia64*)
9355           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9356           ;;
9357         *)
9358           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9359           ;;
9360         esac
9361       fi
9362       if test "$with_gnu_ld" = no; then
9363         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9364         hardcode_libdir_separator=:
9366         case $host_cpu in
9367         hppa*64*|ia64*)
9368           hardcode_direct=no
9369           hardcode_shlibpath_var=no
9370           ;;
9371         *)
9372           hardcode_direct=yes
9373           hardcode_direct_absolute=yes
9374           export_dynamic_flag_spec='${wl}-E'
9376           # hardcode_minus_L: Not really in the search PATH,
9377           # but as the default location of the library.
9378           hardcode_minus_L=yes
9379           ;;
9380         esac
9381       fi
9382       ;;
9384     irix5* | irix6* | nonstopux*)
9385       if test "$GCC" = yes; then
9386         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9387         # Try to use the -exported_symbol ld option, if it does not
9388         # work, assume that -exports_file does not work either and
9389         # implicitly export all symbols.
9390         save_LDFLAGS="$LDFLAGS"
9391         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9392         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9393 /* end confdefs.h.  */
9394 int foo(void) {}
9395 _ACEOF
9396 if ac_fn_c_try_link "$LINENO"; then :
9397   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9398         
9400 rm -f core conftest.err conftest.$ac_objext \
9401     conftest$ac_exeext conftest.$ac_ext
9402         LDFLAGS="$save_LDFLAGS"
9403       else
9404         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9405         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9406       fi
9407       archive_cmds_need_lc='no'
9408       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9409       hardcode_libdir_separator=:
9410       inherit_rpath=yes
9411       link_all_deplibs=yes
9412       ;;
9414     netbsd* | netbsdelf*-gnu)
9415       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9416         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9417       else
9418         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9419       fi
9420       hardcode_libdir_flag_spec='-R$libdir'
9421       hardcode_direct=yes
9422       hardcode_shlibpath_var=no
9423       ;;
9425     newsos6)
9426       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9427       hardcode_direct=yes
9428       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9429       hardcode_libdir_separator=:
9430       hardcode_shlibpath_var=no
9431       ;;
9433     *nto* | *qnx*)
9434       ;;
9436     openbsd*)
9437       if test -f /usr/libexec/ld.so; then
9438         hardcode_direct=yes
9439         hardcode_shlibpath_var=no
9440         hardcode_direct_absolute=yes
9441         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9442           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9443           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9444           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9445           export_dynamic_flag_spec='${wl}-E'
9446         else
9447           case $host_os in
9448            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9449              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9450              hardcode_libdir_flag_spec='-R$libdir'
9451              ;;
9452            *)
9453              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9454              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9455              ;;
9456           esac
9457         fi
9458       else
9459         ld_shlibs=no
9460       fi
9461       ;;
9463     os2*)
9464       hardcode_libdir_flag_spec='-L$libdir'
9465       hardcode_minus_L=yes
9466       allow_undefined_flag=unsupported
9467       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'
9468       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9469       ;;
9471     osf3*)
9472       if test "$GCC" = yes; then
9473         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9474         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9475       else
9476         allow_undefined_flag=' -expect_unresolved \*'
9477         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9478       fi
9479       archive_cmds_need_lc='no'
9480       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9481       hardcode_libdir_separator=:
9482       ;;
9484     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9485       if test "$GCC" = yes; then
9486         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9487         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9488         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9489       else
9490         allow_undefined_flag=' -expect_unresolved \*'
9491         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9492         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9493         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9495         # Both c and cxx compiler support -rpath directly
9496         hardcode_libdir_flag_spec='-rpath $libdir'
9497       fi
9498       archive_cmds_need_lc='no'
9499       hardcode_libdir_separator=:
9500       ;;
9502     solaris*)
9503       no_undefined_flag=' -z defs'
9504       if test "$GCC" = yes; then
9505         wlarc='${wl}'
9506         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9507         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9508           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9509       else
9510         case `$CC -V 2>&1` in
9511         *"Compilers 5.0"*)
9512           wlarc=''
9513           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9514           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9515           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9516           ;;
9517         *)
9518           wlarc='${wl}'
9519           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9520           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9521           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9522           ;;
9523         esac
9524       fi
9525       hardcode_libdir_flag_spec='-R$libdir'
9526       hardcode_shlibpath_var=no
9527       case $host_os in
9528       solaris2.[0-5] | solaris2.[0-5].*) ;;
9529       *)
9530         # The compiler driver will combine and reorder linker options,
9531         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9532         # but is careful enough not to reorder.
9533         # Supported since Solaris 2.6 (maybe 2.5.1?)
9534         if test "$GCC" = yes; then
9535           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9536         else
9537           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9538         fi
9539         ;;
9540       esac
9541       link_all_deplibs=yes
9542       ;;
9544     sunos4*)
9545       if test "x$host_vendor" = xsequent; then
9546         # Use $CC to link under sequent, because it throws in some extra .o
9547         # files that make .init and .fini sections work.
9548         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9549       else
9550         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9551       fi
9552       hardcode_libdir_flag_spec='-L$libdir'
9553       hardcode_direct=yes
9554       hardcode_minus_L=yes
9555       hardcode_shlibpath_var=no
9556       ;;
9558     sysv4)
9559       case $host_vendor in
9560         sni)
9561           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9562           hardcode_direct=yes # is this really true???
9563         ;;
9564         siemens)
9565           ## LD is ld it makes a PLAMLIB
9566           ## CC just makes a GrossModule.
9567           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9568           reload_cmds='$CC -r -o $output$reload_objs'
9569           hardcode_direct=no
9570         ;;
9571         motorola)
9572           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9573           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9574         ;;
9575       esac
9576       runpath_var='LD_RUN_PATH'
9577       hardcode_shlibpath_var=no
9578       ;;
9580     sysv4.3*)
9581       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9582       hardcode_shlibpath_var=no
9583       export_dynamic_flag_spec='-Bexport'
9584       ;;
9586     sysv4*MP*)
9587       if test -d /usr/nec; then
9588         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9589         hardcode_shlibpath_var=no
9590         runpath_var=LD_RUN_PATH
9591         hardcode_runpath_var=yes
9592         ld_shlibs=yes
9593       fi
9594       ;;
9596     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9597       no_undefined_flag='${wl}-z,text'
9598       archive_cmds_need_lc=no
9599       hardcode_shlibpath_var=no
9600       runpath_var='LD_RUN_PATH'
9602       if test "$GCC" = yes; then
9603         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9604         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9605       else
9606         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9607         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9608       fi
9609       ;;
9611     sysv5* | sco3.2v5* | sco5v6*)
9612       # Note: We can NOT use -z defs as we might desire, because we do not
9613       # link with -lc, and that would cause any symbols used from libc to
9614       # always be unresolved, which means just about no library would
9615       # ever link correctly.  If we're not using GNU ld we use -z text
9616       # though, which does catch some bad symbols but isn't as heavy-handed
9617       # as -z defs.
9618       no_undefined_flag='${wl}-z,text'
9619       allow_undefined_flag='${wl}-z,nodefs'
9620       archive_cmds_need_lc=no
9621       hardcode_shlibpath_var=no
9622       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9623       hardcode_libdir_separator=':'
9624       link_all_deplibs=yes
9625       export_dynamic_flag_spec='${wl}-Bexport'
9626       runpath_var='LD_RUN_PATH'
9628       if test "$GCC" = yes; then
9629         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9630         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9631       else
9632         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9633         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9634       fi
9635       ;;
9637     uts4*)
9638       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9639       hardcode_libdir_flag_spec='-L$libdir'
9640       hardcode_shlibpath_var=no
9641       ;;
9643     *)
9644       ld_shlibs=no
9645       ;;
9646     esac
9648     if test x$host_vendor = xsni; then
9649       case $host in
9650       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9651         export_dynamic_flag_spec='${wl}-Blargedynsym'
9652         ;;
9653       esac
9654     fi
9655   fi
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9658 $as_echo "$ld_shlibs" >&6; }
9659 test "$ld_shlibs" = no && can_build_shared=no
9661 with_gnu_ld=$with_gnu_ld
9664     
9665     
9666     
9668     
9669     
9670     
9672     
9673     
9674     
9678 # Do we need to explicitly link libc?
9680 case "x$archive_cmds_need_lc" in
9681 x|xyes)
9682   # Assume -lc should be added
9683   archive_cmds_need_lc=yes
9685   if test "$enable_shared" = yes && test "$GCC" = yes; then
9686     case $archive_cmds in
9687     *'~'*)
9688       # FIXME: we may have to deal with multi-command sequences.
9689       ;;
9690     '$CC '*)
9691       # Test whether the compiler implicitly links with -lc since on some
9692       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9693       # to ld, don't add -lc before -lgcc.
9694       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9695 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9696       $RM conftest*
9697       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9699       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9700   (eval $ac_compile) 2>&5
9701   ac_status=$?
9702   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9703   test $ac_status = 0; } 2>conftest.err; then
9704         soname=conftest
9705         lib=conftest
9706         libobjs=conftest.$ac_objext
9707         deplibs=
9708         wl=$lt_prog_compiler_wl
9709         pic_flag=$lt_prog_compiler_pic
9710         compiler_flags=-v
9711         linker_flags=-v
9712         verstring=
9713         output_objdir=.
9714         libname=conftest
9715         lt_save_allow_undefined_flag=$allow_undefined_flag
9716         allow_undefined_flag=
9717         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9718   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9719   ac_status=$?
9720   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9721   test $ac_status = 0; }
9722         then
9723           archive_cmds_need_lc=no
9724         else
9725           archive_cmds_need_lc=yes
9726         fi
9727         allow_undefined_flag=$lt_save_allow_undefined_flag
9728       else
9729         cat conftest.err 1>&5
9730       fi
9731       $RM conftest*
9732       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9733 $as_echo "$archive_cmds_need_lc" >&6; }
9734       ;;
9735     esac
9736   fi
9737   ;;
9738 esac
9741     
9742     
9743     
9746     
9747     
9748     
9751     
9752     
9753     
9756     
9757     
9758     
9761     
9762     
9763     
9766     
9767     
9768     
9771     
9772     
9773     
9776     
9777     
9778     
9781     
9782     
9783     
9786     
9787     
9788     
9791     
9792     
9793     
9796     
9797     
9798     
9801     
9802     
9803     
9806     
9807     
9808     
9811     
9812     
9813     
9816     
9817     
9818     
9821     
9822     
9823     
9826     
9827     
9828     
9831     
9832     
9833     
9836     
9837     
9838     
9841     
9842     
9843     
9846     
9847     
9848     
9851     
9852     
9853     
9856     
9857     
9858     
9861     
9862     
9863     
9866     
9867     
9868     
9871     
9872     
9873     
9876     
9877     
9878     
9881     
9882     
9883     
9886     
9887     
9888     
9891     
9892     
9893     
9896   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9897 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9899 if test "$GCC" = yes; then
9900   case $host_os in
9901     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9902     *) lt_awk_arg="/^libraries:/" ;;
9903   esac
9904   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9905   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9906     # if the path contains ";" then we assume it to be the separator
9907     # otherwise default to the standard path separator (i.e. ":") - it is
9908     # assumed that no part of a normal pathname contains ";" but that should
9909     # okay in the real world where ";" in dirpaths is itself problematic.
9910     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9911   else
9912     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9913   fi
9914   # Ok, now we have the path, separated by spaces, we can step through it
9915   # and add multilib dir if necessary.
9916   lt_tmp_lt_search_path_spec=
9917   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9918   for lt_sys_path in $lt_search_path_spec; do
9919     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9920       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9921     else
9922       test -d "$lt_sys_path" && \
9923         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9924     fi
9925   done
9926   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9927 BEGIN {RS=" "; FS="/|\n";} {
9928   lt_foo="";
9929   lt_count=0;
9930   for (lt_i = NF; lt_i > 0; lt_i--) {
9931     if ($lt_i != "" && $lt_i != ".") {
9932       if ($lt_i == "..") {
9933         lt_count++;
9934       } else {
9935         if (lt_count == 0) {
9936           lt_foo="/" $lt_i lt_foo;
9937         } else {
9938           lt_count--;
9939         }
9940       }
9941     }
9942   }
9943   if (lt_foo != "") { lt_freq[lt_foo]++; }
9944   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9946   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9947 else
9948   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9950 library_names_spec=
9951 libname_spec='lib$name'
9952 soname_spec=
9953 shrext_cmds=".so"
9954 postinstall_cmds=
9955 postuninstall_cmds=
9956 finish_cmds=
9957 finish_eval=
9958 shlibpath_var=
9959 shlibpath_overrides_runpath=unknown
9960 version_type=none
9961 dynamic_linker="$host_os ld.so"
9962 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9963 need_lib_prefix=unknown
9964 hardcode_into_libs=no
9966 # when you set need_version to no, make sure it does not cause -set_version
9967 # flags to be left without arguments
9968 need_version=unknown
9970 case $host_os in
9971 aix3*)
9972   version_type=linux
9973   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9974   shlibpath_var=LIBPATH
9976   # AIX 3 has no versioning support, so we append a major version to the name.
9977   soname_spec='${libname}${release}${shared_ext}$major'
9978   ;;
9980 aix[4-9]*)
9981   version_type=linux
9982   need_lib_prefix=no
9983   need_version=no
9984   hardcode_into_libs=yes
9985   if test "$host_cpu" = ia64; then
9986     # AIX 5 supports IA64
9987     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9988     shlibpath_var=LD_LIBRARY_PATH
9989   else
9990     # With GCC up to 2.95.x, collect2 would create an import file
9991     # for dependence libraries.  The import file would start with
9992     # the line `#! .'.  This would cause the generated library to
9993     # depend on `.', always an invalid library.  This was fixed in
9994     # development snapshots of GCC prior to 3.0.
9995     case $host_os in
9996       aix4 | aix4.[01] | aix4.[01].*)
9997       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9998            echo ' yes '
9999            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10000         :
10001       else
10002         can_build_shared=no
10003       fi
10004       ;;
10005     esac
10006     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10007     # soname into executable. Probably we can add versioning support to
10008     # collect2, so additional links can be useful in future.
10009     if test "$aix_use_runtimelinking" = yes; then
10010       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10011       # instead of lib<name>.a to let people know that these are not
10012       # typical AIX shared libraries.
10013       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10014     else
10015       # We preserve .a as extension for shared libraries through AIX4.2
10016       # and later when we are not doing run time linking.
10017       library_names_spec='${libname}${release}.a $libname.a'
10018       soname_spec='${libname}${release}${shared_ext}$major'
10019     fi
10020     shlibpath_var=LIBPATH
10021   fi
10022   ;;
10024 amigaos*)
10025   case $host_cpu in
10026   powerpc)
10027     # Since July 2007 AmigaOS4 officially supports .so libraries.
10028     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10029     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10030     ;;
10031   m68k)
10032     library_names_spec='$libname.ixlibrary $libname.a'
10033     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10034     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'
10035     ;;
10036   esac
10037   ;;
10039 beos*)
10040   library_names_spec='${libname}${shared_ext}'
10041   dynamic_linker="$host_os ld.so"
10042   shlibpath_var=LIBRARY_PATH
10043   ;;
10045 bsdi[45]*)
10046   version_type=linux
10047   need_version=no
10048   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10049   soname_spec='${libname}${release}${shared_ext}$major'
10050   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10051   shlibpath_var=LD_LIBRARY_PATH
10052   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10053   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10054   # the default ld.so.conf also contains /usr/contrib/lib and
10055   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10056   # libtool to hard-code these into programs
10057   ;;
10059 cygwin* | mingw* | pw32* | cegcc*)
10060   version_type=windows
10061   shrext_cmds=".dll"
10062   need_version=no
10063   need_lib_prefix=no
10065   case $GCC,$host_os in
10066   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10067     library_names_spec='$libname.dll.a'
10068     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10069     postinstall_cmds='base_file=`basename \${file}`~
10070       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10071       dldir=$destdir/`dirname \$dlpath`~
10072       test -d \$dldir || mkdir -p \$dldir~
10073       $install_prog $dir/$dlname \$dldir/$dlname~
10074       chmod a+x \$dldir/$dlname~
10075       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10076         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10077       fi'
10078     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10079       dlpath=$dir/\$dldll~
10080        $RM \$dlpath'
10081     shlibpath_overrides_runpath=yes
10083     case $host_os in
10084     cygwin*)
10085       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10086       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10087       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10088       ;;
10089     mingw* | cegcc*)
10090       # MinGW DLLs use traditional 'lib' prefix
10091       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10092       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10093       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10094         # It is most probably a Windows format PATH printed by
10095         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10096         # path with ; separators, and with drive letters. We can handle the
10097         # drive letters (cygwin fileutils understands them), so leave them,
10098         # especially as we might pass files found there to a mingw objdump,
10099         # which wouldn't understand a cygwinified path. Ahh.
10100         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10101       else
10102         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10103       fi
10104       ;;
10105     pw32*)
10106       # pw32 DLLs use 'pw' prefix rather than 'lib'
10107       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10108       ;;
10109     esac
10110     ;;
10112   *)
10113     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10114     ;;
10115   esac
10116   dynamic_linker='Win32 ld.exe'
10117   # FIXME: first we should search . and the directory the executable is in
10118   shlibpath_var=PATH
10119   ;;
10121 darwin* | rhapsody*)
10122   dynamic_linker="$host_os dyld"
10123   version_type=darwin
10124   need_lib_prefix=no
10125   need_version=no
10126   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10127   soname_spec='${libname}${release}${major}$shared_ext'
10128   shlibpath_overrides_runpath=yes
10129   shlibpath_var=DYLD_LIBRARY_PATH
10130   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10132   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10133   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10134   ;;
10136 dgux*)
10137   version_type=linux
10138   need_lib_prefix=no
10139   need_version=no
10140   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10141   soname_spec='${libname}${release}${shared_ext}$major'
10142   shlibpath_var=LD_LIBRARY_PATH
10143   ;;
10145 freebsd1*)
10146   dynamic_linker=no
10147   ;;
10149 freebsd* | dragonfly*)
10150   # DragonFly does not have aout.  When/if they implement a new
10151   # versioning mechanism, adjust this.
10152   if test -x /usr/bin/objformat; then
10153     objformat=`/usr/bin/objformat`
10154   else
10155     case $host_os in
10156     freebsd[123]*) objformat=aout ;;
10157     *) objformat=elf ;;
10158     esac
10159   fi
10160   version_type=freebsd-$objformat
10161   case $version_type in
10162     freebsd-elf*)
10163       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10164       need_version=no
10165       need_lib_prefix=no
10166       ;;
10167     freebsd-*)
10168       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10169       need_version=yes
10170       ;;
10171   esac
10172   shlibpath_var=LD_LIBRARY_PATH
10173   case $host_os in
10174   freebsd2*)
10175     shlibpath_overrides_runpath=yes
10176     ;;
10177   freebsd3.[01]* | freebsdelf3.[01]*)
10178     shlibpath_overrides_runpath=yes
10179     hardcode_into_libs=yes
10180     ;;
10181   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10182   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10183     shlibpath_overrides_runpath=no
10184     hardcode_into_libs=yes
10185     ;;
10186   *) # from 4.6 on, and DragonFly
10187     shlibpath_overrides_runpath=yes
10188     hardcode_into_libs=yes
10189     ;;
10190   esac
10191   ;;
10193 gnu*)
10194   version_type=linux
10195   need_lib_prefix=no
10196   need_version=no
10197   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10198   soname_spec='${libname}${release}${shared_ext}$major'
10199   shlibpath_var=LD_LIBRARY_PATH
10200   hardcode_into_libs=yes
10201   ;;
10203 hpux9* | hpux10* | hpux11*)
10204   # Give a soname corresponding to the major version so that dld.sl refuses to
10205   # link against other versions.
10206   version_type=sunos
10207   need_lib_prefix=no
10208   need_version=no
10209   case $host_cpu in
10210   ia64*)
10211     shrext_cmds='.so'
10212     hardcode_into_libs=yes
10213     dynamic_linker="$host_os dld.so"
10214     shlibpath_var=LD_LIBRARY_PATH
10215     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10216     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10217     soname_spec='${libname}${release}${shared_ext}$major'
10218     if test "X$HPUX_IA64_MODE" = X32; then
10219       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10220     else
10221       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10222     fi
10223     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10224     ;;
10225   hppa*64*)
10226     shrext_cmds='.sl'
10227     hardcode_into_libs=yes
10228     dynamic_linker="$host_os dld.sl"
10229     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10230     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10231     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10232     soname_spec='${libname}${release}${shared_ext}$major'
10233     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10234     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10235     ;;
10236   *)
10237     shrext_cmds='.sl'
10238     dynamic_linker="$host_os dld.sl"
10239     shlibpath_var=SHLIB_PATH
10240     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10241     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10242     soname_spec='${libname}${release}${shared_ext}$major'
10243     ;;
10244   esac
10245   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10246   postinstall_cmds='chmod 555 $lib'
10247   ;;
10249 interix[3-9]*)
10250   version_type=linux
10251   need_lib_prefix=no
10252   need_version=no
10253   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10254   soname_spec='${libname}${release}${shared_ext}$major'
10255   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10256   shlibpath_var=LD_LIBRARY_PATH
10257   shlibpath_overrides_runpath=no
10258   hardcode_into_libs=yes
10259   ;;
10261 irix5* | irix6* | nonstopux*)
10262   case $host_os in
10263     nonstopux*) version_type=nonstopux ;;
10264     *)
10265         if test "$lt_cv_prog_gnu_ld" = yes; then
10266                 version_type=linux
10267         else
10268                 version_type=irix
10269         fi ;;
10270   esac
10271   need_lib_prefix=no
10272   need_version=no
10273   soname_spec='${libname}${release}${shared_ext}$major'
10274   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10275   case $host_os in
10276   irix5* | nonstopux*)
10277     libsuff= shlibsuff=
10278     ;;
10279   *)
10280     case $LD in # libtool.m4 will add one of these switches to LD
10281     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10282       libsuff= shlibsuff= libmagic=32-bit;;
10283     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10284       libsuff=32 shlibsuff=N32 libmagic=N32;;
10285     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10286       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10287     *) libsuff= shlibsuff= libmagic=never-match;;
10288     esac
10289     ;;
10290   esac
10291   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10292   shlibpath_overrides_runpath=no
10293   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10294   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10295   hardcode_into_libs=yes
10296   ;;
10298 # No shared lib support for Linux oldld, aout, or coff.
10299 linux*oldld* | linux*aout* | linux*coff*)
10300   dynamic_linker=no
10301   ;;
10303 # This must be Linux ELF.
10304 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10305   version_type=linux
10306   need_lib_prefix=no
10307   need_version=no
10308   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10309   soname_spec='${libname}${release}${shared_ext}$major'
10310   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10311   shlibpath_var=LD_LIBRARY_PATH
10312   shlibpath_overrides_runpath=no
10313   # Some binutils ld are patched to set DT_RUNPATH
10314   save_LDFLAGS=$LDFLAGS
10315   save_libdir=$libdir
10316   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10317        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10318   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10319 /* end confdefs.h.  */
10322 main ()
10325   ;
10326   return 0;
10328 _ACEOF
10329 if ac_fn_c_try_link "$LINENO"; then :
10330   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10331   shlibpath_overrides_runpath=yes
10334 rm -f core conftest.err conftest.$ac_objext \
10335     conftest$ac_exeext conftest.$ac_ext
10336   LDFLAGS=$save_LDFLAGS
10337   libdir=$save_libdir
10339   # This implies no fast_install, which is unacceptable.
10340   # Some rework will be needed to allow for fast_install
10341   # before this can be enabled.
10342   hardcode_into_libs=yes
10344   # Append ld.so.conf contents to the search path
10345   if test -f /etc/ld.so.conf; then
10346     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' ' '`
10347     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10348   fi
10350   # We used to test for /lib/ld.so.1 and disable shared libraries on
10351   # powerpc, because MkLinux only supported shared libraries with the
10352   # GNU dynamic linker.  Since this was broken with cross compilers,
10353   # most powerpc-linux boxes support dynamic linking these days and
10354   # people can always --disable-shared, the test was removed, and we
10355   # assume the GNU/Linux dynamic linker is in use.
10356   dynamic_linker='GNU/Linux ld.so'
10357   ;;
10359 netbsdelf*-gnu)
10360   version_type=linux
10361   need_lib_prefix=no
10362   need_version=no
10363   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10364   soname_spec='${libname}${release}${shared_ext}$major'
10365   shlibpath_var=LD_LIBRARY_PATH
10366   shlibpath_overrides_runpath=no
10367   hardcode_into_libs=yes
10368   dynamic_linker='NetBSD ld.elf_so'
10369   ;;
10371 netbsd*)
10372   version_type=sunos
10373   need_lib_prefix=no
10374   need_version=no
10375   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10376     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10377     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10378     dynamic_linker='NetBSD (a.out) ld.so'
10379   else
10380     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10381     soname_spec='${libname}${release}${shared_ext}$major'
10382     dynamic_linker='NetBSD ld.elf_so'
10383   fi
10384   shlibpath_var=LD_LIBRARY_PATH
10385   shlibpath_overrides_runpath=yes
10386   hardcode_into_libs=yes
10387   ;;
10389 newsos6)
10390   version_type=linux
10391   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10392   shlibpath_var=LD_LIBRARY_PATH
10393   shlibpath_overrides_runpath=yes
10394   ;;
10396 *nto* | *qnx*)
10397   version_type=qnx
10398   need_lib_prefix=no
10399   need_version=no
10400   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10401   soname_spec='${libname}${release}${shared_ext}$major'
10402   shlibpath_var=LD_LIBRARY_PATH
10403   shlibpath_overrides_runpath=no
10404   hardcode_into_libs=yes
10405   dynamic_linker='ldqnx.so'
10406   ;;
10408 openbsd*)
10409   version_type=sunos
10410   sys_lib_dlsearch_path_spec="/usr/lib"
10411   need_lib_prefix=no
10412   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10413   case $host_os in
10414     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10415     *)                          need_version=no  ;;
10416   esac
10417   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10418   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10419   shlibpath_var=LD_LIBRARY_PATH
10420   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10421     case $host_os in
10422       openbsd2.[89] | openbsd2.[89].*)
10423         shlibpath_overrides_runpath=no
10424         ;;
10425       *)
10426         shlibpath_overrides_runpath=yes
10427         ;;
10428       esac
10429   else
10430     shlibpath_overrides_runpath=yes
10431   fi
10432   ;;
10434 os2*)
10435   libname_spec='$name'
10436   shrext_cmds=".dll"
10437   need_lib_prefix=no
10438   library_names_spec='$libname${shared_ext} $libname.a'
10439   dynamic_linker='OS/2 ld.exe'
10440   shlibpath_var=LIBPATH
10441   ;;
10443 osf3* | osf4* | osf5*)
10444   version_type=osf
10445   need_lib_prefix=no
10446   need_version=no
10447   soname_spec='${libname}${release}${shared_ext}$major'
10448   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10449   shlibpath_var=LD_LIBRARY_PATH
10450   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10451   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10452   ;;
10454 rdos*)
10455   dynamic_linker=no
10456   ;;
10458 solaris*)
10459   version_type=linux
10460   need_lib_prefix=no
10461   need_version=no
10462   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10463   soname_spec='${libname}${release}${shared_ext}$major'
10464   shlibpath_var=LD_LIBRARY_PATH
10465   shlibpath_overrides_runpath=yes
10466   hardcode_into_libs=yes
10467   # ldd complains unless libraries are executable
10468   postinstall_cmds='chmod +x $lib'
10469   ;;
10471 sunos4*)
10472   version_type=sunos
10473   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10474   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10475   shlibpath_var=LD_LIBRARY_PATH
10476   shlibpath_overrides_runpath=yes
10477   if test "$with_gnu_ld" = yes; then
10478     need_lib_prefix=no
10479   fi
10480   need_version=yes
10481   ;;
10483 sysv4 | sysv4.3*)
10484   version_type=linux
10485   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10486   soname_spec='${libname}${release}${shared_ext}$major'
10487   shlibpath_var=LD_LIBRARY_PATH
10488   case $host_vendor in
10489     sni)
10490       shlibpath_overrides_runpath=no
10491       need_lib_prefix=no
10492       runpath_var=LD_RUN_PATH
10493       ;;
10494     siemens)
10495       need_lib_prefix=no
10496       ;;
10497     motorola)
10498       need_lib_prefix=no
10499       need_version=no
10500       shlibpath_overrides_runpath=no
10501       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10502       ;;
10503   esac
10504   ;;
10506 sysv4*MP*)
10507   if test -d /usr/nec ;then
10508     version_type=linux
10509     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10510     soname_spec='$libname${shared_ext}.$major'
10511     shlibpath_var=LD_LIBRARY_PATH
10512   fi
10513   ;;
10515 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10516   version_type=freebsd-elf
10517   need_lib_prefix=no
10518   need_version=no
10519   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10520   soname_spec='${libname}${release}${shared_ext}$major'
10521   shlibpath_var=LD_LIBRARY_PATH
10522   shlibpath_overrides_runpath=yes
10523   hardcode_into_libs=yes
10524   if test "$with_gnu_ld" = yes; then
10525     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10526   else
10527     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10528     case $host_os in
10529       sco3.2v5*)
10530         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10531         ;;
10532     esac
10533   fi
10534   sys_lib_dlsearch_path_spec='/usr/lib'
10535   ;;
10537 tpf*)
10538   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10539   version_type=linux
10540   need_lib_prefix=no
10541   need_version=no
10542   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10543   shlibpath_var=LD_LIBRARY_PATH
10544   shlibpath_overrides_runpath=no
10545   hardcode_into_libs=yes
10546   ;;
10548 uts4*)
10549   version_type=linux
10550   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10551   soname_spec='${libname}${release}${shared_ext}$major'
10552   shlibpath_var=LD_LIBRARY_PATH
10553   ;;
10556   dynamic_linker=no
10557   ;;
10558 esac
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10560 $as_echo "$dynamic_linker" >&6; }
10561 test "$dynamic_linker" = no && can_build_shared=no
10563 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10564 if test "$GCC" = yes; then
10565   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10568 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10569   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10571 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10572   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10576     
10577     
10578     
10581     
10582     
10583     
10586     
10587     
10588     
10591     
10592     
10593     
10596     
10597     
10598     
10601     
10602     
10603     
10606     
10607     
10608     
10611     
10612     
10613     
10616     
10617     
10618     
10621     
10622     
10623     
10626     
10627     
10628     
10631     
10632     
10633     
10636     
10637     
10638     
10641     
10642     
10643     
10646     
10647     
10648     
10651     
10652     
10653     
10656     
10657     
10658     
10661   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10662 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10663 hardcode_action=
10664 if test -n "$hardcode_libdir_flag_spec" ||
10665    test -n "$runpath_var" ||
10666    test "X$hardcode_automatic" = "Xyes" ; then
10668   # We can hardcode non-existent directories.
10669   if test "$hardcode_direct" != no &&
10670      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10671      # have to relink, otherwise we might link with an installed library
10672      # when we should be linking with a yet-to-be-installed one
10673      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10674      test "$hardcode_minus_L" != no; then
10675     # Linking always hardcodes the temporary library directory.
10676     hardcode_action=relink
10677   else
10678     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10679     hardcode_action=immediate
10680   fi
10681 else
10682   # We cannot hardcode anything, or else we can only hardcode existing
10683   # directories.
10684   hardcode_action=unsupported
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10687 $as_echo "$hardcode_action" >&6; }
10689 if test "$hardcode_action" = relink ||
10690    test "$inherit_rpath" = yes; then
10691   # Fast installation is not supported
10692   enable_fast_install=no
10693 elif test "$shlibpath_overrides_runpath" = yes ||
10694      test "$enable_shared" = no; then
10695   # Fast installation is not necessary
10696   enable_fast_install=needless
10699     
10700     
10701     
10704   if test "x$enable_dlopen" != xyes; then
10705   enable_dlopen=unknown
10706   enable_dlopen_self=unknown
10707   enable_dlopen_self_static=unknown
10708 else
10709   lt_cv_dlopen=no
10710   lt_cv_dlopen_libs=
10712   case $host_os in
10713   beos*)
10714     lt_cv_dlopen="load_add_on"
10715     lt_cv_dlopen_libs=
10716     lt_cv_dlopen_self=yes
10717     ;;
10719   mingw* | pw32* | cegcc*)
10720     lt_cv_dlopen="LoadLibrary"
10721     lt_cv_dlopen_libs=
10722     ;;
10724   cygwin*)
10725     lt_cv_dlopen="dlopen"
10726     lt_cv_dlopen_libs=
10727     ;;
10729   darwin*)
10730   # if libdl is installed we need to link against it
10731     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10732 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10733 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10734   $as_echo_n "(cached) " >&6
10735 else
10736   ac_check_lib_save_LIBS=$LIBS
10737 LIBS="-ldl  $LIBS"
10738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10739 /* end confdefs.h.  */
10741 /* Override any GCC internal prototype to avoid an error.
10742    Use char because int might match the return type of a GCC
10743    builtin and then its argument prototype would still apply.  */
10744 #ifdef __cplusplus
10745 extern "C"
10746 #endif
10747 char dlopen ();
10749 main ()
10751 return dlopen ();
10752   ;
10753   return 0;
10755 _ACEOF
10756 if ac_fn_c_try_link "$LINENO"; then :
10757   ac_cv_lib_dl_dlopen=yes
10758 else
10759   ac_cv_lib_dl_dlopen=no
10761 rm -f core conftest.err conftest.$ac_objext \
10762     conftest$ac_exeext conftest.$ac_ext
10763 LIBS=$ac_check_lib_save_LIBS
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10766 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10767 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10768   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10769 else
10770   
10771     lt_cv_dlopen="dyld"
10772     lt_cv_dlopen_libs=
10773     lt_cv_dlopen_self=yes
10774     
10777     ;;
10779   *)
10780     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10781 if test "x$ac_cv_func_shl_load" = x""yes; then :
10782   lt_cv_dlopen="shl_load"
10783 else
10784   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10785 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10786 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10787   $as_echo_n "(cached) " >&6
10788 else
10789   ac_check_lib_save_LIBS=$LIBS
10790 LIBS="-ldld  $LIBS"
10791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10792 /* end confdefs.h.  */
10794 /* Override any GCC internal prototype to avoid an error.
10795    Use char because int might match the return type of a GCC
10796    builtin and then its argument prototype would still apply.  */
10797 #ifdef __cplusplus
10798 extern "C"
10799 #endif
10800 char shl_load ();
10802 main ()
10804 return shl_load ();
10805   ;
10806   return 0;
10808 _ACEOF
10809 if ac_fn_c_try_link "$LINENO"; then :
10810   ac_cv_lib_dld_shl_load=yes
10811 else
10812   ac_cv_lib_dld_shl_load=no
10814 rm -f core conftest.err conftest.$ac_objext \
10815     conftest$ac_exeext conftest.$ac_ext
10816 LIBS=$ac_check_lib_save_LIBS
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10819 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10820 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10821   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10822 else
10823   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10824 if test "x$ac_cv_func_dlopen" = x""yes; then :
10825   lt_cv_dlopen="dlopen"
10826 else
10827   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10828 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10829 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10830   $as_echo_n "(cached) " >&6
10831 else
10832   ac_check_lib_save_LIBS=$LIBS
10833 LIBS="-ldl  $LIBS"
10834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10835 /* end confdefs.h.  */
10837 /* Override any GCC internal prototype to avoid an error.
10838    Use char because int might match the return type of a GCC
10839    builtin and then its argument prototype would still apply.  */
10840 #ifdef __cplusplus
10841 extern "C"
10842 #endif
10843 char dlopen ();
10845 main ()
10847 return dlopen ();
10848   ;
10849   return 0;
10851 _ACEOF
10852 if ac_fn_c_try_link "$LINENO"; then :
10853   ac_cv_lib_dl_dlopen=yes
10854 else
10855   ac_cv_lib_dl_dlopen=no
10857 rm -f core conftest.err conftest.$ac_objext \
10858     conftest$ac_exeext conftest.$ac_ext
10859 LIBS=$ac_check_lib_save_LIBS
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10862 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10863 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10864   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10865 else
10866   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10867 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10868 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10869   $as_echo_n "(cached) " >&6
10870 else
10871   ac_check_lib_save_LIBS=$LIBS
10872 LIBS="-lsvld  $LIBS"
10873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10874 /* end confdefs.h.  */
10876 /* Override any GCC internal prototype to avoid an error.
10877    Use char because int might match the return type of a GCC
10878    builtin and then its argument prototype would still apply.  */
10879 #ifdef __cplusplus
10880 extern "C"
10881 #endif
10882 char dlopen ();
10884 main ()
10886 return dlopen ();
10887   ;
10888   return 0;
10890 _ACEOF
10891 if ac_fn_c_try_link "$LINENO"; then :
10892   ac_cv_lib_svld_dlopen=yes
10893 else
10894   ac_cv_lib_svld_dlopen=no
10896 rm -f core conftest.err conftest.$ac_objext \
10897     conftest$ac_exeext conftest.$ac_ext
10898 LIBS=$ac_check_lib_save_LIBS
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10901 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10902 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10903   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10904 else
10905   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10906 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10907 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10908   $as_echo_n "(cached) " >&6
10909 else
10910   ac_check_lib_save_LIBS=$LIBS
10911 LIBS="-ldld  $LIBS"
10912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10913 /* end confdefs.h.  */
10915 /* Override any GCC internal prototype to avoid an error.
10916    Use char because int might match the return type of a GCC
10917    builtin and then its argument prototype would still apply.  */
10918 #ifdef __cplusplus
10919 extern "C"
10920 #endif
10921 char dld_link ();
10923 main ()
10925 return dld_link ();
10926   ;
10927   return 0;
10929 _ACEOF
10930 if ac_fn_c_try_link "$LINENO"; then :
10931   ac_cv_lib_dld_dld_link=yes
10932 else
10933   ac_cv_lib_dld_dld_link=no
10935 rm -f core conftest.err conftest.$ac_objext \
10936     conftest$ac_exeext conftest.$ac_ext
10937 LIBS=$ac_check_lib_save_LIBS
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10940 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10941 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10942   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10945               
10948             
10951           
10954         
10957       
10960     ;;
10961   esac
10963   if test "x$lt_cv_dlopen" != xno; then
10964     enable_dlopen=yes
10965   else
10966     enable_dlopen=no
10967   fi
10969   case $lt_cv_dlopen in
10970   dlopen)
10971     save_CPPFLAGS="$CPPFLAGS"
10972     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10974     save_LDFLAGS="$LDFLAGS"
10975     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10977     save_LIBS="$LIBS"
10978     LIBS="$lt_cv_dlopen_libs $LIBS"
10980     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10981 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10982 if test "${lt_cv_dlopen_self+set}" = set; then :
10983   $as_echo_n "(cached) " >&6
10984 else
10985           if test "$cross_compiling" = yes; then :
10986   lt_cv_dlopen_self=cross
10987 else
10988   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10989   lt_status=$lt_dlunknown
10990   cat > conftest.$ac_ext <<_LT_EOF
10991 #line __oline__ "configure"
10992 #include "confdefs.h"
10994 #if HAVE_DLFCN_H
10995 #include <dlfcn.h>
10996 #endif
10998 #include <stdio.h>
11000 #ifdef RTLD_GLOBAL
11001 #  define LT_DLGLOBAL           RTLD_GLOBAL
11002 #else
11003 #  ifdef DL_GLOBAL
11004 #    define LT_DLGLOBAL         DL_GLOBAL
11005 #  else
11006 #    define LT_DLGLOBAL         0
11007 #  endif
11008 #endif
11010 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11011    find out it does not work in some platform. */
11012 #ifndef LT_DLLAZY_OR_NOW
11013 #  ifdef RTLD_LAZY
11014 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11015 #  else
11016 #    ifdef DL_LAZY
11017 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11018 #    else
11019 #      ifdef RTLD_NOW
11020 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11021 #      else
11022 #        ifdef DL_NOW
11023 #          define LT_DLLAZY_OR_NOW      DL_NOW
11024 #        else
11025 #          define LT_DLLAZY_OR_NOW      0
11026 #        endif
11027 #      endif
11028 #    endif
11029 #  endif
11030 #endif
11032 void fnord() { int i=42;}
11033 int main ()
11035   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11036   int status = $lt_dlunknown;
11038   if (self)
11039     {
11040       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11041       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11042       /* dlclose (self); */
11043     }
11044   else
11045     puts (dlerror ());
11047   return status;
11049 _LT_EOF
11050   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11051   (eval $ac_link) 2>&5
11052   ac_status=$?
11053   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11054   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11055     (./conftest; exit; ) >&5 2>/dev/null
11056     lt_status=$?
11057     case x$lt_status in
11058       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11059       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11060       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11061     esac
11062   else :
11063     # compilation failed
11064     lt_cv_dlopen_self=no
11065   fi
11067 rm -fr conftest*
11069     
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11072 $as_echo "$lt_cv_dlopen_self" >&6; }
11074     if test "x$lt_cv_dlopen_self" = xyes; then
11075       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11076       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11077 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11078 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11079   $as_echo_n "(cached) " >&6
11080 else
11081           if test "$cross_compiling" = yes; then :
11082   lt_cv_dlopen_self_static=cross
11083 else
11084   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11085   lt_status=$lt_dlunknown
11086   cat > conftest.$ac_ext <<_LT_EOF
11087 #line __oline__ "configure"
11088 #include "confdefs.h"
11090 #if HAVE_DLFCN_H
11091 #include <dlfcn.h>
11092 #endif
11094 #include <stdio.h>
11096 #ifdef RTLD_GLOBAL
11097 #  define LT_DLGLOBAL           RTLD_GLOBAL
11098 #else
11099 #  ifdef DL_GLOBAL
11100 #    define LT_DLGLOBAL         DL_GLOBAL
11101 #  else
11102 #    define LT_DLGLOBAL         0
11103 #  endif
11104 #endif
11106 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11107    find out it does not work in some platform. */
11108 #ifndef LT_DLLAZY_OR_NOW
11109 #  ifdef RTLD_LAZY
11110 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11111 #  else
11112 #    ifdef DL_LAZY
11113 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11114 #    else
11115 #      ifdef RTLD_NOW
11116 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11117 #      else
11118 #        ifdef DL_NOW
11119 #          define LT_DLLAZY_OR_NOW      DL_NOW
11120 #        else
11121 #          define LT_DLLAZY_OR_NOW      0
11122 #        endif
11123 #      endif
11124 #    endif
11125 #  endif
11126 #endif
11128 void fnord() { int i=42;}
11129 int main ()
11131   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11132   int status = $lt_dlunknown;
11134   if (self)
11135     {
11136       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11137       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11138       /* dlclose (self); */
11139     }
11140   else
11141     puts (dlerror ());
11143   return status;
11145 _LT_EOF
11146   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11147   (eval $ac_link) 2>&5
11148   ac_status=$?
11149   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11150   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11151     (./conftest; exit; ) >&5 2>/dev/null
11152     lt_status=$?
11153     case x$lt_status in
11154       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11155       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11156       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11157     esac
11158   else :
11159     # compilation failed
11160     lt_cv_dlopen_self_static=no
11161   fi
11163 rm -fr conftest*
11165       
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11168 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11169     fi
11171     CPPFLAGS="$save_CPPFLAGS"
11172     LDFLAGS="$save_LDFLAGS"
11173     LIBS="$save_LIBS"
11174     ;;
11175   esac
11177   case $lt_cv_dlopen_self in
11178   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11179   *) enable_dlopen_self=unknown ;;
11180   esac
11182   case $lt_cv_dlopen_self_static in
11183   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11184   *) enable_dlopen_self_static=unknown ;;
11185   esac
11188     
11189     
11190     
11193     
11194     
11195     
11198     
11199     
11200     
11203   
11204 striplib=
11205 old_striplib=
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11207 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11208 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11209   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11210   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11212 $as_echo "yes" >&6; }
11213 else
11214 # FIXME - insert some real tests, host_os isn't really good enough
11215   case $host_os in
11216   darwin*)
11217     if test -n "$STRIP" ; then
11218       striplib="$STRIP -x"
11219       old_striplib="$STRIP -S"
11220       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11221 $as_echo "yes" >&6; }
11222     else
11223       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11224 $as_echo "no" >&6; }
11225     fi
11226     ;;
11227   *)
11228     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11229 $as_echo "no" >&6; }
11230     ;;
11231   esac
11234     
11235     
11236     
11239     
11240     
11241     
11245   # Report which library types will actually be built
11246   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11247 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11249 $as_echo "$can_build_shared" >&6; }
11251   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11252 $as_echo_n "checking whether to build shared libraries... " >&6; }
11253   test "$can_build_shared" = "no" && enable_shared=no
11255   # On AIX, shared libraries and static libraries use the same namespace, and
11256   # are all built from PIC.
11257   case $host_os in
11258   aix3*)
11259     test "$enable_shared" = yes && enable_static=no
11260     if test -n "$RANLIB"; then
11261       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11262       postinstall_cmds='$RANLIB $lib'
11263     fi
11264     ;;
11266   aix[4-9]*)
11267     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11268       test "$enable_shared" = yes && enable_static=no
11269     fi
11270     ;;
11271   esac
11272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11273 $as_echo "$enable_shared" >&6; }
11275   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11276 $as_echo_n "checking whether to build static libraries... " >&6; }
11277   # Make sure either enable_shared or enable_static is yes.
11278   test "$enable_shared" = yes || enable_static=yes
11279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11280 $as_echo "$enable_static" >&6; }
11282   
11286 ac_ext=c
11287 ac_cpp='$CPP $CPPFLAGS'
11288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11292 CC="$lt_save_CC"
11294       
11295 ac_ext=cpp
11296 ac_cpp='$CXXCPP $CPPFLAGS'
11297 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11298 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11299 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11301 archive_cmds_need_lc_CXX=no
11302 allow_undefined_flag_CXX=
11303 always_export_symbols_CXX=no
11304 archive_expsym_cmds_CXX=
11305 compiler_needs_object_CXX=no
11306 export_dynamic_flag_spec_CXX=
11307 hardcode_direct_CXX=no
11308 hardcode_direct_absolute_CXX=no
11309 hardcode_libdir_flag_spec_CXX=
11310 hardcode_libdir_flag_spec_ld_CXX=
11311 hardcode_libdir_separator_CXX=
11312 hardcode_minus_L_CXX=no
11313 hardcode_shlibpath_var_CXX=unsupported
11314 hardcode_automatic_CXX=no
11315 inherit_rpath_CXX=no
11316 module_cmds_CXX=
11317 module_expsym_cmds_CXX=
11318 link_all_deplibs_CXX=unknown
11319 old_archive_cmds_CXX=$old_archive_cmds
11320 no_undefined_flag_CXX=
11321 whole_archive_flag_spec_CXX=
11322 enable_shared_with_static_runtimes_CXX=no
11324 # Source file extension for C++ test sources.
11325 ac_ext=cpp
11327 # Object file extension for compiled C++ test sources.
11328 objext=o
11329 objext_CXX=$objext
11331 # No sense in running all these tests if we already determined that
11332 # the CXX compiler isn't working.  Some variables (like enable_shared)
11333 # are currently assumed to apply to all compilers on this platform,
11334 # and will be corrupted by setting them based on a non-working compiler.
11335 if test "$_lt_caught_CXX_error" != yes; then
11336   # Code to be used in simple compile tests
11337   lt_simple_compile_test_code="int some_variable = 0;"
11339   # Code to be used in simple link tests
11340   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11342   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11343   
11349 # If no C compiler was specified, use CC.
11350 LTCC=${LTCC-"$CC"}
11352 # If no C compiler flags were specified, use CFLAGS.
11353 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11355 # Allow CC to be a program name with arguments.
11356 compiler=$CC
11359   # save warnings/boilerplate of simple test code
11360   ac_outfile=conftest.$ac_objext
11361 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11362 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11363 _lt_compiler_boilerplate=`cat conftest.err`
11364 $RM conftest*
11366   ac_outfile=conftest.$ac_objext
11367 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11368 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11369 _lt_linker_boilerplate=`cat conftest.err`
11370 $RM -r conftest*
11373   # Allow CC to be a program name with arguments.
11374   lt_save_CC=$CC
11375   lt_save_LD=$LD
11376   lt_save_GCC=$GCC
11377   GCC=$GXX
11378   lt_save_with_gnu_ld=$with_gnu_ld
11379   lt_save_path_LD=$lt_cv_path_LD
11380   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11381     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11382   else
11383     $as_unset lt_cv_prog_gnu_ld
11384   fi
11385   if test -n "${lt_cv_path_LDCXX+set}"; then
11386     lt_cv_path_LD=$lt_cv_path_LDCXX
11387   else
11388     $as_unset lt_cv_path_LD
11389   fi
11390   test -z "${LDCXX+set}" || LD=$LDCXX
11391   CC=${CXX-"c++"}
11392   compiler=$CC
11393   compiler_CXX=$CC
11394   for cc_temp in $compiler""; do
11395   case $cc_temp in
11396     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11397     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11398     \-*) ;;
11399     *) break;;
11400   esac
11401 done
11402 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11405   if test -n "$compiler"; then
11406     # We don't want -fno-exception when compiling C++ code, so set the
11407     # no_builtin_flag separately
11408     if test "$GXX" = yes; then
11409       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11410     else
11411       lt_prog_compiler_no_builtin_flag_CXX=
11412     fi
11414     if test "$GXX" = yes; then
11415       # Set up default GNU C++ configuration
11417       
11419 @%:@ Check whether --with-gnu-ld was given.
11420 if test "${with_gnu_ld+set}" = set; then :
11421   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11422 else
11423   with_gnu_ld=no
11426 ac_prog=ld
11427 if test "$GCC" = yes; then
11428   # Check if gcc -print-prog-name=ld gives a path.
11429   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11430 $as_echo_n "checking for ld used by $CC... " >&6; }
11431   case $host in
11432   *-*-mingw*)
11433     # gcc leaves a trailing carriage return which upsets mingw
11434     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11435   *)
11436     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11437   esac
11438   case $ac_prog in
11439     # Accept absolute paths.
11440     [\\/]* | ?:[\\/]*)
11441       re_direlt='/[^/][^/]*/\.\./'
11442       # Canonicalize the pathname of ld
11443       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11444       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11445         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11446       done
11447       test -z "$LD" && LD="$ac_prog"
11448       ;;
11449   "")
11450     # If it fails, then pretend we aren't using GCC.
11451     ac_prog=ld
11452     ;;
11453   *)
11454     # If it is relative, then search for the first ld in PATH.
11455     with_gnu_ld=unknown
11456     ;;
11457   esac
11458 elif test "$with_gnu_ld" = yes; then
11459   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11460 $as_echo_n "checking for GNU ld... " >&6; }
11461 else
11462   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11463 $as_echo_n "checking for non-GNU ld... " >&6; }
11465 if test "${lt_cv_path_LD+set}" = set; then :
11466   $as_echo_n "(cached) " >&6
11467 else
11468   if test -z "$LD"; then
11469   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11470   for ac_dir in $PATH; do
11471     IFS="$lt_save_ifs"
11472     test -z "$ac_dir" && ac_dir=.
11473     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11474       lt_cv_path_LD="$ac_dir/$ac_prog"
11475       # Check to see if the program is GNU ld.  I'd rather use --version,
11476       # but apparently some variants of GNU ld only accept -v.
11477       # Break only if it was the GNU/non-GNU ld that we prefer.
11478       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11479       *GNU* | *'with BFD'*)
11480         test "$with_gnu_ld" != no && break
11481         ;;
11482       *)
11483         test "$with_gnu_ld" != yes && break
11484         ;;
11485       esac
11486     fi
11487   done
11488   IFS="$lt_save_ifs"
11489 else
11490   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11494 LD="$lt_cv_path_LD"
11495 if test -n "$LD"; then
11496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11497 $as_echo "$LD" >&6; }
11498 else
11499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11500 $as_echo "no" >&6; }
11502 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11504 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11505 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11506   $as_echo_n "(cached) " >&6
11507 else
11508   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11509 case `$LD -v 2>&1 </dev/null` in
11510 *GNU* | *'with BFD'*)
11511   lt_cv_prog_gnu_ld=yes
11512   ;;
11514   lt_cv_prog_gnu_ld=no
11515   ;;
11516 esac
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11519 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11520 with_gnu_ld=$lt_cv_prog_gnu_ld
11528       # Check if GNU C++ uses GNU ld as the underlying linker, since the
11529       # archiving commands below assume that GNU ld is being used.
11530       if test "$with_gnu_ld" = yes; then
11531         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11532         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'
11534         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11535         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11537         # If archive_cmds runs LD, not CC, wlarc should be empty
11538         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11539         #     investigate it a little bit more. (MM)
11540         wlarc='${wl}'
11542         # ancient GNU ld didn't support --whole-archive et. al.
11543         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11544           $GREP 'no-whole-archive' > /dev/null; then
11545           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11546         else
11547           whole_archive_flag_spec_CXX=
11548         fi
11549       else
11550         with_gnu_ld=no
11551         wlarc=
11553         # A generic and very simple default shared library creation
11554         # command for GNU C++ for the case where it uses the native
11555         # linker, instead of GNU ld.  If possible, this setting should
11556         # overridden to take advantage of the native linker features on
11557         # the platform it is being used on.
11558         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11559       fi
11561       # Commands to make compiler produce verbose output that lists
11562       # what "hidden" libraries, object files and flags are used when
11563       # linking a shared library.
11564       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11566     else
11567       GXX=no
11568       with_gnu_ld=no
11569       wlarc=
11570     fi
11572     # PORTME: fill in a description of your system's C++ link characteristics
11573     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11574 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11575     ld_shlibs_CXX=yes
11576     case $host_os in
11577       aix3*)
11578         # FIXME: insert proper C++ library support
11579         ld_shlibs_CXX=no
11580         ;;
11581       aix[4-9]*)
11582         if test "$host_cpu" = ia64; then
11583           # On IA64, the linker does run time linking by default, so we don't
11584           # have to do anything special.
11585           aix_use_runtimelinking=no
11586           exp_sym_flag='-Bexport'
11587           no_entry_flag=""
11588         else
11589           aix_use_runtimelinking=no
11591           # Test if we are trying to use run time linking or normal
11592           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11593           # need to do runtime linking.
11594           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11595             for ld_flag in $LDFLAGS; do
11596               case $ld_flag in
11597               *-brtl*)
11598                 aix_use_runtimelinking=yes
11599                 break
11600                 ;;
11601               esac
11602             done
11603             ;;
11604           esac
11606           exp_sym_flag='-bexport'
11607           no_entry_flag='-bnoentry'
11608         fi
11610         # When large executables or shared objects are built, AIX ld can
11611         # have problems creating the table of contents.  If linking a library
11612         # or program results in "error TOC overflow" add -mminimal-toc to
11613         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11614         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11616         archive_cmds_CXX=''
11617         hardcode_direct_CXX=yes
11618         hardcode_direct_absolute_CXX=yes
11619         hardcode_libdir_separator_CXX=':'
11620         link_all_deplibs_CXX=yes
11621         file_list_spec_CXX='${wl}-f,'
11623         if test "$GXX" = yes; then
11624           case $host_os in aix4.[012]|aix4.[012].*)
11625           # We only want to do this on AIX 4.2 and lower, the check
11626           # below for broken collect2 doesn't work under 4.3+
11627           collect2name=`${CC} -print-prog-name=collect2`
11628           if test -f "$collect2name" &&
11629              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11630           then
11631             # We have reworked collect2
11632             :
11633           else
11634             # We have old collect2
11635             hardcode_direct_CXX=unsupported
11636             # It fails to find uninstalled libraries when the uninstalled
11637             # path is not listed in the libpath.  Setting hardcode_minus_L
11638             # to unsupported forces relinking
11639             hardcode_minus_L_CXX=yes
11640             hardcode_libdir_flag_spec_CXX='-L$libdir'
11641             hardcode_libdir_separator_CXX=
11642           fi
11643           esac
11644           shared_flag='-shared'
11645           if test "$aix_use_runtimelinking" = yes; then
11646             shared_flag="$shared_flag "'${wl}-G'
11647           fi
11648         else
11649           # not using gcc
11650           if test "$host_cpu" = ia64; then
11651           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11652           # chokes on -Wl,-G. The following line is correct:
11653           shared_flag='-G'
11654           else
11655             if test "$aix_use_runtimelinking" = yes; then
11656               shared_flag='${wl}-G'
11657             else
11658               shared_flag='${wl}-bM:SRE'
11659             fi
11660           fi
11661         fi
11663         export_dynamic_flag_spec_CXX='${wl}-bexpall'
11664         # It seems that -bexpall does not export symbols beginning with
11665         # underscore (_), so it is better to generate a list of symbols to
11666         # export.
11667         always_export_symbols_CXX=yes
11668         if test "$aix_use_runtimelinking" = yes; then
11669           # Warning - without using the other runtime loading flags (-brtl),
11670           # -berok will link without error, but may produce a broken library.
11671           allow_undefined_flag_CXX='-berok'
11672           # Determine the default libpath from the value encoded in an empty
11673           # executable.
11674           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11675 /* end confdefs.h.  */
11678 main ()
11681   ;
11682   return 0;
11684 _ACEOF
11685 if ac_fn_cxx_try_link "$LINENO"; then :
11686   
11687 lt_aix_libpath_sed='
11688     /Import File Strings/,/^$/ {
11689         /^0/ {
11690             s/^0  *\(.*\)$/\1/
11691             p
11692         }
11693     }'
11694 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11695 # Check for a 64-bit object if we didn't find anything.
11696 if test -z "$aix_libpath"; then
11697   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11700 rm -f core conftest.err conftest.$ac_objext \
11701     conftest$ac_exeext conftest.$ac_ext
11702 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11704           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11706           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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11707         else
11708           if test "$host_cpu" = ia64; then
11709             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11710             allow_undefined_flag_CXX="-z nodefs"
11711             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"
11712           else
11713             # Determine the default libpath from the value encoded in an
11714             # empty executable.
11715             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11716 /* end confdefs.h.  */
11719 main ()
11722   ;
11723   return 0;
11725 _ACEOF
11726 if ac_fn_cxx_try_link "$LINENO"; then :
11727   
11728 lt_aix_libpath_sed='
11729     /Import File Strings/,/^$/ {
11730         /^0/ {
11731             s/^0  *\(.*\)$/\1/
11732             p
11733         }
11734     }'
11735 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11736 # Check for a 64-bit object if we didn't find anything.
11737 if test -z "$aix_libpath"; then
11738   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11741 rm -f core conftest.err conftest.$ac_objext \
11742     conftest$ac_exeext conftest.$ac_ext
11743 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11745             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11746             # Warning - without using the other run time loading flags,
11747             # -berok will link without error, but may produce a broken library.
11748             no_undefined_flag_CXX=' ${wl}-bernotok'
11749             allow_undefined_flag_CXX=' ${wl}-berok'
11750             # Exported symbols can be pulled into shared objects from archives
11751             whole_archive_flag_spec_CXX='$convenience'
11752             archive_cmds_need_lc_CXX=yes
11753             # This is similar to how AIX traditionally builds its shared
11754             # libraries.
11755             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'
11756           fi
11757         fi
11758         ;;
11760       beos*)
11761         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11762           allow_undefined_flag_CXX=unsupported
11763           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11764           # support --undefined.  This deserves some investigation.  FIXME
11765           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11766         else
11767           ld_shlibs_CXX=no
11768         fi
11769         ;;
11771       chorus*)
11772         case $cc_basename in
11773           *)
11774           # FIXME: insert proper C++ library support
11775           ld_shlibs_CXX=no
11776           ;;
11777         esac
11778         ;;
11780       cygwin* | mingw* | pw32* | cegcc*)
11781         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11782         # as there is no search path for DLLs.
11783         hardcode_libdir_flag_spec_CXX='-L$libdir'
11784         allow_undefined_flag_CXX=unsupported
11785         always_export_symbols_CXX=no
11786         enable_shared_with_static_runtimes_CXX=yes
11788         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11789           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'
11790           # If the export-symbols file already is a .def file (1st line
11791           # is EXPORTS), use it as is; otherwise, prepend...
11792           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11793             cp $export_symbols $output_objdir/$soname.def;
11794           else
11795             echo EXPORTS > $output_objdir/$soname.def;
11796             cat $export_symbols >> $output_objdir/$soname.def;
11797           fi~
11798           $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'
11799         else
11800           ld_shlibs_CXX=no
11801         fi
11802         ;;
11803       darwin* | rhapsody*)
11804         
11805   
11806   archive_cmds_need_lc_CXX=no
11807   hardcode_direct_CXX=no
11808   hardcode_automatic_CXX=yes
11809   hardcode_shlibpath_var_CXX=unsupported
11810   whole_archive_flag_spec_CXX=''
11811   link_all_deplibs_CXX=yes
11812   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11813   case $cc_basename in
11814      ifort*) _lt_dar_can_shared=yes ;;
11815      *) _lt_dar_can_shared=$GCC ;;
11816   esac
11817   if test "$_lt_dar_can_shared" = "yes"; then
11818     output_verbose_link_cmd=echo
11819     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}"
11820     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11821     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}"
11822     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}"
11823        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11824       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}"
11825       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}"
11826     fi
11828   else
11829   ld_shlibs_CXX=no
11830   fi
11832         ;;
11834       dgux*)
11835         case $cc_basename in
11836           ec++*)
11837             # FIXME: insert proper C++ library support
11838             ld_shlibs_CXX=no
11839             ;;
11840           ghcx*)
11841             # Green Hills C++ Compiler
11842             # FIXME: insert proper C++ library support
11843             ld_shlibs_CXX=no
11844             ;;
11845           *)
11846             # FIXME: insert proper C++ library support
11847             ld_shlibs_CXX=no
11848             ;;
11849         esac
11850         ;;
11852       freebsd[12]*)
11853         # C++ shared libraries reported to be fairly broken before
11854         # switch to ELF
11855         ld_shlibs_CXX=no
11856         ;;
11858       freebsd-elf*)
11859         archive_cmds_need_lc_CXX=no
11860         ;;
11862       freebsd* | dragonfly*)
11863         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11864         # conventions
11865         ld_shlibs_CXX=yes
11866         ;;
11868       gnu*)
11869         ;;
11871       hpux9*)
11872         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11873         hardcode_libdir_separator_CXX=:
11874         export_dynamic_flag_spec_CXX='${wl}-E'
11875         hardcode_direct_CXX=yes
11876         hardcode_minus_L_CXX=yes # Not in the search PATH,
11877                                              # but as the default
11878                                              # location of the library.
11880         case $cc_basename in
11881           CC*)
11882             # FIXME: insert proper C++ library support
11883             ld_shlibs_CXX=no
11884             ;;
11885           aCC*)
11886             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'
11887             # Commands to make compiler produce verbose output that lists
11888             # what "hidden" libraries, object files and flags are used when
11889             # linking a shared library.
11890             #
11891             # There doesn't appear to be a way to prevent this compiler from
11892             # explicitly linking system object files so we need to strip them
11893             # from the output so that they don't get included in the library
11894             # dependencies.
11895             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
11896             ;;
11897           *)
11898             if test "$GXX" = yes; then
11899               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'
11900             else
11901               # FIXME: insert proper C++ library support
11902               ld_shlibs_CXX=no
11903             fi
11904             ;;
11905         esac
11906         ;;
11908       hpux10*|hpux11*)
11909         if test $with_gnu_ld = no; then
11910           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11911           hardcode_libdir_separator_CXX=:
11913           case $host_cpu in
11914             hppa*64*|ia64*)
11915               ;;
11916             *)
11917               export_dynamic_flag_spec_CXX='${wl}-E'
11918               ;;
11919           esac
11920         fi
11921         case $host_cpu in
11922           hppa*64*|ia64*)
11923             hardcode_direct_CXX=no
11924             hardcode_shlibpath_var_CXX=no
11925             ;;
11926           *)
11927             hardcode_direct_CXX=yes
11928             hardcode_direct_absolute_CXX=yes
11929             hardcode_minus_L_CXX=yes # Not in the search PATH,
11930                                                  # but as the default
11931                                                  # location of the library.
11932             ;;
11933         esac
11935         case $cc_basename in
11936           CC*)
11937             # FIXME: insert proper C++ library support
11938             ld_shlibs_CXX=no
11939             ;;
11940           aCC*)
11941             case $host_cpu in
11942               hppa*64*)
11943                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11944                 ;;
11945               ia64*)
11946                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11947                 ;;
11948               *)
11949                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11950                 ;;
11951             esac
11952             # Commands to make compiler produce verbose output that lists
11953             # what "hidden" libraries, object files and flags are used when
11954             # linking a shared library.
11955             #
11956             # There doesn't appear to be a way to prevent this compiler from
11957             # explicitly linking system object files so we need to strip them
11958             # from the output so that they don't get included in the library
11959             # dependencies.
11960             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 "X$list" | $Xsed'
11961             ;;
11962           *)
11963             if test "$GXX" = yes; then
11964               if test $with_gnu_ld = no; then
11965                 case $host_cpu in
11966                   hppa*64*)
11967                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11968                     ;;
11969                   ia64*)
11970                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11971                     ;;
11972                   *)
11973                     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'
11974                     ;;
11975                 esac
11976               fi
11977             else
11978               # FIXME: insert proper C++ library support
11979               ld_shlibs_CXX=no
11980             fi
11981             ;;
11982         esac
11983         ;;
11985       interix[3-9]*)
11986         hardcode_direct_CXX=no
11987         hardcode_shlibpath_var_CXX=no
11988         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11989         export_dynamic_flag_spec_CXX='${wl}-E'
11990         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11991         # Instead, shared libraries are loaded at an image base (0x10000000 by
11992         # default) and relocated if they conflict, which is a slow very memory
11993         # consuming and fragmenting process.  To avoid this, we pick a random,
11994         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11995         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11996         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'
11997         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'
11998         ;;
11999       irix5* | irix6*)
12000         case $cc_basename in
12001           CC*)
12002             # SGI C++
12003             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12005             # Archives containing C++ object files must be created using
12006             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12007             # necessary to make sure instantiated templates are included
12008             # in the archive.
12009             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12010             ;;
12011           *)
12012             if test "$GXX" = yes; then
12013               if test "$with_gnu_ld" = no; then
12014                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12015               else
12016                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
12017               fi
12018             fi
12019             link_all_deplibs_CXX=yes
12020             ;;
12021         esac
12022         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12023         hardcode_libdir_separator_CXX=:
12024         inherit_rpath_CXX=yes
12025         ;;
12027       linux* | k*bsd*-gnu | kopensolaris*-gnu)
12028         case $cc_basename in
12029           KCC*)
12030             # Kuck and Associates, Inc. (KAI) C++ Compiler
12032             # KCC will only create a shared library if the output file
12033             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12034             # to its proper name (with version) after linking.
12035             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'
12036             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'
12037             # Commands to make compiler produce verbose output that lists
12038             # what "hidden" libraries, object files and flags are used when
12039             # linking a shared library.
12040             #
12041             # There doesn't appear to be a way to prevent this compiler from
12042             # explicitly linking system object files so we need to strip them
12043             # from the output so that they don't get included in the library
12044             # dependencies.
12045             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 "X$list" | $Xsed'
12047             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12048             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12050             # Archives containing C++ object files must be created using
12051             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12052             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12053             ;;
12054           icpc* | ecpc* )
12055             # Intel C++
12056             with_gnu_ld=yes
12057             # version 8.0 and above of icpc choke on multiply defined symbols
12058             # if we add $predep_objects and $postdep_objects, however 7.1 and
12059             # earlier do not add the objects themselves.
12060             case `$CC -V 2>&1` in
12061               *"Version 7."*)
12062                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12063                 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'
12064                 ;;
12065               *)  # Version 8.0 or newer
12066                 tmp_idyn=
12067                 case $host_cpu in
12068                   ia64*) tmp_idyn=' -i_dynamic';;
12069                 esac
12070                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12071                 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'
12072                 ;;
12073             esac
12074             archive_cmds_need_lc_CXX=no
12075             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12076             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12077             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12078             ;;
12079           pgCC* | pgcpp*)
12080             # Portland Group C++ compiler
12081             case `$CC -V` in
12082             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12083               prelink_cmds_CXX='tpldir=Template.dir~
12084                 rm -rf $tpldir~
12085                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12086                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12087               old_archive_cmds_CXX='tpldir=Template.dir~
12088                 rm -rf $tpldir~
12089                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12090                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12091                 $RANLIB $oldlib'
12092               archive_cmds_CXX='tpldir=Template.dir~
12093                 rm -rf $tpldir~
12094                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12095                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12096               archive_expsym_cmds_CXX='tpldir=Template.dir~
12097                 rm -rf $tpldir~
12098                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12099                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12100               ;;
12101             *) # Version 6 will use weak symbols
12102               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12103               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'
12104               ;;
12105             esac
12107             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12108             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12109             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'
12110             ;;
12111           cxx*)
12112             # Compaq C++
12113             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12114             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'
12116             runpath_var=LD_RUN_PATH
12117             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12118             hardcode_libdir_separator_CXX=:
12120             # Commands to make compiler produce verbose output that lists
12121             # what "hidden" libraries, object files and flags are used when
12122             # linking a shared library.
12123             #
12124             # There doesn't appear to be a way to prevent this compiler from
12125             # explicitly linking system object files so we need to strip them
12126             # from the output so that they don't get included in the library
12127             # dependencies.
12128             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
12129             ;;
12130           xl*)
12131             # IBM XL 8.0 on PPC, with GNU ld
12132             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12133             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12134             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12135             if test "x$supports_anon_versioning" = xyes; then
12136               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12137                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12138                 echo "local: *; };" >> $output_objdir/$libname.ver~
12139                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12140             fi
12141             ;;
12142           *)
12143             case `$CC -V 2>&1 | sed 5q` in
12144             *Sun\ C*)
12145               # Sun C++ 5.9
12146               no_undefined_flag_CXX=' -zdefs'
12147               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12148               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'
12149               hardcode_libdir_flag_spec_CXX='-R$libdir'
12150               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'
12151               compiler_needs_object_CXX=yes
12153               # Not sure whether something based on
12154               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12155               # would be better.
12156               output_verbose_link_cmd='echo'
12158               # Archives containing C++ object files must be created using
12159               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12160               # necessary to make sure instantiated templates are included
12161               # in the archive.
12162               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12163               ;;
12164             esac
12165             ;;
12166         esac
12167         ;;
12169       lynxos*)
12170         # FIXME: insert proper C++ library support
12171         ld_shlibs_CXX=no
12172         ;;
12174       m88k*)
12175         # FIXME: insert proper C++ library support
12176         ld_shlibs_CXX=no
12177         ;;
12179       mvs*)
12180         case $cc_basename in
12181           cxx*)
12182             # FIXME: insert proper C++ library support
12183             ld_shlibs_CXX=no
12184             ;;
12185           *)
12186             # FIXME: insert proper C++ library support
12187             ld_shlibs_CXX=no
12188             ;;
12189         esac
12190         ;;
12192       netbsd*)
12193         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12194           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12195           wlarc=
12196           hardcode_libdir_flag_spec_CXX='-R$libdir'
12197           hardcode_direct_CXX=yes
12198           hardcode_shlibpath_var_CXX=no
12199         fi
12200         # Workaround some broken pre-1.5 toolchains
12201         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12202         ;;
12204       *nto* | *qnx*)
12205         ld_shlibs_CXX=yes
12206         ;;
12208       openbsd2*)
12209         # C++ shared libraries are fairly broken
12210         ld_shlibs_CXX=no
12211         ;;
12213       openbsd*)
12214         if test -f /usr/libexec/ld.so; then
12215           hardcode_direct_CXX=yes
12216           hardcode_shlibpath_var_CXX=no
12217           hardcode_direct_absolute_CXX=yes
12218           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12219           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12220           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12221             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12222             export_dynamic_flag_spec_CXX='${wl}-E'
12223             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12224           fi
12225           output_verbose_link_cmd=echo
12226         else
12227           ld_shlibs_CXX=no
12228         fi
12229         ;;
12231       osf3* | osf4* | osf5*)
12232         case $cc_basename in
12233           KCC*)
12234             # Kuck and Associates, Inc. (KAI) C++ Compiler
12236             # KCC will only create a shared library if the output file
12237             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12238             # to its proper name (with version) after linking.
12239             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'
12241             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12242             hardcode_libdir_separator_CXX=:
12244             # Archives containing C++ object files must be created using
12245             # the KAI C++ compiler.
12246             case $host in
12247               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12248               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12249             esac
12250             ;;
12251           RCC*)
12252             # Rational C++ 2.4.1
12253             # FIXME: insert proper C++ library support
12254             ld_shlibs_CXX=no
12255             ;;
12256           cxx*)
12257             case $host in
12258               osf3*)
12259                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12260                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12261                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12262                 ;;
12263               *)
12264                 allow_undefined_flag_CXX=' -expect_unresolved \*'
12265                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12266                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12267                   echo "-hidden">> $lib.exp~
12268                   $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
12269                   $RM $lib.exp'
12270                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12271                 ;;
12272             esac
12274             hardcode_libdir_separator_CXX=:
12276             # Commands to make compiler produce verbose output that lists
12277             # what "hidden" libraries, object files and flags are used when
12278             # linking a shared library.
12279             #
12280             # There doesn't appear to be a way to prevent this compiler from
12281             # explicitly linking system object files so we need to strip them
12282             # from the output so that they don't get included in the library
12283             # dependencies.
12284             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
12285             ;;
12286           *)
12287             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12288               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12289               case $host in
12290                 osf3*)
12291                   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 "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12292                   ;;
12293                 *)
12294                   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" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12295                   ;;
12296               esac
12298               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12299               hardcode_libdir_separator_CXX=:
12301               # Commands to make compiler produce verbose output that lists
12302               # what "hidden" libraries, object files and flags are used when
12303               # linking a shared library.
12304               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12306             else
12307               # FIXME: insert proper C++ library support
12308               ld_shlibs_CXX=no
12309             fi
12310             ;;
12311         esac
12312         ;;
12314       psos*)
12315         # FIXME: insert proper C++ library support
12316         ld_shlibs_CXX=no
12317         ;;
12319       sunos4*)
12320         case $cc_basename in
12321           CC*)
12322             # Sun C++ 4.x
12323             # FIXME: insert proper C++ library support
12324             ld_shlibs_CXX=no
12325             ;;
12326           lcc*)
12327             # Lucid
12328             # FIXME: insert proper C++ library support
12329             ld_shlibs_CXX=no
12330             ;;
12331           *)
12332             # FIXME: insert proper C++ library support
12333             ld_shlibs_CXX=no
12334             ;;
12335         esac
12336         ;;
12338       solaris*)
12339         case $cc_basename in
12340           CC*)
12341             # Sun C++ 4.2, 5.x and Centerline C++
12342             archive_cmds_need_lc_CXX=yes
12343             no_undefined_flag_CXX=' -zdefs'
12344             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12345             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12346               $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'
12348             hardcode_libdir_flag_spec_CXX='-R$libdir'
12349             hardcode_shlibpath_var_CXX=no
12350             case $host_os in
12351               solaris2.[0-5] | solaris2.[0-5].*) ;;
12352               *)
12353                 # The compiler driver will combine and reorder linker options,
12354                 # but understands `-z linker_flag'.
12355                 # Supported since Solaris 2.6 (maybe 2.5.1?)
12356                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12357                 ;;
12358             esac
12359             link_all_deplibs_CXX=yes
12361             output_verbose_link_cmd='echo'
12363             # Archives containing C++ object files must be created using
12364             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12365             # necessary to make sure instantiated templates are included
12366             # in the archive.
12367             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12368             ;;
12369           gcx*)
12370             # Green Hills C++ Compiler
12371             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12373             # The C++ compiler must be used to create the archive.
12374             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12375             ;;
12376           *)
12377             # GNU C++ compiler with Solaris linker
12378             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12379               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12380               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12381                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12382                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12383                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12385                 # Commands to make compiler produce verbose output that lists
12386                 # what "hidden" libraries, object files and flags are used when
12387                 # linking a shared library.
12388                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12389               else
12390                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12391                 # platform.
12392                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12393                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12394                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12396                 # Commands to make compiler produce verbose output that lists
12397                 # what "hidden" libraries, object files and flags are used when
12398                 # linking a shared library.
12399                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12400               fi
12402               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12403               case $host_os in
12404                 solaris2.[0-5] | solaris2.[0-5].*) ;;
12405                 *)
12406                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12407                   ;;
12408               esac
12409             fi
12410             ;;
12411         esac
12412         ;;
12414     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12415       no_undefined_flag_CXX='${wl}-z,text'
12416       archive_cmds_need_lc_CXX=no
12417       hardcode_shlibpath_var_CXX=no
12418       runpath_var='LD_RUN_PATH'
12420       case $cc_basename in
12421         CC*)
12422           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12423           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12424           ;;
12425         *)
12426           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12427           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12428           ;;
12429       esac
12430       ;;
12432       sysv5* | sco3.2v5* | sco5v6*)
12433         # Note: We can NOT use -z defs as we might desire, because we do not
12434         # link with -lc, and that would cause any symbols used from libc to
12435         # always be unresolved, which means just about no library would
12436         # ever link correctly.  If we're not using GNU ld we use -z text
12437         # though, which does catch some bad symbols but isn't as heavy-handed
12438         # as -z defs.
12439         no_undefined_flag_CXX='${wl}-z,text'
12440         allow_undefined_flag_CXX='${wl}-z,nodefs'
12441         archive_cmds_need_lc_CXX=no
12442         hardcode_shlibpath_var_CXX=no
12443         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12444         hardcode_libdir_separator_CXX=':'
12445         link_all_deplibs_CXX=yes
12446         export_dynamic_flag_spec_CXX='${wl}-Bexport'
12447         runpath_var='LD_RUN_PATH'
12449         case $cc_basename in
12450           CC*)
12451             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12452             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12453             ;;
12454           *)
12455             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12456             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12457             ;;
12458         esac
12459       ;;
12461       tandem*)
12462         case $cc_basename in
12463           NCC*)
12464             # NonStop-UX NCC 3.20
12465             # FIXME: insert proper C++ library support
12466             ld_shlibs_CXX=no
12467             ;;
12468           *)
12469             # FIXME: insert proper C++ library support
12470             ld_shlibs_CXX=no
12471             ;;
12472         esac
12473         ;;
12475       vxworks*)
12476         # FIXME: insert proper C++ library support
12477         ld_shlibs_CXX=no
12478         ;;
12480       *)
12481         # FIXME: insert proper C++ library support
12482         ld_shlibs_CXX=no
12483         ;;
12484     esac
12486     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12487 $as_echo "$ld_shlibs_CXX" >&6; }
12488     test "$ld_shlibs_CXX" = no && can_build_shared=no
12490     GCC_CXX="$GXX"
12491     LD_CXX="$LD"
12493     ## CAVEAT EMPTOR:
12494     ## There is no encapsulation within the following macros, do not change
12495     ## the running order or otherwise move them around unless you know exactly
12496     ## what you are doing...
12497     # Dependencies to place before and after the object being linked:
12498 predep_objects_CXX=
12499 postdep_objects_CXX=
12500 predeps_CXX=
12501 postdeps_CXX=
12502 compiler_lib_search_path_CXX=
12504 cat > conftest.$ac_ext <<_LT_EOF
12505 class Foo
12507 public:
12508   Foo (void) { a = 0; }
12509 private:
12510   int a;
12512 _LT_EOF
12514 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12515   (eval $ac_compile) 2>&5
12516   ac_status=$?
12517   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12518   test $ac_status = 0; }; then
12519   # Parse the compiler output and extract the necessary
12520   # objects, libraries and library flags.
12522   # Sentinel used to keep track of whether or not we are before
12523   # the conftest object file.
12524   pre_test_object_deps_done=no
12526   for p in `eval "$output_verbose_link_cmd"`; do
12527     case $p in
12529     -L* | -R* | -l*)
12530        # Some compilers place space between "-{L,R}" and the path.
12531        # Remove the space.
12532        if test $p = "-L" ||
12533           test $p = "-R"; then
12534          prev=$p
12535          continue
12536        else
12537          prev=
12538        fi
12540        if test "$pre_test_object_deps_done" = no; then
12541          case $p in
12542          -L* | -R*)
12543            # Internal compiler library paths should come after those
12544            # provided the user.  The postdeps already come after the
12545            # user supplied libs so there is no need to process them.
12546            if test -z "$compiler_lib_search_path_CXX"; then
12547              compiler_lib_search_path_CXX="${prev}${p}"
12548            else
12549              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12550            fi
12551            ;;
12552          # The "-l" case would never come before the object being
12553          # linked, so don't bother handling this case.
12554          esac
12555        else
12556          if test -z "$postdeps_CXX"; then
12557            postdeps_CXX="${prev}${p}"
12558          else
12559            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12560          fi
12561        fi
12562        ;;
12564     *.$objext)
12565        # This assumes that the test object file only shows up
12566        # once in the compiler output.
12567        if test "$p" = "conftest.$objext"; then
12568          pre_test_object_deps_done=yes
12569          continue
12570        fi
12572        if test "$pre_test_object_deps_done" = no; then
12573          if test -z "$predep_objects_CXX"; then
12574            predep_objects_CXX="$p"
12575          else
12576            predep_objects_CXX="$predep_objects_CXX $p"
12577          fi
12578        else
12579          if test -z "$postdep_objects_CXX"; then
12580            postdep_objects_CXX="$p"
12581          else
12582            postdep_objects_CXX="$postdep_objects_CXX $p"
12583          fi
12584        fi
12585        ;;
12587     *) ;; # Ignore the rest.
12589     esac
12590   done
12592   # Clean up.
12593   rm -f a.out a.exe
12594 else
12595   echo "libtool.m4: error: problem compiling CXX test program"
12598 $RM -f confest.$objext
12600 # PORTME: override above test on systems where it is broken
12601 case $host_os in
12602 interix[3-9]*)
12603   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12604   # hack all around it, let's just trust "g++" to DTRT.
12605   predep_objects_CXX=
12606   postdep_objects_CXX=
12607   postdeps_CXX=
12608   ;;
12610 linux*)
12611   case `$CC -V 2>&1 | sed 5q` in
12612   *Sun\ C*)
12613     # Sun C++ 5.9
12615     # The more standards-conforming stlport4 library is
12616     # incompatible with the Cstd library. Avoid specifying
12617     # it if it's in CXXFLAGS. Ignore libCrun as
12618     # -library=stlport4 depends on it.
12619     case " $CXX $CXXFLAGS " in
12620     *" -library=stlport4 "*)
12621       solaris_use_stlport4=yes
12622       ;;
12623     esac
12625     if test "$solaris_use_stlport4" != yes; then
12626       postdeps_CXX='-library=Cstd -library=Crun'
12627     fi
12628     ;;
12629   esac
12630   ;;
12632 solaris*)
12633   case $cc_basename in
12634   CC*)
12635     # The more standards-conforming stlport4 library is
12636     # incompatible with the Cstd library. Avoid specifying
12637     # it if it's in CXXFLAGS. Ignore libCrun as
12638     # -library=stlport4 depends on it.
12639     case " $CXX $CXXFLAGS " in
12640     *" -library=stlport4 "*)
12641       solaris_use_stlport4=yes
12642       ;;
12643     esac
12645     # Adding this requires a known-good setup of shared libraries for
12646     # Sun compiler versions before 5.6, else PIC objects from an old
12647     # archive will be linked into the output, leading to subtle bugs.
12648     if test "$solaris_use_stlport4" != yes; then
12649       postdeps_CXX='-library=Cstd -library=Crun'
12650     fi
12651     ;;
12652   esac
12653   ;;
12654 esac
12657 case " $postdeps_CXX " in
12658 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12659 esac
12660  compiler_lib_search_dirs_CXX=
12661 if test -n "${compiler_lib_search_path_CXX}"; then
12662  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12665     
12666     
12667     
12670     
12671     
12672     
12675     
12676     
12677     
12680     
12681     
12682     
12685     
12686     
12687     
12690     
12691     
12692     
12695     lt_prog_compiler_wl_CXX=
12696 lt_prog_compiler_pic_CXX=
12697 lt_prog_compiler_static_CXX=
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12700 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12702   # C++ specific cases for pic, static, wl, etc.
12703   if test "$GXX" = yes; then
12704     lt_prog_compiler_wl_CXX='-Wl,'
12705     lt_prog_compiler_static_CXX='-static'
12707     case $host_os in
12708     aix*)
12709       # All AIX code is PIC.
12710       if test "$host_cpu" = ia64; then
12711         # AIX 5 now supports IA64 processor
12712         lt_prog_compiler_static_CXX='-Bstatic'
12713       fi
12714       ;;
12716     amigaos*)
12717       case $host_cpu in
12718       powerpc)
12719             # see comment about AmigaOS4 .so support
12720             lt_prog_compiler_pic_CXX='-fPIC'
12721         ;;
12722       m68k)
12723             # FIXME: we need at least 68020 code to build shared libraries, but
12724             # adding the `-m68020' flag to GCC prevents building anything better,
12725             # like `-m68040'.
12726             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12727         ;;
12728       esac
12729       ;;
12731     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12732       # PIC is the default for these OSes.
12733       ;;
12734     mingw* | cygwin* | os2* | pw32* | cegcc*)
12735       # This hack is so that the source file can tell whether it is being
12736       # built for inclusion in a dll (and should export symbols for example).
12737       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12738       # (--disable-auto-import) libraries
12739       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12740       ;;
12741     darwin* | rhapsody*)
12742       # PIC is the default on this platform
12743       # Common symbols not allowed in MH_DYLIB files
12744       lt_prog_compiler_pic_CXX='-fno-common'
12745       ;;
12746     *djgpp*)
12747       # DJGPP does not support shared libraries at all
12748       lt_prog_compiler_pic_CXX=
12749       ;;
12750     interix[3-9]*)
12751       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12752       # Instead, we relocate shared libraries at runtime.
12753       ;;
12754     sysv4*MP*)
12755       if test -d /usr/nec; then
12756         lt_prog_compiler_pic_CXX=-Kconform_pic
12757       fi
12758       ;;
12759     hpux*)
12760       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12761       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12762       # sets the default TLS model and affects inlining.
12763       case $host_cpu in
12764       hppa*64*)
12765         ;;
12766       *)
12767         lt_prog_compiler_pic_CXX='-fPIC'
12768         ;;
12769       esac
12770       ;;
12771     *qnx* | *nto*)
12772       # QNX uses GNU C++, but need to define -shared option too, otherwise
12773       # it will coredump.
12774       lt_prog_compiler_pic_CXX='-fPIC -shared'
12775       ;;
12776     *)
12777       lt_prog_compiler_pic_CXX='-fPIC'
12778       ;;
12779     esac
12780   else
12781     case $host_os in
12782       aix[4-9]*)
12783         # All AIX code is PIC.
12784         if test "$host_cpu" = ia64; then
12785           # AIX 5 now supports IA64 processor
12786           lt_prog_compiler_static_CXX='-Bstatic'
12787         else
12788           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12789         fi
12790         ;;
12791       chorus*)
12792         case $cc_basename in
12793         cxch68*)
12794           # Green Hills C++ Compiler
12795           # _LT_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"
12796           ;;
12797         esac
12798         ;;
12799       dgux*)
12800         case $cc_basename in
12801           ec++*)
12802             lt_prog_compiler_pic_CXX='-KPIC'
12803             ;;
12804           ghcx*)
12805             # Green Hills C++ Compiler
12806             lt_prog_compiler_pic_CXX='-pic'
12807             ;;
12808           *)
12809             ;;
12810         esac
12811         ;;
12812       freebsd* | dragonfly*)
12813         # FreeBSD uses GNU C++
12814         ;;
12815       hpux9* | hpux10* | hpux11*)
12816         case $cc_basename in
12817           CC*)
12818             lt_prog_compiler_wl_CXX='-Wl,'
12819             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12820             if test "$host_cpu" != ia64; then
12821               lt_prog_compiler_pic_CXX='+Z'
12822             fi
12823             ;;
12824           aCC*)
12825             lt_prog_compiler_wl_CXX='-Wl,'
12826             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12827             case $host_cpu in
12828             hppa*64*|ia64*)
12829               # +Z the default
12830               ;;
12831             *)
12832               lt_prog_compiler_pic_CXX='+Z'
12833               ;;
12834             esac
12835             ;;
12836           *)
12837             ;;
12838         esac
12839         ;;
12840       interix*)
12841         # This is c89, which is MS Visual C++ (no shared libs)
12842         # Anyone wants to do a port?
12843         ;;
12844       irix5* | irix6* | nonstopux*)
12845         case $cc_basename in
12846           CC*)
12847             lt_prog_compiler_wl_CXX='-Wl,'
12848             lt_prog_compiler_static_CXX='-non_shared'
12849             # CC pic flag -KPIC is the default.
12850             ;;
12851           *)
12852             ;;
12853         esac
12854         ;;
12855       linux* | k*bsd*-gnu | kopensolaris*-gnu)
12856         case $cc_basename in
12857           KCC*)
12858             # KAI C++ Compiler
12859             lt_prog_compiler_wl_CXX='--backend -Wl,'
12860             lt_prog_compiler_pic_CXX='-fPIC'
12861             ;;
12862           ecpc* )
12863             # old Intel C++ for x86_64 which still supported -KPIC.
12864             lt_prog_compiler_wl_CXX='-Wl,'
12865             lt_prog_compiler_pic_CXX='-KPIC'
12866             lt_prog_compiler_static_CXX='-static'
12867             ;;
12868           icpc* )
12869             # Intel C++, used to be incompatible with GCC.
12870             # ICC 10 doesn't accept -KPIC any more.
12871             lt_prog_compiler_wl_CXX='-Wl,'
12872             lt_prog_compiler_pic_CXX='-fPIC'
12873             lt_prog_compiler_static_CXX='-static'
12874             ;;
12875           pgCC* | pgcpp*)
12876             # Portland Group C++ compiler
12877             lt_prog_compiler_wl_CXX='-Wl,'
12878             lt_prog_compiler_pic_CXX='-fpic'
12879             lt_prog_compiler_static_CXX='-Bstatic'
12880             ;;
12881           cxx*)
12882             # Compaq C++
12883             # Make sure the PIC flag is empty.  It appears that all Alpha
12884             # Linux and Compaq Tru64 Unix objects are PIC.
12885             lt_prog_compiler_pic_CXX=
12886             lt_prog_compiler_static_CXX='-non_shared'
12887             ;;
12888           xlc* | xlC*)
12889             # IBM XL 8.0 on PPC
12890             lt_prog_compiler_wl_CXX='-Wl,'
12891             lt_prog_compiler_pic_CXX='-qpic'
12892             lt_prog_compiler_static_CXX='-qstaticlink'
12893             ;;
12894           *)
12895             case `$CC -V 2>&1 | sed 5q` in
12896             *Sun\ C*)
12897               # Sun C++ 5.9
12898               lt_prog_compiler_pic_CXX='-KPIC'
12899               lt_prog_compiler_static_CXX='-Bstatic'
12900               lt_prog_compiler_wl_CXX='-Qoption ld '
12901               ;;
12902             esac
12903             ;;
12904         esac
12905         ;;
12906       lynxos*)
12907         ;;
12908       m88k*)
12909         ;;
12910       mvs*)
12911         case $cc_basename in
12912           cxx*)
12913             lt_prog_compiler_pic_CXX='-W c,exportall'
12914             ;;
12915           *)
12916             ;;
12917         esac
12918         ;;
12919       netbsd* | netbsdelf*-gnu)
12920         ;;
12921       *qnx* | *nto*)
12922         # QNX uses GNU C++, but need to define -shared option too, otherwise
12923         # it will coredump.
12924         lt_prog_compiler_pic_CXX='-fPIC -shared'
12925         ;;
12926       osf3* | osf4* | osf5*)
12927         case $cc_basename in
12928           KCC*)
12929             lt_prog_compiler_wl_CXX='--backend -Wl,'
12930             ;;
12931           RCC*)
12932             # Rational C++ 2.4.1
12933             lt_prog_compiler_pic_CXX='-pic'
12934             ;;
12935           cxx*)
12936             # Digital/Compaq C++
12937             lt_prog_compiler_wl_CXX='-Wl,'
12938             # Make sure the PIC flag is empty.  It appears that all Alpha
12939             # Linux and Compaq Tru64 Unix objects are PIC.
12940             lt_prog_compiler_pic_CXX=
12941             lt_prog_compiler_static_CXX='-non_shared'
12942             ;;
12943           *)
12944             ;;
12945         esac
12946         ;;
12947       psos*)
12948         ;;
12949       solaris*)
12950         case $cc_basename in
12951           CC*)
12952             # Sun C++ 4.2, 5.x and Centerline C++
12953             lt_prog_compiler_pic_CXX='-KPIC'
12954             lt_prog_compiler_static_CXX='-Bstatic'
12955             lt_prog_compiler_wl_CXX='-Qoption ld '
12956             ;;
12957           gcx*)
12958             # Green Hills C++ Compiler
12959             lt_prog_compiler_pic_CXX='-PIC'
12960             ;;
12961           *)
12962             ;;
12963         esac
12964         ;;
12965       sunos4*)
12966         case $cc_basename in
12967           CC*)
12968             # Sun C++ 4.x
12969             lt_prog_compiler_pic_CXX='-pic'
12970             lt_prog_compiler_static_CXX='-Bstatic'
12971             ;;
12972           lcc*)
12973             # Lucid
12974             lt_prog_compiler_pic_CXX='-pic'
12975             ;;
12976           *)
12977             ;;
12978         esac
12979         ;;
12980       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12981         case $cc_basename in
12982           CC*)
12983             lt_prog_compiler_wl_CXX='-Wl,'
12984             lt_prog_compiler_pic_CXX='-KPIC'
12985             lt_prog_compiler_static_CXX='-Bstatic'
12986             ;;
12987         esac
12988         ;;
12989       tandem*)
12990         case $cc_basename in
12991           NCC*)
12992             # NonStop-UX NCC 3.20
12993             lt_prog_compiler_pic_CXX='-KPIC'
12994             ;;
12995           *)
12996             ;;
12997         esac
12998         ;;
12999       vxworks*)
13000         ;;
13001       *)
13002         lt_prog_compiler_can_build_shared_CXX=no
13003         ;;
13004     esac
13005   fi
13007 case $host_os in
13008   # For platforms which do not support PIC, -DPIC is meaningless:
13009   *djgpp*)
13010     lt_prog_compiler_pic_CXX=
13011     ;;
13012   *)
13013     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX@&t@ -DPIC"
13014     ;;
13015 esac
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13017 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13022 # Check to make sure the PIC flag actually works.
13024 if test -n "$lt_prog_compiler_pic_CXX"; then
13025   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13026 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13027 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13028   $as_echo_n "(cached) " >&6
13029 else
13030   lt_cv_prog_compiler_pic_works_CXX=no
13031    ac_outfile=conftest.$ac_objext
13032    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13033    lt_compiler_flag="$lt_prog_compiler_pic_CXX@&t@ -DPIC"
13034    # Insert the option either (1) after the last *FLAGS variable, or
13035    # (2) before a word containing "conftest.", or (3) at the end.
13036    # Note that $ac_compile itself does not contain backslashes and begins
13037    # with a dollar sign (not a hyphen), so the echo should work correctly.
13038    # The option is referenced via a variable to avoid confusing sed.
13039    lt_compile=`echo "$ac_compile" | $SED \
13040    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13041    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13042    -e 's:$: $lt_compiler_flag:'`
13043    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13044    (eval "$lt_compile" 2>conftest.err)
13045    ac_status=$?
13046    cat conftest.err >&5
13047    echo "$as_me:__oline__: \$? = $ac_status" >&5
13048    if (exit $ac_status) && test -s "$ac_outfile"; then
13049      # The compiler can only warn and ignore the option if not recognized
13050      # So say no if there are warnings other than the usual output.
13051      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13052      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13053      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13054        lt_cv_prog_compiler_pic_works_CXX=yes
13055      fi
13056    fi
13057    $RM conftest*
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13061 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13063 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13064     case $lt_prog_compiler_pic_CXX in
13065      "" | " "*) ;;
13066      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13067      esac
13068 else
13069     lt_prog_compiler_pic_CXX=
13070      lt_prog_compiler_can_build_shared_CXX=no
13078 # Check to make sure the static flag actually works.
13080 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13082 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13083 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13084   $as_echo_n "(cached) " >&6
13085 else
13086   lt_cv_prog_compiler_static_works_CXX=no
13087    save_LDFLAGS="$LDFLAGS"
13088    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13089    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13090    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13091      # The linker can only warn and ignore the option if not recognized
13092      # So say no if there are warnings
13093      if test -s conftest.err; then
13094        # Append any errors to the config.log.
13095        cat conftest.err 1>&5
13096        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13097        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13098        if diff conftest.exp conftest.er2 >/dev/null; then
13099          lt_cv_prog_compiler_static_works_CXX=yes
13100        fi
13101      else
13102        lt_cv_prog_compiler_static_works_CXX=yes
13103      fi
13104    fi
13105    $RM -r conftest*
13106    LDFLAGS="$save_LDFLAGS"
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13110 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13112 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13113     :
13114 else
13115     lt_prog_compiler_static_CXX=
13121     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13122 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13123 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13124   $as_echo_n "(cached) " >&6
13125 else
13126   lt_cv_prog_compiler_c_o_CXX=no
13127    $RM -r conftest 2>/dev/null
13128    mkdir conftest
13129    cd conftest
13130    mkdir out
13131    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13133    lt_compiler_flag="-o out/conftest2.$ac_objext"
13134    # Insert the option either (1) after the last *FLAGS variable, or
13135    # (2) before a word containing "conftest.", or (3) at the end.
13136    # Note that $ac_compile itself does not contain backslashes and begins
13137    # with a dollar sign (not a hyphen), so the echo should work correctly.
13138    lt_compile=`echo "$ac_compile" | $SED \
13139    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13140    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13141    -e 's:$: $lt_compiler_flag:'`
13142    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13143    (eval "$lt_compile" 2>out/conftest.err)
13144    ac_status=$?
13145    cat out/conftest.err >&5
13146    echo "$as_me:__oline__: \$? = $ac_status" >&5
13147    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13148    then
13149      # The compiler can only warn and ignore the option if not recognized
13150      # So say no if there are warnings
13151      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13152      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13153      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13154        lt_cv_prog_compiler_c_o_CXX=yes
13155      fi
13156    fi
13157    chmod u+w . 2>&5
13158    $RM conftest*
13159    # SGI C++ compiler will create directory out/ii_files/ for
13160    # template instantiation
13161    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13162    $RM out/* && rmdir out
13163    cd ..
13164    $RM -r conftest
13165    $RM conftest*
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13169 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13173     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13174 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13175 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13176   $as_echo_n "(cached) " >&6
13177 else
13178   lt_cv_prog_compiler_c_o_CXX=no
13179    $RM -r conftest 2>/dev/null
13180    mkdir conftest
13181    cd conftest
13182    mkdir out
13183    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13185    lt_compiler_flag="-o out/conftest2.$ac_objext"
13186    # Insert the option either (1) after the last *FLAGS variable, or
13187    # (2) before a word containing "conftest.", or (3) at the end.
13188    # Note that $ac_compile itself does not contain backslashes and begins
13189    # with a dollar sign (not a hyphen), so the echo should work correctly.
13190    lt_compile=`echo "$ac_compile" | $SED \
13191    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13192    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13193    -e 's:$: $lt_compiler_flag:'`
13194    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13195    (eval "$lt_compile" 2>out/conftest.err)
13196    ac_status=$?
13197    cat out/conftest.err >&5
13198    echo "$as_me:__oline__: \$? = $ac_status" >&5
13199    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13200    then
13201      # The compiler can only warn and ignore the option if not recognized
13202      # So say no if there are warnings
13203      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13204      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13205      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13206        lt_cv_prog_compiler_c_o_CXX=yes
13207      fi
13208    fi
13209    chmod u+w . 2>&5
13210    $RM conftest*
13211    # SGI C++ compiler will create directory out/ii_files/ for
13212    # template instantiation
13213    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13214    $RM out/* && rmdir out
13215    cd ..
13216    $RM -r conftest
13217    $RM conftest*
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13221 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13226 hard_links="nottested"
13227 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13228   # do not overwrite the value of need_locks provided by the user
13229   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13230 $as_echo_n "checking if we can lock with hard links... " >&6; }
13231   hard_links=yes
13232   $RM conftest*
13233   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13234   touch conftest.a
13235   ln conftest.a conftest.b 2>&5 || hard_links=no
13236   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13238 $as_echo "$hard_links" >&6; }
13239   if test "$hard_links" = no; then
13240     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13241 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13242     need_locks=warn
13243   fi
13244 else
13245   need_locks=no
13250     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13251 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13253   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13254   case $host_os in
13255   aix[4-9]*)
13256     # If we're using GNU nm, then we don't want the "-C" option.
13257     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13258     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13259       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'
13260     else
13261       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'
13262     fi
13263     ;;
13264   pw32*)
13265     export_symbols_cmds_CXX="$ltdll_cmds"
13266   ;;
13267   cygwin* | mingw* | cegcc*)
13268     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'
13269   ;;
13270   linux* | k*bsd*-gnu)
13271     link_all_deplibs_CXX=no
13272   ;;
13273   *)
13274     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13275   ;;
13276   esac
13277   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13280 $as_echo "$ld_shlibs_CXX" >&6; }
13281 test "$ld_shlibs_CXX" = no && can_build_shared=no
13283 with_gnu_ld_CXX=$with_gnu_ld
13291 # Do we need to explicitly link libc?
13293 case "x$archive_cmds_need_lc_CXX" in
13294 x|xyes)
13295   # Assume -lc should be added
13296   archive_cmds_need_lc_CXX=yes
13298   if test "$enable_shared" = yes && test "$GCC" = yes; then
13299     case $archive_cmds_CXX in
13300     *'~'*)
13301       # FIXME: we may have to deal with multi-command sequences.
13302       ;;
13303     '$CC '*)
13304       # Test whether the compiler implicitly links with -lc since on some
13305       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13306       # to ld, don't add -lc before -lgcc.
13307       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13308 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13309       $RM conftest*
13310       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13312       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13313   (eval $ac_compile) 2>&5
13314   ac_status=$?
13315   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13316   test $ac_status = 0; } 2>conftest.err; then
13317         soname=conftest
13318         lib=conftest
13319         libobjs=conftest.$ac_objext
13320         deplibs=
13321         wl=$lt_prog_compiler_wl_CXX
13322         pic_flag=$lt_prog_compiler_pic_CXX
13323         compiler_flags=-v
13324         linker_flags=-v
13325         verstring=
13326         output_objdir=.
13327         libname=conftest
13328         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13329         allow_undefined_flag_CXX=
13330         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13331   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13332   ac_status=$?
13333   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13334   test $ac_status = 0; }
13335         then
13336           archive_cmds_need_lc_CXX=no
13337         else
13338           archive_cmds_need_lc_CXX=yes
13339         fi
13340         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13341       else
13342         cat conftest.err 1>&5
13343       fi
13344       $RM conftest*
13345       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
13346 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
13347       ;;
13348     esac
13349   fi
13350   ;;
13351 esac
13416     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13417 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13419 library_names_spec=
13420 libname_spec='lib$name'
13421 soname_spec=
13422 shrext_cmds=".so"
13423 postinstall_cmds=
13424 postuninstall_cmds=
13425 finish_cmds=
13426 finish_eval=
13427 shlibpath_var=
13428 shlibpath_overrides_runpath=unknown
13429 version_type=none
13430 dynamic_linker="$host_os ld.so"
13431 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13432 need_lib_prefix=unknown
13433 hardcode_into_libs=no
13435 # when you set need_version to no, make sure it does not cause -set_version
13436 # flags to be left without arguments
13437 need_version=unknown
13439 case $host_os in
13440 aix3*)
13441   version_type=linux
13442   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13443   shlibpath_var=LIBPATH
13445   # AIX 3 has no versioning support, so we append a major version to the name.
13446   soname_spec='${libname}${release}${shared_ext}$major'
13447   ;;
13449 aix[4-9]*)
13450   version_type=linux
13451   need_lib_prefix=no
13452   need_version=no
13453   hardcode_into_libs=yes
13454   if test "$host_cpu" = ia64; then
13455     # AIX 5 supports IA64
13456     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13457     shlibpath_var=LD_LIBRARY_PATH
13458   else
13459     # With GCC up to 2.95.x, collect2 would create an import file
13460     # for dependence libraries.  The import file would start with
13461     # the line `#! .'.  This would cause the generated library to
13462     # depend on `.', always an invalid library.  This was fixed in
13463     # development snapshots of GCC prior to 3.0.
13464     case $host_os in
13465       aix4 | aix4.[01] | aix4.[01].*)
13466       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13467            echo ' yes '
13468            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13469         :
13470       else
13471         can_build_shared=no
13472       fi
13473       ;;
13474     esac
13475     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13476     # soname into executable. Probably we can add versioning support to
13477     # collect2, so additional links can be useful in future.
13478     if test "$aix_use_runtimelinking" = yes; then
13479       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13480       # instead of lib<name>.a to let people know that these are not
13481       # typical AIX shared libraries.
13482       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13483     else
13484       # We preserve .a as extension for shared libraries through AIX4.2
13485       # and later when we are not doing run time linking.
13486       library_names_spec='${libname}${release}.a $libname.a'
13487       soname_spec='${libname}${release}${shared_ext}$major'
13488     fi
13489     shlibpath_var=LIBPATH
13490   fi
13491   ;;
13493 amigaos*)
13494   case $host_cpu in
13495   powerpc)
13496     # Since July 2007 AmigaOS4 officially supports .so libraries.
13497     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13498     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13499     ;;
13500   m68k)
13501     library_names_spec='$libname.ixlibrary $libname.a'
13502     # Create ${libname}_ixlibrary.a entries in /sys/libs.
13503     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'
13504     ;;
13505   esac
13506   ;;
13508 beos*)
13509   library_names_spec='${libname}${shared_ext}'
13510   dynamic_linker="$host_os ld.so"
13511   shlibpath_var=LIBRARY_PATH
13512   ;;
13514 bsdi[45]*)
13515   version_type=linux
13516   need_version=no
13517   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13518   soname_spec='${libname}${release}${shared_ext}$major'
13519   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13520   shlibpath_var=LD_LIBRARY_PATH
13521   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13522   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13523   # the default ld.so.conf also contains /usr/contrib/lib and
13524   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13525   # libtool to hard-code these into programs
13526   ;;
13528 cygwin* | mingw* | pw32* | cegcc*)
13529   version_type=windows
13530   shrext_cmds=".dll"
13531   need_version=no
13532   need_lib_prefix=no
13534   case $GCC,$host_os in
13535   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13536     library_names_spec='$libname.dll.a'
13537     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13538     postinstall_cmds='base_file=`basename \${file}`~
13539       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13540       dldir=$destdir/`dirname \$dlpath`~
13541       test -d \$dldir || mkdir -p \$dldir~
13542       $install_prog $dir/$dlname \$dldir/$dlname~
13543       chmod a+x \$dldir/$dlname~
13544       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13545         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13546       fi'
13547     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13548       dlpath=$dir/\$dldll~
13549        $RM \$dlpath'
13550     shlibpath_overrides_runpath=yes
13552     case $host_os in
13553     cygwin*)
13554       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13555       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13556       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13557       ;;
13558     mingw* | cegcc*)
13559       # MinGW DLLs use traditional 'lib' prefix
13560       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13561       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13562       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13563         # It is most probably a Windows format PATH printed by
13564         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13565         # path with ; separators, and with drive letters. We can handle the
13566         # drive letters (cygwin fileutils understands them), so leave them,
13567         # especially as we might pass files found there to a mingw objdump,
13568         # which wouldn't understand a cygwinified path. Ahh.
13569         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13570       else
13571         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13572       fi
13573       ;;
13574     pw32*)
13575       # pw32 DLLs use 'pw' prefix rather than 'lib'
13576       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13577       ;;
13578     esac
13579     ;;
13581   *)
13582     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13583     ;;
13584   esac
13585   dynamic_linker='Win32 ld.exe'
13586   # FIXME: first we should search . and the directory the executable is in
13587   shlibpath_var=PATH
13588   ;;
13590 darwin* | rhapsody*)
13591   dynamic_linker="$host_os dyld"
13592   version_type=darwin
13593   need_lib_prefix=no
13594   need_version=no
13595   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13596   soname_spec='${libname}${release}${major}$shared_ext'
13597   shlibpath_overrides_runpath=yes
13598   shlibpath_var=DYLD_LIBRARY_PATH
13599   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13601   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13602   ;;
13604 dgux*)
13605   version_type=linux
13606   need_lib_prefix=no
13607   need_version=no
13608   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13609   soname_spec='${libname}${release}${shared_ext}$major'
13610   shlibpath_var=LD_LIBRARY_PATH
13611   ;;
13613 freebsd1*)
13614   dynamic_linker=no
13615   ;;
13617 freebsd* | dragonfly*)
13618   # DragonFly does not have aout.  When/if they implement a new
13619   # versioning mechanism, adjust this.
13620   if test -x /usr/bin/objformat; then
13621     objformat=`/usr/bin/objformat`
13622   else
13623     case $host_os in
13624     freebsd[123]*) objformat=aout ;;
13625     *) objformat=elf ;;
13626     esac
13627   fi
13628   version_type=freebsd-$objformat
13629   case $version_type in
13630     freebsd-elf*)
13631       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13632       need_version=no
13633       need_lib_prefix=no
13634       ;;
13635     freebsd-*)
13636       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13637       need_version=yes
13638       ;;
13639   esac
13640   shlibpath_var=LD_LIBRARY_PATH
13641   case $host_os in
13642   freebsd2*)
13643     shlibpath_overrides_runpath=yes
13644     ;;
13645   freebsd3.[01]* | freebsdelf3.[01]*)
13646     shlibpath_overrides_runpath=yes
13647     hardcode_into_libs=yes
13648     ;;
13649   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13650   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13651     shlibpath_overrides_runpath=no
13652     hardcode_into_libs=yes
13653     ;;
13654   *) # from 4.6 on, and DragonFly
13655     shlibpath_overrides_runpath=yes
13656     hardcode_into_libs=yes
13657     ;;
13658   esac
13659   ;;
13661 gnu*)
13662   version_type=linux
13663   need_lib_prefix=no
13664   need_version=no
13665   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13666   soname_spec='${libname}${release}${shared_ext}$major'
13667   shlibpath_var=LD_LIBRARY_PATH
13668   hardcode_into_libs=yes
13669   ;;
13671 hpux9* | hpux10* | hpux11*)
13672   # Give a soname corresponding to the major version so that dld.sl refuses to
13673   # link against other versions.
13674   version_type=sunos
13675   need_lib_prefix=no
13676   need_version=no
13677   case $host_cpu in
13678   ia64*)
13679     shrext_cmds='.so'
13680     hardcode_into_libs=yes
13681     dynamic_linker="$host_os dld.so"
13682     shlibpath_var=LD_LIBRARY_PATH
13683     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13684     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13685     soname_spec='${libname}${release}${shared_ext}$major'
13686     if test "X$HPUX_IA64_MODE" = X32; then
13687       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13688     else
13689       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13690     fi
13691     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13692     ;;
13693   hppa*64*)
13694     shrext_cmds='.sl'
13695     hardcode_into_libs=yes
13696     dynamic_linker="$host_os dld.sl"
13697     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13698     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13699     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13700     soname_spec='${libname}${release}${shared_ext}$major'
13701     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13702     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13703     ;;
13704   *)
13705     shrext_cmds='.sl'
13706     dynamic_linker="$host_os dld.sl"
13707     shlibpath_var=SHLIB_PATH
13708     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13709     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13710     soname_spec='${libname}${release}${shared_ext}$major'
13711     ;;
13712   esac
13713   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13714   postinstall_cmds='chmod 555 $lib'
13715   ;;
13717 interix[3-9]*)
13718   version_type=linux
13719   need_lib_prefix=no
13720   need_version=no
13721   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13722   soname_spec='${libname}${release}${shared_ext}$major'
13723   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13724   shlibpath_var=LD_LIBRARY_PATH
13725   shlibpath_overrides_runpath=no
13726   hardcode_into_libs=yes
13727   ;;
13729 irix5* | irix6* | nonstopux*)
13730   case $host_os in
13731     nonstopux*) version_type=nonstopux ;;
13732     *)
13733         if test "$lt_cv_prog_gnu_ld" = yes; then
13734                 version_type=linux
13735         else
13736                 version_type=irix
13737         fi ;;
13738   esac
13739   need_lib_prefix=no
13740   need_version=no
13741   soname_spec='${libname}${release}${shared_ext}$major'
13742   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13743   case $host_os in
13744   irix5* | nonstopux*)
13745     libsuff= shlibsuff=
13746     ;;
13747   *)
13748     case $LD in # libtool.m4 will add one of these switches to LD
13749     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13750       libsuff= shlibsuff= libmagic=32-bit;;
13751     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13752       libsuff=32 shlibsuff=N32 libmagic=N32;;
13753     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13754       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13755     *) libsuff= shlibsuff= libmagic=never-match;;
13756     esac
13757     ;;
13758   esac
13759   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13760   shlibpath_overrides_runpath=no
13761   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13762   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13763   hardcode_into_libs=yes
13764   ;;
13766 # No shared lib support for Linux oldld, aout, or coff.
13767 linux*oldld* | linux*aout* | linux*coff*)
13768   dynamic_linker=no
13769   ;;
13771 # This must be Linux ELF.
13772 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13773   version_type=linux
13774   need_lib_prefix=no
13775   need_version=no
13776   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13777   soname_spec='${libname}${release}${shared_ext}$major'
13778   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13779   shlibpath_var=LD_LIBRARY_PATH
13780   shlibpath_overrides_runpath=no
13781   # Some binutils ld are patched to set DT_RUNPATH
13782   save_LDFLAGS=$LDFLAGS
13783   save_libdir=$libdir
13784   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13785        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
13786   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13787 /* end confdefs.h.  */
13790 main ()
13793   ;
13794   return 0;
13796 _ACEOF
13797 if ac_fn_cxx_try_link "$LINENO"; then :
13798   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13799   shlibpath_overrides_runpath=yes
13802 rm -f core conftest.err conftest.$ac_objext \
13803     conftest$ac_exeext conftest.$ac_ext
13804   LDFLAGS=$save_LDFLAGS
13805   libdir=$save_libdir
13807   # This implies no fast_install, which is unacceptable.
13808   # Some rework will be needed to allow for fast_install
13809   # before this can be enabled.
13810   hardcode_into_libs=yes
13812   # Append ld.so.conf contents to the search path
13813   if test -f /etc/ld.so.conf; then
13814     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' ' '`
13815     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13816   fi
13818   # We used to test for /lib/ld.so.1 and disable shared libraries on
13819   # powerpc, because MkLinux only supported shared libraries with the
13820   # GNU dynamic linker.  Since this was broken with cross compilers,
13821   # most powerpc-linux boxes support dynamic linking these days and
13822   # people can always --disable-shared, the test was removed, and we
13823   # assume the GNU/Linux dynamic linker is in use.
13824   dynamic_linker='GNU/Linux ld.so'
13825   ;;
13827 netbsdelf*-gnu)
13828   version_type=linux
13829   need_lib_prefix=no
13830   need_version=no
13831   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13832   soname_spec='${libname}${release}${shared_ext}$major'
13833   shlibpath_var=LD_LIBRARY_PATH
13834   shlibpath_overrides_runpath=no
13835   hardcode_into_libs=yes
13836   dynamic_linker='NetBSD ld.elf_so'
13837   ;;
13839 netbsd*)
13840   version_type=sunos
13841   need_lib_prefix=no
13842   need_version=no
13843   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13844     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13845     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13846     dynamic_linker='NetBSD (a.out) ld.so'
13847   else
13848     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13849     soname_spec='${libname}${release}${shared_ext}$major'
13850     dynamic_linker='NetBSD ld.elf_so'
13851   fi
13852   shlibpath_var=LD_LIBRARY_PATH
13853   shlibpath_overrides_runpath=yes
13854   hardcode_into_libs=yes
13855   ;;
13857 newsos6)
13858   version_type=linux
13859   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13860   shlibpath_var=LD_LIBRARY_PATH
13861   shlibpath_overrides_runpath=yes
13862   ;;
13864 *nto* | *qnx*)
13865   version_type=qnx
13866   need_lib_prefix=no
13867   need_version=no
13868   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13869   soname_spec='${libname}${release}${shared_ext}$major'
13870   shlibpath_var=LD_LIBRARY_PATH
13871   shlibpath_overrides_runpath=no
13872   hardcode_into_libs=yes
13873   dynamic_linker='ldqnx.so'
13874   ;;
13876 openbsd*)
13877   version_type=sunos
13878   sys_lib_dlsearch_path_spec="/usr/lib"
13879   need_lib_prefix=no
13880   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13881   case $host_os in
13882     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
13883     *)                          need_version=no  ;;
13884   esac
13885   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13886   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13887   shlibpath_var=LD_LIBRARY_PATH
13888   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13889     case $host_os in
13890       openbsd2.[89] | openbsd2.[89].*)
13891         shlibpath_overrides_runpath=no
13892         ;;
13893       *)
13894         shlibpath_overrides_runpath=yes
13895         ;;
13896       esac
13897   else
13898     shlibpath_overrides_runpath=yes
13899   fi
13900   ;;
13902 os2*)
13903   libname_spec='$name'
13904   shrext_cmds=".dll"
13905   need_lib_prefix=no
13906   library_names_spec='$libname${shared_ext} $libname.a'
13907   dynamic_linker='OS/2 ld.exe'
13908   shlibpath_var=LIBPATH
13909   ;;
13911 osf3* | osf4* | osf5*)
13912   version_type=osf
13913   need_lib_prefix=no
13914   need_version=no
13915   soname_spec='${libname}${release}${shared_ext}$major'
13916   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13917   shlibpath_var=LD_LIBRARY_PATH
13918   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13919   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13920   ;;
13922 rdos*)
13923   dynamic_linker=no
13924   ;;
13926 solaris*)
13927   version_type=linux
13928   need_lib_prefix=no
13929   need_version=no
13930   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13931   soname_spec='${libname}${release}${shared_ext}$major'
13932   shlibpath_var=LD_LIBRARY_PATH
13933   shlibpath_overrides_runpath=yes
13934   hardcode_into_libs=yes
13935   # ldd complains unless libraries are executable
13936   postinstall_cmds='chmod +x $lib'
13937   ;;
13939 sunos4*)
13940   version_type=sunos
13941   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13942   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13943   shlibpath_var=LD_LIBRARY_PATH
13944   shlibpath_overrides_runpath=yes
13945   if test "$with_gnu_ld" = yes; then
13946     need_lib_prefix=no
13947   fi
13948   need_version=yes
13949   ;;
13951 sysv4 | sysv4.3*)
13952   version_type=linux
13953   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13954   soname_spec='${libname}${release}${shared_ext}$major'
13955   shlibpath_var=LD_LIBRARY_PATH
13956   case $host_vendor in
13957     sni)
13958       shlibpath_overrides_runpath=no
13959       need_lib_prefix=no
13960       runpath_var=LD_RUN_PATH
13961       ;;
13962     siemens)
13963       need_lib_prefix=no
13964       ;;
13965     motorola)
13966       need_lib_prefix=no
13967       need_version=no
13968       shlibpath_overrides_runpath=no
13969       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13970       ;;
13971   esac
13972   ;;
13974 sysv4*MP*)
13975   if test -d /usr/nec ;then
13976     version_type=linux
13977     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13978     soname_spec='$libname${shared_ext}.$major'
13979     shlibpath_var=LD_LIBRARY_PATH
13980   fi
13981   ;;
13983 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13984   version_type=freebsd-elf
13985   need_lib_prefix=no
13986   need_version=no
13987   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13988   soname_spec='${libname}${release}${shared_ext}$major'
13989   shlibpath_var=LD_LIBRARY_PATH
13990   shlibpath_overrides_runpath=yes
13991   hardcode_into_libs=yes
13992   if test "$with_gnu_ld" = yes; then
13993     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13994   else
13995     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13996     case $host_os in
13997       sco3.2v5*)
13998         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13999         ;;
14000     esac
14001   fi
14002   sys_lib_dlsearch_path_spec='/usr/lib'
14003   ;;
14005 tpf*)
14006   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14007   version_type=linux
14008   need_lib_prefix=no
14009   need_version=no
14010   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14011   shlibpath_var=LD_LIBRARY_PATH
14012   shlibpath_overrides_runpath=no
14013   hardcode_into_libs=yes
14014   ;;
14016 uts4*)
14017   version_type=linux
14018   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14019   soname_spec='${libname}${release}${shared_ext}$major'
14020   shlibpath_var=LD_LIBRARY_PATH
14021   ;;
14024   dynamic_linker=no
14025   ;;
14026 esac
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14028 $as_echo "$dynamic_linker" >&6; }
14029 test "$dynamic_linker" = no && can_build_shared=no
14031 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14032 if test "$GCC" = yes; then
14033   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14036 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14037   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14039 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14040   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14078     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14079 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14080 hardcode_action_CXX=
14081 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14082    test -n "$runpath_var_CXX" ||
14083    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14085   # We can hardcode non-existent directories.
14086   if test "$hardcode_direct_CXX" != no &&
14087      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14088      # have to relink, otherwise we might link with an installed library
14089      # when we should be linking with a yet-to-be-installed one
14090      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14091      test "$hardcode_minus_L_CXX" != no; then
14092     # Linking always hardcodes the temporary library directory.
14093     hardcode_action_CXX=relink
14094   else
14095     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14096     hardcode_action_CXX=immediate
14097   fi
14098 else
14099   # We cannot hardcode anything, or else we can only hardcode existing
14100   # directories.
14101   hardcode_action_CXX=unsupported
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14104 $as_echo "$hardcode_action_CXX" >&6; }
14106 if test "$hardcode_action_CXX" = relink ||
14107    test "$inherit_rpath_CXX" = yes; then
14108   # Fast installation is not supported
14109   enable_fast_install=no
14110 elif test "$shlibpath_overrides_runpath" = yes ||
14111      test "$enable_shared" = no; then
14112   # Fast installation is not necessary
14113   enable_fast_install=needless
14119     
14122   fi # test -n "$compiler"
14124   CC=$lt_save_CC
14125   LDCXX=$LD
14126   LD=$lt_save_LD
14127   GCC=$lt_save_GCC
14128   with_gnu_ld=$lt_save_with_gnu_ld
14129   lt_cv_path_LDCXX=$lt_cv_path_LD
14130   lt_cv_path_LD=$lt_save_path_LD
14131   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14132   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14133 fi # test "$_lt_caught_CXX_error" != yes
14135 ac_ext=c
14136 ac_cpp='$CPP $CPPFLAGS'
14137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14148        
14149        
14153         ac_config_commands="$ac_config_commands libtool"
14158 # Only expand once:
14163 if test "x$CC" != xcc; then
14164   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
14165 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
14166 else
14167   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
14168 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
14170 set dummy $CC; ac_cc=`$as_echo "$2" |
14171                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
14172 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
14173   $as_echo_n "(cached) " >&6
14174 else
14175   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14176 /* end confdefs.h.  */
14179 main ()
14182   ;
14183   return 0;
14185 _ACEOF
14186 # Make sure it works both with $CC and with simple cc.
14187 # We do the test twice because some compilers refuse to overwrite an
14188 # existing .o file with -o, though they will create one.
14189 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
14190 rm -f conftest2.*
14191 if { { case "(($ac_try" in
14192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14193   *) ac_try_echo=$ac_try;;
14194 esac
14195 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14196 $as_echo "$ac_try_echo"; } >&5
14197   (eval "$ac_try") 2>&5
14198   ac_status=$?
14199   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14200   test $ac_status = 0; } &&
14201    test -f conftest2.$ac_objext && { { case "(($ac_try" in
14202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14203   *) ac_try_echo=$ac_try;;
14204 esac
14205 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14206 $as_echo "$ac_try_echo"; } >&5
14207   (eval "$ac_try") 2>&5
14208   ac_status=$?
14209   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14210   test $ac_status = 0; };
14211 then
14212   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
14213   if test "x$CC" != xcc; then
14214     # Test first that cc exists at all.
14215     if { ac_try='cc -c conftest.$ac_ext >&5'
14216   { { case "(($ac_try" in
14217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14218   *) ac_try_echo=$ac_try;;
14219 esac
14220 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14221 $as_echo "$ac_try_echo"; } >&5
14222   (eval "$ac_try") 2>&5
14223   ac_status=$?
14224   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14225   test $ac_status = 0; }; }; then
14226       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
14227       rm -f conftest2.*
14228       if { { case "(($ac_try" in
14229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14230   *) ac_try_echo=$ac_try;;
14231 esac
14232 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14233 $as_echo "$ac_try_echo"; } >&5
14234   (eval "$ac_try") 2>&5
14235   ac_status=$?
14236   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14237   test $ac_status = 0; } &&
14238          test -f conftest2.$ac_objext && { { case "(($ac_try" in
14239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14240   *) ac_try_echo=$ac_try;;
14241 esac
14242 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14243 $as_echo "$ac_try_echo"; } >&5
14244   (eval "$ac_try") 2>&5
14245   ac_status=$?
14246   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14247   test $ac_status = 0; };
14248       then
14249         # cc works too.
14250         :
14251       else
14252         # cc exists but doesn't like -o.
14253         eval ac_cv_prog_cc_${ac_cc}_c_o=no
14254       fi
14255     fi
14256   fi
14257 else
14258   eval ac_cv_prog_cc_${ac_cc}_c_o=no
14260 rm -f core conftest*
14263 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
14264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14265 $as_echo "yes" >&6; }
14266 else
14267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14268 $as_echo "no" >&6; }
14269   
14270 $as_echo "@%:@define NO_MINUS_C_MINUS_O 1" >>confdefs.h
14274 # expand $ac_aux_dir to an absolute path
14275 am_aux_dir=`cd $ac_aux_dir && pwd`
14277 # FIXME: we rely on the cache variable name because
14278 # there is no other way.
14279 set dummy $CC
14280 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
14281 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
14282 if test "$am_t" != yes; then
14283    # Losing compiler, so override with the script.
14284    # FIXME: It is wrong to rewrite CC.
14285    # But if we don't then we get into trouble of one sort or another.
14286    # A longer-term fix would be to have automake use am__CC in this case,
14287    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
14288    CC="$am_aux_dir/compile $CC"
14293  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14294 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14295 if test "${ac_cv_c_bigendian+set}" = set; then :
14296   $as_echo_n "(cached) " >&6
14297 else
14298   ac_cv_c_bigendian=unknown
14299     # See if we're dealing with a universal compiler.
14300     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14301 /* end confdefs.h.  */
14302 #ifndef __APPLE_CC__
14303                not a universal capable compiler
14304              #endif
14305              typedef int dummy;
14306             
14307 _ACEOF
14308 if ac_fn_c_try_compile "$LINENO"; then :
14309   
14310         # Check for potential -arch flags.  It is not universal unless
14311         # there are at least two -arch flags with different values.
14312         ac_arch=
14313         ac_prev=
14314         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14315          if test -n "$ac_prev"; then
14316            case $ac_word in
14317              i?86 | x86_64 | ppc | ppc64)
14318                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14319                  ac_arch=$ac_word
14320                else
14321                  ac_cv_c_bigendian=universal
14322                  break
14323                fi
14324                ;;
14325            esac
14326            ac_prev=
14327          elif test "x$ac_word" = "x-arch"; then
14328            ac_prev=arch
14329          fi
14330        done
14332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14333     if test $ac_cv_c_bigendian = unknown; then
14334       # See if sys/param.h defines the BYTE_ORDER macro.
14335       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14336 /* end confdefs.h.  */
14337 #include <sys/types.h>
14338              #include <sys/param.h>
14339            
14341 main ()
14343 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14344                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14345                      && LITTLE_ENDIAN)
14346               bogus endian macros
14347              #endif
14348            
14349   ;
14350   return 0;
14352 _ACEOF
14353 if ac_fn_c_try_compile "$LINENO"; then :
14354   # It does; now see whether it defined to BIG_ENDIAN or not.
14355          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14356 /* end confdefs.h.  */
14357 #include <sys/types.h>
14358                 #include <sys/param.h>
14359               
14361 main ()
14363 #if BYTE_ORDER != BIG_ENDIAN
14364                  not big endian
14365                 #endif
14366               
14367   ;
14368   return 0;
14370 _ACEOF
14371 if ac_fn_c_try_compile "$LINENO"; then :
14372   ac_cv_c_bigendian=yes
14373 else
14374   ac_cv_c_bigendian=no
14376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14379     fi
14380     if test $ac_cv_c_bigendian = unknown; then
14381       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14382       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14383 /* end confdefs.h.  */
14384 #include <limits.h>
14385            
14387 main ()
14389 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14390               bogus endian macros
14391              #endif
14392            
14393   ;
14394   return 0;
14396 _ACEOF
14397 if ac_fn_c_try_compile "$LINENO"; then :
14398   # It does; now see whether it defined to _BIG_ENDIAN or not.
14399          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14400 /* end confdefs.h.  */
14401 #include <limits.h>
14402               
14404 main ()
14406 #ifndef _BIG_ENDIAN
14407                  not big endian
14408                 #endif
14409               
14410   ;
14411   return 0;
14413 _ACEOF
14414 if ac_fn_c_try_compile "$LINENO"; then :
14415   ac_cv_c_bigendian=yes
14416 else
14417   ac_cv_c_bigendian=no
14419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14422     fi
14423     if test $ac_cv_c_bigendian = unknown; then
14424       # Compile a test program.
14425       if test "$cross_compiling" = yes; then :
14426   # Try to guess by grepping values from an object file.
14427          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14428 /* end confdefs.h.  */
14429 short int ascii_mm[] =
14430                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14431                 short int ascii_ii[] =
14432                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14433                 int use_ascii (int i) {
14434                   return ascii_mm[i] + ascii_ii[i];
14435                 }
14436                 short int ebcdic_ii[] =
14437                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14438                 short int ebcdic_mm[] =
14439                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14440                 int use_ebcdic (int i) {
14441                   return ebcdic_mm[i] + ebcdic_ii[i];
14442                 }
14443                 extern int foo;
14444               
14446 main ()
14448 return use_ascii (foo) == use_ebcdic (foo);
14449   ;
14450   return 0;
14452 _ACEOF
14453 if ac_fn_c_try_compile "$LINENO"; then :
14454   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14455               ac_cv_c_bigendian=yes
14456             fi
14457             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14458               if test "$ac_cv_c_bigendian" = unknown; then
14459                 ac_cv_c_bigendian=no
14460               else
14461                 # finding both strings is unlikely to happen, but who knows?
14462                 ac_cv_c_bigendian=unknown
14463               fi
14464             fi
14466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14467 else
14468   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14469 /* end confdefs.h.  */
14470 $ac_includes_default
14472 main ()
14475              /* Are we little or big endian?  From Harbison&Steele.  */
14476              union
14477              {
14478                long int l;
14479                char c[sizeof (long int)];
14480              } u;
14481              u.l = 1;
14482              return u.c[sizeof (long int) - 1] == 1;
14483            
14484   ;
14485   return 0;
14487 _ACEOF
14488 if ac_fn_c_try_run "$LINENO"; then :
14489   ac_cv_c_bigendian=no
14490 else
14491   ac_cv_c_bigendian=yes
14493 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14494   conftest.$ac_objext conftest.beam conftest.$ac_ext
14497     fi
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14500 $as_echo "$ac_cv_c_bigendian" >&6; }
14501  case $ac_cv_c_bigendian in #(
14502    yes)
14503      $as_echo "@%:@define WORDS_BIGENDIAN 1" >>confdefs.h
14504 ;; #(
14505    no)
14506       ;; #(
14507    universal)
14508         
14509 $as_echo "@%:@define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14511      ;; #(
14512    *)
14513      as_fn_error $? "unknown endianness
14514  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5  ;;
14515  esac
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14518 $as_echo_n "checking for inline... " >&6; }
14519 if test "${ac_cv_c_inline+set}" = set; then :
14520   $as_echo_n "(cached) " >&6
14521 else
14522   ac_cv_c_inline=no
14523 for ac_kw in inline __inline__ __inline; do
14524   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14525 /* end confdefs.h.  */
14526 #ifndef __cplusplus
14527 typedef int foo_t;
14528 static $ac_kw foo_t static_foo () {return 0; }
14529 $ac_kw foo_t foo () {return 0; }
14530 #endif
14532 _ACEOF
14533 if ac_fn_c_try_compile "$LINENO"; then :
14534   ac_cv_c_inline=$ac_kw
14536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14537   test "$ac_cv_c_inline" != no && break
14538 done
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14542 $as_echo "$ac_cv_c_inline" >&6; }
14544 case $ac_cv_c_inline in
14545   inline | yes) ;;
14546   *)
14547     case $ac_cv_c_inline in
14548       no) ac_val=;;
14549       *) ac_val=$ac_cv_c_inline;;
14550     esac
14551     cat >>confdefs.h <<_ACEOF
14552 #ifndef __cplusplus
14553 #define inline $ac_val
14554 #endif
14555 _ACEOF
14556     ;;
14557 esac
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
14560 $as_echo_n "checking for working volatile... " >&6; }
14561 if test "${ac_cv_c_volatile+set}" = set; then :
14562   $as_echo_n "(cached) " >&6
14563 else
14564   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14565 /* end confdefs.h.  */
14568 main ()
14571 volatile int x;
14572 int * volatile y = (int *) 0;
14573 return !x && !y;
14574   ;
14575   return 0;
14577 _ACEOF
14578 if ac_fn_c_try_compile "$LINENO"; then :
14579   ac_cv_c_volatile=yes
14580 else
14581   ac_cv_c_volatile=no
14583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
14586 $as_echo "$ac_cv_c_volatile" >&6; }
14587 if test $ac_cv_c_volatile = no; then
14588   
14589 $as_echo "@%:@define volatile /**/" >>confdefs.h
14596 # Just to make sure we dont do debug on default!
14597 debug=no
14599 @%:@ Check whether --with-debug was given.
14600 if test "${with_debug+set}" = set; then :
14601   withval=$with_debug; debug="$withval"
14604 if test "x$debug" == "xyes"; then
14605   
14606 $as_echo "@%:@define DEBUG 1" >>confdefs.h
14607   
14610 # a lang needs math functions...
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
14612 $as_echo_n "checking for pow in -lm... " >&6; }
14613 if test "${ac_cv_lib_m_pow+set}" = set; then :
14614   $as_echo_n "(cached) " >&6
14615 else
14616   ac_check_lib_save_LIBS=$LIBS
14617 LIBS="-lm  $LIBS"
14618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14619 /* end confdefs.h.  */
14621 /* Override any GCC internal prototype to avoid an error.
14622    Use char because int might match the return type of a GCC
14623    builtin and then its argument prototype would still apply.  */
14624 #ifdef __cplusplus
14625 extern "C"
14626 #endif
14627 char pow ();
14629 main ()
14631 return pow ();
14632   ;
14633   return 0;
14635 _ACEOF
14636 if ac_fn_c_try_link "$LINENO"; then :
14637   ac_cv_lib_m_pow=yes
14638 else
14639   ac_cv_lib_m_pow=no
14641 rm -f core conftest.err conftest.$ac_objext \
14642     conftest$ac_exeext conftest.$ac_ext
14643 LIBS=$ac_check_lib_save_LIBS
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
14646 $as_echo "$ac_cv_lib_m_pow" >&6; }
14647 if test "x$ac_cv_lib_m_pow" = x""yes; then :
14648   cat >>confdefs.h <<_ACEOF
14649 @%:@define HAVE_LIBM 1
14650 _ACEOF
14652   LIBS="-lm $LIBS"
14654 else
14655   as_fn_error $? "System Math library is required!" "$LINENO" 5 
14659 # used for constant folding and rounding
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_init in -lgmp" >&5
14661 $as_echo_n "checking for __gmpz_init in -lgmp... " >&6; }
14662 if test "${ac_cv_lib_gmp___gmpz_init+set}" = set; then :
14663   $as_echo_n "(cached) " >&6
14664 else
14665   ac_check_lib_save_LIBS=$LIBS
14666 LIBS="-lgmp  $LIBS"
14667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14668 /* end confdefs.h.  */
14670 /* Override any GCC internal prototype to avoid an error.
14671    Use char because int might match the return type of a GCC
14672    builtin and then its argument prototype would still apply.  */
14673 #ifdef __cplusplus
14674 extern "C"
14675 #endif
14676 char __gmpz_init ();
14678 main ()
14680 return __gmpz_init ();
14681   ;
14682   return 0;
14684 _ACEOF
14685 if ac_fn_c_try_link "$LINENO"; then :
14686   ac_cv_lib_gmp___gmpz_init=yes
14687 else
14688   ac_cv_lib_gmp___gmpz_init=no
14690 rm -f core conftest.err conftest.$ac_objext \
14691     conftest$ac_exeext conftest.$ac_ext
14692 LIBS=$ac_check_lib_save_LIBS
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_init" >&5
14695 $as_echo "$ac_cv_lib_gmp___gmpz_init" >&6; }
14696 if test "x$ac_cv_lib_gmp___gmpz_init" = x""yes; then :
14697   cat >>confdefs.h <<_ACEOF
14698 @%:@define HAVE_LIBGMP 1
14699 _ACEOF
14701   LIBS="-lgmp $LIBS"
14703 else
14704   as_fn_error $? "GNU MP not found, see http://gmplib.org/" "$LINENO" 5 
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpfr_init  in -lmpfr" >&5
14708 $as_echo_n "checking for mpfr_init  in -lmpfr... " >&6; }
14709 if test "${ac_cv_lib_mpfr_mpfr_init_+set}" = set; then :
14710   $as_echo_n "(cached) " >&6
14711 else
14712   ac_check_lib_save_LIBS=$LIBS
14713 LIBS="-lmpfr  $LIBS"
14714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14715 /* end confdefs.h.  */
14717 /* Override any GCC internal prototype to avoid an error.
14718    Use char because int might match the return type of a GCC
14719    builtin and then its argument prototype would still apply.  */
14720 #ifdef __cplusplus
14721 extern "C"
14722 #endif
14723 char mpfr_init  ();
14725 main ()
14727 return mpfr_init  ();
14728   ;
14729   return 0;
14731 _ACEOF
14732 if ac_fn_c_try_link "$LINENO"; then :
14733   ac_cv_lib_mpfr_mpfr_init_=yes
14734 else
14735   ac_cv_lib_mpfr_mpfr_init_=no
14737 rm -f core conftest.err conftest.$ac_objext \
14738     conftest$ac_exeext conftest.$ac_ext
14739 LIBS=$ac_check_lib_save_LIBS
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpfr_mpfr_init_" >&5
14742 $as_echo "$ac_cv_lib_mpfr_mpfr_init_" >&6; }
14743 if test "x$ac_cv_lib_mpfr_mpfr_init_" = x""yes; then :
14744   cat >>confdefs.h <<_ACEOF
14745 @%:@define HAVE_LIBMPFR 1
14746 _ACEOF
14748   LIBS="-lmpfr $LIBS"
14750 else
14751   as_fn_error $? "MPFR not found, see http://www.mpfr.org/" "$LINENO" 5 
14754 # The cast to long int works around a bug in the HP C Compiler
14755 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14756 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14757 # This bug is HP SR number 8606223364.
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of mp_limb_t" >&5
14759 $as_echo_n "checking size of mp_limb_t... " >&6; }
14760 if test "${ac_cv_sizeof_mp_limb_t+set}" = set; then :
14761   $as_echo_n "(cached) " >&6
14762 else
14763   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (mp_limb_t))" "ac_cv_sizeof_mp_limb_t"        "#include <gmp.h>
14764 "; then :
14765   
14766 else
14767   if test "$ac_cv_type_mp_limb_t" = yes; then
14768      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14769 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14770 as_fn_error 77 "cannot compute sizeof (mp_limb_t)
14771 See \`config.log' for more details" "$LINENO" 5 ; }
14772    else
14773      ac_cv_sizeof_mp_limb_t=0
14774    fi
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_mp_limb_t" >&5
14779 $as_echo "$ac_cv_sizeof_mp_limb_t" >&6; }
14783 cat >>confdefs.h <<_ACEOF
14784 @%:@define SIZEOF_MP_LIMB_T $ac_cv_sizeof_mp_limb_t
14785 _ACEOF
14789 VL_LIB_READLINE
14790 if test "x$vl_cv_lib_readline" = "xno"; then :
14791   as_fn_error $? "libreadline is required for Crules. \
14792 On Debian this can be found in libreadline5-dev. On RedHat \
14793 this can be found in readline-devel." "$LINENO" 5 
14795 for ac_func in dlopen
14796 do :
14797   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14798 if test "x$ac_cv_func_dlopen" = x""yes; then :
14799   cat >>confdefs.h <<_ACEOF
14800 @%:@define HAVE_DLOPEN 1
14801 _ACEOF
14804 done
14807 gl_VISIBILITY
14812 # Extract the first word of "mv", so it can be a program name with args.
14813 set dummy mv; ac_word=$2
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14815 $as_echo_n "checking for $ac_word... " >&6; }
14816 if test "${ac_cv_path_MV+set}" = set; then :
14817   $as_echo_n "(cached) " >&6
14818 else
14819   case $MV in
14820   [\\/]* | ?:[\\/]*)
14821   ac_cv_path_MV="$MV" # Let the user override the test with a path.
14822   ;;
14823   *)
14824   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14825 for as_dir in $PATH
14827   IFS=$as_save_IFS
14828   test -z "$as_dir" && as_dir=.
14829     for ac_exec_ext in '' $ac_executable_extensions; do
14830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14831     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
14832     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14833     break 2
14834   fi
14835 done
14836   done
14837 IFS=$as_save_IFS
14839   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
14840   ;;
14841 esac
14843 MV=$ac_cv_path_MV
14844 if test -n "$MV"; then
14845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
14846 $as_echo "$MV" >&6; }
14847 else
14848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14849 $as_echo "no" >&6; }
14853 # Extract the first word of "rm", so it can be a program name with args.
14854 set dummy rm; ac_word=$2
14855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14856 $as_echo_n "checking for $ac_word... " >&6; }
14857 if test "${ac_cv_path_RM+set}" = set; then :
14858   $as_echo_n "(cached) " >&6
14859 else
14860   case $RM in
14861   [\\/]* | ?:[\\/]*)
14862   ac_cv_path_RM="$RM" # Let the user override the test with a path.
14863   ;;
14864   *)
14865   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14866 for as_dir in $PATH
14868   IFS=$as_save_IFS
14869   test -z "$as_dir" && as_dir=.
14870     for ac_exec_ext in '' $ac_executable_extensions; do
14871   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14872     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
14873     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14874     break 2
14875   fi
14876 done
14877   done
14878 IFS=$as_save_IFS
14880   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
14881   ;;
14882 esac
14884 RM=$ac_cv_path_RM
14885 if test -n "$RM"; then
14886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
14887 $as_echo "$RM" >&6; }
14888 else
14889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14890 $as_echo "no" >&6; }
14894 # Extract the first word of "cp", so it can be a program name with args.
14895 set dummy cp; ac_word=$2
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14897 $as_echo_n "checking for $ac_word... " >&6; }
14898 if test "${ac_cv_path_CP+set}" = set; then :
14899   $as_echo_n "(cached) " >&6
14900 else
14901   case $CP in
14902   [\\/]* | ?:[\\/]*)
14903   ac_cv_path_CP="$CP" # Let the user override the test with a path.
14904   ;;
14905   *)
14906   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14907 for as_dir in $PATH
14909   IFS=$as_save_IFS
14910   test -z "$as_dir" && as_dir=.
14911     for ac_exec_ext in '' $ac_executable_extensions; do
14912   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14913     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
14914     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14915     break 2
14916   fi
14917 done
14918   done
14919 IFS=$as_save_IFS
14921   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
14922   ;;
14923 esac
14925 CP=$ac_cv_path_CP
14926 if test -n "$CP"; then
14927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
14928 $as_echo "$CP" >&6; }
14929 else
14930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14931 $as_echo "no" >&6; }
14935 # Extract the first word of "sed", so it can be a program name with args.
14936 set dummy sed; ac_word=$2
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14938 $as_echo_n "checking for $ac_word... " >&6; }
14939 if test "${ac_cv_path_SED+set}" = set; then :
14940   $as_echo_n "(cached) " >&6
14941 else
14942   case $SED in
14943   [\\/]* | ?:[\\/]*)
14944   ac_cv_path_SED="$SED" # Let the user override the test with a path.
14945   ;;
14946   *)
14947   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14948 for as_dir in $PATH
14950   IFS=$as_save_IFS
14951   test -z "$as_dir" && as_dir=.
14952     for ac_exec_ext in '' $ac_executable_extensions; do
14953   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14954     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
14955     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14956     break 2
14957   fi
14958 done
14959   done
14960 IFS=$as_save_IFS
14962   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
14963   ;;
14964 esac
14966 SED=$ac_cv_path_SED
14967 if test -n "$SED"; then
14968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
14969 $as_echo "$SED" >&6; }
14970 else
14971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14972 $as_echo "no" >&6; }
14976 # Extract the first word of "cmp", so it can be a program name with args.
14977 set dummy cmp; ac_word=$2
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14979 $as_echo_n "checking for $ac_word... " >&6; }
14980 if test "${ac_cv_path_CMP+set}" = set; then :
14981   $as_echo_n "(cached) " >&6
14982 else
14983   case $CMP in
14984   [\\/]* | ?:[\\/]*)
14985   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
14986   ;;
14987   *)
14988   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14989 for as_dir in $PATH
14991   IFS=$as_save_IFS
14992   test -z "$as_dir" && as_dir=.
14993     for ac_exec_ext in '' $ac_executable_extensions; do
14994   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14995     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
14996     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14997     break 2
14998   fi
14999 done
15000   done
15001 IFS=$as_save_IFS
15003   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
15004   ;;
15005 esac
15007 CMP=$ac_cv_path_CMP
15008 if test -n "$CMP"; then
15009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
15010 $as_echo "$CMP" >&6; }
15011 else
15012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15013 $as_echo "no" >&6; }
15017 # Extract the first word of "chmod", so it can be a program name with args.
15018 set dummy chmod; ac_word=$2
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15020 $as_echo_n "checking for $ac_word... " >&6; }
15021 if test "${ac_cv_path_CHMOD+set}" = set; then :
15022   $as_echo_n "(cached) " >&6
15023 else
15024   case $CHMOD in
15025   [\\/]* | ?:[\\/]*)
15026   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
15027   ;;
15028   *)
15029   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15030 for as_dir in $PATH
15032   IFS=$as_save_IFS
15033   test -z "$as_dir" && as_dir=.
15034     for ac_exec_ext in '' $ac_executable_extensions; do
15035   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15036     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
15037     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15038     break 2
15039   fi
15040 done
15041   done
15042 IFS=$as_save_IFS
15044   test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD="chmod"
15045   ;;
15046 esac
15048 CHMOD=$ac_cv_path_CHMOD
15049 if test -n "$CHMOD"; then
15050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
15051 $as_echo "$CHMOD" >&6; }
15052 else
15053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15054 $as_echo "no" >&6; }
15058 # Extract the first word of "hostname", so it can be a program name with args.
15059 set dummy hostname; ac_word=$2
15060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15061 $as_echo_n "checking for $ac_word... " >&6; }
15062 if test "${ac_cv_path_HOSTNAME+set}" = set; then :
15063   $as_echo_n "(cached) " >&6
15064 else
15065   case $HOSTNAME in
15066   [\\/]* | ?:[\\/]*)
15067   ac_cv_path_HOSTNAME="$HOSTNAME" # Let the user override the test with a path.
15068   ;;
15069   *)
15070   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15071 for as_dir in $PATH
15073   IFS=$as_save_IFS
15074   test -z "$as_dir" && as_dir=.
15075     for ac_exec_ext in '' $ac_executable_extensions; do
15076   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15077     ac_cv_path_HOSTNAME="$as_dir/$ac_word$ac_exec_ext"
15078     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15079     break 2
15080   fi
15081 done
15082   done
15083 IFS=$as_save_IFS
15085   test -z "$ac_cv_path_HOSTNAME" && ac_cv_path_HOSTNAME="hostname"
15086   ;;
15087 esac
15089 HOSTNAME=$ac_cv_path_HOSTNAME
15090 if test -n "$HOSTNAME"; then
15091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HOSTNAME" >&5
15092 $as_echo "$HOSTNAME" >&6; }
15093 else
15094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15095 $as_echo "no" >&6; }
15100 am__api_version='1.11'
15102 test "$program_prefix" != NONE &&
15103   program_transform_name="s&^&$program_prefix&;$program_transform_name"
15104 # Use a double $ so make ignores it.
15105 test "$program_suffix" != NONE &&
15106   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
15107 # Double any \ or $.
15108 # By default was `s,x,x', remove it if useless.
15109 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
15110 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
15112 if test x"${MISSING+set}" != xset; then
15113   case $am_aux_dir in
15114   *\ * | *\     *)
15115     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
15116   *)
15117     MISSING="\${SHELL} $am_aux_dir/missing" ;;
15118   esac
15120 # Use eval to expand $SHELL
15121 if eval "$MISSING --run true"; then
15122   am_missing_run="$MISSING --run "
15123 else
15124   am_missing_run=
15125   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
15126 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
15129 if test x"${install_sh}" != xset; then
15130   case $am_aux_dir in
15131   *\ * | *\     *)
15132     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
15133   *)
15134     install_sh="\${SHELL} $am_aux_dir/install-sh"
15135   esac
15138 # Installed binaries are usually stripped using `strip' when the user
15139 # run `make install-strip'.  However `strip' might not be the right
15140 # tool to use in cross-compilation environments, therefore Automake
15141 # will honor the `STRIP' environment variable to overrule this program.
15142 if test "$cross_compiling" != no; then
15143   if test -n "$ac_tool_prefix"; then
15144   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15145 set dummy ${ac_tool_prefix}strip; ac_word=$2
15146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15147 $as_echo_n "checking for $ac_word... " >&6; }
15148 if test "${ac_cv_prog_STRIP+set}" = set; then :
15149   $as_echo_n "(cached) " >&6
15150 else
15151   if test -n "$STRIP"; then
15152   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15153 else
15154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15155 for as_dir in $PATH
15157   IFS=$as_save_IFS
15158   test -z "$as_dir" && as_dir=.
15159     for ac_exec_ext in '' $ac_executable_extensions; do
15160   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15161     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
15162     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15163     break 2
15164   fi
15165 done
15166   done
15167 IFS=$as_save_IFS
15171 STRIP=$ac_cv_prog_STRIP
15172 if test -n "$STRIP"; then
15173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
15174 $as_echo "$STRIP" >&6; }
15175 else
15176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15177 $as_echo "no" >&6; }
15182 if test -z "$ac_cv_prog_STRIP"; then
15183   ac_ct_STRIP=$STRIP
15184   # Extract the first word of "strip", so it can be a program name with args.
15185 set dummy strip; ac_word=$2
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15187 $as_echo_n "checking for $ac_word... " >&6; }
15188 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
15189   $as_echo_n "(cached) " >&6
15190 else
15191   if test -n "$ac_ct_STRIP"; then
15192   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15193 else
15194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15195 for as_dir in $PATH
15197   IFS=$as_save_IFS
15198   test -z "$as_dir" && as_dir=.
15199     for ac_exec_ext in '' $ac_executable_extensions; do
15200   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15201     ac_cv_prog_ac_ct_STRIP="strip"
15202     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15203     break 2
15204   fi
15205 done
15206   done
15207 IFS=$as_save_IFS
15211 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15212 if test -n "$ac_ct_STRIP"; then
15213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
15214 $as_echo "$ac_ct_STRIP" >&6; }
15215 else
15216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15217 $as_echo "no" >&6; }
15220   if test "x$ac_ct_STRIP" = x; then
15221     STRIP=":"
15222   else
15223     case $cross_compiling:$ac_tool_warned in
15224 yes:)
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15227 ac_tool_warned=yes ;;
15228 esac
15229     STRIP=$ac_ct_STRIP
15230   fi
15231 else
15232   STRIP="$ac_cv_prog_STRIP"
15236 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
15238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
15239 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
15240 if test -z "$MKDIR_P"; then
15241   if test "${ac_cv_path_mkdir+set}" = set; then :
15242   $as_echo_n "(cached) " >&6
15243 else
15244   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15245 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
15247   IFS=$as_save_IFS
15248   test -z "$as_dir" && as_dir=.
15249     for ac_prog in mkdir gmkdir; do
15250          for ac_exec_ext in '' $ac_executable_extensions; do
15251            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
15252            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
15253              'mkdir (GNU coreutils) '* | \
15254              'mkdir (coreutils) '* | \
15255              'mkdir (fileutils) '4.1*)
15256                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
15257                break 3;;
15258            esac
15259          done
15260        done
15261   done
15262 IFS=$as_save_IFS
15266   test -d ./--version && rmdir ./--version
15267   if test "${ac_cv_path_mkdir+set}" = set; then
15268     MKDIR_P="$ac_cv_path_mkdir -p"
15269   else
15270     # As a last resort, use the slow shell script.  Don't cache a
15271     # value for MKDIR_P within a source directory, because that will
15272     # break other packages using the cache if that directory is
15273     # removed, or if the value is a relative name.
15274     MKDIR_P="$ac_install_sh -d"
15275   fi
15277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
15278 $as_echo "$MKDIR_P" >&6; }
15280 mkdir_p="$MKDIR_P"
15281 case $mkdir_p in
15282   [\\/$]* | ?:[\\/]*) ;;
15283   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
15284 esac
15286 rm -rf .tst 2>/dev/null
15287 mkdir .tst 2>/dev/null
15288 if test -d .tst; then
15289   am__leading_dot=.
15290 else
15291   am__leading_dot=_
15293 rmdir .tst 2>/dev/null
15295 DEPDIR="${am__leading_dot}deps"
15297 ac_config_commands="$ac_config_commands depfiles"
15300 am_make=${MAKE-make}
15301 cat > confinc << 'END'
15302 am__doit:
15303         @echo this is the am__doit target
15304 .PHONY: am__doit
15306 # If we don't find an include directive, just comment out the code.
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
15308 $as_echo_n "checking for style of include used by $am_make... " >&6; }
15309 am__include="#"
15310 am__quote=
15311 _am_result=none
15312 # First try GNU make style include.
15313 echo "include confinc" > confmf
15314 # Ignore all kinds of additional output from `make'.
15315 case `$am_make -s -f confmf 2> /dev/null` in #(
15316 *the\ am__doit\ target*)
15317   am__include=include
15318   am__quote=
15319   _am_result=GNU
15320   ;;
15321 esac
15322 # Now try BSD make style include.
15323 if test "$am__include" = "#"; then
15324    echo '.include "confinc"' > confmf
15325    case `$am_make -s -f confmf 2> /dev/null` in #(
15326    *the\ am__doit\ target*)
15327      am__include=.include
15328      am__quote="\""
15329      _am_result=BSD
15330      ;;
15331    esac
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
15336 $as_echo "$_am_result" >&6; }
15337 rm -f confinc confmf
15339 @%:@ Check whether --enable-dependency-tracking was given.
15340 if test "${enable_dependency_tracking+set}" = set; then :
15341   enableval=$enable_dependency_tracking; 
15344 if test "x$enable_dependency_tracking" != xno; then
15345   am_depcomp="$ac_aux_dir/depcomp"
15346   AMDEPBACKSLASH='\'
15348  if test "x$enable_dependency_tracking" != xno; then
15349   AMDEP_TRUE=
15350   AMDEP_FALSE='#'
15351 else
15352   AMDEP_TRUE='#'
15353   AMDEP_FALSE=
15357 if test "`cd $srcdir && pwd`" != "`pwd`"; then
15358   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
15359   # is not polluted with repeated "-I."
15360   am__isrc=' -I$(srcdir)'
15361   # test to see if srcdir already configured
15362   if test -f $srcdir/config.status; then
15363     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 
15364   fi
15367 # test whether we have cygpath
15368 if test -z "$CYGPATH_W"; then
15369   if (cygpath --version) >/dev/null 2>/dev/null; then
15370     CYGPATH_W='cygpath -w'
15371   else
15372     CYGPATH_W=echo
15373   fi
15377 # Define the identity of the package.
15378  PACKAGE='libgpython'
15379  VERSION='0.1'
15382 cat >>confdefs.h <<_ACEOF
15383 @%:@define PACKAGE "$PACKAGE"
15384 _ACEOF
15387 cat >>confdefs.h <<_ACEOF
15388 @%:@define VERSION "$VERSION"
15389 _ACEOF
15391 # Some tools Automake needs.
15393 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
15396 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
15399 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
15402 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
15405 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
15407 # We need awk for the "check" target.  The system "awk" is bad on
15408 # some platforms.
15409 # Always define AMTAR for backward compatibility.
15411 AMTAR=${AMTAR-"${am_missing_run}tar"}
15413 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
15418 depcc="$CC"   am_compiler_list=
15420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
15421 $as_echo_n "checking dependency style of $depcc... " >&6; }
15422 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
15423   $as_echo_n "(cached) " >&6
15424 else
15425   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15426   # We make a subdir and do the tests there.  Otherwise we can end up
15427   # making bogus files that we don't know about and never remove.  For
15428   # instance it was reported that on HP-UX the gcc test will end up
15429   # making a dummy file named `D' -- because `-MD' means `put the output
15430   # in D'.
15431   mkdir conftest.dir
15432   # Copy depcomp to subdir because otherwise we won't find it if we're
15433   # using a relative directory.
15434   cp "$am_depcomp" conftest.dir
15435   cd conftest.dir
15436   # We will build objects and dependencies in a subdirectory because
15437   # it helps to detect inapplicable dependency modes.  For instance
15438   # both Tru64's cc and ICC support -MD to output dependencies as a
15439   # side effect of compilation, but ICC will put the dependencies in
15440   # the current directory while Tru64 will put them in the object
15441   # directory.
15442   mkdir sub
15444   am_cv_CC_dependencies_compiler_type=none
15445   if test "$am_compiler_list" = ""; then
15446      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15447   fi
15448   am__universal=false
15449   case " $depcc " in #(
15450      *\ -arch\ *\ -arch\ *) am__universal=true ;;
15451      esac
15453   for depmode in $am_compiler_list; do
15454     # Setup a source with many dependencies, because some compilers
15455     # like to wrap large dependency lists on column 80 (with \), and
15456     # we should not choose a depcomp mode which is confused by this.
15457     #
15458     # We need to recreate these files for each test, as the compiler may
15459     # overwrite some of them when testing with obscure command lines.
15460     # This happens at least with the AIX C compiler.
15461     : > sub/conftest.c
15462     for i in 1 2 3 4 5 6; do
15463       echo '#include "conftst'$i'.h"' >> sub/conftest.c
15464       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
15465       # Solaris 8's {/usr,}/bin/sh.
15466       touch sub/conftst$i.h
15467     done
15468     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15470     # We check with `-c' and `-o' for the sake of the "dashmstdout"
15471     # mode.  It turns out that the SunPro C++ compiler does not properly
15472     # handle `-M -o', and we need to detect this.  Also, some Intel
15473     # versions had trouble with output in subdirs
15474     am__obj=sub/conftest.${OBJEXT-o}
15475     am__minus_obj="-o $am__obj"
15476     case $depmode in
15477     gcc)
15478       # This depmode causes a compiler race in universal mode.
15479       test "$am__universal" = false || continue
15480       ;;
15481     nosideeffect)
15482       # after this tag, mechanisms are not by side-effect, so they'll
15483       # only be used when explicitly requested
15484       if test "x$enable_dependency_tracking" = xyes; then
15485         continue
15486       else
15487         break
15488       fi
15489       ;;
15490     msvisualcpp | msvcmsys)
15491       # This compiler won't grok `-c -o', but also, the minuso test has
15492       # not run yet.  These depmodes are late enough in the game, and
15493       # so weak that their functioning should not be impacted.
15494       am__obj=conftest.${OBJEXT-o}
15495       am__minus_obj=
15496       ;;
15497     none) break ;;
15498     esac
15499     if depmode=$depmode \
15500        source=sub/conftest.c object=$am__obj \
15501        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15502        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
15503          >/dev/null 2>conftest.err &&
15504        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
15505        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15506        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
15507        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15508       # icc doesn't choke on unknown options, it will just issue warnings
15509       # or remarks (even with -Werror).  So we grep stderr for any message
15510       # that says an option was ignored or not supported.
15511       # When given -MP, icc 7.0 and 7.1 complain thusly:
15512       #   icc: Command line warning: ignoring option '-M'; no argument required
15513       # The diagnosis changed in icc 8.0:
15514       #   icc: Command line remark: option '-MP' not supported
15515       if (grep 'ignoring option' conftest.err ||
15516           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15517         am_cv_CC_dependencies_compiler_type=$depmode
15518         break
15519       fi
15520     fi
15521   done
15523   cd ..
15524   rm -rf conftest.dir
15525 else
15526   am_cv_CC_dependencies_compiler_type=none
15530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
15531 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
15532 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
15534  if 
15535   test "x$enable_dependency_tracking" != xno \
15536   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
15537   am__fastdepCC_TRUE=
15538   am__fastdepCC_FALSE='#'
15539 else
15540   am__fastdepCC_TRUE='#'
15541   am__fastdepCC_FALSE=
15545 depcc="$CXX"  am_compiler_list=
15547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
15548 $as_echo_n "checking dependency style of $depcc... " >&6; }
15549 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
15550   $as_echo_n "(cached) " >&6
15551 else
15552   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15553   # We make a subdir and do the tests there.  Otherwise we can end up
15554   # making bogus files that we don't know about and never remove.  For
15555   # instance it was reported that on HP-UX the gcc test will end up
15556   # making a dummy file named `D' -- because `-MD' means `put the output
15557   # in D'.
15558   mkdir conftest.dir
15559   # Copy depcomp to subdir because otherwise we won't find it if we're
15560   # using a relative directory.
15561   cp "$am_depcomp" conftest.dir
15562   cd conftest.dir
15563   # We will build objects and dependencies in a subdirectory because
15564   # it helps to detect inapplicable dependency modes.  For instance
15565   # both Tru64's cc and ICC support -MD to output dependencies as a
15566   # side effect of compilation, but ICC will put the dependencies in
15567   # the current directory while Tru64 will put them in the object
15568   # directory.
15569   mkdir sub
15571   am_cv_CXX_dependencies_compiler_type=none
15572   if test "$am_compiler_list" = ""; then
15573      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15574   fi
15575   am__universal=false
15576   case " $depcc " in #(
15577      *\ -arch\ *\ -arch\ *) am__universal=true ;;
15578      esac
15580   for depmode in $am_compiler_list; do
15581     # Setup a source with many dependencies, because some compilers
15582     # like to wrap large dependency lists on column 80 (with \), and
15583     # we should not choose a depcomp mode which is confused by this.
15584     #
15585     # We need to recreate these files for each test, as the compiler may
15586     # overwrite some of them when testing with obscure command lines.
15587     # This happens at least with the AIX C compiler.
15588     : > sub/conftest.c
15589     for i in 1 2 3 4 5 6; do
15590       echo '#include "conftst'$i'.h"' >> sub/conftest.c
15591       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
15592       # Solaris 8's {/usr,}/bin/sh.
15593       touch sub/conftst$i.h
15594     done
15595     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15597     # We check with `-c' and `-o' for the sake of the "dashmstdout"
15598     # mode.  It turns out that the SunPro C++ compiler does not properly
15599     # handle `-M -o', and we need to detect this.  Also, some Intel
15600     # versions had trouble with output in subdirs
15601     am__obj=sub/conftest.${OBJEXT-o}
15602     am__minus_obj="-o $am__obj"
15603     case $depmode in
15604     gcc)
15605       # This depmode causes a compiler race in universal mode.
15606       test "$am__universal" = false || continue
15607       ;;
15608     nosideeffect)
15609       # after this tag, mechanisms are not by side-effect, so they'll
15610       # only be used when explicitly requested
15611       if test "x$enable_dependency_tracking" = xyes; then
15612         continue
15613       else
15614         break
15615       fi
15616       ;;
15617     msvisualcpp | msvcmsys)
15618       # This compiler won't grok `-c -o', but also, the minuso test has
15619       # not run yet.  These depmodes are late enough in the game, and
15620       # so weak that their functioning should not be impacted.
15621       am__obj=conftest.${OBJEXT-o}
15622       am__minus_obj=
15623       ;;
15624     none) break ;;
15625     esac
15626     if depmode=$depmode \
15627        source=sub/conftest.c object=$am__obj \
15628        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15629        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
15630          >/dev/null 2>conftest.err &&
15631        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
15632        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15633        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
15634        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15635       # icc doesn't choke on unknown options, it will just issue warnings
15636       # or remarks (even with -Werror).  So we grep stderr for any message
15637       # that says an option was ignored or not supported.
15638       # When given -MP, icc 7.0 and 7.1 complain thusly:
15639       #   icc: Command line warning: ignoring option '-M'; no argument required
15640       # The diagnosis changed in icc 8.0:
15641       #   icc: Command line remark: option '-MP' not supported
15642       if (grep 'ignoring option' conftest.err ||
15643           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15644         am_cv_CXX_dependencies_compiler_type=$depmode
15645         break
15646       fi
15647     fi
15648   done
15650   cd ..
15651   rm -rf conftest.dir
15652 else
15653   am_cv_CXX_dependencies_compiler_type=none
15657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
15658 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
15659 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
15661  if 
15662   test "x$enable_dependency_tracking" != xno \
15663   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
15664   am__fastdepCXX_TRUE=
15665   am__fastdepCXX_FALSE='#'
15666 else
15667   am__fastdepCXX_TRUE='#'
15668   am__fastdepCXX_FALSE=
15674 # The cast to long int works around a bug in the HP C Compiler
15675 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15676 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15677 # This bug is HP SR number 8606223364.
15678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
15679 $as_echo_n "checking size of long... " >&6; }
15680 if test "${ac_cv_sizeof_long+set}" = set; then :
15681   $as_echo_n "(cached) " >&6
15682 else
15683   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
15684   
15685 else
15686   if test "$ac_cv_type_long" = yes; then
15687      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15688 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15689 as_fn_error 77 "cannot compute sizeof (long)
15690 See \`config.log' for more details" "$LINENO" 5 ; }
15691    else
15692      ac_cv_sizeof_long=0
15693    fi
15697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
15698 $as_echo "$ac_cv_sizeof_long" >&6; }
15702 cat >>confdefs.h <<_ACEOF
15703 @%:@define SIZEOF_LONG $ac_cv_sizeof_long
15704 _ACEOF
15707 # The cast to long int works around a bug in the HP C Compiler
15708 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15709 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15710 # This bug is HP SR number 8606223364.
15711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
15712 $as_echo_n "checking size of char... " >&6; }
15713 if test "${ac_cv_sizeof_char+set}" = set; then :
15714   $as_echo_n "(cached) " >&6
15715 else
15716   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
15717   
15718 else
15719   if test "$ac_cv_type_char" = yes; then
15720      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15721 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15722 as_fn_error 77 "cannot compute sizeof (char)
15723 See \`config.log' for more details" "$LINENO" 5 ; }
15724    else
15725      ac_cv_sizeof_char=0
15726    fi
15730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
15731 $as_echo "$ac_cv_sizeof_char" >&6; }
15735 cat >>confdefs.h <<_ACEOF
15736 @%:@define SIZEOF_CHAR $ac_cv_sizeof_char
15737 _ACEOF
15740 # The cast to long int works around a bug in the HP C Compiler
15741 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15742 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15743 # This bug is HP SR number 8606223364.
15744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
15745 $as_echo_n "checking size of int... " >&6; }
15746 if test "${ac_cv_sizeof_int+set}" = set; then :
15747   $as_echo_n "(cached) " >&6
15748 else
15749   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
15750   
15751 else
15752   if test "$ac_cv_type_int" = yes; then
15753      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15754 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15755 as_fn_error 77 "cannot compute sizeof (int)
15756 See \`config.log' for more details" "$LINENO" 5 ; }
15757    else
15758      ac_cv_sizeof_int=0
15759    fi
15763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
15764 $as_echo "$ac_cv_sizeof_int" >&6; }
15768 cat >>confdefs.h <<_ACEOF
15769 @%:@define SIZEOF_INT $ac_cv_sizeof_int
15770 _ACEOF
15773 # The cast to long int works around a bug in the HP C Compiler
15774 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15775 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15776 # This bug is HP SR number 8606223364.
15777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
15778 $as_echo_n "checking size of void*... " >&6; }
15779 if test "${ac_cv_sizeof_voidp+set}" = set; then :
15780   $as_echo_n "(cached) " >&6
15781 else
15782   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp"        "$ac_includes_default"; then :
15783   
15784 else
15785   if test "$ac_cv_type_voidp" = yes; then
15786      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15787 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15788 as_fn_error 77 "cannot compute sizeof (void*)
15789 See \`config.log' for more details" "$LINENO" 5 ; }
15790    else
15791      ac_cv_sizeof_voidp=0
15792    fi
15796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
15797 $as_echo "$ac_cv_sizeof_voidp" >&6; }
15801 cat >>confdefs.h <<_ACEOF
15802 @%:@define SIZEOF_VOIDP $ac_cv_sizeof_voidp
15803 _ACEOF
15806 # The cast to long int works around a bug in the HP C Compiler
15807 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15808 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15809 # This bug is HP SR number 8606223364.
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
15811 $as_echo_n "checking size of short... " >&6; }
15812 if test "${ac_cv_sizeof_short+set}" = set; then :
15813   $as_echo_n "(cached) " >&6
15814 else
15815   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
15816   
15817 else
15818   if test "$ac_cv_type_short" = yes; then
15819      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15820 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15821 as_fn_error 77 "cannot compute sizeof (short)
15822 See \`config.log' for more details" "$LINENO" 5 ; }
15823    else
15824      ac_cv_sizeof_short=0
15825    fi
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
15830 $as_echo "$ac_cv_sizeof_short" >&6; }
15834 cat >>confdefs.h <<_ACEOF
15835 @%:@define SIZEOF_SHORT $ac_cv_sizeof_short
15836 _ACEOF
15839 # The cast to long int works around a bug in the HP C Compiler
15840 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15841 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15842 # This bug is HP SR number 8606223364.
15843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
15844 $as_echo_n "checking size of double... " >&6; }
15845 if test "${ac_cv_sizeof_double+set}" = set; then :
15846   $as_echo_n "(cached) " >&6
15847 else
15848   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
15849   
15850 else
15851   if test "$ac_cv_type_double" = yes; then
15852      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15853 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15854 as_fn_error 77 "cannot compute sizeof (double)
15855 See \`config.log' for more details" "$LINENO" 5 ; }
15856    else
15857      ac_cv_sizeof_double=0
15858    fi
15862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
15863 $as_echo "$ac_cv_sizeof_double" >&6; }
15867 cat >>confdefs.h <<_ACEOF
15868 @%:@define SIZEOF_DOUBLE $ac_cv_sizeof_double
15869 _ACEOF
15872 # The cast to long int works around a bug in the HP C Compiler
15873 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15874 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15875 # This bug is HP SR number 8606223364.
15876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
15877 $as_echo_n "checking size of float... " >&6; }
15878 if test "${ac_cv_sizeof_float+set}" = set; then :
15879   $as_echo_n "(cached) " >&6
15880 else
15881   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float"        "$ac_includes_default"; then :
15882   
15883 else
15884   if test "$ac_cv_type_float" = yes; then
15885      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15886 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15887 as_fn_error 77 "cannot compute sizeof (float)
15888 See \`config.log' for more details" "$LINENO" 5 ; }
15889    else
15890      ac_cv_sizeof_float=0
15891    fi
15895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
15896 $as_echo "$ac_cv_sizeof_float" >&6; }
15900 cat >>confdefs.h <<_ACEOF
15901 @%:@define SIZEOF_FLOAT $ac_cv_sizeof_float
15902 _ACEOF
15905 # The cast to long int works around a bug in the HP C Compiler
15906 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15907 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15908 # This bug is HP SR number 8606223364.
15909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
15910 $as_echo_n "checking size of size_t... " >&6; }
15911 if test "${ac_cv_sizeof_size_t+set}" = set; then :
15912   $as_echo_n "(cached) " >&6
15913 else
15914   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
15915   
15916 else
15917   if test "$ac_cv_type_size_t" = yes; then
15918      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15919 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15920 as_fn_error 77 "cannot compute sizeof (size_t)
15921 See \`config.log' for more details" "$LINENO" 5 ; }
15922    else
15923      ac_cv_sizeof_size_t=0
15924    fi
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
15929 $as_echo "$ac_cv_sizeof_size_t" >&6; }
15933 cat >>confdefs.h <<_ACEOF
15934 @%:@define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
15935 _ACEOF
15938 # The cast to long int works around a bug in the HP C Compiler
15939 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15940 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15941 # This bug is HP SR number 8606223364.
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
15943 $as_echo_n "checking size of long int... " >&6; }
15944 if test "${ac_cv_sizeof_long_int+set}" = set; then :
15945   $as_echo_n "(cached) " >&6
15946 else
15947   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
15948   
15949 else
15950   if test "$ac_cv_type_long_int" = yes; then
15951      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15952 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15953 as_fn_error 77 "cannot compute sizeof (long int)
15954 See \`config.log' for more details" "$LINENO" 5 ; }
15955    else
15956      ac_cv_sizeof_long_int=0
15957    fi
15961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
15962 $as_echo "$ac_cv_sizeof_long_int" >&6; }
15966 cat >>confdefs.h <<_ACEOF
15967 @%:@define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
15968 _ACEOF
15971 # The cast to long int works around a bug in the HP C Compiler
15972 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15973 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15974 # This bug is HP SR number 8606223364.
15975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
15976 $as_echo_n "checking size of long long... " >&6; }
15977 if test "${ac_cv_sizeof_long_long+set}" = set; then :
15978   $as_echo_n "(cached) " >&6
15979 else
15980   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
15981   
15982 else
15983   if test "$ac_cv_type_long_long" = yes; then
15984      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15985 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15986 as_fn_error 77 "cannot compute sizeof (long long)
15987 See \`config.log' for more details" "$LINENO" 5 ; }
15988    else
15989      ac_cv_sizeof_long_long=0
15990    fi
15994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
15995 $as_echo "$ac_cv_sizeof_long_long" >&6; }
15999 cat >>confdefs.h <<_ACEOF
16000 @%:@define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
16001 _ACEOF
16005 # Checks for header files.
16006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
16007 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
16008 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
16009   $as_echo_n "(cached) " >&6
16010 else
16011   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16012 /* end confdefs.h.  */
16013 #include <sys/types.h>
16014 #include <sys/wait.h>
16015 #ifndef WEXITSTATUS
16016 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
16017 #endif
16018 #ifndef WIFEXITED
16019 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
16020 #endif
16023 main ()
16025   int s;
16026   wait (&s);
16027   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
16028   ;
16029   return 0;
16031 _ACEOF
16032 if ac_fn_c_try_compile "$LINENO"; then :
16033   ac_cv_header_sys_wait_h=yes
16034 else
16035   ac_cv_header_sys_wait_h=no
16037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
16040 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
16041 if test $ac_cv_header_sys_wait_h = yes; then
16042   
16043 $as_echo "@%:@define HAVE_SYS_WAIT_H 1" >>confdefs.h
16047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
16048 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
16049 if test "${ac_cv_header_stdbool_h+set}" = set; then :
16050   $as_echo_n "(cached) " >&6
16051 else
16052   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16053 /* end confdefs.h.  */
16055 #include <stdbool.h>
16056 #ifndef bool
16057  "error: bool is not defined"
16058 #endif
16059 #ifndef false
16060  "error: false is not defined"
16061 #endif
16062 #if false
16063  "error: false is not 0"
16064 #endif
16065 #ifndef true
16066  "error: true is not defined"
16067 #endif
16068 #if true != 1
16069  "error: true is not 1"
16070 #endif
16071 #ifndef __bool_true_false_are_defined
16072  "error: __bool_true_false_are_defined is not defined"
16073 #endif
16075         struct s { _Bool s: 1; _Bool t; } s;
16077         char a[true == 1 ? 1 : -1];
16078         char b[false == 0 ? 1 : -1];
16079         char c[__bool_true_false_are_defined == 1 ? 1 : -1];
16080         char d[(bool) 0.5 == true ? 1 : -1];
16081         bool e = &s;
16082         char f[(_Bool) 0.0 == false ? 1 : -1];
16083         char g[true];
16084         char h[sizeof (_Bool)];
16085         char i[sizeof s.t];
16086         enum { j = false, k = true, l = false * true, m = true * 256 };
16087         /* The following fails for
16088            HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
16089         _Bool n[m];
16090         char o[sizeof n == m * sizeof n[0] ? 1 : -1];
16091         char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
16092 #       if defined __xlc__ || defined __GNUC__
16093          /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
16094             reported by James Lemley on 2005-10-05; see
16095             http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
16096             This test is not quite right, since xlc is allowed to
16097             reject this program, as the initializer for xlcbug is
16098             not one of the forms that C requires support for.
16099             However, doing the test right would require a runtime
16100             test, and that would make cross-compilation harder.
16101             Let us hope that IBM fixes the xlc bug, and also adds
16102             support for this kind of constant expression.  In the
16103             meantime, this test will reject xlc, which is OK, since
16104             our stdbool.h substitute should suffice.  We also test
16105             this with GCC, where it should work, to detect more
16106             quickly whether someone messes up the test in the
16107             future.  */
16108          char digs[] = "0123456789";
16109          int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
16110 #       endif
16111         /* Catch a bug in an HP-UX C compiler.  See
16112            http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
16113            http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
16114          */
16115         _Bool q = true;
16116         _Bool *pq = &q;
16117       
16119 main ()
16122         *pq |= q;
16123         *pq |= ! q;
16124         /* Refer to every declared value, to avoid compiler optimizations.  */
16125         return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
16126                 + !m + !n + !o + !p + !q + !pq);
16127       
16128   ;
16129   return 0;
16131 _ACEOF
16132 if ac_fn_c_try_compile "$LINENO"; then :
16133   ac_cv_header_stdbool_h=yes
16134 else
16135   ac_cv_header_stdbool_h=no
16137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
16140 $as_echo "$ac_cv_header_stdbool_h" >&6; }
16141 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
16142 if test "x$ac_cv_type__Bool" = x""yes; then :
16143   
16144 cat >>confdefs.h <<_ACEOF
16145 @%:@define HAVE__BOOL 1
16146 _ACEOF
16151 if test $ac_cv_header_stdbool_h = yes; then
16152   
16153 $as_echo "@%:@define HAVE_STDBOOL_H 1" >>confdefs.h
16157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16158 $as_echo_n "checking for ANSI C header files... " >&6; }
16159 if test "${ac_cv_header_stdc+set}" = set; then :
16160   $as_echo_n "(cached) " >&6
16161 else
16162   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16163 /* end confdefs.h.  */
16164 #include <stdlib.h>
16165 #include <stdarg.h>
16166 #include <string.h>
16167 #include <float.h>
16170 main ()
16173   ;
16174   return 0;
16176 _ACEOF
16177 if ac_fn_c_try_compile "$LINENO"; then :
16178   ac_cv_header_stdc=yes
16179 else
16180   ac_cv_header_stdc=no
16182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16184 if test $ac_cv_header_stdc = yes; then
16185   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16186   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16187 /* end confdefs.h.  */
16188 #include <string.h>
16190 _ACEOF
16191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16192   $EGREP "memchr" >/dev/null 2>&1; then :
16193   
16194 else
16195   ac_cv_header_stdc=no
16197 rm -f conftest*
16201 if test $ac_cv_header_stdc = yes; then
16202   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16203   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16204 /* end confdefs.h.  */
16205 #include <stdlib.h>
16207 _ACEOF
16208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16209   $EGREP "free" >/dev/null 2>&1; then :
16210   
16211 else
16212   ac_cv_header_stdc=no
16214 rm -f conftest*
16218 if test $ac_cv_header_stdc = yes; then
16219   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16220   if test "$cross_compiling" = yes; then :
16221   :
16222 else
16223   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16224 /* end confdefs.h.  */
16225 #include <ctype.h>
16226 #include <stdlib.h>
16227 #if ((' ' & 0x0FF) == 0x020)
16228 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16229 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16230 #else
16231 # define ISLOWER(c) \
16232                    (('a' <= (c) && (c) <= 'i') \
16233                      || ('j' <= (c) && (c) <= 'r') \
16234                      || ('s' <= (c) && (c) <= 'z'))
16235 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16236 #endif
16238 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16240 main ()
16242   int i;
16243   for (i = 0; i < 256; i++)
16244     if (XOR (islower (i), ISLOWER (i))
16245         || toupper (i) != TOUPPER (i))
16246       return 2;
16247   return 0;
16249 _ACEOF
16250 if ac_fn_c_try_run "$LINENO"; then :
16251   
16252 else
16253   ac_cv_header_stdc=no
16255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16256   conftest.$ac_objext conftest.beam conftest.$ac_ext
16261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16262 $as_echo "$ac_cv_header_stdc" >&6; }
16263 if test $ac_cv_header_stdc = yes; then
16264   
16265 $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
16269 for ac_header in stdlib.h string.h stdarg.h unistd.h \
16270                   stdint.h stdio.h getopt.h \
16271                   assert.h sys/types.h signal.h \
16272                   fcntl.h pthread.h sys/wait.h \
16273                   gmp.h mpfr.h
16274 do :
16275   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16276 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16277 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16278   cat >>confdefs.h <<_ACEOF
16279 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16280 _ACEOF
16284 done
16287 # Checks for typedefs, structures, and compiler characteristics.
16288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16289 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16290 if test "${ac_cv_c_const+set}" = set; then :
16291   $as_echo_n "(cached) " >&6
16292 else
16293   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16294 /* end confdefs.h.  */
16297 main ()
16299 /* FIXME: Include the comments suggested by Paul. */
16300 #ifndef __cplusplus
16301   /* Ultrix mips cc rejects this.  */
16302   typedef int charset[2];
16303   const charset cs;
16304   /* SunOS 4.1.1 cc rejects this.  */
16305   char const *const *pcpcc;
16306   char **ppc;
16307   /* NEC SVR4.0.2 mips cc rejects this.  */
16308   struct point {int x, y;};
16309   static struct point const zero = {0,0};
16310   /* AIX XL C 1.02.0.0 rejects this.
16311      It does not let you subtract one const X* pointer from another in
16312      an arm of an if-expression whose if-part is not a constant
16313      expression */
16314   const char *g = "string";
16315   pcpcc = &g + (g ? g-g : 0);
16316   /* HPUX 7.0 cc rejects these. */
16317   ++pcpcc;
16318   ppc = (char**) pcpcc;
16319   pcpcc = (char const *const *) ppc;
16320   { /* SCO 3.2v4 cc rejects this.  */
16321     char *t;
16322     char const *s = 0 ? (char *) 0 : (char const *) 0;
16324     *t++ = 0;
16325     if (s) return 0;
16326   }
16327   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
16328     int x[] = {25, 17};
16329     const int *foo = &x[0];
16330     ++foo;
16331   }
16332   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16333     typedef const int *iptr;
16334     iptr p = 0;
16335     ++p;
16336   }
16337   { /* AIX XL C 1.02.0.0 rejects this saying
16338        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16339     struct s { int j; const int *ap[3]; };
16340     struct s *b; b->j = 5;
16341   }
16342   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16343     const int foo = 10;
16344     if (!foo) return 0;
16345   }
16346   return !cs[0] && !zero.x;
16347 #endif
16349   ;
16350   return 0;
16352 _ACEOF
16353 if ac_fn_c_try_compile "$LINENO"; then :
16354   ac_cv_c_const=yes
16355 else
16356   ac_cv_c_const=no
16358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16361 $as_echo "$ac_cv_c_const" >&6; }
16362 if test $ac_cv_c_const = no; then
16363   
16364 $as_echo "@%:@define const /**/" >>confdefs.h
16368 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
16369 if test "x$ac_cv_type_pid_t" = x""yes; then :
16370   
16371 else
16372   
16373 cat >>confdefs.h <<_ACEOF
16374 @%:@define pid_t int
16375 _ACEOF
16379 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16380 if test "x$ac_cv_type_size_t" = x""yes; then :
16381   
16382 else
16383   
16384 cat >>confdefs.h <<_ACEOF
16385 @%:@define size_t unsigned int
16386 _ACEOF
16390 for ac_func in popen fopen fclose sprintf fprintf strdup \
16391                 strlen strcpy strcmp getopt_long \
16392                 memcpy calloc system sysconf atoi \
16393                 getpid execl fork wait exit atof \
16394                 vfprintf memcmp getc fgets pipe \
16395                 waitpid fdopen
16396 do :
16397   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16398 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16399 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16400   cat >>confdefs.h <<_ACEOF
16401 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16402 _ACEOF
16405 done
16408 # Checks for library functions.
16409 for ac_header in stdlib.h
16410 do :
16411   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
16412 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
16413   cat >>confdefs.h <<_ACEOF
16414 @%:@define HAVE_STDLIB_H 1
16415 _ACEOF
16419 done
16421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
16422 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
16423 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
16424   $as_echo_n "(cached) " >&6
16425 else
16426   if test "$cross_compiling" = yes; then :
16427   ac_cv_func_malloc_0_nonnull=no
16428 else
16429   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16430 /* end confdefs.h.  */
16431 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
16432 # include <stdlib.h>
16433 #else
16434 char *malloc ();
16435 #endif
16438 main ()
16440 return ! malloc (0);
16441   ;
16442   return 0;
16444 _ACEOF
16445 if ac_fn_c_try_run "$LINENO"; then :
16446   ac_cv_func_malloc_0_nonnull=yes
16447 else
16448   ac_cv_func_malloc_0_nonnull=no
16450 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16451   conftest.$ac_objext conftest.beam conftest.$ac_ext
16455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
16456 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
16457 if test $ac_cv_func_malloc_0_nonnull = yes; then :
16458   
16459 $as_echo "@%:@define HAVE_MALLOC 1" >>confdefs.h
16461 else
16462   $as_echo "@%:@define HAVE_MALLOC 0" >>confdefs.h
16464    case " $LIB@&t@OBJS " in
16465   *" malloc.$ac_objext "* ) ;;
16466   *) LIB@&t@OBJS="$LIB@&t@OBJS malloc.$ac_objext"
16467  ;;
16468 esac
16470    
16471 $as_echo "@%:@define malloc rpl_malloc" >>confdefs.h
16478   
16479   for ac_header in $ac_header_list
16480 do :
16481   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16482 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16484 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16485   cat >>confdefs.h <<_ACEOF
16486 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16487 _ACEOF
16491 done
16493   
16496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether utime accepts a null argument" >&5
16497 $as_echo_n "checking whether utime accepts a null argument... " >&6; }
16498 if test "${ac_cv_func_utime_null+set}" = set; then :
16499   $as_echo_n "(cached) " >&6
16500 else
16501   rm -f conftest.data; >conftest.data
16502 # Sequent interprets utime(file, 0) to mean use start of epoch.  Wrong.
16503 if test "$cross_compiling" = yes; then :
16504   ac_cv_func_utime_null='guessing yes'
16505 else
16506   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16507 /* end confdefs.h.  */
16508 $ac_includes_default
16509                #ifdef HAVE_UTIME_H
16510                # include <utime.h>
16511                #endif
16513 main ()
16515 struct stat s, t;
16516   return ! (stat ("conftest.data", &s) == 0
16517             && utime ("conftest.data", 0) == 0
16518             && stat ("conftest.data", &t) == 0
16519             && t.st_mtime >= s.st_mtime
16520             && t.st_mtime - s.st_mtime < 120);
16521   ;
16522   return 0;
16524 _ACEOF
16525 if ac_fn_c_try_run "$LINENO"; then :
16526   ac_cv_func_utime_null=yes
16527 else
16528   ac_cv_func_utime_null=no
16530 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16531   conftest.$ac_objext conftest.beam conftest.$ac_ext
16535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_utime_null" >&5
16536 $as_echo "$ac_cv_func_utime_null" >&6; }
16537 if test "x$ac_cv_func_utime_null" != xno; then
16538   ac_cv_func_utime_null=yes
16539   
16540 $as_echo "@%:@define HAVE_UTIME_NULL 1" >>confdefs.h
16543 rm -f conftest.data
16545 for ac_func in vprintf
16546 do :
16547   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
16548 if test "x$ac_cv_func_vprintf" = x""yes; then :
16549   cat >>confdefs.h <<_ACEOF
16550 @%:@define HAVE_VPRINTF 1
16551 _ACEOF
16553 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
16554 if test "x$ac_cv_func__doprnt" = x""yes; then :
16555   
16556 $as_echo "@%:@define HAVE_DOPRNT 1" >>confdefs.h
16561 done
16564 ac_config_files="$ac_config_files Makefile"
16567 cat >confcache <<\_ACEOF
16568 # This file is a shell script that caches the results of configure
16569 # tests run on this system so they can be shared between configure
16570 # scripts and configure runs, see configure's option --config-cache.
16571 # It is not useful on other systems.  If it contains results you don't
16572 # want to keep, you may remove or edit it.
16574 # config.status only pays attention to the cache file if you give it
16575 # the --recheck option to rerun configure.
16577 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16578 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16579 # following values.
16581 _ACEOF
16583 # The following way of writing the cache mishandles newlines in values,
16584 # but we know of no workaround that is simple, portable, and efficient.
16585 # So, we kill variables containing newlines.
16586 # Ultrix sh set writes to stderr and can't be redirected directly,
16587 # and sets the high bit in the cache file unless we assign to the vars.
16589   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16590     eval ac_val=\$$ac_var
16591     case $ac_val in #(
16592     *${as_nl}*)
16593       case $ac_var in #(
16594       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16595 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16596       esac
16597       case $ac_var in #(
16598       _ | IFS | as_nl) ;; #(
16599       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16600       *) { eval $ac_var=; unset $ac_var;} ;;
16601       esac ;;
16602     esac
16603   done
16605   (set) 2>&1 |
16606     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16607     *${as_nl}ac_space=\ *)
16608       # `set' does not quote correctly, so add quotes: double-quote
16609       # substitution turns \\\\ into \\, and sed turns \\ into \.
16610       sed -n \
16611         "s/'/'\\\\''/g;
16612           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16613       ;; #(
16614     *)
16615       # `set' quotes correctly as required by POSIX, so do not add quotes.
16616       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16617       ;;
16618     esac |
16619     sort
16620 ) |
16621   sed '
16622      /^ac_cv_env_/b end
16623      t clear
16624      :clear
16625      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16626      t end
16627      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16628      :end' >>confcache
16629 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16630   if test -w "$cache_file"; then
16631     test "x$cache_file" != "x/dev/null" &&
16632       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16633 $as_echo "$as_me: updating cache $cache_file" >&6;}
16634     cat confcache >$cache_file
16635   else
16636     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16637 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16638   fi
16640 rm -f confcache
16642 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16643 # Let make expand exec_prefix.
16644 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16646 DEFS=-DHAVE_CONFIG_H
16648 ac_libobjs=
16649 ac_ltlibobjs=
16651 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
16652   # 1. Remove the extension, and $U if already installed.
16653   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16654   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16655   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16656   #    will be set to the directory where LIBOBJS objects are built.
16657   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16658   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16659 done
16660 LIB@&t@OBJS=$ac_libobjs
16662 LTLIBOBJS=$ac_ltlibobjs
16666 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16667   as_fn_error $? "conditional \"AMDEP\" was never defined.
16668 Usually this means the macro was only invoked conditionally." "$LINENO" 5 
16670 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16671   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16672 Usually this means the macro was only invoked conditionally." "$LINENO" 5 
16674 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16675   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16676 Usually this means the macro was only invoked conditionally." "$LINENO" 5 
16678  if test -n "$EXEEXT"; then
16679   am__EXEEXT_TRUE=
16680   am__EXEEXT_FALSE='#'
16681 else
16682   am__EXEEXT_TRUE='#'
16683   am__EXEEXT_FALSE=
16687 : ${CONFIG_STATUS=./config.status}
16688 ac_write_fail=0
16689 ac_clean_files_save=$ac_clean_files
16690 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16691 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16692 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16693 as_write_fail=0
16694 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16695 #! $SHELL
16696 # Generated by $as_me.
16697 # Run this file to recreate the current configuration.
16698 # Compiler output produced by configure, useful for debugging
16699 # configure, is in config.log if it exists.
16701 debug=false
16702 ac_cs_recheck=false
16703 ac_cs_silent=false
16705 SHELL=\${CONFIG_SHELL-$SHELL}
16706 export SHELL
16707 _ASEOF
16708 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16709 ## -------------------- ##
16710 ## M4sh Initialization. ##
16711 ## -------------------- ##
16713 # Be more Bourne compatible
16714 DUALCASE=1; export DUALCASE # for MKS sh
16715 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16716   emulate sh
16717   NULLCMD=:
16718   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16719   # is contrary to our usage.  Disable this feature.
16720   alias -g '${1+"$@"}'='"$@"'
16721   setopt NO_GLOB_SUBST
16722 else
16723   case `(set -o) 2>/dev/null` in @%:@(
16724   *posix*) :
16725     set -o posix ;; @%:@(
16726   *) :
16727      ;;
16728 esac
16732 as_nl='
16734 export as_nl
16735 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16736 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16737 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16738 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16739 # Prefer a ksh shell builtin over an external printf program on Solaris,
16740 # but without wasting forks for bash or zsh.
16741 if test -z "$BASH_VERSION$ZSH_VERSION" \
16742     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16743   as_echo='print -r --'
16744   as_echo_n='print -rn --'
16745 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16746   as_echo='printf %s\n'
16747   as_echo_n='printf %s'
16748 else
16749   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16750     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16751     as_echo_n='/usr/ucb/echo -n'
16752   else
16753     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16754     as_echo_n_body='eval
16755       arg=$1;
16756       case $arg in @%:@(
16757       *"$as_nl"*)
16758         expr "X$arg" : "X\\(.*\\)$as_nl";
16759         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16760       esac;
16761       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16762     '
16763     export as_echo_n_body
16764     as_echo_n='sh -c $as_echo_n_body as_echo'
16765   fi
16766   export as_echo_body
16767   as_echo='sh -c $as_echo_body as_echo'
16770 # The user is always right.
16771 if test "${PATH_SEPARATOR+set}" != set; then
16772   PATH_SEPARATOR=:
16773   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16774     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16775       PATH_SEPARATOR=';'
16776   }
16780 # IFS
16781 # We need space, tab and new line, in precisely that order.  Quoting is
16782 # there to prevent editors from complaining about space-tab.
16783 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16784 # splitting by setting IFS to empty value.)
16785 IFS=" ""        $as_nl"
16787 # Find who we are.  Look in the path if we contain no directory separator.
16788 case $0 in @%:@((
16789   *[\\/]* ) as_myself=$0 ;;
16790   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16791 for as_dir in $PATH
16793   IFS=$as_save_IFS
16794   test -z "$as_dir" && as_dir=.
16795     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16796   done
16797 IFS=$as_save_IFS
16799      ;;
16800 esac
16801 # We did not find ourselves, most probably we were run as `sh COMMAND'
16802 # in which case we are not to be found in the path.
16803 if test "x$as_myself" = x; then
16804   as_myself=$0
16806 if test ! -f "$as_myself"; then
16807   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16808   exit 1
16811 # Unset variables that we do not need and which cause bugs (e.g. in
16812 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16813 # suppresses any "Segmentation fault" message there.  '((' could
16814 # trigger a bug in pdksh 5.2.14.
16815 for as_var in BASH_ENV ENV MAIL MAILPATH
16816 do eval test x\${$as_var+set} = xset \
16817   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16818 done
16819 PS1='$ '
16820 PS2='> '
16821 PS4='+ '
16823 # NLS nuisances.
16824 LC_ALL=C
16825 export LC_ALL
16826 LANGUAGE=C
16827 export LANGUAGE
16829 # CDPATH.
16830 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16833 @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
16834 @%:@ ----------------------------------------
16835 @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16836 @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16837 @%:@ script with STATUS, using 1 if that was 0.
16838 as_fn_error ()
16840   as_status=$1; test $as_status -eq 0 && as_status=1
16841   if test "$4"; then
16842     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16843     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16844   fi
16845   $as_echo "$as_me: error: $2" >&2
16846   as_fn_exit $as_status
16847 } @%:@ as_fn_error
16850 @%:@ as_fn_set_status STATUS
16851 @%:@ -----------------------
16852 @%:@ Set @S|@? to STATUS, without forking.
16853 as_fn_set_status ()
16855   return $1
16856 } @%:@ as_fn_set_status
16858 @%:@ as_fn_exit STATUS
16859 @%:@ -----------------
16860 @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16861 as_fn_exit ()
16863   set +e
16864   as_fn_set_status $1
16865   exit $1
16866 } @%:@ as_fn_exit
16868 @%:@ as_fn_unset VAR
16869 @%:@ ---------------
16870 @%:@ Portably unset VAR.
16871 as_fn_unset ()
16873   { eval $1=; unset $1;}
16875 as_unset=as_fn_unset
16876 @%:@ as_fn_append VAR VALUE
16877 @%:@ ----------------------
16878 @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
16879 @%:@ advantage of any shell optimizations that allow amortized linear growth over
16880 @%:@ repeated appends, instead of the typical quadratic growth present in naive
16881 @%:@ implementations.
16882 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16883   eval 'as_fn_append ()
16884   {
16885     eval $1+=\$2
16886   }'
16887 else
16888   as_fn_append ()
16889   {
16890     eval $1=\$$1\$2
16891   }
16892 fi # as_fn_append
16894 @%:@ as_fn_arith ARG...
16895 @%:@ ------------------
16896 @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
16897 @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
16898 @%:@ must be portable across @S|@(()) and expr.
16899 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16900   eval 'as_fn_arith ()
16901   {
16902     as_val=$(( $* ))
16903   }'
16904 else
16905   as_fn_arith ()
16906   {
16907     as_val=`expr "$@" || test $? -eq 1`
16908   }
16909 fi # as_fn_arith
16912 if expr a : '\(a\)' >/dev/null 2>&1 &&
16913    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16914   as_expr=expr
16915 else
16916   as_expr=false
16919 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16920   as_basename=basename
16921 else
16922   as_basename=false
16925 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16926   as_dirname=dirname
16927 else
16928   as_dirname=false
16931 as_me=`$as_basename -- "$0" ||
16932 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16933          X"$0" : 'X\(//\)$' \| \
16934          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16935 $as_echo X/"$0" |
16936     sed '/^.*\/\([^/][^/]*\)\/*$/{
16937             s//\1/
16938             q
16939           }
16940           /^X\/\(\/\/\)$/{
16941             s//\1/
16942             q
16943           }
16944           /^X\/\(\/\).*/{
16945             s//\1/
16946             q
16947           }
16948           s/.*/./; q'`
16950 # Avoid depending upon Character Ranges.
16951 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16952 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16953 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16954 as_cr_digits='0123456789'
16955 as_cr_alnum=$as_cr_Letters$as_cr_digits
16957 ECHO_C= ECHO_N= ECHO_T=
16958 case `echo -n x` in @%:@(((((
16959 -n*)
16960   case `echo 'xy\c'` in
16961   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16962   xy)  ECHO_C='\c';;
16963   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16964        ECHO_T=' ';;
16965   esac;;
16967   ECHO_N='-n';;
16968 esac
16970 rm -f conf$$ conf$$.exe conf$$.file
16971 if test -d conf$$.dir; then
16972   rm -f conf$$.dir/conf$$.file
16973 else
16974   rm -f conf$$.dir
16975   mkdir conf$$.dir 2>/dev/null
16977 if (echo >conf$$.file) 2>/dev/null; then
16978   if ln -s conf$$.file conf$$ 2>/dev/null; then
16979     as_ln_s='ln -s'
16980     # ... but there are two gotchas:
16981     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16982     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16983     # In both cases, we have to default to `cp -p'.
16984     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16985       as_ln_s='cp -p'
16986   elif ln conf$$.file conf$$ 2>/dev/null; then
16987     as_ln_s=ln
16988   else
16989     as_ln_s='cp -p'
16990   fi
16991 else
16992   as_ln_s='cp -p'
16994 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16995 rmdir conf$$.dir 2>/dev/null
16998 @%:@ as_fn_mkdir_p
16999 @%:@ -------------
17000 @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
17001 as_fn_mkdir_p ()
17004   case $as_dir in #(
17005   -*) as_dir=./$as_dir;;
17006   esac
17007   test -d "$as_dir" || eval $as_mkdir_p || {
17008     as_dirs=
17009     while :; do
17010       case $as_dir in #(
17011       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17012       *) as_qdir=$as_dir;;
17013       esac
17014       as_dirs="'$as_qdir' $as_dirs"
17015       as_dir=`$as_dirname -- "$as_dir" ||
17016 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17017          X"$as_dir" : 'X\(//\)[^/]' \| \
17018          X"$as_dir" : 'X\(//\)$' \| \
17019          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17020 $as_echo X"$as_dir" |
17021     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17022             s//\1/
17023             q
17024           }
17025           /^X\(\/\/\)[^/].*/{
17026             s//\1/
17027             q
17028           }
17029           /^X\(\/\/\)$/{
17030             s//\1/
17031             q
17032           }
17033           /^X\(\/\).*/{
17034             s//\1/
17035             q
17036           }
17037           s/.*/./; q'`
17038       test -d "$as_dir" && break
17039     done
17040     test -z "$as_dirs" || eval "mkdir $as_dirs"
17041   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17044 } @%:@ as_fn_mkdir_p
17045 if mkdir -p . 2>/dev/null; then
17046   as_mkdir_p='mkdir -p "$as_dir"'
17047 else
17048   test -d ./-p && rmdir ./-p
17049   as_mkdir_p=false
17052 if test -x / >/dev/null 2>&1; then
17053   as_test_x='test -x'
17054 else
17055   if ls -dL / >/dev/null 2>&1; then
17056     as_ls_L_option=L
17057   else
17058     as_ls_L_option=
17059   fi
17060   as_test_x='
17061     eval sh -c '\''
17062       if test -d "$1"; then
17063         test -d "$1/.";
17064       else
17065         case $1 in @%:@(
17066         -*)set "./$1";;
17067         esac;
17068         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
17069         ???[sx]*):;;*)false;;esac;fi
17070     '\'' sh
17071   '
17073 as_executable_p=$as_test_x
17075 # Sed expression to map a string onto a valid CPP name.
17076 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17078 # Sed expression to map a string onto a valid variable name.
17079 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17082 exec 6>&1
17083 ## ----------------------------------- ##
17084 ## Main body of $CONFIG_STATUS script. ##
17085 ## ----------------------------------- ##
17086 _ASEOF
17087 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17089 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17090 # Save the log message, to keep $0 and so on meaningful, and to
17091 # report actual input values of CONFIG_FILES etc. instead of their
17092 # values after options handling.
17093 ac_log="
17094 This file was extended by GNU Python Runtime Library $as_me 0.1, which was
17095 generated by GNU Autoconf 2.67.  Invocation command line was
17097   CONFIG_FILES    = $CONFIG_FILES
17098   CONFIG_HEADERS  = $CONFIG_HEADERS
17099   CONFIG_LINKS    = $CONFIG_LINKS
17100   CONFIG_COMMANDS = $CONFIG_COMMANDS
17101   $ $0 $@
17103 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17106 _ACEOF
17108 case $ac_config_files in *"
17109 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17110 esac
17112 case $ac_config_headers in *"
17113 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17114 esac
17117 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17118 # Files that config.status was made for.
17119 config_files="$ac_config_files"
17120 config_headers="$ac_config_headers"
17121 config_commands="$ac_config_commands"
17123 _ACEOF
17125 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17126 ac_cs_usage="\
17127 \`$as_me' instantiates files and other configuration actions
17128 from templates according to the current configuration.  Unless the files
17129 and actions are specified as TAGs, all are instantiated by default.
17131 Usage: $0 [OPTION]... [TAG]...
17133   -h, --help       print this help, then exit
17134   -V, --version    print version number and configuration settings, then exit
17135       --config     print configuration, then exit
17136   -q, --quiet, --silent
17137                    do not print progress messages
17138   -d, --debug      don't remove temporary files
17139       --recheck    update $as_me by reconfiguring in the same conditions
17140       --file=FILE[:TEMPLATE] 
17141                    instantiate the configuration file FILE
17142       --header=FILE[:TEMPLATE] 
17143                    instantiate the configuration header FILE
17145 Configuration files:
17146 $config_files
17148 Configuration headers:
17149 $config_headers
17151 Configuration commands:
17152 $config_commands
17154 Report bugs to the package provider.
17155 GNU Python Runtime Library home page: <http://www.gnu.org/software/libgpython/>.
17156 General help using GNU software: <http://www.gnu.org/gethelp/>."
17158 _ACEOF
17159 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17160 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17161 ac_cs_version="\\
17162 GNU Python Runtime Library config.status 0.1
17163 configured by $0, generated by GNU Autoconf 2.67,
17164   with options \\"\$ac_cs_config\\"
17166 Copyright (C) 2010 Free Software Foundation, Inc.
17167 This config.status script is free software; the Free Software Foundation
17168 gives unlimited permission to copy, distribute and modify it."
17170 ac_pwd='$ac_pwd'
17171 srcdir='$srcdir'
17172 INSTALL='$INSTALL'
17173 MKDIR_P='$MKDIR_P'
17174 AWK='$AWK'
17175 test -n "\$AWK" || AWK=awk
17176 _ACEOF
17178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17179 # The default lists apply if the user does not specify any file.
17180 ac_need_defaults=:
17181 while test $# != 0
17183   case $1 in
17184   --*=?*)
17185     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17186     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17187     ac_shift=:
17188     ;;
17189   --*=)
17190     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17191     ac_optarg=
17192     ac_shift=:
17193     ;;
17194   *)
17195     ac_option=$1
17196     ac_optarg=$2
17197     ac_shift=shift
17198     ;;
17199   esac
17201   case $ac_option in
17202   # Handling of the options.
17203   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17204     ac_cs_recheck=: ;;
17205   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17206     $as_echo "$ac_cs_version"; exit ;;
17207   --config | --confi | --conf | --con | --co | --c )
17208     $as_echo "$ac_cs_config"; exit ;;
17209   --debug | --debu | --deb | --de | --d | -d )
17210     debug=: ;;
17211   --file | --fil | --fi | --f )
17212     $ac_shift
17213     case $ac_optarg in
17214     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17215     '') as_fn_error $? "missing file argument" ;;
17216     esac
17217     as_fn_append CONFIG_FILES " '$ac_optarg'"
17218     ac_need_defaults=false;;
17219   --header | --heade | --head | --hea )
17220     $ac_shift
17221     case $ac_optarg in
17222     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17223     esac
17224     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17225     ac_need_defaults=false;;
17226   --he | --h)
17227     # Conflict between --help and --header
17228     as_fn_error $? "ambiguous option: \`$1'
17229 Try \`$0 --help' for more information.";;
17230   --help | --hel | -h )
17231     $as_echo "$ac_cs_usage"; exit ;;
17232   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17233   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17234     ac_cs_silent=: ;;
17236   # This is an error.
17237   -*) as_fn_error $? "unrecognized option: \`$1'
17238 Try \`$0 --help' for more information." ;;
17240   *) as_fn_append ac_config_targets " $1"
17241      ac_need_defaults=false ;;
17243   esac
17244   shift
17245 done
17247 ac_configure_extra_args=
17249 if $ac_cs_silent; then
17250   exec 6>/dev/null
17251   ac_configure_extra_args="$ac_configure_extra_args --silent"
17254 _ACEOF
17255 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17256 if \$ac_cs_recheck; then
17257   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17258   shift
17259   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17260   CONFIG_SHELL='$SHELL'
17261   export CONFIG_SHELL
17262   exec "\$@"
17265 _ACEOF
17266 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17267 exec 5>>config.log
17269   echo
17270   sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
17271 @%:@@%:@ Running $as_me. @%:@@%:@
17272 _ASBOX
17273   $as_echo "$ac_log"
17274 } >&5
17276 _ACEOF
17277 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17279 # INIT-COMMANDS
17283 # The HP-UX ksh and POSIX shell print the target directory to stdout
17284 # if CDPATH is set.
17285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17287 sed_quote_subst='$sed_quote_subst'
17288 double_quote_subst='$double_quote_subst'
17289 delay_variable_subst='$delay_variable_subst'
17290 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
17291 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
17292 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
17293 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
17294 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
17295 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
17296 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
17297 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
17298 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
17299 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
17300 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
17301 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
17302 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
17303 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
17304 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
17305 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
17306 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
17307 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
17308 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
17309 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
17310 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
17311 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
17312 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
17313 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
17314 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
17315 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
17316 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
17317 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17318 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
17319 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
17320 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
17321 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
17322 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17323 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
17324 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
17325 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17326 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17327 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17328 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
17329 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17330 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
17331 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
17332 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
17333 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
17334 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
17335 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17336 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
17337 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
17338 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
17339 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
17340 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
17341 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
17342 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
17343 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
17344 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
17345 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
17346 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
17347 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
17348 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
17349 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
17350 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
17351 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
17352 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17353 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17354 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
17355 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
17356 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17357 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17358 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
17359 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17360 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17361 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17362 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17363 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17364 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17365 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
17366 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17367 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17368 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17369 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
17370 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
17371 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
17372 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
17373 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
17374 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17375 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
17376 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
17377 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
17378 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
17379 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
17380 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17381 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17382 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17383 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17384 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
17385 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
17386 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17387 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
17388 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
17389 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17390 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17391 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
17392 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17393 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
17394 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17395 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17396 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17397 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17398 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
17399 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
17400 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17401 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17402 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
17403 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
17404 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
17405 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
17406 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
17407 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
17408 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
17409 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17410 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17411 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
17412 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
17413 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
17414 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17415 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17416 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17417 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17418 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17419 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17420 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17421 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17422 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17423 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17424 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17425 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17426 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17427 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17428 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17429 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17430 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17431 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17432 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17433 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17434 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17435 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17436 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17437 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17438 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17439 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17440 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17441 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17442 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17443 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17444 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17445 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17446 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17447 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17448 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17449 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17450 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17451 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17452 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17453 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17454 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17455 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17456 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17457 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17458 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17459 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17460 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17462 LTCC='$LTCC'
17463 LTCFLAGS='$LTCFLAGS'
17464 compiler='$compiler_DEFAULT'
17466 # Quote evaled strings.
17467 for var in SED \
17468 GREP \
17469 EGREP \
17470 FGREP \
17471 LD \
17472 NM \
17473 LN_S \
17474 lt_SP2NL \
17475 lt_NL2SP \
17476 reload_flag \
17477 OBJDUMP \
17478 deplibs_check_method \
17479 file_magic_cmd \
17480 AR \
17481 AR_FLAGS \
17482 STRIP \
17483 RANLIB \
17484 CC \
17485 CFLAGS \
17486 compiler \
17487 lt_cv_sys_global_symbol_pipe \
17488 lt_cv_sys_global_symbol_to_cdecl \
17489 lt_cv_sys_global_symbol_to_c_name_address \
17490 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17491 SHELL \
17492 ECHO \
17493 lt_prog_compiler_no_builtin_flag \
17494 lt_prog_compiler_wl \
17495 lt_prog_compiler_pic \
17496 lt_prog_compiler_static \
17497 lt_cv_prog_compiler_c_o \
17498 need_locks \
17499 DSYMUTIL \
17500 NMEDIT \
17501 LIPO \
17502 OTOOL \
17503 OTOOL64 \
17504 shrext_cmds \
17505 export_dynamic_flag_spec \
17506 whole_archive_flag_spec \
17507 compiler_needs_object \
17508 with_gnu_ld \
17509 allow_undefined_flag \
17510 no_undefined_flag \
17511 hardcode_libdir_flag_spec \
17512 hardcode_libdir_flag_spec_ld \
17513 hardcode_libdir_separator \
17514 fix_srcfile_path \
17515 exclude_expsyms \
17516 include_expsyms \
17517 file_list_spec \
17518 variables_saved_for_relink \
17519 libname_spec \
17520 library_names_spec \
17521 soname_spec \
17522 finish_eval \
17523 old_striplib \
17524 striplib \
17525 compiler_lib_search_dirs \
17526 predep_objects \
17527 postdep_objects \
17528 predeps \
17529 postdeps \
17530 compiler_lib_search_path \
17531 LD_CXX \
17532 compiler_CXX \
17533 lt_prog_compiler_no_builtin_flag_CXX \
17534 lt_prog_compiler_wl_CXX \
17535 lt_prog_compiler_pic_CXX \
17536 lt_prog_compiler_static_CXX \
17537 lt_cv_prog_compiler_c_o_CXX \
17538 export_dynamic_flag_spec_CXX \
17539 whole_archive_flag_spec_CXX \
17540 compiler_needs_object_CXX \
17541 with_gnu_ld_CXX \
17542 allow_undefined_flag_CXX \
17543 no_undefined_flag_CXX \
17544 hardcode_libdir_flag_spec_CXX \
17545 hardcode_libdir_flag_spec_ld_CXX \
17546 hardcode_libdir_separator_CXX \
17547 fix_srcfile_path_CXX \
17548 exclude_expsyms_CXX \
17549 include_expsyms_CXX \
17550 file_list_spec_CXX \
17551 compiler_lib_search_dirs_CXX \
17552 predep_objects_CXX \
17553 postdep_objects_CXX \
17554 predeps_CXX \
17555 postdeps_CXX \
17556 compiler_lib_search_path_CXX; do
17557     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17558     *[\\\\\\\`\\"\\\$]*)
17559       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17560       ;;
17561     *)
17562       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17563       ;;
17564     esac
17565 done
17567 # Double-quote double-evaled strings.
17568 for var in reload_cmds \
17569 old_postinstall_cmds \
17570 old_postuninstall_cmds \
17571 old_archive_cmds \
17572 extract_expsyms_cmds \
17573 old_archive_from_new_cmds \
17574 old_archive_from_expsyms_cmds \
17575 archive_cmds \
17576 archive_expsym_cmds \
17577 module_cmds \
17578 module_expsym_cmds \
17579 export_symbols_cmds \
17580 prelink_cmds \
17581 postinstall_cmds \
17582 postuninstall_cmds \
17583 finish_cmds \
17584 sys_lib_search_path_spec \
17585 sys_lib_dlsearch_path_spec \
17586 old_archive_cmds_CXX \
17587 old_archive_from_new_cmds_CXX \
17588 old_archive_from_expsyms_cmds_CXX \
17589 archive_cmds_CXX \
17590 archive_expsym_cmds_CXX \
17591 module_cmds_CXX \
17592 module_expsym_cmds_CXX \
17593 export_symbols_cmds_CXX \
17594 prelink_cmds_CXX; do
17595     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17596     *[\\\\\\\`\\"\\\$]*)
17597       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17598       ;;
17599     *)
17600       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17601       ;;
17602     esac
17603 done
17605 # Fix-up fallback echo if it was mangled by the above quoting rules.
17606 case \$lt_ECHO in
17607 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17608   ;;
17609 esac
17611 ac_aux_dir='$ac_aux_dir'
17612 xsi_shell='$xsi_shell'
17613 lt_shell_append='$lt_shell_append'
17615 # See if we are running on zsh, and set the options which allow our
17616 # commands through without removal of \ escapes INIT.
17617 if test -n "\${ZSH_VERSION+set}" ; then
17618    setopt NO_GLOB_SUBST
17622     PACKAGE='$PACKAGE'
17623     VERSION='$VERSION'
17624     TIMESTAMP='$TIMESTAMP'
17625     RM='$RM'
17626     ofile='$ofile'
17632 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17634 _ACEOF
17636 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17638 # Handling of arguments.
17639 for ac_config_target in $ac_config_targets
17641   case $ac_config_target in
17642     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17643     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17644     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17645     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17647   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
17648   esac
17649 done
17652 # If the user did not use the arguments to specify the items to instantiate,
17653 # then the envvar interface is used.  Set only those that are not.
17654 # We use the long form for the default assignment because of an extremely
17655 # bizarre bug on SunOS 4.1.3.
17656 if $ac_need_defaults; then
17657   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17658   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17659   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17662 # Have a temporary directory for convenience.  Make it in the build tree
17663 # simply because there is no reason against having it here, and in addition,
17664 # creating and moving files from /tmp can sometimes cause problems.
17665 # Hook for its removal unless debugging.
17666 # Note that there is a small window in which the directory will not be cleaned:
17667 # after its creation but before its name has been assigned to `$tmp'.
17668 $debug ||
17670   tmp=
17671   trap 'exit_status=$?
17672   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17673 ' 0
17674   trap 'as_fn_exit 1' 1 2 13 15
17676 # Create a (secure) tmp directory for tmp files.
17679   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17680   test -n "$tmp" && test -d "$tmp"
17681 }  ||
17683   tmp=./conf$$-$RANDOM
17684   (umask 077 && mkdir "$tmp")
17685 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 
17687 # Set up the scripts for CONFIG_FILES section.
17688 # No need to generate them if there are no CONFIG_FILES.
17689 # This happens for instance with `./config.status config.h'.
17690 if test -n "$CONFIG_FILES"; then
17693 ac_cr=`echo X | tr X '\015'`
17694 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17695 # But we know of no other shell where ac_cr would be empty at this
17696 # point, so we can use a bashism as a fallback.
17697 if test "x$ac_cr" = x; then
17698   eval ac_cr=\$\'\\r\'
17700 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17701 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17702   ac_cs_awk_cr='\\r'
17703 else
17704   ac_cs_awk_cr=$ac_cr
17707 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17708 _ACEOF
17712   echo "cat >conf$$subs.awk <<_ACEOF" &&
17713   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17714   echo "_ACEOF"
17715 } >conf$$subs.sh ||
17716   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 
17717 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17718 ac_delim='%!_!# '
17719 for ac_last_try in false false false false false :; do
17720   . ./conf$$subs.sh ||
17721     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 
17723   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17724   if test $ac_delim_n = $ac_delim_num; then
17725     break
17726   elif $ac_last_try; then
17727     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 
17728   else
17729     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17730   fi
17731 done
17732 rm -f conf$$subs.sh
17734 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17735 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17736 _ACEOF
17737 sed -n '
17739 s/^/S["/; s/!.*/"]=/
17742 s/^[^!]*!//
17743 :repl
17744 t repl
17745 s/'"$ac_delim"'$//
17746 t delim
17749 s/\(.\{148\}\)..*/\1/
17750 t more1
17751 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17754 b repl
17755 :more1
17756 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17759 s/.\{148\}//
17760 t nl
17761 :delim
17763 s/\(.\{148\}\)..*/\1/
17764 t more2
17765 s/["\\]/\\&/g; s/^/"/; s/$/"/
17768 :more2
17769 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17772 s/.\{148\}//
17773 t delim
17774 ' <conf$$subs.awk | sed '
17775 /^[^""]/{
17776   N
17777   s/\n//
17779 ' >>$CONFIG_STATUS || ac_write_fail=1
17780 rm -f conf$$subs.awk
17781 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17782 _ACAWK
17783 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17784   for (key in S) S_is_set[key] = 1
17785   FS = "\a"
17789   line = $ 0
17790   nfields = split(line, field, "@")
17791   substed = 0
17792   len = length(field[1])
17793   for (i = 2; i < nfields; i++) {
17794     key = field[i]
17795     keylen = length(key)
17796     if (S_is_set[key]) {
17797       value = S[key]
17798       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17799       len += length(value) + length(field[++i])
17800       substed = 1
17801     } else
17802       len += 1 + keylen
17803   }
17805   print line
17808 _ACAWK
17809 _ACEOF
17810 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17811 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17812   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17813 else
17814   cat
17815 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17816   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 
17817 _ACEOF
17819 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17820 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17821 # trailing colons and then remove the whole line if VPATH becomes empty
17822 # (actually we leave an empty line to preserve line numbers).
17823 if test "x$srcdir" = x.; then
17824   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
17826 s///
17827 s/^/:/
17828 s/[      ]*$/:/
17829 s/:\$(srcdir):/:/g
17830 s/:\${srcdir}:/:/g
17831 s/:@srcdir@:/:/g
17832 s/^:*//
17833 s/:*$//
17835 s/\(=[   ]*\).*/\1/
17837 s/\n//
17838 s/^[^=]*=[       ]*$//
17842 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17843 fi # test -n "$CONFIG_FILES"
17845 # Set up the scripts for CONFIG_HEADERS section.
17846 # No need to generate them if there are no CONFIG_HEADERS.
17847 # This happens for instance with `./config.status Makefile'.
17848 if test -n "$CONFIG_HEADERS"; then
17849 cat >"$tmp/defines.awk" <<\_ACAWK ||
17850 BEGIN {
17851 _ACEOF
17853 # Transform confdefs.h into an awk script `defines.awk', embedded as
17854 # here-document in config.status, that substitutes the proper values into
17855 # config.h.in to produce config.h.
17857 # Create a delimiter string that does not exist in confdefs.h, to ease
17858 # handling of long lines.
17859 ac_delim='%!_!# '
17860 for ac_last_try in false false :; do
17861   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17862   if test -z "$ac_t"; then
17863     break
17864   elif $ac_last_try; then
17865     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 
17866   else
17867     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17868   fi
17869 done
17871 # For the awk script, D is an array of macro values keyed by name,
17872 # likewise P contains macro parameters if any.  Preserve backslash
17873 # newline sequences.
17875 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17876 sed -n '
17877 s/.\{148\}/&'"$ac_delim"'/g
17878 t rset
17879 :rset
17880 s/^[     ]*#[    ]*define[       ][      ]*/ /
17881 t def
17883 :def
17884 s/\\$//
17885 t bsnl
17886 s/["\\]/\\&/g
17887 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17888 D["\1"]=" \3"/p
17889 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17891 :bsnl
17892 s/["\\]/\\&/g
17893 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17894 D["\1"]=" \3\\\\\\n"\\/p
17895 t cont
17896 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17897 t cont
17899 :cont
17901 s/.\{148\}/&'"$ac_delim"'/g
17902 t clear
17903 :clear
17904 s/\\$//
17905 t bsnlc
17906 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17908 :bsnlc
17909 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17910 b cont
17911 ' <confdefs.h | sed '
17912 s/'"$ac_delim"'/"\\\
17913 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17915 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17916   for (key in D) D_is_set[key] = 1
17917   FS = "\a"
17919 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17920   line = \$ 0
17921   split(line, arg, " ")
17922   if (arg[1] == "#") {
17923     defundef = arg[2]
17924     mac1 = arg[3]
17925   } else {
17926     defundef = substr(arg[1], 2)
17927     mac1 = arg[2]
17928   }
17929   split(mac1, mac2, "(") #)
17930   macro = mac2[1]
17931   prefix = substr(line, 1, index(line, defundef) - 1)
17932   if (D_is_set[macro]) {
17933     # Preserve the white space surrounding the "#".
17934     print prefix "define", macro P[macro] D[macro]
17935     next
17936   } else {
17937     # Replace #undef with comments.  This is necessary, for example,
17938     # in the case of _POSIX_SOURCE, which is predefined and required
17939     # on some systems where configure will not decide to define it.
17940     if (defundef == "undef") {
17941       print "/*", prefix defundef, macro, "*/"
17942       next
17943     }
17944   }
17946 { print }
17947 _ACAWK
17948 _ACEOF
17949 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17950   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 
17951 fi # test -n "$CONFIG_HEADERS"
17954 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17955 shift
17956 for ac_tag
17958   case $ac_tag in
17959   :[FHLC]) ac_mode=$ac_tag; continue;;
17960   esac
17961   case $ac_mode$ac_tag in
17962   :[FHL]*:*);;
17963   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
17964   :[FH]-) ac_tag=-:-;;
17965   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17966   esac
17967   ac_save_IFS=$IFS
17968   IFS=:
17969   set x $ac_tag
17970   IFS=$ac_save_IFS
17971   shift
17972   ac_file=$1
17973   shift
17975   case $ac_mode in
17976   :L) ac_source=$1;;
17977   :[FH])
17978     ac_file_inputs=
17979     for ac_f
17980     do
17981       case $ac_f in
17982       -) ac_f="$tmp/stdin";;
17983       *) # Look for the file first in the build tree, then in the source tree
17984          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17985          # because $ac_f cannot contain `:'.
17986          test -f "$ac_f" ||
17987            case $ac_f in
17988            [\\/$]*) false;;
17989            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17990            esac ||
17991            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
17992       esac
17993       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17994       as_fn_append ac_file_inputs " '$ac_f'"
17995     done
17997     # Let's still pretend it is `configure' which instantiates (i.e., don't
17998     # use $as_me), people would be surprised to read:
17999     #    /* config.h.  Generated by config.status.  */
18000     configure_input='Generated from '`
18001           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18002         `' by configure.'
18003     if test x"$ac_file" != x-; then
18004       configure_input="$ac_file.  $configure_input"
18005       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18006 $as_echo "$as_me: creating $ac_file" >&6;}
18007     fi
18008     # Neutralize special characters interpreted by sed in replacement strings.
18009     case $configure_input in #(
18010     *\&* | *\|* | *\\* )
18011        ac_sed_conf_input=`$as_echo "$configure_input" |
18012        sed 's/[\\\\&|]/\\\\&/g'`;; #(
18013     *) ac_sed_conf_input=$configure_input;;
18014     esac
18016     case $ac_tag in
18017     *:-:* | *:-) cat >"$tmp/stdin" \
18018       || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
18019     esac
18020     ;;
18021   esac
18023   ac_dir=`$as_dirname -- "$ac_file" ||
18024 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18025          X"$ac_file" : 'X\(//\)[^/]' \| \
18026          X"$ac_file" : 'X\(//\)$' \| \
18027          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18028 $as_echo X"$ac_file" |
18029     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18030             s//\1/
18031             q
18032           }
18033           /^X\(\/\/\)[^/].*/{
18034             s//\1/
18035             q
18036           }
18037           /^X\(\/\/\)$/{
18038             s//\1/
18039             q
18040           }
18041           /^X\(\/\).*/{
18042             s//\1/
18043             q
18044           }
18045           s/.*/./; q'`
18046   as_dir="$ac_dir"; as_fn_mkdir_p
18047   ac_builddir=.
18049 case "$ac_dir" in
18050 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18052   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18053   # A ".." for each directory in $ac_dir_suffix.
18054   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18055   case $ac_top_builddir_sub in
18056   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18057   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18058   esac ;;
18059 esac
18060 ac_abs_top_builddir=$ac_pwd
18061 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18062 # for backward compatibility:
18063 ac_top_builddir=$ac_top_build_prefix
18065 case $srcdir in
18066   .)  # We are building in place.
18067     ac_srcdir=.
18068     ac_top_srcdir=$ac_top_builddir_sub
18069     ac_abs_top_srcdir=$ac_pwd ;;
18070   [\\/]* | ?:[\\/]* )  # Absolute name.
18071     ac_srcdir=$srcdir$ac_dir_suffix;
18072     ac_top_srcdir=$srcdir
18073     ac_abs_top_srcdir=$srcdir ;;
18074   *) # Relative name.
18075     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18076     ac_top_srcdir=$ac_top_build_prefix$srcdir
18077     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18078 esac
18079 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18082   case $ac_mode in
18083   :F)
18084   #
18085   # CONFIG_FILE
18086   #
18088   case $INSTALL in
18089   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18090   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18091   esac
18092   ac_MKDIR_P=$MKDIR_P
18093   case $MKDIR_P in
18094   [\\/$]* | ?:[\\/]* ) ;;
18095   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18096   esac
18097 _ACEOF
18099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18100 # If the template does not know about datarootdir, expand it.
18101 # FIXME: This hack should be removed a few years after 2.60.
18102 ac_datarootdir_hack=; ac_datarootdir_seen=
18103 ac_sed_dataroot='
18104 /datarootdir/ {
18105   p
18106   q
18108 /@datadir@/p
18109 /@docdir@/p
18110 /@infodir@/p
18111 /@localedir@/p
18112 /@mandir@/p'
18113 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18114 *datarootdir*) ac_datarootdir_seen=yes;;
18115 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18116   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18117 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18118 _ACEOF
18119 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18120   ac_datarootdir_hack='
18121   s&@datadir@&$datadir&g
18122   s&@docdir@&$docdir&g
18123   s&@infodir@&$infodir&g
18124   s&@localedir@&$localedir&g
18125   s&@mandir@&$mandir&g
18126   s&\\\${datarootdir}&$datarootdir&g' ;;
18127 esac
18128 _ACEOF
18130 # Neutralize VPATH when `$srcdir' = `.'.
18131 # Shell code in configure.ac might set extrasub.
18132 # FIXME: do we really want to maintain this feature?
18133 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18134 ac_sed_extra="$ac_vpsub
18135 $extrasub
18136 _ACEOF
18137 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18139 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18140 s|@configure_input@|$ac_sed_conf_input|;t t
18141 s&@top_builddir@&$ac_top_builddir_sub&;t t
18142 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18143 s&@srcdir@&$ac_srcdir&;t t
18144 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18145 s&@top_srcdir@&$ac_top_srcdir&;t t
18146 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18147 s&@builddir@&$ac_builddir&;t t
18148 s&@abs_builddir@&$ac_abs_builddir&;t t
18149 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18150 s&@INSTALL@&$ac_INSTALL&;t t
18151 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18152 $ac_datarootdir_hack
18154 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18155   || as_fn_error $? "could not create $ac_file" "$LINENO" 5 
18157 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18158   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18159   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18160   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18161 which seems to be undefined.  Please make sure it is defined" >&5
18162 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18163 which seems to be undefined.  Please make sure it is defined" >&2;}
18165   rm -f "$tmp/stdin"
18166   case $ac_file in
18167   -) cat "$tmp/out" && rm -f "$tmp/out";;
18168   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18169   esac \
18170   || as_fn_error $? "could not create $ac_file" "$LINENO" 5 
18171  ;;
18172   :H)
18173   #
18174   # CONFIG_HEADER
18175   #
18176   if test x"$ac_file" != x-; then
18177     {
18178       $as_echo "/* $configure_input  */" \
18179       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18180     } >"$tmp/config.h" \
18181       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 
18182     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18183       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18184 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18185     else
18186       rm -f "$ac_file"
18187       mv "$tmp/config.h" "$ac_file" \
18188         || as_fn_error $? "could not create $ac_file" "$LINENO" 5 
18189     fi
18190   else
18191     $as_echo "/* $configure_input  */" \
18192       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18193       || as_fn_error $? "could not create -" "$LINENO" 5 
18194   fi
18195 # Compute "$ac_file"'s index in $config_headers.
18196 _am_arg="$ac_file"
18197 _am_stamp_count=1
18198 for _am_header in $config_headers :; do
18199   case $_am_header in
18200     $_am_arg | $_am_arg:* )
18201       break ;;
18202     * )
18203       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18204   esac
18205 done
18206 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18207 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18208          X"$_am_arg" : 'X\(//\)[^/]' \| \
18209          X"$_am_arg" : 'X\(//\)$' \| \
18210          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18211 $as_echo X"$_am_arg" |
18212     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18213             s//\1/
18214             q
18215           }
18216           /^X\(\/\/\)[^/].*/{
18217             s//\1/
18218             q
18219           }
18220           /^X\(\/\/\)$/{
18221             s//\1/
18222             q
18223           }
18224           /^X\(\/\).*/{
18225             s//\1/
18226             q
18227           }
18228           s/.*/./; q'`/stamp-h$_am_stamp_count
18229  ;;
18230   
18231   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18232 $as_echo "$as_me: executing $ac_file commands" >&6;}
18233  ;;
18234   esac
18237   case $ac_file$ac_mode in
18238     "libtool":C) 
18239     
18240     # See if we are running on zsh, and set the options which allow our
18241     # commands through without removal of \ escapes.
18242     if test -n "${ZSH_VERSION+set}" ; then
18243       setopt NO_GLOB_SUBST
18244     fi
18246     cfgfile="${ofile}T"
18247     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18248     $RM "$cfgfile"
18250     cat <<_LT_EOF >> "$cfgfile"
18251 #! $SHELL
18253 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18254 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18255 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18256 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18258 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18259 #                 2006, 2007, 2008 Free Software Foundation, Inc.
18260 #   Written by Gordon Matzigkeit, 1996
18262 #   This file is part of GNU Libtool.
18264 # GNU Libtool is free software; you can redistribute it and/or
18265 # modify it under the terms of the GNU General Public License as
18266 # published by the Free Software Foundation; either version 2 of
18267 # the License, or (at your option) any later version.
18269 # As a special exception to the GNU General Public License,
18270 # if you distribute this file as part of a program or library that
18271 # is built using GNU Libtool, you may include this file under the
18272 # same distribution terms that you use for the rest of that program.
18274 # GNU Libtool is distributed in the hope that it will be useful,
18275 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18276 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18277 # GNU General Public License for more details.
18279 # You should have received a copy of the GNU General Public License
18280 # along with GNU Libtool; see the file COPYING.  If not, a copy
18281 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18282 # obtained by writing to the Free Software Foundation, Inc.,
18283 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18286 # The names of the tagged configurations supported by this script.
18287 available_tags="CXX "
18289 # ### BEGIN LIBTOOL CONFIG
18291 # Which release of libtool.m4 was used?
18292 macro_version=$macro_version
18293 macro_revision=$macro_revision
18295 # Whether or not to build shared libraries.
18296 build_libtool_libs=$enable_shared
18298 # Whether or not to build static libraries.
18299 build_old_libs=$enable_static
18301 # What type of objects to build.
18302 pic_mode=$pic_mode
18304 # Whether or not to optimize for fast installation.
18305 fast_install=$enable_fast_install
18307 # The host system.
18308 host_alias=$host_alias
18309 host=$host
18310 host_os=$host_os
18312 # The build system.
18313 build_alias=$build_alias
18314 build=$build
18315 build_os=$build_os
18317 # A sed program that does not truncate output.
18318 SED=$lt_SED
18320 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18321 Xsed="\$SED -e 1s/^X//"
18323 # A grep program that handles long lines.
18324 GREP=$lt_GREP
18326 # An ERE matcher.
18327 EGREP=$lt_EGREP
18329 # A literal string matcher.
18330 FGREP=$lt_FGREP
18332 # A BSD- or MS-compatible name lister.
18333 NM=$lt_NM
18335 # Whether we need soft or hard links.
18336 LN_S=$lt_LN_S
18338 # What is the maximum length of a command?
18339 max_cmd_len=$max_cmd_len
18341 # Object file suffix (normally "o").
18342 objext=$ac_objext
18344 # Executable file suffix (normally "").
18345 exeext=$exeext
18347 # whether the shell understands "unset".
18348 lt_unset=$lt_unset
18350 # turn spaces into newlines.
18351 SP2NL=$lt_lt_SP2NL
18353 # turn newlines into spaces.
18354 NL2SP=$lt_lt_NL2SP
18356 # How to create reloadable object files.
18357 reload_flag=$lt_reload_flag
18358 reload_cmds=$lt_reload_cmds
18360 # An object symbol dumper.
18361 OBJDUMP=$lt_OBJDUMP
18363 # Method to check whether dependent libraries are shared objects.
18364 deplibs_check_method=$lt_deplibs_check_method
18366 # Command to use when deplibs_check_method == "file_magic".
18367 file_magic_cmd=$lt_file_magic_cmd
18369 # The archiver.
18370 AR=$lt_AR
18371 AR_FLAGS=$lt_AR_FLAGS
18373 # A symbol stripping program.
18374 STRIP=$lt_STRIP
18376 # Commands used to install an old-style archive.
18377 RANLIB=$lt_RANLIB
18378 old_postinstall_cmds=$lt_old_postinstall_cmds
18379 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18381 # A C compiler.
18382 LTCC=$lt_CC
18384 # LTCC compiler flags.
18385 LTCFLAGS=$lt_CFLAGS
18387 # Take the output of nm and produce a listing of raw symbols and C names.
18388 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18390 # Transform the output of nm in a proper C declaration.
18391 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18393 # Transform the output of nm in a C name address pair.
18394 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18396 # Transform the output of nm in a C name address pair when lib prefix is needed.
18397 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18399 # The name of the directory that contains temporary libtool files.
18400 objdir=$objdir
18402 # Shell to use when invoking shell scripts.
18403 SHELL=$lt_SHELL
18405 # An echo program that does not interpret backslashes.
18406 ECHO=$lt_ECHO
18408 # Used to examine libraries when file_magic_cmd begins with "file".
18409 MAGIC_CMD=$MAGIC_CMD
18411 # Must we lock files when doing compilation?
18412 need_locks=$lt_need_locks
18414 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18415 DSYMUTIL=$lt_DSYMUTIL
18417 # Tool to change global to local symbols on Mac OS X.
18418 NMEDIT=$lt_NMEDIT
18420 # Tool to manipulate fat objects and archives on Mac OS X.
18421 LIPO=$lt_LIPO
18423 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18424 OTOOL=$lt_OTOOL
18426 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18427 OTOOL64=$lt_OTOOL64
18429 # Old archive suffix (normally "a").
18430 libext=$libext
18432 # Shared library suffix (normally ".so").
18433 shrext_cmds=$lt_shrext_cmds
18435 # The commands to extract the exported symbol list from a shared archive.
18436 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18438 # Variables whose values should be saved in libtool wrapper scripts and
18439 # restored at link time.
18440 variables_saved_for_relink=$lt_variables_saved_for_relink
18442 # Do we need the "lib" prefix for modules?
18443 need_lib_prefix=$need_lib_prefix
18445 # Do we need a version for libraries?
18446 need_version=$need_version
18448 # Library versioning type.
18449 version_type=$version_type
18451 # Shared library runtime path variable.
18452 runpath_var=$runpath_var
18454 # Shared library path variable.
18455 shlibpath_var=$shlibpath_var
18457 # Is shlibpath searched before the hard-coded library search path?
18458 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18460 # Format of library name prefix.
18461 libname_spec=$lt_libname_spec
18463 # List of archive names.  First name is the real one, the rest are links.
18464 # The last name is the one that the linker finds with -lNAME
18465 library_names_spec=$lt_library_names_spec
18467 # The coded name of the library, if different from the real name.
18468 soname_spec=$lt_soname_spec
18470 # Command to use after installation of a shared archive.
18471 postinstall_cmds=$lt_postinstall_cmds
18473 # Command to use after uninstallation of a shared archive.
18474 postuninstall_cmds=$lt_postuninstall_cmds
18476 # Commands used to finish a libtool library installation in a directory.
18477 finish_cmds=$lt_finish_cmds
18479 # As "finish_cmds", except a single script fragment to be evaled but
18480 # not shown.
18481 finish_eval=$lt_finish_eval
18483 # Whether we should hardcode library paths into libraries.
18484 hardcode_into_libs=$hardcode_into_libs
18486 # Compile-time system search path for libraries.
18487 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18489 # Run-time system search path for libraries.
18490 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18492 # Whether dlopen is supported.
18493 dlopen_support=$enable_dlopen
18495 # Whether dlopen of programs is supported.
18496 dlopen_self=$enable_dlopen_self
18498 # Whether dlopen of statically linked programs is supported.
18499 dlopen_self_static=$enable_dlopen_self_static
18501 # Commands to strip libraries.
18502 old_striplib=$lt_old_striplib
18503 striplib=$lt_striplib
18506 # The linker used to build libraries.
18507 LD=$lt_LD
18509 # Commands used to build an old-style archive.
18510 old_archive_cmds=$lt_old_archive_cmds
18512 # A language specific compiler.
18513 CC=$lt_compiler
18515 # Is the compiler the GNU compiler?
18516 with_gcc=$GCC
18518 # Compiler flag to turn off builtin functions.
18519 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18521 # How to pass a linker flag through the compiler.
18522 wl=$lt_lt_prog_compiler_wl
18524 # Additional compiler flags for building library objects.
18525 pic_flag=$lt_lt_prog_compiler_pic
18527 # Compiler flag to prevent dynamic linking.
18528 link_static_flag=$lt_lt_prog_compiler_static
18530 # Does compiler simultaneously support -c and -o options?
18531 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18533 # Whether or not to add -lc for building shared libraries.
18534 build_libtool_need_lc=$archive_cmds_need_lc
18536 # Whether or not to disallow shared libs when runtime libs are static.
18537 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18539 # Compiler flag to allow reflexive dlopens.
18540 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18542 # Compiler flag to generate shared objects directly from archives.
18543 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18545 # Whether the compiler copes with passing no objects directly.
18546 compiler_needs_object=$lt_compiler_needs_object
18548 # Create an old-style archive from a shared archive.
18549 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18551 # Create a temporary old-style archive to link instead of a shared archive.
18552 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18554 # Commands used to build a shared archive.
18555 archive_cmds=$lt_archive_cmds
18556 archive_expsym_cmds=$lt_archive_expsym_cmds
18558 # Commands used to build a loadable module if different from building
18559 # a shared archive.
18560 module_cmds=$lt_module_cmds
18561 module_expsym_cmds=$lt_module_expsym_cmds
18563 # Whether we are building with GNU ld or not.
18564 with_gnu_ld=$lt_with_gnu_ld
18566 # Flag that allows shared libraries with undefined symbols to be built.
18567 allow_undefined_flag=$lt_allow_undefined_flag
18569 # Flag that enforces no undefined symbols.
18570 no_undefined_flag=$lt_no_undefined_flag
18572 # Flag to hardcode \$libdir into a binary during linking.
18573 # This must work even if \$libdir does not exist
18574 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18576 # If ld is used when linking, flag to hardcode \$libdir into a binary
18577 # during linking.  This must work even if \$libdir does not exist.
18578 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18580 # Whether we need a single "-rpath" flag with a separated argument.
18581 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18583 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18584 # DIR into the resulting binary.
18585 hardcode_direct=$hardcode_direct
18587 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18588 # DIR into the resulting binary and the resulting library dependency is
18589 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18590 # library is relocated.
18591 hardcode_direct_absolute=$hardcode_direct_absolute
18593 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18594 # into the resulting binary.
18595 hardcode_minus_L=$hardcode_minus_L
18597 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18598 # into the resulting binary.
18599 hardcode_shlibpath_var=$hardcode_shlibpath_var
18601 # Set to "yes" if building a shared library automatically hardcodes DIR
18602 # into the library and all subsequent libraries and executables linked
18603 # against it.
18604 hardcode_automatic=$hardcode_automatic
18606 # Set to yes if linker adds runtime paths of dependent libraries
18607 # to runtime path list.
18608 inherit_rpath=$inherit_rpath
18610 # Whether libtool must link a program against all its dependency libraries.
18611 link_all_deplibs=$link_all_deplibs
18613 # Fix the shell variable \$srcfile for the compiler.
18614 fix_srcfile_path=$lt_fix_srcfile_path
18616 # Set to "yes" if exported symbols are required.
18617 always_export_symbols=$always_export_symbols
18619 # The commands to list exported symbols.
18620 export_symbols_cmds=$lt_export_symbols_cmds
18622 # Symbols that should not be listed in the preloaded symbols.
18623 exclude_expsyms=$lt_exclude_expsyms
18625 # Symbols that must always be exported.
18626 include_expsyms=$lt_include_expsyms
18628 # Commands necessary for linking programs (against libraries) with templates.
18629 prelink_cmds=$lt_prelink_cmds
18631 # Specify filename containing input files.
18632 file_list_spec=$lt_file_list_spec
18634 # How to hardcode a shared library path into an executable.
18635 hardcode_action=$hardcode_action
18637 # The directories searched by this compiler when creating a shared library.
18638 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18640 # Dependencies to place before and after the objects being linked to
18641 # create a shared library.
18642 predep_objects=$lt_predep_objects
18643 postdep_objects=$lt_postdep_objects
18644 predeps=$lt_predeps
18645 postdeps=$lt_postdeps
18647 # The library search path used internally by the compiler when linking
18648 # a shared library.
18649 compiler_lib_search_path=$lt_compiler_lib_search_path
18651 # ### END LIBTOOL CONFIG
18653 _LT_EOF
18655   case $host_os in
18656   aix3*)
18657     cat <<\_LT_EOF >> "$cfgfile"
18658 # AIX sometimes has problems with the GCC collect2 program.  For some
18659 # reason, if we set the COLLECT_NAMES environment variable, the problems
18660 # vanish in a puff of smoke.
18661 if test "X${COLLECT_NAMES+set}" != Xset; then
18662   COLLECT_NAMES=
18663   export COLLECT_NAMES
18665 _LT_EOF
18666     ;;
18667   esac
18669   
18670 ltmain="$ac_aux_dir/ltmain.sh"
18673   # We use sed instead of cat because bash on DJGPP gets confused if
18674   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18675   # text mode, it properly converts lines to CR/LF.  This bash problem
18676   # is reportedly fixed, but why not run on old versions too?
18677   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18678     || (rm -f "$cfgfile"; exit 1)
18680   case $xsi_shell in
18681   yes)
18682     cat << \_LT_EOF >> "$cfgfile"
18684 # func_dirname file append nondir_replacement
18685 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18686 # otherwise set result to NONDIR_REPLACEMENT.
18687 func_dirname ()
18689   case ${1} in
18690     */*) func_dirname_result="${1%/*}${2}" ;;
18691     *  ) func_dirname_result="${3}" ;;
18692   esac
18695 # func_basename file
18696 func_basename ()
18698   func_basename_result="${1##*/}"
18701 # func_dirname_and_basename file append nondir_replacement
18702 # perform func_basename and func_dirname in a single function
18703 # call:
18704 #   dirname:  Compute the dirname of FILE.  If nonempty,
18705 #             add APPEND to the result, otherwise set result
18706 #             to NONDIR_REPLACEMENT.
18707 #             value returned in "$func_dirname_result"
18708 #   basename: Compute filename of FILE.
18709 #             value retuned in "$func_basename_result"
18710 # Implementation must be kept synchronized with func_dirname
18711 # and func_basename. For efficiency, we do not delegate to
18712 # those functions but instead duplicate the functionality here.
18713 func_dirname_and_basename ()
18715   case ${1} in
18716     */*) func_dirname_result="${1%/*}${2}" ;;
18717     *  ) func_dirname_result="${3}" ;;
18718   esac
18719   func_basename_result="${1##*/}"
18722 # func_stripname prefix suffix name
18723 # strip PREFIX and SUFFIX off of NAME.
18724 # PREFIX and SUFFIX must not contain globbing or regex special
18725 # characters, hashes, percent signs, but SUFFIX may contain a leading
18726 # dot (in which case that matches only a dot).
18727 func_stripname ()
18729   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18730   # positional parameters, so assign one to ordinary parameter first.
18731   func_stripname_result=${3}
18732   func_stripname_result=${func_stripname_result#"${1}"}
18733   func_stripname_result=${func_stripname_result%"${2}"}
18736 # func_opt_split
18737 func_opt_split ()
18739   func_opt_split_opt=${1%%=*}
18740   func_opt_split_arg=${1#*=}
18743 # func_lo2o object
18744 func_lo2o ()
18746   case ${1} in
18747     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18748     *)    func_lo2o_result=${1} ;;
18749   esac
18752 # func_xform libobj-or-source
18753 func_xform ()
18755   func_xform_result=${1%.*}.lo
18758 # func_arith arithmetic-term...
18759 func_arith ()
18761   func_arith_result=$(( $* ))
18764 # func_len string
18765 # STRING may not start with a hyphen.
18766 func_len ()
18768   func_len_result=${#1}
18771 _LT_EOF
18772     ;;
18773   *) # Bourne compatible functions.
18774     cat << \_LT_EOF >> "$cfgfile"
18776 # func_dirname file append nondir_replacement
18777 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18778 # otherwise set result to NONDIR_REPLACEMENT.
18779 func_dirname ()
18781   # Extract subdirectory from the argument.
18782   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18783   if test "X$func_dirname_result" = "X${1}"; then
18784     func_dirname_result="${3}"
18785   else
18786     func_dirname_result="$func_dirname_result${2}"
18787   fi
18790 # func_basename file
18791 func_basename ()
18793   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18797 # func_stripname prefix suffix name
18798 # strip PREFIX and SUFFIX off of NAME.
18799 # PREFIX and SUFFIX must not contain globbing or regex special
18800 # characters, hashes, percent signs, but SUFFIX may contain a leading
18801 # dot (in which case that matches only a dot).
18802 # func_strip_suffix prefix name
18803 func_stripname ()
18805   case ${2} in
18806     .*) func_stripname_result=`$ECHO "X${3}" \
18807            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18808     *)  func_stripname_result=`$ECHO "X${3}" \
18809            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18810   esac
18813 # sed scripts:
18814 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18815 my_sed_long_arg='1s/^-[^=]*=//'
18817 # func_opt_split
18818 func_opt_split ()
18820   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18821   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18824 # func_lo2o object
18825 func_lo2o ()
18827   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18830 # func_xform libobj-or-source
18831 func_xform ()
18833   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
18836 # func_arith arithmetic-term...
18837 func_arith ()
18839   func_arith_result=`expr "$@"`
18842 # func_len string
18843 # STRING may not start with a hyphen.
18844 func_len ()
18846   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18849 _LT_EOF
18850 esac
18852 case $lt_shell_append in
18853   yes)
18854     cat << \_LT_EOF >> "$cfgfile"
18856 # func_append var value
18857 # Append VALUE to the end of shell variable VAR.
18858 func_append ()
18860   eval "$1+=\$2"
18862 _LT_EOF
18863     ;;
18864   *)
18865     cat << \_LT_EOF >> "$cfgfile"
18867 # func_append var value
18868 # Append VALUE to the end of shell variable VAR.
18869 func_append ()
18871   eval "$1=\$$1\$2"
18874 _LT_EOF
18875     ;;
18876   esac
18879   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18880     || (rm -f "$cfgfile"; exit 1)
18882   mv -f "$cfgfile" "$ofile" ||
18883     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18884   chmod +x "$ofile"
18887     cat <<_LT_EOF >> "$ofile"
18889 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18891 # The linker used to build libraries.
18892 LD=$lt_LD_CXX
18894 # Commands used to build an old-style archive.
18895 old_archive_cmds=$lt_old_archive_cmds_CXX
18897 # A language specific compiler.
18898 CC=$lt_compiler_CXX
18900 # Is the compiler the GNU compiler?
18901 with_gcc=$GCC_CXX
18903 # Compiler flag to turn off builtin functions.
18904 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18906 # How to pass a linker flag through the compiler.
18907 wl=$lt_lt_prog_compiler_wl_CXX
18909 # Additional compiler flags for building library objects.
18910 pic_flag=$lt_lt_prog_compiler_pic_CXX
18912 # Compiler flag to prevent dynamic linking.
18913 link_static_flag=$lt_lt_prog_compiler_static_CXX
18915 # Does compiler simultaneously support -c and -o options?
18916 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18918 # Whether or not to add -lc for building shared libraries.
18919 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18921 # Whether or not to disallow shared libs when runtime libs are static.
18922 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18924 # Compiler flag to allow reflexive dlopens.
18925 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18927 # Compiler flag to generate shared objects directly from archives.
18928 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18930 # Whether the compiler copes with passing no objects directly.
18931 compiler_needs_object=$lt_compiler_needs_object_CXX
18933 # Create an old-style archive from a shared archive.
18934 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18936 # Create a temporary old-style archive to link instead of a shared archive.
18937 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18939 # Commands used to build a shared archive.
18940 archive_cmds=$lt_archive_cmds_CXX
18941 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18943 # Commands used to build a loadable module if different from building
18944 # a shared archive.
18945 module_cmds=$lt_module_cmds_CXX
18946 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18948 # Whether we are building with GNU ld or not.
18949 with_gnu_ld=$lt_with_gnu_ld_CXX
18951 # Flag that allows shared libraries with undefined symbols to be built.
18952 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18954 # Flag that enforces no undefined symbols.
18955 no_undefined_flag=$lt_no_undefined_flag_CXX
18957 # Flag to hardcode \$libdir into a binary during linking.
18958 # This must work even if \$libdir does not exist
18959 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18961 # If ld is used when linking, flag to hardcode \$libdir into a binary
18962 # during linking.  This must work even if \$libdir does not exist.
18963 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18965 # Whether we need a single "-rpath" flag with a separated argument.
18966 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18968 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18969 # DIR into the resulting binary.
18970 hardcode_direct=$hardcode_direct_CXX
18972 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18973 # DIR into the resulting binary and the resulting library dependency is
18974 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18975 # library is relocated.
18976 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18978 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18979 # into the resulting binary.
18980 hardcode_minus_L=$hardcode_minus_L_CXX
18982 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18983 # into the resulting binary.
18984 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18986 # Set to "yes" if building a shared library automatically hardcodes DIR
18987 # into the library and all subsequent libraries and executables linked
18988 # against it.
18989 hardcode_automatic=$hardcode_automatic_CXX
18991 # Set to yes if linker adds runtime paths of dependent libraries
18992 # to runtime path list.
18993 inherit_rpath=$inherit_rpath_CXX
18995 # Whether libtool must link a program against all its dependency libraries.
18996 link_all_deplibs=$link_all_deplibs_CXX
18998 # Fix the shell variable \$srcfile for the compiler.
18999 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19001 # Set to "yes" if exported symbols are required.
19002 always_export_symbols=$always_export_symbols_CXX
19004 # The commands to list exported symbols.
19005 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19007 # Symbols that should not be listed in the preloaded symbols.
19008 exclude_expsyms=$lt_exclude_expsyms_CXX
19010 # Symbols that must always be exported.
19011 include_expsyms=$lt_include_expsyms_CXX
19013 # Commands necessary for linking programs (against libraries) with templates.
19014 prelink_cmds=$lt_prelink_cmds_CXX
19016 # Specify filename containing input files.
19017 file_list_spec=$lt_file_list_spec_CXX
19019 # How to hardcode a shared library path into an executable.
19020 hardcode_action=$hardcode_action_CXX
19022 # The directories searched by this compiler when creating a shared library.
19023 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19025 # Dependencies to place before and after the objects being linked to
19026 # create a shared library.
19027 predep_objects=$lt_predep_objects_CXX
19028 postdep_objects=$lt_postdep_objects_CXX
19029 predeps=$lt_predeps_CXX
19030 postdeps=$lt_postdeps_CXX
19032 # The library search path used internally by the compiler when linking
19033 # a shared library.
19034 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19036 # ### END LIBTOOL TAG CONFIG: CXX
19037 _LT_EOF
19039  ;;
19040     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19041   # Autoconf 2.62 quotes --file arguments for eval, but not when files
19042   # are listed without --file.  Let's play safe and only enable the eval
19043   # if we detect the quoting.
19044   case $CONFIG_FILES in
19045   *\'*) eval set x "$CONFIG_FILES" ;;
19046   *)   set x $CONFIG_FILES ;;
19047   esac
19048   shift
19049   for mf
19050   do
19051     # Strip MF so we end up with the name of the file.
19052     mf=`echo "$mf" | sed -e 's/:.*$//'`
19053     # Check whether this is an Automake generated Makefile or not.
19054     # We used to match only the files named `Makefile.in', but
19055     # some people rename them; so instead we look at the file content.
19056     # Grep'ing the first line is not enough: some people post-process
19057     # each Makefile.in and add a new line on top of each file to say so.
19058     # Grep'ing the whole file is not good either: AIX grep has a line
19059     # limit of 2048, but all sed's we know have understand at least 4000.
19060     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19061       dirpart=`$as_dirname -- "$mf" ||
19062 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19063          X"$mf" : 'X\(//\)[^/]' \| \
19064          X"$mf" : 'X\(//\)$' \| \
19065          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19066 $as_echo X"$mf" |
19067     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19068             s//\1/
19069             q
19070           }
19071           /^X\(\/\/\)[^/].*/{
19072             s//\1/
19073             q
19074           }
19075           /^X\(\/\/\)$/{
19076             s//\1/
19077             q
19078           }
19079           /^X\(\/\).*/{
19080             s//\1/
19081             q
19082           }
19083           s/.*/./; q'`
19084     else
19085       continue
19086     fi
19087     # Extract the definition of DEPDIR, am__include, and am__quote
19088     # from the Makefile without running `make'.
19089     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19090     test -z "$DEPDIR" && continue
19091     am__include=`sed -n 's/^am__include = //p' < "$mf"`
19092     test -z "am__include" && continue
19093     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19094     # When using ansi2knr, U may be empty or an underscore; expand it
19095     U=`sed -n 's/^U = //p' < "$mf"`
19096     # Find all dependency output files, they are included files with
19097     # $(DEPDIR) in their names.  We invoke sed twice because it is the
19098     # simplest approach to changing $(DEPDIR) to its actual value in the
19099     # expansion.
19100     for file in `sed -n "
19101       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19102          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19103       # Make sure the directory exists.
19104       test -f "$dirpart/$file" && continue
19105       fdir=`$as_dirname -- "$file" ||
19106 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19107          X"$file" : 'X\(//\)[^/]' \| \
19108          X"$file" : 'X\(//\)$' \| \
19109          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19110 $as_echo X"$file" |
19111     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19112             s//\1/
19113             q
19114           }
19115           /^X\(\/\/\)[^/].*/{
19116             s//\1/
19117             q
19118           }
19119           /^X\(\/\/\)$/{
19120             s//\1/
19121             q
19122           }
19123           /^X\(\/\).*/{
19124             s//\1/
19125             q
19126           }
19127           s/.*/./; q'`
19128       as_dir=$dirpart/$fdir; as_fn_mkdir_p
19129       # echo "creating $dirpart/$file"
19130       echo '# dummy' > "$dirpart/$file"
19131     done
19132   done
19134  ;;
19136   esac
19137 done # for ac_tag
19140 as_fn_exit 0
19141 _ACEOF
19142 ac_clean_files=$ac_clean_files_save
19144 test $ac_write_fail = 0 ||
19145   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 
19148 # configure is writing to config.log, and then calls config.status.
19149 # config.status does its own redirection, appending to config.log.
19150 # Unfortunately, on DOS this fails, as config.log is still kept open
19151 # by configure, so config.status won't be able to write to it; its
19152 # output is simply discarded.  So we exec the FD to /dev/null,
19153 # effectively closing config.log, so it can be properly (re)opened and
19154 # appended to by config.status.  When coming back to configure, we
19155 # need to make the FD available again.
19156 if test "$no_create" != yes; then
19157   ac_cs_success=:
19158   ac_config_status_args=
19159   test "$silent" = yes &&
19160     ac_config_status_args="$ac_config_status_args --quiet"
19161   exec 5>/dev/null
19162   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19163   exec 5>>config.log
19164   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19165   # would make configure fail if this is the last instruction.
19166   $ac_cs_success || as_fn_exit 1
19168 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19169   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19170 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}