fixing all errors
[official-gcc.git] / libgpython / configure
blob0f20657463c8f7546b1ca6ff7a83686c5da1b9a3
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.
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.
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 *) :
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"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
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=';'
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
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 *) :
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 :
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 :
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 #(
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."
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 $? 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 "$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/
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
307 /^X\(\/\/\)$/{
308 s//\1/
311 /^X\(\/\).*/{
312 s//\1/
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 ()
332 eval $1+=\$2
334 else
335 as_fn_append ()
337 eval $1=\$$1\$2
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 $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
349 as_val=$(( $* ))
351 else
352 as_fn_arith ()
354 as_val=`expr "$@" || test $? -eq 1`
356 fi # as_fn_arith
359 # as_fn_error STATUS ERROR [LINENO LOG_FD]
360 # ----------------------------------------
361 # Output "`basename $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
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/
403 /^X\/\(\/\/\)$/{
404 s//\1/
407 /^X\/\(\/\).*/{
408 s//\1/
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 '
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
434 :lineno
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'
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=
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
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','`
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
547 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
548 # Yippee, $ECHO works!
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
578 done
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
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'
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
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
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
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
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 LIBOBJS=
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 LIBOBJS
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 HAVE_VISIBILITY
783 CFLAG_VISIBILITY
784 CXXCPP
785 OTOOL64
786 OTOOL
787 LIPO
788 NMEDIT
789 DSYMUTIL
790 lt_ECHO
791 STRIP
792 OBJDUMP
794 ac_ct_DUMPBIN
795 DUMPBIN
797 FGREP
798 EGREP
799 GREP
801 host_os
802 host_vendor
803 host_cpu
804 host
805 build_os
806 build_vendor
807 build_cpu
808 build
809 LIBTOOL
810 ac_ct_CXX
811 CXXFLAGS
814 RANLIB
815 SET_MAKE
816 LN_S
817 INSTALL_DATA
818 INSTALL_SCRIPT
819 INSTALL_PROGRAM
821 OBJEXT
822 EXEEXT
823 ac_ct_CC
824 CPPFLAGS
825 LDFLAGS
826 CFLAGS
829 target_alias
830 host_alias
831 build_alias
832 LIBS
833 ECHO_T
834 ECHO_N
835 ECHO_C
836 DEFS
837 mandir
838 localedir
839 libdir
840 psdir
841 pdfdir
842 dvidir
843 htmldir
844 infodir
845 docdir
846 oldincludedir
847 includedir
848 localstatedir
849 sharedstatedir
850 sysconfdir
851 datadir
852 datarootdir
853 libexecdir
854 sbindir
855 bindir
856 program_transform_name
857 prefix
858 exec_prefix
859 PACKAGE_URL
860 PACKAGE_BUGREPORT
861 PACKAGE_STRING
862 PACKAGE_VERSION
863 PACKAGE_TARNAME
864 PACKAGE_NAME
865 PATH_SEPARATOR
866 SHELL'
867 ac_subst_files=''
868 ac_user_opts='
869 enable_option_checking
870 enable_shared
871 enable_static
872 with_pic
873 enable_fast_install
874 with_gnu_ld
875 enable_libtool_lock
876 with_debug
877 enable_dependency_tracking
879 ac_precious_vars='build_alias
880 host_alias
881 target_alias
883 CFLAGS
884 LDFLAGS
885 LIBS
886 CPPFLAGS
889 CXXFLAGS
891 CXXCPP'
894 # Initialize some variables set by options.
895 ac_init_help=
896 ac_init_version=false
897 ac_unrecognized_opts=
898 ac_unrecognized_sep=
899 # The variables have the same names as the options, with
900 # dashes changed to underlines.
901 cache_file=/dev/null
902 exec_prefix=NONE
903 no_create=
904 no_recursion=
905 prefix=NONE
906 program_prefix=NONE
907 program_suffix=NONE
908 program_transform_name=s,x,x,
909 silent=
910 site=
911 srcdir=
912 verbose=
913 x_includes=NONE
914 x_libraries=NONE
916 # Installation directory options.
917 # These are left unexpanded so users can "make install exec_prefix=/foo"
918 # and all the variables that are supposed to be based on exec_prefix
919 # by default will actually change.
920 # Use braces instead of parens because sh, perl, etc. also accept them.
921 # (The list follows the same order as the GNU Coding Standards.)
922 bindir='${exec_prefix}/bin'
923 sbindir='${exec_prefix}/sbin'
924 libexecdir='${exec_prefix}/libexec'
925 datarootdir='${prefix}/share'
926 datadir='${datarootdir}'
927 sysconfdir='${prefix}/etc'
928 sharedstatedir='${prefix}/com'
929 localstatedir='${prefix}/var'
930 includedir='${prefix}/include'
931 oldincludedir='/usr/include'
932 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
933 infodir='${datarootdir}/info'
934 htmldir='${docdir}'
935 dvidir='${docdir}'
936 pdfdir='${docdir}'
937 psdir='${docdir}'
938 libdir='${exec_prefix}/lib'
939 localedir='${datarootdir}/locale'
940 mandir='${datarootdir}/man'
942 ac_prev=
943 ac_dashdash=
944 for ac_option
946 # If the previous option needs an argument, assign it.
947 if test -n "$ac_prev"; then
948 eval $ac_prev=\$ac_option
949 ac_prev=
950 continue
953 case $ac_option in
954 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
955 *=) ac_optarg= ;;
956 *) ac_optarg=yes ;;
957 esac
959 # Accept the important Cygnus configure options, so we can diagnose typos.
961 case $ac_dashdash$ac_option in
963 ac_dashdash=yes ;;
965 -bindir | --bindir | --bindi | --bind | --bin | --bi)
966 ac_prev=bindir ;;
967 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
968 bindir=$ac_optarg ;;
970 -build | --build | --buil | --bui | --bu)
971 ac_prev=build_alias ;;
972 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
973 build_alias=$ac_optarg ;;
975 -cache-file | --cache-file | --cache-fil | --cache-fi \
976 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
977 ac_prev=cache_file ;;
978 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
979 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
980 cache_file=$ac_optarg ;;
982 --config-cache | -C)
983 cache_file=config.cache ;;
985 -datadir | --datadir | --datadi | --datad)
986 ac_prev=datadir ;;
987 -datadir=* | --datadir=* | --datadi=* | --datad=*)
988 datadir=$ac_optarg ;;
990 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
991 | --dataroo | --dataro | --datar)
992 ac_prev=datarootdir ;;
993 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
994 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
995 datarootdir=$ac_optarg ;;
997 -disable-* | --disable-*)
998 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
999 # Reject names that are not valid shell variable names.
1000 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1001 as_fn_error $? "invalid feature name: $ac_useropt"
1002 ac_useropt_orig=$ac_useropt
1003 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1004 case $ac_user_opts in
1006 "enable_$ac_useropt"
1007 "*) ;;
1008 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1009 ac_unrecognized_sep=', ';;
1010 esac
1011 eval enable_$ac_useropt=no ;;
1013 -docdir | --docdir | --docdi | --doc | --do)
1014 ac_prev=docdir ;;
1015 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1016 docdir=$ac_optarg ;;
1018 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1019 ac_prev=dvidir ;;
1020 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1021 dvidir=$ac_optarg ;;
1023 -enable-* | --enable-*)
1024 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1025 # Reject names that are not valid shell variable names.
1026 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1027 as_fn_error $? "invalid feature name: $ac_useropt"
1028 ac_useropt_orig=$ac_useropt
1029 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1030 case $ac_user_opts in
1032 "enable_$ac_useropt"
1033 "*) ;;
1034 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1035 ac_unrecognized_sep=', ';;
1036 esac
1037 eval enable_$ac_useropt=\$ac_optarg ;;
1039 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1040 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1041 | --exec | --exe | --ex)
1042 ac_prev=exec_prefix ;;
1043 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1044 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1045 | --exec=* | --exe=* | --ex=*)
1046 exec_prefix=$ac_optarg ;;
1048 -gas | --gas | --ga | --g)
1049 # Obsolete; use --with-gas.
1050 with_gas=yes ;;
1052 -help | --help | --hel | --he | -h)
1053 ac_init_help=long ;;
1054 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1055 ac_init_help=recursive ;;
1056 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1057 ac_init_help=short ;;
1059 -host | --host | --hos | --ho)
1060 ac_prev=host_alias ;;
1061 -host=* | --host=* | --hos=* | --ho=*)
1062 host_alias=$ac_optarg ;;
1064 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1065 ac_prev=htmldir ;;
1066 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1067 | --ht=*)
1068 htmldir=$ac_optarg ;;
1070 -includedir | --includedir | --includedi | --included | --include \
1071 | --includ | --inclu | --incl | --inc)
1072 ac_prev=includedir ;;
1073 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1074 | --includ=* | --inclu=* | --incl=* | --inc=*)
1075 includedir=$ac_optarg ;;
1077 -infodir | --infodir | --infodi | --infod | --info | --inf)
1078 ac_prev=infodir ;;
1079 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1080 infodir=$ac_optarg ;;
1082 -libdir | --libdir | --libdi | --libd)
1083 ac_prev=libdir ;;
1084 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1085 libdir=$ac_optarg ;;
1087 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1088 | --libexe | --libex | --libe)
1089 ac_prev=libexecdir ;;
1090 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1091 | --libexe=* | --libex=* | --libe=*)
1092 libexecdir=$ac_optarg ;;
1094 -localedir | --localedir | --localedi | --localed | --locale)
1095 ac_prev=localedir ;;
1096 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1097 localedir=$ac_optarg ;;
1099 -localstatedir | --localstatedir | --localstatedi | --localstated \
1100 | --localstate | --localstat | --localsta | --localst | --locals)
1101 ac_prev=localstatedir ;;
1102 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1103 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1104 localstatedir=$ac_optarg ;;
1106 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1107 ac_prev=mandir ;;
1108 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1109 mandir=$ac_optarg ;;
1111 -nfp | --nfp | --nf)
1112 # Obsolete; use --without-fp.
1113 with_fp=no ;;
1115 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1116 | --no-cr | --no-c | -n)
1117 no_create=yes ;;
1119 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1120 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1121 no_recursion=yes ;;
1123 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1124 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1125 | --oldin | --oldi | --old | --ol | --o)
1126 ac_prev=oldincludedir ;;
1127 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1128 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1129 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1130 oldincludedir=$ac_optarg ;;
1132 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1133 ac_prev=prefix ;;
1134 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1135 prefix=$ac_optarg ;;
1137 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1138 | --program-pre | --program-pr | --program-p)
1139 ac_prev=program_prefix ;;
1140 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1141 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1142 program_prefix=$ac_optarg ;;
1144 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1145 | --program-suf | --program-su | --program-s)
1146 ac_prev=program_suffix ;;
1147 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1148 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1149 program_suffix=$ac_optarg ;;
1151 -program-transform-name | --program-transform-name \
1152 | --program-transform-nam | --program-transform-na \
1153 | --program-transform-n | --program-transform- \
1154 | --program-transform | --program-transfor \
1155 | --program-transfo | --program-transf \
1156 | --program-trans | --program-tran \
1157 | --progr-tra | --program-tr | --program-t)
1158 ac_prev=program_transform_name ;;
1159 -program-transform-name=* | --program-transform-name=* \
1160 | --program-transform-nam=* | --program-transform-na=* \
1161 | --program-transform-n=* | --program-transform-=* \
1162 | --program-transform=* | --program-transfor=* \
1163 | --program-transfo=* | --program-transf=* \
1164 | --program-trans=* | --program-tran=* \
1165 | --progr-tra=* | --program-tr=* | --program-t=*)
1166 program_transform_name=$ac_optarg ;;
1168 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1169 ac_prev=pdfdir ;;
1170 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1171 pdfdir=$ac_optarg ;;
1173 -psdir | --psdir | --psdi | --psd | --ps)
1174 ac_prev=psdir ;;
1175 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1176 psdir=$ac_optarg ;;
1178 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1179 | -silent | --silent | --silen | --sile | --sil)
1180 silent=yes ;;
1182 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1183 ac_prev=sbindir ;;
1184 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1185 | --sbi=* | --sb=*)
1186 sbindir=$ac_optarg ;;
1188 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1189 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1190 | --sharedst | --shareds | --shared | --share | --shar \
1191 | --sha | --sh)
1192 ac_prev=sharedstatedir ;;
1193 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1194 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1195 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1196 | --sha=* | --sh=*)
1197 sharedstatedir=$ac_optarg ;;
1199 -site | --site | --sit)
1200 ac_prev=site ;;
1201 -site=* | --site=* | --sit=*)
1202 site=$ac_optarg ;;
1204 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1205 ac_prev=srcdir ;;
1206 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1207 srcdir=$ac_optarg ;;
1209 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1210 | --syscon | --sysco | --sysc | --sys | --sy)
1211 ac_prev=sysconfdir ;;
1212 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1213 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1214 sysconfdir=$ac_optarg ;;
1216 -target | --target | --targe | --targ | --tar | --ta | --t)
1217 ac_prev=target_alias ;;
1218 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1219 target_alias=$ac_optarg ;;
1221 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1222 verbose=yes ;;
1224 -version | --version | --versio | --versi | --vers | -V)
1225 ac_init_version=: ;;
1227 -with-* | --with-*)
1228 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1229 # Reject names that are not valid shell variable names.
1230 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1231 as_fn_error $? "invalid package name: $ac_useropt"
1232 ac_useropt_orig=$ac_useropt
1233 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1234 case $ac_user_opts in
1236 "with_$ac_useropt"
1237 "*) ;;
1238 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1239 ac_unrecognized_sep=', ';;
1240 esac
1241 eval with_$ac_useropt=\$ac_optarg ;;
1243 -without-* | --without-*)
1244 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1245 # Reject names that are not valid shell variable names.
1246 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1247 as_fn_error $? "invalid package name: $ac_useropt"
1248 ac_useropt_orig=$ac_useropt
1249 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1250 case $ac_user_opts in
1252 "with_$ac_useropt"
1253 "*) ;;
1254 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1255 ac_unrecognized_sep=', ';;
1256 esac
1257 eval with_$ac_useropt=no ;;
1259 --x)
1260 # Obsolete; use --with-x.
1261 with_x=yes ;;
1263 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1264 | --x-incl | --x-inc | --x-in | --x-i)
1265 ac_prev=x_includes ;;
1266 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1267 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1268 x_includes=$ac_optarg ;;
1270 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1271 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1272 ac_prev=x_libraries ;;
1273 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1274 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1275 x_libraries=$ac_optarg ;;
1277 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1278 Try \`$0 --help' for more information"
1281 *=*)
1282 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1283 # Reject names that are not valid shell variable names.
1284 case $ac_envvar in #(
1285 '' | [0-9]* | *[!_$as_cr_alnum]* )
1286 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1287 esac
1288 eval $ac_envvar=\$ac_optarg
1289 export $ac_envvar ;;
1292 # FIXME: should be removed in autoconf 3.0.
1293 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1294 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1295 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1296 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1299 esac
1300 done
1302 if test -n "$ac_prev"; then
1303 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1304 as_fn_error $? "missing argument to $ac_option"
1307 if test -n "$ac_unrecognized_opts"; then
1308 case $enable_option_checking in
1309 no) ;;
1310 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1311 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1312 esac
1315 # Check all directory arguments for consistency.
1316 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1317 datadir sysconfdir sharedstatedir localstatedir includedir \
1318 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1319 libdir localedir mandir
1321 eval ac_val=\$$ac_var
1322 # Remove trailing slashes.
1323 case $ac_val in
1324 */ )
1325 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1326 eval $ac_var=\$ac_val;;
1327 esac
1328 # Be sure to have absolute directory names.
1329 case $ac_val in
1330 [\\/$]* | ?:[\\/]* ) continue;;
1331 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1332 esac
1333 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1334 done
1336 # There might be people who depend on the old broken behavior: `$host'
1337 # used to hold the argument of --host etc.
1338 # FIXME: To remove some day.
1339 build=$build_alias
1340 host=$host_alias
1341 target=$target_alias
1343 # FIXME: To remove some day.
1344 if test "x$host_alias" != x; then
1345 if test "x$build_alias" = x; then
1346 cross_compiling=maybe
1347 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1348 If a cross compiler is detected then cross compile mode will be used" >&2
1349 elif test "x$build_alias" != "x$host_alias"; then
1350 cross_compiling=yes
1354 ac_tool_prefix=
1355 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1357 test "$silent" = yes && exec 6>/dev/null
1360 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1361 ac_ls_di=`ls -di .` &&
1362 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1363 as_fn_error $? "working directory cannot be determined"
1364 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1365 as_fn_error $? "pwd does not report name of working directory"
1368 # Find the source files, if location was not specified.
1369 if test -z "$srcdir"; then
1370 ac_srcdir_defaulted=yes
1371 # Try the directory containing this script, then the parent directory.
1372 ac_confdir=`$as_dirname -- "$as_myself" ||
1373 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1374 X"$as_myself" : 'X\(//\)[^/]' \| \
1375 X"$as_myself" : 'X\(//\)$' \| \
1376 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1377 $as_echo X"$as_myself" |
1378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1379 s//\1/
1382 /^X\(\/\/\)[^/].*/{
1383 s//\1/
1386 /^X\(\/\/\)$/{
1387 s//\1/
1390 /^X\(\/\).*/{
1391 s//\1/
1394 s/.*/./; q'`
1395 srcdir=$ac_confdir
1396 if test ! -r "$srcdir/$ac_unique_file"; then
1397 srcdir=..
1399 else
1400 ac_srcdir_defaulted=no
1402 if test ! -r "$srcdir/$ac_unique_file"; then
1403 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1404 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1406 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1407 ac_abs_confdir=`(
1408 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1409 pwd)`
1410 # When building in place, set srcdir=.
1411 if test "$ac_abs_confdir" = "$ac_pwd"; then
1412 srcdir=.
1414 # Remove unnecessary trailing slashes from srcdir.
1415 # Double slashes in file names in object file debugging info
1416 # mess up M-x gdb in Emacs.
1417 case $srcdir in
1418 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1419 esac
1420 for ac_var in $ac_precious_vars; do
1421 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1422 eval ac_env_${ac_var}_value=\$${ac_var}
1423 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1424 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1425 done
1428 # Report the --help message.
1430 if test "$ac_init_help" = "long"; then
1431 # Omit some internal or obsolete options to make the list less imposing.
1432 # This message is too long to be a string in the A/UX 3.1 sh.
1433 cat <<_ACEOF
1434 \`configure' configures GNU Python Runtime Library 0.1 to adapt to many kinds of systems.
1436 Usage: $0 [OPTION]... [VAR=VALUE]...
1438 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1439 VAR=VALUE. See below for descriptions of some of the useful variables.
1441 Defaults for the options are specified in brackets.
1443 Configuration:
1444 -h, --help display this help and exit
1445 --help=short display options specific to this package
1446 --help=recursive display the short help of all the included packages
1447 -V, --version display version information and exit
1448 -q, --quiet, --silent do not print \`checking ...' messages
1449 --cache-file=FILE cache test results in FILE [disabled]
1450 -C, --config-cache alias for \`--cache-file=config.cache'
1451 -n, --no-create do not create output files
1452 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1454 Installation directories:
1455 --prefix=PREFIX install architecture-independent files in PREFIX
1456 [$ac_default_prefix]
1457 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1458 [PREFIX]
1460 By default, \`make install' will install all the files in
1461 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1462 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1463 for instance \`--prefix=\$HOME'.
1465 For better control, use the options below.
1467 Fine tuning of the installation directories:
1468 --bindir=DIR user executables [EPREFIX/bin]
1469 --sbindir=DIR system admin executables [EPREFIX/sbin]
1470 --libexecdir=DIR program executables [EPREFIX/libexec]
1471 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1472 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1473 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1474 --libdir=DIR object code libraries [EPREFIX/lib]
1475 --includedir=DIR C header files [PREFIX/include]
1476 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1477 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1478 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1479 --infodir=DIR info documentation [DATAROOTDIR/info]
1480 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1481 --mandir=DIR man documentation [DATAROOTDIR/man]
1482 --docdir=DIR documentation root [DATAROOTDIR/doc/libgpython]
1483 --htmldir=DIR html documentation [DOCDIR]
1484 --dvidir=DIR dvi documentation [DOCDIR]
1485 --pdfdir=DIR pdf documentation [DOCDIR]
1486 --psdir=DIR ps documentation [DOCDIR]
1487 _ACEOF
1489 cat <<\_ACEOF
1491 Program names:
1492 --program-prefix=PREFIX prepend PREFIX to installed program names
1493 --program-suffix=SUFFIX append SUFFIX to installed program names
1494 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1496 System types:
1497 --build=BUILD configure for building on BUILD [guessed]
1498 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1499 _ACEOF
1502 if test -n "$ac_init_help"; then
1503 case $ac_init_help in
1504 short | recursive ) echo "Configuration of GNU Python Runtime Library 0.1:";;
1505 esac
1506 cat <<\_ACEOF
1508 Optional Features:
1509 --disable-option-checking ignore unrecognized --enable/--with options
1510 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1511 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1512 --enable-shared[=PKGS] build shared libraries [default=yes]
1513 --enable-static[=PKGS] build static libraries [default=yes]
1514 --enable-fast-install[=PKGS]
1515 optimize for fast installation [default=yes]
1516 --disable-libtool-lock avoid locking (might break parallel builds)
1517 --disable-dependency-tracking speeds up one-time build
1518 --enable-dependency-tracking do not reject slow dependency extractors
1520 Optional Packages:
1521 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1522 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1523 --with-pic try to use only PIC/non-PIC objects [default=use
1524 both]
1525 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1526 --with-libgpython-debug=yes/no
1527 With Debug symbols, default no.
1529 Some influential environment variables:
1530 CC C compiler command
1531 CFLAGS C compiler flags
1532 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1533 nonstandard directory <lib dir>
1534 LIBS libraries to pass to the linker, e.g. -l<library>
1535 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1536 you have headers in a nonstandard directory <include dir>
1537 CPP C preprocessor
1538 CXX C++ compiler command
1539 CXXFLAGS C++ compiler flags
1540 CXXCPP C++ preprocessor
1542 Use these variables to override the choices made by `configure' or to help
1543 it to find libraries and programs with nonstandard names/locations.
1545 Report bugs to the package provider.
1546 GNU Python Runtime Library home page: <http://www.gnu.org/software/libgpython/>.
1547 General help using GNU software: <http://www.gnu.org/gethelp/>.
1548 _ACEOF
1549 ac_status=$?
1552 if test "$ac_init_help" = "recursive"; then
1553 # If there are subdirs, report their specific --help.
1554 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1555 test -d "$ac_dir" ||
1556 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1557 continue
1558 ac_builddir=.
1560 case "$ac_dir" in
1561 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1563 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1564 # A ".." for each directory in $ac_dir_suffix.
1565 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1566 case $ac_top_builddir_sub in
1567 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1568 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1569 esac ;;
1570 esac
1571 ac_abs_top_builddir=$ac_pwd
1572 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1573 # for backward compatibility:
1574 ac_top_builddir=$ac_top_build_prefix
1576 case $srcdir in
1577 .) # We are building in place.
1578 ac_srcdir=.
1579 ac_top_srcdir=$ac_top_builddir_sub
1580 ac_abs_top_srcdir=$ac_pwd ;;
1581 [\\/]* | ?:[\\/]* ) # Absolute name.
1582 ac_srcdir=$srcdir$ac_dir_suffix;
1583 ac_top_srcdir=$srcdir
1584 ac_abs_top_srcdir=$srcdir ;;
1585 *) # Relative name.
1586 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1587 ac_top_srcdir=$ac_top_build_prefix$srcdir
1588 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1589 esac
1590 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1592 cd "$ac_dir" || { ac_status=$?; continue; }
1593 # Check for guested configure.
1594 if test -f "$ac_srcdir/configure.gnu"; then
1595 echo &&
1596 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1597 elif test -f "$ac_srcdir/configure"; then
1598 echo &&
1599 $SHELL "$ac_srcdir/configure" --help=recursive
1600 else
1601 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1602 fi || ac_status=$?
1603 cd "$ac_pwd" || { ac_status=$?; break; }
1604 done
1607 test -n "$ac_init_help" && exit $ac_status
1608 if $ac_init_version; then
1609 cat <<\_ACEOF
1610 GNU Python Runtime Library configure 0.1
1611 generated by GNU Autoconf 2.67
1613 Copyright (C) 2010 Free Software Foundation, Inc.
1614 This configure script is free software; the Free Software Foundation
1615 gives unlimited permission to copy, distribute and modify it.
1616 _ACEOF
1617 exit
1620 ## ------------------------ ##
1621 ## Autoconf initialization. ##
1622 ## ------------------------ ##
1624 # ac_fn_c_try_compile LINENO
1625 # --------------------------
1626 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1627 ac_fn_c_try_compile ()
1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630 rm -f conftest.$ac_objext
1631 if { { ac_try="$ac_compile"
1632 case "(($ac_try" in
1633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634 *) ac_try_echo=$ac_try;;
1635 esac
1636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637 $as_echo "$ac_try_echo"; } >&5
1638 (eval "$ac_compile") 2>conftest.err
1639 ac_status=$?
1640 if test -s conftest.err; then
1641 grep -v '^ *+' conftest.err >conftest.er1
1642 cat conftest.er1 >&5
1643 mv -f conftest.er1 conftest.err
1645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646 test $ac_status = 0; } && {
1647 test -z "$ac_c_werror_flag" ||
1648 test ! -s conftest.err
1649 } && test -s conftest.$ac_objext; then :
1650 ac_retval=0
1651 else
1652 $as_echo "$as_me: failed program was:" >&5
1653 sed 's/^/| /' conftest.$ac_ext >&5
1655 ac_retval=1
1657 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1658 as_fn_set_status $ac_retval
1660 } # ac_fn_c_try_compile
1662 # ac_fn_c_try_cpp LINENO
1663 # ----------------------
1664 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1665 ac_fn_c_try_cpp ()
1667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668 if { { ac_try="$ac_cpp conftest.$ac_ext"
1669 case "(($ac_try" in
1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671 *) ac_try_echo=$ac_try;;
1672 esac
1673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674 $as_echo "$ac_try_echo"; } >&5
1675 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1676 ac_status=$?
1677 if test -s conftest.err; then
1678 grep -v '^ *+' conftest.err >conftest.er1
1679 cat conftest.er1 >&5
1680 mv -f conftest.er1 conftest.err
1682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683 test $ac_status = 0; } > conftest.i && {
1684 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1685 test ! -s conftest.err
1686 }; then :
1687 ac_retval=0
1688 else
1689 $as_echo "$as_me: failed program was:" >&5
1690 sed 's/^/| /' conftest.$ac_ext >&5
1692 ac_retval=1
1694 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1695 as_fn_set_status $ac_retval
1697 } # ac_fn_c_try_cpp
1699 # ac_fn_cxx_try_compile LINENO
1700 # ----------------------------
1701 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1702 ac_fn_cxx_try_compile ()
1704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705 rm -f conftest.$ac_objext
1706 if { { ac_try="$ac_compile"
1707 case "(($ac_try" in
1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709 *) ac_try_echo=$ac_try;;
1710 esac
1711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712 $as_echo "$ac_try_echo"; } >&5
1713 (eval "$ac_compile") 2>conftest.err
1714 ac_status=$?
1715 if test -s conftest.err; then
1716 grep -v '^ *+' conftest.err >conftest.er1
1717 cat conftest.er1 >&5
1718 mv -f conftest.er1 conftest.err
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; } && {
1722 test -z "$ac_cxx_werror_flag" ||
1723 test ! -s conftest.err
1724 } && test -s conftest.$ac_objext; then :
1725 ac_retval=0
1726 else
1727 $as_echo "$as_me: failed program was:" >&5
1728 sed 's/^/| /' conftest.$ac_ext >&5
1730 ac_retval=1
1732 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1733 as_fn_set_status $ac_retval
1735 } # ac_fn_cxx_try_compile
1737 # ac_fn_c_try_link LINENO
1738 # -----------------------
1739 # Try to link conftest.$ac_ext, and return whether this succeeded.
1740 ac_fn_c_try_link ()
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 rm -f conftest.$ac_objext conftest$ac_exeext
1744 if { { ac_try="$ac_link"
1745 case "(($ac_try" in
1746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1747 *) ac_try_echo=$ac_try;;
1748 esac
1749 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750 $as_echo "$ac_try_echo"; } >&5
1751 (eval "$ac_link") 2>conftest.err
1752 ac_status=$?
1753 if test -s conftest.err; then
1754 grep -v '^ *+' conftest.err >conftest.er1
1755 cat conftest.er1 >&5
1756 mv -f conftest.er1 conftest.err
1758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759 test $ac_status = 0; } && {
1760 test -z "$ac_c_werror_flag" ||
1761 test ! -s conftest.err
1762 } && test -s conftest$ac_exeext && {
1763 test "$cross_compiling" = yes ||
1764 $as_test_x conftest$ac_exeext
1765 }; then :
1766 ac_retval=0
1767 else
1768 $as_echo "$as_me: failed program was:" >&5
1769 sed 's/^/| /' conftest.$ac_ext >&5
1771 ac_retval=1
1773 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1774 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1775 # interfere with the next link command; also delete a directory that is
1776 # left behind by Apple's compiler. We do this before executing the actions.
1777 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1778 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1779 as_fn_set_status $ac_retval
1781 } # ac_fn_c_try_link
1783 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1784 # -------------------------------------------------------
1785 # Tests whether HEADER exists and can be compiled using the include files in
1786 # INCLUDES, setting the cache variable VAR accordingly.
1787 ac_fn_c_check_header_compile ()
1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1791 $as_echo_n "checking for $2... " >&6; }
1792 if eval "test \"\${$3+set}\"" = set; then :
1793 $as_echo_n "(cached) " >&6
1794 else
1795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1796 /* end confdefs.h. */
1798 #include <$2>
1799 _ACEOF
1800 if ac_fn_c_try_compile "$LINENO"; then :
1801 eval "$3=yes"
1802 else
1803 eval "$3=no"
1805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1807 eval ac_res=\$$3
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1809 $as_echo "$ac_res" >&6; }
1810 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1812 } # ac_fn_c_check_header_compile
1814 # ac_fn_c_try_run LINENO
1815 # ----------------------
1816 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1817 # that executables *can* be run.
1818 ac_fn_c_try_run ()
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821 if { { ac_try="$ac_link"
1822 case "(($ac_try" in
1823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1824 *) ac_try_echo=$ac_try;;
1825 esac
1826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1827 $as_echo "$ac_try_echo"; } >&5
1828 (eval "$ac_link") 2>&5
1829 ac_status=$?
1830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1831 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1832 { { case "(($ac_try" in
1833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1834 *) ac_try_echo=$ac_try;;
1835 esac
1836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1837 $as_echo "$ac_try_echo"; } >&5
1838 (eval "$ac_try") 2>&5
1839 ac_status=$?
1840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1841 test $ac_status = 0; }; }; then :
1842 ac_retval=0
1843 else
1844 $as_echo "$as_me: program exited with status $ac_status" >&5
1845 $as_echo "$as_me: failed program was:" >&5
1846 sed 's/^/| /' conftest.$ac_ext >&5
1848 ac_retval=$ac_status
1850 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1851 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1852 as_fn_set_status $ac_retval
1854 } # ac_fn_c_try_run
1856 # ac_fn_c_check_func LINENO FUNC VAR
1857 # ----------------------------------
1858 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1859 ac_fn_c_check_func ()
1861 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1863 $as_echo_n "checking for $2... " >&6; }
1864 if eval "test \"\${$3+set}\"" = set; then :
1865 $as_echo_n "(cached) " >&6
1866 else
1867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1868 /* end confdefs.h. */
1869 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1871 #define $2 innocuous_$2
1873 /* System header to define __stub macros and hopefully few prototypes,
1874 which can conflict with char $2 (); below.
1875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1876 <limits.h> exists even on freestanding compilers. */
1878 #ifdef __STDC__
1879 # include <limits.h>
1880 #else
1881 # include <assert.h>
1882 #endif
1884 #undef $2
1886 /* Override any GCC internal prototype to avoid an error.
1887 Use char because int might match the return type of a GCC
1888 builtin and then its argument prototype would still apply. */
1889 #ifdef __cplusplus
1890 extern "C"
1891 #endif
1892 char $2 ();
1893 /* The GNU C library defines this for functions which it implements
1894 to always fail with ENOSYS. Some functions are actually named
1895 something starting with __ and the normal name is an alias. */
1896 #if defined __stub_$2 || defined __stub___$2
1897 choke me
1898 #endif
1901 main ()
1903 return $2 ();
1905 return 0;
1907 _ACEOF
1908 if ac_fn_c_try_link "$LINENO"; then :
1909 eval "$3=yes"
1910 else
1911 eval "$3=no"
1913 rm -f core conftest.err conftest.$ac_objext \
1914 conftest$ac_exeext conftest.$ac_ext
1916 eval ac_res=\$$3
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1918 $as_echo "$ac_res" >&6; }
1919 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1921 } # ac_fn_c_check_func
1923 # ac_fn_cxx_try_cpp LINENO
1924 # ------------------------
1925 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1926 ac_fn_cxx_try_cpp ()
1928 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929 if { { ac_try="$ac_cpp conftest.$ac_ext"
1930 case "(($ac_try" in
1931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1932 *) ac_try_echo=$ac_try;;
1933 esac
1934 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1935 $as_echo "$ac_try_echo"; } >&5
1936 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1937 ac_status=$?
1938 if test -s conftest.err; then
1939 grep -v '^ *+' conftest.err >conftest.er1
1940 cat conftest.er1 >&5
1941 mv -f conftest.er1 conftest.err
1943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1944 test $ac_status = 0; } > conftest.i && {
1945 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1946 test ! -s conftest.err
1947 }; then :
1948 ac_retval=0
1949 else
1950 $as_echo "$as_me: failed program was:" >&5
1951 sed 's/^/| /' conftest.$ac_ext >&5
1953 ac_retval=1
1955 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1956 as_fn_set_status $ac_retval
1958 } # ac_fn_cxx_try_cpp
1960 # ac_fn_cxx_try_link LINENO
1961 # -------------------------
1962 # Try to link conftest.$ac_ext, and return whether this succeeded.
1963 ac_fn_cxx_try_link ()
1965 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966 rm -f conftest.$ac_objext conftest$ac_exeext
1967 if { { ac_try="$ac_link"
1968 case "(($ac_try" in
1969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1970 *) ac_try_echo=$ac_try;;
1971 esac
1972 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1973 $as_echo "$ac_try_echo"; } >&5
1974 (eval "$ac_link") 2>conftest.err
1975 ac_status=$?
1976 if test -s conftest.err; then
1977 grep -v '^ *+' conftest.err >conftest.er1
1978 cat conftest.er1 >&5
1979 mv -f conftest.er1 conftest.err
1981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1982 test $ac_status = 0; } && {
1983 test -z "$ac_cxx_werror_flag" ||
1984 test ! -s conftest.err
1985 } && test -s conftest$ac_exeext && {
1986 test "$cross_compiling" = yes ||
1987 $as_test_x conftest$ac_exeext
1988 }; then :
1989 ac_retval=0
1990 else
1991 $as_echo "$as_me: failed program was:" >&5
1992 sed 's/^/| /' conftest.$ac_ext >&5
1994 ac_retval=1
1996 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1997 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1998 # interfere with the next link command; also delete a directory that is
1999 # left behind by Apple's compiler. We do this before executing the actions.
2000 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2001 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2002 as_fn_set_status $ac_retval
2004 } # ac_fn_cxx_try_link
2006 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2007 # --------------------------------------------
2008 # Tries to find the compile-time value of EXPR in a program that includes
2009 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2010 # computed
2011 ac_fn_c_compute_int ()
2013 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014 if test "$cross_compiling" = yes; then
2015 # Depending upon the size, compute the lo and hi bounds.
2016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h. */
2020 main ()
2022 static int test_array [1 - 2 * !(($2) >= 0)];
2023 test_array [0] = 0
2026 return 0;
2028 _ACEOF
2029 if ac_fn_c_try_compile "$LINENO"; then :
2030 ac_lo=0 ac_mid=0
2031 while :; do
2032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033 /* end confdefs.h. */
2036 main ()
2038 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2039 test_array [0] = 0
2042 return 0;
2044 _ACEOF
2045 if ac_fn_c_try_compile "$LINENO"; then :
2046 ac_hi=$ac_mid; break
2047 else
2048 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2049 if test $ac_lo -le $ac_mid; then
2050 ac_lo= ac_hi=
2051 break
2053 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2056 done
2057 else
2058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2059 /* end confdefs.h. */
2062 main ()
2064 static int test_array [1 - 2 * !(($2) < 0)];
2065 test_array [0] = 0
2068 return 0;
2070 _ACEOF
2071 if ac_fn_c_try_compile "$LINENO"; then :
2072 ac_hi=-1 ac_mid=-1
2073 while :; do
2074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2075 /* end confdefs.h. */
2078 main ()
2080 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2081 test_array [0] = 0
2084 return 0;
2086 _ACEOF
2087 if ac_fn_c_try_compile "$LINENO"; then :
2088 ac_lo=$ac_mid; break
2089 else
2090 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2091 if test $ac_mid -le $ac_hi; then
2092 ac_lo= ac_hi=
2093 break
2095 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2098 done
2099 else
2100 ac_lo= ac_hi=
2102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2105 # Binary search between lo and hi bounds.
2106 while test "x$ac_lo" != "x$ac_hi"; do
2107 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h. */
2112 main ()
2114 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2115 test_array [0] = 0
2118 return 0;
2120 _ACEOF
2121 if ac_fn_c_try_compile "$LINENO"; then :
2122 ac_hi=$ac_mid
2123 else
2124 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127 done
2128 case $ac_lo in #((
2129 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2130 '') ac_retval=1 ;;
2131 esac
2132 else
2133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2134 /* end confdefs.h. */
2136 static long int longval () { return $2; }
2137 static unsigned long int ulongval () { return $2; }
2138 #include <stdio.h>
2139 #include <stdlib.h>
2141 main ()
2144 FILE *f = fopen ("conftest.val", "w");
2145 if (! f)
2146 return 1;
2147 if (($2) < 0)
2149 long int i = longval ();
2150 if (i != ($2))
2151 return 1;
2152 fprintf (f, "%ld", i);
2154 else
2156 unsigned long int i = ulongval ();
2157 if (i != ($2))
2158 return 1;
2159 fprintf (f, "%lu", i);
2161 /* Do not output a trailing newline, as this causes \r\n confusion
2162 on some platforms. */
2163 return ferror (f) || fclose (f) != 0;
2166 return 0;
2168 _ACEOF
2169 if ac_fn_c_try_run "$LINENO"; then :
2170 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2171 else
2172 ac_retval=1
2174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2175 conftest.$ac_objext conftest.beam conftest.$ac_ext
2176 rm -f conftest.val
2179 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2180 as_fn_set_status $ac_retval
2182 } # ac_fn_c_compute_int
2184 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2185 # -------------------------------------------
2186 # Tests whether TYPE exists after having included INCLUDES, setting cache
2187 # variable VAR accordingly.
2188 ac_fn_c_check_type ()
2190 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2192 $as_echo_n "checking for $2... " >&6; }
2193 if eval "test \"\${$3+set}\"" = set; then :
2194 $as_echo_n "(cached) " >&6
2195 else
2196 eval "$3=no"
2197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2198 /* end confdefs.h. */
2201 main ()
2203 if (sizeof ($2))
2204 return 0;
2206 return 0;
2208 _ACEOF
2209 if ac_fn_c_try_compile "$LINENO"; then :
2210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2211 /* end confdefs.h. */
2214 main ()
2216 if (sizeof (($2)))
2217 return 0;
2219 return 0;
2221 _ACEOF
2222 if ac_fn_c_try_compile "$LINENO"; then :
2224 else
2225 eval "$3=yes"
2227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2231 eval ac_res=\$$3
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2233 $as_echo "$ac_res" >&6; }
2234 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2236 } # ac_fn_c_check_type
2238 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2239 # -------------------------------------------------------
2240 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2241 # the include files in INCLUDES and setting the cache variable VAR
2242 # accordingly.
2243 ac_fn_c_check_header_mongrel ()
2245 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2246 if eval "test \"\${$3+set}\"" = set; then :
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2248 $as_echo_n "checking for $2... " >&6; }
2249 if eval "test \"\${$3+set}\"" = set; then :
2250 $as_echo_n "(cached) " >&6
2252 eval ac_res=\$$3
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2254 $as_echo "$ac_res" >&6; }
2255 else
2256 # Is the header compilable?
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2258 $as_echo_n "checking $2 usability... " >&6; }
2259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2260 /* end confdefs.h. */
2262 #include <$2>
2263 _ACEOF
2264 if ac_fn_c_try_compile "$LINENO"; then :
2265 ac_header_compiler=yes
2266 else
2267 ac_header_compiler=no
2269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2271 $as_echo "$ac_header_compiler" >&6; }
2273 # Is the header present?
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2275 $as_echo_n "checking $2 presence... " >&6; }
2276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2277 /* end confdefs.h. */
2278 #include <$2>
2279 _ACEOF
2280 if ac_fn_c_try_cpp "$LINENO"; then :
2281 ac_header_preproc=yes
2282 else
2283 ac_header_preproc=no
2285 rm -f conftest.err conftest.i conftest.$ac_ext
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2287 $as_echo "$ac_header_preproc" >&6; }
2289 # So? What about this header?
2290 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2291 yes:no: )
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2293 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2295 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2297 no:yes:* )
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2299 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2301 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2303 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2305 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2307 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2309 esac
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2311 $as_echo_n "checking for $2... " >&6; }
2312 if eval "test \"\${$3+set}\"" = set; then :
2313 $as_echo_n "(cached) " >&6
2314 else
2315 eval "$3=\$ac_header_compiler"
2317 eval ac_res=\$$3
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2319 $as_echo "$ac_res" >&6; }
2321 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2323 } # ac_fn_c_check_header_mongrel
2324 cat >config.log <<_ACEOF
2325 This file contains any messages produced by compilers while
2326 running configure, to aid debugging if configure makes a mistake.
2328 It was created by GNU Python Runtime Library $as_me 0.1, which was
2329 generated by GNU Autoconf 2.67. Invocation command line was
2331 $ $0 $@
2333 _ACEOF
2334 exec 5>>config.log
2336 cat <<_ASUNAME
2337 ## --------- ##
2338 ## Platform. ##
2339 ## --------- ##
2341 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2342 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2343 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2344 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2345 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2347 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2348 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2350 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2351 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2352 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2353 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2354 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2355 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2356 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2358 _ASUNAME
2360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2361 for as_dir in $PATH
2363 IFS=$as_save_IFS
2364 test -z "$as_dir" && as_dir=.
2365 $as_echo "PATH: $as_dir"
2366 done
2367 IFS=$as_save_IFS
2369 } >&5
2371 cat >&5 <<_ACEOF
2374 ## ----------- ##
2375 ## Core tests. ##
2376 ## ----------- ##
2378 _ACEOF
2381 # Keep a trace of the command line.
2382 # Strip out --no-create and --no-recursion so they do not pile up.
2383 # Strip out --silent because we don't want to record it for future runs.
2384 # Also quote any args containing shell meta-characters.
2385 # Make two passes to allow for proper duplicate-argument suppression.
2386 ac_configure_args=
2387 ac_configure_args0=
2388 ac_configure_args1=
2389 ac_must_keep_next=false
2390 for ac_pass in 1 2
2392 for ac_arg
2394 case $ac_arg in
2395 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2396 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2397 | -silent | --silent | --silen | --sile | --sil)
2398 continue ;;
2399 *\'*)
2400 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2401 esac
2402 case $ac_pass in
2403 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2405 as_fn_append ac_configure_args1 " '$ac_arg'"
2406 if test $ac_must_keep_next = true; then
2407 ac_must_keep_next=false # Got value, back to normal.
2408 else
2409 case $ac_arg in
2410 *=* | --config-cache | -C | -disable-* | --disable-* \
2411 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2412 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2413 | -with-* | --with-* | -without-* | --without-* | --x)
2414 case "$ac_configure_args0 " in
2415 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2416 esac
2418 -* ) ac_must_keep_next=true ;;
2419 esac
2421 as_fn_append ac_configure_args " '$ac_arg'"
2423 esac
2424 done
2425 done
2426 { ac_configure_args0=; unset ac_configure_args0;}
2427 { ac_configure_args1=; unset ac_configure_args1;}
2429 # When interrupted or exit'd, cleanup temporary files, and complete
2430 # config.log. We remove comments because anyway the quotes in there
2431 # would cause problems or look ugly.
2432 # WARNING: Use '\'' to represent an apostrophe within the trap.
2433 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2434 trap 'exit_status=$?
2435 # Save into config.log some information that might help in debugging.
2437 echo
2439 $as_echo "## ---------------- ##
2440 ## Cache variables. ##
2441 ## ---------------- ##"
2442 echo
2443 # The following way of writing the cache mishandles newlines in values,
2445 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2446 eval ac_val=\$$ac_var
2447 case $ac_val in #(
2448 *${as_nl}*)
2449 case $ac_var in #(
2450 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2451 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2452 esac
2453 case $ac_var in #(
2454 _ | IFS | as_nl) ;; #(
2455 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2456 *) { eval $ac_var=; unset $ac_var;} ;;
2457 esac ;;
2458 esac
2459 done
2460 (set) 2>&1 |
2461 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2462 *${as_nl}ac_space=\ *)
2463 sed -n \
2464 "s/'\''/'\''\\\\'\'''\''/g;
2465 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2466 ;; #(
2468 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2470 esac |
2471 sort
2473 echo
2475 $as_echo "## ----------------- ##
2476 ## Output variables. ##
2477 ## ----------------- ##"
2478 echo
2479 for ac_var in $ac_subst_vars
2481 eval ac_val=\$$ac_var
2482 case $ac_val in
2483 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2484 esac
2485 $as_echo "$ac_var='\''$ac_val'\''"
2486 done | sort
2487 echo
2489 if test -n "$ac_subst_files"; then
2490 $as_echo "## ------------------- ##
2491 ## File substitutions. ##
2492 ## ------------------- ##"
2493 echo
2494 for ac_var in $ac_subst_files
2496 eval ac_val=\$$ac_var
2497 case $ac_val in
2498 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2499 esac
2500 $as_echo "$ac_var='\''$ac_val'\''"
2501 done | sort
2502 echo
2505 if test -s confdefs.h; then
2506 $as_echo "## ----------- ##
2507 ## confdefs.h. ##
2508 ## ----------- ##"
2509 echo
2510 cat confdefs.h
2511 echo
2513 test "$ac_signal" != 0 &&
2514 $as_echo "$as_me: caught signal $ac_signal"
2515 $as_echo "$as_me: exit $exit_status"
2516 } >&5
2517 rm -f core *.core core.conftest.* &&
2518 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2519 exit $exit_status
2521 for ac_signal in 1 2 13 15; do
2522 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2523 done
2524 ac_signal=0
2526 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2527 rm -f -r conftest* confdefs.h
2529 $as_echo "/* confdefs.h */" > confdefs.h
2531 # Predefined preprocessor variables.
2533 cat >>confdefs.h <<_ACEOF
2534 #define PACKAGE_NAME "$PACKAGE_NAME"
2535 _ACEOF
2537 cat >>confdefs.h <<_ACEOF
2538 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2539 _ACEOF
2541 cat >>confdefs.h <<_ACEOF
2542 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2543 _ACEOF
2545 cat >>confdefs.h <<_ACEOF
2546 #define PACKAGE_STRING "$PACKAGE_STRING"
2547 _ACEOF
2549 cat >>confdefs.h <<_ACEOF
2550 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2551 _ACEOF
2553 cat >>confdefs.h <<_ACEOF
2554 #define PACKAGE_URL "$PACKAGE_URL"
2555 _ACEOF
2558 # Let the site file select an alternate cache file if it wants to.
2559 # Prefer an explicitly selected file to automatically selected ones.
2560 ac_site_file1=NONE
2561 ac_site_file2=NONE
2562 if test -n "$CONFIG_SITE"; then
2563 # We do not want a PATH search for config.site.
2564 case $CONFIG_SITE in #((
2565 -*) ac_site_file1=./$CONFIG_SITE;;
2566 */*) ac_site_file1=$CONFIG_SITE;;
2567 *) ac_site_file1=./$CONFIG_SITE;;
2568 esac
2569 elif test "x$prefix" != xNONE; then
2570 ac_site_file1=$prefix/share/config.site
2571 ac_site_file2=$prefix/etc/config.site
2572 else
2573 ac_site_file1=$ac_default_prefix/share/config.site
2574 ac_site_file2=$ac_default_prefix/etc/config.site
2576 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2578 test "x$ac_site_file" = xNONE && continue
2579 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2581 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2582 sed 's/^/| /' "$ac_site_file" >&5
2583 . "$ac_site_file" \
2584 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2585 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2586 as_fn_error $? "failed to load site script $ac_site_file
2587 See \`config.log' for more details" "$LINENO" 5 ; }
2589 done
2591 if test -r "$cache_file"; then
2592 # Some versions of bash will fail to source /dev/null (special files
2593 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2594 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2596 $as_echo "$as_me: loading cache $cache_file" >&6;}
2597 case $cache_file in
2598 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2599 *) . "./$cache_file";;
2600 esac
2602 else
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2604 $as_echo "$as_me: creating cache $cache_file" >&6;}
2605 >$cache_file
2608 as_fn_append ac_header_list " utime.h"
2609 # Check that the precious variables saved in the cache have kept the same
2610 # value.
2611 ac_cache_corrupted=false
2612 for ac_var in $ac_precious_vars; do
2613 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2614 eval ac_new_set=\$ac_env_${ac_var}_set
2615 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2616 eval ac_new_val=\$ac_env_${ac_var}_value
2617 case $ac_old_set,$ac_new_set in
2618 set,)
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2620 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2621 ac_cache_corrupted=: ;;
2622 ,set)
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2624 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2625 ac_cache_corrupted=: ;;
2626 ,);;
2628 if test "x$ac_old_val" != "x$ac_new_val"; then
2629 # differences in whitespace do not lead to failure.
2630 ac_old_val_w=`echo x $ac_old_val`
2631 ac_new_val_w=`echo x $ac_new_val`
2632 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2634 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2635 ac_cache_corrupted=:
2636 else
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2638 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2639 eval $ac_var=\$ac_old_val
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2642 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2644 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2645 fi;;
2646 esac
2647 # Pass precious variables to config.status.
2648 if test "$ac_new_set" = set; then
2649 case $ac_new_val in
2650 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2651 *) ac_arg=$ac_var=$ac_new_val ;;
2652 esac
2653 case " $ac_configure_args " in
2654 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2655 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2656 esac
2658 done
2659 if $ac_cache_corrupted; then
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2661 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2663 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2664 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2666 ## -------------------- ##
2667 ## Main body of script. ##
2668 ## -------------------- ##
2670 ac_ext=c
2671 ac_cpp='$CPP $CPPFLAGS'
2672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2677 ac_config_headers="$ac_config_headers config.h"
2680 ac_aux_dir=
2681 for ac_dir in config "$srcdir"/config; do
2682 if test -f "$ac_dir/install-sh"; then
2683 ac_aux_dir=$ac_dir
2684 ac_install_sh="$ac_aux_dir/install-sh -c"
2685 break
2686 elif test -f "$ac_dir/install.sh"; then
2687 ac_aux_dir=$ac_dir
2688 ac_install_sh="$ac_aux_dir/install.sh -c"
2689 break
2690 elif test -f "$ac_dir/shtool"; then
2691 ac_aux_dir=$ac_dir
2692 ac_install_sh="$ac_aux_dir/shtool install -c"
2693 break
2695 done
2696 if test -z "$ac_aux_dir"; then
2697 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2700 # These three variables are undocumented and unsupported,
2701 # and are intended to be withdrawn in a future Autoconf release.
2702 # They can cause serious problems if a builder's source tree is in a directory
2703 # whose full name contains unusual characters.
2704 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2705 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2706 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2711 $as_echo_n "checking whether build environment is sane... " >&6; }
2712 # Just in case
2713 sleep 1
2714 echo timestamp > conftest.file
2715 # Reject unsafe characters in $srcdir or the absolute working directory
2716 # name. Accept space and tab only in the latter.
2717 am_lf='
2719 case `pwd` in
2720 *[\\\"\#\$\&\'\`$am_lf]*)
2721 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2722 esac
2723 case $srcdir in
2724 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2725 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2726 esac
2728 # Do `set' in a subshell so we don't clobber the current shell's
2729 # arguments. Must try -L first in case configure is actually a
2730 # symlink; some systems play weird games with the mod time of symlinks
2731 # (eg FreeBSD returns the mod time of the symlink's containing
2732 # directory).
2733 if (
2734 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2735 if test "$*" = "X"; then
2736 # -L didn't work.
2737 set X `ls -t "$srcdir/configure" conftest.file`
2739 rm -f conftest.file
2740 if test "$*" != "X $srcdir/configure conftest.file" \
2741 && test "$*" != "X conftest.file $srcdir/configure"; then
2743 # If neither matched, then we have a broken ls. This can happen
2744 # if, for instance, CONFIG_SHELL is bash and it inherits a
2745 # broken ls alias from the environment. This has actually
2746 # happened. Such a system could not be considered "sane".
2747 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2748 alias in your environment" "$LINENO" 5
2751 test "$2" = conftest.file
2753 then
2754 # Ok.
2756 else
2757 as_fn_error $? "newly created file is older than distributed files!
2758 Check your system clock" "$LINENO" 5
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2761 $as_echo "yes" >&6; }
2763 for ac_prog in gawk mawk nawk awk
2765 # Extract the first word of "$ac_prog", so it can be a program name with args.
2766 set dummy $ac_prog; ac_word=$2
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2768 $as_echo_n "checking for $ac_word... " >&6; }
2769 if test "${ac_cv_prog_AWK+set}" = set; then :
2770 $as_echo_n "(cached) " >&6
2771 else
2772 if test -n "$AWK"; then
2773 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2774 else
2775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776 for as_dir in $PATH
2778 IFS=$as_save_IFS
2779 test -z "$as_dir" && as_dir=.
2780 for ac_exec_ext in '' $ac_executable_extensions; do
2781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2782 ac_cv_prog_AWK="$ac_prog"
2783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2784 break 2
2786 done
2787 done
2788 IFS=$as_save_IFS
2792 AWK=$ac_cv_prog_AWK
2793 if test -n "$AWK"; then
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2795 $as_echo "$AWK" >&6; }
2796 else
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2798 $as_echo "no" >&6; }
2802 test -n "$AWK" && break
2803 done
2805 ac_ext=c
2806 ac_cpp='$CPP $CPPFLAGS'
2807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2810 if test -n "$ac_tool_prefix"; then
2811 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2812 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2814 $as_echo_n "checking for $ac_word... " >&6; }
2815 if test "${ac_cv_prog_CC+set}" = set; then :
2816 $as_echo_n "(cached) " >&6
2817 else
2818 if test -n "$CC"; then
2819 ac_cv_prog_CC="$CC" # Let the user override the test.
2820 else
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822 for as_dir in $PATH
2824 IFS=$as_save_IFS
2825 test -z "$as_dir" && as_dir=.
2826 for ac_exec_ext in '' $ac_executable_extensions; do
2827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2828 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2830 break 2
2832 done
2833 done
2834 IFS=$as_save_IFS
2838 CC=$ac_cv_prog_CC
2839 if test -n "$CC"; then
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2841 $as_echo "$CC" >&6; }
2842 else
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2844 $as_echo "no" >&6; }
2849 if test -z "$ac_cv_prog_CC"; then
2850 ac_ct_CC=$CC
2851 # Extract the first word of "gcc", so it can be a program name with args.
2852 set dummy gcc; ac_word=$2
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2854 $as_echo_n "checking for $ac_word... " >&6; }
2855 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2856 $as_echo_n "(cached) " >&6
2857 else
2858 if test -n "$ac_ct_CC"; then
2859 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2860 else
2861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862 for as_dir in $PATH
2864 IFS=$as_save_IFS
2865 test -z "$as_dir" && as_dir=.
2866 for ac_exec_ext in '' $ac_executable_extensions; do
2867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2868 ac_cv_prog_ac_ct_CC="gcc"
2869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2870 break 2
2872 done
2873 done
2874 IFS=$as_save_IFS
2878 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2879 if test -n "$ac_ct_CC"; then
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2881 $as_echo "$ac_ct_CC" >&6; }
2882 else
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2884 $as_echo "no" >&6; }
2887 if test "x$ac_ct_CC" = x; then
2888 CC=""
2889 else
2890 case $cross_compiling:$ac_tool_warned in
2891 yes:)
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2894 ac_tool_warned=yes ;;
2895 esac
2896 CC=$ac_ct_CC
2898 else
2899 CC="$ac_cv_prog_CC"
2902 if test -z "$CC"; then
2903 if test -n "$ac_tool_prefix"; then
2904 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2905 set dummy ${ac_tool_prefix}cc; ac_word=$2
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2907 $as_echo_n "checking for $ac_word... " >&6; }
2908 if test "${ac_cv_prog_CC+set}" = set; then :
2909 $as_echo_n "(cached) " >&6
2910 else
2911 if test -n "$CC"; then
2912 ac_cv_prog_CC="$CC" # Let the user override the test.
2913 else
2914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2915 for as_dir in $PATH
2917 IFS=$as_save_IFS
2918 test -z "$as_dir" && as_dir=.
2919 for ac_exec_ext in '' $ac_executable_extensions; do
2920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2921 ac_cv_prog_CC="${ac_tool_prefix}cc"
2922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2923 break 2
2925 done
2926 done
2927 IFS=$as_save_IFS
2931 CC=$ac_cv_prog_CC
2932 if test -n "$CC"; then
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2934 $as_echo "$CC" >&6; }
2935 else
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2937 $as_echo "no" >&6; }
2943 if test -z "$CC"; then
2944 # Extract the first word of "cc", so it can be a program name with args.
2945 set dummy cc; ac_word=$2
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2947 $as_echo_n "checking for $ac_word... " >&6; }
2948 if test "${ac_cv_prog_CC+set}" = set; then :
2949 $as_echo_n "(cached) " >&6
2950 else
2951 if test -n "$CC"; then
2952 ac_cv_prog_CC="$CC" # Let the user override the test.
2953 else
2954 ac_prog_rejected=no
2955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956 for as_dir in $PATH
2958 IFS=$as_save_IFS
2959 test -z "$as_dir" && as_dir=.
2960 for ac_exec_ext in '' $ac_executable_extensions; do
2961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2962 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2963 ac_prog_rejected=yes
2964 continue
2966 ac_cv_prog_CC="cc"
2967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2968 break 2
2970 done
2971 done
2972 IFS=$as_save_IFS
2974 if test $ac_prog_rejected = yes; then
2975 # We found a bogon in the path, so make sure we never use it.
2976 set dummy $ac_cv_prog_CC
2977 shift
2978 if test $# != 0; then
2979 # We chose a different compiler from the bogus one.
2980 # However, it has the same basename, so the bogon will be chosen
2981 # first if we set CC to just the basename; use the full file name.
2982 shift
2983 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2988 CC=$ac_cv_prog_CC
2989 if test -n "$CC"; then
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2991 $as_echo "$CC" >&6; }
2992 else
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2994 $as_echo "no" >&6; }
2999 if test -z "$CC"; then
3000 if test -n "$ac_tool_prefix"; then
3001 for ac_prog in cl.exe
3003 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3004 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3006 $as_echo_n "checking for $ac_word... " >&6; }
3007 if test "${ac_cv_prog_CC+set}" = set; then :
3008 $as_echo_n "(cached) " >&6
3009 else
3010 if test -n "$CC"; then
3011 ac_cv_prog_CC="$CC" # Let the user override the test.
3012 else
3013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3014 for as_dir in $PATH
3016 IFS=$as_save_IFS
3017 test -z "$as_dir" && as_dir=.
3018 for ac_exec_ext in '' $ac_executable_extensions; do
3019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3020 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3022 break 2
3024 done
3025 done
3026 IFS=$as_save_IFS
3030 CC=$ac_cv_prog_CC
3031 if test -n "$CC"; then
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3033 $as_echo "$CC" >&6; }
3034 else
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3036 $as_echo "no" >&6; }
3040 test -n "$CC" && break
3041 done
3043 if test -z "$CC"; then
3044 ac_ct_CC=$CC
3045 for ac_prog in cl.exe
3047 # Extract the first word of "$ac_prog", so it can be a program name with args.
3048 set dummy $ac_prog; ac_word=$2
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3050 $as_echo_n "checking for $ac_word... " >&6; }
3051 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3052 $as_echo_n "(cached) " >&6
3053 else
3054 if test -n "$ac_ct_CC"; then
3055 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3056 else
3057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3058 for as_dir in $PATH
3060 IFS=$as_save_IFS
3061 test -z "$as_dir" && as_dir=.
3062 for ac_exec_ext in '' $ac_executable_extensions; do
3063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3064 ac_cv_prog_ac_ct_CC="$ac_prog"
3065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3066 break 2
3068 done
3069 done
3070 IFS=$as_save_IFS
3074 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3075 if test -n "$ac_ct_CC"; then
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3077 $as_echo "$ac_ct_CC" >&6; }
3078 else
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3080 $as_echo "no" >&6; }
3084 test -n "$ac_ct_CC" && break
3085 done
3087 if test "x$ac_ct_CC" = x; then
3088 CC=""
3089 else
3090 case $cross_compiling:$ac_tool_warned in
3091 yes:)
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3093 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3094 ac_tool_warned=yes ;;
3095 esac
3096 CC=$ac_ct_CC
3103 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3104 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3105 as_fn_error $? "no acceptable C compiler found in \$PATH
3106 See \`config.log' for more details" "$LINENO" 5 ; }
3108 # Provide some information about the compiler.
3109 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3110 set X $ac_compile
3111 ac_compiler=$2
3112 for ac_option in --version -v -V -qversion; do
3113 { { ac_try="$ac_compiler $ac_option >&5"
3114 case "(($ac_try" in
3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116 *) ac_try_echo=$ac_try;;
3117 esac
3118 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3119 $as_echo "$ac_try_echo"; } >&5
3120 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3121 ac_status=$?
3122 if test -s conftest.err; then
3123 sed '10a\
3124 ... rest of stderr output deleted ...
3125 10q' conftest.err >conftest.er1
3126 cat conftest.er1 >&5
3128 rm -f conftest.er1 conftest.err
3129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3130 test $ac_status = 0; }
3131 done
3133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3134 /* end confdefs.h. */
3137 main ()
3141 return 0;
3143 _ACEOF
3144 ac_clean_files_save=$ac_clean_files
3145 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3146 # Try to create an executable without -o first, disregard a.out.
3147 # It will help us diagnose broken compilers, and finding out an intuition
3148 # of exeext.
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3150 $as_echo_n "checking whether the C compiler works... " >&6; }
3151 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3153 # The possible output files:
3154 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3156 ac_rmfiles=
3157 for ac_file in $ac_files
3159 case $ac_file in
3160 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3161 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3162 esac
3163 done
3164 rm -f $ac_rmfiles
3166 if { { ac_try="$ac_link_default"
3167 case "(($ac_try" in
3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169 *) ac_try_echo=$ac_try;;
3170 esac
3171 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3172 $as_echo "$ac_try_echo"; } >&5
3173 (eval "$ac_link_default") 2>&5
3174 ac_status=$?
3175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3176 test $ac_status = 0; }; then :
3177 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3178 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3179 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3180 # so that the user can short-circuit this test for compilers unknown to
3181 # Autoconf.
3182 for ac_file in $ac_files ''
3184 test -f "$ac_file" || continue
3185 case $ac_file in
3186 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3188 [ab].out )
3189 # We found the default executable, but exeext='' is most
3190 # certainly right.
3191 break;;
3192 *.* )
3193 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3194 then :; else
3195 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3197 # We set ac_cv_exeext here because the later test for it is not
3198 # safe: cross compilers may not add the suffix if given an `-o'
3199 # argument, so we may need to know it at that point already.
3200 # Even if this section looks crufty: it has the advantage of
3201 # actually working.
3202 break;;
3204 break;;
3205 esac
3206 done
3207 test "$ac_cv_exeext" = no && ac_cv_exeext=
3209 else
3210 ac_file=''
3212 if test -z "$ac_file"; then :
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3214 $as_echo "no" >&6; }
3215 $as_echo "$as_me: failed program was:" >&5
3216 sed 's/^/| /' conftest.$ac_ext >&5
3218 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3220 as_fn_error 77 "C compiler cannot create executables
3221 See \`config.log' for more details" "$LINENO" 5 ; }
3222 else
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3224 $as_echo "yes" >&6; }
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3227 $as_echo_n "checking for C compiler default output file name... " >&6; }
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3229 $as_echo "$ac_file" >&6; }
3230 ac_exeext=$ac_cv_exeext
3232 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3233 ac_clean_files=$ac_clean_files_save
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3235 $as_echo_n "checking for suffix of executables... " >&6; }
3236 if { { ac_try="$ac_link"
3237 case "(($ac_try" in
3238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3239 *) ac_try_echo=$ac_try;;
3240 esac
3241 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3242 $as_echo "$ac_try_echo"; } >&5
3243 (eval "$ac_link") 2>&5
3244 ac_status=$?
3245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3246 test $ac_status = 0; }; then :
3247 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3248 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3249 # work properly (i.e., refer to `conftest.exe'), while it won't with
3250 # `rm'.
3251 for ac_file in conftest.exe conftest conftest.*; do
3252 test -f "$ac_file" || continue
3253 case $ac_file in
3254 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3255 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3256 break;;
3257 * ) break;;
3258 esac
3259 done
3260 else
3261 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3262 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3263 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3264 See \`config.log' for more details" "$LINENO" 5 ; }
3266 rm -f conftest conftest$ac_cv_exeext
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3268 $as_echo "$ac_cv_exeext" >&6; }
3270 rm -f conftest.$ac_ext
3271 EXEEXT=$ac_cv_exeext
3272 ac_exeext=$EXEEXT
3273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3274 /* end confdefs.h. */
3275 #include <stdio.h>
3277 main ()
3279 FILE *f = fopen ("conftest.out", "w");
3280 return ferror (f) || fclose (f) != 0;
3283 return 0;
3285 _ACEOF
3286 ac_clean_files="$ac_clean_files conftest.out"
3287 # Check that the compiler produces executables we can run. If not, either
3288 # the compiler is broken, or we cross compile.
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3290 $as_echo_n "checking whether we are cross compiling... " >&6; }
3291 if test "$cross_compiling" != yes; then
3292 { { ac_try="$ac_link"
3293 case "(($ac_try" in
3294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3295 *) ac_try_echo=$ac_try;;
3296 esac
3297 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3298 $as_echo "$ac_try_echo"; } >&5
3299 (eval "$ac_link") 2>&5
3300 ac_status=$?
3301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3302 test $ac_status = 0; }
3303 if { ac_try='./conftest$ac_cv_exeext'
3304 { { case "(($ac_try" in
3305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3306 *) ac_try_echo=$ac_try;;
3307 esac
3308 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3309 $as_echo "$ac_try_echo"; } >&5
3310 (eval "$ac_try") 2>&5
3311 ac_status=$?
3312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3313 test $ac_status = 0; }; }; then
3314 cross_compiling=no
3315 else
3316 if test "$cross_compiling" = maybe; then
3317 cross_compiling=yes
3318 else
3319 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3321 as_fn_error $? "cannot run C compiled programs.
3322 If you meant to cross compile, use \`--host'.
3323 See \`config.log' for more details" "$LINENO" 5 ; }
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3328 $as_echo "$cross_compiling" >&6; }
3330 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3331 ac_clean_files=$ac_clean_files_save
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3333 $as_echo_n "checking for suffix of object files... " >&6; }
3334 if test "${ac_cv_objext+set}" = set; then :
3335 $as_echo_n "(cached) " >&6
3336 else
3337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3338 /* end confdefs.h. */
3341 main ()
3345 return 0;
3347 _ACEOF
3348 rm -f conftest.o conftest.obj
3349 if { { ac_try="$ac_compile"
3350 case "(($ac_try" in
3351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3352 *) ac_try_echo=$ac_try;;
3353 esac
3354 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3355 $as_echo "$ac_try_echo"; } >&5
3356 (eval "$ac_compile") 2>&5
3357 ac_status=$?
3358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3359 test $ac_status = 0; }; then :
3360 for ac_file in conftest.o conftest.obj conftest.*; do
3361 test -f "$ac_file" || continue;
3362 case $ac_file in
3363 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3364 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3365 break;;
3366 esac
3367 done
3368 else
3369 $as_echo "$as_me: failed program was:" >&5
3370 sed 's/^/| /' conftest.$ac_ext >&5
3372 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3374 as_fn_error $? "cannot compute suffix of object files: cannot compile
3375 See \`config.log' for more details" "$LINENO" 5 ; }
3377 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3380 $as_echo "$ac_cv_objext" >&6; }
3381 OBJEXT=$ac_cv_objext
3382 ac_objext=$OBJEXT
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3384 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3385 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3386 $as_echo_n "(cached) " >&6
3387 else
3388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3389 /* end confdefs.h. */
3392 main ()
3394 #ifndef __GNUC__
3395 choke me
3396 #endif
3399 return 0;
3401 _ACEOF
3402 if ac_fn_c_try_compile "$LINENO"; then :
3403 ac_compiler_gnu=yes
3404 else
3405 ac_compiler_gnu=no
3407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3408 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3412 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3413 if test $ac_compiler_gnu = yes; then
3414 GCC=yes
3415 else
3416 GCC=
3418 ac_test_CFLAGS=${CFLAGS+set}
3419 ac_save_CFLAGS=$CFLAGS
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3421 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3422 if test "${ac_cv_prog_cc_g+set}" = set; then :
3423 $as_echo_n "(cached) " >&6
3424 else
3425 ac_save_c_werror_flag=$ac_c_werror_flag
3426 ac_c_werror_flag=yes
3427 ac_cv_prog_cc_g=no
3428 CFLAGS="-g"
3429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3430 /* end confdefs.h. */
3433 main ()
3437 return 0;
3439 _ACEOF
3440 if ac_fn_c_try_compile "$LINENO"; then :
3441 ac_cv_prog_cc_g=yes
3442 else
3443 CFLAGS=""
3444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3445 /* end confdefs.h. */
3448 main ()
3452 return 0;
3454 _ACEOF
3455 if ac_fn_c_try_compile "$LINENO"; then :
3457 else
3458 ac_c_werror_flag=$ac_save_c_werror_flag
3459 CFLAGS="-g"
3460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3461 /* end confdefs.h. */
3464 main ()
3468 return 0;
3470 _ACEOF
3471 if ac_fn_c_try_compile "$LINENO"; then :
3472 ac_cv_prog_cc_g=yes
3474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3479 ac_c_werror_flag=$ac_save_c_werror_flag
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3482 $as_echo "$ac_cv_prog_cc_g" >&6; }
3483 if test "$ac_test_CFLAGS" = set; then
3484 CFLAGS=$ac_save_CFLAGS
3485 elif test $ac_cv_prog_cc_g = yes; then
3486 if test "$GCC" = yes; then
3487 CFLAGS="-g -O2"
3488 else
3489 CFLAGS="-g"
3491 else
3492 if test "$GCC" = yes; then
3493 CFLAGS="-O2"
3494 else
3495 CFLAGS=
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3499 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3500 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3501 $as_echo_n "(cached) " >&6
3502 else
3503 ac_cv_prog_cc_c89=no
3504 ac_save_CC=$CC
3505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3506 /* end confdefs.h. */
3507 #include <stdarg.h>
3508 #include <stdio.h>
3509 #include <sys/types.h>
3510 #include <sys/stat.h>
3511 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3512 struct buf { int x; };
3513 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3514 static char *e (p, i)
3515 char **p;
3516 int i;
3518 return p[i];
3520 static char *f (char * (*g) (char **, int), char **p, ...)
3522 char *s;
3523 va_list v;
3524 va_start (v,p);
3525 s = g (p, va_arg (v,int));
3526 va_end (v);
3527 return s;
3530 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3531 function prototypes and stuff, but not '\xHH' hex character constants.
3532 These don't provoke an error unfortunately, instead are silently treated
3533 as 'x'. The following induces an error, until -std is added to get
3534 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3535 array size at least. It's necessary to write '\x00'==0 to get something
3536 that's true only with -std. */
3537 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3539 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3540 inside strings and character constants. */
3541 #define FOO(x) 'x'
3542 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3544 int test (int i, double x);
3545 struct s1 {int (*f) (int a);};
3546 struct s2 {int (*f) (double a);};
3547 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3548 int argc;
3549 char **argv;
3551 main ()
3553 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3555 return 0;
3557 _ACEOF
3558 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3559 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3561 CC="$ac_save_CC $ac_arg"
3562 if ac_fn_c_try_compile "$LINENO"; then :
3563 ac_cv_prog_cc_c89=$ac_arg
3565 rm -f core conftest.err conftest.$ac_objext
3566 test "x$ac_cv_prog_cc_c89" != "xno" && break
3567 done
3568 rm -f conftest.$ac_ext
3569 CC=$ac_save_CC
3572 # AC_CACHE_VAL
3573 case "x$ac_cv_prog_cc_c89" in
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3576 $as_echo "none needed" >&6; } ;;
3577 xno)
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3579 $as_echo "unsupported" >&6; } ;;
3581 CC="$CC $ac_cv_prog_cc_c89"
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3583 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3584 esac
3585 if test "x$ac_cv_prog_cc_c89" != xno; then :
3589 ac_ext=c
3590 ac_cpp='$CPP $CPPFLAGS'
3591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3595 ac_ext=c
3596 ac_cpp='$CPP $CPPFLAGS'
3597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3601 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3602 # On Suns, sometimes $CPP names a directory.
3603 if test -n "$CPP" && test -d "$CPP"; then
3604 CPP=
3606 if test -z "$CPP"; then
3607 if test "${ac_cv_prog_CPP+set}" = set; then :
3608 $as_echo_n "(cached) " >&6
3609 else
3610 # Double quotes because CPP needs to be expanded
3611 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3613 ac_preproc_ok=false
3614 for ac_c_preproc_warn_flag in '' yes
3616 # Use a header file that comes with gcc, so configuring glibc
3617 # with a fresh cross-compiler works.
3618 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3619 # <limits.h> exists even on freestanding compilers.
3620 # On the NeXT, cc -E runs the code through the compiler's parser,
3621 # not just through cpp. "Syntax error" is here to catch this case.
3622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3623 /* end confdefs.h. */
3624 #ifdef __STDC__
3625 # include <limits.h>
3626 #else
3627 # include <assert.h>
3628 #endif
3629 Syntax error
3630 _ACEOF
3631 if ac_fn_c_try_cpp "$LINENO"; then :
3633 else
3634 # Broken: fails on valid input.
3635 continue
3637 rm -f conftest.err conftest.i conftest.$ac_ext
3639 # OK, works on sane cases. Now check whether nonexistent headers
3640 # can be detected and how.
3641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3642 /* end confdefs.h. */
3643 #include <ac_nonexistent.h>
3644 _ACEOF
3645 if ac_fn_c_try_cpp "$LINENO"; then :
3646 # Broken: success on invalid input.
3647 continue
3648 else
3649 # Passes both tests.
3650 ac_preproc_ok=:
3651 break
3653 rm -f conftest.err conftest.i conftest.$ac_ext
3655 done
3656 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3657 rm -f conftest.i conftest.err conftest.$ac_ext
3658 if $ac_preproc_ok; then :
3659 break
3662 done
3663 ac_cv_prog_CPP=$CPP
3666 CPP=$ac_cv_prog_CPP
3667 else
3668 ac_cv_prog_CPP=$CPP
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3671 $as_echo "$CPP" >&6; }
3672 ac_preproc_ok=false
3673 for ac_c_preproc_warn_flag in '' yes
3675 # Use a header file that comes with gcc, so configuring glibc
3676 # with a fresh cross-compiler works.
3677 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3678 # <limits.h> exists even on freestanding compilers.
3679 # On the NeXT, cc -E runs the code through the compiler's parser,
3680 # not just through cpp. "Syntax error" is here to catch this case.
3681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3682 /* end confdefs.h. */
3683 #ifdef __STDC__
3684 # include <limits.h>
3685 #else
3686 # include <assert.h>
3687 #endif
3688 Syntax error
3689 _ACEOF
3690 if ac_fn_c_try_cpp "$LINENO"; then :
3692 else
3693 # Broken: fails on valid input.
3694 continue
3696 rm -f conftest.err conftest.i conftest.$ac_ext
3698 # OK, works on sane cases. Now check whether nonexistent headers
3699 # can be detected and how.
3700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3701 /* end confdefs.h. */
3702 #include <ac_nonexistent.h>
3703 _ACEOF
3704 if ac_fn_c_try_cpp "$LINENO"; then :
3705 # Broken: success on invalid input.
3706 continue
3707 else
3708 # Passes both tests.
3709 ac_preproc_ok=:
3710 break
3712 rm -f conftest.err conftest.i conftest.$ac_ext
3714 done
3715 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3716 rm -f conftest.i conftest.err conftest.$ac_ext
3717 if $ac_preproc_ok; then :
3719 else
3720 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3721 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3722 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3723 See \`config.log' for more details" "$LINENO" 5 ; }
3726 ac_ext=c
3727 ac_cpp='$CPP $CPPFLAGS'
3728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3732 # Find a good install program. We prefer a C program (faster),
3733 # so one script is as good as another. But avoid the broken or
3734 # incompatible versions:
3735 # SysV /etc/install, /usr/sbin/install
3736 # SunOS /usr/etc/install
3737 # IRIX /sbin/install
3738 # AIX /bin/install
3739 # AmigaOS /C/install, which installs bootblocks on floppy discs
3740 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3741 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3742 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3743 # OS/2's system install, which has a completely different semantic
3744 # ./install, which can be erroneously created by make from ./install.sh.
3745 # Reject install programs that cannot install multiple files.
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3747 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3748 if test -z "$INSTALL"; then
3749 if test "${ac_cv_path_install+set}" = set; then :
3750 $as_echo_n "(cached) " >&6
3751 else
3752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3753 for as_dir in $PATH
3755 IFS=$as_save_IFS
3756 test -z "$as_dir" && as_dir=.
3757 # Account for people who put trailing slashes in PATH elements.
3758 case $as_dir/ in #((
3759 ./ | .// | /[cC]/* | \
3760 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3761 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3762 /usr/ucb/* ) ;;
3764 # OSF1 and SCO ODT 3.0 have their own names for install.
3765 # Don't use installbsd from OSF since it installs stuff as root
3766 # by default.
3767 for ac_prog in ginstall scoinst install; do
3768 for ac_exec_ext in '' $ac_executable_extensions; do
3769 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3770 if test $ac_prog = install &&
3771 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3772 # AIX install. It has an incompatible calling convention.
3774 elif test $ac_prog = install &&
3775 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3776 # program-specific install script used by HP pwplus--don't use.
3778 else
3779 rm -rf conftest.one conftest.two conftest.dir
3780 echo one > conftest.one
3781 echo two > conftest.two
3782 mkdir conftest.dir
3783 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3784 test -s conftest.one && test -s conftest.two &&
3785 test -s conftest.dir/conftest.one &&
3786 test -s conftest.dir/conftest.two
3787 then
3788 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3789 break 3
3793 done
3794 done
3796 esac
3798 done
3799 IFS=$as_save_IFS
3801 rm -rf conftest.one conftest.two conftest.dir
3804 if test "${ac_cv_path_install+set}" = set; then
3805 INSTALL=$ac_cv_path_install
3806 else
3807 # As a last resort, use the slow shell script. Don't cache a
3808 # value for INSTALL within a source directory, because that will
3809 # break other packages using the cache if that directory is
3810 # removed, or if the value is a relative name.
3811 INSTALL=$ac_install_sh
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3815 $as_echo "$INSTALL" >&6; }
3817 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3818 # It thinks the first close brace ends the variable substitution.
3819 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3821 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3823 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3826 $as_echo_n "checking whether ln -s works... " >&6; }
3827 LN_S=$as_ln_s
3828 if test "$LN_S" = "ln -s"; then
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3830 $as_echo "yes" >&6; }
3831 else
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3833 $as_echo "no, using $LN_S" >&6; }
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3837 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3838 set x ${MAKE-make}
3839 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3840 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3841 $as_echo_n "(cached) " >&6
3842 else
3843 cat >conftest.make <<\_ACEOF
3844 SHELL = /bin/sh
3845 all:
3846 @echo '@@@%%%=$(MAKE)=@@@%%%'
3847 _ACEOF
3848 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3849 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3850 *@@@%%%=?*=@@@%%%*)
3851 eval ac_cv_prog_make_${ac_make}_set=yes;;
3853 eval ac_cv_prog_make_${ac_make}_set=no;;
3854 esac
3855 rm -f conftest.make
3857 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3859 $as_echo "yes" >&6; }
3860 SET_MAKE=
3861 else
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3863 $as_echo "no" >&6; }
3864 SET_MAKE="MAKE=${MAKE-make}"
3867 if test -n "$ac_tool_prefix"; then
3868 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3869 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3871 $as_echo_n "checking for $ac_word... " >&6; }
3872 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3873 $as_echo_n "(cached) " >&6
3874 else
3875 if test -n "$RANLIB"; then
3876 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3877 else
3878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3879 for as_dir in $PATH
3881 IFS=$as_save_IFS
3882 test -z "$as_dir" && as_dir=.
3883 for ac_exec_ext in '' $ac_executable_extensions; do
3884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3885 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3887 break 2
3889 done
3890 done
3891 IFS=$as_save_IFS
3895 RANLIB=$ac_cv_prog_RANLIB
3896 if test -n "$RANLIB"; then
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3898 $as_echo "$RANLIB" >&6; }
3899 else
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3901 $as_echo "no" >&6; }
3906 if test -z "$ac_cv_prog_RANLIB"; then
3907 ac_ct_RANLIB=$RANLIB
3908 # Extract the first word of "ranlib", so it can be a program name with args.
3909 set dummy ranlib; ac_word=$2
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3911 $as_echo_n "checking for $ac_word... " >&6; }
3912 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3913 $as_echo_n "(cached) " >&6
3914 else
3915 if test -n "$ac_ct_RANLIB"; then
3916 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3917 else
3918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3919 for as_dir in $PATH
3921 IFS=$as_save_IFS
3922 test -z "$as_dir" && as_dir=.
3923 for ac_exec_ext in '' $ac_executable_extensions; do
3924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3925 ac_cv_prog_ac_ct_RANLIB="ranlib"
3926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3927 break 2
3929 done
3930 done
3931 IFS=$as_save_IFS
3935 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3936 if test -n "$ac_ct_RANLIB"; then
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3938 $as_echo "$ac_ct_RANLIB" >&6; }
3939 else
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3941 $as_echo "no" >&6; }
3944 if test "x$ac_ct_RANLIB" = x; then
3945 RANLIB=":"
3946 else
3947 case $cross_compiling:$ac_tool_warned in
3948 yes:)
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3950 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3951 ac_tool_warned=yes ;;
3952 esac
3953 RANLIB=$ac_ct_RANLIB
3955 else
3956 RANLIB="$ac_cv_prog_RANLIB"
3959 for ac_prog in ar aal
3961 # Extract the first word of "$ac_prog", so it can be a program name with args.
3962 set dummy $ac_prog; ac_word=$2
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3964 $as_echo_n "checking for $ac_word... " >&6; }
3965 if test "${ac_cv_prog_AR+set}" = set; then :
3966 $as_echo_n "(cached) " >&6
3967 else
3968 if test -n "$AR"; then
3969 ac_cv_prog_AR="$AR" # Let the user override the test.
3970 else
3971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3972 for as_dir in $PATH
3974 IFS=$as_save_IFS
3975 test -z "$as_dir" && as_dir=.
3976 for ac_exec_ext in '' $ac_executable_extensions; do
3977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3978 ac_cv_prog_AR="$ac_prog"
3979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3980 break 2
3982 done
3983 done
3984 IFS=$as_save_IFS
3988 AR=$ac_cv_prog_AR
3989 if test -n "$AR"; then
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3991 $as_echo "$AR" >&6; }
3992 else
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3994 $as_echo "no" >&6; }
3998 test -n "$AR" && break
3999 done
4000 test -n "$AR" || AR="ar"
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4003 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4004 if test "${ac_cv_prog_cc_c99+set}" = set; then :
4005 $as_echo_n "(cached) " >&6
4006 else
4007 ac_cv_prog_cc_c99=no
4008 ac_save_CC=$CC
4009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4010 /* end confdefs.h. */
4011 #include <stdarg.h>
4012 #include <stdbool.h>
4013 #include <stdlib.h>
4014 #include <wchar.h>
4015 #include <stdio.h>
4017 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4018 #define debug(...) fprintf (stderr, __VA_ARGS__)
4019 #define showlist(...) puts (#__VA_ARGS__)
4020 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4021 static void
4022 test_varargs_macros (void)
4024 int x = 1234;
4025 int y = 5678;
4026 debug ("Flag");
4027 debug ("X = %d\n", x);
4028 showlist (The first, second, and third items.);
4029 report (x>y, "x is %d but y is %d", x, y);
4032 // Check long long types.
4033 #define BIG64 18446744073709551615ull
4034 #define BIG32 4294967295ul
4035 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4036 #if !BIG_OK
4037 your preprocessor is broken;
4038 #endif
4039 #if BIG_OK
4040 #else
4041 your preprocessor is broken;
4042 #endif
4043 static long long int bignum = -9223372036854775807LL;
4044 static unsigned long long int ubignum = BIG64;
4046 struct incomplete_array
4048 int datasize;
4049 double data[];
4052 struct named_init {
4053 int number;
4054 const wchar_t *name;
4055 double average;
4058 typedef const char *ccp;
4060 static inline int
4061 test_restrict (ccp restrict text)
4063 // See if C++-style comments work.
4064 // Iterate through items via the restricted pointer.
4065 // Also check for declarations in for loops.
4066 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4067 continue;
4068 return 0;
4071 // Check varargs and va_copy.
4072 static void
4073 test_varargs (const char *format, ...)
4075 va_list args;
4076 va_start (args, format);
4077 va_list args_copy;
4078 va_copy (args_copy, args);
4080 const char *str;
4081 int number;
4082 float fnumber;
4084 while (*format)
4086 switch (*format++)
4088 case 's': // string
4089 str = va_arg (args_copy, const char *);
4090 break;
4091 case 'd': // int
4092 number = va_arg (args_copy, int);
4093 break;
4094 case 'f': // float
4095 fnumber = va_arg (args_copy, double);
4096 break;
4097 default:
4098 break;
4101 va_end (args_copy);
4102 va_end (args);
4106 main ()
4109 // Check bool.
4110 _Bool success = false;
4112 // Check restrict.
4113 if (test_restrict ("String literal") == 0)
4114 success = true;
4115 char *restrict newvar = "Another string";
4117 // Check varargs.
4118 test_varargs ("s, d' f .", "string", 65, 34.234);
4119 test_varargs_macros ();
4121 // Check flexible array members.
4122 struct incomplete_array *ia =
4123 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4124 ia->datasize = 10;
4125 for (int i = 0; i < ia->datasize; ++i)
4126 ia->data[i] = i * 1.234;
4128 // Check named initializers.
4129 struct named_init ni = {
4130 .number = 34,
4131 .name = L"Test wide string",
4132 .average = 543.34343,
4135 ni.number = 58;
4137 int dynamic_array[ni.number];
4138 dynamic_array[ni.number - 1] = 543;
4140 // work around unused variable warnings
4141 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4142 || dynamic_array[ni.number - 1] != 543);
4145 return 0;
4147 _ACEOF
4148 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4150 CC="$ac_save_CC $ac_arg"
4151 if ac_fn_c_try_compile "$LINENO"; then :
4152 ac_cv_prog_cc_c99=$ac_arg
4154 rm -f core conftest.err conftest.$ac_objext
4155 test "x$ac_cv_prog_cc_c99" != "xno" && break
4156 done
4157 rm -f conftest.$ac_ext
4158 CC=$ac_save_CC
4161 # AC_CACHE_VAL
4162 case "x$ac_cv_prog_cc_c99" in
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4165 $as_echo "none needed" >&6; } ;;
4166 xno)
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4168 $as_echo "unsupported" >&6; } ;;
4170 CC="$CC $ac_cv_prog_cc_c99"
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4172 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4173 esac
4174 if test "x$ac_cv_prog_cc_c99" != xno; then :
4179 ac_ext=cpp
4180 ac_cpp='$CXXCPP $CPPFLAGS'
4181 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4182 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4183 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4184 if test -z "$CXX"; then
4185 if test -n "$CCC"; then
4186 CXX=$CCC
4187 else
4188 if test -n "$ac_tool_prefix"; then
4189 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4191 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4192 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4194 $as_echo_n "checking for $ac_word... " >&6; }
4195 if test "${ac_cv_prog_CXX+set}" = set; then :
4196 $as_echo_n "(cached) " >&6
4197 else
4198 if test -n "$CXX"; then
4199 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4200 else
4201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4202 for as_dir in $PATH
4204 IFS=$as_save_IFS
4205 test -z "$as_dir" && as_dir=.
4206 for ac_exec_ext in '' $ac_executable_extensions; do
4207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4208 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4210 break 2
4212 done
4213 done
4214 IFS=$as_save_IFS
4218 CXX=$ac_cv_prog_CXX
4219 if test -n "$CXX"; then
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4221 $as_echo "$CXX" >&6; }
4222 else
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4224 $as_echo "no" >&6; }
4228 test -n "$CXX" && break
4229 done
4231 if test -z "$CXX"; then
4232 ac_ct_CXX=$CXX
4233 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4235 # Extract the first word of "$ac_prog", so it can be a program name with args.
4236 set dummy $ac_prog; ac_word=$2
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4238 $as_echo_n "checking for $ac_word... " >&6; }
4239 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4240 $as_echo_n "(cached) " >&6
4241 else
4242 if test -n "$ac_ct_CXX"; then
4243 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4244 else
4245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246 for as_dir in $PATH
4248 IFS=$as_save_IFS
4249 test -z "$as_dir" && as_dir=.
4250 for ac_exec_ext in '' $ac_executable_extensions; do
4251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4252 ac_cv_prog_ac_ct_CXX="$ac_prog"
4253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4254 break 2
4256 done
4257 done
4258 IFS=$as_save_IFS
4262 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4263 if test -n "$ac_ct_CXX"; then
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4265 $as_echo "$ac_ct_CXX" >&6; }
4266 else
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4268 $as_echo "no" >&6; }
4272 test -n "$ac_ct_CXX" && break
4273 done
4275 if test "x$ac_ct_CXX" = x; then
4276 CXX="g++"
4277 else
4278 case $cross_compiling:$ac_tool_warned in
4279 yes:)
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4281 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4282 ac_tool_warned=yes ;;
4283 esac
4284 CXX=$ac_ct_CXX
4290 # Provide some information about the compiler.
4291 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4292 set X $ac_compile
4293 ac_compiler=$2
4294 for ac_option in --version -v -V -qversion; do
4295 { { ac_try="$ac_compiler $ac_option >&5"
4296 case "(($ac_try" in
4297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4298 *) ac_try_echo=$ac_try;;
4299 esac
4300 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4301 $as_echo "$ac_try_echo"; } >&5
4302 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4303 ac_status=$?
4304 if test -s conftest.err; then
4305 sed '10a\
4306 ... rest of stderr output deleted ...
4307 10q' conftest.err >conftest.er1
4308 cat conftest.er1 >&5
4310 rm -f conftest.er1 conftest.err
4311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4312 test $ac_status = 0; }
4313 done
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4316 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4317 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4318 $as_echo_n "(cached) " >&6
4319 else
4320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4321 /* end confdefs.h. */
4324 main ()
4326 #ifndef __GNUC__
4327 choke me
4328 #endif
4331 return 0;
4333 _ACEOF
4334 if ac_fn_cxx_try_compile "$LINENO"; then :
4335 ac_compiler_gnu=yes
4336 else
4337 ac_compiler_gnu=no
4339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4340 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4344 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4345 if test $ac_compiler_gnu = yes; then
4346 GXX=yes
4347 else
4348 GXX=
4350 ac_test_CXXFLAGS=${CXXFLAGS+set}
4351 ac_save_CXXFLAGS=$CXXFLAGS
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4353 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4354 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4355 $as_echo_n "(cached) " >&6
4356 else
4357 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4358 ac_cxx_werror_flag=yes
4359 ac_cv_prog_cxx_g=no
4360 CXXFLAGS="-g"
4361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4362 /* end confdefs.h. */
4365 main ()
4369 return 0;
4371 _ACEOF
4372 if ac_fn_cxx_try_compile "$LINENO"; then :
4373 ac_cv_prog_cxx_g=yes
4374 else
4375 CXXFLAGS=""
4376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4377 /* end confdefs.h. */
4380 main ()
4384 return 0;
4386 _ACEOF
4387 if ac_fn_cxx_try_compile "$LINENO"; then :
4389 else
4390 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4391 CXXFLAGS="-g"
4392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4393 /* end confdefs.h. */
4396 main ()
4400 return 0;
4402 _ACEOF
4403 if ac_fn_cxx_try_compile "$LINENO"; then :
4404 ac_cv_prog_cxx_g=yes
4406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4411 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4414 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4415 if test "$ac_test_CXXFLAGS" = set; then
4416 CXXFLAGS=$ac_save_CXXFLAGS
4417 elif test $ac_cv_prog_cxx_g = yes; then
4418 if test "$GXX" = yes; then
4419 CXXFLAGS="-g -O2"
4420 else
4421 CXXFLAGS="-g"
4423 else
4424 if test "$GXX" = yes; then
4425 CXXFLAGS="-O2"
4426 else
4427 CXXFLAGS=
4430 ac_ext=c
4431 ac_cpp='$CPP $CPPFLAGS'
4432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4439 enable_dlopen=yes
4443 case `pwd` in
4444 *\ * | *\ *)
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4446 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4447 esac
4451 macro_version='2.2.6b'
4452 macro_revision='1.3017'
4466 ltmain="$ac_aux_dir/ltmain.sh"
4468 # Make sure we can run config.sub.
4469 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4470 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4473 $as_echo_n "checking build system type... " >&6; }
4474 if test "${ac_cv_build+set}" = set; then :
4475 $as_echo_n "(cached) " >&6
4476 else
4477 ac_build_alias=$build_alias
4478 test "x$ac_build_alias" = x &&
4479 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4480 test "x$ac_build_alias" = x &&
4481 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4482 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4483 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4487 $as_echo "$ac_cv_build" >&6; }
4488 case $ac_cv_build in
4489 *-*-*) ;;
4490 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
4491 esac
4492 build=$ac_cv_build
4493 ac_save_IFS=$IFS; IFS='-'
4494 set x $ac_cv_build
4495 shift
4496 build_cpu=$1
4497 build_vendor=$2
4498 shift; shift
4499 # Remember, the first character of IFS is used to create $*,
4500 # except with old shells:
4501 build_os=$*
4502 IFS=$ac_save_IFS
4503 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4507 $as_echo_n "checking host system type... " >&6; }
4508 if test "${ac_cv_host+set}" = set; then :
4509 $as_echo_n "(cached) " >&6
4510 else
4511 if test "x$host_alias" = x; then
4512 ac_cv_host=$ac_cv_build
4513 else
4514 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4515 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4520 $as_echo "$ac_cv_host" >&6; }
4521 case $ac_cv_host in
4522 *-*-*) ;;
4523 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
4524 esac
4525 host=$ac_cv_host
4526 ac_save_IFS=$IFS; IFS='-'
4527 set x $ac_cv_host
4528 shift
4529 host_cpu=$1
4530 host_vendor=$2
4531 shift; shift
4532 # Remember, the first character of IFS is used to create $*,
4533 # except with old shells:
4534 host_os=$*
4535 IFS=$ac_save_IFS
4536 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4540 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4541 if test "${ac_cv_path_SED+set}" = set; then :
4542 $as_echo_n "(cached) " >&6
4543 else
4544 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4545 for ac_i in 1 2 3 4 5 6 7; do
4546 ac_script="$ac_script$as_nl$ac_script"
4547 done
4548 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4549 { ac_script=; unset ac_script;}
4550 if test -z "$SED"; then
4551 ac_path_SED_found=false
4552 # Loop through the user's path and test for each of PROGNAME-LIST
4553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554 for as_dir in $PATH
4556 IFS=$as_save_IFS
4557 test -z "$as_dir" && as_dir=.
4558 for ac_prog in sed gsed; do
4559 for ac_exec_ext in '' $ac_executable_extensions; do
4560 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4561 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4562 # Check for GNU ac_path_SED and select it if it is found.
4563 # Check for GNU $ac_path_SED
4564 case `"$ac_path_SED" --version 2>&1` in
4565 *GNU*)
4566 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4568 ac_count=0
4569 $as_echo_n 0123456789 >"conftest.in"
4570 while :
4572 cat "conftest.in" "conftest.in" >"conftest.tmp"
4573 mv "conftest.tmp" "conftest.in"
4574 cp "conftest.in" "conftest.nl"
4575 $as_echo '' >> "conftest.nl"
4576 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4577 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4578 as_fn_arith $ac_count + 1 && ac_count=$as_val
4579 if test $ac_count -gt ${ac_path_SED_max-0}; then
4580 # Best one so far, save it but keep looking for a better one
4581 ac_cv_path_SED="$ac_path_SED"
4582 ac_path_SED_max=$ac_count
4584 # 10*(2^10) chars as input seems more than enough
4585 test $ac_count -gt 10 && break
4586 done
4587 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4588 esac
4590 $ac_path_SED_found && break 3
4591 done
4592 done
4593 done
4594 IFS=$as_save_IFS
4595 if test -z "$ac_cv_path_SED"; then
4596 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4598 else
4599 ac_cv_path_SED=$SED
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4604 $as_echo "$ac_cv_path_SED" >&6; }
4605 SED="$ac_cv_path_SED"
4606 rm -f conftest.sed
4608 test -z "$SED" && SED=sed
4609 Xsed="$SED -e 1s/^X//"
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4622 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4623 if test "${ac_cv_path_GREP+set}" = set; then :
4624 $as_echo_n "(cached) " >&6
4625 else
4626 if test -z "$GREP"; then
4627 ac_path_GREP_found=false
4628 # Loop through the user's path and test for each of PROGNAME-LIST
4629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4632 IFS=$as_save_IFS
4633 test -z "$as_dir" && as_dir=.
4634 for ac_prog in grep ggrep; do
4635 for ac_exec_ext in '' $ac_executable_extensions; do
4636 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4637 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4638 # Check for GNU ac_path_GREP and select it if it is found.
4639 # Check for GNU $ac_path_GREP
4640 case `"$ac_path_GREP" --version 2>&1` in
4641 *GNU*)
4642 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4644 ac_count=0
4645 $as_echo_n 0123456789 >"conftest.in"
4646 while :
4648 cat "conftest.in" "conftest.in" >"conftest.tmp"
4649 mv "conftest.tmp" "conftest.in"
4650 cp "conftest.in" "conftest.nl"
4651 $as_echo 'GREP' >> "conftest.nl"
4652 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4653 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4654 as_fn_arith $ac_count + 1 && ac_count=$as_val
4655 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4656 # Best one so far, save it but keep looking for a better one
4657 ac_cv_path_GREP="$ac_path_GREP"
4658 ac_path_GREP_max=$ac_count
4660 # 10*(2^10) chars as input seems more than enough
4661 test $ac_count -gt 10 && break
4662 done
4663 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4664 esac
4666 $ac_path_GREP_found && break 3
4667 done
4668 done
4669 done
4670 IFS=$as_save_IFS
4671 if test -z "$ac_cv_path_GREP"; then
4672 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4674 else
4675 ac_cv_path_GREP=$GREP
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4680 $as_echo "$ac_cv_path_GREP" >&6; }
4681 GREP="$ac_cv_path_GREP"
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4685 $as_echo_n "checking for egrep... " >&6; }
4686 if test "${ac_cv_path_EGREP+set}" = set; then :
4687 $as_echo_n "(cached) " >&6
4688 else
4689 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4690 then ac_cv_path_EGREP="$GREP -E"
4691 else
4692 if test -z "$EGREP"; then
4693 ac_path_EGREP_found=false
4694 # Loop through the user's path and test for each of PROGNAME-LIST
4695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4696 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4698 IFS=$as_save_IFS
4699 test -z "$as_dir" && as_dir=.
4700 for ac_prog in egrep; do
4701 for ac_exec_ext in '' $ac_executable_extensions; do
4702 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4703 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4704 # Check for GNU ac_path_EGREP and select it if it is found.
4705 # Check for GNU $ac_path_EGREP
4706 case `"$ac_path_EGREP" --version 2>&1` in
4707 *GNU*)
4708 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4710 ac_count=0
4711 $as_echo_n 0123456789 >"conftest.in"
4712 while :
4714 cat "conftest.in" "conftest.in" >"conftest.tmp"
4715 mv "conftest.tmp" "conftest.in"
4716 cp "conftest.in" "conftest.nl"
4717 $as_echo 'EGREP' >> "conftest.nl"
4718 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4719 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4720 as_fn_arith $ac_count + 1 && ac_count=$as_val
4721 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4722 # Best one so far, save it but keep looking for a better one
4723 ac_cv_path_EGREP="$ac_path_EGREP"
4724 ac_path_EGREP_max=$ac_count
4726 # 10*(2^10) chars as input seems more than enough
4727 test $ac_count -gt 10 && break
4728 done
4729 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4730 esac
4732 $ac_path_EGREP_found && break 3
4733 done
4734 done
4735 done
4736 IFS=$as_save_IFS
4737 if test -z "$ac_cv_path_EGREP"; then
4738 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4740 else
4741 ac_cv_path_EGREP=$EGREP
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4747 $as_echo "$ac_cv_path_EGREP" >&6; }
4748 EGREP="$ac_cv_path_EGREP"
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4752 $as_echo_n "checking for fgrep... " >&6; }
4753 if test "${ac_cv_path_FGREP+set}" = set; then :
4754 $as_echo_n "(cached) " >&6
4755 else
4756 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4757 then ac_cv_path_FGREP="$GREP -F"
4758 else
4759 if test -z "$FGREP"; then
4760 ac_path_FGREP_found=false
4761 # Loop through the user's path and test for each of PROGNAME-LIST
4762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4765 IFS=$as_save_IFS
4766 test -z "$as_dir" && as_dir=.
4767 for ac_prog in fgrep; do
4768 for ac_exec_ext in '' $ac_executable_extensions; do
4769 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4770 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4771 # Check for GNU ac_path_FGREP and select it if it is found.
4772 # Check for GNU $ac_path_FGREP
4773 case `"$ac_path_FGREP" --version 2>&1` in
4774 *GNU*)
4775 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4777 ac_count=0
4778 $as_echo_n 0123456789 >"conftest.in"
4779 while :
4781 cat "conftest.in" "conftest.in" >"conftest.tmp"
4782 mv "conftest.tmp" "conftest.in"
4783 cp "conftest.in" "conftest.nl"
4784 $as_echo 'FGREP' >> "conftest.nl"
4785 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4786 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4787 as_fn_arith $ac_count + 1 && ac_count=$as_val
4788 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4789 # Best one so far, save it but keep looking for a better one
4790 ac_cv_path_FGREP="$ac_path_FGREP"
4791 ac_path_FGREP_max=$ac_count
4793 # 10*(2^10) chars as input seems more than enough
4794 test $ac_count -gt 10 && break
4795 done
4796 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4797 esac
4799 $ac_path_FGREP_found && break 3
4800 done
4801 done
4802 done
4803 IFS=$as_save_IFS
4804 if test -z "$ac_cv_path_FGREP"; then
4805 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4807 else
4808 ac_cv_path_FGREP=$FGREP
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4814 $as_echo "$ac_cv_path_FGREP" >&6; }
4815 FGREP="$ac_cv_path_FGREP"
4818 test -z "$GREP" && GREP=grep
4838 # Check whether --with-gnu-ld was given.
4839 if test "${with_gnu_ld+set}" = set; then :
4840 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4841 else
4842 with_gnu_ld=no
4845 ac_prog=ld
4846 if test "$GCC" = yes; then
4847 # Check if gcc -print-prog-name=ld gives a path.
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4849 $as_echo_n "checking for ld used by $CC... " >&6; }
4850 case $host in
4851 *-*-mingw*)
4852 # gcc leaves a trailing carriage return which upsets mingw
4853 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4855 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4856 esac
4857 case $ac_prog in
4858 # Accept absolute paths.
4859 [\\/]* | ?:[\\/]*)
4860 re_direlt='/[^/][^/]*/\.\./'
4861 # Canonicalize the pathname of ld
4862 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4863 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4864 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4865 done
4866 test -z "$LD" && LD="$ac_prog"
4869 # If it fails, then pretend we aren't using GCC.
4870 ac_prog=ld
4873 # If it is relative, then search for the first ld in PATH.
4874 with_gnu_ld=unknown
4876 esac
4877 elif test "$with_gnu_ld" = yes; then
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4879 $as_echo_n "checking for GNU ld... " >&6; }
4880 else
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4882 $as_echo_n "checking for non-GNU ld... " >&6; }
4884 if test "${lt_cv_path_LD+set}" = set; then :
4885 $as_echo_n "(cached) " >&6
4886 else
4887 if test -z "$LD"; then
4888 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4889 for ac_dir in $PATH; do
4890 IFS="$lt_save_ifs"
4891 test -z "$ac_dir" && ac_dir=.
4892 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4893 lt_cv_path_LD="$ac_dir/$ac_prog"
4894 # Check to see if the program is GNU ld. I'd rather use --version,
4895 # but apparently some variants of GNU ld only accept -v.
4896 # Break only if it was the GNU/non-GNU ld that we prefer.
4897 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4898 *GNU* | *'with BFD'*)
4899 test "$with_gnu_ld" != no && break
4902 test "$with_gnu_ld" != yes && break
4904 esac
4906 done
4907 IFS="$lt_save_ifs"
4908 else
4909 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4913 LD="$lt_cv_path_LD"
4914 if test -n "$LD"; then
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4916 $as_echo "$LD" >&6; }
4917 else
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4919 $as_echo "no" >&6; }
4921 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4923 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4924 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4925 $as_echo_n "(cached) " >&6
4926 else
4927 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4928 case `$LD -v 2>&1 </dev/null` in
4929 *GNU* | *'with BFD'*)
4930 lt_cv_prog_gnu_ld=yes
4933 lt_cv_prog_gnu_ld=no
4935 esac
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4938 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4939 with_gnu_ld=$lt_cv_prog_gnu_ld
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4950 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4951 if test "${lt_cv_path_NM+set}" = set; then :
4952 $as_echo_n "(cached) " >&6
4953 else
4954 if test -n "$NM"; then
4955 # Let the user override the test.
4956 lt_cv_path_NM="$NM"
4957 else
4958 lt_nm_to_check="${ac_tool_prefix}nm"
4959 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4960 lt_nm_to_check="$lt_nm_to_check nm"
4962 for lt_tmp_nm in $lt_nm_to_check; do
4963 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4964 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4965 IFS="$lt_save_ifs"
4966 test -z "$ac_dir" && ac_dir=.
4967 tmp_nm="$ac_dir/$lt_tmp_nm"
4968 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4969 # Check to see if the nm accepts a BSD-compat flag.
4970 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4971 # nm: unknown option "B" ignored
4972 # Tru64's nm complains that /dev/null is an invalid object file
4973 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4974 */dev/null* | *'Invalid file or object type'*)
4975 lt_cv_path_NM="$tmp_nm -B"
4976 break
4979 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4980 */dev/null*)
4981 lt_cv_path_NM="$tmp_nm -p"
4982 break
4985 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4986 continue # so that we can try to find one that supports BSD flags
4988 esac
4990 esac
4992 done
4993 IFS="$lt_save_ifs"
4994 done
4995 : ${lt_cv_path_NM=no}
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4999 $as_echo "$lt_cv_path_NM" >&6; }
5000 if test "$lt_cv_path_NM" != "no"; then
5001 NM="$lt_cv_path_NM"
5002 else
5003 # Didn't find any BSD compatible name lister, look for dumpbin.
5004 if test -n "$ac_tool_prefix"; then
5005 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5007 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5008 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5010 $as_echo_n "checking for $ac_word... " >&6; }
5011 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5012 $as_echo_n "(cached) " >&6
5013 else
5014 if test -n "$DUMPBIN"; then
5015 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5016 else
5017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5018 for as_dir in $PATH
5020 IFS=$as_save_IFS
5021 test -z "$as_dir" && as_dir=.
5022 for ac_exec_ext in '' $ac_executable_extensions; do
5023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5024 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5026 break 2
5028 done
5029 done
5030 IFS=$as_save_IFS
5034 DUMPBIN=$ac_cv_prog_DUMPBIN
5035 if test -n "$DUMPBIN"; then
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5037 $as_echo "$DUMPBIN" >&6; }
5038 else
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5040 $as_echo "no" >&6; }
5044 test -n "$DUMPBIN" && break
5045 done
5047 if test -z "$DUMPBIN"; then
5048 ac_ct_DUMPBIN=$DUMPBIN
5049 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5051 # Extract the first word of "$ac_prog", so it can be a program name with args.
5052 set dummy $ac_prog; ac_word=$2
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5054 $as_echo_n "checking for $ac_word... " >&6; }
5055 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5056 $as_echo_n "(cached) " >&6
5057 else
5058 if test -n "$ac_ct_DUMPBIN"; then
5059 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5060 else
5061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5062 for as_dir in $PATH
5064 IFS=$as_save_IFS
5065 test -z "$as_dir" && as_dir=.
5066 for ac_exec_ext in '' $ac_executable_extensions; do
5067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5068 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5070 break 2
5072 done
5073 done
5074 IFS=$as_save_IFS
5078 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5079 if test -n "$ac_ct_DUMPBIN"; then
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5081 $as_echo "$ac_ct_DUMPBIN" >&6; }
5082 else
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5084 $as_echo "no" >&6; }
5088 test -n "$ac_ct_DUMPBIN" && break
5089 done
5091 if test "x$ac_ct_DUMPBIN" = x; then
5092 DUMPBIN=":"
5093 else
5094 case $cross_compiling:$ac_tool_warned in
5095 yes:)
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5097 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5098 ac_tool_warned=yes ;;
5099 esac
5100 DUMPBIN=$ac_ct_DUMPBIN
5105 if test "$DUMPBIN" != ":"; then
5106 NM="$DUMPBIN"
5109 test -z "$NM" && NM=nm
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5117 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5118 if test "${lt_cv_nm_interface+set}" = set; then :
5119 $as_echo_n "(cached) " >&6
5120 else
5121 lt_cv_nm_interface="BSD nm"
5122 echo "int some_variable = 0;" > conftest.$ac_ext
5123 (eval echo "\"\$as_me:5123: $ac_compile\"" >&5)
5124 (eval "$ac_compile" 2>conftest.err)
5125 cat conftest.err >&5
5126 (eval echo "\"\$as_me:5126: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5127 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5128 cat conftest.err >&5
5129 (eval echo "\"\$as_me:5129: output\"" >&5)
5130 cat conftest.out >&5
5131 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5132 lt_cv_nm_interface="MS dumpbin"
5134 rm -f conftest*
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5137 $as_echo "$lt_cv_nm_interface" >&6; }
5139 # find the maximum length of command line arguments
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5141 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5142 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5143 $as_echo_n "(cached) " >&6
5144 else
5146 teststring="ABCD"
5148 case $build_os in
5149 msdosdjgpp*)
5150 # On DJGPP, this test can blow up pretty badly due to problems in libc
5151 # (any single argument exceeding 2000 bytes causes a buffer overrun
5152 # during glob expansion). Even if it were fixed, the result of this
5153 # check would be larger than it should be.
5154 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5157 gnu*)
5158 # Under GNU Hurd, this test is not required because there is
5159 # no limit to the length of command line arguments.
5160 # Libtool will interpret -1 as no limit whatsoever
5161 lt_cv_sys_max_cmd_len=-1;
5164 cygwin* | mingw* | cegcc*)
5165 # On Win9x/ME, this test blows up -- it succeeds, but takes
5166 # about 5 minutes as the teststring grows exponentially.
5167 # Worse, since 9x/ME are not pre-emptively multitasking,
5168 # you end up with a "frozen" computer, even though with patience
5169 # the test eventually succeeds (with a max line length of 256k).
5170 # Instead, let's just punt: use the minimum linelength reported by
5171 # all of the supported platforms: 8192 (on NT/2K/XP).
5172 lt_cv_sys_max_cmd_len=8192;
5175 amigaos*)
5176 # On AmigaOS with pdksh, this test takes hours, literally.
5177 # So we just punt and use a minimum line length of 8192.
5178 lt_cv_sys_max_cmd_len=8192;
5181 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5182 # This has been around since 386BSD, at least. Likely further.
5183 if test -x /sbin/sysctl; then
5184 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5185 elif test -x /usr/sbin/sysctl; then
5186 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5187 else
5188 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5190 # And add a safety zone
5191 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5192 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5195 interix*)
5196 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5197 lt_cv_sys_max_cmd_len=196608
5200 osf*)
5201 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5202 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5203 # nice to cause kernel panics so lets avoid the loop below.
5204 # First set a reasonable default.
5205 lt_cv_sys_max_cmd_len=16384
5207 if test -x /sbin/sysconfig; then
5208 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5209 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5210 esac
5213 sco3.2v5*)
5214 lt_cv_sys_max_cmd_len=102400
5216 sysv5* | sco5v6* | sysv4.2uw2*)
5217 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5218 if test -n "$kargmax"; then
5219 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5220 else
5221 lt_cv_sys_max_cmd_len=32768
5225 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5226 if test -n "$lt_cv_sys_max_cmd_len"; then
5227 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5228 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5229 else
5230 # Make teststring a little bigger before we do anything with it.
5231 # a 1K string should be a reasonable start.
5232 for i in 1 2 3 4 5 6 7 8 ; do
5233 teststring=$teststring$teststring
5234 done
5235 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5236 # If test is not a shell built-in, we'll probably end up computing a
5237 # maximum length that is only half of the actual maximum length, but
5238 # we can't tell.
5239 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5240 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5241 test $i != 17 # 1/2 MB should be enough
5243 i=`expr $i + 1`
5244 teststring=$teststring$teststring
5245 done
5246 # Only check the string length outside the loop.
5247 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5248 teststring=
5249 # Add a significant safety factor because C++ compilers can tack on
5250 # massive amounts of additional arguments before passing them to the
5251 # linker. It appears as though 1/2 is a usable value.
5252 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5255 esac
5259 if test -n $lt_cv_sys_max_cmd_len ; then
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5261 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5262 else
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5264 $as_echo "none" >&6; }
5266 max_cmd_len=$lt_cv_sys_max_cmd_len
5273 : ${CP="cp -f"}
5274 : ${MV="mv -f"}
5275 : ${RM="rm -f"}
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5278 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5279 # Try some XSI features
5280 xsi_shell=no
5281 ( _lt_dummy="a/b/c"
5282 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5283 = c,a/b,, \
5284 && eval 'test $(( 1 + 1 )) -eq 2 \
5285 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5286 && xsi_shell=yes
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5288 $as_echo "$xsi_shell" >&6; }
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5292 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5293 lt_shell_append=no
5294 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5295 >/dev/null 2>&1 \
5296 && lt_shell_append=yes
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5298 $as_echo "$lt_shell_append" >&6; }
5301 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5302 lt_unset=unset
5303 else
5304 lt_unset=false
5311 # test EBCDIC or ASCII
5312 case `echo X|tr X '\101'` in
5313 A) # ASCII based system
5314 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5315 lt_SP2NL='tr \040 \012'
5316 lt_NL2SP='tr \015\012 \040\040'
5318 *) # EBCDIC based system
5319 lt_SP2NL='tr \100 \n'
5320 lt_NL2SP='tr \r\n \100\100'
5322 esac
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5333 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5334 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5335 $as_echo_n "(cached) " >&6
5336 else
5337 lt_cv_ld_reload_flag='-r'
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5340 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5341 reload_flag=$lt_cv_ld_reload_flag
5342 case $reload_flag in
5343 "" | " "*) ;;
5344 *) reload_flag=" $reload_flag" ;;
5345 esac
5346 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5347 case $host_os in
5348 darwin*)
5349 if test "$GCC" = yes; then
5350 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5351 else
5352 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5355 esac
5365 if test -n "$ac_tool_prefix"; then
5366 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5367 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5369 $as_echo_n "checking for $ac_word... " >&6; }
5370 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5371 $as_echo_n "(cached) " >&6
5372 else
5373 if test -n "$OBJDUMP"; then
5374 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5375 else
5376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5377 for as_dir in $PATH
5379 IFS=$as_save_IFS
5380 test -z "$as_dir" && as_dir=.
5381 for ac_exec_ext in '' $ac_executable_extensions; do
5382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5383 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5385 break 2
5387 done
5388 done
5389 IFS=$as_save_IFS
5393 OBJDUMP=$ac_cv_prog_OBJDUMP
5394 if test -n "$OBJDUMP"; then
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5396 $as_echo "$OBJDUMP" >&6; }
5397 else
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5399 $as_echo "no" >&6; }
5404 if test -z "$ac_cv_prog_OBJDUMP"; then
5405 ac_ct_OBJDUMP=$OBJDUMP
5406 # Extract the first word of "objdump", so it can be a program name with args.
5407 set dummy objdump; ac_word=$2
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5409 $as_echo_n "checking for $ac_word... " >&6; }
5410 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5411 $as_echo_n "(cached) " >&6
5412 else
5413 if test -n "$ac_ct_OBJDUMP"; then
5414 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5415 else
5416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5417 for as_dir in $PATH
5419 IFS=$as_save_IFS
5420 test -z "$as_dir" && as_dir=.
5421 for ac_exec_ext in '' $ac_executable_extensions; do
5422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5423 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5425 break 2
5427 done
5428 done
5429 IFS=$as_save_IFS
5433 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5434 if test -n "$ac_ct_OBJDUMP"; then
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5436 $as_echo "$ac_ct_OBJDUMP" >&6; }
5437 else
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5439 $as_echo "no" >&6; }
5442 if test "x$ac_ct_OBJDUMP" = x; then
5443 OBJDUMP="false"
5444 else
5445 case $cross_compiling:$ac_tool_warned in
5446 yes:)
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5448 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5449 ac_tool_warned=yes ;;
5450 esac
5451 OBJDUMP=$ac_ct_OBJDUMP
5453 else
5454 OBJDUMP="$ac_cv_prog_OBJDUMP"
5457 test -z "$OBJDUMP" && OBJDUMP=objdump
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5468 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5469 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5470 $as_echo_n "(cached) " >&6
5471 else
5472 lt_cv_file_magic_cmd='$MAGIC_CMD'
5473 lt_cv_file_magic_test_file=
5474 lt_cv_deplibs_check_method='unknown'
5475 # Need to set the preceding variable on all platforms that support
5476 # interlibrary dependencies.
5477 # 'none' -- dependencies not supported.
5478 # `unknown' -- same as none, but documents that we really don't know.
5479 # 'pass_all' -- all dependencies passed with no checks.
5480 # 'test_compile' -- check by making test program.
5481 # 'file_magic [[regex]]' -- check by looking for files in library path
5482 # which responds to the $file_magic_cmd with a given extended regex.
5483 # If you have `file' or equivalent on your system and you're not sure
5484 # whether `pass_all' will *always* work, you probably want this one.
5486 case $host_os in
5487 aix[4-9]*)
5488 lt_cv_deplibs_check_method=pass_all
5491 beos*)
5492 lt_cv_deplibs_check_method=pass_all
5495 bsdi[45]*)
5496 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5497 lt_cv_file_magic_cmd='/usr/bin/file -L'
5498 lt_cv_file_magic_test_file=/shlib/libc.so
5501 cygwin*)
5502 # func_win32_libid is a shell function defined in ltmain.sh
5503 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5504 lt_cv_file_magic_cmd='func_win32_libid'
5507 mingw* | pw32*)
5508 # Base MSYS/MinGW do not provide the 'file' command needed by
5509 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5510 # unless we find 'file', for example because we are cross-compiling.
5511 if ( file / ) >/dev/null 2>&1; then
5512 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5513 lt_cv_file_magic_cmd='func_win32_libid'
5514 else
5515 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5516 lt_cv_file_magic_cmd='$OBJDUMP -f'
5520 cegcc)
5521 # use the weaker test based on 'objdump'. See mingw*.
5522 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5523 lt_cv_file_magic_cmd='$OBJDUMP -f'
5526 darwin* | rhapsody*)
5527 lt_cv_deplibs_check_method=pass_all
5530 freebsd* | dragonfly*)
5531 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5532 case $host_cpu in
5533 i*86 )
5534 # Not sure whether the presence of OpenBSD here was a mistake.
5535 # Let's accept both of them until this is cleared up.
5536 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5537 lt_cv_file_magic_cmd=/usr/bin/file
5538 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5540 esac
5541 else
5542 lt_cv_deplibs_check_method=pass_all
5546 gnu*)
5547 lt_cv_deplibs_check_method=pass_all
5550 hpux10.20* | hpux11*)
5551 lt_cv_file_magic_cmd=/usr/bin/file
5552 case $host_cpu in
5553 ia64*)
5554 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5555 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5557 hppa*64*)
5558 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]'
5559 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5562 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5563 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5565 esac
5568 interix[3-9]*)
5569 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5570 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5573 irix5* | irix6* | nonstopux*)
5574 case $LD in
5575 *-32|*"-32 ") libmagic=32-bit;;
5576 *-n32|*"-n32 ") libmagic=N32;;
5577 *-64|*"-64 ") libmagic=64-bit;;
5578 *) libmagic=never-match;;
5579 esac
5580 lt_cv_deplibs_check_method=pass_all
5583 # This must be Linux ELF.
5584 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5585 lt_cv_deplibs_check_method=pass_all
5588 netbsd* | netbsdelf*-gnu)
5589 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5590 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5591 else
5592 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5596 newos6*)
5597 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5598 lt_cv_file_magic_cmd=/usr/bin/file
5599 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5602 *nto* | *qnx*)
5603 lt_cv_deplibs_check_method=pass_all
5606 openbsd*)
5607 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5608 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5609 else
5610 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5614 osf3* | osf4* | osf5*)
5615 lt_cv_deplibs_check_method=pass_all
5618 rdos*)
5619 lt_cv_deplibs_check_method=pass_all
5622 solaris*)
5623 lt_cv_deplibs_check_method=pass_all
5626 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5627 lt_cv_deplibs_check_method=pass_all
5630 sysv4 | sysv4.3*)
5631 case $host_vendor in
5632 motorola)
5633 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]'
5634 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5636 ncr)
5637 lt_cv_deplibs_check_method=pass_all
5639 sequent)
5640 lt_cv_file_magic_cmd='/bin/file'
5641 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5643 sni)
5644 lt_cv_file_magic_cmd='/bin/file'
5645 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5646 lt_cv_file_magic_test_file=/lib/libc.so
5648 siemens)
5649 lt_cv_deplibs_check_method=pass_all
5652 lt_cv_deplibs_check_method=pass_all
5654 esac
5657 tpf*)
5658 lt_cv_deplibs_check_method=pass_all
5660 esac
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5664 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5665 file_magic_cmd=$lt_cv_file_magic_cmd
5666 deplibs_check_method=$lt_cv_deplibs_check_method
5667 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5680 if test -n "$ac_tool_prefix"; then
5681 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5682 set dummy ${ac_tool_prefix}ar; ac_word=$2
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5684 $as_echo_n "checking for $ac_word... " >&6; }
5685 if test "${ac_cv_prog_AR+set}" = set; then :
5686 $as_echo_n "(cached) " >&6
5687 else
5688 if test -n "$AR"; then
5689 ac_cv_prog_AR="$AR" # Let the user override the test.
5690 else
5691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5692 for as_dir in $PATH
5694 IFS=$as_save_IFS
5695 test -z "$as_dir" && as_dir=.
5696 for ac_exec_ext in '' $ac_executable_extensions; do
5697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5698 ac_cv_prog_AR="${ac_tool_prefix}ar"
5699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5700 break 2
5702 done
5703 done
5704 IFS=$as_save_IFS
5708 AR=$ac_cv_prog_AR
5709 if test -n "$AR"; then
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5711 $as_echo "$AR" >&6; }
5712 else
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5714 $as_echo "no" >&6; }
5719 if test -z "$ac_cv_prog_AR"; then
5720 ac_ct_AR=$AR
5721 # Extract the first word of "ar", so it can be a program name with args.
5722 set dummy ar; ac_word=$2
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5724 $as_echo_n "checking for $ac_word... " >&6; }
5725 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5726 $as_echo_n "(cached) " >&6
5727 else
5728 if test -n "$ac_ct_AR"; then
5729 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5730 else
5731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5732 for as_dir in $PATH
5734 IFS=$as_save_IFS
5735 test -z "$as_dir" && as_dir=.
5736 for ac_exec_ext in '' $ac_executable_extensions; do
5737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5738 ac_cv_prog_ac_ct_AR="ar"
5739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5740 break 2
5742 done
5743 done
5744 IFS=$as_save_IFS
5748 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5749 if test -n "$ac_ct_AR"; then
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5751 $as_echo "$ac_ct_AR" >&6; }
5752 else
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5754 $as_echo "no" >&6; }
5757 if test "x$ac_ct_AR" = x; then
5758 AR="false"
5759 else
5760 case $cross_compiling:$ac_tool_warned in
5761 yes:)
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5763 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5764 ac_tool_warned=yes ;;
5765 esac
5766 AR=$ac_ct_AR
5768 else
5769 AR="$ac_cv_prog_AR"
5772 test -z "$AR" && AR=ar
5773 test -z "$AR_FLAGS" && AR_FLAGS=cru
5785 if test -n "$ac_tool_prefix"; then
5786 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5787 set dummy ${ac_tool_prefix}strip; ac_word=$2
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5789 $as_echo_n "checking for $ac_word... " >&6; }
5790 if test "${ac_cv_prog_STRIP+set}" = set; then :
5791 $as_echo_n "(cached) " >&6
5792 else
5793 if test -n "$STRIP"; then
5794 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5795 else
5796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5797 for as_dir in $PATH
5799 IFS=$as_save_IFS
5800 test -z "$as_dir" && as_dir=.
5801 for ac_exec_ext in '' $ac_executable_extensions; do
5802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5803 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5805 break 2
5807 done
5808 done
5809 IFS=$as_save_IFS
5813 STRIP=$ac_cv_prog_STRIP
5814 if test -n "$STRIP"; then
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5816 $as_echo "$STRIP" >&6; }
5817 else
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5819 $as_echo "no" >&6; }
5824 if test -z "$ac_cv_prog_STRIP"; then
5825 ac_ct_STRIP=$STRIP
5826 # Extract the first word of "strip", so it can be a program name with args.
5827 set dummy strip; ac_word=$2
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5829 $as_echo_n "checking for $ac_word... " >&6; }
5830 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5831 $as_echo_n "(cached) " >&6
5832 else
5833 if test -n "$ac_ct_STRIP"; then
5834 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5835 else
5836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5837 for as_dir in $PATH
5839 IFS=$as_save_IFS
5840 test -z "$as_dir" && as_dir=.
5841 for ac_exec_ext in '' $ac_executable_extensions; do
5842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5843 ac_cv_prog_ac_ct_STRIP="strip"
5844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5845 break 2
5847 done
5848 done
5849 IFS=$as_save_IFS
5853 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5854 if test -n "$ac_ct_STRIP"; then
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5856 $as_echo "$ac_ct_STRIP" >&6; }
5857 else
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5859 $as_echo "no" >&6; }
5862 if test "x$ac_ct_STRIP" = x; then
5863 STRIP=":"
5864 else
5865 case $cross_compiling:$ac_tool_warned in
5866 yes:)
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5868 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5869 ac_tool_warned=yes ;;
5870 esac
5871 STRIP=$ac_ct_STRIP
5873 else
5874 STRIP="$ac_cv_prog_STRIP"
5877 test -z "$STRIP" && STRIP=:
5884 if test -n "$ac_tool_prefix"; then
5885 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5886 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5888 $as_echo_n "checking for $ac_word... " >&6; }
5889 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5890 $as_echo_n "(cached) " >&6
5891 else
5892 if test -n "$RANLIB"; then
5893 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5894 else
5895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5896 for as_dir in $PATH
5898 IFS=$as_save_IFS
5899 test -z "$as_dir" && as_dir=.
5900 for ac_exec_ext in '' $ac_executable_extensions; do
5901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5902 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5904 break 2
5906 done
5907 done
5908 IFS=$as_save_IFS
5912 RANLIB=$ac_cv_prog_RANLIB
5913 if test -n "$RANLIB"; then
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5915 $as_echo "$RANLIB" >&6; }
5916 else
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5918 $as_echo "no" >&6; }
5923 if test -z "$ac_cv_prog_RANLIB"; then
5924 ac_ct_RANLIB=$RANLIB
5925 # Extract the first word of "ranlib", so it can be a program name with args.
5926 set dummy ranlib; ac_word=$2
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5928 $as_echo_n "checking for $ac_word... " >&6; }
5929 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5930 $as_echo_n "(cached) " >&6
5931 else
5932 if test -n "$ac_ct_RANLIB"; then
5933 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5934 else
5935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5936 for as_dir in $PATH
5938 IFS=$as_save_IFS
5939 test -z "$as_dir" && as_dir=.
5940 for ac_exec_ext in '' $ac_executable_extensions; do
5941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5942 ac_cv_prog_ac_ct_RANLIB="ranlib"
5943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5944 break 2
5946 done
5947 done
5948 IFS=$as_save_IFS
5952 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5953 if test -n "$ac_ct_RANLIB"; then
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5955 $as_echo "$ac_ct_RANLIB" >&6; }
5956 else
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5958 $as_echo "no" >&6; }
5961 if test "x$ac_ct_RANLIB" = x; then
5962 RANLIB=":"
5963 else
5964 case $cross_compiling:$ac_tool_warned in
5965 yes:)
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5967 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5968 ac_tool_warned=yes ;;
5969 esac
5970 RANLIB=$ac_ct_RANLIB
5972 else
5973 RANLIB="$ac_cv_prog_RANLIB"
5976 test -z "$RANLIB" && RANLIB=:
5983 # Determine commands to create old-style static archives.
5984 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5985 old_postinstall_cmds='chmod 644 $oldlib'
5986 old_postuninstall_cmds=
5988 if test -n "$RANLIB"; then
5989 case $host_os in
5990 openbsd*)
5991 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5994 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5996 esac
5997 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6033 # If no C compiler was specified, use CC.
6034 LTCC=${LTCC-"$CC"}
6036 # If no C compiler flags were specified, use CFLAGS.
6037 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6039 # Allow CC to be a program name with arguments.
6040 compiler=$CC
6043 # Check for command to grab the raw symbol name followed by C symbol from nm.
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6045 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6046 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6047 $as_echo_n "(cached) " >&6
6048 else
6050 # These are sane defaults that work on at least a few old systems.
6051 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6053 # Character class describing NM global symbol codes.
6054 symcode='[BCDEGRST]'
6056 # Regexp to match symbols that can be accessed directly from C.
6057 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6059 # Define system-specific variables.
6060 case $host_os in
6061 aix*)
6062 symcode='[BCDT]'
6064 cygwin* | mingw* | pw32* | cegcc*)
6065 symcode='[ABCDGISTW]'
6067 hpux*)
6068 if test "$host_cpu" = ia64; then
6069 symcode='[ABCDEGRST]'
6072 irix* | nonstopux*)
6073 symcode='[BCDEGRST]'
6075 osf*)
6076 symcode='[BCDEGQRST]'
6078 solaris*)
6079 symcode='[BDRT]'
6081 sco3.2v5*)
6082 symcode='[DT]'
6084 sysv4.2uw2*)
6085 symcode='[DT]'
6087 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6088 symcode='[ABDT]'
6090 sysv4)
6091 symcode='[DFNSTU]'
6093 esac
6095 # If we're using GNU nm, then use its standard symbol codes.
6096 case `$NM -V 2>&1` in
6097 *GNU* | *'with BFD'*)
6098 symcode='[ABCDGIRSTW]' ;;
6099 esac
6101 # Transform an extracted symbol line into a proper C declaration.
6102 # Some systems (esp. on ia64) link data and code symbols differently,
6103 # so use this general approach.
6104 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6106 # Transform an extracted symbol line into symbol name and symbol address
6107 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6108 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'"
6110 # Handle CRLF in mingw tool chain
6111 opt_cr=
6112 case $build_os in
6113 mingw*)
6114 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6116 esac
6118 # Try without a prefix underscore, then with it.
6119 for ac_symprfx in "" "_"; do
6121 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6122 symxfrm="\\1 $ac_symprfx\\2 \\2"
6124 # Write the raw and C identifiers.
6125 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6126 # Fake it for dumpbin and say T for any non-static function
6127 # and D for any global variable.
6128 # Also find C++ and __fastcall symbols from MSVC++,
6129 # which start with @ or ?.
6130 lt_cv_sys_global_symbol_pipe="$AWK '"\
6131 " {last_section=section; section=\$ 3};"\
6132 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6133 " \$ 0!~/External *\|/{next};"\
6134 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6135 " {if(hide[section]) next};"\
6136 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6137 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6138 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6139 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6140 " ' prfx=^$ac_symprfx"
6141 else
6142 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6145 # Check to see that the pipe works correctly.
6146 pipe_works=no
6148 rm -f conftest*
6149 cat > conftest.$ac_ext <<_LT_EOF
6150 #ifdef __cplusplus
6151 extern "C" {
6152 #endif
6153 char nm_test_var;
6154 void nm_test_func(void);
6155 void nm_test_func(void){}
6156 #ifdef __cplusplus
6158 #endif
6159 int main(){nm_test_var='a';nm_test_func();return(0);}
6160 _LT_EOF
6162 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6163 (eval $ac_compile) 2>&5
6164 ac_status=$?
6165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6166 test $ac_status = 0; }; then
6167 # Now try to grab the symbols.
6168 nlist=conftest.nm
6169 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6170 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6171 ac_status=$?
6172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6173 test $ac_status = 0; } && test -s "$nlist"; then
6174 # Try sorting and uniquifying the output.
6175 if sort "$nlist" | uniq > "$nlist"T; then
6176 mv -f "$nlist"T "$nlist"
6177 else
6178 rm -f "$nlist"T
6181 # Make sure that we snagged all the symbols we need.
6182 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6183 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6184 cat <<_LT_EOF > conftest.$ac_ext
6185 #ifdef __cplusplus
6186 extern "C" {
6187 #endif
6189 _LT_EOF
6190 # Now generate the symbol file.
6191 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6193 cat <<_LT_EOF >> conftest.$ac_ext
6195 /* The mapping between symbol names and symbols. */
6196 const struct {
6197 const char *name;
6198 void *address;
6200 lt__PROGRAM__LTX_preloaded_symbols[] =
6202 { "@PROGRAM@", (void *) 0 },
6203 _LT_EOF
6204 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6205 cat <<\_LT_EOF >> conftest.$ac_ext
6206 {0, (void *) 0}
6209 /* This works around a problem in FreeBSD linker */
6210 #ifdef FREEBSD_WORKAROUND
6211 static const void *lt_preloaded_setup() {
6212 return lt__PROGRAM__LTX_preloaded_symbols;
6214 #endif
6216 #ifdef __cplusplus
6218 #endif
6219 _LT_EOF
6220 # Now try linking the two files.
6221 mv conftest.$ac_objext conftstm.$ac_objext
6222 lt_save_LIBS="$LIBS"
6223 lt_save_CFLAGS="$CFLAGS"
6224 LIBS="conftstm.$ac_objext"
6225 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6226 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6227 (eval $ac_link) 2>&5
6228 ac_status=$?
6229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6230 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6231 pipe_works=yes
6233 LIBS="$lt_save_LIBS"
6234 CFLAGS="$lt_save_CFLAGS"
6235 else
6236 echo "cannot find nm_test_func in $nlist" >&5
6238 else
6239 echo "cannot find nm_test_var in $nlist" >&5
6241 else
6242 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6244 else
6245 echo "$progname: failed program was:" >&5
6246 cat conftest.$ac_ext >&5
6248 rm -rf conftest* conftst*
6250 # Do not use the global_symbol_pipe unless it works.
6251 if test "$pipe_works" = yes; then
6252 break
6253 else
6254 lt_cv_sys_global_symbol_pipe=
6256 done
6260 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6261 lt_cv_sys_global_symbol_to_cdecl=
6263 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6265 $as_echo "failed" >&6; }
6266 else
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6268 $as_echo "ok" >&6; }
6293 # Check whether --enable-libtool-lock was given.
6294 if test "${enable_libtool_lock+set}" = set; then :
6295 enableval=$enable_libtool_lock;
6298 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6300 # Some flags need to be propagated to the compiler or linker for good
6301 # libtool support.
6302 case $host in
6303 ia64-*-hpux*)
6304 # Find out which ABI we are using.
6305 echo 'int i;' > conftest.$ac_ext
6306 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6307 (eval $ac_compile) 2>&5
6308 ac_status=$?
6309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6310 test $ac_status = 0; }; then
6311 case `/usr/bin/file conftest.$ac_objext` in
6312 *ELF-32*)
6313 HPUX_IA64_MODE="32"
6315 *ELF-64*)
6316 HPUX_IA64_MODE="64"
6318 esac
6320 rm -rf conftest*
6322 *-*-irix6*)
6323 # Find out which ABI we are using.
6324 echo '#line 6324 "configure"' > conftest.$ac_ext
6325 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6326 (eval $ac_compile) 2>&5
6327 ac_status=$?
6328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6329 test $ac_status = 0; }; then
6330 if test "$lt_cv_prog_gnu_ld" = yes; then
6331 case `/usr/bin/file conftest.$ac_objext` in
6332 *32-bit*)
6333 LD="${LD-ld} -melf32bsmip"
6335 *N32*)
6336 LD="${LD-ld} -melf32bmipn32"
6338 *64-bit*)
6339 LD="${LD-ld} -melf64bmip"
6341 esac
6342 else
6343 case `/usr/bin/file conftest.$ac_objext` in
6344 *32-bit*)
6345 LD="${LD-ld} -32"
6347 *N32*)
6348 LD="${LD-ld} -n32"
6350 *64-bit*)
6351 LD="${LD-ld} -64"
6353 esac
6356 rm -rf conftest*
6359 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6360 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6361 # Find out which ABI we are using.
6362 echo 'int i;' > conftest.$ac_ext
6363 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6364 (eval $ac_compile) 2>&5
6365 ac_status=$?
6366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6367 test $ac_status = 0; }; then
6368 case `/usr/bin/file conftest.o` in
6369 *32-bit*)
6370 case $host in
6371 x86_64-*kfreebsd*-gnu)
6372 LD="${LD-ld} -m elf_i386_fbsd"
6374 x86_64-*linux*)
6375 LD="${LD-ld} -m elf_i386"
6377 ppc64-*linux*|powerpc64-*linux*)
6378 LD="${LD-ld} -m elf32ppclinux"
6380 s390x-*linux*)
6381 LD="${LD-ld} -m elf_s390"
6383 sparc64-*linux*)
6384 LD="${LD-ld} -m elf32_sparc"
6386 esac
6388 *64-bit*)
6389 case $host in
6390 x86_64-*kfreebsd*-gnu)
6391 LD="${LD-ld} -m elf_x86_64_fbsd"
6393 x86_64-*linux*)
6394 LD="${LD-ld} -m elf_x86_64"
6396 ppc*-*linux*|powerpc*-*linux*)
6397 LD="${LD-ld} -m elf64ppc"
6399 s390*-*linux*|s390*-*tpf*)
6400 LD="${LD-ld} -m elf64_s390"
6402 sparc*-*linux*)
6403 LD="${LD-ld} -m elf64_sparc"
6405 esac
6407 esac
6409 rm -rf conftest*
6412 *-*-sco3.2v5*)
6413 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6414 SAVE_CFLAGS="$CFLAGS"
6415 CFLAGS="$CFLAGS -belf"
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6417 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6418 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6419 $as_echo_n "(cached) " >&6
6420 else
6421 ac_ext=c
6422 ac_cpp='$CPP $CPPFLAGS'
6423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6428 /* end confdefs.h. */
6431 main ()
6435 return 0;
6437 _ACEOF
6438 if ac_fn_c_try_link "$LINENO"; then :
6439 lt_cv_cc_needs_belf=yes
6440 else
6441 lt_cv_cc_needs_belf=no
6443 rm -f core conftest.err conftest.$ac_objext \
6444 conftest$ac_exeext conftest.$ac_ext
6445 ac_ext=c
6446 ac_cpp='$CPP $CPPFLAGS'
6447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6453 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6454 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6455 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6456 CFLAGS="$SAVE_CFLAGS"
6459 sparc*-*solaris*)
6460 # Find out which ABI we are using.
6461 echo 'int i;' > conftest.$ac_ext
6462 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6463 (eval $ac_compile) 2>&5
6464 ac_status=$?
6465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6466 test $ac_status = 0; }; then
6467 case `/usr/bin/file conftest.o` in
6468 *64-bit*)
6469 case $lt_cv_prog_gnu_ld in
6470 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6472 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6473 LD="${LD-ld} -64"
6476 esac
6478 esac
6480 rm -rf conftest*
6482 esac
6484 need_locks="$enable_libtool_lock"
6487 case $host_os in
6488 rhapsody* | darwin*)
6489 if test -n "$ac_tool_prefix"; then
6490 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6491 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6493 $as_echo_n "checking for $ac_word... " >&6; }
6494 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6495 $as_echo_n "(cached) " >&6
6496 else
6497 if test -n "$DSYMUTIL"; then
6498 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6499 else
6500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6501 for as_dir in $PATH
6503 IFS=$as_save_IFS
6504 test -z "$as_dir" && as_dir=.
6505 for ac_exec_ext in '' $ac_executable_extensions; do
6506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6507 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6509 break 2
6511 done
6512 done
6513 IFS=$as_save_IFS
6517 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6518 if test -n "$DSYMUTIL"; then
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6520 $as_echo "$DSYMUTIL" >&6; }
6521 else
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6523 $as_echo "no" >&6; }
6528 if test -z "$ac_cv_prog_DSYMUTIL"; then
6529 ac_ct_DSYMUTIL=$DSYMUTIL
6530 # Extract the first word of "dsymutil", so it can be a program name with args.
6531 set dummy dsymutil; ac_word=$2
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6533 $as_echo_n "checking for $ac_word... " >&6; }
6534 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6535 $as_echo_n "(cached) " >&6
6536 else
6537 if test -n "$ac_ct_DSYMUTIL"; then
6538 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6539 else
6540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6541 for as_dir in $PATH
6543 IFS=$as_save_IFS
6544 test -z "$as_dir" && as_dir=.
6545 for ac_exec_ext in '' $ac_executable_extensions; do
6546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6547 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6549 break 2
6551 done
6552 done
6553 IFS=$as_save_IFS
6557 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6558 if test -n "$ac_ct_DSYMUTIL"; then
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6560 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6561 else
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6563 $as_echo "no" >&6; }
6566 if test "x$ac_ct_DSYMUTIL" = x; then
6567 DSYMUTIL=":"
6568 else
6569 case $cross_compiling:$ac_tool_warned in
6570 yes:)
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6572 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6573 ac_tool_warned=yes ;;
6574 esac
6575 DSYMUTIL=$ac_ct_DSYMUTIL
6577 else
6578 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6581 if test -n "$ac_tool_prefix"; then
6582 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6583 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6585 $as_echo_n "checking for $ac_word... " >&6; }
6586 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6587 $as_echo_n "(cached) " >&6
6588 else
6589 if test -n "$NMEDIT"; then
6590 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6591 else
6592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6593 for as_dir in $PATH
6595 IFS=$as_save_IFS
6596 test -z "$as_dir" && as_dir=.
6597 for ac_exec_ext in '' $ac_executable_extensions; do
6598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6599 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6601 break 2
6603 done
6604 done
6605 IFS=$as_save_IFS
6609 NMEDIT=$ac_cv_prog_NMEDIT
6610 if test -n "$NMEDIT"; then
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6612 $as_echo "$NMEDIT" >&6; }
6613 else
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6615 $as_echo "no" >&6; }
6620 if test -z "$ac_cv_prog_NMEDIT"; then
6621 ac_ct_NMEDIT=$NMEDIT
6622 # Extract the first word of "nmedit", so it can be a program name with args.
6623 set dummy nmedit; ac_word=$2
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6625 $as_echo_n "checking for $ac_word... " >&6; }
6626 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6627 $as_echo_n "(cached) " >&6
6628 else
6629 if test -n "$ac_ct_NMEDIT"; then
6630 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6631 else
6632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6633 for as_dir in $PATH
6635 IFS=$as_save_IFS
6636 test -z "$as_dir" && as_dir=.
6637 for ac_exec_ext in '' $ac_executable_extensions; do
6638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6639 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6641 break 2
6643 done
6644 done
6645 IFS=$as_save_IFS
6649 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6650 if test -n "$ac_ct_NMEDIT"; then
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6652 $as_echo "$ac_ct_NMEDIT" >&6; }
6653 else
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6655 $as_echo "no" >&6; }
6658 if test "x$ac_ct_NMEDIT" = x; then
6659 NMEDIT=":"
6660 else
6661 case $cross_compiling:$ac_tool_warned in
6662 yes:)
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6664 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6665 ac_tool_warned=yes ;;
6666 esac
6667 NMEDIT=$ac_ct_NMEDIT
6669 else
6670 NMEDIT="$ac_cv_prog_NMEDIT"
6673 if test -n "$ac_tool_prefix"; then
6674 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6675 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6677 $as_echo_n "checking for $ac_word... " >&6; }
6678 if test "${ac_cv_prog_LIPO+set}" = set; then :
6679 $as_echo_n "(cached) " >&6
6680 else
6681 if test -n "$LIPO"; then
6682 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6683 else
6684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6685 for as_dir in $PATH
6687 IFS=$as_save_IFS
6688 test -z "$as_dir" && as_dir=.
6689 for ac_exec_ext in '' $ac_executable_extensions; do
6690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6691 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6693 break 2
6695 done
6696 done
6697 IFS=$as_save_IFS
6701 LIPO=$ac_cv_prog_LIPO
6702 if test -n "$LIPO"; then
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6704 $as_echo "$LIPO" >&6; }
6705 else
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6707 $as_echo "no" >&6; }
6712 if test -z "$ac_cv_prog_LIPO"; then
6713 ac_ct_LIPO=$LIPO
6714 # Extract the first word of "lipo", so it can be a program name with args.
6715 set dummy lipo; ac_word=$2
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6717 $as_echo_n "checking for $ac_word... " >&6; }
6718 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6719 $as_echo_n "(cached) " >&6
6720 else
6721 if test -n "$ac_ct_LIPO"; then
6722 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6723 else
6724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6725 for as_dir in $PATH
6727 IFS=$as_save_IFS
6728 test -z "$as_dir" && as_dir=.
6729 for ac_exec_ext in '' $ac_executable_extensions; do
6730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6731 ac_cv_prog_ac_ct_LIPO="lipo"
6732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6733 break 2
6735 done
6736 done
6737 IFS=$as_save_IFS
6741 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6742 if test -n "$ac_ct_LIPO"; then
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6744 $as_echo "$ac_ct_LIPO" >&6; }
6745 else
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6747 $as_echo "no" >&6; }
6750 if test "x$ac_ct_LIPO" = x; then
6751 LIPO=":"
6752 else
6753 case $cross_compiling:$ac_tool_warned in
6754 yes:)
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6756 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6757 ac_tool_warned=yes ;;
6758 esac
6759 LIPO=$ac_ct_LIPO
6761 else
6762 LIPO="$ac_cv_prog_LIPO"
6765 if test -n "$ac_tool_prefix"; then
6766 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6767 set dummy ${ac_tool_prefix}otool; ac_word=$2
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6769 $as_echo_n "checking for $ac_word... " >&6; }
6770 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6771 $as_echo_n "(cached) " >&6
6772 else
6773 if test -n "$OTOOL"; then
6774 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6775 else
6776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6777 for as_dir in $PATH
6779 IFS=$as_save_IFS
6780 test -z "$as_dir" && as_dir=.
6781 for ac_exec_ext in '' $ac_executable_extensions; do
6782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6783 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6785 break 2
6787 done
6788 done
6789 IFS=$as_save_IFS
6793 OTOOL=$ac_cv_prog_OTOOL
6794 if test -n "$OTOOL"; then
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6796 $as_echo "$OTOOL" >&6; }
6797 else
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6799 $as_echo "no" >&6; }
6804 if test -z "$ac_cv_prog_OTOOL"; then
6805 ac_ct_OTOOL=$OTOOL
6806 # Extract the first word of "otool", so it can be a program name with args.
6807 set dummy otool; ac_word=$2
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6809 $as_echo_n "checking for $ac_word... " >&6; }
6810 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6811 $as_echo_n "(cached) " >&6
6812 else
6813 if test -n "$ac_ct_OTOOL"; then
6814 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6815 else
6816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6817 for as_dir in $PATH
6819 IFS=$as_save_IFS
6820 test -z "$as_dir" && as_dir=.
6821 for ac_exec_ext in '' $ac_executable_extensions; do
6822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6823 ac_cv_prog_ac_ct_OTOOL="otool"
6824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6825 break 2
6827 done
6828 done
6829 IFS=$as_save_IFS
6833 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6834 if test -n "$ac_ct_OTOOL"; then
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6836 $as_echo "$ac_ct_OTOOL" >&6; }
6837 else
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6839 $as_echo "no" >&6; }
6842 if test "x$ac_ct_OTOOL" = x; then
6843 OTOOL=":"
6844 else
6845 case $cross_compiling:$ac_tool_warned in
6846 yes:)
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6848 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6849 ac_tool_warned=yes ;;
6850 esac
6851 OTOOL=$ac_ct_OTOOL
6853 else
6854 OTOOL="$ac_cv_prog_OTOOL"
6857 if test -n "$ac_tool_prefix"; then
6858 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6859 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6861 $as_echo_n "checking for $ac_word... " >&6; }
6862 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6863 $as_echo_n "(cached) " >&6
6864 else
6865 if test -n "$OTOOL64"; then
6866 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6867 else
6868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6869 for as_dir in $PATH
6871 IFS=$as_save_IFS
6872 test -z "$as_dir" && as_dir=.
6873 for ac_exec_ext in '' $ac_executable_extensions; do
6874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6875 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6877 break 2
6879 done
6880 done
6881 IFS=$as_save_IFS
6885 OTOOL64=$ac_cv_prog_OTOOL64
6886 if test -n "$OTOOL64"; then
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6888 $as_echo "$OTOOL64" >&6; }
6889 else
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6891 $as_echo "no" >&6; }
6896 if test -z "$ac_cv_prog_OTOOL64"; then
6897 ac_ct_OTOOL64=$OTOOL64
6898 # Extract the first word of "otool64", so it can be a program name with args.
6899 set dummy otool64; ac_word=$2
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6901 $as_echo_n "checking for $ac_word... " >&6; }
6902 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6903 $as_echo_n "(cached) " >&6
6904 else
6905 if test -n "$ac_ct_OTOOL64"; then
6906 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6907 else
6908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6909 for as_dir in $PATH
6911 IFS=$as_save_IFS
6912 test -z "$as_dir" && as_dir=.
6913 for ac_exec_ext in '' $ac_executable_extensions; do
6914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6915 ac_cv_prog_ac_ct_OTOOL64="otool64"
6916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6917 break 2
6919 done
6920 done
6921 IFS=$as_save_IFS
6925 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6926 if test -n "$ac_ct_OTOOL64"; then
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6928 $as_echo "$ac_ct_OTOOL64" >&6; }
6929 else
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6931 $as_echo "no" >&6; }
6934 if test "x$ac_ct_OTOOL64" = x; then
6935 OTOOL64=":"
6936 else
6937 case $cross_compiling:$ac_tool_warned in
6938 yes:)
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6940 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6941 ac_tool_warned=yes ;;
6942 esac
6943 OTOOL64=$ac_ct_OTOOL64
6945 else
6946 OTOOL64="$ac_cv_prog_OTOOL64"
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6976 $as_echo_n "checking for -single_module linker flag... " >&6; }
6977 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6978 $as_echo_n "(cached) " >&6
6979 else
6980 lt_cv_apple_cc_single_mod=no
6981 if test -z "${LT_MULTI_MODULE}"; then
6982 # By default we will add the -single_module flag. You can override
6983 # by either setting the environment variable LT_MULTI_MODULE
6984 # non-empty at configure time, or by adding -multi_module to the
6985 # link flags.
6986 rm -rf libconftest.dylib*
6987 echo "int foo(void){return 1;}" > conftest.c
6988 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6989 -dynamiclib -Wl,-single_module conftest.c" >&5
6990 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6991 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6992 _lt_result=$?
6993 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6994 lt_cv_apple_cc_single_mod=yes
6995 else
6996 cat conftest.err >&5
6998 rm -rf libconftest.dylib*
6999 rm -f conftest.*
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7003 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7005 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7006 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7007 $as_echo_n "(cached) " >&6
7008 else
7009 lt_cv_ld_exported_symbols_list=no
7010 save_LDFLAGS=$LDFLAGS
7011 echo "_main" > conftest.sym
7012 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7014 /* end confdefs.h. */
7017 main ()
7021 return 0;
7023 _ACEOF
7024 if ac_fn_c_try_link "$LINENO"; then :
7025 lt_cv_ld_exported_symbols_list=yes
7026 else
7027 lt_cv_ld_exported_symbols_list=no
7029 rm -f core conftest.err conftest.$ac_objext \
7030 conftest$ac_exeext conftest.$ac_ext
7031 LDFLAGS="$save_LDFLAGS"
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7035 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7036 case $host_os in
7037 rhapsody* | darwin1.[012])
7038 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7039 darwin1.*)
7040 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7041 darwin*) # darwin 5.x on
7042 # if running on 10.5 or later, the deployment target defaults
7043 # to the OS version, if on x86, and 10.4, the deployment
7044 # target defaults to 10.4. Don't you love it?
7045 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7046 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7047 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7048 10.[012]*)
7049 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7050 10.*)
7051 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7052 esac
7054 esac
7055 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7056 _lt_dar_single_mod='$single_module'
7058 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7059 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7060 else
7061 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7063 if test "$DSYMUTIL" != ":"; then
7064 _lt_dsymutil='~$DSYMUTIL $lib || :'
7065 else
7066 _lt_dsymutil=
7069 esac
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7073 $as_echo_n "checking for ANSI C header files... " >&6; }
7074 if test "${ac_cv_header_stdc+set}" = set; then :
7075 $as_echo_n "(cached) " >&6
7076 else
7077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7078 /* end confdefs.h. */
7079 #include <stdlib.h>
7080 #include <stdarg.h>
7081 #include <string.h>
7082 #include <float.h>
7085 main ()
7089 return 0;
7091 _ACEOF
7092 if ac_fn_c_try_compile "$LINENO"; then :
7093 ac_cv_header_stdc=yes
7094 else
7095 ac_cv_header_stdc=no
7097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7099 if test $ac_cv_header_stdc = yes; then
7100 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7102 /* end confdefs.h. */
7103 #include <string.h>
7105 _ACEOF
7106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7107 $EGREP "memchr" >/dev/null 2>&1; then :
7109 else
7110 ac_cv_header_stdc=no
7112 rm -f conftest*
7116 if test $ac_cv_header_stdc = yes; then
7117 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7119 /* end confdefs.h. */
7120 #include <stdlib.h>
7122 _ACEOF
7123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7124 $EGREP "free" >/dev/null 2>&1; then :
7126 else
7127 ac_cv_header_stdc=no
7129 rm -f conftest*
7133 if test $ac_cv_header_stdc = yes; then
7134 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7135 if test "$cross_compiling" = yes; then :
7137 else
7138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7139 /* end confdefs.h. */
7140 #include <ctype.h>
7141 #include <stdlib.h>
7142 #if ((' ' & 0x0FF) == 0x020)
7143 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7144 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7145 #else
7146 # define ISLOWER(c) \
7147 (('a' <= (c) && (c) <= 'i') \
7148 || ('j' <= (c) && (c) <= 'r') \
7149 || ('s' <= (c) && (c) <= 'z'))
7150 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7151 #endif
7153 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7155 main ()
7157 int i;
7158 for (i = 0; i < 256; i++)
7159 if (XOR (islower (i), ISLOWER (i))
7160 || toupper (i) != TOUPPER (i))
7161 return 2;
7162 return 0;
7164 _ACEOF
7165 if ac_fn_c_try_run "$LINENO"; then :
7167 else
7168 ac_cv_header_stdc=no
7170 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7171 conftest.$ac_objext conftest.beam conftest.$ac_ext
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7177 $as_echo "$ac_cv_header_stdc" >&6; }
7178 if test $ac_cv_header_stdc = yes; then
7180 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7184 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7185 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7186 inttypes.h stdint.h unistd.h
7187 do :
7188 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7189 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7191 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7192 cat >>confdefs.h <<_ACEOF
7193 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7194 _ACEOF
7198 done
7201 for ac_header in dlfcn.h
7202 do :
7203 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7205 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7206 cat >>confdefs.h <<_ACEOF
7207 #define HAVE_DLFCN_H 1
7208 _ACEOF
7212 done
7216 ac_ext=cpp
7217 ac_cpp='$CXXCPP $CPPFLAGS'
7218 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7219 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7220 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7221 if test -z "$CXX"; then
7222 if test -n "$CCC"; then
7223 CXX=$CCC
7224 else
7225 if test -n "$ac_tool_prefix"; then
7226 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7228 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7229 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7231 $as_echo_n "checking for $ac_word... " >&6; }
7232 if test "${ac_cv_prog_CXX+set}" = set; then :
7233 $as_echo_n "(cached) " >&6
7234 else
7235 if test -n "$CXX"; then
7236 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7237 else
7238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7239 for as_dir in $PATH
7241 IFS=$as_save_IFS
7242 test -z "$as_dir" && as_dir=.
7243 for ac_exec_ext in '' $ac_executable_extensions; do
7244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7245 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7247 break 2
7249 done
7250 done
7251 IFS=$as_save_IFS
7255 CXX=$ac_cv_prog_CXX
7256 if test -n "$CXX"; then
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7258 $as_echo "$CXX" >&6; }
7259 else
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7261 $as_echo "no" >&6; }
7265 test -n "$CXX" && break
7266 done
7268 if test -z "$CXX"; then
7269 ac_ct_CXX=$CXX
7270 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7272 # Extract the first word of "$ac_prog", so it can be a program name with args.
7273 set dummy $ac_prog; ac_word=$2
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7275 $as_echo_n "checking for $ac_word... " >&6; }
7276 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
7277 $as_echo_n "(cached) " >&6
7278 else
7279 if test -n "$ac_ct_CXX"; then
7280 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7281 else
7282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7283 for as_dir in $PATH
7285 IFS=$as_save_IFS
7286 test -z "$as_dir" && as_dir=.
7287 for ac_exec_ext in '' $ac_executable_extensions; do
7288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7289 ac_cv_prog_ac_ct_CXX="$ac_prog"
7290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7291 break 2
7293 done
7294 done
7295 IFS=$as_save_IFS
7299 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7300 if test -n "$ac_ct_CXX"; then
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7302 $as_echo "$ac_ct_CXX" >&6; }
7303 else
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7305 $as_echo "no" >&6; }
7309 test -n "$ac_ct_CXX" && break
7310 done
7312 if test "x$ac_ct_CXX" = x; then
7313 CXX="g++"
7314 else
7315 case $cross_compiling:$ac_tool_warned in
7316 yes:)
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7318 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7319 ac_tool_warned=yes ;;
7320 esac
7321 CXX=$ac_ct_CXX
7327 # Provide some information about the compiler.
7328 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7329 set X $ac_compile
7330 ac_compiler=$2
7331 for ac_option in --version -v -V -qversion; do
7332 { { ac_try="$ac_compiler $ac_option >&5"
7333 case "(($ac_try" in
7334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7335 *) ac_try_echo=$ac_try;;
7336 esac
7337 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7338 $as_echo "$ac_try_echo"; } >&5
7339 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7340 ac_status=$?
7341 if test -s conftest.err; then
7342 sed '10a\
7343 ... rest of stderr output deleted ...
7344 10q' conftest.err >conftest.er1
7345 cat conftest.er1 >&5
7347 rm -f conftest.er1 conftest.err
7348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7349 test $ac_status = 0; }
7350 done
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7353 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7354 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
7355 $as_echo_n "(cached) " >&6
7356 else
7357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7358 /* end confdefs.h. */
7361 main ()
7363 #ifndef __GNUC__
7364 choke me
7365 #endif
7368 return 0;
7370 _ACEOF
7371 if ac_fn_cxx_try_compile "$LINENO"; then :
7372 ac_compiler_gnu=yes
7373 else
7374 ac_compiler_gnu=no
7376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7377 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7381 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7382 if test $ac_compiler_gnu = yes; then
7383 GXX=yes
7384 else
7385 GXX=
7387 ac_test_CXXFLAGS=${CXXFLAGS+set}
7388 ac_save_CXXFLAGS=$CXXFLAGS
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7390 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
7391 if test "${ac_cv_prog_cxx_g+set}" = set; then :
7392 $as_echo_n "(cached) " >&6
7393 else
7394 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7395 ac_cxx_werror_flag=yes
7396 ac_cv_prog_cxx_g=no
7397 CXXFLAGS="-g"
7398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7399 /* end confdefs.h. */
7402 main ()
7406 return 0;
7408 _ACEOF
7409 if ac_fn_cxx_try_compile "$LINENO"; then :
7410 ac_cv_prog_cxx_g=yes
7411 else
7412 CXXFLAGS=""
7413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7414 /* end confdefs.h. */
7417 main ()
7421 return 0;
7423 _ACEOF
7424 if ac_fn_cxx_try_compile "$LINENO"; then :
7426 else
7427 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7428 CXXFLAGS="-g"
7429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7430 /* end confdefs.h. */
7433 main ()
7437 return 0;
7439 _ACEOF
7440 if ac_fn_cxx_try_compile "$LINENO"; then :
7441 ac_cv_prog_cxx_g=yes
7443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7448 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7451 $as_echo "$ac_cv_prog_cxx_g" >&6; }
7452 if test "$ac_test_CXXFLAGS" = set; then
7453 CXXFLAGS=$ac_save_CXXFLAGS
7454 elif test $ac_cv_prog_cxx_g = yes; then
7455 if test "$GXX" = yes; then
7456 CXXFLAGS="-g -O2"
7457 else
7458 CXXFLAGS="-g"
7460 else
7461 if test "$GXX" = yes; then
7462 CXXFLAGS="-O2"
7463 else
7464 CXXFLAGS=
7467 ac_ext=c
7468 ac_cpp='$CPP $CPPFLAGS'
7469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7473 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7474 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7475 (test "X$CXX" != "Xg++"))) ; then
7476 ac_ext=cpp
7477 ac_cpp='$CXXCPP $CPPFLAGS'
7478 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7479 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7480 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
7482 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
7483 if test -z "$CXXCPP"; then
7484 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
7485 $as_echo_n "(cached) " >&6
7486 else
7487 # Double quotes because CXXCPP needs to be expanded
7488 for CXXCPP in "$CXX -E" "/lib/cpp"
7490 ac_preproc_ok=false
7491 for ac_cxx_preproc_warn_flag in '' yes
7493 # Use a header file that comes with gcc, so configuring glibc
7494 # with a fresh cross-compiler works.
7495 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7496 # <limits.h> exists even on freestanding compilers.
7497 # On the NeXT, cc -E runs the code through the compiler's parser,
7498 # not just through cpp. "Syntax error" is here to catch this case.
7499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7500 /* end confdefs.h. */
7501 #ifdef __STDC__
7502 # include <limits.h>
7503 #else
7504 # include <assert.h>
7505 #endif
7506 Syntax error
7507 _ACEOF
7508 if ac_fn_cxx_try_cpp "$LINENO"; then :
7510 else
7511 # Broken: fails on valid input.
7512 continue
7514 rm -f conftest.err conftest.i conftest.$ac_ext
7516 # OK, works on sane cases. Now check whether nonexistent headers
7517 # can be detected and how.
7518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7519 /* end confdefs.h. */
7520 #include <ac_nonexistent.h>
7521 _ACEOF
7522 if ac_fn_cxx_try_cpp "$LINENO"; then :
7523 # Broken: success on invalid input.
7524 continue
7525 else
7526 # Passes both tests.
7527 ac_preproc_ok=:
7528 break
7530 rm -f conftest.err conftest.i conftest.$ac_ext
7532 done
7533 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7534 rm -f conftest.i conftest.err conftest.$ac_ext
7535 if $ac_preproc_ok; then :
7536 break
7539 done
7540 ac_cv_prog_CXXCPP=$CXXCPP
7543 CXXCPP=$ac_cv_prog_CXXCPP
7544 else
7545 ac_cv_prog_CXXCPP=$CXXCPP
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
7548 $as_echo "$CXXCPP" >&6; }
7549 ac_preproc_ok=false
7550 for ac_cxx_preproc_warn_flag in '' yes
7552 # Use a header file that comes with gcc, so configuring glibc
7553 # with a fresh cross-compiler works.
7554 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7555 # <limits.h> exists even on freestanding compilers.
7556 # On the NeXT, cc -E runs the code through the compiler's parser,
7557 # not just through cpp. "Syntax error" is here to catch this case.
7558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7559 /* end confdefs.h. */
7560 #ifdef __STDC__
7561 # include <limits.h>
7562 #else
7563 # include <assert.h>
7564 #endif
7565 Syntax error
7566 _ACEOF
7567 if ac_fn_cxx_try_cpp "$LINENO"; then :
7569 else
7570 # Broken: fails on valid input.
7571 continue
7573 rm -f conftest.err conftest.i conftest.$ac_ext
7575 # OK, works on sane cases. Now check whether nonexistent headers
7576 # can be detected and how.
7577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7578 /* end confdefs.h. */
7579 #include <ac_nonexistent.h>
7580 _ACEOF
7581 if ac_fn_cxx_try_cpp "$LINENO"; then :
7582 # Broken: success on invalid input.
7583 continue
7584 else
7585 # Passes both tests.
7586 ac_preproc_ok=:
7587 break
7589 rm -f conftest.err conftest.i conftest.$ac_ext
7591 done
7592 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7593 rm -f conftest.i conftest.err conftest.$ac_ext
7594 if $ac_preproc_ok; then :
7596 else
7597 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7598 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7599 _lt_caught_CXX_error=yes; }
7602 ac_ext=c
7603 ac_cpp='$CPP $CPPFLAGS'
7604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7608 else
7609 _lt_caught_CXX_error=yes
7616 # Set options
7621 enable_win32_dll=no
7624 # Check whether --enable-shared was given.
7625 if test "${enable_shared+set}" = set; then :
7626 enableval=$enable_shared; p=${PACKAGE-default}
7627 case $enableval in
7628 yes) enable_shared=yes ;;
7629 no) enable_shared=no ;;
7631 enable_shared=no
7632 # Look at the argument we got. We use all the common list separators.
7633 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7634 for pkg in $enableval; do
7635 IFS="$lt_save_ifs"
7636 if test "X$pkg" = "X$p"; then
7637 enable_shared=yes
7639 done
7640 IFS="$lt_save_ifs"
7642 esac
7643 else
7644 enable_shared=yes
7655 # Check whether --enable-static was given.
7656 if test "${enable_static+set}" = set; then :
7657 enableval=$enable_static; p=${PACKAGE-default}
7658 case $enableval in
7659 yes) enable_static=yes ;;
7660 no) enable_static=no ;;
7662 enable_static=no
7663 # Look at the argument we got. We use all the common list separators.
7664 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7665 for pkg in $enableval; do
7666 IFS="$lt_save_ifs"
7667 if test "X$pkg" = "X$p"; then
7668 enable_static=yes
7670 done
7671 IFS="$lt_save_ifs"
7673 esac
7674 else
7675 enable_static=yes
7687 # Check whether --with-pic was given.
7688 if test "${with_pic+set}" = set; then :
7689 withval=$with_pic; pic_mode="$withval"
7690 else
7691 pic_mode=default
7695 test -z "$pic_mode" && pic_mode=default
7703 # Check whether --enable-fast-install was given.
7704 if test "${enable_fast_install+set}" = set; then :
7705 enableval=$enable_fast_install; p=${PACKAGE-default}
7706 case $enableval in
7707 yes) enable_fast_install=yes ;;
7708 no) enable_fast_install=no ;;
7710 enable_fast_install=no
7711 # Look at the argument we got. We use all the common list separators.
7712 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7713 for pkg in $enableval; do
7714 IFS="$lt_save_ifs"
7715 if test "X$pkg" = "X$p"; then
7716 enable_fast_install=yes
7718 done
7719 IFS="$lt_save_ifs"
7721 esac
7722 else
7723 enable_fast_install=yes
7736 # This can be used to rebuild libtool when needed
7737 LIBTOOL_DEPS="$ltmain"
7739 # Always use our own libtool.
7740 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7766 test -z "$LN_S" && LN_S="ln -s"
7781 if test -n "${ZSH_VERSION+set}" ; then
7782 setopt NO_GLOB_SUBST
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7786 $as_echo_n "checking for objdir... " >&6; }
7787 if test "${lt_cv_objdir+set}" = set; then :
7788 $as_echo_n "(cached) " >&6
7789 else
7790 rm -f .libs 2>/dev/null
7791 mkdir .libs 2>/dev/null
7792 if test -d .libs; then
7793 lt_cv_objdir=.libs
7794 else
7795 # MS-DOS does not allow filenames that begin with a dot.
7796 lt_cv_objdir=_libs
7798 rmdir .libs 2>/dev/null
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7801 $as_echo "$lt_cv_objdir" >&6; }
7802 objdir=$lt_cv_objdir
7808 cat >>confdefs.h <<_ACEOF
7809 #define LT_OBJDIR "$lt_cv_objdir/"
7810 _ACEOF
7828 case $host_os in
7829 aix3*)
7830 # AIX sometimes has problems with the GCC collect2 program. For some
7831 # reason, if we set the COLLECT_NAMES environment variable, the problems
7832 # vanish in a puff of smoke.
7833 if test "X${COLLECT_NAMES+set}" != Xset; then
7834 COLLECT_NAMES=
7835 export COLLECT_NAMES
7838 esac
7840 # Sed substitution that helps us do robust quoting. It backslashifies
7841 # metacharacters that are still active within double-quoted strings.
7842 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7844 # Same as above, but do not quote variable references.
7845 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7847 # Sed substitution to delay expansion of an escaped shell variable in a
7848 # double_quote_subst'ed string.
7849 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7851 # Sed substitution to delay expansion of an escaped single quote.
7852 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7854 # Sed substitution to avoid accidental globbing in evaled expressions
7855 no_glob_subst='s/\*/\\\*/g'
7857 # Global variables:
7858 ofile=libtool
7859 can_build_shared=yes
7861 # All known linkers require a `.a' archive for static linking (except MSVC,
7862 # which needs '.lib').
7863 libext=a
7865 with_gnu_ld="$lt_cv_prog_gnu_ld"
7867 old_CC="$CC"
7868 old_CFLAGS="$CFLAGS"
7870 # Set sane defaults for various variables
7871 test -z "$CC" && CC=cc
7872 test -z "$LTCC" && LTCC=$CC
7873 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7874 test -z "$LD" && LD=ld
7875 test -z "$ac_objext" && ac_objext=o
7877 for cc_temp in $compiler""; do
7878 case $cc_temp in
7879 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7880 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7881 \-*) ;;
7882 *) break;;
7883 esac
7884 done
7885 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7888 # Only perform the check for file, if the check method requires it
7889 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7890 case $deplibs_check_method in
7891 file_magic*)
7892 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7894 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7895 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7896 $as_echo_n "(cached) " >&6
7897 else
7898 case $MAGIC_CMD in
7899 [\\/*] | ?:[\\/]*)
7900 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7903 lt_save_MAGIC_CMD="$MAGIC_CMD"
7904 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7905 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7906 for ac_dir in $ac_dummy; do
7907 IFS="$lt_save_ifs"
7908 test -z "$ac_dir" && ac_dir=.
7909 if test -f $ac_dir/${ac_tool_prefix}file; then
7910 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7911 if test -n "$file_magic_test_file"; then
7912 case $deplibs_check_method in
7913 "file_magic "*)
7914 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7915 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7916 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7917 $EGREP "$file_magic_regex" > /dev/null; then
7919 else
7920 cat <<_LT_EOF 1>&2
7922 *** Warning: the command libtool uses to detect shared libraries,
7923 *** $file_magic_cmd, produces output that libtool cannot recognize.
7924 *** The result is that libtool may fail to recognize shared libraries
7925 *** as such. This will affect the creation of libtool libraries that
7926 *** depend on shared libraries, but programs linked with such libtool
7927 *** libraries will work regardless of this problem. Nevertheless, you
7928 *** may want to report the problem to your system manager and/or to
7929 *** bug-libtool@gnu.org
7931 _LT_EOF
7932 fi ;;
7933 esac
7935 break
7937 done
7938 IFS="$lt_save_ifs"
7939 MAGIC_CMD="$lt_save_MAGIC_CMD"
7941 esac
7944 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7945 if test -n "$MAGIC_CMD"; then
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7947 $as_echo "$MAGIC_CMD" >&6; }
7948 else
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7950 $as_echo "no" >&6; }
7957 if test -z "$lt_cv_path_MAGIC_CMD"; then
7958 if test -n "$ac_tool_prefix"; then
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7960 $as_echo_n "checking for file... " >&6; }
7961 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7962 $as_echo_n "(cached) " >&6
7963 else
7964 case $MAGIC_CMD in
7965 [\\/*] | ?:[\\/]*)
7966 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7969 lt_save_MAGIC_CMD="$MAGIC_CMD"
7970 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7971 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7972 for ac_dir in $ac_dummy; do
7973 IFS="$lt_save_ifs"
7974 test -z "$ac_dir" && ac_dir=.
7975 if test -f $ac_dir/file; then
7976 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7977 if test -n "$file_magic_test_file"; then
7978 case $deplibs_check_method in
7979 "file_magic "*)
7980 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7981 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7982 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7983 $EGREP "$file_magic_regex" > /dev/null; then
7985 else
7986 cat <<_LT_EOF 1>&2
7988 *** Warning: the command libtool uses to detect shared libraries,
7989 *** $file_magic_cmd, produces output that libtool cannot recognize.
7990 *** The result is that libtool may fail to recognize shared libraries
7991 *** as such. This will affect the creation of libtool libraries that
7992 *** depend on shared libraries, but programs linked with such libtool
7993 *** libraries will work regardless of this problem. Nevertheless, you
7994 *** may want to report the problem to your system manager and/or to
7995 *** bug-libtool@gnu.org
7997 _LT_EOF
7998 fi ;;
7999 esac
8001 break
8003 done
8004 IFS="$lt_save_ifs"
8005 MAGIC_CMD="$lt_save_MAGIC_CMD"
8007 esac
8010 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8011 if test -n "$MAGIC_CMD"; then
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8013 $as_echo "$MAGIC_CMD" >&6; }
8014 else
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8016 $as_echo "no" >&6; }
8020 else
8021 MAGIC_CMD=:
8027 esac
8029 # Use C for the default configuration in the libtool script
8031 lt_save_CC="$CC"
8032 ac_ext=c
8033 ac_cpp='$CPP $CPPFLAGS'
8034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8039 # Source file extension for C test sources.
8040 ac_ext=c
8042 # Object file extension for compiled C test sources.
8043 objext=o
8044 objext=$objext
8046 # Code to be used in simple compile tests
8047 lt_simple_compile_test_code="int some_variable = 0;"
8049 # Code to be used in simple link tests
8050 lt_simple_link_test_code='int main(){return(0);}'
8058 # If no C compiler was specified, use CC.
8059 LTCC=${LTCC-"$CC"}
8061 # If no C compiler flags were specified, use CFLAGS.
8062 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8064 # Allow CC to be a program name with arguments.
8065 compiler=$CC
8067 # Save the default compiler, since it gets overwritten when the other
8068 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8069 compiler_DEFAULT=$CC
8071 # save warnings/boilerplate of simple test code
8072 ac_outfile=conftest.$ac_objext
8073 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8074 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8075 _lt_compiler_boilerplate=`cat conftest.err`
8076 $RM conftest*
8078 ac_outfile=conftest.$ac_objext
8079 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8080 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8081 _lt_linker_boilerplate=`cat conftest.err`
8082 $RM -r conftest*
8085 if test -n "$compiler"; then
8087 lt_prog_compiler_no_builtin_flag=
8089 if test "$GCC" = yes; then
8090 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8093 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8094 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8095 $as_echo_n "(cached) " >&6
8096 else
8097 lt_cv_prog_compiler_rtti_exceptions=no
8098 ac_outfile=conftest.$ac_objext
8099 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8100 lt_compiler_flag="-fno-rtti -fno-exceptions"
8101 # Insert the option either (1) after the last *FLAGS variable, or
8102 # (2) before a word containing "conftest.", or (3) at the end.
8103 # Note that $ac_compile itself does not contain backslashes and begins
8104 # with a dollar sign (not a hyphen), so the echo should work correctly.
8105 # The option is referenced via a variable to avoid confusing sed.
8106 lt_compile=`echo "$ac_compile" | $SED \
8107 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8108 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8109 -e 's:$: $lt_compiler_flag:'`
8110 (eval echo "\"\$as_me:8110: $lt_compile\"" >&5)
8111 (eval "$lt_compile" 2>conftest.err)
8112 ac_status=$?
8113 cat conftest.err >&5
8114 echo "$as_me:8114: \$? = $ac_status" >&5
8115 if (exit $ac_status) && test -s "$ac_outfile"; then
8116 # The compiler can only warn and ignore the option if not recognized
8117 # So say no if there are warnings other than the usual output.
8118 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8119 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8120 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8121 lt_cv_prog_compiler_rtti_exceptions=yes
8124 $RM conftest*
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8128 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8130 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8131 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8132 else
8143 lt_prog_compiler_wl=
8144 lt_prog_compiler_pic=
8145 lt_prog_compiler_static=
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8148 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8150 if test "$GCC" = yes; then
8151 lt_prog_compiler_wl='-Wl,'
8152 lt_prog_compiler_static='-static'
8154 case $host_os in
8155 aix*)
8156 # All AIX code is PIC.
8157 if test "$host_cpu" = ia64; then
8158 # AIX 5 now supports IA64 processor
8159 lt_prog_compiler_static='-Bstatic'
8163 amigaos*)
8164 case $host_cpu in
8165 powerpc)
8166 # see comment about AmigaOS4 .so support
8167 lt_prog_compiler_pic='-fPIC'
8169 m68k)
8170 # FIXME: we need at least 68020 code to build shared libraries, but
8171 # adding the `-m68020' flag to GCC prevents building anything better,
8172 # like `-m68040'.
8173 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8175 esac
8178 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8179 # PIC is the default for these OSes.
8182 mingw* | cygwin* | pw32* | os2* | cegcc*)
8183 # This hack is so that the source file can tell whether it is being
8184 # built for inclusion in a dll (and should export symbols for example).
8185 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8186 # (--disable-auto-import) libraries
8187 lt_prog_compiler_pic='-DDLL_EXPORT'
8190 darwin* | rhapsody*)
8191 # PIC is the default on this platform
8192 # Common symbols not allowed in MH_DYLIB files
8193 lt_prog_compiler_pic='-fno-common'
8196 hpux*)
8197 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8198 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8199 # sets the default TLS model and affects inlining.
8200 case $host_cpu in
8201 hppa*64*)
8202 # +Z the default
8205 lt_prog_compiler_pic='-fPIC'
8207 esac
8210 interix[3-9]*)
8211 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8212 # Instead, we relocate shared libraries at runtime.
8215 msdosdjgpp*)
8216 # Just because we use GCC doesn't mean we suddenly get shared libraries
8217 # on systems that don't support them.
8218 lt_prog_compiler_can_build_shared=no
8219 enable_shared=no
8222 *nto* | *qnx*)
8223 # QNX uses GNU C++, but need to define -shared option too, otherwise
8224 # it will coredump.
8225 lt_prog_compiler_pic='-fPIC -shared'
8228 sysv4*MP*)
8229 if test -d /usr/nec; then
8230 lt_prog_compiler_pic=-Kconform_pic
8235 lt_prog_compiler_pic='-fPIC'
8237 esac
8238 else
8239 # PORTME Check for flag to pass linker flags through the system compiler.
8240 case $host_os in
8241 aix*)
8242 lt_prog_compiler_wl='-Wl,'
8243 if test "$host_cpu" = ia64; then
8244 # AIX 5 now supports IA64 processor
8245 lt_prog_compiler_static='-Bstatic'
8246 else
8247 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8251 mingw* | cygwin* | pw32* | os2* | cegcc*)
8252 # This hack is so that the source file can tell whether it is being
8253 # built for inclusion in a dll (and should export symbols for example).
8254 lt_prog_compiler_pic='-DDLL_EXPORT'
8257 hpux9* | hpux10* | hpux11*)
8258 lt_prog_compiler_wl='-Wl,'
8259 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8260 # not for PA HP-UX.
8261 case $host_cpu in
8262 hppa*64*|ia64*)
8263 # +Z the default
8266 lt_prog_compiler_pic='+Z'
8268 esac
8269 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8270 lt_prog_compiler_static='${wl}-a ${wl}archive'
8273 irix5* | irix6* | nonstopux*)
8274 lt_prog_compiler_wl='-Wl,'
8275 # PIC (with -KPIC) is the default.
8276 lt_prog_compiler_static='-non_shared'
8279 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8280 case $cc_basename in
8281 # old Intel for x86_64 which still supported -KPIC.
8282 ecc*)
8283 lt_prog_compiler_wl='-Wl,'
8284 lt_prog_compiler_pic='-KPIC'
8285 lt_prog_compiler_static='-static'
8287 # icc used to be incompatible with GCC.
8288 # ICC 10 doesn't accept -KPIC any more.
8289 icc* | ifort*)
8290 lt_prog_compiler_wl='-Wl,'
8291 lt_prog_compiler_pic='-fPIC'
8292 lt_prog_compiler_static='-static'
8294 # Lahey Fortran 8.1.
8295 lf95*)
8296 lt_prog_compiler_wl='-Wl,'
8297 lt_prog_compiler_pic='--shared'
8298 lt_prog_compiler_static='--static'
8300 pgcc* | pgf77* | pgf90* | pgf95*)
8301 # Portland Group compilers (*not* the Pentium gcc compiler,
8302 # which looks to be a dead project)
8303 lt_prog_compiler_wl='-Wl,'
8304 lt_prog_compiler_pic='-fpic'
8305 lt_prog_compiler_static='-Bstatic'
8307 ccc*)
8308 lt_prog_compiler_wl='-Wl,'
8309 # All Alpha code is PIC.
8310 lt_prog_compiler_static='-non_shared'
8312 xl*)
8313 # IBM XL C 8.0/Fortran 10.1 on PPC
8314 lt_prog_compiler_wl='-Wl,'
8315 lt_prog_compiler_pic='-qpic'
8316 lt_prog_compiler_static='-qstaticlink'
8319 case `$CC -V 2>&1 | sed 5q` in
8320 *Sun\ C*)
8321 # Sun C 5.9
8322 lt_prog_compiler_pic='-KPIC'
8323 lt_prog_compiler_static='-Bstatic'
8324 lt_prog_compiler_wl='-Wl,'
8326 *Sun\ F*)
8327 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8328 lt_prog_compiler_pic='-KPIC'
8329 lt_prog_compiler_static='-Bstatic'
8330 lt_prog_compiler_wl=''
8332 esac
8334 esac
8337 newsos6)
8338 lt_prog_compiler_pic='-KPIC'
8339 lt_prog_compiler_static='-Bstatic'
8342 *nto* | *qnx*)
8343 # QNX uses GNU C++, but need to define -shared option too, otherwise
8344 # it will coredump.
8345 lt_prog_compiler_pic='-fPIC -shared'
8348 osf3* | osf4* | osf5*)
8349 lt_prog_compiler_wl='-Wl,'
8350 # All OSF/1 code is PIC.
8351 lt_prog_compiler_static='-non_shared'
8354 rdos*)
8355 lt_prog_compiler_static='-non_shared'
8358 solaris*)
8359 lt_prog_compiler_pic='-KPIC'
8360 lt_prog_compiler_static='-Bstatic'
8361 case $cc_basename in
8362 f77* | f90* | f95*)
8363 lt_prog_compiler_wl='-Qoption ld ';;
8365 lt_prog_compiler_wl='-Wl,';;
8366 esac
8369 sunos4*)
8370 lt_prog_compiler_wl='-Qoption ld '
8371 lt_prog_compiler_pic='-PIC'
8372 lt_prog_compiler_static='-Bstatic'
8375 sysv4 | sysv4.2uw2* | sysv4.3*)
8376 lt_prog_compiler_wl='-Wl,'
8377 lt_prog_compiler_pic='-KPIC'
8378 lt_prog_compiler_static='-Bstatic'
8381 sysv4*MP*)
8382 if test -d /usr/nec ;then
8383 lt_prog_compiler_pic='-Kconform_pic'
8384 lt_prog_compiler_static='-Bstatic'
8388 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8389 lt_prog_compiler_wl='-Wl,'
8390 lt_prog_compiler_pic='-KPIC'
8391 lt_prog_compiler_static='-Bstatic'
8394 unicos*)
8395 lt_prog_compiler_wl='-Wl,'
8396 lt_prog_compiler_can_build_shared=no
8399 uts4*)
8400 lt_prog_compiler_pic='-pic'
8401 lt_prog_compiler_static='-Bstatic'
8405 lt_prog_compiler_can_build_shared=no
8407 esac
8410 case $host_os in
8411 # For platforms which do not support PIC, -DPIC is meaningless:
8412 *djgpp*)
8413 lt_prog_compiler_pic=
8416 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8418 esac
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8420 $as_echo "$lt_prog_compiler_pic" >&6; }
8428 # Check to make sure the PIC flag actually works.
8430 if test -n "$lt_prog_compiler_pic"; then
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8432 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8433 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8434 $as_echo_n "(cached) " >&6
8435 else
8436 lt_cv_prog_compiler_pic_works=no
8437 ac_outfile=conftest.$ac_objext
8438 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8439 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8440 # Insert the option either (1) after the last *FLAGS variable, or
8441 # (2) before a word containing "conftest.", or (3) at the end.
8442 # Note that $ac_compile itself does not contain backslashes and begins
8443 # with a dollar sign (not a hyphen), so the echo should work correctly.
8444 # The option is referenced via a variable to avoid confusing sed.
8445 lt_compile=`echo "$ac_compile" | $SED \
8446 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8447 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8448 -e 's:$: $lt_compiler_flag:'`
8449 (eval echo "\"\$as_me:8449: $lt_compile\"" >&5)
8450 (eval "$lt_compile" 2>conftest.err)
8451 ac_status=$?
8452 cat conftest.err >&5
8453 echo "$as_me:8453: \$? = $ac_status" >&5
8454 if (exit $ac_status) && test -s "$ac_outfile"; then
8455 # The compiler can only warn and ignore the option if not recognized
8456 # So say no if there are warnings other than the usual output.
8457 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8458 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8459 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8460 lt_cv_prog_compiler_pic_works=yes
8463 $RM conftest*
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8467 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8469 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8470 case $lt_prog_compiler_pic in
8471 "" | " "*) ;;
8472 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8473 esac
8474 else
8475 lt_prog_compiler_pic=
8476 lt_prog_compiler_can_build_shared=no
8487 # Check to make sure the static flag actually works.
8489 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8491 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8492 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8493 $as_echo_n "(cached) " >&6
8494 else
8495 lt_cv_prog_compiler_static_works=no
8496 save_LDFLAGS="$LDFLAGS"
8497 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8498 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8499 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8500 # The linker can only warn and ignore the option if not recognized
8501 # So say no if there are warnings
8502 if test -s conftest.err; then
8503 # Append any errors to the config.log.
8504 cat conftest.err 1>&5
8505 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8506 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8507 if diff conftest.exp conftest.er2 >/dev/null; then
8508 lt_cv_prog_compiler_static_works=yes
8510 else
8511 lt_cv_prog_compiler_static_works=yes
8514 $RM -r conftest*
8515 LDFLAGS="$save_LDFLAGS"
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8519 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8521 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8523 else
8524 lt_prog_compiler_static=
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8534 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8535 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8536 $as_echo_n "(cached) " >&6
8537 else
8538 lt_cv_prog_compiler_c_o=no
8539 $RM -r conftest 2>/dev/null
8540 mkdir conftest
8541 cd conftest
8542 mkdir out
8543 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8545 lt_compiler_flag="-o out/conftest2.$ac_objext"
8546 # Insert the option either (1) after the last *FLAGS variable, or
8547 # (2) before a word containing "conftest.", or (3) at the end.
8548 # Note that $ac_compile itself does not contain backslashes and begins
8549 # with a dollar sign (not a hyphen), so the echo should work correctly.
8550 lt_compile=`echo "$ac_compile" | $SED \
8551 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8552 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8553 -e 's:$: $lt_compiler_flag:'`
8554 (eval echo "\"\$as_me:8554: $lt_compile\"" >&5)
8555 (eval "$lt_compile" 2>out/conftest.err)
8556 ac_status=$?
8557 cat out/conftest.err >&5
8558 echo "$as_me:8558: \$? = $ac_status" >&5
8559 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8560 then
8561 # The compiler can only warn and ignore the option if not recognized
8562 # So say no if there are warnings
8563 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8564 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8565 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8566 lt_cv_prog_compiler_c_o=yes
8569 chmod u+w . 2>&5
8570 $RM conftest*
8571 # SGI C++ compiler will create directory out/ii_files/ for
8572 # template instantiation
8573 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8574 $RM out/* && rmdir out
8575 cd ..
8576 $RM -r conftest
8577 $RM conftest*
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8581 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8589 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8590 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8591 $as_echo_n "(cached) " >&6
8592 else
8593 lt_cv_prog_compiler_c_o=no
8594 $RM -r conftest 2>/dev/null
8595 mkdir conftest
8596 cd conftest
8597 mkdir out
8598 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8600 lt_compiler_flag="-o out/conftest2.$ac_objext"
8601 # Insert the option either (1) after the last *FLAGS variable, or
8602 # (2) before a word containing "conftest.", or (3) at the end.
8603 # Note that $ac_compile itself does not contain backslashes and begins
8604 # with a dollar sign (not a hyphen), so the echo should work correctly.
8605 lt_compile=`echo "$ac_compile" | $SED \
8606 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8607 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8608 -e 's:$: $lt_compiler_flag:'`
8609 (eval echo "\"\$as_me:8609: $lt_compile\"" >&5)
8610 (eval "$lt_compile" 2>out/conftest.err)
8611 ac_status=$?
8612 cat out/conftest.err >&5
8613 echo "$as_me:8613: \$? = $ac_status" >&5
8614 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8615 then
8616 # The compiler can only warn and ignore the option if not recognized
8617 # So say no if there are warnings
8618 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8619 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8620 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8621 lt_cv_prog_compiler_c_o=yes
8624 chmod u+w . 2>&5
8625 $RM conftest*
8626 # SGI C++ compiler will create directory out/ii_files/ for
8627 # template instantiation
8628 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8629 $RM out/* && rmdir out
8630 cd ..
8631 $RM -r conftest
8632 $RM conftest*
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8636 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8641 hard_links="nottested"
8642 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8643 # do not overwrite the value of need_locks provided by the user
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8645 $as_echo_n "checking if we can lock with hard links... " >&6; }
8646 hard_links=yes
8647 $RM conftest*
8648 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8649 touch conftest.a
8650 ln conftest.a conftest.b 2>&5 || hard_links=no
8651 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8653 $as_echo "$hard_links" >&6; }
8654 if test "$hard_links" = no; then
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8656 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8657 need_locks=warn
8659 else
8660 need_locks=no
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8669 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8671 runpath_var=
8672 allow_undefined_flag=
8673 always_export_symbols=no
8674 archive_cmds=
8675 archive_expsym_cmds=
8676 compiler_needs_object=no
8677 enable_shared_with_static_runtimes=no
8678 export_dynamic_flag_spec=
8679 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8680 hardcode_automatic=no
8681 hardcode_direct=no
8682 hardcode_direct_absolute=no
8683 hardcode_libdir_flag_spec=
8684 hardcode_libdir_flag_spec_ld=
8685 hardcode_libdir_separator=
8686 hardcode_minus_L=no
8687 hardcode_shlibpath_var=unsupported
8688 inherit_rpath=no
8689 link_all_deplibs=unknown
8690 module_cmds=
8691 module_expsym_cmds=
8692 old_archive_from_new_cmds=
8693 old_archive_from_expsyms_cmds=
8694 thread_safe_flag_spec=
8695 whole_archive_flag_spec=
8696 # include_expsyms should be a list of space-separated symbols to be *always*
8697 # included in the symbol list
8698 include_expsyms=
8699 # exclude_expsyms can be an extended regexp of symbols to exclude
8700 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8701 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8702 # as well as any symbol that contains `d'.
8703 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8704 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8705 # platforms (ab)use it in PIC code, but their linkers get confused if
8706 # the symbol is explicitly referenced. Since portable code cannot
8707 # rely on this symbol name, it's probably fine to never include it in
8708 # preloaded symbol tables.
8709 # Exclude shared library initialization/finalization symbols.
8710 extract_expsyms_cmds=
8712 case $host_os in
8713 cygwin* | mingw* | pw32* | cegcc*)
8714 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8715 # When not using gcc, we currently assume that we are using
8716 # Microsoft Visual C++.
8717 if test "$GCC" != yes; then
8718 with_gnu_ld=no
8721 interix*)
8722 # we just hope/assume this is gcc and not c89 (= MSVC++)
8723 with_gnu_ld=yes
8725 openbsd*)
8726 with_gnu_ld=no
8728 linux* | k*bsd*-gnu)
8729 link_all_deplibs=no
8731 esac
8733 ld_shlibs=yes
8734 if test "$with_gnu_ld" = yes; then
8735 # If archive_cmds runs LD, not CC, wlarc should be empty
8736 wlarc='${wl}'
8738 # Set some defaults for GNU ld with shared library support. These
8739 # are reset later if shared libraries are not supported. Putting them
8740 # here allows them to be overridden if necessary.
8741 runpath_var=LD_RUN_PATH
8742 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8743 export_dynamic_flag_spec='${wl}--export-dynamic'
8744 # ancient GNU ld didn't support --whole-archive et. al.
8745 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8746 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8747 else
8748 whole_archive_flag_spec=
8750 supports_anon_versioning=no
8751 case `$LD -v 2>&1` in
8752 *GNU\ gold*) supports_anon_versioning=yes ;;
8753 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8754 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8755 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8756 *\ 2.11.*) ;; # other 2.11 versions
8757 *) supports_anon_versioning=yes ;;
8758 esac
8760 # See if GNU ld supports shared libraries.
8761 case $host_os in
8762 aix[3-9]*)
8763 # On AIX/PPC, the GNU linker is very broken
8764 if test "$host_cpu" != ia64; then
8765 ld_shlibs=no
8766 cat <<_LT_EOF 1>&2
8768 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8769 *** to be unable to reliably create shared libraries on AIX.
8770 *** Therefore, libtool is disabling shared libraries support. If you
8771 *** really care for shared libraries, you may want to modify your PATH
8772 *** so that a non-GNU linker is found, and then restart.
8774 _LT_EOF
8778 amigaos*)
8779 case $host_cpu in
8780 powerpc)
8781 # see comment about AmigaOS4 .so support
8782 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8783 archive_expsym_cmds=''
8785 m68k)
8786 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)'
8787 hardcode_libdir_flag_spec='-L$libdir'
8788 hardcode_minus_L=yes
8790 esac
8793 beos*)
8794 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8795 allow_undefined_flag=unsupported
8796 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8797 # support --undefined. This deserves some investigation. FIXME
8798 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8799 else
8800 ld_shlibs=no
8804 cygwin* | mingw* | pw32* | cegcc*)
8805 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8806 # as there is no search path for DLLs.
8807 hardcode_libdir_flag_spec='-L$libdir'
8808 allow_undefined_flag=unsupported
8809 always_export_symbols=no
8810 enable_shared_with_static_runtimes=yes
8811 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8813 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8814 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8815 # If the export-symbols file already is a .def file (1st line
8816 # is EXPORTS), use it as is; otherwise, prepend...
8817 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8818 cp $export_symbols $output_objdir/$soname.def;
8819 else
8820 echo EXPORTS > $output_objdir/$soname.def;
8821 cat $export_symbols >> $output_objdir/$soname.def;
8823 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8824 else
8825 ld_shlibs=no
8829 interix[3-9]*)
8830 hardcode_direct=no
8831 hardcode_shlibpath_var=no
8832 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8833 export_dynamic_flag_spec='${wl}-E'
8834 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8835 # Instead, shared libraries are loaded at an image base (0x10000000 by
8836 # default) and relocated if they conflict, which is a slow very memory
8837 # consuming and fragmenting process. To avoid this, we pick a random,
8838 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8839 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8840 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8841 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'
8844 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8845 tmp_diet=no
8846 if test "$host_os" = linux-dietlibc; then
8847 case $cc_basename in
8848 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8849 esac
8851 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8852 && test "$tmp_diet" = no
8853 then
8854 tmp_addflag=
8855 tmp_sharedflag='-shared'
8856 case $cc_basename,$host_cpu in
8857 pgcc*) # Portland Group C compiler
8858 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'
8859 tmp_addflag=' $pic_flag'
8861 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8862 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'
8863 tmp_addflag=' $pic_flag -Mnomain' ;;
8864 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8865 tmp_addflag=' -i_dynamic' ;;
8866 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8867 tmp_addflag=' -i_dynamic -nofor_main' ;;
8868 ifc* | ifort*) # Intel Fortran compiler
8869 tmp_addflag=' -nofor_main' ;;
8870 lf95*) # Lahey Fortran 8.1
8871 whole_archive_flag_spec=
8872 tmp_sharedflag='--shared' ;;
8873 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8874 tmp_sharedflag='-qmkshrobj'
8875 tmp_addflag= ;;
8876 esac
8877 case `$CC -V 2>&1 | sed 5q` in
8878 *Sun\ C*) # Sun C 5.9
8879 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'
8880 compiler_needs_object=yes
8881 tmp_sharedflag='-G' ;;
8882 *Sun\ F*) # Sun Fortran 8.3
8883 tmp_sharedflag='-G' ;;
8884 esac
8885 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8887 if test "x$supports_anon_versioning" = xyes; then
8888 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8889 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8890 echo "local: *; };" >> $output_objdir/$libname.ver~
8891 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8894 case $cc_basename in
8895 xlf*)
8896 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8897 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8898 hardcode_libdir_flag_spec=
8899 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8900 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8901 if test "x$supports_anon_versioning" = xyes; then
8902 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8903 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8904 echo "local: *; };" >> $output_objdir/$libname.ver~
8905 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8908 esac
8909 else
8910 ld_shlibs=no
8914 netbsd* | netbsdelf*-gnu)
8915 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8916 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8917 wlarc=
8918 else
8919 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8920 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8924 solaris*)
8925 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8926 ld_shlibs=no
8927 cat <<_LT_EOF 1>&2
8929 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8930 *** create shared libraries on Solaris systems. Therefore, libtool
8931 *** is disabling shared libraries support. We urge you to upgrade GNU
8932 *** binutils to release 2.9.1 or newer. Another option is to modify
8933 *** your PATH or compiler configuration so that the native linker is
8934 *** used, and then restart.
8936 _LT_EOF
8937 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8938 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8939 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8940 else
8941 ld_shlibs=no
8945 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8946 case `$LD -v 2>&1` in
8947 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8948 ld_shlibs=no
8949 cat <<_LT_EOF 1>&2
8951 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8952 *** reliably create shared libraries on SCO systems. Therefore, libtool
8953 *** is disabling shared libraries support. We urge you to upgrade GNU
8954 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8955 *** your PATH or compiler configuration so that the native linker is
8956 *** used, and then restart.
8958 _LT_EOF
8961 # For security reasons, it is highly recommended that you always
8962 # use absolute paths for naming shared libraries, and exclude the
8963 # DT_RUNPATH tag from executables and libraries. But doing so
8964 # requires that you compile everything twice, which is a pain.
8965 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8966 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8967 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8968 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8969 else
8970 ld_shlibs=no
8973 esac
8976 sunos4*)
8977 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8978 wlarc=
8979 hardcode_direct=yes
8980 hardcode_shlibpath_var=no
8984 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8985 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8986 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8987 else
8988 ld_shlibs=no
8991 esac
8993 if test "$ld_shlibs" = no; then
8994 runpath_var=
8995 hardcode_libdir_flag_spec=
8996 export_dynamic_flag_spec=
8997 whole_archive_flag_spec=
8999 else
9000 # PORTME fill in a description of your system's linker (not GNU ld)
9001 case $host_os in
9002 aix3*)
9003 allow_undefined_flag=unsupported
9004 always_export_symbols=yes
9005 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'
9006 # Note: this linker hardcodes the directories in LIBPATH if there
9007 # are no directories specified by -L.
9008 hardcode_minus_L=yes
9009 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9010 # Neither direct hardcoding nor static linking is supported with a
9011 # broken collect2.
9012 hardcode_direct=unsupported
9016 aix[4-9]*)
9017 if test "$host_cpu" = ia64; then
9018 # On IA64, the linker does run time linking by default, so we don't
9019 # have to do anything special.
9020 aix_use_runtimelinking=no
9021 exp_sym_flag='-Bexport'
9022 no_entry_flag=""
9023 else
9024 # If we're using GNU nm, then we don't want the "-C" option.
9025 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9026 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9027 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'
9028 else
9029 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'
9031 aix_use_runtimelinking=no
9033 # Test if we are trying to use run time linking or normal
9034 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9035 # need to do runtime linking.
9036 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9037 for ld_flag in $LDFLAGS; do
9038 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9039 aix_use_runtimelinking=yes
9040 break
9042 done
9044 esac
9046 exp_sym_flag='-bexport'
9047 no_entry_flag='-bnoentry'
9050 # When large executables or shared objects are built, AIX ld can
9051 # have problems creating the table of contents. If linking a library
9052 # or program results in "error TOC overflow" add -mminimal-toc to
9053 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9054 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9056 archive_cmds=''
9057 hardcode_direct=yes
9058 hardcode_direct_absolute=yes
9059 hardcode_libdir_separator=':'
9060 link_all_deplibs=yes
9061 file_list_spec='${wl}-f,'
9063 if test "$GCC" = yes; then
9064 case $host_os in aix4.[012]|aix4.[012].*)
9065 # We only want to do this on AIX 4.2 and lower, the check
9066 # below for broken collect2 doesn't work under 4.3+
9067 collect2name=`${CC} -print-prog-name=collect2`
9068 if test -f "$collect2name" &&
9069 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9070 then
9071 # We have reworked collect2
9073 else
9074 # We have old collect2
9075 hardcode_direct=unsupported
9076 # It fails to find uninstalled libraries when the uninstalled
9077 # path is not listed in the libpath. Setting hardcode_minus_L
9078 # to unsupported forces relinking
9079 hardcode_minus_L=yes
9080 hardcode_libdir_flag_spec='-L$libdir'
9081 hardcode_libdir_separator=
9084 esac
9085 shared_flag='-shared'
9086 if test "$aix_use_runtimelinking" = yes; then
9087 shared_flag="$shared_flag "'${wl}-G'
9089 link_all_deplibs=no
9090 else
9091 # not using gcc
9092 if test "$host_cpu" = ia64; then
9093 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9094 # chokes on -Wl,-G. The following line is correct:
9095 shared_flag='-G'
9096 else
9097 if test "$aix_use_runtimelinking" = yes; then
9098 shared_flag='${wl}-G'
9099 else
9100 shared_flag='${wl}-bM:SRE'
9105 export_dynamic_flag_spec='${wl}-bexpall'
9106 # It seems that -bexpall does not export symbols beginning with
9107 # underscore (_), so it is better to generate a list of symbols to export.
9108 always_export_symbols=yes
9109 if test "$aix_use_runtimelinking" = yes; then
9110 # Warning - without using the other runtime loading flags (-brtl),
9111 # -berok will link without error, but may produce a broken library.
9112 allow_undefined_flag='-berok'
9113 # Determine the default libpath from the value encoded in an
9114 # empty executable.
9115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9116 /* end confdefs.h. */
9119 main ()
9123 return 0;
9125 _ACEOF
9126 if ac_fn_c_try_link "$LINENO"; then :
9128 lt_aix_libpath_sed='
9129 /Import File Strings/,/^$/ {
9130 /^0/ {
9131 s/^0 *\(.*\)$/\1/
9135 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9136 # Check for a 64-bit object if we didn't find anything.
9137 if test -z "$aix_libpath"; then
9138 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9141 rm -f core conftest.err conftest.$ac_objext \
9142 conftest$ac_exeext conftest.$ac_ext
9143 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9145 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9146 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"
9147 else
9148 if test "$host_cpu" = ia64; then
9149 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9150 allow_undefined_flag="-z nodefs"
9151 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"
9152 else
9153 # Determine the default libpath from the value encoded in an
9154 # empty executable.
9155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9156 /* end confdefs.h. */
9159 main ()
9163 return 0;
9165 _ACEOF
9166 if ac_fn_c_try_link "$LINENO"; then :
9168 lt_aix_libpath_sed='
9169 /Import File Strings/,/^$/ {
9170 /^0/ {
9171 s/^0 *\(.*\)$/\1/
9175 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9176 # Check for a 64-bit object if we didn't find anything.
9177 if test -z "$aix_libpath"; then
9178 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9181 rm -f core conftest.err conftest.$ac_objext \
9182 conftest$ac_exeext conftest.$ac_ext
9183 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9185 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9186 # Warning - without using the other run time loading flags,
9187 # -berok will link without error, but may produce a broken library.
9188 no_undefined_flag=' ${wl}-bernotok'
9189 allow_undefined_flag=' ${wl}-berok'
9190 # Exported symbols can be pulled into shared objects from archives
9191 whole_archive_flag_spec='$convenience'
9192 archive_cmds_need_lc=yes
9193 # This is similar to how AIX traditionally builds its shared libraries.
9194 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'
9199 amigaos*)
9200 case $host_cpu in
9201 powerpc)
9202 # see comment about AmigaOS4 .so support
9203 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9204 archive_expsym_cmds=''
9206 m68k)
9207 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)'
9208 hardcode_libdir_flag_spec='-L$libdir'
9209 hardcode_minus_L=yes
9211 esac
9214 bsdi[45]*)
9215 export_dynamic_flag_spec=-rdynamic
9218 cygwin* | mingw* | pw32* | cegcc*)
9219 # When not using gcc, we currently assume that we are using
9220 # Microsoft Visual C++.
9221 # hardcode_libdir_flag_spec is actually meaningless, as there is
9222 # no search path for DLLs.
9223 hardcode_libdir_flag_spec=' '
9224 allow_undefined_flag=unsupported
9225 # Tell ltmain to make .lib files, not .a files.
9226 libext=lib
9227 # Tell ltmain to make .dll files, not .so files.
9228 shrext_cmds=".dll"
9229 # FIXME: Setting linknames here is a bad hack.
9230 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9231 # The linker will automatically build a .lib file if we build a DLL.
9232 old_archive_from_new_cmds='true'
9233 # FIXME: Should let the user specify the lib program.
9234 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9235 fix_srcfile_path='`cygpath -w "$srcfile"`'
9236 enable_shared_with_static_runtimes=yes
9239 darwin* | rhapsody*)
9242 archive_cmds_need_lc=no
9243 hardcode_direct=no
9244 hardcode_automatic=yes
9245 hardcode_shlibpath_var=unsupported
9246 whole_archive_flag_spec=''
9247 link_all_deplibs=yes
9248 allow_undefined_flag="$_lt_dar_allow_undefined"
9249 case $cc_basename in
9250 ifort*) _lt_dar_can_shared=yes ;;
9251 *) _lt_dar_can_shared=$GCC ;;
9252 esac
9253 if test "$_lt_dar_can_shared" = "yes"; then
9254 output_verbose_link_cmd=echo
9255 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9256 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9257 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}"
9258 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}"
9260 else
9261 ld_shlibs=no
9266 dgux*)
9267 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9268 hardcode_libdir_flag_spec='-L$libdir'
9269 hardcode_shlibpath_var=no
9272 freebsd1*)
9273 ld_shlibs=no
9276 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9277 # support. Future versions do this automatically, but an explicit c++rt0.o
9278 # does not break anything, and helps significantly (at the cost of a little
9279 # extra space).
9280 freebsd2.2*)
9281 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9282 hardcode_libdir_flag_spec='-R$libdir'
9283 hardcode_direct=yes
9284 hardcode_shlibpath_var=no
9287 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9288 freebsd2*)
9289 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9290 hardcode_direct=yes
9291 hardcode_minus_L=yes
9292 hardcode_shlibpath_var=no
9295 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9296 freebsd* | dragonfly*)
9297 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9298 hardcode_libdir_flag_spec='-R$libdir'
9299 hardcode_direct=yes
9300 hardcode_shlibpath_var=no
9303 hpux9*)
9304 if test "$GCC" = yes; then
9305 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'
9306 else
9307 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'
9309 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9310 hardcode_libdir_separator=:
9311 hardcode_direct=yes
9313 # hardcode_minus_L: Not really in the search PATH,
9314 # but as the default location of the library.
9315 hardcode_minus_L=yes
9316 export_dynamic_flag_spec='${wl}-E'
9319 hpux10*)
9320 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9321 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9322 else
9323 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9325 if test "$with_gnu_ld" = no; then
9326 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9327 hardcode_libdir_flag_spec_ld='+b $libdir'
9328 hardcode_libdir_separator=:
9329 hardcode_direct=yes
9330 hardcode_direct_absolute=yes
9331 export_dynamic_flag_spec='${wl}-E'
9332 # hardcode_minus_L: Not really in the search PATH,
9333 # but as the default location of the library.
9334 hardcode_minus_L=yes
9338 hpux11*)
9339 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9340 case $host_cpu in
9341 hppa*64*)
9342 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9344 ia64*)
9345 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9348 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9350 esac
9351 else
9352 case $host_cpu in
9353 hppa*64*)
9354 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9356 ia64*)
9357 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9360 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9362 esac
9364 if test "$with_gnu_ld" = no; then
9365 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9366 hardcode_libdir_separator=:
9368 case $host_cpu in
9369 hppa*64*|ia64*)
9370 hardcode_direct=no
9371 hardcode_shlibpath_var=no
9374 hardcode_direct=yes
9375 hardcode_direct_absolute=yes
9376 export_dynamic_flag_spec='${wl}-E'
9378 # hardcode_minus_L: Not really in the search PATH,
9379 # but as the default location of the library.
9380 hardcode_minus_L=yes
9382 esac
9386 irix5* | irix6* | nonstopux*)
9387 if test "$GCC" = yes; then
9388 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'
9389 # Try to use the -exported_symbol ld option, if it does not
9390 # work, assume that -exports_file does not work either and
9391 # implicitly export all symbols.
9392 save_LDFLAGS="$LDFLAGS"
9393 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9395 /* end confdefs.h. */
9396 int foo(void) {}
9397 _ACEOF
9398 if ac_fn_c_try_link "$LINENO"; then :
9399 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'
9402 rm -f core conftest.err conftest.$ac_objext \
9403 conftest$ac_exeext conftest.$ac_ext
9404 LDFLAGS="$save_LDFLAGS"
9405 else
9406 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'
9407 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'
9409 archive_cmds_need_lc='no'
9410 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9411 hardcode_libdir_separator=:
9412 inherit_rpath=yes
9413 link_all_deplibs=yes
9416 netbsd* | netbsdelf*-gnu)
9417 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9418 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9419 else
9420 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9422 hardcode_libdir_flag_spec='-R$libdir'
9423 hardcode_direct=yes
9424 hardcode_shlibpath_var=no
9427 newsos6)
9428 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9429 hardcode_direct=yes
9430 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9431 hardcode_libdir_separator=:
9432 hardcode_shlibpath_var=no
9435 *nto* | *qnx*)
9438 openbsd*)
9439 if test -f /usr/libexec/ld.so; then
9440 hardcode_direct=yes
9441 hardcode_shlibpath_var=no
9442 hardcode_direct_absolute=yes
9443 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9444 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9445 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9446 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9447 export_dynamic_flag_spec='${wl}-E'
9448 else
9449 case $host_os in
9450 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9451 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9452 hardcode_libdir_flag_spec='-R$libdir'
9455 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9456 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9458 esac
9460 else
9461 ld_shlibs=no
9465 os2*)
9466 hardcode_libdir_flag_spec='-L$libdir'
9467 hardcode_minus_L=yes
9468 allow_undefined_flag=unsupported
9469 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'
9470 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9473 osf3*)
9474 if test "$GCC" = yes; then
9475 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9476 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'
9477 else
9478 allow_undefined_flag=' -expect_unresolved \*'
9479 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'
9481 archive_cmds_need_lc='no'
9482 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9483 hardcode_libdir_separator=:
9486 osf4* | osf5*) # as osf3* with the addition of -msym flag
9487 if test "$GCC" = yes; then
9488 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9489 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'
9490 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9491 else
9492 allow_undefined_flag=' -expect_unresolved \*'
9493 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'
9494 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~
9495 $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'
9497 # Both c and cxx compiler support -rpath directly
9498 hardcode_libdir_flag_spec='-rpath $libdir'
9500 archive_cmds_need_lc='no'
9501 hardcode_libdir_separator=:
9504 solaris*)
9505 no_undefined_flag=' -z defs'
9506 if test "$GCC" = yes; then
9507 wlarc='${wl}'
9508 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9509 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9510 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9511 else
9512 case `$CC -V 2>&1` in
9513 *"Compilers 5.0"*)
9514 wlarc=''
9515 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9516 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9517 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9520 wlarc='${wl}'
9521 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9522 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9523 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9525 esac
9527 hardcode_libdir_flag_spec='-R$libdir'
9528 hardcode_shlibpath_var=no
9529 case $host_os in
9530 solaris2.[0-5] | solaris2.[0-5].*) ;;
9532 # The compiler driver will combine and reorder linker options,
9533 # but understands `-z linker_flag'. GCC discards it without `$wl',
9534 # but is careful enough not to reorder.
9535 # Supported since Solaris 2.6 (maybe 2.5.1?)
9536 if test "$GCC" = yes; then
9537 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9538 else
9539 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9542 esac
9543 link_all_deplibs=yes
9546 sunos4*)
9547 if test "x$host_vendor" = xsequent; then
9548 # Use $CC to link under sequent, because it throws in some extra .o
9549 # files that make .init and .fini sections work.
9550 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9551 else
9552 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9554 hardcode_libdir_flag_spec='-L$libdir'
9555 hardcode_direct=yes
9556 hardcode_minus_L=yes
9557 hardcode_shlibpath_var=no
9560 sysv4)
9561 case $host_vendor in
9562 sni)
9563 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9564 hardcode_direct=yes # is this really true???
9566 siemens)
9567 ## LD is ld it makes a PLAMLIB
9568 ## CC just makes a GrossModule.
9569 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9570 reload_cmds='$CC -r -o $output$reload_objs'
9571 hardcode_direct=no
9573 motorola)
9574 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9575 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9577 esac
9578 runpath_var='LD_RUN_PATH'
9579 hardcode_shlibpath_var=no
9582 sysv4.3*)
9583 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9584 hardcode_shlibpath_var=no
9585 export_dynamic_flag_spec='-Bexport'
9588 sysv4*MP*)
9589 if test -d /usr/nec; then
9590 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9591 hardcode_shlibpath_var=no
9592 runpath_var=LD_RUN_PATH
9593 hardcode_runpath_var=yes
9594 ld_shlibs=yes
9598 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9599 no_undefined_flag='${wl}-z,text'
9600 archive_cmds_need_lc=no
9601 hardcode_shlibpath_var=no
9602 runpath_var='LD_RUN_PATH'
9604 if test "$GCC" = yes; then
9605 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9606 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9607 else
9608 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9609 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9613 sysv5* | sco3.2v5* | sco5v6*)
9614 # Note: We can NOT use -z defs as we might desire, because we do not
9615 # link with -lc, and that would cause any symbols used from libc to
9616 # always be unresolved, which means just about no library would
9617 # ever link correctly. If we're not using GNU ld we use -z text
9618 # though, which does catch some bad symbols but isn't as heavy-handed
9619 # as -z defs.
9620 no_undefined_flag='${wl}-z,text'
9621 allow_undefined_flag='${wl}-z,nodefs'
9622 archive_cmds_need_lc=no
9623 hardcode_shlibpath_var=no
9624 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9625 hardcode_libdir_separator=':'
9626 link_all_deplibs=yes
9627 export_dynamic_flag_spec='${wl}-Bexport'
9628 runpath_var='LD_RUN_PATH'
9630 if test "$GCC" = yes; then
9631 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9632 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9633 else
9634 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9635 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9639 uts4*)
9640 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9641 hardcode_libdir_flag_spec='-L$libdir'
9642 hardcode_shlibpath_var=no
9646 ld_shlibs=no
9648 esac
9650 if test x$host_vendor = xsni; then
9651 case $host in
9652 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9653 export_dynamic_flag_spec='${wl}-Blargedynsym'
9655 esac
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9660 $as_echo "$ld_shlibs" >&6; }
9661 test "$ld_shlibs" = no && can_build_shared=no
9663 with_gnu_ld=$with_gnu_ld
9680 # Do we need to explicitly link libc?
9682 case "x$archive_cmds_need_lc" in
9683 x|xyes)
9684 # Assume -lc should be added
9685 archive_cmds_need_lc=yes
9687 if test "$enable_shared" = yes && test "$GCC" = yes; then
9688 case $archive_cmds in
9689 *'~'*)
9690 # FIXME: we may have to deal with multi-command sequences.
9692 '$CC '*)
9693 # Test whether the compiler implicitly links with -lc since on some
9694 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9695 # to ld, don't add -lc before -lgcc.
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9697 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9698 $RM conftest*
9699 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9701 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9702 (eval $ac_compile) 2>&5
9703 ac_status=$?
9704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9705 test $ac_status = 0; } 2>conftest.err; then
9706 soname=conftest
9707 lib=conftest
9708 libobjs=conftest.$ac_objext
9709 deplibs=
9710 wl=$lt_prog_compiler_wl
9711 pic_flag=$lt_prog_compiler_pic
9712 compiler_flags=-v
9713 linker_flags=-v
9714 verstring=
9715 output_objdir=.
9716 libname=conftest
9717 lt_save_allow_undefined_flag=$allow_undefined_flag
9718 allow_undefined_flag=
9719 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9720 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9721 ac_status=$?
9722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9723 test $ac_status = 0; }
9724 then
9725 archive_cmds_need_lc=no
9726 else
9727 archive_cmds_need_lc=yes
9729 allow_undefined_flag=$lt_save_allow_undefined_flag
9730 else
9731 cat conftest.err 1>&5
9733 $RM conftest*
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9735 $as_echo "$archive_cmds_need_lc" >&6; }
9737 esac
9740 esac
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9899 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9901 if test "$GCC" = yes; then
9902 case $host_os in
9903 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9904 *) lt_awk_arg="/^libraries:/" ;;
9905 esac
9906 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9907 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9908 # if the path contains ";" then we assume it to be the separator
9909 # otherwise default to the standard path separator (i.e. ":") - it is
9910 # assumed that no part of a normal pathname contains ";" but that should
9911 # okay in the real world where ";" in dirpaths is itself problematic.
9912 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9913 else
9914 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9916 # Ok, now we have the path, separated by spaces, we can step through it
9917 # and add multilib dir if necessary.
9918 lt_tmp_lt_search_path_spec=
9919 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9920 for lt_sys_path in $lt_search_path_spec; do
9921 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9922 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9923 else
9924 test -d "$lt_sys_path" && \
9925 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9927 done
9928 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9929 BEGIN {RS=" "; FS="/|\n";} {
9930 lt_foo="";
9931 lt_count=0;
9932 for (lt_i = NF; lt_i > 0; lt_i--) {
9933 if ($lt_i != "" && $lt_i != ".") {
9934 if ($lt_i == "..") {
9935 lt_count++;
9936 } else {
9937 if (lt_count == 0) {
9938 lt_foo="/" $lt_i lt_foo;
9939 } else {
9940 lt_count--;
9945 if (lt_foo != "") { lt_freq[lt_foo]++; }
9946 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9948 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9949 else
9950 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9952 library_names_spec=
9953 libname_spec='lib$name'
9954 soname_spec=
9955 shrext_cmds=".so"
9956 postinstall_cmds=
9957 postuninstall_cmds=
9958 finish_cmds=
9959 finish_eval=
9960 shlibpath_var=
9961 shlibpath_overrides_runpath=unknown
9962 version_type=none
9963 dynamic_linker="$host_os ld.so"
9964 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9965 need_lib_prefix=unknown
9966 hardcode_into_libs=no
9968 # when you set need_version to no, make sure it does not cause -set_version
9969 # flags to be left without arguments
9970 need_version=unknown
9972 case $host_os in
9973 aix3*)
9974 version_type=linux
9975 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9976 shlibpath_var=LIBPATH
9978 # AIX 3 has no versioning support, so we append a major version to the name.
9979 soname_spec='${libname}${release}${shared_ext}$major'
9982 aix[4-9]*)
9983 version_type=linux
9984 need_lib_prefix=no
9985 need_version=no
9986 hardcode_into_libs=yes
9987 if test "$host_cpu" = ia64; then
9988 # AIX 5 supports IA64
9989 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9990 shlibpath_var=LD_LIBRARY_PATH
9991 else
9992 # With GCC up to 2.95.x, collect2 would create an import file
9993 # for dependence libraries. The import file would start with
9994 # the line `#! .'. This would cause the generated library to
9995 # depend on `.', always an invalid library. This was fixed in
9996 # development snapshots of GCC prior to 3.0.
9997 case $host_os in
9998 aix4 | aix4.[01] | aix4.[01].*)
9999 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10000 echo ' yes '
10001 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10003 else
10004 can_build_shared=no
10007 esac
10008 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10009 # soname into executable. Probably we can add versioning support to
10010 # collect2, so additional links can be useful in future.
10011 if test "$aix_use_runtimelinking" = yes; then
10012 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10013 # instead of lib<name>.a to let people know that these are not
10014 # typical AIX shared libraries.
10015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10016 else
10017 # We preserve .a as extension for shared libraries through AIX4.2
10018 # and later when we are not doing run time linking.
10019 library_names_spec='${libname}${release}.a $libname.a'
10020 soname_spec='${libname}${release}${shared_ext}$major'
10022 shlibpath_var=LIBPATH
10026 amigaos*)
10027 case $host_cpu in
10028 powerpc)
10029 # Since July 2007 AmigaOS4 officially supports .so libraries.
10030 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10033 m68k)
10034 library_names_spec='$libname.ixlibrary $libname.a'
10035 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10036 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'
10038 esac
10041 beos*)
10042 library_names_spec='${libname}${shared_ext}'
10043 dynamic_linker="$host_os ld.so"
10044 shlibpath_var=LIBRARY_PATH
10047 bsdi[45]*)
10048 version_type=linux
10049 need_version=no
10050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10051 soname_spec='${libname}${release}${shared_ext}$major'
10052 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10053 shlibpath_var=LD_LIBRARY_PATH
10054 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10055 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10056 # the default ld.so.conf also contains /usr/contrib/lib and
10057 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10058 # libtool to hard-code these into programs
10061 cygwin* | mingw* | pw32* | cegcc*)
10062 version_type=windows
10063 shrext_cmds=".dll"
10064 need_version=no
10065 need_lib_prefix=no
10067 case $GCC,$host_os in
10068 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10069 library_names_spec='$libname.dll.a'
10070 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10071 postinstall_cmds='base_file=`basename \${file}`~
10072 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10073 dldir=$destdir/`dirname \$dlpath`~
10074 test -d \$dldir || mkdir -p \$dldir~
10075 $install_prog $dir/$dlname \$dldir/$dlname~
10076 chmod a+x \$dldir/$dlname~
10077 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10078 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10080 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10081 dlpath=$dir/\$dldll~
10082 $RM \$dlpath'
10083 shlibpath_overrides_runpath=yes
10085 case $host_os in
10086 cygwin*)
10087 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10088 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10089 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10091 mingw* | cegcc*)
10092 # MinGW DLLs use traditional 'lib' prefix
10093 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10094 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10095 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10096 # It is most probably a Windows format PATH printed by
10097 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10098 # path with ; separators, and with drive letters. We can handle the
10099 # drive letters (cygwin fileutils understands them), so leave them,
10100 # especially as we might pass files found there to a mingw objdump,
10101 # which wouldn't understand a cygwinified path. Ahh.
10102 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10103 else
10104 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10107 pw32*)
10108 # pw32 DLLs use 'pw' prefix rather than 'lib'
10109 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10111 esac
10115 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10117 esac
10118 dynamic_linker='Win32 ld.exe'
10119 # FIXME: first we should search . and the directory the executable is in
10120 shlibpath_var=PATH
10123 darwin* | rhapsody*)
10124 dynamic_linker="$host_os dyld"
10125 version_type=darwin
10126 need_lib_prefix=no
10127 need_version=no
10128 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10129 soname_spec='${libname}${release}${major}$shared_ext'
10130 shlibpath_overrides_runpath=yes
10131 shlibpath_var=DYLD_LIBRARY_PATH
10132 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10134 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10135 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10138 dgux*)
10139 version_type=linux
10140 need_lib_prefix=no
10141 need_version=no
10142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10143 soname_spec='${libname}${release}${shared_ext}$major'
10144 shlibpath_var=LD_LIBRARY_PATH
10147 freebsd1*)
10148 dynamic_linker=no
10151 freebsd* | dragonfly*)
10152 # DragonFly does not have aout. When/if they implement a new
10153 # versioning mechanism, adjust this.
10154 if test -x /usr/bin/objformat; then
10155 objformat=`/usr/bin/objformat`
10156 else
10157 case $host_os in
10158 freebsd[123]*) objformat=aout ;;
10159 *) objformat=elf ;;
10160 esac
10162 version_type=freebsd-$objformat
10163 case $version_type in
10164 freebsd-elf*)
10165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10166 need_version=no
10167 need_lib_prefix=no
10169 freebsd-*)
10170 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10171 need_version=yes
10173 esac
10174 shlibpath_var=LD_LIBRARY_PATH
10175 case $host_os in
10176 freebsd2*)
10177 shlibpath_overrides_runpath=yes
10179 freebsd3.[01]* | freebsdelf3.[01]*)
10180 shlibpath_overrides_runpath=yes
10181 hardcode_into_libs=yes
10183 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10184 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10185 shlibpath_overrides_runpath=no
10186 hardcode_into_libs=yes
10188 *) # from 4.6 on, and DragonFly
10189 shlibpath_overrides_runpath=yes
10190 hardcode_into_libs=yes
10192 esac
10195 gnu*)
10196 version_type=linux
10197 need_lib_prefix=no
10198 need_version=no
10199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10200 soname_spec='${libname}${release}${shared_ext}$major'
10201 shlibpath_var=LD_LIBRARY_PATH
10202 hardcode_into_libs=yes
10205 hpux9* | hpux10* | hpux11*)
10206 # Give a soname corresponding to the major version so that dld.sl refuses to
10207 # link against other versions.
10208 version_type=sunos
10209 need_lib_prefix=no
10210 need_version=no
10211 case $host_cpu in
10212 ia64*)
10213 shrext_cmds='.so'
10214 hardcode_into_libs=yes
10215 dynamic_linker="$host_os dld.so"
10216 shlibpath_var=LD_LIBRARY_PATH
10217 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10219 soname_spec='${libname}${release}${shared_ext}$major'
10220 if test "X$HPUX_IA64_MODE" = X32; then
10221 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10222 else
10223 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10225 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10227 hppa*64*)
10228 shrext_cmds='.sl'
10229 hardcode_into_libs=yes
10230 dynamic_linker="$host_os dld.sl"
10231 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10232 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10234 soname_spec='${libname}${release}${shared_ext}$major'
10235 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10236 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10239 shrext_cmds='.sl'
10240 dynamic_linker="$host_os dld.sl"
10241 shlibpath_var=SHLIB_PATH
10242 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10244 soname_spec='${libname}${release}${shared_ext}$major'
10246 esac
10247 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10248 postinstall_cmds='chmod 555 $lib'
10251 interix[3-9]*)
10252 version_type=linux
10253 need_lib_prefix=no
10254 need_version=no
10255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10256 soname_spec='${libname}${release}${shared_ext}$major'
10257 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10258 shlibpath_var=LD_LIBRARY_PATH
10259 shlibpath_overrides_runpath=no
10260 hardcode_into_libs=yes
10263 irix5* | irix6* | nonstopux*)
10264 case $host_os in
10265 nonstopux*) version_type=nonstopux ;;
10267 if test "$lt_cv_prog_gnu_ld" = yes; then
10268 version_type=linux
10269 else
10270 version_type=irix
10271 fi ;;
10272 esac
10273 need_lib_prefix=no
10274 need_version=no
10275 soname_spec='${libname}${release}${shared_ext}$major'
10276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10277 case $host_os in
10278 irix5* | nonstopux*)
10279 libsuff= shlibsuff=
10282 case $LD in # libtool.m4 will add one of these switches to LD
10283 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10284 libsuff= shlibsuff= libmagic=32-bit;;
10285 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10286 libsuff=32 shlibsuff=N32 libmagic=N32;;
10287 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10288 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10289 *) libsuff= shlibsuff= libmagic=never-match;;
10290 esac
10292 esac
10293 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10294 shlibpath_overrides_runpath=no
10295 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10296 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10297 hardcode_into_libs=yes
10300 # No shared lib support for Linux oldld, aout, or coff.
10301 linux*oldld* | linux*aout* | linux*coff*)
10302 dynamic_linker=no
10305 # This must be Linux ELF.
10306 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10307 version_type=linux
10308 need_lib_prefix=no
10309 need_version=no
10310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10311 soname_spec='${libname}${release}${shared_ext}$major'
10312 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10313 shlibpath_var=LD_LIBRARY_PATH
10314 shlibpath_overrides_runpath=no
10315 # Some binutils ld are patched to set DT_RUNPATH
10316 save_LDFLAGS=$LDFLAGS
10317 save_libdir=$libdir
10318 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10319 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10321 /* end confdefs.h. */
10324 main ()
10328 return 0;
10330 _ACEOF
10331 if ac_fn_c_try_link "$LINENO"; then :
10332 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10333 shlibpath_overrides_runpath=yes
10336 rm -f core conftest.err conftest.$ac_objext \
10337 conftest$ac_exeext conftest.$ac_ext
10338 LDFLAGS=$save_LDFLAGS
10339 libdir=$save_libdir
10341 # This implies no fast_install, which is unacceptable.
10342 # Some rework will be needed to allow for fast_install
10343 # before this can be enabled.
10344 hardcode_into_libs=yes
10346 # Append ld.so.conf contents to the search path
10347 if test -f /etc/ld.so.conf; then
10348 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' ' '`
10349 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10352 # We used to test for /lib/ld.so.1 and disable shared libraries on
10353 # powerpc, because MkLinux only supported shared libraries with the
10354 # GNU dynamic linker. Since this was broken with cross compilers,
10355 # most powerpc-linux boxes support dynamic linking these days and
10356 # people can always --disable-shared, the test was removed, and we
10357 # assume the GNU/Linux dynamic linker is in use.
10358 dynamic_linker='GNU/Linux ld.so'
10361 netbsdelf*-gnu)
10362 version_type=linux
10363 need_lib_prefix=no
10364 need_version=no
10365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10366 soname_spec='${libname}${release}${shared_ext}$major'
10367 shlibpath_var=LD_LIBRARY_PATH
10368 shlibpath_overrides_runpath=no
10369 hardcode_into_libs=yes
10370 dynamic_linker='NetBSD ld.elf_so'
10373 netbsd*)
10374 version_type=sunos
10375 need_lib_prefix=no
10376 need_version=no
10377 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10379 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10380 dynamic_linker='NetBSD (a.out) ld.so'
10381 else
10382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10383 soname_spec='${libname}${release}${shared_ext}$major'
10384 dynamic_linker='NetBSD ld.elf_so'
10386 shlibpath_var=LD_LIBRARY_PATH
10387 shlibpath_overrides_runpath=yes
10388 hardcode_into_libs=yes
10391 newsos6)
10392 version_type=linux
10393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10394 shlibpath_var=LD_LIBRARY_PATH
10395 shlibpath_overrides_runpath=yes
10398 *nto* | *qnx*)
10399 version_type=qnx
10400 need_lib_prefix=no
10401 need_version=no
10402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10403 soname_spec='${libname}${release}${shared_ext}$major'
10404 shlibpath_var=LD_LIBRARY_PATH
10405 shlibpath_overrides_runpath=no
10406 hardcode_into_libs=yes
10407 dynamic_linker='ldqnx.so'
10410 openbsd*)
10411 version_type=sunos
10412 sys_lib_dlsearch_path_spec="/usr/lib"
10413 need_lib_prefix=no
10414 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10415 case $host_os in
10416 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10417 *) need_version=no ;;
10418 esac
10419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10420 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10421 shlibpath_var=LD_LIBRARY_PATH
10422 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10423 case $host_os in
10424 openbsd2.[89] | openbsd2.[89].*)
10425 shlibpath_overrides_runpath=no
10428 shlibpath_overrides_runpath=yes
10430 esac
10431 else
10432 shlibpath_overrides_runpath=yes
10436 os2*)
10437 libname_spec='$name'
10438 shrext_cmds=".dll"
10439 need_lib_prefix=no
10440 library_names_spec='$libname${shared_ext} $libname.a'
10441 dynamic_linker='OS/2 ld.exe'
10442 shlibpath_var=LIBPATH
10445 osf3* | osf4* | osf5*)
10446 version_type=osf
10447 need_lib_prefix=no
10448 need_version=no
10449 soname_spec='${libname}${release}${shared_ext}$major'
10450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10451 shlibpath_var=LD_LIBRARY_PATH
10452 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10453 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10456 rdos*)
10457 dynamic_linker=no
10460 solaris*)
10461 version_type=linux
10462 need_lib_prefix=no
10463 need_version=no
10464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10465 soname_spec='${libname}${release}${shared_ext}$major'
10466 shlibpath_var=LD_LIBRARY_PATH
10467 shlibpath_overrides_runpath=yes
10468 hardcode_into_libs=yes
10469 # ldd complains unless libraries are executable
10470 postinstall_cmds='chmod +x $lib'
10473 sunos4*)
10474 version_type=sunos
10475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10476 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10477 shlibpath_var=LD_LIBRARY_PATH
10478 shlibpath_overrides_runpath=yes
10479 if test "$with_gnu_ld" = yes; then
10480 need_lib_prefix=no
10482 need_version=yes
10485 sysv4 | sysv4.3*)
10486 version_type=linux
10487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10488 soname_spec='${libname}${release}${shared_ext}$major'
10489 shlibpath_var=LD_LIBRARY_PATH
10490 case $host_vendor in
10491 sni)
10492 shlibpath_overrides_runpath=no
10493 need_lib_prefix=no
10494 runpath_var=LD_RUN_PATH
10496 siemens)
10497 need_lib_prefix=no
10499 motorola)
10500 need_lib_prefix=no
10501 need_version=no
10502 shlibpath_overrides_runpath=no
10503 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10505 esac
10508 sysv4*MP*)
10509 if test -d /usr/nec ;then
10510 version_type=linux
10511 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10512 soname_spec='$libname${shared_ext}.$major'
10513 shlibpath_var=LD_LIBRARY_PATH
10517 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10518 version_type=freebsd-elf
10519 need_lib_prefix=no
10520 need_version=no
10521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10522 soname_spec='${libname}${release}${shared_ext}$major'
10523 shlibpath_var=LD_LIBRARY_PATH
10524 shlibpath_overrides_runpath=yes
10525 hardcode_into_libs=yes
10526 if test "$with_gnu_ld" = yes; then
10527 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10528 else
10529 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10530 case $host_os in
10531 sco3.2v5*)
10532 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10534 esac
10536 sys_lib_dlsearch_path_spec='/usr/lib'
10539 tpf*)
10540 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10541 version_type=linux
10542 need_lib_prefix=no
10543 need_version=no
10544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10545 shlibpath_var=LD_LIBRARY_PATH
10546 shlibpath_overrides_runpath=no
10547 hardcode_into_libs=yes
10550 uts4*)
10551 version_type=linux
10552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10553 soname_spec='${libname}${release}${shared_ext}$major'
10554 shlibpath_var=LD_LIBRARY_PATH
10558 dynamic_linker=no
10560 esac
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10562 $as_echo "$dynamic_linker" >&6; }
10563 test "$dynamic_linker" = no && can_build_shared=no
10565 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10566 if test "$GCC" = yes; then
10567 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10570 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10571 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10573 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10574 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10664 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10665 hardcode_action=
10666 if test -n "$hardcode_libdir_flag_spec" ||
10667 test -n "$runpath_var" ||
10668 test "X$hardcode_automatic" = "Xyes" ; then
10670 # We can hardcode non-existent directories.
10671 if test "$hardcode_direct" != no &&
10672 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10673 # have to relink, otherwise we might link with an installed library
10674 # when we should be linking with a yet-to-be-installed one
10675 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10676 test "$hardcode_minus_L" != no; then
10677 # Linking always hardcodes the temporary library directory.
10678 hardcode_action=relink
10679 else
10680 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10681 hardcode_action=immediate
10683 else
10684 # We cannot hardcode anything, or else we can only hardcode existing
10685 # directories.
10686 hardcode_action=unsupported
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10689 $as_echo "$hardcode_action" >&6; }
10691 if test "$hardcode_action" = relink ||
10692 test "$inherit_rpath" = yes; then
10693 # Fast installation is not supported
10694 enable_fast_install=no
10695 elif test "$shlibpath_overrides_runpath" = yes ||
10696 test "$enable_shared" = no; then
10697 # Fast installation is not necessary
10698 enable_fast_install=needless
10706 if test "x$enable_dlopen" != xyes; then
10707 enable_dlopen=unknown
10708 enable_dlopen_self=unknown
10709 enable_dlopen_self_static=unknown
10710 else
10711 lt_cv_dlopen=no
10712 lt_cv_dlopen_libs=
10714 case $host_os in
10715 beos*)
10716 lt_cv_dlopen="load_add_on"
10717 lt_cv_dlopen_libs=
10718 lt_cv_dlopen_self=yes
10721 mingw* | pw32* | cegcc*)
10722 lt_cv_dlopen="LoadLibrary"
10723 lt_cv_dlopen_libs=
10726 cygwin*)
10727 lt_cv_dlopen="dlopen"
10728 lt_cv_dlopen_libs=
10731 darwin*)
10732 # if libdl is installed we need to link against it
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10734 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10735 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10736 $as_echo_n "(cached) " >&6
10737 else
10738 ac_check_lib_save_LIBS=$LIBS
10739 LIBS="-ldl $LIBS"
10740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10741 /* end confdefs.h. */
10743 /* Override any GCC internal prototype to avoid an error.
10744 Use char because int might match the return type of a GCC
10745 builtin and then its argument prototype would still apply. */
10746 #ifdef __cplusplus
10747 extern "C"
10748 #endif
10749 char dlopen ();
10751 main ()
10753 return dlopen ();
10755 return 0;
10757 _ACEOF
10758 if ac_fn_c_try_link "$LINENO"; then :
10759 ac_cv_lib_dl_dlopen=yes
10760 else
10761 ac_cv_lib_dl_dlopen=no
10763 rm -f core conftest.err conftest.$ac_objext \
10764 conftest$ac_exeext conftest.$ac_ext
10765 LIBS=$ac_check_lib_save_LIBS
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10768 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10769 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10770 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10771 else
10773 lt_cv_dlopen="dyld"
10774 lt_cv_dlopen_libs=
10775 lt_cv_dlopen_self=yes
10782 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10783 if test "x$ac_cv_func_shl_load" = x""yes; then :
10784 lt_cv_dlopen="shl_load"
10785 else
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10787 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10788 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10789 $as_echo_n "(cached) " >&6
10790 else
10791 ac_check_lib_save_LIBS=$LIBS
10792 LIBS="-ldld $LIBS"
10793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10794 /* end confdefs.h. */
10796 /* Override any GCC internal prototype to avoid an error.
10797 Use char because int might match the return type of a GCC
10798 builtin and then its argument prototype would still apply. */
10799 #ifdef __cplusplus
10800 extern "C"
10801 #endif
10802 char shl_load ();
10804 main ()
10806 return shl_load ();
10808 return 0;
10810 _ACEOF
10811 if ac_fn_c_try_link "$LINENO"; then :
10812 ac_cv_lib_dld_shl_load=yes
10813 else
10814 ac_cv_lib_dld_shl_load=no
10816 rm -f core conftest.err conftest.$ac_objext \
10817 conftest$ac_exeext conftest.$ac_ext
10818 LIBS=$ac_check_lib_save_LIBS
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10821 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10822 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10823 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10824 else
10825 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10826 if test "x$ac_cv_func_dlopen" = x""yes; then :
10827 lt_cv_dlopen="dlopen"
10828 else
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10830 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10831 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10832 $as_echo_n "(cached) " >&6
10833 else
10834 ac_check_lib_save_LIBS=$LIBS
10835 LIBS="-ldl $LIBS"
10836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10837 /* end confdefs.h. */
10839 /* Override any GCC internal prototype to avoid an error.
10840 Use char because int might match the return type of a GCC
10841 builtin and then its argument prototype would still apply. */
10842 #ifdef __cplusplus
10843 extern "C"
10844 #endif
10845 char dlopen ();
10847 main ()
10849 return dlopen ();
10851 return 0;
10853 _ACEOF
10854 if ac_fn_c_try_link "$LINENO"; then :
10855 ac_cv_lib_dl_dlopen=yes
10856 else
10857 ac_cv_lib_dl_dlopen=no
10859 rm -f core conftest.err conftest.$ac_objext \
10860 conftest$ac_exeext conftest.$ac_ext
10861 LIBS=$ac_check_lib_save_LIBS
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10864 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10865 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10866 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10867 else
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10869 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10870 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10871 $as_echo_n "(cached) " >&6
10872 else
10873 ac_check_lib_save_LIBS=$LIBS
10874 LIBS="-lsvld $LIBS"
10875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10876 /* end confdefs.h. */
10878 /* Override any GCC internal prototype to avoid an error.
10879 Use char because int might match the return type of a GCC
10880 builtin and then its argument prototype would still apply. */
10881 #ifdef __cplusplus
10882 extern "C"
10883 #endif
10884 char dlopen ();
10886 main ()
10888 return dlopen ();
10890 return 0;
10892 _ACEOF
10893 if ac_fn_c_try_link "$LINENO"; then :
10894 ac_cv_lib_svld_dlopen=yes
10895 else
10896 ac_cv_lib_svld_dlopen=no
10898 rm -f core conftest.err conftest.$ac_objext \
10899 conftest$ac_exeext conftest.$ac_ext
10900 LIBS=$ac_check_lib_save_LIBS
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10903 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10904 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10905 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10906 else
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10908 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10909 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10910 $as_echo_n "(cached) " >&6
10911 else
10912 ac_check_lib_save_LIBS=$LIBS
10913 LIBS="-ldld $LIBS"
10914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10915 /* end confdefs.h. */
10917 /* Override any GCC internal prototype to avoid an error.
10918 Use char because int might match the return type of a GCC
10919 builtin and then its argument prototype would still apply. */
10920 #ifdef __cplusplus
10921 extern "C"
10922 #endif
10923 char dld_link ();
10925 main ()
10927 return dld_link ();
10929 return 0;
10931 _ACEOF
10932 if ac_fn_c_try_link "$LINENO"; then :
10933 ac_cv_lib_dld_dld_link=yes
10934 else
10935 ac_cv_lib_dld_dld_link=no
10937 rm -f core conftest.err conftest.$ac_objext \
10938 conftest$ac_exeext conftest.$ac_ext
10939 LIBS=$ac_check_lib_save_LIBS
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10942 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10943 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10944 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10963 esac
10965 if test "x$lt_cv_dlopen" != xno; then
10966 enable_dlopen=yes
10967 else
10968 enable_dlopen=no
10971 case $lt_cv_dlopen in
10972 dlopen)
10973 save_CPPFLAGS="$CPPFLAGS"
10974 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10976 save_LDFLAGS="$LDFLAGS"
10977 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10979 save_LIBS="$LIBS"
10980 LIBS="$lt_cv_dlopen_libs $LIBS"
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10983 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10984 if test "${lt_cv_dlopen_self+set}" = set; then :
10985 $as_echo_n "(cached) " >&6
10986 else
10987 if test "$cross_compiling" = yes; then :
10988 lt_cv_dlopen_self=cross
10989 else
10990 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10991 lt_status=$lt_dlunknown
10992 cat > conftest.$ac_ext <<_LT_EOF
10993 #line 10993 "configure"
10994 #include "confdefs.h"
10996 #if HAVE_DLFCN_H
10997 #include <dlfcn.h>
10998 #endif
11000 #include <stdio.h>
11002 #ifdef RTLD_GLOBAL
11003 # define LT_DLGLOBAL RTLD_GLOBAL
11004 #else
11005 # ifdef DL_GLOBAL
11006 # define LT_DLGLOBAL DL_GLOBAL
11007 # else
11008 # define LT_DLGLOBAL 0
11009 # endif
11010 #endif
11012 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11013 find out it does not work in some platform. */
11014 #ifndef LT_DLLAZY_OR_NOW
11015 # ifdef RTLD_LAZY
11016 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11017 # else
11018 # ifdef DL_LAZY
11019 # define LT_DLLAZY_OR_NOW DL_LAZY
11020 # else
11021 # ifdef RTLD_NOW
11022 # define LT_DLLAZY_OR_NOW RTLD_NOW
11023 # else
11024 # ifdef DL_NOW
11025 # define LT_DLLAZY_OR_NOW DL_NOW
11026 # else
11027 # define LT_DLLAZY_OR_NOW 0
11028 # endif
11029 # endif
11030 # endif
11031 # endif
11032 #endif
11034 void fnord() { int i=42;}
11035 int main ()
11037 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11038 int status = $lt_dlunknown;
11040 if (self)
11042 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11043 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11044 /* dlclose (self); */
11046 else
11047 puts (dlerror ());
11049 return status;
11051 _LT_EOF
11052 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11053 (eval $ac_link) 2>&5
11054 ac_status=$?
11055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11056 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11057 (./conftest; exit; ) >&5 2>/dev/null
11058 lt_status=$?
11059 case x$lt_status in
11060 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11061 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11062 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11063 esac
11064 else :
11065 # compilation failed
11066 lt_cv_dlopen_self=no
11069 rm -fr conftest*
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11074 $as_echo "$lt_cv_dlopen_self" >&6; }
11076 if test "x$lt_cv_dlopen_self" = xyes; then
11077 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11079 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11080 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11081 $as_echo_n "(cached) " >&6
11082 else
11083 if test "$cross_compiling" = yes; then :
11084 lt_cv_dlopen_self_static=cross
11085 else
11086 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11087 lt_status=$lt_dlunknown
11088 cat > conftest.$ac_ext <<_LT_EOF
11089 #line 11089 "configure"
11090 #include "confdefs.h"
11092 #if HAVE_DLFCN_H
11093 #include <dlfcn.h>
11094 #endif
11096 #include <stdio.h>
11098 #ifdef RTLD_GLOBAL
11099 # define LT_DLGLOBAL RTLD_GLOBAL
11100 #else
11101 # ifdef DL_GLOBAL
11102 # define LT_DLGLOBAL DL_GLOBAL
11103 # else
11104 # define LT_DLGLOBAL 0
11105 # endif
11106 #endif
11108 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11109 find out it does not work in some platform. */
11110 #ifndef LT_DLLAZY_OR_NOW
11111 # ifdef RTLD_LAZY
11112 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11113 # else
11114 # ifdef DL_LAZY
11115 # define LT_DLLAZY_OR_NOW DL_LAZY
11116 # else
11117 # ifdef RTLD_NOW
11118 # define LT_DLLAZY_OR_NOW RTLD_NOW
11119 # else
11120 # ifdef DL_NOW
11121 # define LT_DLLAZY_OR_NOW DL_NOW
11122 # else
11123 # define LT_DLLAZY_OR_NOW 0
11124 # endif
11125 # endif
11126 # endif
11127 # endif
11128 #endif
11130 void fnord() { int i=42;}
11131 int main ()
11133 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11134 int status = $lt_dlunknown;
11136 if (self)
11138 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11139 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11140 /* dlclose (self); */
11142 else
11143 puts (dlerror ());
11145 return status;
11147 _LT_EOF
11148 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11149 (eval $ac_link) 2>&5
11150 ac_status=$?
11151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11152 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11153 (./conftest; exit; ) >&5 2>/dev/null
11154 lt_status=$?
11155 case x$lt_status in
11156 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11157 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11158 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11159 esac
11160 else :
11161 # compilation failed
11162 lt_cv_dlopen_self_static=no
11165 rm -fr conftest*
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11170 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11173 CPPFLAGS="$save_CPPFLAGS"
11174 LDFLAGS="$save_LDFLAGS"
11175 LIBS="$save_LIBS"
11177 esac
11179 case $lt_cv_dlopen_self in
11180 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11181 *) enable_dlopen_self=unknown ;;
11182 esac
11184 case $lt_cv_dlopen_self_static in
11185 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11186 *) enable_dlopen_self_static=unknown ;;
11187 esac
11206 striplib=
11207 old_striplib=
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11209 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11210 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11211 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11212 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11214 $as_echo "yes" >&6; }
11215 else
11216 # FIXME - insert some real tests, host_os isn't really good enough
11217 case $host_os in
11218 darwin*)
11219 if test -n "$STRIP" ; then
11220 striplib="$STRIP -x"
11221 old_striplib="$STRIP -S"
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11223 $as_echo "yes" >&6; }
11224 else
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11226 $as_echo "no" >&6; }
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11231 $as_echo "no" >&6; }
11233 esac
11247 # Report which library types will actually be built
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11249 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11251 $as_echo "$can_build_shared" >&6; }
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11254 $as_echo_n "checking whether to build shared libraries... " >&6; }
11255 test "$can_build_shared" = "no" && enable_shared=no
11257 # On AIX, shared libraries and static libraries use the same namespace, and
11258 # are all built from PIC.
11259 case $host_os in
11260 aix3*)
11261 test "$enable_shared" = yes && enable_static=no
11262 if test -n "$RANLIB"; then
11263 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11264 postinstall_cmds='$RANLIB $lib'
11268 aix[4-9]*)
11269 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11270 test "$enable_shared" = yes && enable_static=no
11273 esac
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11275 $as_echo "$enable_shared" >&6; }
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11278 $as_echo_n "checking whether to build static libraries... " >&6; }
11279 # Make sure either enable_shared or enable_static is yes.
11280 test "$enable_shared" = yes || enable_static=yes
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11282 $as_echo "$enable_static" >&6; }
11288 ac_ext=c
11289 ac_cpp='$CPP $CPPFLAGS'
11290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11294 CC="$lt_save_CC"
11297 ac_ext=cpp
11298 ac_cpp='$CXXCPP $CPPFLAGS'
11299 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11300 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11301 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11303 archive_cmds_need_lc_CXX=no
11304 allow_undefined_flag_CXX=
11305 always_export_symbols_CXX=no
11306 archive_expsym_cmds_CXX=
11307 compiler_needs_object_CXX=no
11308 export_dynamic_flag_spec_CXX=
11309 hardcode_direct_CXX=no
11310 hardcode_direct_absolute_CXX=no
11311 hardcode_libdir_flag_spec_CXX=
11312 hardcode_libdir_flag_spec_ld_CXX=
11313 hardcode_libdir_separator_CXX=
11314 hardcode_minus_L_CXX=no
11315 hardcode_shlibpath_var_CXX=unsupported
11316 hardcode_automatic_CXX=no
11317 inherit_rpath_CXX=no
11318 module_cmds_CXX=
11319 module_expsym_cmds_CXX=
11320 link_all_deplibs_CXX=unknown
11321 old_archive_cmds_CXX=$old_archive_cmds
11322 no_undefined_flag_CXX=
11323 whole_archive_flag_spec_CXX=
11324 enable_shared_with_static_runtimes_CXX=no
11326 # Source file extension for C++ test sources.
11327 ac_ext=cpp
11329 # Object file extension for compiled C++ test sources.
11330 objext=o
11331 objext_CXX=$objext
11333 # No sense in running all these tests if we already determined that
11334 # the CXX compiler isn't working. Some variables (like enable_shared)
11335 # are currently assumed to apply to all compilers on this platform,
11336 # and will be corrupted by setting them based on a non-working compiler.
11337 if test "$_lt_caught_CXX_error" != yes; then
11338 # Code to be used in simple compile tests
11339 lt_simple_compile_test_code="int some_variable = 0;"
11341 # Code to be used in simple link tests
11342 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11344 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11351 # If no C compiler was specified, use CC.
11352 LTCC=${LTCC-"$CC"}
11354 # If no C compiler flags were specified, use CFLAGS.
11355 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11357 # Allow CC to be a program name with arguments.
11358 compiler=$CC
11361 # save warnings/boilerplate of simple test code
11362 ac_outfile=conftest.$ac_objext
11363 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11364 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11365 _lt_compiler_boilerplate=`cat conftest.err`
11366 $RM conftest*
11368 ac_outfile=conftest.$ac_objext
11369 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11370 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11371 _lt_linker_boilerplate=`cat conftest.err`
11372 $RM -r conftest*
11375 # Allow CC to be a program name with arguments.
11376 lt_save_CC=$CC
11377 lt_save_LD=$LD
11378 lt_save_GCC=$GCC
11379 GCC=$GXX
11380 lt_save_with_gnu_ld=$with_gnu_ld
11381 lt_save_path_LD=$lt_cv_path_LD
11382 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11383 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11384 else
11385 $as_unset lt_cv_prog_gnu_ld
11387 if test -n "${lt_cv_path_LDCXX+set}"; then
11388 lt_cv_path_LD=$lt_cv_path_LDCXX
11389 else
11390 $as_unset lt_cv_path_LD
11392 test -z "${LDCXX+set}" || LD=$LDCXX
11393 CC=${CXX-"c++"}
11394 compiler=$CC
11395 compiler_CXX=$CC
11396 for cc_temp in $compiler""; do
11397 case $cc_temp in
11398 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11399 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11400 \-*) ;;
11401 *) break;;
11402 esac
11403 done
11404 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11407 if test -n "$compiler"; then
11408 # We don't want -fno-exception when compiling C++ code, so set the
11409 # no_builtin_flag separately
11410 if test "$GXX" = yes; then
11411 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11412 else
11413 lt_prog_compiler_no_builtin_flag_CXX=
11416 if test "$GXX" = yes; then
11417 # Set up default GNU C++ configuration
11421 # Check whether --with-gnu-ld was given.
11422 if test "${with_gnu_ld+set}" = set; then :
11423 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11424 else
11425 with_gnu_ld=no
11428 ac_prog=ld
11429 if test "$GCC" = yes; then
11430 # Check if gcc -print-prog-name=ld gives a path.
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11432 $as_echo_n "checking for ld used by $CC... " >&6; }
11433 case $host in
11434 *-*-mingw*)
11435 # gcc leaves a trailing carriage return which upsets mingw
11436 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11438 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11439 esac
11440 case $ac_prog in
11441 # Accept absolute paths.
11442 [\\/]* | ?:[\\/]*)
11443 re_direlt='/[^/][^/]*/\.\./'
11444 # Canonicalize the pathname of ld
11445 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11446 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11447 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11448 done
11449 test -z "$LD" && LD="$ac_prog"
11452 # If it fails, then pretend we aren't using GCC.
11453 ac_prog=ld
11456 # If it is relative, then search for the first ld in PATH.
11457 with_gnu_ld=unknown
11459 esac
11460 elif test "$with_gnu_ld" = yes; then
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11462 $as_echo_n "checking for GNU ld... " >&6; }
11463 else
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11465 $as_echo_n "checking for non-GNU ld... " >&6; }
11467 if test "${lt_cv_path_LD+set}" = set; then :
11468 $as_echo_n "(cached) " >&6
11469 else
11470 if test -z "$LD"; then
11471 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11472 for ac_dir in $PATH; do
11473 IFS="$lt_save_ifs"
11474 test -z "$ac_dir" && ac_dir=.
11475 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11476 lt_cv_path_LD="$ac_dir/$ac_prog"
11477 # Check to see if the program is GNU ld. I'd rather use --version,
11478 # but apparently some variants of GNU ld only accept -v.
11479 # Break only if it was the GNU/non-GNU ld that we prefer.
11480 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11481 *GNU* | *'with BFD'*)
11482 test "$with_gnu_ld" != no && break
11485 test "$with_gnu_ld" != yes && break
11487 esac
11489 done
11490 IFS="$lt_save_ifs"
11491 else
11492 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11496 LD="$lt_cv_path_LD"
11497 if test -n "$LD"; then
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11499 $as_echo "$LD" >&6; }
11500 else
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11502 $as_echo "no" >&6; }
11504 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11506 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11507 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11508 $as_echo_n "(cached) " >&6
11509 else
11510 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11511 case `$LD -v 2>&1 </dev/null` in
11512 *GNU* | *'with BFD'*)
11513 lt_cv_prog_gnu_ld=yes
11516 lt_cv_prog_gnu_ld=no
11518 esac
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11521 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11522 with_gnu_ld=$lt_cv_prog_gnu_ld
11530 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11531 # archiving commands below assume that GNU ld is being used.
11532 if test "$with_gnu_ld" = yes; then
11533 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11534 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'
11536 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11537 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11539 # If archive_cmds runs LD, not CC, wlarc should be empty
11540 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11541 # investigate it a little bit more. (MM)
11542 wlarc='${wl}'
11544 # ancient GNU ld didn't support --whole-archive et. al.
11545 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11546 $GREP 'no-whole-archive' > /dev/null; then
11547 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11548 else
11549 whole_archive_flag_spec_CXX=
11551 else
11552 with_gnu_ld=no
11553 wlarc=
11555 # A generic and very simple default shared library creation
11556 # command for GNU C++ for the case where it uses the native
11557 # linker, instead of GNU ld. If possible, this setting should
11558 # overridden to take advantage of the native linker features on
11559 # the platform it is being used on.
11560 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11563 # Commands to make compiler produce verbose output that lists
11564 # what "hidden" libraries, object files and flags are used when
11565 # linking a shared library.
11566 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11568 else
11569 GXX=no
11570 with_gnu_ld=no
11571 wlarc=
11574 # PORTME: fill in a description of your system's C++ link characteristics
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11576 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11577 ld_shlibs_CXX=yes
11578 case $host_os in
11579 aix3*)
11580 # FIXME: insert proper C++ library support
11581 ld_shlibs_CXX=no
11583 aix[4-9]*)
11584 if test "$host_cpu" = ia64; then
11585 # On IA64, the linker does run time linking by default, so we don't
11586 # have to do anything special.
11587 aix_use_runtimelinking=no
11588 exp_sym_flag='-Bexport'
11589 no_entry_flag=""
11590 else
11591 aix_use_runtimelinking=no
11593 # Test if we are trying to use run time linking or normal
11594 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11595 # need to do runtime linking.
11596 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11597 for ld_flag in $LDFLAGS; do
11598 case $ld_flag in
11599 *-brtl*)
11600 aix_use_runtimelinking=yes
11601 break
11603 esac
11604 done
11606 esac
11608 exp_sym_flag='-bexport'
11609 no_entry_flag='-bnoentry'
11612 # When large executables or shared objects are built, AIX ld can
11613 # have problems creating the table of contents. If linking a library
11614 # or program results in "error TOC overflow" add -mminimal-toc to
11615 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11616 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11618 archive_cmds_CXX=''
11619 hardcode_direct_CXX=yes
11620 hardcode_direct_absolute_CXX=yes
11621 hardcode_libdir_separator_CXX=':'
11622 link_all_deplibs_CXX=yes
11623 file_list_spec_CXX='${wl}-f,'
11625 if test "$GXX" = yes; then
11626 case $host_os in aix4.[012]|aix4.[012].*)
11627 # We only want to do this on AIX 4.2 and lower, the check
11628 # below for broken collect2 doesn't work under 4.3+
11629 collect2name=`${CC} -print-prog-name=collect2`
11630 if test -f "$collect2name" &&
11631 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11632 then
11633 # We have reworked collect2
11635 else
11636 # We have old collect2
11637 hardcode_direct_CXX=unsupported
11638 # It fails to find uninstalled libraries when the uninstalled
11639 # path is not listed in the libpath. Setting hardcode_minus_L
11640 # to unsupported forces relinking
11641 hardcode_minus_L_CXX=yes
11642 hardcode_libdir_flag_spec_CXX='-L$libdir'
11643 hardcode_libdir_separator_CXX=
11645 esac
11646 shared_flag='-shared'
11647 if test "$aix_use_runtimelinking" = yes; then
11648 shared_flag="$shared_flag "'${wl}-G'
11650 else
11651 # not using gcc
11652 if test "$host_cpu" = ia64; then
11653 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11654 # chokes on -Wl,-G. The following line is correct:
11655 shared_flag='-G'
11656 else
11657 if test "$aix_use_runtimelinking" = yes; then
11658 shared_flag='${wl}-G'
11659 else
11660 shared_flag='${wl}-bM:SRE'
11665 export_dynamic_flag_spec_CXX='${wl}-bexpall'
11666 # It seems that -bexpall does not export symbols beginning with
11667 # underscore (_), so it is better to generate a list of symbols to
11668 # export.
11669 always_export_symbols_CXX=yes
11670 if test "$aix_use_runtimelinking" = yes; then
11671 # Warning - without using the other runtime loading flags (-brtl),
11672 # -berok will link without error, but may produce a broken library.
11673 allow_undefined_flag_CXX='-berok'
11674 # Determine the default libpath from the value encoded in an empty
11675 # executable.
11676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11677 /* end confdefs.h. */
11680 main ()
11684 return 0;
11686 _ACEOF
11687 if ac_fn_cxx_try_link "$LINENO"; then :
11689 lt_aix_libpath_sed='
11690 /Import File Strings/,/^$/ {
11691 /^0/ {
11692 s/^0 *\(.*\)$/\1/
11696 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11697 # Check for a 64-bit object if we didn't find anything.
11698 if test -z "$aix_libpath"; then
11699 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11702 rm -f core conftest.err conftest.$ac_objext \
11703 conftest$ac_exeext conftest.$ac_ext
11704 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11706 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11708 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"
11709 else
11710 if test "$host_cpu" = ia64; then
11711 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11712 allow_undefined_flag_CXX="-z nodefs"
11713 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"
11714 else
11715 # Determine the default libpath from the value encoded in an
11716 # empty executable.
11717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11718 /* end confdefs.h. */
11721 main ()
11725 return 0;
11727 _ACEOF
11728 if ac_fn_cxx_try_link "$LINENO"; then :
11730 lt_aix_libpath_sed='
11731 /Import File Strings/,/^$/ {
11732 /^0/ {
11733 s/^0 *\(.*\)$/\1/
11737 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11738 # Check for a 64-bit object if we didn't find anything.
11739 if test -z "$aix_libpath"; then
11740 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11743 rm -f core conftest.err conftest.$ac_objext \
11744 conftest$ac_exeext conftest.$ac_ext
11745 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11747 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11748 # Warning - without using the other run time loading flags,
11749 # -berok will link without error, but may produce a broken library.
11750 no_undefined_flag_CXX=' ${wl}-bernotok'
11751 allow_undefined_flag_CXX=' ${wl}-berok'
11752 # Exported symbols can be pulled into shared objects from archives
11753 whole_archive_flag_spec_CXX='$convenience'
11754 archive_cmds_need_lc_CXX=yes
11755 # This is similar to how AIX traditionally builds its shared
11756 # libraries.
11757 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'
11762 beos*)
11763 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11764 allow_undefined_flag_CXX=unsupported
11765 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11766 # support --undefined. This deserves some investigation. FIXME
11767 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11768 else
11769 ld_shlibs_CXX=no
11773 chorus*)
11774 case $cc_basename in
11776 # FIXME: insert proper C++ library support
11777 ld_shlibs_CXX=no
11779 esac
11782 cygwin* | mingw* | pw32* | cegcc*)
11783 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11784 # as there is no search path for DLLs.
11785 hardcode_libdir_flag_spec_CXX='-L$libdir'
11786 allow_undefined_flag_CXX=unsupported
11787 always_export_symbols_CXX=no
11788 enable_shared_with_static_runtimes_CXX=yes
11790 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11791 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'
11792 # If the export-symbols file already is a .def file (1st line
11793 # is EXPORTS), use it as is; otherwise, prepend...
11794 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11795 cp $export_symbols $output_objdir/$soname.def;
11796 else
11797 echo EXPORTS > $output_objdir/$soname.def;
11798 cat $export_symbols >> $output_objdir/$soname.def;
11800 $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'
11801 else
11802 ld_shlibs_CXX=no
11805 darwin* | rhapsody*)
11808 archive_cmds_need_lc_CXX=no
11809 hardcode_direct_CXX=no
11810 hardcode_automatic_CXX=yes
11811 hardcode_shlibpath_var_CXX=unsupported
11812 whole_archive_flag_spec_CXX=''
11813 link_all_deplibs_CXX=yes
11814 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11815 case $cc_basename in
11816 ifort*) _lt_dar_can_shared=yes ;;
11817 *) _lt_dar_can_shared=$GCC ;;
11818 esac
11819 if test "$_lt_dar_can_shared" = "yes"; then
11820 output_verbose_link_cmd=echo
11821 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}"
11822 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11823 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}"
11824 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}"
11825 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11826 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}"
11827 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}"
11830 else
11831 ld_shlibs_CXX=no
11836 dgux*)
11837 case $cc_basename in
11838 ec++*)
11839 # FIXME: insert proper C++ library support
11840 ld_shlibs_CXX=no
11842 ghcx*)
11843 # Green Hills C++ Compiler
11844 # FIXME: insert proper C++ library support
11845 ld_shlibs_CXX=no
11848 # FIXME: insert proper C++ library support
11849 ld_shlibs_CXX=no
11851 esac
11854 freebsd[12]*)
11855 # C++ shared libraries reported to be fairly broken before
11856 # switch to ELF
11857 ld_shlibs_CXX=no
11860 freebsd-elf*)
11861 archive_cmds_need_lc_CXX=no
11864 freebsd* | dragonfly*)
11865 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11866 # conventions
11867 ld_shlibs_CXX=yes
11870 gnu*)
11873 hpux9*)
11874 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11875 hardcode_libdir_separator_CXX=:
11876 export_dynamic_flag_spec_CXX='${wl}-E'
11877 hardcode_direct_CXX=yes
11878 hardcode_minus_L_CXX=yes # Not in the search PATH,
11879 # but as the default
11880 # location of the library.
11882 case $cc_basename in
11883 CC*)
11884 # FIXME: insert proper C++ library support
11885 ld_shlibs_CXX=no
11887 aCC*)
11888 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'
11889 # Commands to make compiler produce verbose output that lists
11890 # what "hidden" libraries, object files and flags are used when
11891 # linking a shared library.
11893 # There doesn't appear to be a way to prevent this compiler from
11894 # explicitly linking system object files so we need to strip them
11895 # from the output so that they don't get included in the library
11896 # dependencies.
11897 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'
11900 if test "$GXX" = yes; then
11901 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'
11902 else
11903 # FIXME: insert proper C++ library support
11904 ld_shlibs_CXX=no
11907 esac
11910 hpux10*|hpux11*)
11911 if test $with_gnu_ld = no; then
11912 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11913 hardcode_libdir_separator_CXX=:
11915 case $host_cpu in
11916 hppa*64*|ia64*)
11919 export_dynamic_flag_spec_CXX='${wl}-E'
11921 esac
11923 case $host_cpu in
11924 hppa*64*|ia64*)
11925 hardcode_direct_CXX=no
11926 hardcode_shlibpath_var_CXX=no
11929 hardcode_direct_CXX=yes
11930 hardcode_direct_absolute_CXX=yes
11931 hardcode_minus_L_CXX=yes # Not in the search PATH,
11932 # but as the default
11933 # location of the library.
11935 esac
11937 case $cc_basename in
11938 CC*)
11939 # FIXME: insert proper C++ library support
11940 ld_shlibs_CXX=no
11942 aCC*)
11943 case $host_cpu in
11944 hppa*64*)
11945 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11947 ia64*)
11948 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11951 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11953 esac
11954 # Commands to make compiler produce verbose output that lists
11955 # what "hidden" libraries, object files and flags are used when
11956 # linking a shared library.
11958 # There doesn't appear to be a way to prevent this compiler from
11959 # explicitly linking system object files so we need to strip them
11960 # from the output so that they don't get included in the library
11961 # dependencies.
11962 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'
11965 if test "$GXX" = yes; then
11966 if test $with_gnu_ld = no; then
11967 case $host_cpu in
11968 hppa*64*)
11969 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11971 ia64*)
11972 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11975 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'
11977 esac
11979 else
11980 # FIXME: insert proper C++ library support
11981 ld_shlibs_CXX=no
11984 esac
11987 interix[3-9]*)
11988 hardcode_direct_CXX=no
11989 hardcode_shlibpath_var_CXX=no
11990 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11991 export_dynamic_flag_spec_CXX='${wl}-E'
11992 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11993 # Instead, shared libraries are loaded at an image base (0x10000000 by
11994 # default) and relocated if they conflict, which is a slow very memory
11995 # consuming and fragmenting process. To avoid this, we pick a random,
11996 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11997 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11998 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'
11999 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'
12001 irix5* | irix6*)
12002 case $cc_basename in
12003 CC*)
12004 # SGI C++
12005 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'
12007 # Archives containing C++ object files must be created using
12008 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12009 # necessary to make sure instantiated templates are included
12010 # in the archive.
12011 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12014 if test "$GXX" = yes; then
12015 if test "$with_gnu_ld" = no; then
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` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12017 else
12018 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'
12021 link_all_deplibs_CXX=yes
12023 esac
12024 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12025 hardcode_libdir_separator_CXX=:
12026 inherit_rpath_CXX=yes
12029 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12030 case $cc_basename in
12031 KCC*)
12032 # Kuck and Associates, Inc. (KAI) C++ Compiler
12034 # KCC will only create a shared library if the output file
12035 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12036 # to its proper name (with version) after linking.
12037 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'
12038 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'
12039 # Commands to make compiler produce verbose output that lists
12040 # what "hidden" libraries, object files and flags are used when
12041 # linking a shared library.
12043 # There doesn't appear to be a way to prevent this compiler from
12044 # explicitly linking system object files so we need to strip them
12045 # from the output so that they don't get included in the library
12046 # dependencies.
12047 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'
12049 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12050 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12052 # Archives containing C++ object files must be created using
12053 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12054 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12056 icpc* | ecpc* )
12057 # Intel C++
12058 with_gnu_ld=yes
12059 # version 8.0 and above of icpc choke on multiply defined symbols
12060 # if we add $predep_objects and $postdep_objects, however 7.1 and
12061 # earlier do not add the objects themselves.
12062 case `$CC -V 2>&1` in
12063 *"Version 7."*)
12064 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12065 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'
12067 *) # Version 8.0 or newer
12068 tmp_idyn=
12069 case $host_cpu in
12070 ia64*) tmp_idyn=' -i_dynamic';;
12071 esac
12072 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12073 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'
12075 esac
12076 archive_cmds_need_lc_CXX=no
12077 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12078 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12079 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12081 pgCC* | pgcpp*)
12082 # Portland Group C++ compiler
12083 case `$CC -V` in
12084 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12085 prelink_cmds_CXX='tpldir=Template.dir~
12086 rm -rf $tpldir~
12087 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12088 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12089 old_archive_cmds_CXX='tpldir=Template.dir~
12090 rm -rf $tpldir~
12091 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12092 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12093 $RANLIB $oldlib'
12094 archive_cmds_CXX='tpldir=Template.dir~
12095 rm -rf $tpldir~
12096 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12097 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12098 archive_expsym_cmds_CXX='tpldir=Template.dir~
12099 rm -rf $tpldir~
12100 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12101 $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'
12103 *) # Version 6 will use weak symbols
12104 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12105 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'
12107 esac
12109 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12110 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12111 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'
12113 cxx*)
12114 # Compaq C++
12115 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12116 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'
12118 runpath_var=LD_RUN_PATH
12119 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12120 hardcode_libdir_separator_CXX=:
12122 # Commands to make compiler produce verbose output that lists
12123 # what "hidden" libraries, object files and flags are used when
12124 # linking a shared library.
12126 # There doesn't appear to be a way to prevent this compiler from
12127 # explicitly linking system object files so we need to strip them
12128 # from the output so that they don't get included in the library
12129 # dependencies.
12130 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'
12132 xl*)
12133 # IBM XL 8.0 on PPC, with GNU ld
12134 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12135 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12136 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12137 if test "x$supports_anon_versioning" = xyes; then
12138 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12139 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12140 echo "local: *; };" >> $output_objdir/$libname.ver~
12141 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12145 case `$CC -V 2>&1 | sed 5q` in
12146 *Sun\ C*)
12147 # Sun C++ 5.9
12148 no_undefined_flag_CXX=' -zdefs'
12149 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12150 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'
12151 hardcode_libdir_flag_spec_CXX='-R$libdir'
12152 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'
12153 compiler_needs_object_CXX=yes
12155 # Not sure whether something based on
12156 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12157 # would be better.
12158 output_verbose_link_cmd='echo'
12160 # Archives containing C++ object files must be created using
12161 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12162 # necessary to make sure instantiated templates are included
12163 # in the archive.
12164 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12166 esac
12168 esac
12171 lynxos*)
12172 # FIXME: insert proper C++ library support
12173 ld_shlibs_CXX=no
12176 m88k*)
12177 # FIXME: insert proper C++ library support
12178 ld_shlibs_CXX=no
12181 mvs*)
12182 case $cc_basename in
12183 cxx*)
12184 # FIXME: insert proper C++ library support
12185 ld_shlibs_CXX=no
12188 # FIXME: insert proper C++ library support
12189 ld_shlibs_CXX=no
12191 esac
12194 netbsd*)
12195 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12196 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12197 wlarc=
12198 hardcode_libdir_flag_spec_CXX='-R$libdir'
12199 hardcode_direct_CXX=yes
12200 hardcode_shlibpath_var_CXX=no
12202 # Workaround some broken pre-1.5 toolchains
12203 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12206 *nto* | *qnx*)
12207 ld_shlibs_CXX=yes
12210 openbsd2*)
12211 # C++ shared libraries are fairly broken
12212 ld_shlibs_CXX=no
12215 openbsd*)
12216 if test -f /usr/libexec/ld.so; then
12217 hardcode_direct_CXX=yes
12218 hardcode_shlibpath_var_CXX=no
12219 hardcode_direct_absolute_CXX=yes
12220 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12221 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12222 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12223 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12224 export_dynamic_flag_spec_CXX='${wl}-E'
12225 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12227 output_verbose_link_cmd=echo
12228 else
12229 ld_shlibs_CXX=no
12233 osf3* | osf4* | osf5*)
12234 case $cc_basename in
12235 KCC*)
12236 # Kuck and Associates, Inc. (KAI) C++ Compiler
12238 # KCC will only create a shared library if the output file
12239 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12240 # to its proper name (with version) after linking.
12241 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'
12243 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12244 hardcode_libdir_separator_CXX=:
12246 # Archives containing C++ object files must be created using
12247 # the KAI C++ compiler.
12248 case $host in
12249 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12250 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12251 esac
12253 RCC*)
12254 # Rational C++ 2.4.1
12255 # FIXME: insert proper C++ library support
12256 ld_shlibs_CXX=no
12258 cxx*)
12259 case $host in
12260 osf3*)
12261 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12262 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'
12263 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12266 allow_undefined_flag_CXX=' -expect_unresolved \*'
12267 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'
12268 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12269 echo "-hidden">> $lib.exp~
12270 $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~
12271 $RM $lib.exp'
12272 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12274 esac
12276 hardcode_libdir_separator_CXX=:
12278 # Commands to make compiler produce verbose output that lists
12279 # what "hidden" libraries, object files and flags are used when
12280 # linking a shared library.
12282 # There doesn't appear to be a way to prevent this compiler from
12283 # explicitly linking system object files so we need to strip them
12284 # from the output so that they don't get included in the library
12285 # dependencies.
12286 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'
12289 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12290 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12291 case $host in
12292 osf3*)
12293 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'
12296 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'
12298 esac
12300 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12301 hardcode_libdir_separator_CXX=:
12303 # Commands to make compiler produce verbose output that lists
12304 # what "hidden" libraries, object files and flags are used when
12305 # linking a shared library.
12306 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12308 else
12309 # FIXME: insert proper C++ library support
12310 ld_shlibs_CXX=no
12313 esac
12316 psos*)
12317 # FIXME: insert proper C++ library support
12318 ld_shlibs_CXX=no
12321 sunos4*)
12322 case $cc_basename in
12323 CC*)
12324 # Sun C++ 4.x
12325 # FIXME: insert proper C++ library support
12326 ld_shlibs_CXX=no
12328 lcc*)
12329 # Lucid
12330 # FIXME: insert proper C++ library support
12331 ld_shlibs_CXX=no
12334 # FIXME: insert proper C++ library support
12335 ld_shlibs_CXX=no
12337 esac
12340 solaris*)
12341 case $cc_basename in
12342 CC*)
12343 # Sun C++ 4.2, 5.x and Centerline C++
12344 archive_cmds_need_lc_CXX=yes
12345 no_undefined_flag_CXX=' -zdefs'
12346 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12347 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12348 $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'
12350 hardcode_libdir_flag_spec_CXX='-R$libdir'
12351 hardcode_shlibpath_var_CXX=no
12352 case $host_os in
12353 solaris2.[0-5] | solaris2.[0-5].*) ;;
12355 # The compiler driver will combine and reorder linker options,
12356 # but understands `-z linker_flag'.
12357 # Supported since Solaris 2.6 (maybe 2.5.1?)
12358 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12360 esac
12361 link_all_deplibs_CXX=yes
12363 output_verbose_link_cmd='echo'
12365 # Archives containing C++ object files must be created using
12366 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12367 # necessary to make sure instantiated templates are included
12368 # in the archive.
12369 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12371 gcx*)
12372 # Green Hills C++ Compiler
12373 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12375 # The C++ compiler must be used to create the archive.
12376 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12379 # GNU C++ compiler with Solaris linker
12380 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12381 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12382 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12383 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12384 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12385 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12387 # Commands to make compiler produce verbose output that lists
12388 # what "hidden" libraries, object files and flags are used when
12389 # linking a shared library.
12390 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12391 else
12392 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12393 # platform.
12394 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12395 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12396 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12398 # Commands to make compiler produce verbose output that lists
12399 # what "hidden" libraries, object files and flags are used when
12400 # linking a shared library.
12401 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12404 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12405 case $host_os in
12406 solaris2.[0-5] | solaris2.[0-5].*) ;;
12408 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12410 esac
12413 esac
12416 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12417 no_undefined_flag_CXX='${wl}-z,text'
12418 archive_cmds_need_lc_CXX=no
12419 hardcode_shlibpath_var_CXX=no
12420 runpath_var='LD_RUN_PATH'
12422 case $cc_basename in
12423 CC*)
12424 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12425 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12428 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12429 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12431 esac
12434 sysv5* | sco3.2v5* | sco5v6*)
12435 # Note: We can NOT use -z defs as we might desire, because we do not
12436 # link with -lc, and that would cause any symbols used from libc to
12437 # always be unresolved, which means just about no library would
12438 # ever link correctly. If we're not using GNU ld we use -z text
12439 # though, which does catch some bad symbols but isn't as heavy-handed
12440 # as -z defs.
12441 no_undefined_flag_CXX='${wl}-z,text'
12442 allow_undefined_flag_CXX='${wl}-z,nodefs'
12443 archive_cmds_need_lc_CXX=no
12444 hardcode_shlibpath_var_CXX=no
12445 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12446 hardcode_libdir_separator_CXX=':'
12447 link_all_deplibs_CXX=yes
12448 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12449 runpath_var='LD_RUN_PATH'
12451 case $cc_basename in
12452 CC*)
12453 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12454 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12457 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12458 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12460 esac
12463 tandem*)
12464 case $cc_basename in
12465 NCC*)
12466 # NonStop-UX NCC 3.20
12467 # FIXME: insert proper C++ library support
12468 ld_shlibs_CXX=no
12471 # FIXME: insert proper C++ library support
12472 ld_shlibs_CXX=no
12474 esac
12477 vxworks*)
12478 # FIXME: insert proper C++ library support
12479 ld_shlibs_CXX=no
12483 # FIXME: insert proper C++ library support
12484 ld_shlibs_CXX=no
12486 esac
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12489 $as_echo "$ld_shlibs_CXX" >&6; }
12490 test "$ld_shlibs_CXX" = no && can_build_shared=no
12492 GCC_CXX="$GXX"
12493 LD_CXX="$LD"
12495 ## CAVEAT EMPTOR:
12496 ## There is no encapsulation within the following macros, do not change
12497 ## the running order or otherwise move them around unless you know exactly
12498 ## what you are doing...
12499 # Dependencies to place before and after the object being linked:
12500 predep_objects_CXX=
12501 postdep_objects_CXX=
12502 predeps_CXX=
12503 postdeps_CXX=
12504 compiler_lib_search_path_CXX=
12506 cat > conftest.$ac_ext <<_LT_EOF
12507 class Foo
12509 public:
12510 Foo (void) { a = 0; }
12511 private:
12512 int a;
12514 _LT_EOF
12516 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12517 (eval $ac_compile) 2>&5
12518 ac_status=$?
12519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12520 test $ac_status = 0; }; then
12521 # Parse the compiler output and extract the necessary
12522 # objects, libraries and library flags.
12524 # Sentinel used to keep track of whether or not we are before
12525 # the conftest object file.
12526 pre_test_object_deps_done=no
12528 for p in `eval "$output_verbose_link_cmd"`; do
12529 case $p in
12531 -L* | -R* | -l*)
12532 # Some compilers place space between "-{L,R}" and the path.
12533 # Remove the space.
12534 if test $p = "-L" ||
12535 test $p = "-R"; then
12536 prev=$p
12537 continue
12538 else
12539 prev=
12542 if test "$pre_test_object_deps_done" = no; then
12543 case $p in
12544 -L* | -R*)
12545 # Internal compiler library paths should come after those
12546 # provided the user. The postdeps already come after the
12547 # user supplied libs so there is no need to process them.
12548 if test -z "$compiler_lib_search_path_CXX"; then
12549 compiler_lib_search_path_CXX="${prev}${p}"
12550 else
12551 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12554 # The "-l" case would never come before the object being
12555 # linked, so don't bother handling this case.
12556 esac
12557 else
12558 if test -z "$postdeps_CXX"; then
12559 postdeps_CXX="${prev}${p}"
12560 else
12561 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12566 *.$objext)
12567 # This assumes that the test object file only shows up
12568 # once in the compiler output.
12569 if test "$p" = "conftest.$objext"; then
12570 pre_test_object_deps_done=yes
12571 continue
12574 if test "$pre_test_object_deps_done" = no; then
12575 if test -z "$predep_objects_CXX"; then
12576 predep_objects_CXX="$p"
12577 else
12578 predep_objects_CXX="$predep_objects_CXX $p"
12580 else
12581 if test -z "$postdep_objects_CXX"; then
12582 postdep_objects_CXX="$p"
12583 else
12584 postdep_objects_CXX="$postdep_objects_CXX $p"
12589 *) ;; # Ignore the rest.
12591 esac
12592 done
12594 # Clean up.
12595 rm -f a.out a.exe
12596 else
12597 echo "libtool.m4: error: problem compiling CXX test program"
12600 $RM -f confest.$objext
12602 # PORTME: override above test on systems where it is broken
12603 case $host_os in
12604 interix[3-9]*)
12605 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12606 # hack all around it, let's just trust "g++" to DTRT.
12607 predep_objects_CXX=
12608 postdep_objects_CXX=
12609 postdeps_CXX=
12612 linux*)
12613 case `$CC -V 2>&1 | sed 5q` in
12614 *Sun\ C*)
12615 # Sun C++ 5.9
12617 # The more standards-conforming stlport4 library is
12618 # incompatible with the Cstd library. Avoid specifying
12619 # it if it's in CXXFLAGS. Ignore libCrun as
12620 # -library=stlport4 depends on it.
12621 case " $CXX $CXXFLAGS " in
12622 *" -library=stlport4 "*)
12623 solaris_use_stlport4=yes
12625 esac
12627 if test "$solaris_use_stlport4" != yes; then
12628 postdeps_CXX='-library=Cstd -library=Crun'
12631 esac
12634 solaris*)
12635 case $cc_basename in
12636 CC*)
12637 # The more standards-conforming stlport4 library is
12638 # incompatible with the Cstd library. Avoid specifying
12639 # it if it's in CXXFLAGS. Ignore libCrun as
12640 # -library=stlport4 depends on it.
12641 case " $CXX $CXXFLAGS " in
12642 *" -library=stlport4 "*)
12643 solaris_use_stlport4=yes
12645 esac
12647 # Adding this requires a known-good setup of shared libraries for
12648 # Sun compiler versions before 5.6, else PIC objects from an old
12649 # archive will be linked into the output, leading to subtle bugs.
12650 if test "$solaris_use_stlport4" != yes; then
12651 postdeps_CXX='-library=Cstd -library=Crun'
12654 esac
12656 esac
12659 case " $postdeps_CXX " in
12660 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12661 esac
12662 compiler_lib_search_dirs_CXX=
12663 if test -n "${compiler_lib_search_path_CXX}"; then
12664 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12697 lt_prog_compiler_wl_CXX=
12698 lt_prog_compiler_pic_CXX=
12699 lt_prog_compiler_static_CXX=
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12702 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12704 # C++ specific cases for pic, static, wl, etc.
12705 if test "$GXX" = yes; then
12706 lt_prog_compiler_wl_CXX='-Wl,'
12707 lt_prog_compiler_static_CXX='-static'
12709 case $host_os in
12710 aix*)
12711 # All AIX code is PIC.
12712 if test "$host_cpu" = ia64; then
12713 # AIX 5 now supports IA64 processor
12714 lt_prog_compiler_static_CXX='-Bstatic'
12718 amigaos*)
12719 case $host_cpu in
12720 powerpc)
12721 # see comment about AmigaOS4 .so support
12722 lt_prog_compiler_pic_CXX='-fPIC'
12724 m68k)
12725 # FIXME: we need at least 68020 code to build shared libraries, but
12726 # adding the `-m68020' flag to GCC prevents building anything better,
12727 # like `-m68040'.
12728 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12730 esac
12733 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12734 # PIC is the default for these OSes.
12736 mingw* | cygwin* | os2* | pw32* | cegcc*)
12737 # This hack is so that the source file can tell whether it is being
12738 # built for inclusion in a dll (and should export symbols for example).
12739 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12740 # (--disable-auto-import) libraries
12741 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12743 darwin* | rhapsody*)
12744 # PIC is the default on this platform
12745 # Common symbols not allowed in MH_DYLIB files
12746 lt_prog_compiler_pic_CXX='-fno-common'
12748 *djgpp*)
12749 # DJGPP does not support shared libraries at all
12750 lt_prog_compiler_pic_CXX=
12752 interix[3-9]*)
12753 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12754 # Instead, we relocate shared libraries at runtime.
12756 sysv4*MP*)
12757 if test -d /usr/nec; then
12758 lt_prog_compiler_pic_CXX=-Kconform_pic
12761 hpux*)
12762 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12763 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12764 # sets the default TLS model and affects inlining.
12765 case $host_cpu in
12766 hppa*64*)
12769 lt_prog_compiler_pic_CXX='-fPIC'
12771 esac
12773 *qnx* | *nto*)
12774 # QNX uses GNU C++, but need to define -shared option too, otherwise
12775 # it will coredump.
12776 lt_prog_compiler_pic_CXX='-fPIC -shared'
12779 lt_prog_compiler_pic_CXX='-fPIC'
12781 esac
12782 else
12783 case $host_os in
12784 aix[4-9]*)
12785 # All AIX code is PIC.
12786 if test "$host_cpu" = ia64; then
12787 # AIX 5 now supports IA64 processor
12788 lt_prog_compiler_static_CXX='-Bstatic'
12789 else
12790 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12793 chorus*)
12794 case $cc_basename in
12795 cxch68*)
12796 # Green Hills C++ Compiler
12797 # _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"
12799 esac
12801 dgux*)
12802 case $cc_basename in
12803 ec++*)
12804 lt_prog_compiler_pic_CXX='-KPIC'
12806 ghcx*)
12807 # Green Hills C++ Compiler
12808 lt_prog_compiler_pic_CXX='-pic'
12812 esac
12814 freebsd* | dragonfly*)
12815 # FreeBSD uses GNU C++
12817 hpux9* | hpux10* | hpux11*)
12818 case $cc_basename in
12819 CC*)
12820 lt_prog_compiler_wl_CXX='-Wl,'
12821 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12822 if test "$host_cpu" != ia64; then
12823 lt_prog_compiler_pic_CXX='+Z'
12826 aCC*)
12827 lt_prog_compiler_wl_CXX='-Wl,'
12828 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12829 case $host_cpu in
12830 hppa*64*|ia64*)
12831 # +Z the default
12834 lt_prog_compiler_pic_CXX='+Z'
12836 esac
12840 esac
12842 interix*)
12843 # This is c89, which is MS Visual C++ (no shared libs)
12844 # Anyone wants to do a port?
12846 irix5* | irix6* | nonstopux*)
12847 case $cc_basename in
12848 CC*)
12849 lt_prog_compiler_wl_CXX='-Wl,'
12850 lt_prog_compiler_static_CXX='-non_shared'
12851 # CC pic flag -KPIC is the default.
12855 esac
12857 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12858 case $cc_basename in
12859 KCC*)
12860 # KAI C++ Compiler
12861 lt_prog_compiler_wl_CXX='--backend -Wl,'
12862 lt_prog_compiler_pic_CXX='-fPIC'
12864 ecpc* )
12865 # old Intel C++ for x86_64 which still supported -KPIC.
12866 lt_prog_compiler_wl_CXX='-Wl,'
12867 lt_prog_compiler_pic_CXX='-KPIC'
12868 lt_prog_compiler_static_CXX='-static'
12870 icpc* )
12871 # Intel C++, used to be incompatible with GCC.
12872 # ICC 10 doesn't accept -KPIC any more.
12873 lt_prog_compiler_wl_CXX='-Wl,'
12874 lt_prog_compiler_pic_CXX='-fPIC'
12875 lt_prog_compiler_static_CXX='-static'
12877 pgCC* | pgcpp*)
12878 # Portland Group C++ compiler
12879 lt_prog_compiler_wl_CXX='-Wl,'
12880 lt_prog_compiler_pic_CXX='-fpic'
12881 lt_prog_compiler_static_CXX='-Bstatic'
12883 cxx*)
12884 # Compaq C++
12885 # Make sure the PIC flag is empty. It appears that all Alpha
12886 # Linux and Compaq Tru64 Unix objects are PIC.
12887 lt_prog_compiler_pic_CXX=
12888 lt_prog_compiler_static_CXX='-non_shared'
12890 xlc* | xlC*)
12891 # IBM XL 8.0 on PPC
12892 lt_prog_compiler_wl_CXX='-Wl,'
12893 lt_prog_compiler_pic_CXX='-qpic'
12894 lt_prog_compiler_static_CXX='-qstaticlink'
12897 case `$CC -V 2>&1 | sed 5q` in
12898 *Sun\ C*)
12899 # Sun C++ 5.9
12900 lt_prog_compiler_pic_CXX='-KPIC'
12901 lt_prog_compiler_static_CXX='-Bstatic'
12902 lt_prog_compiler_wl_CXX='-Qoption ld '
12904 esac
12906 esac
12908 lynxos*)
12910 m88k*)
12912 mvs*)
12913 case $cc_basename in
12914 cxx*)
12915 lt_prog_compiler_pic_CXX='-W c,exportall'
12919 esac
12921 netbsd* | netbsdelf*-gnu)
12923 *qnx* | *nto*)
12924 # QNX uses GNU C++, but need to define -shared option too, otherwise
12925 # it will coredump.
12926 lt_prog_compiler_pic_CXX='-fPIC -shared'
12928 osf3* | osf4* | osf5*)
12929 case $cc_basename in
12930 KCC*)
12931 lt_prog_compiler_wl_CXX='--backend -Wl,'
12933 RCC*)
12934 # Rational C++ 2.4.1
12935 lt_prog_compiler_pic_CXX='-pic'
12937 cxx*)
12938 # Digital/Compaq C++
12939 lt_prog_compiler_wl_CXX='-Wl,'
12940 # Make sure the PIC flag is empty. It appears that all Alpha
12941 # Linux and Compaq Tru64 Unix objects are PIC.
12942 lt_prog_compiler_pic_CXX=
12943 lt_prog_compiler_static_CXX='-non_shared'
12947 esac
12949 psos*)
12951 solaris*)
12952 case $cc_basename in
12953 CC*)
12954 # Sun C++ 4.2, 5.x and Centerline C++
12955 lt_prog_compiler_pic_CXX='-KPIC'
12956 lt_prog_compiler_static_CXX='-Bstatic'
12957 lt_prog_compiler_wl_CXX='-Qoption ld '
12959 gcx*)
12960 # Green Hills C++ Compiler
12961 lt_prog_compiler_pic_CXX='-PIC'
12965 esac
12967 sunos4*)
12968 case $cc_basename in
12969 CC*)
12970 # Sun C++ 4.x
12971 lt_prog_compiler_pic_CXX='-pic'
12972 lt_prog_compiler_static_CXX='-Bstatic'
12974 lcc*)
12975 # Lucid
12976 lt_prog_compiler_pic_CXX='-pic'
12980 esac
12982 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12983 case $cc_basename in
12984 CC*)
12985 lt_prog_compiler_wl_CXX='-Wl,'
12986 lt_prog_compiler_pic_CXX='-KPIC'
12987 lt_prog_compiler_static_CXX='-Bstatic'
12989 esac
12991 tandem*)
12992 case $cc_basename in
12993 NCC*)
12994 # NonStop-UX NCC 3.20
12995 lt_prog_compiler_pic_CXX='-KPIC'
12999 esac
13001 vxworks*)
13004 lt_prog_compiler_can_build_shared_CXX=no
13006 esac
13009 case $host_os in
13010 # For platforms which do not support PIC, -DPIC is meaningless:
13011 *djgpp*)
13012 lt_prog_compiler_pic_CXX=
13015 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13017 esac
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13019 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13024 # Check to make sure the PIC flag actually works.
13026 if test -n "$lt_prog_compiler_pic_CXX"; then
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13028 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13029 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13030 $as_echo_n "(cached) " >&6
13031 else
13032 lt_cv_prog_compiler_pic_works_CXX=no
13033 ac_outfile=conftest.$ac_objext
13034 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13035 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13036 # Insert the option either (1) after the last *FLAGS variable, or
13037 # (2) before a word containing "conftest.", or (3) at the end.
13038 # Note that $ac_compile itself does not contain backslashes and begins
13039 # with a dollar sign (not a hyphen), so the echo should work correctly.
13040 # The option is referenced via a variable to avoid confusing sed.
13041 lt_compile=`echo "$ac_compile" | $SED \
13042 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13043 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13044 -e 's:$: $lt_compiler_flag:'`
13045 (eval echo "\"\$as_me:13045: $lt_compile\"" >&5)
13046 (eval "$lt_compile" 2>conftest.err)
13047 ac_status=$?
13048 cat conftest.err >&5
13049 echo "$as_me:13049: \$? = $ac_status" >&5
13050 if (exit $ac_status) && test -s "$ac_outfile"; then
13051 # The compiler can only warn and ignore the option if not recognized
13052 # So say no if there are warnings other than the usual output.
13053 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13054 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13055 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13056 lt_cv_prog_compiler_pic_works_CXX=yes
13059 $RM conftest*
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13063 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13065 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13066 case $lt_prog_compiler_pic_CXX in
13067 "" | " "*) ;;
13068 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13069 esac
13070 else
13071 lt_prog_compiler_pic_CXX=
13072 lt_prog_compiler_can_build_shared_CXX=no
13080 # Check to make sure the static flag actually works.
13082 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13084 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13085 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13086 $as_echo_n "(cached) " >&6
13087 else
13088 lt_cv_prog_compiler_static_works_CXX=no
13089 save_LDFLAGS="$LDFLAGS"
13090 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13091 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13092 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13093 # The linker can only warn and ignore the option if not recognized
13094 # So say no if there are warnings
13095 if test -s conftest.err; then
13096 # Append any errors to the config.log.
13097 cat conftest.err 1>&5
13098 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13099 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13100 if diff conftest.exp conftest.er2 >/dev/null; then
13101 lt_cv_prog_compiler_static_works_CXX=yes
13103 else
13104 lt_cv_prog_compiler_static_works_CXX=yes
13107 $RM -r conftest*
13108 LDFLAGS="$save_LDFLAGS"
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13112 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13114 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13116 else
13117 lt_prog_compiler_static_CXX=
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13124 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13125 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13126 $as_echo_n "(cached) " >&6
13127 else
13128 lt_cv_prog_compiler_c_o_CXX=no
13129 $RM -r conftest 2>/dev/null
13130 mkdir conftest
13131 cd conftest
13132 mkdir out
13133 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13135 lt_compiler_flag="-o out/conftest2.$ac_objext"
13136 # Insert the option either (1) after the last *FLAGS variable, or
13137 # (2) before a word containing "conftest.", or (3) at the end.
13138 # Note that $ac_compile itself does not contain backslashes and begins
13139 # with a dollar sign (not a hyphen), so the echo should work correctly.
13140 lt_compile=`echo "$ac_compile" | $SED \
13141 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13142 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13143 -e 's:$: $lt_compiler_flag:'`
13144 (eval echo "\"\$as_me:13144: $lt_compile\"" >&5)
13145 (eval "$lt_compile" 2>out/conftest.err)
13146 ac_status=$?
13147 cat out/conftest.err >&5
13148 echo "$as_me:13148: \$? = $ac_status" >&5
13149 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13150 then
13151 # The compiler can only warn and ignore the option if not recognized
13152 # So say no if there are warnings
13153 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13154 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13155 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13156 lt_cv_prog_compiler_c_o_CXX=yes
13159 chmod u+w . 2>&5
13160 $RM conftest*
13161 # SGI C++ compiler will create directory out/ii_files/ for
13162 # template instantiation
13163 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13164 $RM out/* && rmdir out
13165 cd ..
13166 $RM -r conftest
13167 $RM conftest*
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13171 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13176 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13177 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13178 $as_echo_n "(cached) " >&6
13179 else
13180 lt_cv_prog_compiler_c_o_CXX=no
13181 $RM -r conftest 2>/dev/null
13182 mkdir conftest
13183 cd conftest
13184 mkdir out
13185 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13187 lt_compiler_flag="-o out/conftest2.$ac_objext"
13188 # Insert the option either (1) after the last *FLAGS variable, or
13189 # (2) before a word containing "conftest.", or (3) at the end.
13190 # Note that $ac_compile itself does not contain backslashes and begins
13191 # with a dollar sign (not a hyphen), so the echo should work correctly.
13192 lt_compile=`echo "$ac_compile" | $SED \
13193 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13194 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13195 -e 's:$: $lt_compiler_flag:'`
13196 (eval echo "\"\$as_me:13196: $lt_compile\"" >&5)
13197 (eval "$lt_compile" 2>out/conftest.err)
13198 ac_status=$?
13199 cat out/conftest.err >&5
13200 echo "$as_me:13200: \$? = $ac_status" >&5
13201 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13202 then
13203 # The compiler can only warn and ignore the option if not recognized
13204 # So say no if there are warnings
13205 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13206 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13207 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13208 lt_cv_prog_compiler_c_o_CXX=yes
13211 chmod u+w . 2>&5
13212 $RM conftest*
13213 # SGI C++ compiler will create directory out/ii_files/ for
13214 # template instantiation
13215 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13216 $RM out/* && rmdir out
13217 cd ..
13218 $RM -r conftest
13219 $RM conftest*
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13223 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13228 hard_links="nottested"
13229 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13230 # do not overwrite the value of need_locks provided by the user
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13232 $as_echo_n "checking if we can lock with hard links... " >&6; }
13233 hard_links=yes
13234 $RM conftest*
13235 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13236 touch conftest.a
13237 ln conftest.a conftest.b 2>&5 || hard_links=no
13238 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13240 $as_echo "$hard_links" >&6; }
13241 if test "$hard_links" = no; then
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13243 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13244 need_locks=warn
13246 else
13247 need_locks=no
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13253 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13255 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13256 case $host_os in
13257 aix[4-9]*)
13258 # If we're using GNU nm, then we don't want the "-C" option.
13259 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13260 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13261 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'
13262 else
13263 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'
13266 pw32*)
13267 export_symbols_cmds_CXX="$ltdll_cmds"
13269 cygwin* | mingw* | cegcc*)
13270 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'
13272 linux* | k*bsd*-gnu)
13273 link_all_deplibs_CXX=no
13276 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13278 esac
13279 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13282 $as_echo "$ld_shlibs_CXX" >&6; }
13283 test "$ld_shlibs_CXX" = no && can_build_shared=no
13285 with_gnu_ld_CXX=$with_gnu_ld
13293 # Do we need to explicitly link libc?
13295 case "x$archive_cmds_need_lc_CXX" in
13296 x|xyes)
13297 # Assume -lc should be added
13298 archive_cmds_need_lc_CXX=yes
13300 if test "$enable_shared" = yes && test "$GCC" = yes; then
13301 case $archive_cmds_CXX in
13302 *'~'*)
13303 # FIXME: we may have to deal with multi-command sequences.
13305 '$CC '*)
13306 # Test whether the compiler implicitly links with -lc since on some
13307 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13308 # to ld, don't add -lc before -lgcc.
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13310 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13311 $RM conftest*
13312 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13314 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13315 (eval $ac_compile) 2>&5
13316 ac_status=$?
13317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13318 test $ac_status = 0; } 2>conftest.err; then
13319 soname=conftest
13320 lib=conftest
13321 libobjs=conftest.$ac_objext
13322 deplibs=
13323 wl=$lt_prog_compiler_wl_CXX
13324 pic_flag=$lt_prog_compiler_pic_CXX
13325 compiler_flags=-v
13326 linker_flags=-v
13327 verstring=
13328 output_objdir=.
13329 libname=conftest
13330 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13331 allow_undefined_flag_CXX=
13332 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13333 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13334 ac_status=$?
13335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13336 test $ac_status = 0; }
13337 then
13338 archive_cmds_need_lc_CXX=no
13339 else
13340 archive_cmds_need_lc_CXX=yes
13342 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13343 else
13344 cat conftest.err 1>&5
13346 $RM conftest*
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
13348 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
13350 esac
13353 esac
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13419 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13421 library_names_spec=
13422 libname_spec='lib$name'
13423 soname_spec=
13424 shrext_cmds=".so"
13425 postinstall_cmds=
13426 postuninstall_cmds=
13427 finish_cmds=
13428 finish_eval=
13429 shlibpath_var=
13430 shlibpath_overrides_runpath=unknown
13431 version_type=none
13432 dynamic_linker="$host_os ld.so"
13433 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13434 need_lib_prefix=unknown
13435 hardcode_into_libs=no
13437 # when you set need_version to no, make sure it does not cause -set_version
13438 # flags to be left without arguments
13439 need_version=unknown
13441 case $host_os in
13442 aix3*)
13443 version_type=linux
13444 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13445 shlibpath_var=LIBPATH
13447 # AIX 3 has no versioning support, so we append a major version to the name.
13448 soname_spec='${libname}${release}${shared_ext}$major'
13451 aix[4-9]*)
13452 version_type=linux
13453 need_lib_prefix=no
13454 need_version=no
13455 hardcode_into_libs=yes
13456 if test "$host_cpu" = ia64; then
13457 # AIX 5 supports IA64
13458 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13459 shlibpath_var=LD_LIBRARY_PATH
13460 else
13461 # With GCC up to 2.95.x, collect2 would create an import file
13462 # for dependence libraries. The import file would start with
13463 # the line `#! .'. This would cause the generated library to
13464 # depend on `.', always an invalid library. This was fixed in
13465 # development snapshots of GCC prior to 3.0.
13466 case $host_os in
13467 aix4 | aix4.[01] | aix4.[01].*)
13468 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13469 echo ' yes '
13470 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13472 else
13473 can_build_shared=no
13476 esac
13477 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13478 # soname into executable. Probably we can add versioning support to
13479 # collect2, so additional links can be useful in future.
13480 if test "$aix_use_runtimelinking" = yes; then
13481 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13482 # instead of lib<name>.a to let people know that these are not
13483 # typical AIX shared libraries.
13484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13485 else
13486 # We preserve .a as extension for shared libraries through AIX4.2
13487 # and later when we are not doing run time linking.
13488 library_names_spec='${libname}${release}.a $libname.a'
13489 soname_spec='${libname}${release}${shared_ext}$major'
13491 shlibpath_var=LIBPATH
13495 amigaos*)
13496 case $host_cpu in
13497 powerpc)
13498 # Since July 2007 AmigaOS4 officially supports .so libraries.
13499 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13502 m68k)
13503 library_names_spec='$libname.ixlibrary $libname.a'
13504 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13505 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'
13507 esac
13510 beos*)
13511 library_names_spec='${libname}${shared_ext}'
13512 dynamic_linker="$host_os ld.so"
13513 shlibpath_var=LIBRARY_PATH
13516 bsdi[45]*)
13517 version_type=linux
13518 need_version=no
13519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13520 soname_spec='${libname}${release}${shared_ext}$major'
13521 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13522 shlibpath_var=LD_LIBRARY_PATH
13523 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13524 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13525 # the default ld.so.conf also contains /usr/contrib/lib and
13526 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13527 # libtool to hard-code these into programs
13530 cygwin* | mingw* | pw32* | cegcc*)
13531 version_type=windows
13532 shrext_cmds=".dll"
13533 need_version=no
13534 need_lib_prefix=no
13536 case $GCC,$host_os in
13537 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13538 library_names_spec='$libname.dll.a'
13539 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13540 postinstall_cmds='base_file=`basename \${file}`~
13541 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13542 dldir=$destdir/`dirname \$dlpath`~
13543 test -d \$dldir || mkdir -p \$dldir~
13544 $install_prog $dir/$dlname \$dldir/$dlname~
13545 chmod a+x \$dldir/$dlname~
13546 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13547 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13549 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13550 dlpath=$dir/\$dldll~
13551 $RM \$dlpath'
13552 shlibpath_overrides_runpath=yes
13554 case $host_os in
13555 cygwin*)
13556 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13557 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13558 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13560 mingw* | cegcc*)
13561 # MinGW DLLs use traditional 'lib' prefix
13562 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13563 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13564 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13565 # It is most probably a Windows format PATH printed by
13566 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13567 # path with ; separators, and with drive letters. We can handle the
13568 # drive letters (cygwin fileutils understands them), so leave them,
13569 # especially as we might pass files found there to a mingw objdump,
13570 # which wouldn't understand a cygwinified path. Ahh.
13571 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13572 else
13573 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13576 pw32*)
13577 # pw32 DLLs use 'pw' prefix rather than 'lib'
13578 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13580 esac
13584 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13586 esac
13587 dynamic_linker='Win32 ld.exe'
13588 # FIXME: first we should search . and the directory the executable is in
13589 shlibpath_var=PATH
13592 darwin* | rhapsody*)
13593 dynamic_linker="$host_os dyld"
13594 version_type=darwin
13595 need_lib_prefix=no
13596 need_version=no
13597 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13598 soname_spec='${libname}${release}${major}$shared_ext'
13599 shlibpath_overrides_runpath=yes
13600 shlibpath_var=DYLD_LIBRARY_PATH
13601 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13603 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13606 dgux*)
13607 version_type=linux
13608 need_lib_prefix=no
13609 need_version=no
13610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13611 soname_spec='${libname}${release}${shared_ext}$major'
13612 shlibpath_var=LD_LIBRARY_PATH
13615 freebsd1*)
13616 dynamic_linker=no
13619 freebsd* | dragonfly*)
13620 # DragonFly does not have aout. When/if they implement a new
13621 # versioning mechanism, adjust this.
13622 if test -x /usr/bin/objformat; then
13623 objformat=`/usr/bin/objformat`
13624 else
13625 case $host_os in
13626 freebsd[123]*) objformat=aout ;;
13627 *) objformat=elf ;;
13628 esac
13630 version_type=freebsd-$objformat
13631 case $version_type in
13632 freebsd-elf*)
13633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13634 need_version=no
13635 need_lib_prefix=no
13637 freebsd-*)
13638 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13639 need_version=yes
13641 esac
13642 shlibpath_var=LD_LIBRARY_PATH
13643 case $host_os in
13644 freebsd2*)
13645 shlibpath_overrides_runpath=yes
13647 freebsd3.[01]* | freebsdelf3.[01]*)
13648 shlibpath_overrides_runpath=yes
13649 hardcode_into_libs=yes
13651 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13652 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13653 shlibpath_overrides_runpath=no
13654 hardcode_into_libs=yes
13656 *) # from 4.6 on, and DragonFly
13657 shlibpath_overrides_runpath=yes
13658 hardcode_into_libs=yes
13660 esac
13663 gnu*)
13664 version_type=linux
13665 need_lib_prefix=no
13666 need_version=no
13667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13668 soname_spec='${libname}${release}${shared_ext}$major'
13669 shlibpath_var=LD_LIBRARY_PATH
13670 hardcode_into_libs=yes
13673 hpux9* | hpux10* | hpux11*)
13674 # Give a soname corresponding to the major version so that dld.sl refuses to
13675 # link against other versions.
13676 version_type=sunos
13677 need_lib_prefix=no
13678 need_version=no
13679 case $host_cpu in
13680 ia64*)
13681 shrext_cmds='.so'
13682 hardcode_into_libs=yes
13683 dynamic_linker="$host_os dld.so"
13684 shlibpath_var=LD_LIBRARY_PATH
13685 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13687 soname_spec='${libname}${release}${shared_ext}$major'
13688 if test "X$HPUX_IA64_MODE" = X32; then
13689 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13690 else
13691 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13693 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13695 hppa*64*)
13696 shrext_cmds='.sl'
13697 hardcode_into_libs=yes
13698 dynamic_linker="$host_os dld.sl"
13699 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13700 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13702 soname_spec='${libname}${release}${shared_ext}$major'
13703 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13704 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13707 shrext_cmds='.sl'
13708 dynamic_linker="$host_os dld.sl"
13709 shlibpath_var=SHLIB_PATH
13710 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13712 soname_spec='${libname}${release}${shared_ext}$major'
13714 esac
13715 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13716 postinstall_cmds='chmod 555 $lib'
13719 interix[3-9]*)
13720 version_type=linux
13721 need_lib_prefix=no
13722 need_version=no
13723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13724 soname_spec='${libname}${release}${shared_ext}$major'
13725 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13726 shlibpath_var=LD_LIBRARY_PATH
13727 shlibpath_overrides_runpath=no
13728 hardcode_into_libs=yes
13731 irix5* | irix6* | nonstopux*)
13732 case $host_os in
13733 nonstopux*) version_type=nonstopux ;;
13735 if test "$lt_cv_prog_gnu_ld" = yes; then
13736 version_type=linux
13737 else
13738 version_type=irix
13739 fi ;;
13740 esac
13741 need_lib_prefix=no
13742 need_version=no
13743 soname_spec='${libname}${release}${shared_ext}$major'
13744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13745 case $host_os in
13746 irix5* | nonstopux*)
13747 libsuff= shlibsuff=
13750 case $LD in # libtool.m4 will add one of these switches to LD
13751 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13752 libsuff= shlibsuff= libmagic=32-bit;;
13753 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13754 libsuff=32 shlibsuff=N32 libmagic=N32;;
13755 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13756 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13757 *) libsuff= shlibsuff= libmagic=never-match;;
13758 esac
13760 esac
13761 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13762 shlibpath_overrides_runpath=no
13763 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13764 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13765 hardcode_into_libs=yes
13768 # No shared lib support for Linux oldld, aout, or coff.
13769 linux*oldld* | linux*aout* | linux*coff*)
13770 dynamic_linker=no
13773 # This must be Linux ELF.
13774 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13775 version_type=linux
13776 need_lib_prefix=no
13777 need_version=no
13778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13779 soname_spec='${libname}${release}${shared_ext}$major'
13780 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13781 shlibpath_var=LD_LIBRARY_PATH
13782 shlibpath_overrides_runpath=no
13783 # Some binutils ld are patched to set DT_RUNPATH
13784 save_LDFLAGS=$LDFLAGS
13785 save_libdir=$libdir
13786 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13787 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
13788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13789 /* end confdefs.h. */
13792 main ()
13796 return 0;
13798 _ACEOF
13799 if ac_fn_cxx_try_link "$LINENO"; then :
13800 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13801 shlibpath_overrides_runpath=yes
13804 rm -f core conftest.err conftest.$ac_objext \
13805 conftest$ac_exeext conftest.$ac_ext
13806 LDFLAGS=$save_LDFLAGS
13807 libdir=$save_libdir
13809 # This implies no fast_install, which is unacceptable.
13810 # Some rework will be needed to allow for fast_install
13811 # before this can be enabled.
13812 hardcode_into_libs=yes
13814 # Append ld.so.conf contents to the search path
13815 if test -f /etc/ld.so.conf; then
13816 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' ' '`
13817 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13820 # We used to test for /lib/ld.so.1 and disable shared libraries on
13821 # powerpc, because MkLinux only supported shared libraries with the
13822 # GNU dynamic linker. Since this was broken with cross compilers,
13823 # most powerpc-linux boxes support dynamic linking these days and
13824 # people can always --disable-shared, the test was removed, and we
13825 # assume the GNU/Linux dynamic linker is in use.
13826 dynamic_linker='GNU/Linux ld.so'
13829 netbsdelf*-gnu)
13830 version_type=linux
13831 need_lib_prefix=no
13832 need_version=no
13833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13834 soname_spec='${libname}${release}${shared_ext}$major'
13835 shlibpath_var=LD_LIBRARY_PATH
13836 shlibpath_overrides_runpath=no
13837 hardcode_into_libs=yes
13838 dynamic_linker='NetBSD ld.elf_so'
13841 netbsd*)
13842 version_type=sunos
13843 need_lib_prefix=no
13844 need_version=no
13845 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13847 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13848 dynamic_linker='NetBSD (a.out) ld.so'
13849 else
13850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13851 soname_spec='${libname}${release}${shared_ext}$major'
13852 dynamic_linker='NetBSD ld.elf_so'
13854 shlibpath_var=LD_LIBRARY_PATH
13855 shlibpath_overrides_runpath=yes
13856 hardcode_into_libs=yes
13859 newsos6)
13860 version_type=linux
13861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13862 shlibpath_var=LD_LIBRARY_PATH
13863 shlibpath_overrides_runpath=yes
13866 *nto* | *qnx*)
13867 version_type=qnx
13868 need_lib_prefix=no
13869 need_version=no
13870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13871 soname_spec='${libname}${release}${shared_ext}$major'
13872 shlibpath_var=LD_LIBRARY_PATH
13873 shlibpath_overrides_runpath=no
13874 hardcode_into_libs=yes
13875 dynamic_linker='ldqnx.so'
13878 openbsd*)
13879 version_type=sunos
13880 sys_lib_dlsearch_path_spec="/usr/lib"
13881 need_lib_prefix=no
13882 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13883 case $host_os in
13884 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13885 *) need_version=no ;;
13886 esac
13887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13888 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13889 shlibpath_var=LD_LIBRARY_PATH
13890 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13891 case $host_os in
13892 openbsd2.[89] | openbsd2.[89].*)
13893 shlibpath_overrides_runpath=no
13896 shlibpath_overrides_runpath=yes
13898 esac
13899 else
13900 shlibpath_overrides_runpath=yes
13904 os2*)
13905 libname_spec='$name'
13906 shrext_cmds=".dll"
13907 need_lib_prefix=no
13908 library_names_spec='$libname${shared_ext} $libname.a'
13909 dynamic_linker='OS/2 ld.exe'
13910 shlibpath_var=LIBPATH
13913 osf3* | osf4* | osf5*)
13914 version_type=osf
13915 need_lib_prefix=no
13916 need_version=no
13917 soname_spec='${libname}${release}${shared_ext}$major'
13918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13919 shlibpath_var=LD_LIBRARY_PATH
13920 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13921 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13924 rdos*)
13925 dynamic_linker=no
13928 solaris*)
13929 version_type=linux
13930 need_lib_prefix=no
13931 need_version=no
13932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13933 soname_spec='${libname}${release}${shared_ext}$major'
13934 shlibpath_var=LD_LIBRARY_PATH
13935 shlibpath_overrides_runpath=yes
13936 hardcode_into_libs=yes
13937 # ldd complains unless libraries are executable
13938 postinstall_cmds='chmod +x $lib'
13941 sunos4*)
13942 version_type=sunos
13943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13944 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13945 shlibpath_var=LD_LIBRARY_PATH
13946 shlibpath_overrides_runpath=yes
13947 if test "$with_gnu_ld" = yes; then
13948 need_lib_prefix=no
13950 need_version=yes
13953 sysv4 | sysv4.3*)
13954 version_type=linux
13955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13956 soname_spec='${libname}${release}${shared_ext}$major'
13957 shlibpath_var=LD_LIBRARY_PATH
13958 case $host_vendor in
13959 sni)
13960 shlibpath_overrides_runpath=no
13961 need_lib_prefix=no
13962 runpath_var=LD_RUN_PATH
13964 siemens)
13965 need_lib_prefix=no
13967 motorola)
13968 need_lib_prefix=no
13969 need_version=no
13970 shlibpath_overrides_runpath=no
13971 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13973 esac
13976 sysv4*MP*)
13977 if test -d /usr/nec ;then
13978 version_type=linux
13979 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13980 soname_spec='$libname${shared_ext}.$major'
13981 shlibpath_var=LD_LIBRARY_PATH
13985 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13986 version_type=freebsd-elf
13987 need_lib_prefix=no
13988 need_version=no
13989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13990 soname_spec='${libname}${release}${shared_ext}$major'
13991 shlibpath_var=LD_LIBRARY_PATH
13992 shlibpath_overrides_runpath=yes
13993 hardcode_into_libs=yes
13994 if test "$with_gnu_ld" = yes; then
13995 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13996 else
13997 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13998 case $host_os in
13999 sco3.2v5*)
14000 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14002 esac
14004 sys_lib_dlsearch_path_spec='/usr/lib'
14007 tpf*)
14008 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14009 version_type=linux
14010 need_lib_prefix=no
14011 need_version=no
14012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14013 shlibpath_var=LD_LIBRARY_PATH
14014 shlibpath_overrides_runpath=no
14015 hardcode_into_libs=yes
14018 uts4*)
14019 version_type=linux
14020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14021 soname_spec='${libname}${release}${shared_ext}$major'
14022 shlibpath_var=LD_LIBRARY_PATH
14026 dynamic_linker=no
14028 esac
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14030 $as_echo "$dynamic_linker" >&6; }
14031 test "$dynamic_linker" = no && can_build_shared=no
14033 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14034 if test "$GCC" = yes; then
14035 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14038 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14039 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14041 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14042 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14081 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14082 hardcode_action_CXX=
14083 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14084 test -n "$runpath_var_CXX" ||
14085 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14087 # We can hardcode non-existent directories.
14088 if test "$hardcode_direct_CXX" != no &&
14089 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14090 # have to relink, otherwise we might link with an installed library
14091 # when we should be linking with a yet-to-be-installed one
14092 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14093 test "$hardcode_minus_L_CXX" != no; then
14094 # Linking always hardcodes the temporary library directory.
14095 hardcode_action_CXX=relink
14096 else
14097 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14098 hardcode_action_CXX=immediate
14100 else
14101 # We cannot hardcode anything, or else we can only hardcode existing
14102 # directories.
14103 hardcode_action_CXX=unsupported
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14106 $as_echo "$hardcode_action_CXX" >&6; }
14108 if test "$hardcode_action_CXX" = relink ||
14109 test "$inherit_rpath_CXX" = yes; then
14110 # Fast installation is not supported
14111 enable_fast_install=no
14112 elif test "$shlibpath_overrides_runpath" = yes ||
14113 test "$enable_shared" = no; then
14114 # Fast installation is not necessary
14115 enable_fast_install=needless
14124 fi # test -n "$compiler"
14126 CC=$lt_save_CC
14127 LDCXX=$LD
14128 LD=$lt_save_LD
14129 GCC=$lt_save_GCC
14130 with_gnu_ld=$lt_save_with_gnu_ld
14131 lt_cv_path_LDCXX=$lt_cv_path_LD
14132 lt_cv_path_LD=$lt_save_path_LD
14133 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14134 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14135 fi # test "$_lt_caught_CXX_error" != yes
14137 ac_ext=c
14138 ac_cpp='$CPP $CPPFLAGS'
14139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14155 ac_config_commands="$ac_config_commands libtool"
14160 # Only expand once:
14165 if test "x$CC" != xcc; then
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
14167 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
14168 else
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
14170 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
14172 set dummy $CC; ac_cc=`$as_echo "$2" |
14173 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
14174 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
14175 $as_echo_n "(cached) " >&6
14176 else
14177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14178 /* end confdefs.h. */
14181 main ()
14185 return 0;
14187 _ACEOF
14188 # Make sure it works both with $CC and with simple cc.
14189 # We do the test twice because some compilers refuse to overwrite an
14190 # existing .o file with -o, though they will create one.
14191 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
14192 rm -f conftest2.*
14193 if { { case "(($ac_try" in
14194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14195 *) ac_try_echo=$ac_try;;
14196 esac
14197 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14198 $as_echo "$ac_try_echo"; } >&5
14199 (eval "$ac_try") 2>&5
14200 ac_status=$?
14201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14202 test $ac_status = 0; } &&
14203 test -f conftest2.$ac_objext && { { case "(($ac_try" in
14204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14205 *) ac_try_echo=$ac_try;;
14206 esac
14207 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14208 $as_echo "$ac_try_echo"; } >&5
14209 (eval "$ac_try") 2>&5
14210 ac_status=$?
14211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14212 test $ac_status = 0; };
14213 then
14214 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
14215 if test "x$CC" != xcc; then
14216 # Test first that cc exists at all.
14217 if { ac_try='cc -c conftest.$ac_ext >&5'
14218 { { case "(($ac_try" in
14219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14220 *) ac_try_echo=$ac_try;;
14221 esac
14222 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14223 $as_echo "$ac_try_echo"; } >&5
14224 (eval "$ac_try") 2>&5
14225 ac_status=$?
14226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14227 test $ac_status = 0; }; }; then
14228 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
14229 rm -f conftest2.*
14230 if { { case "(($ac_try" in
14231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14232 *) ac_try_echo=$ac_try;;
14233 esac
14234 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14235 $as_echo "$ac_try_echo"; } >&5
14236 (eval "$ac_try") 2>&5
14237 ac_status=$?
14238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14239 test $ac_status = 0; } &&
14240 test -f conftest2.$ac_objext && { { case "(($ac_try" in
14241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14242 *) ac_try_echo=$ac_try;;
14243 esac
14244 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14245 $as_echo "$ac_try_echo"; } >&5
14246 (eval "$ac_try") 2>&5
14247 ac_status=$?
14248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14249 test $ac_status = 0; };
14250 then
14251 # cc works too.
14253 else
14254 # cc exists but doesn't like -o.
14255 eval ac_cv_prog_cc_${ac_cc}_c_o=no
14259 else
14260 eval ac_cv_prog_cc_${ac_cc}_c_o=no
14262 rm -f core conftest*
14265 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14267 $as_echo "yes" >&6; }
14268 else
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14270 $as_echo "no" >&6; }
14272 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
14276 # expand $ac_aux_dir to an absolute path
14277 am_aux_dir=`cd $ac_aux_dir && pwd`
14279 # FIXME: we rely on the cache variable name because
14280 # there is no other way.
14281 set dummy $CC
14282 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
14283 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
14284 if test "$am_t" != yes; then
14285 # Losing compiler, so override with the script.
14286 # FIXME: It is wrong to rewrite CC.
14287 # But if we don't then we get into trouble of one sort or another.
14288 # A longer-term fix would be to have automake use am__CC in this case,
14289 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
14290 CC="$am_aux_dir/compile $CC"
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14296 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14297 if test "${ac_cv_c_bigendian+set}" = set; then :
14298 $as_echo_n "(cached) " >&6
14299 else
14300 ac_cv_c_bigendian=unknown
14301 # See if we're dealing with a universal compiler.
14302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14303 /* end confdefs.h. */
14304 #ifndef __APPLE_CC__
14305 not a universal capable compiler
14306 #endif
14307 typedef int dummy;
14309 _ACEOF
14310 if ac_fn_c_try_compile "$LINENO"; then :
14312 # Check for potential -arch flags. It is not universal unless
14313 # there are at least two -arch flags with different values.
14314 ac_arch=
14315 ac_prev=
14316 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14317 if test -n "$ac_prev"; then
14318 case $ac_word in
14319 i?86 | x86_64 | ppc | ppc64)
14320 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14321 ac_arch=$ac_word
14322 else
14323 ac_cv_c_bigendian=universal
14324 break
14327 esac
14328 ac_prev=
14329 elif test "x$ac_word" = "x-arch"; then
14330 ac_prev=arch
14332 done
14334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14335 if test $ac_cv_c_bigendian = unknown; then
14336 # See if sys/param.h defines the BYTE_ORDER macro.
14337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14338 /* end confdefs.h. */
14339 #include <sys/types.h>
14340 #include <sys/param.h>
14343 main ()
14345 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14346 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14347 && LITTLE_ENDIAN)
14348 bogus endian macros
14349 #endif
14352 return 0;
14354 _ACEOF
14355 if ac_fn_c_try_compile "$LINENO"; then :
14356 # It does; now see whether it defined to BIG_ENDIAN or not.
14357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14358 /* end confdefs.h. */
14359 #include <sys/types.h>
14360 #include <sys/param.h>
14363 main ()
14365 #if BYTE_ORDER != BIG_ENDIAN
14366 not big endian
14367 #endif
14370 return 0;
14372 _ACEOF
14373 if ac_fn_c_try_compile "$LINENO"; then :
14374 ac_cv_c_bigendian=yes
14375 else
14376 ac_cv_c_bigendian=no
14378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14382 if test $ac_cv_c_bigendian = unknown; then
14383 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14385 /* end confdefs.h. */
14386 #include <limits.h>
14389 main ()
14391 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14392 bogus endian macros
14393 #endif
14396 return 0;
14398 _ACEOF
14399 if ac_fn_c_try_compile "$LINENO"; then :
14400 # It does; now see whether it defined to _BIG_ENDIAN or not.
14401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14402 /* end confdefs.h. */
14403 #include <limits.h>
14406 main ()
14408 #ifndef _BIG_ENDIAN
14409 not big endian
14410 #endif
14413 return 0;
14415 _ACEOF
14416 if ac_fn_c_try_compile "$LINENO"; then :
14417 ac_cv_c_bigendian=yes
14418 else
14419 ac_cv_c_bigendian=no
14421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14425 if test $ac_cv_c_bigendian = unknown; then
14426 # Compile a test program.
14427 if test "$cross_compiling" = yes; then :
14428 # Try to guess by grepping values from an object file.
14429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14430 /* end confdefs.h. */
14431 short int ascii_mm[] =
14432 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14433 short int ascii_ii[] =
14434 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14435 int use_ascii (int i) {
14436 return ascii_mm[i] + ascii_ii[i];
14438 short int ebcdic_ii[] =
14439 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14440 short int ebcdic_mm[] =
14441 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14442 int use_ebcdic (int i) {
14443 return ebcdic_mm[i] + ebcdic_ii[i];
14445 extern int foo;
14448 main ()
14450 return use_ascii (foo) == use_ebcdic (foo);
14452 return 0;
14454 _ACEOF
14455 if ac_fn_c_try_compile "$LINENO"; then :
14456 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14457 ac_cv_c_bigendian=yes
14459 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14460 if test "$ac_cv_c_bigendian" = unknown; then
14461 ac_cv_c_bigendian=no
14462 else
14463 # finding both strings is unlikely to happen, but who knows?
14464 ac_cv_c_bigendian=unknown
14468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14469 else
14470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14471 /* end confdefs.h. */
14472 $ac_includes_default
14474 main ()
14477 /* Are we little or big endian? From Harbison&Steele. */
14478 union
14480 long int l;
14481 char c[sizeof (long int)];
14482 } u;
14483 u.l = 1;
14484 return u.c[sizeof (long int) - 1] == 1;
14487 return 0;
14489 _ACEOF
14490 if ac_fn_c_try_run "$LINENO"; then :
14491 ac_cv_c_bigendian=no
14492 else
14493 ac_cv_c_bigendian=yes
14495 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14496 conftest.$ac_objext conftest.beam conftest.$ac_ext
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14502 $as_echo "$ac_cv_c_bigendian" >&6; }
14503 case $ac_cv_c_bigendian in #(
14504 yes)
14505 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14506 ;; #(
14508 ;; #(
14509 universal)
14511 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14513 ;; #(
14515 as_fn_error $? "unknown endianness
14516 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14517 esac
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14520 $as_echo_n "checking for inline... " >&6; }
14521 if test "${ac_cv_c_inline+set}" = set; then :
14522 $as_echo_n "(cached) " >&6
14523 else
14524 ac_cv_c_inline=no
14525 for ac_kw in inline __inline__ __inline; do
14526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14527 /* end confdefs.h. */
14528 #ifndef __cplusplus
14529 typedef int foo_t;
14530 static $ac_kw foo_t static_foo () {return 0; }
14531 $ac_kw foo_t foo () {return 0; }
14532 #endif
14534 _ACEOF
14535 if ac_fn_c_try_compile "$LINENO"; then :
14536 ac_cv_c_inline=$ac_kw
14538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14539 test "$ac_cv_c_inline" != no && break
14540 done
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14544 $as_echo "$ac_cv_c_inline" >&6; }
14546 case $ac_cv_c_inline in
14547 inline | yes) ;;
14549 case $ac_cv_c_inline in
14550 no) ac_val=;;
14551 *) ac_val=$ac_cv_c_inline;;
14552 esac
14553 cat >>confdefs.h <<_ACEOF
14554 #ifndef __cplusplus
14555 #define inline $ac_val
14556 #endif
14557 _ACEOF
14559 esac
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
14562 $as_echo_n "checking for working volatile... " >&6; }
14563 if test "${ac_cv_c_volatile+set}" = set; then :
14564 $as_echo_n "(cached) " >&6
14565 else
14566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14567 /* end confdefs.h. */
14570 main ()
14573 volatile int x;
14574 int * volatile y = (int *) 0;
14575 return !x && !y;
14577 return 0;
14579 _ACEOF
14580 if ac_fn_c_try_compile "$LINENO"; then :
14581 ac_cv_c_volatile=yes
14582 else
14583 ac_cv_c_volatile=no
14585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
14588 $as_echo "$ac_cv_c_volatile" >&6; }
14589 if test $ac_cv_c_volatile = no; then
14591 $as_echo "#define volatile /**/" >>confdefs.h
14598 # Just to make sure we dont do debug on default!
14599 debug=no
14601 # Check whether --with-debug was given.
14602 if test "${with_debug+set}" = set; then :
14603 withval=$with_debug; debug="$withval"
14606 if test "x$debug" == "xyes"; then
14608 $as_echo "#define DEBUG 1" >>confdefs.h
14612 # a lang needs math functions...
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
14614 $as_echo_n "checking for pow in -lm... " >&6; }
14615 if test "${ac_cv_lib_m_pow+set}" = set; then :
14616 $as_echo_n "(cached) " >&6
14617 else
14618 ac_check_lib_save_LIBS=$LIBS
14619 LIBS="-lm $LIBS"
14620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14621 /* end confdefs.h. */
14623 /* Override any GCC internal prototype to avoid an error.
14624 Use char because int might match the return type of a GCC
14625 builtin and then its argument prototype would still apply. */
14626 #ifdef __cplusplus
14627 extern "C"
14628 #endif
14629 char pow ();
14631 main ()
14633 return pow ();
14635 return 0;
14637 _ACEOF
14638 if ac_fn_c_try_link "$LINENO"; then :
14639 ac_cv_lib_m_pow=yes
14640 else
14641 ac_cv_lib_m_pow=no
14643 rm -f core conftest.err conftest.$ac_objext \
14644 conftest$ac_exeext conftest.$ac_ext
14645 LIBS=$ac_check_lib_save_LIBS
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
14648 $as_echo "$ac_cv_lib_m_pow" >&6; }
14649 if test "x$ac_cv_lib_m_pow" = x""yes; then :
14650 cat >>confdefs.h <<_ACEOF
14651 #define HAVE_LIBM 1
14652 _ACEOF
14654 LIBS="-lm $LIBS"
14656 else
14657 as_fn_error $? "System Math library is required!" "$LINENO" 5
14661 # used for constant folding and rounding
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_init in -lgmp" >&5
14663 $as_echo_n "checking for __gmpz_init in -lgmp... " >&6; }
14664 if test "${ac_cv_lib_gmp___gmpz_init+set}" = set; then :
14665 $as_echo_n "(cached) " >&6
14666 else
14667 ac_check_lib_save_LIBS=$LIBS
14668 LIBS="-lgmp $LIBS"
14669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14670 /* end confdefs.h. */
14672 /* Override any GCC internal prototype to avoid an error.
14673 Use char because int might match the return type of a GCC
14674 builtin and then its argument prototype would still apply. */
14675 #ifdef __cplusplus
14676 extern "C"
14677 #endif
14678 char __gmpz_init ();
14680 main ()
14682 return __gmpz_init ();
14684 return 0;
14686 _ACEOF
14687 if ac_fn_c_try_link "$LINENO"; then :
14688 ac_cv_lib_gmp___gmpz_init=yes
14689 else
14690 ac_cv_lib_gmp___gmpz_init=no
14692 rm -f core conftest.err conftest.$ac_objext \
14693 conftest$ac_exeext conftest.$ac_ext
14694 LIBS=$ac_check_lib_save_LIBS
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_init" >&5
14697 $as_echo "$ac_cv_lib_gmp___gmpz_init" >&6; }
14698 if test "x$ac_cv_lib_gmp___gmpz_init" = x""yes; then :
14699 cat >>confdefs.h <<_ACEOF
14700 #define HAVE_LIBGMP 1
14701 _ACEOF
14703 LIBS="-lgmp $LIBS"
14705 else
14706 as_fn_error $? "GNU MP not found, see http://gmplib.org/" "$LINENO" 5
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpfr_init in -lmpfr" >&5
14710 $as_echo_n "checking for mpfr_init in -lmpfr... " >&6; }
14711 if test "${ac_cv_lib_mpfr_mpfr_init_+set}" = set; then :
14712 $as_echo_n "(cached) " >&6
14713 else
14714 ac_check_lib_save_LIBS=$LIBS
14715 LIBS="-lmpfr $LIBS"
14716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14717 /* end confdefs.h. */
14719 /* Override any GCC internal prototype to avoid an error.
14720 Use char because int might match the return type of a GCC
14721 builtin and then its argument prototype would still apply. */
14722 #ifdef __cplusplus
14723 extern "C"
14724 #endif
14725 char mpfr_init ();
14727 main ()
14729 return mpfr_init ();
14731 return 0;
14733 _ACEOF
14734 if ac_fn_c_try_link "$LINENO"; then :
14735 ac_cv_lib_mpfr_mpfr_init_=yes
14736 else
14737 ac_cv_lib_mpfr_mpfr_init_=no
14739 rm -f core conftest.err conftest.$ac_objext \
14740 conftest$ac_exeext conftest.$ac_ext
14741 LIBS=$ac_check_lib_save_LIBS
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpfr_mpfr_init_" >&5
14744 $as_echo "$ac_cv_lib_mpfr_mpfr_init_" >&6; }
14745 if test "x$ac_cv_lib_mpfr_mpfr_init_" = x""yes; then :
14746 cat >>confdefs.h <<_ACEOF
14747 #define HAVE_LIBMPFR 1
14748 _ACEOF
14750 LIBS="-lmpfr $LIBS"
14752 else
14753 as_fn_error $? "MPFR not found, see http://www.mpfr.org/" "$LINENO" 5
14756 # The cast to long int works around a bug in the HP C Compiler
14757 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14758 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14759 # This bug is HP SR number 8606223364.
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of mp_limb_t" >&5
14761 $as_echo_n "checking size of mp_limb_t... " >&6; }
14762 if test "${ac_cv_sizeof_mp_limb_t+set}" = set; then :
14763 $as_echo_n "(cached) " >&6
14764 else
14765 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (mp_limb_t))" "ac_cv_sizeof_mp_limb_t" "#include <gmp.h>
14766 "; then :
14768 else
14769 if test "$ac_cv_type_mp_limb_t" = yes; then
14770 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14771 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14772 as_fn_error 77 "cannot compute sizeof (mp_limb_t)
14773 See \`config.log' for more details" "$LINENO" 5 ; }
14774 else
14775 ac_cv_sizeof_mp_limb_t=0
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_mp_limb_t" >&5
14781 $as_echo "$ac_cv_sizeof_mp_limb_t" >&6; }
14785 cat >>confdefs.h <<_ACEOF
14786 #define SIZEOF_MP_LIMB_T $ac_cv_sizeof_mp_limb_t
14787 _ACEOF
14791 VL_LIB_READLINE
14792 if test "x$vl_cv_lib_readline" = "xno"; then :
14793 as_fn_error $? "libreadline is required for Crules. \
14794 On Debian this can be found in libreadline5-dev. On RedHat \
14795 this can be found in readline-devel." "$LINENO" 5
14797 for ac_func in dlopen
14798 do :
14799 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14800 if test "x$ac_cv_func_dlopen" = x""yes; then :
14801 cat >>confdefs.h <<_ACEOF
14802 #define HAVE_DLOPEN 1
14803 _ACEOF
14806 done
14811 CFLAG_VISIBILITY=
14812 HAVE_VISIBILITY=0
14813 if test -n "$GCC"; then
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
14815 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
14816 if test "${gl_cv_cc_vis_werror+set}" = set; then :
14817 $as_echo_n "(cached) " >&6
14818 else
14820 gl_save_CFLAGS="$CFLAGS"
14821 CFLAGS="$CFLAGS -Werror"
14822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14823 /* end confdefs.h. */
14826 main ()
14830 return 0;
14832 _ACEOF
14833 if ac_fn_c_try_compile "$LINENO"; then :
14834 gl_cv_cc_vis_werror=yes
14835 else
14836 gl_cv_cc_vis_werror=no
14838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14839 CFLAGS="$gl_save_CFLAGS"
14842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
14843 $as_echo "$gl_cv_cc_vis_werror" >&6; }
14844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
14845 $as_echo_n "checking for simple visibility declarations... " >&6; }
14846 if test "${gl_cv_cc_visibility+set}" = set; then :
14847 $as_echo_n "(cached) " >&6
14848 else
14850 gl_save_CFLAGS="$CFLAGS"
14851 CFLAGS="$CFLAGS -fvisibility=hidden"
14852 if test $gl_cv_cc_vis_werror = yes; then
14853 CFLAGS="$CFLAGS -Werror"
14855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14856 /* end confdefs.h. */
14857 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
14858 extern __attribute__((__visibility__("default"))) int exportedvar;
14859 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
14860 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
14861 void dummyfunc (void) {}
14863 main ()
14867 return 0;
14869 _ACEOF
14870 if ac_fn_c_try_compile "$LINENO"; then :
14871 gl_cv_cc_visibility=yes
14872 else
14873 gl_cv_cc_visibility=no
14875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14876 CFLAGS="$gl_save_CFLAGS"
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
14880 $as_echo "$gl_cv_cc_visibility" >&6; }
14881 if test $gl_cv_cc_visibility = yes; then
14882 CFLAG_VISIBILITY="-fvisibility=hidden"
14883 HAVE_VISIBILITY=1
14889 cat >>confdefs.h <<_ACEOF
14890 #define HAVE_VISIBILITY $HAVE_VISIBILITY
14891 _ACEOF
14898 # Extract the first word of "mv", so it can be a program name with args.
14899 set dummy mv; ac_word=$2
14900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14901 $as_echo_n "checking for $ac_word... " >&6; }
14902 if test "${ac_cv_path_MV+set}" = set; then :
14903 $as_echo_n "(cached) " >&6
14904 else
14905 case $MV in
14906 [\\/]* | ?:[\\/]*)
14907 ac_cv_path_MV="$MV" # Let the user override the test with a path.
14910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14911 for as_dir in $PATH
14913 IFS=$as_save_IFS
14914 test -z "$as_dir" && as_dir=.
14915 for ac_exec_ext in '' $ac_executable_extensions; do
14916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14917 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
14918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14919 break 2
14921 done
14922 done
14923 IFS=$as_save_IFS
14925 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
14927 esac
14929 MV=$ac_cv_path_MV
14930 if test -n "$MV"; then
14931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
14932 $as_echo "$MV" >&6; }
14933 else
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14935 $as_echo "no" >&6; }
14939 # Extract the first word of "rm", so it can be a program name with args.
14940 set dummy rm; ac_word=$2
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14942 $as_echo_n "checking for $ac_word... " >&6; }
14943 if test "${ac_cv_path_RM+set}" = set; then :
14944 $as_echo_n "(cached) " >&6
14945 else
14946 case $RM in
14947 [\\/]* | ?:[\\/]*)
14948 ac_cv_path_RM="$RM" # Let the user override the test with a path.
14951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14952 for as_dir in $PATH
14954 IFS=$as_save_IFS
14955 test -z "$as_dir" && as_dir=.
14956 for ac_exec_ext in '' $ac_executable_extensions; do
14957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14958 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
14959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14960 break 2
14962 done
14963 done
14964 IFS=$as_save_IFS
14966 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
14968 esac
14970 RM=$ac_cv_path_RM
14971 if test -n "$RM"; then
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
14973 $as_echo "$RM" >&6; }
14974 else
14975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14976 $as_echo "no" >&6; }
14980 # Extract the first word of "cp", so it can be a program name with args.
14981 set dummy cp; ac_word=$2
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14983 $as_echo_n "checking for $ac_word... " >&6; }
14984 if test "${ac_cv_path_CP+set}" = set; then :
14985 $as_echo_n "(cached) " >&6
14986 else
14987 case $CP in
14988 [\\/]* | ?:[\\/]*)
14989 ac_cv_path_CP="$CP" # Let the user override the test with a path.
14992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14993 for as_dir in $PATH
14995 IFS=$as_save_IFS
14996 test -z "$as_dir" && as_dir=.
14997 for ac_exec_ext in '' $ac_executable_extensions; do
14998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14999 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
15000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15001 break 2
15003 done
15004 done
15005 IFS=$as_save_IFS
15007 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
15009 esac
15011 CP=$ac_cv_path_CP
15012 if test -n "$CP"; then
15013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
15014 $as_echo "$CP" >&6; }
15015 else
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15017 $as_echo "no" >&6; }
15021 # Extract the first word of "sed", so it can be a program name with args.
15022 set dummy sed; ac_word=$2
15023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15024 $as_echo_n "checking for $ac_word... " >&6; }
15025 if test "${ac_cv_path_SED+set}" = set; then :
15026 $as_echo_n "(cached) " >&6
15027 else
15028 case $SED in
15029 [\\/]* | ?:[\\/]*)
15030 ac_cv_path_SED="$SED" # Let the user override the test with a path.
15033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15034 for as_dir in $PATH
15036 IFS=$as_save_IFS
15037 test -z "$as_dir" && as_dir=.
15038 for ac_exec_ext in '' $ac_executable_extensions; do
15039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15040 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
15041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15042 break 2
15044 done
15045 done
15046 IFS=$as_save_IFS
15048 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
15050 esac
15052 SED=$ac_cv_path_SED
15053 if test -n "$SED"; then
15054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
15055 $as_echo "$SED" >&6; }
15056 else
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15058 $as_echo "no" >&6; }
15062 # Extract the first word of "cmp", so it can be a program name with args.
15063 set dummy cmp; ac_word=$2
15064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15065 $as_echo_n "checking for $ac_word... " >&6; }
15066 if test "${ac_cv_path_CMP+set}" = set; then :
15067 $as_echo_n "(cached) " >&6
15068 else
15069 case $CMP in
15070 [\\/]* | ?:[\\/]*)
15071 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
15074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15075 for as_dir in $PATH
15077 IFS=$as_save_IFS
15078 test -z "$as_dir" && as_dir=.
15079 for ac_exec_ext in '' $ac_executable_extensions; do
15080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15081 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
15082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15083 break 2
15085 done
15086 done
15087 IFS=$as_save_IFS
15089 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
15091 esac
15093 CMP=$ac_cv_path_CMP
15094 if test -n "$CMP"; then
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
15096 $as_echo "$CMP" >&6; }
15097 else
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15099 $as_echo "no" >&6; }
15103 # Extract the first word of "chmod", so it can be a program name with args.
15104 set dummy chmod; ac_word=$2
15105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15106 $as_echo_n "checking for $ac_word... " >&6; }
15107 if test "${ac_cv_path_CHMOD+set}" = set; then :
15108 $as_echo_n "(cached) " >&6
15109 else
15110 case $CHMOD in
15111 [\\/]* | ?:[\\/]*)
15112 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
15115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15116 for as_dir in $PATH
15118 IFS=$as_save_IFS
15119 test -z "$as_dir" && as_dir=.
15120 for ac_exec_ext in '' $ac_executable_extensions; do
15121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15122 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
15123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15124 break 2
15126 done
15127 done
15128 IFS=$as_save_IFS
15130 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD="chmod"
15132 esac
15134 CHMOD=$ac_cv_path_CHMOD
15135 if test -n "$CHMOD"; then
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
15137 $as_echo "$CHMOD" >&6; }
15138 else
15139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15140 $as_echo "no" >&6; }
15144 # Extract the first word of "hostname", so it can be a program name with args.
15145 set dummy hostname; 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_path_HOSTNAME+set}" = set; then :
15149 $as_echo_n "(cached) " >&6
15150 else
15151 case $HOSTNAME in
15152 [\\/]* | ?:[\\/]*)
15153 ac_cv_path_HOSTNAME="$HOSTNAME" # Let the user override the test with a path.
15156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15157 for as_dir in $PATH
15159 IFS=$as_save_IFS
15160 test -z "$as_dir" && as_dir=.
15161 for ac_exec_ext in '' $ac_executable_extensions; do
15162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15163 ac_cv_path_HOSTNAME="$as_dir/$ac_word$ac_exec_ext"
15164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15165 break 2
15167 done
15168 done
15169 IFS=$as_save_IFS
15171 test -z "$ac_cv_path_HOSTNAME" && ac_cv_path_HOSTNAME="hostname"
15173 esac
15175 HOSTNAME=$ac_cv_path_HOSTNAME
15176 if test -n "$HOSTNAME"; then
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HOSTNAME" >&5
15178 $as_echo "$HOSTNAME" >&6; }
15179 else
15180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15181 $as_echo "no" >&6; }
15186 am__api_version='1.11'
15188 test "$program_prefix" != NONE &&
15189 program_transform_name="s&^&$program_prefix&;$program_transform_name"
15190 # Use a double $ so make ignores it.
15191 test "$program_suffix" != NONE &&
15192 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
15193 # Double any \ or $.
15194 # By default was `s,x,x', remove it if useless.
15195 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
15196 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
15198 if test x"${MISSING+set}" != xset; then
15199 case $am_aux_dir in
15200 *\ * | *\ *)
15201 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
15203 MISSING="\${SHELL} $am_aux_dir/missing" ;;
15204 esac
15206 # Use eval to expand $SHELL
15207 if eval "$MISSING --run true"; then
15208 am_missing_run="$MISSING --run "
15209 else
15210 am_missing_run=
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
15212 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
15215 if test x"${install_sh}" != xset; then
15216 case $am_aux_dir in
15217 *\ * | *\ *)
15218 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
15220 install_sh="\${SHELL} $am_aux_dir/install-sh"
15221 esac
15224 # Installed binaries are usually stripped using `strip' when the user
15225 # run `make install-strip'. However `strip' might not be the right
15226 # tool to use in cross-compilation environments, therefore Automake
15227 # will honor the `STRIP' environment variable to overrule this program.
15228 if test "$cross_compiling" != no; then
15229 if test -n "$ac_tool_prefix"; then
15230 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15231 set dummy ${ac_tool_prefix}strip; ac_word=$2
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15233 $as_echo_n "checking for $ac_word... " >&6; }
15234 if test "${ac_cv_prog_STRIP+set}" = set; then :
15235 $as_echo_n "(cached) " >&6
15236 else
15237 if test -n "$STRIP"; then
15238 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15239 else
15240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15241 for as_dir in $PATH
15243 IFS=$as_save_IFS
15244 test -z "$as_dir" && as_dir=.
15245 for ac_exec_ext in '' $ac_executable_extensions; do
15246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15247 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
15248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15249 break 2
15251 done
15252 done
15253 IFS=$as_save_IFS
15257 STRIP=$ac_cv_prog_STRIP
15258 if test -n "$STRIP"; then
15259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
15260 $as_echo "$STRIP" >&6; }
15261 else
15262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15263 $as_echo "no" >&6; }
15268 if test -z "$ac_cv_prog_STRIP"; then
15269 ac_ct_STRIP=$STRIP
15270 # Extract the first word of "strip", so it can be a program name with args.
15271 set dummy strip; ac_word=$2
15272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15273 $as_echo_n "checking for $ac_word... " >&6; }
15274 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
15275 $as_echo_n "(cached) " >&6
15276 else
15277 if test -n "$ac_ct_STRIP"; then
15278 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15279 else
15280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15281 for as_dir in $PATH
15283 IFS=$as_save_IFS
15284 test -z "$as_dir" && as_dir=.
15285 for ac_exec_ext in '' $ac_executable_extensions; do
15286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15287 ac_cv_prog_ac_ct_STRIP="strip"
15288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15289 break 2
15291 done
15292 done
15293 IFS=$as_save_IFS
15297 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15298 if test -n "$ac_ct_STRIP"; then
15299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
15300 $as_echo "$ac_ct_STRIP" >&6; }
15301 else
15302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15303 $as_echo "no" >&6; }
15306 if test "x$ac_ct_STRIP" = x; then
15307 STRIP=":"
15308 else
15309 case $cross_compiling:$ac_tool_warned in
15310 yes:)
15311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15312 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15313 ac_tool_warned=yes ;;
15314 esac
15315 STRIP=$ac_ct_STRIP
15317 else
15318 STRIP="$ac_cv_prog_STRIP"
15322 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
15324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
15325 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
15326 if test -z "$MKDIR_P"; then
15327 if test "${ac_cv_path_mkdir+set}" = set; then :
15328 $as_echo_n "(cached) " >&6
15329 else
15330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15331 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
15333 IFS=$as_save_IFS
15334 test -z "$as_dir" && as_dir=.
15335 for ac_prog in mkdir gmkdir; do
15336 for ac_exec_ext in '' $ac_executable_extensions; do
15337 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
15338 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
15339 'mkdir (GNU coreutils) '* | \
15340 'mkdir (coreutils) '* | \
15341 'mkdir (fileutils) '4.1*)
15342 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
15343 break 3;;
15344 esac
15345 done
15346 done
15347 done
15348 IFS=$as_save_IFS
15352 test -d ./--version && rmdir ./--version
15353 if test "${ac_cv_path_mkdir+set}" = set; then
15354 MKDIR_P="$ac_cv_path_mkdir -p"
15355 else
15356 # As a last resort, use the slow shell script. Don't cache a
15357 # value for MKDIR_P within a source directory, because that will
15358 # break other packages using the cache if that directory is
15359 # removed, or if the value is a relative name.
15360 MKDIR_P="$ac_install_sh -d"
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
15364 $as_echo "$MKDIR_P" >&6; }
15366 mkdir_p="$MKDIR_P"
15367 case $mkdir_p in
15368 [\\/$]* | ?:[\\/]*) ;;
15369 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
15370 esac
15372 rm -rf .tst 2>/dev/null
15373 mkdir .tst 2>/dev/null
15374 if test -d .tst; then
15375 am__leading_dot=.
15376 else
15377 am__leading_dot=_
15379 rmdir .tst 2>/dev/null
15381 DEPDIR="${am__leading_dot}deps"
15383 ac_config_commands="$ac_config_commands depfiles"
15386 am_make=${MAKE-make}
15387 cat > confinc << 'END'
15388 am__doit:
15389 @echo this is the am__doit target
15390 .PHONY: am__doit
15392 # If we don't find an include directive, just comment out the code.
15393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
15394 $as_echo_n "checking for style of include used by $am_make... " >&6; }
15395 am__include="#"
15396 am__quote=
15397 _am_result=none
15398 # First try GNU make style include.
15399 echo "include confinc" > confmf
15400 # Ignore all kinds of additional output from `make'.
15401 case `$am_make -s -f confmf 2> /dev/null` in #(
15402 *the\ am__doit\ target*)
15403 am__include=include
15404 am__quote=
15405 _am_result=GNU
15407 esac
15408 # Now try BSD make style include.
15409 if test "$am__include" = "#"; then
15410 echo '.include "confinc"' > confmf
15411 case `$am_make -s -f confmf 2> /dev/null` in #(
15412 *the\ am__doit\ target*)
15413 am__include=.include
15414 am__quote="\""
15415 _am_result=BSD
15417 esac
15421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
15422 $as_echo "$_am_result" >&6; }
15423 rm -f confinc confmf
15425 # Check whether --enable-dependency-tracking was given.
15426 if test "${enable_dependency_tracking+set}" = set; then :
15427 enableval=$enable_dependency_tracking;
15430 if test "x$enable_dependency_tracking" != xno; then
15431 am_depcomp="$ac_aux_dir/depcomp"
15432 AMDEPBACKSLASH='\'
15434 if test "x$enable_dependency_tracking" != xno; then
15435 AMDEP_TRUE=
15436 AMDEP_FALSE='#'
15437 else
15438 AMDEP_TRUE='#'
15439 AMDEP_FALSE=
15443 if test "`cd $srcdir && pwd`" != "`pwd`"; then
15444 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
15445 # is not polluted with repeated "-I."
15446 am__isrc=' -I$(srcdir)'
15447 # test to see if srcdir already configured
15448 if test -f $srcdir/config.status; then
15449 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
15453 # test whether we have cygpath
15454 if test -z "$CYGPATH_W"; then
15455 if (cygpath --version) >/dev/null 2>/dev/null; then
15456 CYGPATH_W='cygpath -w'
15457 else
15458 CYGPATH_W=echo
15463 # Define the identity of the package.
15464 PACKAGE='libgpython'
15465 VERSION='0.1'
15468 cat >>confdefs.h <<_ACEOF
15469 #define PACKAGE "$PACKAGE"
15470 _ACEOF
15473 cat >>confdefs.h <<_ACEOF
15474 #define VERSION "$VERSION"
15475 _ACEOF
15477 # Some tools Automake needs.
15479 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
15482 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
15485 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
15488 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
15491 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
15493 # We need awk for the "check" target. The system "awk" is bad on
15494 # some platforms.
15495 # Always define AMTAR for backward compatibility.
15497 AMTAR=${AMTAR-"${am_missing_run}tar"}
15499 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
15504 depcc="$CC" am_compiler_list=
15506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
15507 $as_echo_n "checking dependency style of $depcc... " >&6; }
15508 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
15509 $as_echo_n "(cached) " >&6
15510 else
15511 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15512 # We make a subdir and do the tests there. Otherwise we can end up
15513 # making bogus files that we don't know about and never remove. For
15514 # instance it was reported that on HP-UX the gcc test will end up
15515 # making a dummy file named `D' -- because `-MD' means `put the output
15516 # in D'.
15517 mkdir conftest.dir
15518 # Copy depcomp to subdir because otherwise we won't find it if we're
15519 # using a relative directory.
15520 cp "$am_depcomp" conftest.dir
15521 cd conftest.dir
15522 # We will build objects and dependencies in a subdirectory because
15523 # it helps to detect inapplicable dependency modes. For instance
15524 # both Tru64's cc and ICC support -MD to output dependencies as a
15525 # side effect of compilation, but ICC will put the dependencies in
15526 # the current directory while Tru64 will put them in the object
15527 # directory.
15528 mkdir sub
15530 am_cv_CC_dependencies_compiler_type=none
15531 if test "$am_compiler_list" = ""; then
15532 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15534 am__universal=false
15535 case " $depcc " in #(
15536 *\ -arch\ *\ -arch\ *) am__universal=true ;;
15537 esac
15539 for depmode in $am_compiler_list; do
15540 # Setup a source with many dependencies, because some compilers
15541 # like to wrap large dependency lists on column 80 (with \), and
15542 # we should not choose a depcomp mode which is confused by this.
15544 # We need to recreate these files for each test, as the compiler may
15545 # overwrite some of them when testing with obscure command lines.
15546 # This happens at least with the AIX C compiler.
15547 : > sub/conftest.c
15548 for i in 1 2 3 4 5 6; do
15549 echo '#include "conftst'$i'.h"' >> sub/conftest.c
15550 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
15551 # Solaris 8's {/usr,}/bin/sh.
15552 touch sub/conftst$i.h
15553 done
15554 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15556 # We check with `-c' and `-o' for the sake of the "dashmstdout"
15557 # mode. It turns out that the SunPro C++ compiler does not properly
15558 # handle `-M -o', and we need to detect this. Also, some Intel
15559 # versions had trouble with output in subdirs
15560 am__obj=sub/conftest.${OBJEXT-o}
15561 am__minus_obj="-o $am__obj"
15562 case $depmode in
15563 gcc)
15564 # This depmode causes a compiler race in universal mode.
15565 test "$am__universal" = false || continue
15567 nosideeffect)
15568 # after this tag, mechanisms are not by side-effect, so they'll
15569 # only be used when explicitly requested
15570 if test "x$enable_dependency_tracking" = xyes; then
15571 continue
15572 else
15573 break
15576 msvisualcpp | msvcmsys)
15577 # This compiler won't grok `-c -o', but also, the minuso test has
15578 # not run yet. These depmodes are late enough in the game, and
15579 # so weak that their functioning should not be impacted.
15580 am__obj=conftest.${OBJEXT-o}
15581 am__minus_obj=
15583 none) break ;;
15584 esac
15585 if depmode=$depmode \
15586 source=sub/conftest.c object=$am__obj \
15587 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15588 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
15589 >/dev/null 2>conftest.err &&
15590 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
15591 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15592 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
15593 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15594 # icc doesn't choke on unknown options, it will just issue warnings
15595 # or remarks (even with -Werror). So we grep stderr for any message
15596 # that says an option was ignored or not supported.
15597 # When given -MP, icc 7.0 and 7.1 complain thusly:
15598 # icc: Command line warning: ignoring option '-M'; no argument required
15599 # The diagnosis changed in icc 8.0:
15600 # icc: Command line remark: option '-MP' not supported
15601 if (grep 'ignoring option' conftest.err ||
15602 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15603 am_cv_CC_dependencies_compiler_type=$depmode
15604 break
15607 done
15609 cd ..
15610 rm -rf conftest.dir
15611 else
15612 am_cv_CC_dependencies_compiler_type=none
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
15617 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
15618 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
15621 test "x$enable_dependency_tracking" != xno \
15622 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
15623 am__fastdepCC_TRUE=
15624 am__fastdepCC_FALSE='#'
15625 else
15626 am__fastdepCC_TRUE='#'
15627 am__fastdepCC_FALSE=
15631 depcc="$CXX" am_compiler_list=
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
15634 $as_echo_n "checking dependency style of $depcc... " >&6; }
15635 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
15636 $as_echo_n "(cached) " >&6
15637 else
15638 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15639 # We make a subdir and do the tests there. Otherwise we can end up
15640 # making bogus files that we don't know about and never remove. For
15641 # instance it was reported that on HP-UX the gcc test will end up
15642 # making a dummy file named `D' -- because `-MD' means `put the output
15643 # in D'.
15644 mkdir conftest.dir
15645 # Copy depcomp to subdir because otherwise we won't find it if we're
15646 # using a relative directory.
15647 cp "$am_depcomp" conftest.dir
15648 cd conftest.dir
15649 # We will build objects and dependencies in a subdirectory because
15650 # it helps to detect inapplicable dependency modes. For instance
15651 # both Tru64's cc and ICC support -MD to output dependencies as a
15652 # side effect of compilation, but ICC will put the dependencies in
15653 # the current directory while Tru64 will put them in the object
15654 # directory.
15655 mkdir sub
15657 am_cv_CXX_dependencies_compiler_type=none
15658 if test "$am_compiler_list" = ""; then
15659 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15661 am__universal=false
15662 case " $depcc " in #(
15663 *\ -arch\ *\ -arch\ *) am__universal=true ;;
15664 esac
15666 for depmode in $am_compiler_list; do
15667 # Setup a source with many dependencies, because some compilers
15668 # like to wrap large dependency lists on column 80 (with \), and
15669 # we should not choose a depcomp mode which is confused by this.
15671 # We need to recreate these files for each test, as the compiler may
15672 # overwrite some of them when testing with obscure command lines.
15673 # This happens at least with the AIX C compiler.
15674 : > sub/conftest.c
15675 for i in 1 2 3 4 5 6; do
15676 echo '#include "conftst'$i'.h"' >> sub/conftest.c
15677 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
15678 # Solaris 8's {/usr,}/bin/sh.
15679 touch sub/conftst$i.h
15680 done
15681 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15683 # We check with `-c' and `-o' for the sake of the "dashmstdout"
15684 # mode. It turns out that the SunPro C++ compiler does not properly
15685 # handle `-M -o', and we need to detect this. Also, some Intel
15686 # versions had trouble with output in subdirs
15687 am__obj=sub/conftest.${OBJEXT-o}
15688 am__minus_obj="-o $am__obj"
15689 case $depmode in
15690 gcc)
15691 # This depmode causes a compiler race in universal mode.
15692 test "$am__universal" = false || continue
15694 nosideeffect)
15695 # after this tag, mechanisms are not by side-effect, so they'll
15696 # only be used when explicitly requested
15697 if test "x$enable_dependency_tracking" = xyes; then
15698 continue
15699 else
15700 break
15703 msvisualcpp | msvcmsys)
15704 # This compiler won't grok `-c -o', but also, the minuso test has
15705 # not run yet. These depmodes are late enough in the game, and
15706 # so weak that their functioning should not be impacted.
15707 am__obj=conftest.${OBJEXT-o}
15708 am__minus_obj=
15710 none) break ;;
15711 esac
15712 if depmode=$depmode \
15713 source=sub/conftest.c object=$am__obj \
15714 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15715 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
15716 >/dev/null 2>conftest.err &&
15717 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
15718 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15719 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
15720 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15721 # icc doesn't choke on unknown options, it will just issue warnings
15722 # or remarks (even with -Werror). So we grep stderr for any message
15723 # that says an option was ignored or not supported.
15724 # When given -MP, icc 7.0 and 7.1 complain thusly:
15725 # icc: Command line warning: ignoring option '-M'; no argument required
15726 # The diagnosis changed in icc 8.0:
15727 # icc: Command line remark: option '-MP' not supported
15728 if (grep 'ignoring option' conftest.err ||
15729 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15730 am_cv_CXX_dependencies_compiler_type=$depmode
15731 break
15734 done
15736 cd ..
15737 rm -rf conftest.dir
15738 else
15739 am_cv_CXX_dependencies_compiler_type=none
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
15744 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
15745 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
15748 test "x$enable_dependency_tracking" != xno \
15749 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
15750 am__fastdepCXX_TRUE=
15751 am__fastdepCXX_FALSE='#'
15752 else
15753 am__fastdepCXX_TRUE='#'
15754 am__fastdepCXX_FALSE=
15760 # The cast to long int works around a bug in the HP C Compiler
15761 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15762 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15763 # This bug is HP SR number 8606223364.
15764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
15765 $as_echo_n "checking size of long... " >&6; }
15766 if test "${ac_cv_sizeof_long+set}" = set; then :
15767 $as_echo_n "(cached) " >&6
15768 else
15769 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
15771 else
15772 if test "$ac_cv_type_long" = yes; then
15773 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15774 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15775 as_fn_error 77 "cannot compute sizeof (long)
15776 See \`config.log' for more details" "$LINENO" 5 ; }
15777 else
15778 ac_cv_sizeof_long=0
15783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
15784 $as_echo "$ac_cv_sizeof_long" >&6; }
15788 cat >>confdefs.h <<_ACEOF
15789 #define SIZEOF_LONG $ac_cv_sizeof_long
15790 _ACEOF
15793 # The cast to long int works around a bug in the HP C Compiler
15794 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15795 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15796 # This bug is HP SR number 8606223364.
15797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
15798 $as_echo_n "checking size of char... " >&6; }
15799 if test "${ac_cv_sizeof_char+set}" = set; then :
15800 $as_echo_n "(cached) " >&6
15801 else
15802 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
15804 else
15805 if test "$ac_cv_type_char" = yes; then
15806 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15807 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15808 as_fn_error 77 "cannot compute sizeof (char)
15809 See \`config.log' for more details" "$LINENO" 5 ; }
15810 else
15811 ac_cv_sizeof_char=0
15816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
15817 $as_echo "$ac_cv_sizeof_char" >&6; }
15821 cat >>confdefs.h <<_ACEOF
15822 #define SIZEOF_CHAR $ac_cv_sizeof_char
15823 _ACEOF
15826 # The cast to long int works around a bug in the HP C Compiler
15827 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15828 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15829 # This bug is HP SR number 8606223364.
15830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
15831 $as_echo_n "checking size of int... " >&6; }
15832 if test "${ac_cv_sizeof_int+set}" = set; then :
15833 $as_echo_n "(cached) " >&6
15834 else
15835 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
15837 else
15838 if test "$ac_cv_type_int" = yes; then
15839 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15840 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15841 as_fn_error 77 "cannot compute sizeof (int)
15842 See \`config.log' for more details" "$LINENO" 5 ; }
15843 else
15844 ac_cv_sizeof_int=0
15849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
15850 $as_echo "$ac_cv_sizeof_int" >&6; }
15854 cat >>confdefs.h <<_ACEOF
15855 #define SIZEOF_INT $ac_cv_sizeof_int
15856 _ACEOF
15859 # The cast to long int works around a bug in the HP C Compiler
15860 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15861 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15862 # This bug is HP SR number 8606223364.
15863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
15864 $as_echo_n "checking size of void*... " >&6; }
15865 if test "${ac_cv_sizeof_voidp+set}" = set; then :
15866 $as_echo_n "(cached) " >&6
15867 else
15868 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
15870 else
15871 if test "$ac_cv_type_voidp" = yes; then
15872 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15873 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15874 as_fn_error 77 "cannot compute sizeof (void*)
15875 See \`config.log' for more details" "$LINENO" 5 ; }
15876 else
15877 ac_cv_sizeof_voidp=0
15882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
15883 $as_echo "$ac_cv_sizeof_voidp" >&6; }
15887 cat >>confdefs.h <<_ACEOF
15888 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
15889 _ACEOF
15892 # The cast to long int works around a bug in the HP C Compiler
15893 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15894 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15895 # This bug is HP SR number 8606223364.
15896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
15897 $as_echo_n "checking size of short... " >&6; }
15898 if test "${ac_cv_sizeof_short+set}" = set; then :
15899 $as_echo_n "(cached) " >&6
15900 else
15901 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
15903 else
15904 if test "$ac_cv_type_short" = yes; then
15905 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15906 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15907 as_fn_error 77 "cannot compute sizeof (short)
15908 See \`config.log' for more details" "$LINENO" 5 ; }
15909 else
15910 ac_cv_sizeof_short=0
15915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
15916 $as_echo "$ac_cv_sizeof_short" >&6; }
15920 cat >>confdefs.h <<_ACEOF
15921 #define SIZEOF_SHORT $ac_cv_sizeof_short
15922 _ACEOF
15925 # The cast to long int works around a bug in the HP C Compiler
15926 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15927 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15928 # This bug is HP SR number 8606223364.
15929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
15930 $as_echo_n "checking size of double... " >&6; }
15931 if test "${ac_cv_sizeof_double+set}" = set; then :
15932 $as_echo_n "(cached) " >&6
15933 else
15934 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
15936 else
15937 if test "$ac_cv_type_double" = yes; then
15938 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15939 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15940 as_fn_error 77 "cannot compute sizeof (double)
15941 See \`config.log' for more details" "$LINENO" 5 ; }
15942 else
15943 ac_cv_sizeof_double=0
15948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
15949 $as_echo "$ac_cv_sizeof_double" >&6; }
15953 cat >>confdefs.h <<_ACEOF
15954 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
15955 _ACEOF
15958 # The cast to long int works around a bug in the HP C Compiler
15959 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15960 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15961 # This bug is HP SR number 8606223364.
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
15963 $as_echo_n "checking size of float... " >&6; }
15964 if test "${ac_cv_sizeof_float+set}" = set; then :
15965 $as_echo_n "(cached) " >&6
15966 else
15967 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
15969 else
15970 if test "$ac_cv_type_float" = yes; then
15971 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15972 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15973 as_fn_error 77 "cannot compute sizeof (float)
15974 See \`config.log' for more details" "$LINENO" 5 ; }
15975 else
15976 ac_cv_sizeof_float=0
15981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
15982 $as_echo "$ac_cv_sizeof_float" >&6; }
15986 cat >>confdefs.h <<_ACEOF
15987 #define SIZEOF_FLOAT $ac_cv_sizeof_float
15988 _ACEOF
15991 # The cast to long int works around a bug in the HP C Compiler
15992 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15993 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15994 # This bug is HP SR number 8606223364.
15995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
15996 $as_echo_n "checking size of size_t... " >&6; }
15997 if test "${ac_cv_sizeof_size_t+set}" = set; then :
15998 $as_echo_n "(cached) " >&6
15999 else
16000 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
16002 else
16003 if test "$ac_cv_type_size_t" = yes; then
16004 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16005 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16006 as_fn_error 77 "cannot compute sizeof (size_t)
16007 See \`config.log' for more details" "$LINENO" 5 ; }
16008 else
16009 ac_cv_sizeof_size_t=0
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
16015 $as_echo "$ac_cv_sizeof_size_t" >&6; }
16019 cat >>confdefs.h <<_ACEOF
16020 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
16021 _ACEOF
16024 # The cast to long int works around a bug in the HP C Compiler
16025 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16026 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16027 # This bug is HP SR number 8606223364.
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
16029 $as_echo_n "checking size of long int... " >&6; }
16030 if test "${ac_cv_sizeof_long_int+set}" = set; then :
16031 $as_echo_n "(cached) " >&6
16032 else
16033 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
16035 else
16036 if test "$ac_cv_type_long_int" = yes; then
16037 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16038 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16039 as_fn_error 77 "cannot compute sizeof (long int)
16040 See \`config.log' for more details" "$LINENO" 5 ; }
16041 else
16042 ac_cv_sizeof_long_int=0
16047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
16048 $as_echo "$ac_cv_sizeof_long_int" >&6; }
16052 cat >>confdefs.h <<_ACEOF
16053 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
16054 _ACEOF
16057 # The cast to long int works around a bug in the HP C Compiler
16058 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16059 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16060 # This bug is HP SR number 8606223364.
16061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
16062 $as_echo_n "checking size of long long... " >&6; }
16063 if test "${ac_cv_sizeof_long_long+set}" = set; then :
16064 $as_echo_n "(cached) " >&6
16065 else
16066 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
16068 else
16069 if test "$ac_cv_type_long_long" = yes; then
16070 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16071 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16072 as_fn_error 77 "cannot compute sizeof (long long)
16073 See \`config.log' for more details" "$LINENO" 5 ; }
16074 else
16075 ac_cv_sizeof_long_long=0
16080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
16081 $as_echo "$ac_cv_sizeof_long_long" >&6; }
16085 cat >>confdefs.h <<_ACEOF
16086 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
16087 _ACEOF
16091 # Checks for header files.
16092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
16093 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
16094 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
16095 $as_echo_n "(cached) " >&6
16096 else
16097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16098 /* end confdefs.h. */
16099 #include <sys/types.h>
16100 #include <sys/wait.h>
16101 #ifndef WEXITSTATUS
16102 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
16103 #endif
16104 #ifndef WIFEXITED
16105 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
16106 #endif
16109 main ()
16111 int s;
16112 wait (&s);
16113 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
16115 return 0;
16117 _ACEOF
16118 if ac_fn_c_try_compile "$LINENO"; then :
16119 ac_cv_header_sys_wait_h=yes
16120 else
16121 ac_cv_header_sys_wait_h=no
16123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
16126 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
16127 if test $ac_cv_header_sys_wait_h = yes; then
16129 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
16133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
16134 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
16135 if test "${ac_cv_header_stdbool_h+set}" = set; then :
16136 $as_echo_n "(cached) " >&6
16137 else
16138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16139 /* end confdefs.h. */
16141 #include <stdbool.h>
16142 #ifndef bool
16143 "error: bool is not defined"
16144 #endif
16145 #ifndef false
16146 "error: false is not defined"
16147 #endif
16148 #if false
16149 "error: false is not 0"
16150 #endif
16151 #ifndef true
16152 "error: true is not defined"
16153 #endif
16154 #if true != 1
16155 "error: true is not 1"
16156 #endif
16157 #ifndef __bool_true_false_are_defined
16158 "error: __bool_true_false_are_defined is not defined"
16159 #endif
16161 struct s { _Bool s: 1; _Bool t; } s;
16163 char a[true == 1 ? 1 : -1];
16164 char b[false == 0 ? 1 : -1];
16165 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
16166 char d[(bool) 0.5 == true ? 1 : -1];
16167 bool e = &s;
16168 char f[(_Bool) 0.0 == false ? 1 : -1];
16169 char g[true];
16170 char h[sizeof (_Bool)];
16171 char i[sizeof s.t];
16172 enum { j = false, k = true, l = false * true, m = true * 256 };
16173 /* The following fails for
16174 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
16175 _Bool n[m];
16176 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
16177 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
16178 # if defined __xlc__ || defined __GNUC__
16179 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
16180 reported by James Lemley on 2005-10-05; see
16181 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
16182 This test is not quite right, since xlc is allowed to
16183 reject this program, as the initializer for xlcbug is
16184 not one of the forms that C requires support for.
16185 However, doing the test right would require a runtime
16186 test, and that would make cross-compilation harder.
16187 Let us hope that IBM fixes the xlc bug, and also adds
16188 support for this kind of constant expression. In the
16189 meantime, this test will reject xlc, which is OK, since
16190 our stdbool.h substitute should suffice. We also test
16191 this with GCC, where it should work, to detect more
16192 quickly whether someone messes up the test in the
16193 future. */
16194 char digs[] = "0123456789";
16195 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
16196 # endif
16197 /* Catch a bug in an HP-UX C compiler. See
16198 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
16199 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
16201 _Bool q = true;
16202 _Bool *pq = &q;
16205 main ()
16208 *pq |= q;
16209 *pq |= ! q;
16210 /* Refer to every declared value, to avoid compiler optimizations. */
16211 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
16212 + !m + !n + !o + !p + !q + !pq);
16215 return 0;
16217 _ACEOF
16218 if ac_fn_c_try_compile "$LINENO"; then :
16219 ac_cv_header_stdbool_h=yes
16220 else
16221 ac_cv_header_stdbool_h=no
16223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
16226 $as_echo "$ac_cv_header_stdbool_h" >&6; }
16227 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
16228 if test "x$ac_cv_type__Bool" = x""yes; then :
16230 cat >>confdefs.h <<_ACEOF
16231 #define HAVE__BOOL 1
16232 _ACEOF
16237 if test $ac_cv_header_stdbool_h = yes; then
16239 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16244 $as_echo_n "checking for ANSI C header files... " >&6; }
16245 if test "${ac_cv_header_stdc+set}" = set; then :
16246 $as_echo_n "(cached) " >&6
16247 else
16248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16249 /* end confdefs.h. */
16250 #include <stdlib.h>
16251 #include <stdarg.h>
16252 #include <string.h>
16253 #include <float.h>
16256 main ()
16260 return 0;
16262 _ACEOF
16263 if ac_fn_c_try_compile "$LINENO"; then :
16264 ac_cv_header_stdc=yes
16265 else
16266 ac_cv_header_stdc=no
16268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16270 if test $ac_cv_header_stdc = yes; then
16271 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16273 /* end confdefs.h. */
16274 #include <string.h>
16276 _ACEOF
16277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16278 $EGREP "memchr" >/dev/null 2>&1; then :
16280 else
16281 ac_cv_header_stdc=no
16283 rm -f conftest*
16287 if test $ac_cv_header_stdc = yes; then
16288 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16290 /* end confdefs.h. */
16291 #include <stdlib.h>
16293 _ACEOF
16294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16295 $EGREP "free" >/dev/null 2>&1; then :
16297 else
16298 ac_cv_header_stdc=no
16300 rm -f conftest*
16304 if test $ac_cv_header_stdc = yes; then
16305 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16306 if test "$cross_compiling" = yes; then :
16308 else
16309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16310 /* end confdefs.h. */
16311 #include <ctype.h>
16312 #include <stdlib.h>
16313 #if ((' ' & 0x0FF) == 0x020)
16314 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16315 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16316 #else
16317 # define ISLOWER(c) \
16318 (('a' <= (c) && (c) <= 'i') \
16319 || ('j' <= (c) && (c) <= 'r') \
16320 || ('s' <= (c) && (c) <= 'z'))
16321 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16322 #endif
16324 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16326 main ()
16328 int i;
16329 for (i = 0; i < 256; i++)
16330 if (XOR (islower (i), ISLOWER (i))
16331 || toupper (i) != TOUPPER (i))
16332 return 2;
16333 return 0;
16335 _ACEOF
16336 if ac_fn_c_try_run "$LINENO"; then :
16338 else
16339 ac_cv_header_stdc=no
16341 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16342 conftest.$ac_objext conftest.beam conftest.$ac_ext
16347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16348 $as_echo "$ac_cv_header_stdc" >&6; }
16349 if test $ac_cv_header_stdc = yes; then
16351 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16355 for ac_header in stdlib.h string.h stdarg.h unistd.h \
16356 stdint.h stdio.h getopt.h \
16357 assert.h sys/types.h signal.h \
16358 fcntl.h pthread.h sys/wait.h \
16359 gmp.h mpfr.h
16360 do :
16361 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16362 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16363 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16364 cat >>confdefs.h <<_ACEOF
16365 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16366 _ACEOF
16370 done
16373 # Checks for typedefs, structures, and compiler characteristics.
16374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16375 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16376 if test "${ac_cv_c_const+set}" = set; then :
16377 $as_echo_n "(cached) " >&6
16378 else
16379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16380 /* end confdefs.h. */
16383 main ()
16385 /* FIXME: Include the comments suggested by Paul. */
16386 #ifndef __cplusplus
16387 /* Ultrix mips cc rejects this. */
16388 typedef int charset[2];
16389 const charset cs;
16390 /* SunOS 4.1.1 cc rejects this. */
16391 char const *const *pcpcc;
16392 char **ppc;
16393 /* NEC SVR4.0.2 mips cc rejects this. */
16394 struct point {int x, y;};
16395 static struct point const zero = {0,0};
16396 /* AIX XL C 1.02.0.0 rejects this.
16397 It does not let you subtract one const X* pointer from another in
16398 an arm of an if-expression whose if-part is not a constant
16399 expression */
16400 const char *g = "string";
16401 pcpcc = &g + (g ? g-g : 0);
16402 /* HPUX 7.0 cc rejects these. */
16403 ++pcpcc;
16404 ppc = (char**) pcpcc;
16405 pcpcc = (char const *const *) ppc;
16406 { /* SCO 3.2v4 cc rejects this. */
16407 char *t;
16408 char const *s = 0 ? (char *) 0 : (char const *) 0;
16410 *t++ = 0;
16411 if (s) return 0;
16413 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16414 int x[] = {25, 17};
16415 const int *foo = &x[0];
16416 ++foo;
16418 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16419 typedef const int *iptr;
16420 iptr p = 0;
16421 ++p;
16423 { /* AIX XL C 1.02.0.0 rejects this saying
16424 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16425 struct s { int j; const int *ap[3]; };
16426 struct s *b; b->j = 5;
16428 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16429 const int foo = 10;
16430 if (!foo) return 0;
16432 return !cs[0] && !zero.x;
16433 #endif
16436 return 0;
16438 _ACEOF
16439 if ac_fn_c_try_compile "$LINENO"; then :
16440 ac_cv_c_const=yes
16441 else
16442 ac_cv_c_const=no
16444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16447 $as_echo "$ac_cv_c_const" >&6; }
16448 if test $ac_cv_c_const = no; then
16450 $as_echo "#define const /**/" >>confdefs.h
16454 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
16455 if test "x$ac_cv_type_pid_t" = x""yes; then :
16457 else
16459 cat >>confdefs.h <<_ACEOF
16460 #define pid_t int
16461 _ACEOF
16465 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16466 if test "x$ac_cv_type_size_t" = x""yes; then :
16468 else
16470 cat >>confdefs.h <<_ACEOF
16471 #define size_t unsigned int
16472 _ACEOF
16476 for ac_func in popen fopen fclose sprintf fprintf strdup \
16477 strlen strcpy strcmp getopt_long \
16478 memcpy calloc system sysconf atoi \
16479 getpid execl fork wait exit atof \
16480 vfprintf memcmp getc fgets pipe \
16481 waitpid fdopen
16482 do :
16483 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16484 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16485 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16486 cat >>confdefs.h <<_ACEOF
16487 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16488 _ACEOF
16491 done
16494 # Checks for library functions.
16495 for ac_header in stdlib.h
16496 do :
16497 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
16498 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
16499 cat >>confdefs.h <<_ACEOF
16500 #define HAVE_STDLIB_H 1
16501 _ACEOF
16505 done
16507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
16508 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
16509 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
16510 $as_echo_n "(cached) " >&6
16511 else
16512 if test "$cross_compiling" = yes; then :
16513 ac_cv_func_malloc_0_nonnull=no
16514 else
16515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16516 /* end confdefs.h. */
16517 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
16518 # include <stdlib.h>
16519 #else
16520 char *malloc ();
16521 #endif
16524 main ()
16526 return ! malloc (0);
16528 return 0;
16530 _ACEOF
16531 if ac_fn_c_try_run "$LINENO"; then :
16532 ac_cv_func_malloc_0_nonnull=yes
16533 else
16534 ac_cv_func_malloc_0_nonnull=no
16536 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16537 conftest.$ac_objext conftest.beam conftest.$ac_ext
16541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
16542 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
16543 if test $ac_cv_func_malloc_0_nonnull = yes; then :
16545 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
16547 else
16548 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
16550 case " $LIBOBJS " in
16551 *" malloc.$ac_objext "* ) ;;
16552 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
16554 esac
16557 $as_echo "#define malloc rpl_malloc" >>confdefs.h
16565 for ac_header in $ac_header_list
16566 do :
16567 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16568 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16570 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16571 cat >>confdefs.h <<_ACEOF
16572 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16573 _ACEOF
16577 done
16582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether utime accepts a null argument" >&5
16583 $as_echo_n "checking whether utime accepts a null argument... " >&6; }
16584 if test "${ac_cv_func_utime_null+set}" = set; then :
16585 $as_echo_n "(cached) " >&6
16586 else
16587 rm -f conftest.data; >conftest.data
16588 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
16589 if test "$cross_compiling" = yes; then :
16590 ac_cv_func_utime_null='guessing yes'
16591 else
16592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16593 /* end confdefs.h. */
16594 $ac_includes_default
16595 #ifdef HAVE_UTIME_H
16596 # include <utime.h>
16597 #endif
16599 main ()
16601 struct stat s, t;
16602 return ! (stat ("conftest.data", &s) == 0
16603 && utime ("conftest.data", 0) == 0
16604 && stat ("conftest.data", &t) == 0
16605 && t.st_mtime >= s.st_mtime
16606 && t.st_mtime - s.st_mtime < 120);
16608 return 0;
16610 _ACEOF
16611 if ac_fn_c_try_run "$LINENO"; then :
16612 ac_cv_func_utime_null=yes
16613 else
16614 ac_cv_func_utime_null=no
16616 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16617 conftest.$ac_objext conftest.beam conftest.$ac_ext
16621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_utime_null" >&5
16622 $as_echo "$ac_cv_func_utime_null" >&6; }
16623 if test "x$ac_cv_func_utime_null" != xno; then
16624 ac_cv_func_utime_null=yes
16626 $as_echo "#define HAVE_UTIME_NULL 1" >>confdefs.h
16629 rm -f conftest.data
16631 for ac_func in vprintf
16632 do :
16633 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
16634 if test "x$ac_cv_func_vprintf" = x""yes; then :
16635 cat >>confdefs.h <<_ACEOF
16636 #define HAVE_VPRINTF 1
16637 _ACEOF
16639 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
16640 if test "x$ac_cv_func__doprnt" = x""yes; then :
16642 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
16647 done
16650 ac_config_files="$ac_config_files Makefile"
16653 cat >confcache <<\_ACEOF
16654 # This file is a shell script that caches the results of configure
16655 # tests run on this system so they can be shared between configure
16656 # scripts and configure runs, see configure's option --config-cache.
16657 # It is not useful on other systems. If it contains results you don't
16658 # want to keep, you may remove or edit it.
16660 # config.status only pays attention to the cache file if you give it
16661 # the --recheck option to rerun configure.
16663 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16664 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16665 # following values.
16667 _ACEOF
16669 # The following way of writing the cache mishandles newlines in values,
16670 # but we know of no workaround that is simple, portable, and efficient.
16671 # So, we kill variables containing newlines.
16672 # Ultrix sh set writes to stderr and can't be redirected directly,
16673 # and sets the high bit in the cache file unless we assign to the vars.
16675 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16676 eval ac_val=\$$ac_var
16677 case $ac_val in #(
16678 *${as_nl}*)
16679 case $ac_var in #(
16680 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16681 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16682 esac
16683 case $ac_var in #(
16684 _ | IFS | as_nl) ;; #(
16685 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16686 *) { eval $ac_var=; unset $ac_var;} ;;
16687 esac ;;
16688 esac
16689 done
16691 (set) 2>&1 |
16692 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16693 *${as_nl}ac_space=\ *)
16694 # `set' does not quote correctly, so add quotes: double-quote
16695 # substitution turns \\\\ into \\, and sed turns \\ into \.
16696 sed -n \
16697 "s/'/'\\\\''/g;
16698 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16699 ;; #(
16701 # `set' quotes correctly as required by POSIX, so do not add quotes.
16702 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16704 esac |
16705 sort
16707 sed '
16708 /^ac_cv_env_/b end
16709 t clear
16710 :clear
16711 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16712 t end
16713 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16714 :end' >>confcache
16715 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16716 if test -w "$cache_file"; then
16717 test "x$cache_file" != "x/dev/null" &&
16718 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16719 $as_echo "$as_me: updating cache $cache_file" >&6;}
16720 cat confcache >$cache_file
16721 else
16722 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16723 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16726 rm -f confcache
16728 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16729 # Let make expand exec_prefix.
16730 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16732 DEFS=-DHAVE_CONFIG_H
16734 ac_libobjs=
16735 ac_ltlibobjs=
16737 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16738 # 1. Remove the extension, and $U if already installed.
16739 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16740 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16741 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16742 # will be set to the directory where LIBOBJS objects are built.
16743 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16744 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16745 done
16746 LIBOBJS=$ac_libobjs
16748 LTLIBOBJS=$ac_ltlibobjs
16752 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16753 as_fn_error $? "conditional \"AMDEP\" was never defined.
16754 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16756 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16757 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16758 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16760 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16761 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16762 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16764 if test -n "$EXEEXT"; then
16765 am__EXEEXT_TRUE=
16766 am__EXEEXT_FALSE='#'
16767 else
16768 am__EXEEXT_TRUE='#'
16769 am__EXEEXT_FALSE=
16773 : ${CONFIG_STATUS=./config.status}
16774 ac_write_fail=0
16775 ac_clean_files_save=$ac_clean_files
16776 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16778 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16779 as_write_fail=0
16780 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16781 #! $SHELL
16782 # Generated by $as_me.
16783 # Run this file to recreate the current configuration.
16784 # Compiler output produced by configure, useful for debugging
16785 # configure, is in config.log if it exists.
16787 debug=false
16788 ac_cs_recheck=false
16789 ac_cs_silent=false
16791 SHELL=\${CONFIG_SHELL-$SHELL}
16792 export SHELL
16793 _ASEOF
16794 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16795 ## -------------------- ##
16796 ## M4sh Initialization. ##
16797 ## -------------------- ##
16799 # Be more Bourne compatible
16800 DUALCASE=1; export DUALCASE # for MKS sh
16801 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16802 emulate sh
16803 NULLCMD=:
16804 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16805 # is contrary to our usage. Disable this feature.
16806 alias -g '${1+"$@"}'='"$@"'
16807 setopt NO_GLOB_SUBST
16808 else
16809 case `(set -o) 2>/dev/null` in #(
16810 *posix*) :
16811 set -o posix ;; #(
16812 *) :
16814 esac
16818 as_nl='
16820 export as_nl
16821 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16822 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16823 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16824 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16825 # Prefer a ksh shell builtin over an external printf program on Solaris,
16826 # but without wasting forks for bash or zsh.
16827 if test -z "$BASH_VERSION$ZSH_VERSION" \
16828 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16829 as_echo='print -r --'
16830 as_echo_n='print -rn --'
16831 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16832 as_echo='printf %s\n'
16833 as_echo_n='printf %s'
16834 else
16835 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16836 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16837 as_echo_n='/usr/ucb/echo -n'
16838 else
16839 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16840 as_echo_n_body='eval
16841 arg=$1;
16842 case $arg in #(
16843 *"$as_nl"*)
16844 expr "X$arg" : "X\\(.*\\)$as_nl";
16845 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16846 esac;
16847 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16849 export as_echo_n_body
16850 as_echo_n='sh -c $as_echo_n_body as_echo'
16852 export as_echo_body
16853 as_echo='sh -c $as_echo_body as_echo'
16856 # The user is always right.
16857 if test "${PATH_SEPARATOR+set}" != set; then
16858 PATH_SEPARATOR=:
16859 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16860 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16861 PATH_SEPARATOR=';'
16866 # IFS
16867 # We need space, tab and new line, in precisely that order. Quoting is
16868 # there to prevent editors from complaining about space-tab.
16869 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16870 # splitting by setting IFS to empty value.)
16871 IFS=" "" $as_nl"
16873 # Find who we are. Look in the path if we contain no directory separator.
16874 case $0 in #((
16875 *[\\/]* ) as_myself=$0 ;;
16876 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16877 for as_dir in $PATH
16879 IFS=$as_save_IFS
16880 test -z "$as_dir" && as_dir=.
16881 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16882 done
16883 IFS=$as_save_IFS
16886 esac
16887 # We did not find ourselves, most probably we were run as `sh COMMAND'
16888 # in which case we are not to be found in the path.
16889 if test "x$as_myself" = x; then
16890 as_myself=$0
16892 if test ! -f "$as_myself"; then
16893 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16894 exit 1
16897 # Unset variables that we do not need and which cause bugs (e.g. in
16898 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16899 # suppresses any "Segmentation fault" message there. '((' could
16900 # trigger a bug in pdksh 5.2.14.
16901 for as_var in BASH_ENV ENV MAIL MAILPATH
16902 do eval test x\${$as_var+set} = xset \
16903 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16904 done
16905 PS1='$ '
16906 PS2='> '
16907 PS4='+ '
16909 # NLS nuisances.
16910 LC_ALL=C
16911 export LC_ALL
16912 LANGUAGE=C
16913 export LANGUAGE
16915 # CDPATH.
16916 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16919 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16920 # ----------------------------------------
16921 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16922 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16923 # script with STATUS, using 1 if that was 0.
16924 as_fn_error ()
16926 as_status=$1; test $as_status -eq 0 && as_status=1
16927 if test "$4"; then
16928 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16929 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16931 $as_echo "$as_me: error: $2" >&2
16932 as_fn_exit $as_status
16933 } # as_fn_error
16936 # as_fn_set_status STATUS
16937 # -----------------------
16938 # Set $? to STATUS, without forking.
16939 as_fn_set_status ()
16941 return $1
16942 } # as_fn_set_status
16944 # as_fn_exit STATUS
16945 # -----------------
16946 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16947 as_fn_exit ()
16949 set +e
16950 as_fn_set_status $1
16951 exit $1
16952 } # as_fn_exit
16954 # as_fn_unset VAR
16955 # ---------------
16956 # Portably unset VAR.
16957 as_fn_unset ()
16959 { eval $1=; unset $1;}
16961 as_unset=as_fn_unset
16962 # as_fn_append VAR VALUE
16963 # ----------------------
16964 # Append the text in VALUE to the end of the definition contained in VAR. Take
16965 # advantage of any shell optimizations that allow amortized linear growth over
16966 # repeated appends, instead of the typical quadratic growth present in naive
16967 # implementations.
16968 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16969 eval 'as_fn_append ()
16971 eval $1+=\$2
16973 else
16974 as_fn_append ()
16976 eval $1=\$$1\$2
16978 fi # as_fn_append
16980 # as_fn_arith ARG...
16981 # ------------------
16982 # Perform arithmetic evaluation on the ARGs, and store the result in the
16983 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16984 # must be portable across $(()) and expr.
16985 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16986 eval 'as_fn_arith ()
16988 as_val=$(( $* ))
16990 else
16991 as_fn_arith ()
16993 as_val=`expr "$@" || test $? -eq 1`
16995 fi # as_fn_arith
16998 if expr a : '\(a\)' >/dev/null 2>&1 &&
16999 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17000 as_expr=expr
17001 else
17002 as_expr=false
17005 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17006 as_basename=basename
17007 else
17008 as_basename=false
17011 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17012 as_dirname=dirname
17013 else
17014 as_dirname=false
17017 as_me=`$as_basename -- "$0" ||
17018 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17019 X"$0" : 'X\(//\)$' \| \
17020 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17021 $as_echo X/"$0" |
17022 sed '/^.*\/\([^/][^/]*\)\/*$/{
17023 s//\1/
17026 /^X\/\(\/\/\)$/{
17027 s//\1/
17030 /^X\/\(\/\).*/{
17031 s//\1/
17034 s/.*/./; q'`
17036 # Avoid depending upon Character Ranges.
17037 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17038 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17039 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17040 as_cr_digits='0123456789'
17041 as_cr_alnum=$as_cr_Letters$as_cr_digits
17043 ECHO_C= ECHO_N= ECHO_T=
17044 case `echo -n x` in #(((((
17045 -n*)
17046 case `echo 'xy\c'` in
17047 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17048 xy) ECHO_C='\c';;
17049 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17050 ECHO_T=' ';;
17051 esac;;
17053 ECHO_N='-n';;
17054 esac
17056 rm -f conf$$ conf$$.exe conf$$.file
17057 if test -d conf$$.dir; then
17058 rm -f conf$$.dir/conf$$.file
17059 else
17060 rm -f conf$$.dir
17061 mkdir conf$$.dir 2>/dev/null
17063 if (echo >conf$$.file) 2>/dev/null; then
17064 if ln -s conf$$.file conf$$ 2>/dev/null; then
17065 as_ln_s='ln -s'
17066 # ... but there are two gotchas:
17067 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17068 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17069 # In both cases, we have to default to `cp -p'.
17070 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17071 as_ln_s='cp -p'
17072 elif ln conf$$.file conf$$ 2>/dev/null; then
17073 as_ln_s=ln
17074 else
17075 as_ln_s='cp -p'
17077 else
17078 as_ln_s='cp -p'
17080 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17081 rmdir conf$$.dir 2>/dev/null
17084 # as_fn_mkdir_p
17085 # -------------
17086 # Create "$as_dir" as a directory, including parents if necessary.
17087 as_fn_mkdir_p ()
17090 case $as_dir in #(
17091 -*) as_dir=./$as_dir;;
17092 esac
17093 test -d "$as_dir" || eval $as_mkdir_p || {
17094 as_dirs=
17095 while :; do
17096 case $as_dir in #(
17097 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17098 *) as_qdir=$as_dir;;
17099 esac
17100 as_dirs="'$as_qdir' $as_dirs"
17101 as_dir=`$as_dirname -- "$as_dir" ||
17102 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17103 X"$as_dir" : 'X\(//\)[^/]' \| \
17104 X"$as_dir" : 'X\(//\)$' \| \
17105 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17106 $as_echo X"$as_dir" |
17107 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17108 s//\1/
17111 /^X\(\/\/\)[^/].*/{
17112 s//\1/
17115 /^X\(\/\/\)$/{
17116 s//\1/
17119 /^X\(\/\).*/{
17120 s//\1/
17123 s/.*/./; q'`
17124 test -d "$as_dir" && break
17125 done
17126 test -z "$as_dirs" || eval "mkdir $as_dirs"
17127 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17130 } # as_fn_mkdir_p
17131 if mkdir -p . 2>/dev/null; then
17132 as_mkdir_p='mkdir -p "$as_dir"'
17133 else
17134 test -d ./-p && rmdir ./-p
17135 as_mkdir_p=false
17138 if test -x / >/dev/null 2>&1; then
17139 as_test_x='test -x'
17140 else
17141 if ls -dL / >/dev/null 2>&1; then
17142 as_ls_L_option=L
17143 else
17144 as_ls_L_option=
17146 as_test_x='
17147 eval sh -c '\''
17148 if test -d "$1"; then
17149 test -d "$1/.";
17150 else
17151 case $1 in #(
17152 -*)set "./$1";;
17153 esac;
17154 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17155 ???[sx]*):;;*)false;;esac;fi
17156 '\'' sh
17159 as_executable_p=$as_test_x
17161 # Sed expression to map a string onto a valid CPP name.
17162 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17164 # Sed expression to map a string onto a valid variable name.
17165 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17168 exec 6>&1
17169 ## ----------------------------------- ##
17170 ## Main body of $CONFIG_STATUS script. ##
17171 ## ----------------------------------- ##
17172 _ASEOF
17173 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17175 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17176 # Save the log message, to keep $0 and so on meaningful, and to
17177 # report actual input values of CONFIG_FILES etc. instead of their
17178 # values after options handling.
17179 ac_log="
17180 This file was extended by GNU Python Runtime Library $as_me 0.1, which was
17181 generated by GNU Autoconf 2.67. Invocation command line was
17183 CONFIG_FILES = $CONFIG_FILES
17184 CONFIG_HEADERS = $CONFIG_HEADERS
17185 CONFIG_LINKS = $CONFIG_LINKS
17186 CONFIG_COMMANDS = $CONFIG_COMMANDS
17187 $ $0 $@
17189 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17192 _ACEOF
17194 case $ac_config_files in *"
17195 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17196 esac
17198 case $ac_config_headers in *"
17199 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17200 esac
17203 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17204 # Files that config.status was made for.
17205 config_files="$ac_config_files"
17206 config_headers="$ac_config_headers"
17207 config_commands="$ac_config_commands"
17209 _ACEOF
17211 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17212 ac_cs_usage="\
17213 \`$as_me' instantiates files and other configuration actions
17214 from templates according to the current configuration. Unless the files
17215 and actions are specified as TAGs, all are instantiated by default.
17217 Usage: $0 [OPTION]... [TAG]...
17219 -h, --help print this help, then exit
17220 -V, --version print version number and configuration settings, then exit
17221 --config print configuration, then exit
17222 -q, --quiet, --silent
17223 do not print progress messages
17224 -d, --debug don't remove temporary files
17225 --recheck update $as_me by reconfiguring in the same conditions
17226 --file=FILE[:TEMPLATE]
17227 instantiate the configuration file FILE
17228 --header=FILE[:TEMPLATE]
17229 instantiate the configuration header FILE
17231 Configuration files:
17232 $config_files
17234 Configuration headers:
17235 $config_headers
17237 Configuration commands:
17238 $config_commands
17240 Report bugs to the package provider.
17241 GNU Python Runtime Library home page: <http://www.gnu.org/software/libgpython/>.
17242 General help using GNU software: <http://www.gnu.org/gethelp/>."
17244 _ACEOF
17245 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17246 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17247 ac_cs_version="\\
17248 GNU Python Runtime Library config.status 0.1
17249 configured by $0, generated by GNU Autoconf 2.67,
17250 with options \\"\$ac_cs_config\\"
17252 Copyright (C) 2010 Free Software Foundation, Inc.
17253 This config.status script is free software; the Free Software Foundation
17254 gives unlimited permission to copy, distribute and modify it."
17256 ac_pwd='$ac_pwd'
17257 srcdir='$srcdir'
17258 INSTALL='$INSTALL'
17259 MKDIR_P='$MKDIR_P'
17260 AWK='$AWK'
17261 test -n "\$AWK" || AWK=awk
17262 _ACEOF
17264 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17265 # The default lists apply if the user does not specify any file.
17266 ac_need_defaults=:
17267 while test $# != 0
17269 case $1 in
17270 --*=?*)
17271 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17272 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17273 ac_shift=:
17275 --*=)
17276 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17277 ac_optarg=
17278 ac_shift=:
17281 ac_option=$1
17282 ac_optarg=$2
17283 ac_shift=shift
17285 esac
17287 case $ac_option in
17288 # Handling of the options.
17289 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17290 ac_cs_recheck=: ;;
17291 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17292 $as_echo "$ac_cs_version"; exit ;;
17293 --config | --confi | --conf | --con | --co | --c )
17294 $as_echo "$ac_cs_config"; exit ;;
17295 --debug | --debu | --deb | --de | --d | -d )
17296 debug=: ;;
17297 --file | --fil | --fi | --f )
17298 $ac_shift
17299 case $ac_optarg in
17300 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17301 '') as_fn_error $? "missing file argument" ;;
17302 esac
17303 as_fn_append CONFIG_FILES " '$ac_optarg'"
17304 ac_need_defaults=false;;
17305 --header | --heade | --head | --hea )
17306 $ac_shift
17307 case $ac_optarg in
17308 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17309 esac
17310 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17311 ac_need_defaults=false;;
17312 --he | --h)
17313 # Conflict between --help and --header
17314 as_fn_error $? "ambiguous option: \`$1'
17315 Try \`$0 --help' for more information.";;
17316 --help | --hel | -h )
17317 $as_echo "$ac_cs_usage"; exit ;;
17318 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17319 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17320 ac_cs_silent=: ;;
17322 # This is an error.
17323 -*) as_fn_error $? "unrecognized option: \`$1'
17324 Try \`$0 --help' for more information." ;;
17326 *) as_fn_append ac_config_targets " $1"
17327 ac_need_defaults=false ;;
17329 esac
17330 shift
17331 done
17333 ac_configure_extra_args=
17335 if $ac_cs_silent; then
17336 exec 6>/dev/null
17337 ac_configure_extra_args="$ac_configure_extra_args --silent"
17340 _ACEOF
17341 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17342 if \$ac_cs_recheck; then
17343 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17344 shift
17345 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17346 CONFIG_SHELL='$SHELL'
17347 export CONFIG_SHELL
17348 exec "\$@"
17351 _ACEOF
17352 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17353 exec 5>>config.log
17355 echo
17356 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17357 ## Running $as_me. ##
17358 _ASBOX
17359 $as_echo "$ac_log"
17360 } >&5
17362 _ACEOF
17363 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17365 # INIT-COMMANDS
17369 # The HP-UX ksh and POSIX shell print the target directory to stdout
17370 # if CDPATH is set.
17371 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17373 sed_quote_subst='$sed_quote_subst'
17374 double_quote_subst='$double_quote_subst'
17375 delay_variable_subst='$delay_variable_subst'
17376 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
17377 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
17378 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
17379 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
17380 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
17381 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
17382 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
17383 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
17384 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
17385 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
17386 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
17387 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
17388 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
17389 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
17390 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
17391 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
17392 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
17393 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
17394 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
17395 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
17396 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
17397 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
17398 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
17399 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
17400 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
17401 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
17402 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
17403 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17404 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
17405 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
17406 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
17407 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
17408 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17409 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
17410 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
17411 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17412 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17413 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17414 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
17415 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17416 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
17417 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
17418 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
17419 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
17420 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"`'
17421 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"`'
17422 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
17423 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
17424 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
17425 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
17426 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
17427 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
17428 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
17429 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
17430 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
17431 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
17432 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
17433 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
17434 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
17435 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
17436 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
17437 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
17438 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17439 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17440 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
17441 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
17442 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17443 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17444 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
17445 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17446 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17447 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17448 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17449 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17450 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17451 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
17452 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17453 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17454 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17455 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
17456 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
17457 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
17458 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
17459 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
17460 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17461 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
17462 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
17463 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
17464 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
17465 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
17466 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17467 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17468 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17469 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17470 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
17471 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
17472 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17473 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
17474 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
17475 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17476 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17477 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
17478 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17479 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
17480 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17481 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17482 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17483 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17484 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
17485 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
17486 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17487 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17488 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
17489 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
17490 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
17491 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
17492 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
17493 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
17494 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
17495 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17496 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17497 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
17498 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
17499 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
17500 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17501 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17502 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17503 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17504 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17505 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17506 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17507 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17508 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17509 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17510 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17511 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17512 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17513 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17514 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17515 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17516 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17517 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17518 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17519 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17520 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17521 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17522 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17523 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17524 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17525 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17526 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17527 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17528 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17529 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17530 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17531 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17532 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17533 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17534 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17535 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17536 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17537 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17538 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17539 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17540 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17541 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17542 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17543 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17544 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17545 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17546 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17548 LTCC='$LTCC'
17549 LTCFLAGS='$LTCFLAGS'
17550 compiler='$compiler_DEFAULT'
17552 # Quote evaled strings.
17553 for var in SED \
17554 GREP \
17555 EGREP \
17556 FGREP \
17557 LD \
17558 NM \
17559 LN_S \
17560 lt_SP2NL \
17561 lt_NL2SP \
17562 reload_flag \
17563 OBJDUMP \
17564 deplibs_check_method \
17565 file_magic_cmd \
17566 AR \
17567 AR_FLAGS \
17568 STRIP \
17569 RANLIB \
17570 CC \
17571 CFLAGS \
17572 compiler \
17573 lt_cv_sys_global_symbol_pipe \
17574 lt_cv_sys_global_symbol_to_cdecl \
17575 lt_cv_sys_global_symbol_to_c_name_address \
17576 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17577 SHELL \
17578 ECHO \
17579 lt_prog_compiler_no_builtin_flag \
17580 lt_prog_compiler_wl \
17581 lt_prog_compiler_pic \
17582 lt_prog_compiler_static \
17583 lt_cv_prog_compiler_c_o \
17584 need_locks \
17585 DSYMUTIL \
17586 NMEDIT \
17587 LIPO \
17588 OTOOL \
17589 OTOOL64 \
17590 shrext_cmds \
17591 export_dynamic_flag_spec \
17592 whole_archive_flag_spec \
17593 compiler_needs_object \
17594 with_gnu_ld \
17595 allow_undefined_flag \
17596 no_undefined_flag \
17597 hardcode_libdir_flag_spec \
17598 hardcode_libdir_flag_spec_ld \
17599 hardcode_libdir_separator \
17600 fix_srcfile_path \
17601 exclude_expsyms \
17602 include_expsyms \
17603 file_list_spec \
17604 variables_saved_for_relink \
17605 libname_spec \
17606 library_names_spec \
17607 soname_spec \
17608 finish_eval \
17609 old_striplib \
17610 striplib \
17611 compiler_lib_search_dirs \
17612 predep_objects \
17613 postdep_objects \
17614 predeps \
17615 postdeps \
17616 compiler_lib_search_path \
17617 LD_CXX \
17618 compiler_CXX \
17619 lt_prog_compiler_no_builtin_flag_CXX \
17620 lt_prog_compiler_wl_CXX \
17621 lt_prog_compiler_pic_CXX \
17622 lt_prog_compiler_static_CXX \
17623 lt_cv_prog_compiler_c_o_CXX \
17624 export_dynamic_flag_spec_CXX \
17625 whole_archive_flag_spec_CXX \
17626 compiler_needs_object_CXX \
17627 with_gnu_ld_CXX \
17628 allow_undefined_flag_CXX \
17629 no_undefined_flag_CXX \
17630 hardcode_libdir_flag_spec_CXX \
17631 hardcode_libdir_flag_spec_ld_CXX \
17632 hardcode_libdir_separator_CXX \
17633 fix_srcfile_path_CXX \
17634 exclude_expsyms_CXX \
17635 include_expsyms_CXX \
17636 file_list_spec_CXX \
17637 compiler_lib_search_dirs_CXX \
17638 predep_objects_CXX \
17639 postdep_objects_CXX \
17640 predeps_CXX \
17641 postdeps_CXX \
17642 compiler_lib_search_path_CXX; do
17643 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17644 *[\\\\\\\`\\"\\\$]*)
17645 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17648 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17650 esac
17651 done
17653 # Double-quote double-evaled strings.
17654 for var in reload_cmds \
17655 old_postinstall_cmds \
17656 old_postuninstall_cmds \
17657 old_archive_cmds \
17658 extract_expsyms_cmds \
17659 old_archive_from_new_cmds \
17660 old_archive_from_expsyms_cmds \
17661 archive_cmds \
17662 archive_expsym_cmds \
17663 module_cmds \
17664 module_expsym_cmds \
17665 export_symbols_cmds \
17666 prelink_cmds \
17667 postinstall_cmds \
17668 postuninstall_cmds \
17669 finish_cmds \
17670 sys_lib_search_path_spec \
17671 sys_lib_dlsearch_path_spec \
17672 old_archive_cmds_CXX \
17673 old_archive_from_new_cmds_CXX \
17674 old_archive_from_expsyms_cmds_CXX \
17675 archive_cmds_CXX \
17676 archive_expsym_cmds_CXX \
17677 module_cmds_CXX \
17678 module_expsym_cmds_CXX \
17679 export_symbols_cmds_CXX \
17680 prelink_cmds_CXX; do
17681 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17682 *[\\\\\\\`\\"\\\$]*)
17683 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17686 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17688 esac
17689 done
17691 # Fix-up fallback echo if it was mangled by the above quoting rules.
17692 case \$lt_ECHO in
17693 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17695 esac
17697 ac_aux_dir='$ac_aux_dir'
17698 xsi_shell='$xsi_shell'
17699 lt_shell_append='$lt_shell_append'
17701 # See if we are running on zsh, and set the options which allow our
17702 # commands through without removal of \ escapes INIT.
17703 if test -n "\${ZSH_VERSION+set}" ; then
17704 setopt NO_GLOB_SUBST
17708 PACKAGE='$PACKAGE'
17709 VERSION='$VERSION'
17710 TIMESTAMP='$TIMESTAMP'
17711 RM='$RM'
17712 ofile='$ofile'
17718 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17720 _ACEOF
17722 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17724 # Handling of arguments.
17725 for ac_config_target in $ac_config_targets
17727 case $ac_config_target in
17728 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17729 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17730 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17731 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17733 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
17734 esac
17735 done
17738 # If the user did not use the arguments to specify the items to instantiate,
17739 # then the envvar interface is used. Set only those that are not.
17740 # We use the long form for the default assignment because of an extremely
17741 # bizarre bug on SunOS 4.1.3.
17742 if $ac_need_defaults; then
17743 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17744 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17745 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17748 # Have a temporary directory for convenience. Make it in the build tree
17749 # simply because there is no reason against having it here, and in addition,
17750 # creating and moving files from /tmp can sometimes cause problems.
17751 # Hook for its removal unless debugging.
17752 # Note that there is a small window in which the directory will not be cleaned:
17753 # after its creation but before its name has been assigned to `$tmp'.
17754 $debug ||
17756 tmp=
17757 trap 'exit_status=$?
17758 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17760 trap 'as_fn_exit 1' 1 2 13 15
17762 # Create a (secure) tmp directory for tmp files.
17765 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17766 test -n "$tmp" && test -d "$tmp"
17767 } ||
17769 tmp=./conf$$-$RANDOM
17770 (umask 077 && mkdir "$tmp")
17771 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17773 # Set up the scripts for CONFIG_FILES section.
17774 # No need to generate them if there are no CONFIG_FILES.
17775 # This happens for instance with `./config.status config.h'.
17776 if test -n "$CONFIG_FILES"; then
17779 ac_cr=`echo X | tr X '\015'`
17780 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17781 # But we know of no other shell where ac_cr would be empty at this
17782 # point, so we can use a bashism as a fallback.
17783 if test "x$ac_cr" = x; then
17784 eval ac_cr=\$\'\\r\'
17786 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17787 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17788 ac_cs_awk_cr='\\r'
17789 else
17790 ac_cs_awk_cr=$ac_cr
17793 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17794 _ACEOF
17798 echo "cat >conf$$subs.awk <<_ACEOF" &&
17799 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17800 echo "_ACEOF"
17801 } >conf$$subs.sh ||
17802 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17803 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17804 ac_delim='%!_!# '
17805 for ac_last_try in false false false false false :; do
17806 . ./conf$$subs.sh ||
17807 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17809 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17810 if test $ac_delim_n = $ac_delim_num; then
17811 break
17812 elif $ac_last_try; then
17813 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17814 else
17815 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17817 done
17818 rm -f conf$$subs.sh
17820 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17821 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17822 _ACEOF
17823 sed -n '
17825 s/^/S["/; s/!.*/"]=/
17828 s/^[^!]*!//
17829 :repl
17830 t repl
17831 s/'"$ac_delim"'$//
17832 t delim
17835 s/\(.\{148\}\)..*/\1/
17836 t more1
17837 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17840 b repl
17841 :more1
17842 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17845 s/.\{148\}//
17846 t nl
17847 :delim
17849 s/\(.\{148\}\)..*/\1/
17850 t more2
17851 s/["\\]/\\&/g; s/^/"/; s/$/"/
17854 :more2
17855 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17858 s/.\{148\}//
17859 t delim
17860 ' <conf$$subs.awk | sed '
17861 /^[^""]/{
17863 s/\n//
17865 ' >>$CONFIG_STATUS || ac_write_fail=1
17866 rm -f conf$$subs.awk
17867 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17868 _ACAWK
17869 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17870 for (key in S) S_is_set[key] = 1
17871 FS = "\a"
17875 line = $ 0
17876 nfields = split(line, field, "@")
17877 substed = 0
17878 len = length(field[1])
17879 for (i = 2; i < nfields; i++) {
17880 key = field[i]
17881 keylen = length(key)
17882 if (S_is_set[key]) {
17883 value = S[key]
17884 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17885 len += length(value) + length(field[++i])
17886 substed = 1
17887 } else
17888 len += 1 + keylen
17891 print line
17894 _ACAWK
17895 _ACEOF
17896 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17897 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17898 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17899 else
17901 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17902 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17903 _ACEOF
17905 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17906 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17907 # trailing colons and then remove the whole line if VPATH becomes empty
17908 # (actually we leave an empty line to preserve line numbers).
17909 if test "x$srcdir" = x.; then
17910 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17912 s///
17913 s/^/:/
17914 s/[ ]*$/:/
17915 s/:\$(srcdir):/:/g
17916 s/:\${srcdir}:/:/g
17917 s/:@srcdir@:/:/g
17918 s/^:*//
17919 s/:*$//
17921 s/\(=[ ]*\).*/\1/
17923 s/\n//
17924 s/^[^=]*=[ ]*$//
17928 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17929 fi # test -n "$CONFIG_FILES"
17931 # Set up the scripts for CONFIG_HEADERS section.
17932 # No need to generate them if there are no CONFIG_HEADERS.
17933 # This happens for instance with `./config.status Makefile'.
17934 if test -n "$CONFIG_HEADERS"; then
17935 cat >"$tmp/defines.awk" <<\_ACAWK ||
17936 BEGIN {
17937 _ACEOF
17939 # Transform confdefs.h into an awk script `defines.awk', embedded as
17940 # here-document in config.status, that substitutes the proper values into
17941 # config.h.in to produce config.h.
17943 # Create a delimiter string that does not exist in confdefs.h, to ease
17944 # handling of long lines.
17945 ac_delim='%!_!# '
17946 for ac_last_try in false false :; do
17947 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17948 if test -z "$ac_t"; then
17949 break
17950 elif $ac_last_try; then
17951 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17952 else
17953 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17955 done
17957 # For the awk script, D is an array of macro values keyed by name,
17958 # likewise P contains macro parameters if any. Preserve backslash
17959 # newline sequences.
17961 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17962 sed -n '
17963 s/.\{148\}/&'"$ac_delim"'/g
17964 t rset
17965 :rset
17966 s/^[ ]*#[ ]*define[ ][ ]*/ /
17967 t def
17969 :def
17970 s/\\$//
17971 t bsnl
17972 s/["\\]/\\&/g
17973 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17974 D["\1"]=" \3"/p
17975 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17977 :bsnl
17978 s/["\\]/\\&/g
17979 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17980 D["\1"]=" \3\\\\\\n"\\/p
17981 t cont
17982 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17983 t cont
17985 :cont
17987 s/.\{148\}/&'"$ac_delim"'/g
17988 t clear
17989 :clear
17990 s/\\$//
17991 t bsnlc
17992 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17994 :bsnlc
17995 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17996 b cont
17997 ' <confdefs.h | sed '
17998 s/'"$ac_delim"'/"\\\
17999 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18001 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18002 for (key in D) D_is_set[key] = 1
18003 FS = "\a"
18005 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18006 line = \$ 0
18007 split(line, arg, " ")
18008 if (arg[1] == "#") {
18009 defundef = arg[2]
18010 mac1 = arg[3]
18011 } else {
18012 defundef = substr(arg[1], 2)
18013 mac1 = arg[2]
18015 split(mac1, mac2, "(") #)
18016 macro = mac2[1]
18017 prefix = substr(line, 1, index(line, defundef) - 1)
18018 if (D_is_set[macro]) {
18019 # Preserve the white space surrounding the "#".
18020 print prefix "define", macro P[macro] D[macro]
18021 next
18022 } else {
18023 # Replace #undef with comments. This is necessary, for example,
18024 # in the case of _POSIX_SOURCE, which is predefined and required
18025 # on some systems where configure will not decide to define it.
18026 if (defundef == "undef") {
18027 print "/*", prefix defundef, macro, "*/"
18028 next
18032 { print }
18033 _ACAWK
18034 _ACEOF
18035 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18036 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18037 fi # test -n "$CONFIG_HEADERS"
18040 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18041 shift
18042 for ac_tag
18044 case $ac_tag in
18045 :[FHLC]) ac_mode=$ac_tag; continue;;
18046 esac
18047 case $ac_mode$ac_tag in
18048 :[FHL]*:*);;
18049 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
18050 :[FH]-) ac_tag=-:-;;
18051 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18052 esac
18053 ac_save_IFS=$IFS
18054 IFS=:
18055 set x $ac_tag
18056 IFS=$ac_save_IFS
18057 shift
18058 ac_file=$1
18059 shift
18061 case $ac_mode in
18062 :L) ac_source=$1;;
18063 :[FH])
18064 ac_file_inputs=
18065 for ac_f
18067 case $ac_f in
18068 -) ac_f="$tmp/stdin";;
18069 *) # Look for the file first in the build tree, then in the source tree
18070 # (if the path is not absolute). The absolute path cannot be DOS-style,
18071 # because $ac_f cannot contain `:'.
18072 test -f "$ac_f" ||
18073 case $ac_f in
18074 [\\/$]*) false;;
18075 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18076 esac ||
18077 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
18078 esac
18079 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18080 as_fn_append ac_file_inputs " '$ac_f'"
18081 done
18083 # Let's still pretend it is `configure' which instantiates (i.e., don't
18084 # use $as_me), people would be surprised to read:
18085 # /* config.h. Generated by config.status. */
18086 configure_input='Generated from '`
18087 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18088 `' by configure.'
18089 if test x"$ac_file" != x-; then
18090 configure_input="$ac_file. $configure_input"
18091 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18092 $as_echo "$as_me: creating $ac_file" >&6;}
18094 # Neutralize special characters interpreted by sed in replacement strings.
18095 case $configure_input in #(
18096 *\&* | *\|* | *\\* )
18097 ac_sed_conf_input=`$as_echo "$configure_input" |
18098 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18099 *) ac_sed_conf_input=$configure_input;;
18100 esac
18102 case $ac_tag in
18103 *:-:* | *:-) cat >"$tmp/stdin" \
18104 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18105 esac
18107 esac
18109 ac_dir=`$as_dirname -- "$ac_file" ||
18110 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18111 X"$ac_file" : 'X\(//\)[^/]' \| \
18112 X"$ac_file" : 'X\(//\)$' \| \
18113 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18114 $as_echo X"$ac_file" |
18115 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18116 s//\1/
18119 /^X\(\/\/\)[^/].*/{
18120 s//\1/
18123 /^X\(\/\/\)$/{
18124 s//\1/
18127 /^X\(\/\).*/{
18128 s//\1/
18131 s/.*/./; q'`
18132 as_dir="$ac_dir"; as_fn_mkdir_p
18133 ac_builddir=.
18135 case "$ac_dir" in
18136 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18138 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18139 # A ".." for each directory in $ac_dir_suffix.
18140 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18141 case $ac_top_builddir_sub in
18142 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18143 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18144 esac ;;
18145 esac
18146 ac_abs_top_builddir=$ac_pwd
18147 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18148 # for backward compatibility:
18149 ac_top_builddir=$ac_top_build_prefix
18151 case $srcdir in
18152 .) # We are building in place.
18153 ac_srcdir=.
18154 ac_top_srcdir=$ac_top_builddir_sub
18155 ac_abs_top_srcdir=$ac_pwd ;;
18156 [\\/]* | ?:[\\/]* ) # Absolute name.
18157 ac_srcdir=$srcdir$ac_dir_suffix;
18158 ac_top_srcdir=$srcdir
18159 ac_abs_top_srcdir=$srcdir ;;
18160 *) # Relative name.
18161 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18162 ac_top_srcdir=$ac_top_build_prefix$srcdir
18163 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18164 esac
18165 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18168 case $ac_mode in
18171 # CONFIG_FILE
18174 case $INSTALL in
18175 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18176 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18177 esac
18178 ac_MKDIR_P=$MKDIR_P
18179 case $MKDIR_P in
18180 [\\/$]* | ?:[\\/]* ) ;;
18181 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18182 esac
18183 _ACEOF
18185 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18186 # If the template does not know about datarootdir, expand it.
18187 # FIXME: This hack should be removed a few years after 2.60.
18188 ac_datarootdir_hack=; ac_datarootdir_seen=
18189 ac_sed_dataroot='
18190 /datarootdir/ {
18194 /@datadir@/p
18195 /@docdir@/p
18196 /@infodir@/p
18197 /@localedir@/p
18198 /@mandir@/p'
18199 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18200 *datarootdir*) ac_datarootdir_seen=yes;;
18201 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18203 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18204 _ACEOF
18205 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18206 ac_datarootdir_hack='
18207 s&@datadir@&$datadir&g
18208 s&@docdir@&$docdir&g
18209 s&@infodir@&$infodir&g
18210 s&@localedir@&$localedir&g
18211 s&@mandir@&$mandir&g
18212 s&\\\${datarootdir}&$datarootdir&g' ;;
18213 esac
18214 _ACEOF
18216 # Neutralize VPATH when `$srcdir' = `.'.
18217 # Shell code in configure.ac might set extrasub.
18218 # FIXME: do we really want to maintain this feature?
18219 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18220 ac_sed_extra="$ac_vpsub
18221 $extrasub
18222 _ACEOF
18223 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18225 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18226 s|@configure_input@|$ac_sed_conf_input|;t t
18227 s&@top_builddir@&$ac_top_builddir_sub&;t t
18228 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18229 s&@srcdir@&$ac_srcdir&;t t
18230 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18231 s&@top_srcdir@&$ac_top_srcdir&;t t
18232 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18233 s&@builddir@&$ac_builddir&;t t
18234 s&@abs_builddir@&$ac_abs_builddir&;t t
18235 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18236 s&@INSTALL@&$ac_INSTALL&;t t
18237 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18238 $ac_datarootdir_hack
18240 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18241 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18243 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18244 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18245 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18247 which seems to be undefined. Please make sure it is defined" >&5
18248 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18249 which seems to be undefined. Please make sure it is defined" >&2;}
18251 rm -f "$tmp/stdin"
18252 case $ac_file in
18253 -) cat "$tmp/out" && rm -f "$tmp/out";;
18254 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18255 esac \
18256 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18260 # CONFIG_HEADER
18262 if test x"$ac_file" != x-; then
18264 $as_echo "/* $configure_input */" \
18265 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18266 } >"$tmp/config.h" \
18267 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18268 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18269 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18270 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18271 else
18272 rm -f "$ac_file"
18273 mv "$tmp/config.h" "$ac_file" \
18274 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18276 else
18277 $as_echo "/* $configure_input */" \
18278 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18279 || as_fn_error $? "could not create -" "$LINENO" 5
18281 # Compute "$ac_file"'s index in $config_headers.
18282 _am_arg="$ac_file"
18283 _am_stamp_count=1
18284 for _am_header in $config_headers :; do
18285 case $_am_header in
18286 $_am_arg | $_am_arg:* )
18287 break ;;
18289 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18290 esac
18291 done
18292 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18293 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18294 X"$_am_arg" : 'X\(//\)[^/]' \| \
18295 X"$_am_arg" : 'X\(//\)$' \| \
18296 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18297 $as_echo X"$_am_arg" |
18298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18299 s//\1/
18302 /^X\(\/\/\)[^/].*/{
18303 s//\1/
18306 /^X\(\/\/\)$/{
18307 s//\1/
18310 /^X\(\/\).*/{
18311 s//\1/
18314 s/.*/./; q'`/stamp-h$_am_stamp_count
18317 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18318 $as_echo "$as_me: executing $ac_file commands" >&6;}
18320 esac
18323 case $ac_file$ac_mode in
18324 "libtool":C)
18326 # See if we are running on zsh, and set the options which allow our
18327 # commands through without removal of \ escapes.
18328 if test -n "${ZSH_VERSION+set}" ; then
18329 setopt NO_GLOB_SUBST
18332 cfgfile="${ofile}T"
18333 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18334 $RM "$cfgfile"
18336 cat <<_LT_EOF >> "$cfgfile"
18337 #! $SHELL
18339 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18340 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18341 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18342 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18344 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18345 # 2006, 2007, 2008 Free Software Foundation, Inc.
18346 # Written by Gordon Matzigkeit, 1996
18348 # This file is part of GNU Libtool.
18350 # GNU Libtool is free software; you can redistribute it and/or
18351 # modify it under the terms of the GNU General Public License as
18352 # published by the Free Software Foundation; either version 2 of
18353 # the License, or (at your option) any later version.
18355 # As a special exception to the GNU General Public License,
18356 # if you distribute this file as part of a program or library that
18357 # is built using GNU Libtool, you may include this file under the
18358 # same distribution terms that you use for the rest of that program.
18360 # GNU Libtool is distributed in the hope that it will be useful,
18361 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18362 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18363 # GNU General Public License for more details.
18365 # You should have received a copy of the GNU General Public License
18366 # along with GNU Libtool; see the file COPYING. If not, a copy
18367 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18368 # obtained by writing to the Free Software Foundation, Inc.,
18369 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18372 # The names of the tagged configurations supported by this script.
18373 available_tags="CXX "
18375 # ### BEGIN LIBTOOL CONFIG
18377 # Which release of libtool.m4 was used?
18378 macro_version=$macro_version
18379 macro_revision=$macro_revision
18381 # Whether or not to build shared libraries.
18382 build_libtool_libs=$enable_shared
18384 # Whether or not to build static libraries.
18385 build_old_libs=$enable_static
18387 # What type of objects to build.
18388 pic_mode=$pic_mode
18390 # Whether or not to optimize for fast installation.
18391 fast_install=$enable_fast_install
18393 # The host system.
18394 host_alias=$host_alias
18395 host=$host
18396 host_os=$host_os
18398 # The build system.
18399 build_alias=$build_alias
18400 build=$build
18401 build_os=$build_os
18403 # A sed program that does not truncate output.
18404 SED=$lt_SED
18406 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18407 Xsed="\$SED -e 1s/^X//"
18409 # A grep program that handles long lines.
18410 GREP=$lt_GREP
18412 # An ERE matcher.
18413 EGREP=$lt_EGREP
18415 # A literal string matcher.
18416 FGREP=$lt_FGREP
18418 # A BSD- or MS-compatible name lister.
18419 NM=$lt_NM
18421 # Whether we need soft or hard links.
18422 LN_S=$lt_LN_S
18424 # What is the maximum length of a command?
18425 max_cmd_len=$max_cmd_len
18427 # Object file suffix (normally "o").
18428 objext=$ac_objext
18430 # Executable file suffix (normally "").
18431 exeext=$exeext
18433 # whether the shell understands "unset".
18434 lt_unset=$lt_unset
18436 # turn spaces into newlines.
18437 SP2NL=$lt_lt_SP2NL
18439 # turn newlines into spaces.
18440 NL2SP=$lt_lt_NL2SP
18442 # How to create reloadable object files.
18443 reload_flag=$lt_reload_flag
18444 reload_cmds=$lt_reload_cmds
18446 # An object symbol dumper.
18447 OBJDUMP=$lt_OBJDUMP
18449 # Method to check whether dependent libraries are shared objects.
18450 deplibs_check_method=$lt_deplibs_check_method
18452 # Command to use when deplibs_check_method == "file_magic".
18453 file_magic_cmd=$lt_file_magic_cmd
18455 # The archiver.
18456 AR=$lt_AR
18457 AR_FLAGS=$lt_AR_FLAGS
18459 # A symbol stripping program.
18460 STRIP=$lt_STRIP
18462 # Commands used to install an old-style archive.
18463 RANLIB=$lt_RANLIB
18464 old_postinstall_cmds=$lt_old_postinstall_cmds
18465 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18467 # A C compiler.
18468 LTCC=$lt_CC
18470 # LTCC compiler flags.
18471 LTCFLAGS=$lt_CFLAGS
18473 # Take the output of nm and produce a listing of raw symbols and C names.
18474 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18476 # Transform the output of nm in a proper C declaration.
18477 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18479 # Transform the output of nm in a C name address pair.
18480 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18482 # Transform the output of nm in a C name address pair when lib prefix is needed.
18483 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18485 # The name of the directory that contains temporary libtool files.
18486 objdir=$objdir
18488 # Shell to use when invoking shell scripts.
18489 SHELL=$lt_SHELL
18491 # An echo program that does not interpret backslashes.
18492 ECHO=$lt_ECHO
18494 # Used to examine libraries when file_magic_cmd begins with "file".
18495 MAGIC_CMD=$MAGIC_CMD
18497 # Must we lock files when doing compilation?
18498 need_locks=$lt_need_locks
18500 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18501 DSYMUTIL=$lt_DSYMUTIL
18503 # Tool to change global to local symbols on Mac OS X.
18504 NMEDIT=$lt_NMEDIT
18506 # Tool to manipulate fat objects and archives on Mac OS X.
18507 LIPO=$lt_LIPO
18509 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18510 OTOOL=$lt_OTOOL
18512 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18513 OTOOL64=$lt_OTOOL64
18515 # Old archive suffix (normally "a").
18516 libext=$libext
18518 # Shared library suffix (normally ".so").
18519 shrext_cmds=$lt_shrext_cmds
18521 # The commands to extract the exported symbol list from a shared archive.
18522 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18524 # Variables whose values should be saved in libtool wrapper scripts and
18525 # restored at link time.
18526 variables_saved_for_relink=$lt_variables_saved_for_relink
18528 # Do we need the "lib" prefix for modules?
18529 need_lib_prefix=$need_lib_prefix
18531 # Do we need a version for libraries?
18532 need_version=$need_version
18534 # Library versioning type.
18535 version_type=$version_type
18537 # Shared library runtime path variable.
18538 runpath_var=$runpath_var
18540 # Shared library path variable.
18541 shlibpath_var=$shlibpath_var
18543 # Is shlibpath searched before the hard-coded library search path?
18544 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18546 # Format of library name prefix.
18547 libname_spec=$lt_libname_spec
18549 # List of archive names. First name is the real one, the rest are links.
18550 # The last name is the one that the linker finds with -lNAME
18551 library_names_spec=$lt_library_names_spec
18553 # The coded name of the library, if different from the real name.
18554 soname_spec=$lt_soname_spec
18556 # Command to use after installation of a shared archive.
18557 postinstall_cmds=$lt_postinstall_cmds
18559 # Command to use after uninstallation of a shared archive.
18560 postuninstall_cmds=$lt_postuninstall_cmds
18562 # Commands used to finish a libtool library installation in a directory.
18563 finish_cmds=$lt_finish_cmds
18565 # As "finish_cmds", except a single script fragment to be evaled but
18566 # not shown.
18567 finish_eval=$lt_finish_eval
18569 # Whether we should hardcode library paths into libraries.
18570 hardcode_into_libs=$hardcode_into_libs
18572 # Compile-time system search path for libraries.
18573 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18575 # Run-time system search path for libraries.
18576 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18578 # Whether dlopen is supported.
18579 dlopen_support=$enable_dlopen
18581 # Whether dlopen of programs is supported.
18582 dlopen_self=$enable_dlopen_self
18584 # Whether dlopen of statically linked programs is supported.
18585 dlopen_self_static=$enable_dlopen_self_static
18587 # Commands to strip libraries.
18588 old_striplib=$lt_old_striplib
18589 striplib=$lt_striplib
18592 # The linker used to build libraries.
18593 LD=$lt_LD
18595 # Commands used to build an old-style archive.
18596 old_archive_cmds=$lt_old_archive_cmds
18598 # A language specific compiler.
18599 CC=$lt_compiler
18601 # Is the compiler the GNU compiler?
18602 with_gcc=$GCC
18604 # Compiler flag to turn off builtin functions.
18605 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18607 # How to pass a linker flag through the compiler.
18608 wl=$lt_lt_prog_compiler_wl
18610 # Additional compiler flags for building library objects.
18611 pic_flag=$lt_lt_prog_compiler_pic
18613 # Compiler flag to prevent dynamic linking.
18614 link_static_flag=$lt_lt_prog_compiler_static
18616 # Does compiler simultaneously support -c and -o options?
18617 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18619 # Whether or not to add -lc for building shared libraries.
18620 build_libtool_need_lc=$archive_cmds_need_lc
18622 # Whether or not to disallow shared libs when runtime libs are static.
18623 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18625 # Compiler flag to allow reflexive dlopens.
18626 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18628 # Compiler flag to generate shared objects directly from archives.
18629 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18631 # Whether the compiler copes with passing no objects directly.
18632 compiler_needs_object=$lt_compiler_needs_object
18634 # Create an old-style archive from a shared archive.
18635 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18637 # Create a temporary old-style archive to link instead of a shared archive.
18638 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18640 # Commands used to build a shared archive.
18641 archive_cmds=$lt_archive_cmds
18642 archive_expsym_cmds=$lt_archive_expsym_cmds
18644 # Commands used to build a loadable module if different from building
18645 # a shared archive.
18646 module_cmds=$lt_module_cmds
18647 module_expsym_cmds=$lt_module_expsym_cmds
18649 # Whether we are building with GNU ld or not.
18650 with_gnu_ld=$lt_with_gnu_ld
18652 # Flag that allows shared libraries with undefined symbols to be built.
18653 allow_undefined_flag=$lt_allow_undefined_flag
18655 # Flag that enforces no undefined symbols.
18656 no_undefined_flag=$lt_no_undefined_flag
18658 # Flag to hardcode \$libdir into a binary during linking.
18659 # This must work even if \$libdir does not exist
18660 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18662 # If ld is used when linking, flag to hardcode \$libdir into a binary
18663 # during linking. This must work even if \$libdir does not exist.
18664 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18666 # Whether we need a single "-rpath" flag with a separated argument.
18667 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18669 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18670 # DIR into the resulting binary.
18671 hardcode_direct=$hardcode_direct
18673 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18674 # DIR into the resulting binary and the resulting library dependency is
18675 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18676 # library is relocated.
18677 hardcode_direct_absolute=$hardcode_direct_absolute
18679 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18680 # into the resulting binary.
18681 hardcode_minus_L=$hardcode_minus_L
18683 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18684 # into the resulting binary.
18685 hardcode_shlibpath_var=$hardcode_shlibpath_var
18687 # Set to "yes" if building a shared library automatically hardcodes DIR
18688 # into the library and all subsequent libraries and executables linked
18689 # against it.
18690 hardcode_automatic=$hardcode_automatic
18692 # Set to yes if linker adds runtime paths of dependent libraries
18693 # to runtime path list.
18694 inherit_rpath=$inherit_rpath
18696 # Whether libtool must link a program against all its dependency libraries.
18697 link_all_deplibs=$link_all_deplibs
18699 # Fix the shell variable \$srcfile for the compiler.
18700 fix_srcfile_path=$lt_fix_srcfile_path
18702 # Set to "yes" if exported symbols are required.
18703 always_export_symbols=$always_export_symbols
18705 # The commands to list exported symbols.
18706 export_symbols_cmds=$lt_export_symbols_cmds
18708 # Symbols that should not be listed in the preloaded symbols.
18709 exclude_expsyms=$lt_exclude_expsyms
18711 # Symbols that must always be exported.
18712 include_expsyms=$lt_include_expsyms
18714 # Commands necessary for linking programs (against libraries) with templates.
18715 prelink_cmds=$lt_prelink_cmds
18717 # Specify filename containing input files.
18718 file_list_spec=$lt_file_list_spec
18720 # How to hardcode a shared library path into an executable.
18721 hardcode_action=$hardcode_action
18723 # The directories searched by this compiler when creating a shared library.
18724 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18726 # Dependencies to place before and after the objects being linked to
18727 # create a shared library.
18728 predep_objects=$lt_predep_objects
18729 postdep_objects=$lt_postdep_objects
18730 predeps=$lt_predeps
18731 postdeps=$lt_postdeps
18733 # The library search path used internally by the compiler when linking
18734 # a shared library.
18735 compiler_lib_search_path=$lt_compiler_lib_search_path
18737 # ### END LIBTOOL CONFIG
18739 _LT_EOF
18741 case $host_os in
18742 aix3*)
18743 cat <<\_LT_EOF >> "$cfgfile"
18744 # AIX sometimes has problems with the GCC collect2 program. For some
18745 # reason, if we set the COLLECT_NAMES environment variable, the problems
18746 # vanish in a puff of smoke.
18747 if test "X${COLLECT_NAMES+set}" != Xset; then
18748 COLLECT_NAMES=
18749 export COLLECT_NAMES
18751 _LT_EOF
18753 esac
18756 ltmain="$ac_aux_dir/ltmain.sh"
18759 # We use sed instead of cat because bash on DJGPP gets confused if
18760 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18761 # text mode, it properly converts lines to CR/LF. This bash problem
18762 # is reportedly fixed, but why not run on old versions too?
18763 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18764 || (rm -f "$cfgfile"; exit 1)
18766 case $xsi_shell in
18767 yes)
18768 cat << \_LT_EOF >> "$cfgfile"
18770 # func_dirname file append nondir_replacement
18771 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18772 # otherwise set result to NONDIR_REPLACEMENT.
18773 func_dirname ()
18775 case ${1} in
18776 */*) func_dirname_result="${1%/*}${2}" ;;
18777 * ) func_dirname_result="${3}" ;;
18778 esac
18781 # func_basename file
18782 func_basename ()
18784 func_basename_result="${1##*/}"
18787 # func_dirname_and_basename file append nondir_replacement
18788 # perform func_basename and func_dirname in a single function
18789 # call:
18790 # dirname: Compute the dirname of FILE. If nonempty,
18791 # add APPEND to the result, otherwise set result
18792 # to NONDIR_REPLACEMENT.
18793 # value returned in "$func_dirname_result"
18794 # basename: Compute filename of FILE.
18795 # value retuned in "$func_basename_result"
18796 # Implementation must be kept synchronized with func_dirname
18797 # and func_basename. For efficiency, we do not delegate to
18798 # those functions but instead duplicate the functionality here.
18799 func_dirname_and_basename ()
18801 case ${1} in
18802 */*) func_dirname_result="${1%/*}${2}" ;;
18803 * ) func_dirname_result="${3}" ;;
18804 esac
18805 func_basename_result="${1##*/}"
18808 # func_stripname prefix suffix name
18809 # strip PREFIX and SUFFIX off of NAME.
18810 # PREFIX and SUFFIX must not contain globbing or regex special
18811 # characters, hashes, percent signs, but SUFFIX may contain a leading
18812 # dot (in which case that matches only a dot).
18813 func_stripname ()
18815 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18816 # positional parameters, so assign one to ordinary parameter first.
18817 func_stripname_result=${3}
18818 func_stripname_result=${func_stripname_result#"${1}"}
18819 func_stripname_result=${func_stripname_result%"${2}"}
18822 # func_opt_split
18823 func_opt_split ()
18825 func_opt_split_opt=${1%%=*}
18826 func_opt_split_arg=${1#*=}
18829 # func_lo2o object
18830 func_lo2o ()
18832 case ${1} in
18833 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18834 *) func_lo2o_result=${1} ;;
18835 esac
18838 # func_xform libobj-or-source
18839 func_xform ()
18841 func_xform_result=${1%.*}.lo
18844 # func_arith arithmetic-term...
18845 func_arith ()
18847 func_arith_result=$(( $* ))
18850 # func_len string
18851 # STRING may not start with a hyphen.
18852 func_len ()
18854 func_len_result=${#1}
18857 _LT_EOF
18859 *) # Bourne compatible functions.
18860 cat << \_LT_EOF >> "$cfgfile"
18862 # func_dirname file append nondir_replacement
18863 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18864 # otherwise set result to NONDIR_REPLACEMENT.
18865 func_dirname ()
18867 # Extract subdirectory from the argument.
18868 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18869 if test "X$func_dirname_result" = "X${1}"; then
18870 func_dirname_result="${3}"
18871 else
18872 func_dirname_result="$func_dirname_result${2}"
18876 # func_basename file
18877 func_basename ()
18879 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18883 # func_stripname prefix suffix name
18884 # strip PREFIX and SUFFIX off of NAME.
18885 # PREFIX and SUFFIX must not contain globbing or regex special
18886 # characters, hashes, percent signs, but SUFFIX may contain a leading
18887 # dot (in which case that matches only a dot).
18888 # func_strip_suffix prefix name
18889 func_stripname ()
18891 case ${2} in
18892 .*) func_stripname_result=`$ECHO "X${3}" \
18893 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18894 *) func_stripname_result=`$ECHO "X${3}" \
18895 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18896 esac
18899 # sed scripts:
18900 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18901 my_sed_long_arg='1s/^-[^=]*=//'
18903 # func_opt_split
18904 func_opt_split ()
18906 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18907 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18910 # func_lo2o object
18911 func_lo2o ()
18913 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18916 # func_xform libobj-or-source
18917 func_xform ()
18919 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
18922 # func_arith arithmetic-term...
18923 func_arith ()
18925 func_arith_result=`expr "$@"`
18928 # func_len string
18929 # STRING may not start with a hyphen.
18930 func_len ()
18932 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18935 _LT_EOF
18936 esac
18938 case $lt_shell_append in
18939 yes)
18940 cat << \_LT_EOF >> "$cfgfile"
18942 # func_append var value
18943 # Append VALUE to the end of shell variable VAR.
18944 func_append ()
18946 eval "$1+=\$2"
18948 _LT_EOF
18951 cat << \_LT_EOF >> "$cfgfile"
18953 # func_append var value
18954 # Append VALUE to the end of shell variable VAR.
18955 func_append ()
18957 eval "$1=\$$1\$2"
18960 _LT_EOF
18962 esac
18965 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18966 || (rm -f "$cfgfile"; exit 1)
18968 mv -f "$cfgfile" "$ofile" ||
18969 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18970 chmod +x "$ofile"
18973 cat <<_LT_EOF >> "$ofile"
18975 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18977 # The linker used to build libraries.
18978 LD=$lt_LD_CXX
18980 # Commands used to build an old-style archive.
18981 old_archive_cmds=$lt_old_archive_cmds_CXX
18983 # A language specific compiler.
18984 CC=$lt_compiler_CXX
18986 # Is the compiler the GNU compiler?
18987 with_gcc=$GCC_CXX
18989 # Compiler flag to turn off builtin functions.
18990 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18992 # How to pass a linker flag through the compiler.
18993 wl=$lt_lt_prog_compiler_wl_CXX
18995 # Additional compiler flags for building library objects.
18996 pic_flag=$lt_lt_prog_compiler_pic_CXX
18998 # Compiler flag to prevent dynamic linking.
18999 link_static_flag=$lt_lt_prog_compiler_static_CXX
19001 # Does compiler simultaneously support -c and -o options?
19002 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19004 # Whether or not to add -lc for building shared libraries.
19005 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19007 # Whether or not to disallow shared libs when runtime libs are static.
19008 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19010 # Compiler flag to allow reflexive dlopens.
19011 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19013 # Compiler flag to generate shared objects directly from archives.
19014 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19016 # Whether the compiler copes with passing no objects directly.
19017 compiler_needs_object=$lt_compiler_needs_object_CXX
19019 # Create an old-style archive from a shared archive.
19020 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19022 # Create a temporary old-style archive to link instead of a shared archive.
19023 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19025 # Commands used to build a shared archive.
19026 archive_cmds=$lt_archive_cmds_CXX
19027 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19029 # Commands used to build a loadable module if different from building
19030 # a shared archive.
19031 module_cmds=$lt_module_cmds_CXX
19032 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19034 # Whether we are building with GNU ld or not.
19035 with_gnu_ld=$lt_with_gnu_ld_CXX
19037 # Flag that allows shared libraries with undefined symbols to be built.
19038 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19040 # Flag that enforces no undefined symbols.
19041 no_undefined_flag=$lt_no_undefined_flag_CXX
19043 # Flag to hardcode \$libdir into a binary during linking.
19044 # This must work even if \$libdir does not exist
19045 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19047 # If ld is used when linking, flag to hardcode \$libdir into a binary
19048 # during linking. This must work even if \$libdir does not exist.
19049 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19051 # Whether we need a single "-rpath" flag with a separated argument.
19052 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19054 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19055 # DIR into the resulting binary.
19056 hardcode_direct=$hardcode_direct_CXX
19058 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19059 # DIR into the resulting binary and the resulting library dependency is
19060 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19061 # library is relocated.
19062 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19064 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19065 # into the resulting binary.
19066 hardcode_minus_L=$hardcode_minus_L_CXX
19068 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19069 # into the resulting binary.
19070 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19072 # Set to "yes" if building a shared library automatically hardcodes DIR
19073 # into the library and all subsequent libraries and executables linked
19074 # against it.
19075 hardcode_automatic=$hardcode_automatic_CXX
19077 # Set to yes if linker adds runtime paths of dependent libraries
19078 # to runtime path list.
19079 inherit_rpath=$inherit_rpath_CXX
19081 # Whether libtool must link a program against all its dependency libraries.
19082 link_all_deplibs=$link_all_deplibs_CXX
19084 # Fix the shell variable \$srcfile for the compiler.
19085 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19087 # Set to "yes" if exported symbols are required.
19088 always_export_symbols=$always_export_symbols_CXX
19090 # The commands to list exported symbols.
19091 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19093 # Symbols that should not be listed in the preloaded symbols.
19094 exclude_expsyms=$lt_exclude_expsyms_CXX
19096 # Symbols that must always be exported.
19097 include_expsyms=$lt_include_expsyms_CXX
19099 # Commands necessary for linking programs (against libraries) with templates.
19100 prelink_cmds=$lt_prelink_cmds_CXX
19102 # Specify filename containing input files.
19103 file_list_spec=$lt_file_list_spec_CXX
19105 # How to hardcode a shared library path into an executable.
19106 hardcode_action=$hardcode_action_CXX
19108 # The directories searched by this compiler when creating a shared library.
19109 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19111 # Dependencies to place before and after the objects being linked to
19112 # create a shared library.
19113 predep_objects=$lt_predep_objects_CXX
19114 postdep_objects=$lt_postdep_objects_CXX
19115 predeps=$lt_predeps_CXX
19116 postdeps=$lt_postdeps_CXX
19118 # The library search path used internally by the compiler when linking
19119 # a shared library.
19120 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19122 # ### END LIBTOOL TAG CONFIG: CXX
19123 _LT_EOF
19126 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19127 # Autoconf 2.62 quotes --file arguments for eval, but not when files
19128 # are listed without --file. Let's play safe and only enable the eval
19129 # if we detect the quoting.
19130 case $CONFIG_FILES in
19131 *\'*) eval set x "$CONFIG_FILES" ;;
19132 *) set x $CONFIG_FILES ;;
19133 esac
19134 shift
19135 for mf
19137 # Strip MF so we end up with the name of the file.
19138 mf=`echo "$mf" | sed -e 's/:.*$//'`
19139 # Check whether this is an Automake generated Makefile or not.
19140 # We used to match only the files named `Makefile.in', but
19141 # some people rename them; so instead we look at the file content.
19142 # Grep'ing the first line is not enough: some people post-process
19143 # each Makefile.in and add a new line on top of each file to say so.
19144 # Grep'ing the whole file is not good either: AIX grep has a line
19145 # limit of 2048, but all sed's we know have understand at least 4000.
19146 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19147 dirpart=`$as_dirname -- "$mf" ||
19148 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19149 X"$mf" : 'X\(//\)[^/]' \| \
19150 X"$mf" : 'X\(//\)$' \| \
19151 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19152 $as_echo X"$mf" |
19153 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19154 s//\1/
19157 /^X\(\/\/\)[^/].*/{
19158 s//\1/
19161 /^X\(\/\/\)$/{
19162 s//\1/
19165 /^X\(\/\).*/{
19166 s//\1/
19169 s/.*/./; q'`
19170 else
19171 continue
19173 # Extract the definition of DEPDIR, am__include, and am__quote
19174 # from the Makefile without running `make'.
19175 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19176 test -z "$DEPDIR" && continue
19177 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19178 test -z "am__include" && continue
19179 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19180 # When using ansi2knr, U may be empty or an underscore; expand it
19181 U=`sed -n 's/^U = //p' < "$mf"`
19182 # Find all dependency output files, they are included files with
19183 # $(DEPDIR) in their names. We invoke sed twice because it is the
19184 # simplest approach to changing $(DEPDIR) to its actual value in the
19185 # expansion.
19186 for file in `sed -n "
19187 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19188 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19189 # Make sure the directory exists.
19190 test -f "$dirpart/$file" && continue
19191 fdir=`$as_dirname -- "$file" ||
19192 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19193 X"$file" : 'X\(//\)[^/]' \| \
19194 X"$file" : 'X\(//\)$' \| \
19195 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19196 $as_echo X"$file" |
19197 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19198 s//\1/
19201 /^X\(\/\/\)[^/].*/{
19202 s//\1/
19205 /^X\(\/\/\)$/{
19206 s//\1/
19209 /^X\(\/\).*/{
19210 s//\1/
19213 s/.*/./; q'`
19214 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19215 # echo "creating $dirpart/$file"
19216 echo '# dummy' > "$dirpart/$file"
19217 done
19218 done
19222 esac
19223 done # for ac_tag
19226 as_fn_exit 0
19227 _ACEOF
19228 ac_clean_files=$ac_clean_files_save
19230 test $ac_write_fail = 0 ||
19231 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19234 # configure is writing to config.log, and then calls config.status.
19235 # config.status does its own redirection, appending to config.log.
19236 # Unfortunately, on DOS this fails, as config.log is still kept open
19237 # by configure, so config.status won't be able to write to it; its
19238 # output is simply discarded. So we exec the FD to /dev/null,
19239 # effectively closing config.log, so it can be properly (re)opened and
19240 # appended to by config.status. When coming back to configure, we
19241 # need to make the FD available again.
19242 if test "$no_create" != yes; then
19243 ac_cs_success=:
19244 ac_config_status_args=
19245 test "$silent" = yes &&
19246 ac_config_status_args="$ac_config_status_args --quiet"
19247 exec 5>/dev/null
19248 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19249 exec 5>>config.log
19250 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19251 # would make configure fail if this is the last instruction.
19252 $ac_cs_success || as_fn_exit 1
19254 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19256 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}