K2.6 patches and update.
[tomato.git] / release / src / router / sqlite / configure
blob9476da4ce911670a498f368d4051380469b3490c
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62 for sqlite 3.7.5.
5 # Report bugs to <http://www.sqlite.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
42 as_nl='
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (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=';'
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85 as_unset=unset
86 else
87 as_unset=false
91 # IFS
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
96 IFS=" "" $as_nl"
98 # Find who we are. Look in the path if we contain no directory separator.
99 case $0 in
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 for as_dir in $PATH
104 IFS=$as_save_IFS
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 done
108 IFS=$as_save_IFS
111 esac
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
115 as_myself=$0
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
139 as_expr=expr
140 else
141 as_expr=false
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145 as_basename=basename
146 else
147 as_basename=false
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156 $as_echo X/"$0" |
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 s//\1/
161 /^X\/\(\/\/\)$/{
162 s//\1/
165 /^X\/\(\/\).*/{
166 s//\1/
169 s/.*/./; q'`
171 # CDPATH.
172 $as_unset CDPATH
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
177 as_have_required=yes
178 else
179 as_have_required=no
182 if test $as_have_required = yes && (eval ":
183 (as_func_return () {
184 (exit \$1)
186 as_func_success () {
187 as_func_return 0
189 as_func_failure () {
190 as_func_return 1
192 as_func_ret_success () {
193 return 0
195 as_func_ret_failure () {
196 return 1
199 exitcode=0
200 if as_func_success; then
202 else
203 exitcode=1
204 echo as_func_success failed.
207 if as_func_failure; then
208 exitcode=1
209 echo as_func_failure succeeded.
212 if as_func_ret_success; then
214 else
215 exitcode=1
216 echo as_func_ret_success failed.
219 if as_func_ret_failure; then
220 exitcode=1
221 echo as_func_ret_failure succeeded.
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 else
227 exitcode=1
228 echo positional parameters were not saved.
231 test \$exitcode = 0) || { (exit 1); exit 1; }
234 as_lineno_1=\$LINENO
235 as_lineno_2=\$LINENO
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
240 else
241 as_candidate_shells=
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
245 IFS=$as_save_IFS
246 test -z "$as_dir" && as_dir=.
247 case $as_dir in
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251 done;;
252 esac
253 done
254 IFS=$as_save_IFS
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 _ASEOF
278 }; then
279 CONFIG_SHELL=$as_shell
280 as_have_required=yes
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 emulate sh
284 NULLCMD=:
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
288 setopt NO_GLOB_SUBST
289 else
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
292 esac
298 (as_func_return () {
299 (exit $1)
301 as_func_success () {
302 as_func_return 0
304 as_func_failure () {
305 as_func_return 1
307 as_func_ret_success () {
308 return 0
310 as_func_ret_failure () {
311 return 1
314 exitcode=0
315 if as_func_success; then
317 else
318 exitcode=1
319 echo as_func_success failed.
322 if as_func_failure; then
323 exitcode=1
324 echo as_func_failure succeeded.
327 if as_func_ret_success; then
329 else
330 exitcode=1
331 echo as_func_ret_success failed.
334 if as_func_ret_failure; then
335 exitcode=1
336 echo as_func_ret_failure succeeded.
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
341 else
342 exitcode=1
343 echo positional parameters were not saved.
346 test $exitcode = 0) || { (exit 1); exit 1; }
349 as_lineno_1=$LINENO
350 as_lineno_2=$LINENO
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
354 _ASEOF
355 }; then
356 break
361 done
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 done
367 export CONFIG_SHELL
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
387 (eval "as_func_return () {
388 (exit \$1)
390 as_func_success () {
391 as_func_return 0
393 as_func_failure () {
394 as_func_return 1
396 as_func_ret_success () {
397 return 0
399 as_func_ret_failure () {
400 return 1
403 exitcode=0
404 if as_func_success; then
406 else
407 exitcode=1
408 echo as_func_success failed.
411 if as_func_failure; then
412 exitcode=1
413 echo as_func_failure succeeded.
416 if as_func_ret_success; then
418 else
419 exitcode=1
420 echo as_func_ret_success failed.
423 if as_func_ret_failure; then
424 exitcode=1
425 echo as_func_ret_failure succeeded.
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 else
431 exitcode=1
432 echo positional parameters were not saved.
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
445 as_lineno_1=$LINENO
446 as_lineno_2=$LINENO
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
456 # case at line end.
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
460 sed -n '
462 /[$]LINENO/=
463 ' <$as_myself |
464 sed '
465 s/[$]LINENO.*/&-/
466 t lineno
468 :lineno
470 :loop
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472 t loop
473 s/-\n.*//
474 ' >$as_me.lineno &&
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
482 . "./$as_me.lineno"
483 # Exit status is that of the last command.
484 exit
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489 as_dirname=dirname
490 else
491 as_dirname=false
494 ECHO_C= ECHO_N= ECHO_T=
495 case `echo -n x` in
496 -n*)
497 case `echo 'x\c'` in
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
499 *) ECHO_C='\c';;
500 esac;;
502 ECHO_N='-n';;
503 esac
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
506 as_expr=expr
507 else
508 as_expr=false
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
514 else
515 rm -f conf$$.dir
516 mkdir conf$$.dir 2>/dev/null
518 if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
520 as_ln_s='ln -s'
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526 as_ln_s='cp -p'
527 elif ln conf$$.file conf$$ 2>/dev/null; then
528 as_ln_s=ln
529 else
530 as_ln_s='cp -p'
532 else
533 as_ln_s='cp -p'
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
538 if mkdir -p . 2>/dev/null; then
539 as_mkdir_p=:
540 else
541 test -d ./-p && rmdir ./-p
542 as_mkdir_p=false
545 if test -x / >/dev/null 2>&1; then
546 as_test_x='test -x'
547 else
548 if ls -dL / >/dev/null 2>&1; then
549 as_ls_L_option=L
550 else
551 as_ls_L_option=
553 as_test_x='
554 eval sh -c '\''
555 if test -d "$1"; then
556 test -d "$1/.";
557 else
558 case $1 in
559 -*)set "./$1";;
560 esac;
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
563 '\'' sh
566 as_executable_p=$as_test_x
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
577 # Check that we are running under the correct shell.
578 SHELL=${CONFIG_SHELL-/bin/sh}
580 case X$ECHO in
581 X*--fallback-echo)
582 # Remove one level of quotation (which was required for Make).
583 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
585 esac
587 echo=${ECHO-echo}
588 if test "X$1" = X--no-reexec; then
589 # Discard the --no-reexec flag, and continue.
590 shift
591 elif test "X$1" = X--fallback-echo; then
592 # Avoid inline document here, it may be left over
594 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $echo works!
597 else
598 # Restart under the correct shell.
599 exec $SHELL "$0" --no-reexec ${1+"$@"}
602 if test "X$1" = X--fallback-echo; then
603 # used as fallback echo
604 shift
605 cat <<EOF
608 exit 0
611 # The HP-UX ksh and POSIX shell print the target directory to stdout
612 # if CDPATH is set.
613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
615 if test -z "$ECHO"; then
616 if test "X${echo_test_string+set}" != Xset; then
617 # find a string as large as possible, as long as the shell can cope with it
618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
621 echo_test_string=`eval $cmd` &&
622 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
623 then
624 break
626 done
629 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
630 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
631 test "X$echo_testing_string" = "X$echo_test_string"; then
633 else
634 # The Solaris, AIX, and Digital Unix default echo programs unquote
635 # backslashes. This makes it impossible to quote backslashes using
636 # echo "$something" | sed 's/\\/\\\\/g'
638 # So, first we look for a working echo in the user's PATH.
640 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
641 for dir in $PATH /usr/ucb; do
642 IFS="$lt_save_ifs"
643 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
644 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
645 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
646 test "X$echo_testing_string" = "X$echo_test_string"; then
647 echo="$dir/echo"
648 break
650 done
651 IFS="$lt_save_ifs"
653 if test "X$echo" = Xecho; then
654 # We didn't find a better echo, so look for alternatives.
655 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
656 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 # This shell has a builtin print -r that does the trick.
659 echo='print -r'
660 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
661 test "X$CONFIG_SHELL" != X/bin/ksh; then
662 # If we have ksh, try running configure again with it.
663 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
664 export ORIGINAL_CONFIG_SHELL
665 CONFIG_SHELL=/bin/ksh
666 export CONFIG_SHELL
667 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
668 else
669 # Try using printf.
670 echo='printf %s\n'
671 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
672 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
673 test "X$echo_testing_string" = "X$echo_test_string"; then
674 # Cool, printf works
676 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
677 test "X$echo_testing_string" = 'X\t' &&
678 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
679 test "X$echo_testing_string" = "X$echo_test_string"; then
680 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
681 export CONFIG_SHELL
682 SHELL="$CONFIG_SHELL"
683 export SHELL
684 echo="$CONFIG_SHELL $0 --fallback-echo"
685 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
686 test "X$echo_testing_string" = 'X\t' &&
687 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
688 test "X$echo_testing_string" = "X$echo_test_string"; then
689 echo="$CONFIG_SHELL $0 --fallback-echo"
690 else
691 # maybe with a smaller string...
692 prev=:
694 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
695 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
696 then
697 break
699 prev="$cmd"
700 done
702 if test "$prev" != 'sed 50q "$0"'; then
703 echo_test_string=`eval $prev`
704 export echo_test_string
705 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
706 else
707 # Oops. We lost completely, so just stick with echo.
708 echo=echo
716 # Copy echo and quote the copy suitably for passing to libtool from
717 # the Makefile, instead of quoting the original, which is used later.
718 ECHO=$echo
719 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
720 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
726 tagnames=${tagnames+${tagnames},}CXX
728 tagnames=${tagnames+${tagnames},}F77
730 exec 7<&0 </dev/null 6>&1
732 # Name of the host.
733 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
734 # so uname gets run too.
735 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
738 # Initializations.
740 ac_default_prefix=/usr/local
741 ac_clean_files=
742 ac_config_libobj_dir=.
743 LIBOBJS=
744 cross_compiling=no
745 subdirs=
746 MFLAGS=
747 MAKEFLAGS=
748 SHELL=${CONFIG_SHELL-/bin/sh}
750 # Identity of this package.
751 PACKAGE_NAME='sqlite'
752 PACKAGE_TARNAME='sqlite'
753 PACKAGE_VERSION='3.7.5'
754 PACKAGE_STRING='sqlite 3.7.5'
755 PACKAGE_BUGREPORT='http://www.sqlite.org'
757 ac_unique_file="sqlite3.c"
758 # Factoring default headers for most tests.
759 ac_includes_default="\
760 #include <stdio.h>
761 #ifdef HAVE_SYS_TYPES_H
762 # include <sys/types.h>
763 #endif
764 #ifdef HAVE_SYS_STAT_H
765 # include <sys/stat.h>
766 #endif
767 #ifdef STDC_HEADERS
768 # include <stdlib.h>
769 # include <stddef.h>
770 #else
771 # ifdef HAVE_STDLIB_H
772 # include <stdlib.h>
773 # endif
774 #endif
775 #ifdef HAVE_STRING_H
776 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
777 # include <memory.h>
778 # endif
779 # include <string.h>
780 #endif
781 #ifdef HAVE_STRINGS_H
782 # include <strings.h>
783 #endif
784 #ifdef HAVE_INTTYPES_H
785 # include <inttypes.h>
786 #endif
787 #ifdef HAVE_STDINT_H
788 # include <stdint.h>
789 #endif
790 #ifdef HAVE_UNISTD_H
791 # include <unistd.h>
792 #endif"
794 ac_subst_vars='SHELL
795 PATH_SEPARATOR
796 PACKAGE_NAME
797 PACKAGE_TARNAME
798 PACKAGE_VERSION
799 PACKAGE_STRING
800 PACKAGE_BUGREPORT
801 exec_prefix
802 prefix
803 program_transform_name
804 bindir
805 sbindir
806 libexecdir
807 datarootdir
808 datadir
809 sysconfdir
810 sharedstatedir
811 localstatedir
812 includedir
813 oldincludedir
814 docdir
815 infodir
816 htmldir
817 dvidir
818 pdfdir
819 psdir
820 libdir
821 localedir
822 mandir
823 DEFS
824 ECHO_C
825 ECHO_N
826 ECHO_T
827 LIBS
828 build_alias
829 host_alias
830 target_alias
831 INSTALL_PROGRAM
832 INSTALL_SCRIPT
833 INSTALL_DATA
834 CYGPATH_W
835 PACKAGE
836 VERSION
837 ACLOCAL
838 AUTOCONF
839 AUTOMAKE
840 AUTOHEADER
841 MAKEINFO
842 install_sh
843 STRIP
844 INSTALL_STRIP_PROGRAM
845 mkdir_p
847 SET_MAKE
848 am__leading_dot
849 AMTAR
850 am__tar
851 am__untar
853 CFLAGS
854 LDFLAGS
855 CPPFLAGS
856 ac_ct_CC
857 EXEEXT
858 OBJEXT
859 DEPDIR
860 am__include
861 am__quote
862 AMDEP_TRUE
863 AMDEP_FALSE
864 AMDEPBACKSLASH
865 CCDEPMODE
866 am__fastdepCC_TRUE
867 am__fastdepCC_FALSE
868 RANLIB
869 build
870 build_cpu
871 build_vendor
872 build_os
873 host
874 host_cpu
875 host_vendor
876 host_os
877 GREP
878 EGREP
879 LN_S
880 ECHO
884 CXXFLAGS
885 ac_ct_CXX
886 CXXDEPMODE
887 am__fastdepCXX_TRUE
888 am__fastdepCXX_FALSE
889 CXXCPP
891 FFLAGS
892 ac_ct_F77
893 LIBTOOL
894 BUILD_CFLAGS
895 READLINE_LIBS
896 THREADSAFE_FLAGS
897 DYNAMIC_EXTENSION_FLAGS
898 LIBOBJS
899 LTLIBOBJS'
900 ac_subst_files=''
901 ac_user_opts='
902 enable_option_checking
903 enable_largefile
904 enable_dependency_tracking
905 enable_shared
906 enable_static
907 enable_fast_install
908 with_gnu_ld
909 enable_libtool_lock
910 with_pic
911 with_tags
912 enable_readline
913 enable_threadsafe
914 enable_dynamic_extensions
916 ac_precious_vars='build_alias
917 host_alias
918 target_alias
920 CFLAGS
921 LDFLAGS
922 LIBS
923 CPPFLAGS
926 CXXFLAGS
928 CXXCPP
930 FFLAGS'
933 # Initialize some variables set by options.
934 ac_init_help=
935 ac_init_version=false
936 ac_unrecognized_opts=
937 ac_unrecognized_sep=
938 # The variables have the same names as the options, with
939 # dashes changed to underlines.
940 cache_file=/dev/null
941 exec_prefix=NONE
942 no_create=
943 no_recursion=
944 prefix=NONE
945 program_prefix=NONE
946 program_suffix=NONE
947 program_transform_name=s,x,x,
948 silent=
949 site=
950 srcdir=
951 verbose=
952 x_includes=NONE
953 x_libraries=NONE
955 # Installation directory options.
956 # These are left unexpanded so users can "make install exec_prefix=/foo"
957 # and all the variables that are supposed to be based on exec_prefix
958 # by default will actually change.
959 # Use braces instead of parens because sh, perl, etc. also accept them.
960 # (The list follows the same order as the GNU Coding Standards.)
961 bindir='${exec_prefix}/bin'
962 sbindir='${exec_prefix}/sbin'
963 libexecdir='${exec_prefix}/libexec'
964 datarootdir='${prefix}/share'
965 datadir='${datarootdir}'
966 sysconfdir='${prefix}/etc'
967 sharedstatedir='${prefix}/com'
968 localstatedir='${prefix}/var'
969 includedir='${prefix}/include'
970 oldincludedir='/usr/include'
971 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
972 infodir='${datarootdir}/info'
973 htmldir='${docdir}'
974 dvidir='${docdir}'
975 pdfdir='${docdir}'
976 psdir='${docdir}'
977 libdir='${exec_prefix}/lib'
978 localedir='${datarootdir}/locale'
979 mandir='${datarootdir}/man'
981 ac_prev=
982 ac_dashdash=
983 for ac_option
985 # If the previous option needs an argument, assign it.
986 if test -n "$ac_prev"; then
987 eval $ac_prev=\$ac_option
988 ac_prev=
989 continue
992 case $ac_option in
993 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
994 *) ac_optarg=yes ;;
995 esac
997 # Accept the important Cygnus configure options, so we can diagnose typos.
999 case $ac_dashdash$ac_option in
1001 ac_dashdash=yes ;;
1003 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1004 ac_prev=bindir ;;
1005 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1006 bindir=$ac_optarg ;;
1008 -build | --build | --buil | --bui | --bu)
1009 ac_prev=build_alias ;;
1010 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1011 build_alias=$ac_optarg ;;
1013 -cache-file | --cache-file | --cache-fil | --cache-fi \
1014 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1015 ac_prev=cache_file ;;
1016 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1017 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1018 cache_file=$ac_optarg ;;
1020 --config-cache | -C)
1021 cache_file=config.cache ;;
1023 -datadir | --datadir | --datadi | --datad)
1024 ac_prev=datadir ;;
1025 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1026 datadir=$ac_optarg ;;
1028 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1029 | --dataroo | --dataro | --datar)
1030 ac_prev=datarootdir ;;
1031 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1032 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1033 datarootdir=$ac_optarg ;;
1035 -disable-* | --disable-*)
1036 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1037 # Reject names that are not valid shell variable names.
1038 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1039 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1040 { (exit 1); exit 1; }; }
1041 ac_useropt_orig=$ac_useropt
1042 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1043 case $ac_user_opts in
1045 "enable_$ac_useropt"
1046 "*) ;;
1047 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1048 ac_unrecognized_sep=', ';;
1049 esac
1050 eval enable_$ac_useropt=no ;;
1052 -docdir | --docdir | --docdi | --doc | --do)
1053 ac_prev=docdir ;;
1054 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1055 docdir=$ac_optarg ;;
1057 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1058 ac_prev=dvidir ;;
1059 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1060 dvidir=$ac_optarg ;;
1062 -enable-* | --enable-*)
1063 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1064 # Reject names that are not valid shell variable names.
1065 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1066 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1067 { (exit 1); exit 1; }; }
1068 ac_useropt_orig=$ac_useropt
1069 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1070 case $ac_user_opts in
1072 "enable_$ac_useropt"
1073 "*) ;;
1074 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1075 ac_unrecognized_sep=', ';;
1076 esac
1077 eval enable_$ac_useropt=\$ac_optarg ;;
1079 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1080 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1081 | --exec | --exe | --ex)
1082 ac_prev=exec_prefix ;;
1083 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1084 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1085 | --exec=* | --exe=* | --ex=*)
1086 exec_prefix=$ac_optarg ;;
1088 -gas | --gas | --ga | --g)
1089 # Obsolete; use --with-gas.
1090 with_gas=yes ;;
1092 -help | --help | --hel | --he | -h)
1093 ac_init_help=long ;;
1094 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1095 ac_init_help=recursive ;;
1096 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1097 ac_init_help=short ;;
1099 -host | --host | --hos | --ho)
1100 ac_prev=host_alias ;;
1101 -host=* | --host=* | --hos=* | --ho=*)
1102 host_alias=$ac_optarg ;;
1104 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1105 ac_prev=htmldir ;;
1106 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1107 | --ht=*)
1108 htmldir=$ac_optarg ;;
1110 -includedir | --includedir | --includedi | --included | --include \
1111 | --includ | --inclu | --incl | --inc)
1112 ac_prev=includedir ;;
1113 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1114 | --includ=* | --inclu=* | --incl=* | --inc=*)
1115 includedir=$ac_optarg ;;
1117 -infodir | --infodir | --infodi | --infod | --info | --inf)
1118 ac_prev=infodir ;;
1119 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1120 infodir=$ac_optarg ;;
1122 -libdir | --libdir | --libdi | --libd)
1123 ac_prev=libdir ;;
1124 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1125 libdir=$ac_optarg ;;
1127 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1128 | --libexe | --libex | --libe)
1129 ac_prev=libexecdir ;;
1130 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1131 | --libexe=* | --libex=* | --libe=*)
1132 libexecdir=$ac_optarg ;;
1134 -localedir | --localedir | --localedi | --localed | --locale)
1135 ac_prev=localedir ;;
1136 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1137 localedir=$ac_optarg ;;
1139 -localstatedir | --localstatedir | --localstatedi | --localstated \
1140 | --localstate | --localstat | --localsta | --localst | --locals)
1141 ac_prev=localstatedir ;;
1142 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1143 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1144 localstatedir=$ac_optarg ;;
1146 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1147 ac_prev=mandir ;;
1148 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1149 mandir=$ac_optarg ;;
1151 -nfp | --nfp | --nf)
1152 # Obsolete; use --without-fp.
1153 with_fp=no ;;
1155 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1156 | --no-cr | --no-c | -n)
1157 no_create=yes ;;
1159 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1160 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1161 no_recursion=yes ;;
1163 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1164 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1165 | --oldin | --oldi | --old | --ol | --o)
1166 ac_prev=oldincludedir ;;
1167 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1168 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1169 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1170 oldincludedir=$ac_optarg ;;
1172 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1173 ac_prev=prefix ;;
1174 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1175 prefix=$ac_optarg ;;
1177 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1178 | --program-pre | --program-pr | --program-p)
1179 ac_prev=program_prefix ;;
1180 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1181 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1182 program_prefix=$ac_optarg ;;
1184 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1185 | --program-suf | --program-su | --program-s)
1186 ac_prev=program_suffix ;;
1187 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1188 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1189 program_suffix=$ac_optarg ;;
1191 -program-transform-name | --program-transform-name \
1192 | --program-transform-nam | --program-transform-na \
1193 | --program-transform-n | --program-transform- \
1194 | --program-transform | --program-transfor \
1195 | --program-transfo | --program-transf \
1196 | --program-trans | --program-tran \
1197 | --progr-tra | --program-tr | --program-t)
1198 ac_prev=program_transform_name ;;
1199 -program-transform-name=* | --program-transform-name=* \
1200 | --program-transform-nam=* | --program-transform-na=* \
1201 | --program-transform-n=* | --program-transform-=* \
1202 | --program-transform=* | --program-transfor=* \
1203 | --program-transfo=* | --program-transf=* \
1204 | --program-trans=* | --program-tran=* \
1205 | --progr-tra=* | --program-tr=* | --program-t=*)
1206 program_transform_name=$ac_optarg ;;
1208 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1209 ac_prev=pdfdir ;;
1210 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1211 pdfdir=$ac_optarg ;;
1213 -psdir | --psdir | --psdi | --psd | --ps)
1214 ac_prev=psdir ;;
1215 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1216 psdir=$ac_optarg ;;
1218 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1219 | -silent | --silent | --silen | --sile | --sil)
1220 silent=yes ;;
1222 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1223 ac_prev=sbindir ;;
1224 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1225 | --sbi=* | --sb=*)
1226 sbindir=$ac_optarg ;;
1228 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1229 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1230 | --sharedst | --shareds | --shared | --share | --shar \
1231 | --sha | --sh)
1232 ac_prev=sharedstatedir ;;
1233 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1234 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1235 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1236 | --sha=* | --sh=*)
1237 sharedstatedir=$ac_optarg ;;
1239 -site | --site | --sit)
1240 ac_prev=site ;;
1241 -site=* | --site=* | --sit=*)
1242 site=$ac_optarg ;;
1244 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1245 ac_prev=srcdir ;;
1246 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1247 srcdir=$ac_optarg ;;
1249 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1250 | --syscon | --sysco | --sysc | --sys | --sy)
1251 ac_prev=sysconfdir ;;
1252 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1253 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1254 sysconfdir=$ac_optarg ;;
1256 -target | --target | --targe | --targ | --tar | --ta | --t)
1257 ac_prev=target_alias ;;
1258 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1259 target_alias=$ac_optarg ;;
1261 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1262 verbose=yes ;;
1264 -version | --version | --versio | --versi | --vers | -V)
1265 ac_init_version=: ;;
1267 -with-* | --with-*)
1268 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1269 # Reject names that are not valid shell variable names.
1270 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1271 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1272 { (exit 1); exit 1; }; }
1273 ac_useropt_orig=$ac_useropt
1274 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1275 case $ac_user_opts in
1277 "with_$ac_useropt"
1278 "*) ;;
1279 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1280 ac_unrecognized_sep=', ';;
1281 esac
1282 eval with_$ac_useropt=\$ac_optarg ;;
1284 -without-* | --without-*)
1285 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1286 # Reject names that are not valid shell variable names.
1287 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1288 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1289 { (exit 1); exit 1; }; }
1290 ac_useropt_orig=$ac_useropt
1291 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1292 case $ac_user_opts in
1294 "with_$ac_useropt"
1295 "*) ;;
1296 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1297 ac_unrecognized_sep=', ';;
1298 esac
1299 eval with_$ac_useropt=no ;;
1301 --x)
1302 # Obsolete; use --with-x.
1303 with_x=yes ;;
1305 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1306 | --x-incl | --x-inc | --x-in | --x-i)
1307 ac_prev=x_includes ;;
1308 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1309 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1310 x_includes=$ac_optarg ;;
1312 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1313 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1314 ac_prev=x_libraries ;;
1315 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1316 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1317 x_libraries=$ac_optarg ;;
1319 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1320 Try \`$0 --help' for more information." >&2
1321 { (exit 1); exit 1; }; }
1324 *=*)
1325 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1326 # Reject names that are not valid shell variable names.
1327 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1328 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1329 { (exit 1); exit 1; }; }
1330 eval $ac_envvar=\$ac_optarg
1331 export $ac_envvar ;;
1334 # FIXME: should be removed in autoconf 3.0.
1335 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1336 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1337 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1338 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1341 esac
1342 done
1344 if test -n "$ac_prev"; then
1345 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1346 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1347 { (exit 1); exit 1; }; }
1350 if test -n "$ac_unrecognized_opts"; then
1351 case $enable_option_checking in
1352 no) ;;
1353 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1354 { (exit 1); exit 1; }; } ;;
1355 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1356 esac
1359 # Check all directory arguments for consistency.
1360 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1361 datadir sysconfdir sharedstatedir localstatedir includedir \
1362 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1363 libdir localedir mandir
1365 eval ac_val=\$$ac_var
1366 # Remove trailing slashes.
1367 case $ac_val in
1368 */ )
1369 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1370 eval $ac_var=\$ac_val;;
1371 esac
1372 # Be sure to have absolute directory names.
1373 case $ac_val in
1374 [\\/$]* | ?:[\\/]* ) continue;;
1375 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1376 esac
1377 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1378 { (exit 1); exit 1; }; }
1379 done
1381 # There might be people who depend on the old broken behavior: `$host'
1382 # used to hold the argument of --host etc.
1383 # FIXME: To remove some day.
1384 build=$build_alias
1385 host=$host_alias
1386 target=$target_alias
1388 # FIXME: To remove some day.
1389 if test "x$host_alias" != x; then
1390 if test "x$build_alias" = x; then
1391 cross_compiling=maybe
1392 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1393 If a cross compiler is detected then cross compile mode will be used." >&2
1394 elif test "x$build_alias" != "x$host_alias"; then
1395 cross_compiling=yes
1399 ac_tool_prefix=
1400 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1402 test "$silent" = yes && exec 6>/dev/null
1405 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1406 ac_ls_di=`ls -di .` &&
1407 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1408 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1409 { (exit 1); exit 1; }; }
1410 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1411 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1412 { (exit 1); exit 1; }; }
1415 # Find the source files, if location was not specified.
1416 if test -z "$srcdir"; then
1417 ac_srcdir_defaulted=yes
1418 # Try the directory containing this script, then the parent directory.
1419 ac_confdir=`$as_dirname -- "$as_myself" ||
1420 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1421 X"$as_myself" : 'X\(//\)[^/]' \| \
1422 X"$as_myself" : 'X\(//\)$' \| \
1423 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1424 $as_echo X"$as_myself" |
1425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1426 s//\1/
1429 /^X\(\/\/\)[^/].*/{
1430 s//\1/
1433 /^X\(\/\/\)$/{
1434 s//\1/
1437 /^X\(\/\).*/{
1438 s//\1/
1441 s/.*/./; q'`
1442 srcdir=$ac_confdir
1443 if test ! -r "$srcdir/$ac_unique_file"; then
1444 srcdir=..
1446 else
1447 ac_srcdir_defaulted=no
1449 if test ! -r "$srcdir/$ac_unique_file"; then
1450 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1451 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1452 { (exit 1); exit 1; }; }
1454 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1455 ac_abs_confdir=`(
1456 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1457 { (exit 1); exit 1; }; }
1458 pwd)`
1459 # When building in place, set srcdir=.
1460 if test "$ac_abs_confdir" = "$ac_pwd"; then
1461 srcdir=.
1463 # Remove unnecessary trailing slashes from srcdir.
1464 # Double slashes in file names in object file debugging info
1465 # mess up M-x gdb in Emacs.
1466 case $srcdir in
1467 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1468 esac
1469 for ac_var in $ac_precious_vars; do
1470 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1471 eval ac_env_${ac_var}_value=\$${ac_var}
1472 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1473 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1474 done
1477 # Report the --help message.
1479 if test "$ac_init_help" = "long"; then
1480 # Omit some internal or obsolete options to make the list less imposing.
1481 # This message is too long to be a string in the A/UX 3.1 sh.
1482 cat <<_ACEOF
1483 \`configure' configures sqlite 3.7.5 to adapt to many kinds of systems.
1485 Usage: $0 [OPTION]... [VAR=VALUE]...
1487 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1488 VAR=VALUE. See below for descriptions of some of the useful variables.
1490 Defaults for the options are specified in brackets.
1492 Configuration:
1493 -h, --help display this help and exit
1494 --help=short display options specific to this package
1495 --help=recursive display the short help of all the included packages
1496 -V, --version display version information and exit
1497 -q, --quiet, --silent do not print \`checking...' messages
1498 --cache-file=FILE cache test results in FILE [disabled]
1499 -C, --config-cache alias for \`--cache-file=config.cache'
1500 -n, --no-create do not create output files
1501 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1503 Installation directories:
1504 --prefix=PREFIX install architecture-independent files in PREFIX
1505 [$ac_default_prefix]
1506 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1507 [PREFIX]
1509 By default, \`make install' will install all the files in
1510 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1511 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1512 for instance \`--prefix=\$HOME'.
1514 For better control, use the options below.
1516 Fine tuning of the installation directories:
1517 --bindir=DIR user executables [EPREFIX/bin]
1518 --sbindir=DIR system admin executables [EPREFIX/sbin]
1519 --libexecdir=DIR program executables [EPREFIX/libexec]
1520 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1521 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1522 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1523 --libdir=DIR object code libraries [EPREFIX/lib]
1524 --includedir=DIR C header files [PREFIX/include]
1525 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1526 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1527 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1528 --infodir=DIR info documentation [DATAROOTDIR/info]
1529 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1530 --mandir=DIR man documentation [DATAROOTDIR/man]
1531 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite]
1532 --htmldir=DIR html documentation [DOCDIR]
1533 --dvidir=DIR dvi documentation [DOCDIR]
1534 --pdfdir=DIR pdf documentation [DOCDIR]
1535 --psdir=DIR ps documentation [DOCDIR]
1536 _ACEOF
1538 cat <<\_ACEOF
1540 Program names:
1541 --program-prefix=PREFIX prepend PREFIX to installed program names
1542 --program-suffix=SUFFIX append SUFFIX to installed program names
1543 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1545 System types:
1546 --build=BUILD configure for building on BUILD [guessed]
1547 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1548 _ACEOF
1551 if test -n "$ac_init_help"; then
1552 case $ac_init_help in
1553 short | recursive ) echo "Configuration of sqlite 3.7.5:";;
1554 esac
1555 cat <<\_ACEOF
1557 Optional Features:
1558 --disable-option-checking ignore unrecognized --enable/--with options
1559 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1560 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1561 --disable-largefile omit support for large files
1562 --disable-dependency-tracking speeds up one-time build
1563 --enable-dependency-tracking do not reject slow dependency extractors
1564 --enable-shared[=PKGS] build shared libraries [default=yes]
1565 --enable-static[=PKGS] build static libraries [default=yes]
1566 --enable-fast-install[=PKGS]
1567 optimize for fast installation [default=yes]
1568 --disable-libtool-lock avoid locking (might break parallel builds)
1569 --enable-readline use readline in shell tool (yes, no) [default=yes]
1570 --enable-threadsafe build a thread-safe library [default=yes]
1571 --enable-dynamic-extensions
1572 support loadable extensions [default=yes]
1574 Optional Packages:
1575 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1576 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1577 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1578 --with-pic try to use only PIC/non-PIC objects [default=use
1579 both]
1580 --with-tags[=TAGS] include additional configurations [automatic]
1582 Some influential environment variables:
1583 CC C compiler command
1584 CFLAGS C compiler flags
1585 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1586 nonstandard directory <lib dir>
1587 LIBS libraries to pass to the linker, e.g. -l<library>
1588 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1589 you have headers in a nonstandard directory <include dir>
1590 CPP C preprocessor
1591 CXX C++ compiler command
1592 CXXFLAGS C++ compiler flags
1593 CXXCPP C++ preprocessor
1594 F77 Fortran 77 compiler command
1595 FFLAGS Fortran 77 compiler flags
1597 Use these variables to override the choices made by `configure' or to help
1598 it to find libraries and programs with nonstandard names/locations.
1600 Report bugs to <http://www.sqlite.org>.
1601 _ACEOF
1602 ac_status=$?
1605 if test "$ac_init_help" = "recursive"; then
1606 # If there are subdirs, report their specific --help.
1607 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1608 test -d "$ac_dir" ||
1609 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1610 continue
1611 ac_builddir=.
1613 case "$ac_dir" in
1614 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1616 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1617 # A ".." for each directory in $ac_dir_suffix.
1618 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1619 case $ac_top_builddir_sub in
1620 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1621 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1622 esac ;;
1623 esac
1624 ac_abs_top_builddir=$ac_pwd
1625 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1626 # for backward compatibility:
1627 ac_top_builddir=$ac_top_build_prefix
1629 case $srcdir in
1630 .) # We are building in place.
1631 ac_srcdir=.
1632 ac_top_srcdir=$ac_top_builddir_sub
1633 ac_abs_top_srcdir=$ac_pwd ;;
1634 [\\/]* | ?:[\\/]* ) # Absolute name.
1635 ac_srcdir=$srcdir$ac_dir_suffix;
1636 ac_top_srcdir=$srcdir
1637 ac_abs_top_srcdir=$srcdir ;;
1638 *) # Relative name.
1639 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1640 ac_top_srcdir=$ac_top_build_prefix$srcdir
1641 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1642 esac
1643 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1645 cd "$ac_dir" || { ac_status=$?; continue; }
1646 # Check for guested configure.
1647 if test -f "$ac_srcdir/configure.gnu"; then
1648 echo &&
1649 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1650 elif test -f "$ac_srcdir/configure"; then
1651 echo &&
1652 $SHELL "$ac_srcdir/configure" --help=recursive
1653 else
1654 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1655 fi || ac_status=$?
1656 cd "$ac_pwd" || { ac_status=$?; break; }
1657 done
1660 test -n "$ac_init_help" && exit $ac_status
1661 if $ac_init_version; then
1662 cat <<\_ACEOF
1663 sqlite configure 3.7.5
1664 generated by GNU Autoconf 2.62
1666 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1667 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1668 This configure script is free software; the Free Software Foundation
1669 gives unlimited permission to copy, distribute and modify it.
1670 _ACEOF
1671 exit
1673 cat >config.log <<_ACEOF
1674 This file contains any messages produced by compilers while
1675 running configure, to aid debugging if configure makes a mistake.
1677 It was created by sqlite $as_me 3.7.5, which was
1678 generated by GNU Autoconf 2.62. Invocation command line was
1680 $ $0 $@
1682 _ACEOF
1683 exec 5>>config.log
1685 cat <<_ASUNAME
1686 ## --------- ##
1687 ## Platform. ##
1688 ## --------- ##
1690 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1691 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1692 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1693 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1694 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1696 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1697 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1699 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1700 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1701 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1702 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1703 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1704 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1705 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1707 _ASUNAME
1709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1710 for as_dir in $PATH
1712 IFS=$as_save_IFS
1713 test -z "$as_dir" && as_dir=.
1714 $as_echo "PATH: $as_dir"
1715 done
1716 IFS=$as_save_IFS
1718 } >&5
1720 cat >&5 <<_ACEOF
1723 ## ----------- ##
1724 ## Core tests. ##
1725 ## ----------- ##
1727 _ACEOF
1730 # Keep a trace of the command line.
1731 # Strip out --no-create and --no-recursion so they do not pile up.
1732 # Strip out --silent because we don't want to record it for future runs.
1733 # Also quote any args containing shell meta-characters.
1734 # Make two passes to allow for proper duplicate-argument suppression.
1735 ac_configure_args=
1736 ac_configure_args0=
1737 ac_configure_args1=
1738 ac_must_keep_next=false
1739 for ac_pass in 1 2
1741 for ac_arg
1743 case $ac_arg in
1744 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1745 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1746 | -silent | --silent | --silen | --sile | --sil)
1747 continue ;;
1748 *\'*)
1749 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1750 esac
1751 case $ac_pass in
1752 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1754 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1755 if test $ac_must_keep_next = true; then
1756 ac_must_keep_next=false # Got value, back to normal.
1757 else
1758 case $ac_arg in
1759 *=* | --config-cache | -C | -disable-* | --disable-* \
1760 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1761 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1762 | -with-* | --with-* | -without-* | --without-* | --x)
1763 case "$ac_configure_args0 " in
1764 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1765 esac
1767 -* ) ac_must_keep_next=true ;;
1768 esac
1770 ac_configure_args="$ac_configure_args '$ac_arg'"
1772 esac
1773 done
1774 done
1775 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1776 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1778 # When interrupted or exit'd, cleanup temporary files, and complete
1779 # config.log. We remove comments because anyway the quotes in there
1780 # would cause problems or look ugly.
1781 # WARNING: Use '\'' to represent an apostrophe within the trap.
1782 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1783 trap 'exit_status=$?
1784 # Save into config.log some information that might help in debugging.
1786 echo
1788 cat <<\_ASBOX
1789 ## ---------------- ##
1790 ## Cache variables. ##
1791 ## ---------------- ##
1792 _ASBOX
1793 echo
1794 # The following way of writing the cache mishandles newlines in values,
1796 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1797 eval ac_val=\$$ac_var
1798 case $ac_val in #(
1799 *${as_nl}*)
1800 case $ac_var in #(
1801 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1802 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1803 esac
1804 case $ac_var in #(
1805 _ | IFS | as_nl) ;; #(
1806 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1807 *) $as_unset $ac_var ;;
1808 esac ;;
1809 esac
1810 done
1811 (set) 2>&1 |
1812 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1813 *${as_nl}ac_space=\ *)
1814 sed -n \
1815 "s/'\''/'\''\\\\'\'''\''/g;
1816 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1817 ;; #(
1819 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1821 esac |
1822 sort
1824 echo
1826 cat <<\_ASBOX
1827 ## ----------------- ##
1828 ## Output variables. ##
1829 ## ----------------- ##
1830 _ASBOX
1831 echo
1832 for ac_var in $ac_subst_vars
1834 eval ac_val=\$$ac_var
1835 case $ac_val in
1836 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1837 esac
1838 $as_echo "$ac_var='\''$ac_val'\''"
1839 done | sort
1840 echo
1842 if test -n "$ac_subst_files"; then
1843 cat <<\_ASBOX
1844 ## ------------------- ##
1845 ## File substitutions. ##
1846 ## ------------------- ##
1847 _ASBOX
1848 echo
1849 for ac_var in $ac_subst_files
1851 eval ac_val=\$$ac_var
1852 case $ac_val in
1853 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1854 esac
1855 $as_echo "$ac_var='\''$ac_val'\''"
1856 done | sort
1857 echo
1860 if test -s confdefs.h; then
1861 cat <<\_ASBOX
1862 ## ----------- ##
1863 ## confdefs.h. ##
1864 ## ----------- ##
1865 _ASBOX
1866 echo
1867 cat confdefs.h
1868 echo
1870 test "$ac_signal" != 0 &&
1871 $as_echo "$as_me: caught signal $ac_signal"
1872 $as_echo "$as_me: exit $exit_status"
1873 } >&5
1874 rm -f core *.core core.conftest.* &&
1875 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1876 exit $exit_status
1878 for ac_signal in 1 2 13 15; do
1879 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1880 done
1881 ac_signal=0
1883 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1884 rm -f -r conftest* confdefs.h
1886 # Predefined preprocessor variables.
1888 cat >>confdefs.h <<_ACEOF
1889 #define PACKAGE_NAME "$PACKAGE_NAME"
1890 _ACEOF
1893 cat >>confdefs.h <<_ACEOF
1894 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1895 _ACEOF
1898 cat >>confdefs.h <<_ACEOF
1899 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1900 _ACEOF
1903 cat >>confdefs.h <<_ACEOF
1904 #define PACKAGE_STRING "$PACKAGE_STRING"
1905 _ACEOF
1908 cat >>confdefs.h <<_ACEOF
1909 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1910 _ACEOF
1913 # Let the site file select an alternate cache file if it wants to.
1914 # Prefer an explicitly selected file to automatically selected ones.
1915 ac_site_file1=NONE
1916 ac_site_file2=NONE
1917 if test -n "$CONFIG_SITE"; then
1918 ac_site_file1=$CONFIG_SITE
1919 elif test "x$prefix" != xNONE; then
1920 ac_site_file1=$prefix/share/config.site
1921 ac_site_file2=$prefix/etc/config.site
1922 else
1923 ac_site_file1=$ac_default_prefix/share/config.site
1924 ac_site_file2=$ac_default_prefix/etc/config.site
1926 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1928 test "x$ac_site_file" = xNONE && continue
1929 if test -r "$ac_site_file"; then
1930 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1931 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1932 sed 's/^/| /' "$ac_site_file" >&5
1933 . "$ac_site_file"
1935 done
1937 if test -r "$cache_file"; then
1938 # Some versions of bash will fail to source /dev/null (special
1939 # files actually), so we avoid doing that.
1940 if test -f "$cache_file"; then
1941 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1942 $as_echo "$as_me: loading cache $cache_file" >&6;}
1943 case $cache_file in
1944 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1945 *) . "./$cache_file";;
1946 esac
1948 else
1949 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1950 $as_echo "$as_me: creating cache $cache_file" >&6;}
1951 >$cache_file
1954 # Check that the precious variables saved in the cache have kept the same
1955 # value.
1956 ac_cache_corrupted=false
1957 for ac_var in $ac_precious_vars; do
1958 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1959 eval ac_new_set=\$ac_env_${ac_var}_set
1960 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1961 eval ac_new_val=\$ac_env_${ac_var}_value
1962 case $ac_old_set,$ac_new_set in
1963 set,)
1964 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1965 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1966 ac_cache_corrupted=: ;;
1967 ,set)
1968 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1969 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1970 ac_cache_corrupted=: ;;
1971 ,);;
1973 if test "x$ac_old_val" != "x$ac_new_val"; then
1974 # differences in whitespace do not lead to failure.
1975 ac_old_val_w=`echo x $ac_old_val`
1976 ac_new_val_w=`echo x $ac_new_val`
1977 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1978 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1979 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1980 ac_cache_corrupted=:
1981 else
1982 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1983 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1984 eval $ac_var=\$ac_old_val
1986 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1987 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1988 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1989 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1990 fi;;
1991 esac
1992 # Pass precious variables to config.status.
1993 if test "$ac_new_set" = set; then
1994 case $ac_new_val in
1995 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1996 *) ac_arg=$ac_var=$ac_new_val ;;
1997 esac
1998 case " $ac_configure_args " in
1999 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2000 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2001 esac
2003 done
2004 if $ac_cache_corrupted; then
2005 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2006 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2007 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2008 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2009 { (exit 1); exit 1; }; }
2036 ac_ext=c
2037 ac_cpp='$CPP $CPPFLAGS'
2038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2045 # Use automake.
2046 am__api_version="1.9"
2047 ac_aux_dir=
2048 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2049 if test -f "$ac_dir/install-sh"; then
2050 ac_aux_dir=$ac_dir
2051 ac_install_sh="$ac_aux_dir/install-sh -c"
2052 break
2053 elif test -f "$ac_dir/install.sh"; then
2054 ac_aux_dir=$ac_dir
2055 ac_install_sh="$ac_aux_dir/install.sh -c"
2056 break
2057 elif test -f "$ac_dir/shtool"; then
2058 ac_aux_dir=$ac_dir
2059 ac_install_sh="$ac_aux_dir/shtool install -c"
2060 break
2062 done
2063 if test -z "$ac_aux_dir"; then
2064 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2065 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2066 { (exit 1); exit 1; }; }
2069 # These three variables are undocumented and unsupported,
2070 # and are intended to be withdrawn in a future Autoconf release.
2071 # They can cause serious problems if a builder's source tree is in a directory
2072 # whose full name contains unusual characters.
2073 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2074 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2075 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2078 # Find a good install program. We prefer a C program (faster),
2079 # so one script is as good as another. But avoid the broken or
2080 # incompatible versions:
2081 # SysV /etc/install, /usr/sbin/install
2082 # SunOS /usr/etc/install
2083 # IRIX /sbin/install
2084 # AIX /bin/install
2085 # AmigaOS /C/install, which installs bootblocks on floppy discs
2086 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2087 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2088 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2089 # OS/2's system install, which has a completely different semantic
2090 # ./install, which can be erroneously created by make from ./install.sh.
2091 # Reject install programs that cannot install multiple files.
2092 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2093 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2094 if test -z "$INSTALL"; then
2095 if test "${ac_cv_path_install+set}" = set; then
2096 $as_echo_n "(cached) " >&6
2097 else
2098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2099 for as_dir in $PATH
2101 IFS=$as_save_IFS
2102 test -z "$as_dir" && as_dir=.
2103 # Account for people who put trailing slashes in PATH elements.
2104 case $as_dir/ in
2105 ./ | .// | /cC/* | \
2106 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2107 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2108 /usr/ucb/* ) ;;
2110 # OSF1 and SCO ODT 3.0 have their own names for install.
2111 # Don't use installbsd from OSF since it installs stuff as root
2112 # by default.
2113 for ac_prog in ginstall scoinst install; do
2114 for ac_exec_ext in '' $ac_executable_extensions; do
2115 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2116 if test $ac_prog = install &&
2117 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2118 # AIX install. It has an incompatible calling convention.
2120 elif test $ac_prog = install &&
2121 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2122 # program-specific install script used by HP pwplus--don't use.
2124 else
2125 rm -rf conftest.one conftest.two conftest.dir
2126 echo one > conftest.one
2127 echo two > conftest.two
2128 mkdir conftest.dir
2129 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2130 test -s conftest.one && test -s conftest.two &&
2131 test -s conftest.dir/conftest.one &&
2132 test -s conftest.dir/conftest.two
2133 then
2134 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2135 break 3
2139 done
2140 done
2142 esac
2144 done
2145 IFS=$as_save_IFS
2147 rm -rf conftest.one conftest.two conftest.dir
2150 if test "${ac_cv_path_install+set}" = set; then
2151 INSTALL=$ac_cv_path_install
2152 else
2153 # As a last resort, use the slow shell script. Don't cache a
2154 # value for INSTALL within a source directory, because that will
2155 # break other packages using the cache if that directory is
2156 # removed, or if the value is a relative name.
2157 INSTALL=$ac_install_sh
2160 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2161 $as_echo "$INSTALL" >&6; }
2163 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2164 # It thinks the first close brace ends the variable substitution.
2165 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2167 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2169 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2171 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2172 $as_echo_n "checking whether build environment is sane... " >&6; }
2173 # Just in case
2174 sleep 1
2175 echo timestamp > conftest.file
2176 # Do `set' in a subshell so we don't clobber the current shell's
2177 # arguments. Must try -L first in case configure is actually a
2178 # symlink; some systems play weird games with the mod time of symlinks
2179 # (eg FreeBSD returns the mod time of the symlink's containing
2180 # directory).
2181 if (
2182 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2183 if test "$*" = "X"; then
2184 # -L didn't work.
2185 set X `ls -t $srcdir/configure conftest.file`
2187 rm -f conftest.file
2188 if test "$*" != "X $srcdir/configure conftest.file" \
2189 && test "$*" != "X conftest.file $srcdir/configure"; then
2191 # If neither matched, then we have a broken ls. This can happen
2192 # if, for instance, CONFIG_SHELL is bash and it inherits a
2193 # broken ls alias from the environment. This has actually
2194 # happened. Such a system could not be considered "sane".
2195 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2196 alias in your environment" >&5
2197 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2198 alias in your environment" >&2;}
2199 { (exit 1); exit 1; }; }
2202 test "$2" = conftest.file
2204 then
2205 # Ok.
2207 else
2208 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2209 Check your system clock" >&5
2210 $as_echo "$as_me: error: newly created file is older than distributed files!
2211 Check your system clock" >&2;}
2212 { (exit 1); exit 1; }; }
2214 { $as_echo "$as_me:$LINENO: result: yes" >&5
2215 $as_echo "yes" >&6; }
2216 test "$program_prefix" != NONE &&
2217 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2218 # Use a double $ so make ignores it.
2219 test "$program_suffix" != NONE &&
2220 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2221 # Double any \ or $.
2222 # By default was `s,x,x', remove it if useless.
2223 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2224 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2226 # expand $ac_aux_dir to an absolute path
2227 am_aux_dir=`cd $ac_aux_dir && pwd`
2229 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2230 # Use eval to expand $SHELL
2231 if eval "$MISSING --run true"; then
2232 am_missing_run="$MISSING --run "
2233 else
2234 am_missing_run=
2235 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2236 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2239 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2240 # We used to keeping the `.' as first argument, in order to
2241 # allow $(mkdir_p) to be used without argument. As in
2242 # $(mkdir_p) $(somedir)
2243 # where $(somedir) is conditionally defined. However this is wrong
2244 # for two reasons:
2245 # 1. if the package is installed by a user who cannot write `.'
2246 # make install will fail,
2247 # 2. the above comment should most certainly read
2248 # $(mkdir_p) $(DESTDIR)$(somedir)
2249 # so it does not work when $(somedir) is undefined and
2250 # $(DESTDIR) is not.
2251 # To support the latter case, we have to write
2252 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2253 # so the `.' trick is pointless.
2254 mkdir_p='mkdir -p --'
2255 else
2256 # On NextStep and OpenStep, the `mkdir' command does not
2257 # recognize any option. It will interpret all options as
2258 # directories to create, and then abort because `.' already
2259 # exists.
2260 for d in ./-p ./--version;
2262 test -d $d && rmdir $d
2263 done
2264 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2265 if test -f "$ac_aux_dir/mkinstalldirs"; then
2266 mkdir_p='$(mkinstalldirs)'
2267 else
2268 mkdir_p='$(install_sh) -d'
2272 for ac_prog in gawk mawk nawk awk
2274 # Extract the first word of "$ac_prog", so it can be a program name with args.
2275 set dummy $ac_prog; ac_word=$2
2276 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2277 $as_echo_n "checking for $ac_word... " >&6; }
2278 if test "${ac_cv_prog_AWK+set}" = set; then
2279 $as_echo_n "(cached) " >&6
2280 else
2281 if test -n "$AWK"; then
2282 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2283 else
2284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2285 for as_dir in $PATH
2287 IFS=$as_save_IFS
2288 test -z "$as_dir" && as_dir=.
2289 for ac_exec_ext in '' $ac_executable_extensions; do
2290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2291 ac_cv_prog_AWK="$ac_prog"
2292 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2293 break 2
2295 done
2296 done
2297 IFS=$as_save_IFS
2301 AWK=$ac_cv_prog_AWK
2302 if test -n "$AWK"; then
2303 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2304 $as_echo "$AWK" >&6; }
2305 else
2306 { $as_echo "$as_me:$LINENO: result: no" >&5
2307 $as_echo "no" >&6; }
2311 test -n "$AWK" && break
2312 done
2314 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2315 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2316 set x ${MAKE-make}
2317 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2318 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2319 $as_echo_n "(cached) " >&6
2320 else
2321 cat >conftest.make <<\_ACEOF
2322 SHELL = /bin/sh
2323 all:
2324 @echo '@@@%%%=$(MAKE)=@@@%%%'
2325 _ACEOF
2326 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2327 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2328 *@@@%%%=?*=@@@%%%*)
2329 eval ac_cv_prog_make_${ac_make}_set=yes;;
2331 eval ac_cv_prog_make_${ac_make}_set=no;;
2332 esac
2333 rm -f conftest.make
2335 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2336 { $as_echo "$as_me:$LINENO: result: yes" >&5
2337 $as_echo "yes" >&6; }
2338 SET_MAKE=
2339 else
2340 { $as_echo "$as_me:$LINENO: result: no" >&5
2341 $as_echo "no" >&6; }
2342 SET_MAKE="MAKE=${MAKE-make}"
2345 rm -rf .tst 2>/dev/null
2346 mkdir .tst 2>/dev/null
2347 if test -d .tst; then
2348 am__leading_dot=.
2349 else
2350 am__leading_dot=_
2352 rmdir .tst 2>/dev/null
2354 # test to see if srcdir already configured
2355 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2356 test -f $srcdir/config.status; then
2357 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2358 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2359 { (exit 1); exit 1; }; }
2362 # test whether we have cygpath
2363 if test -z "$CYGPATH_W"; then
2364 if (cygpath --version) >/dev/null 2>/dev/null; then
2365 CYGPATH_W='cygpath -w'
2366 else
2367 CYGPATH_W=echo
2372 # Define the identity of the package.
2373 PACKAGE='sqlite'
2374 VERSION='3.7.5'
2377 cat >>confdefs.h <<_ACEOF
2378 #define PACKAGE "$PACKAGE"
2379 _ACEOF
2382 cat >>confdefs.h <<_ACEOF
2383 #define VERSION "$VERSION"
2384 _ACEOF
2386 # Some tools Automake needs.
2388 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2391 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2394 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2397 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2400 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2402 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2404 # Installed binaries are usually stripped using `strip' when the user
2405 # run `make install-strip'. However `strip' might not be the right
2406 # tool to use in cross-compilation environments, therefore Automake
2407 # will honor the `STRIP' environment variable to overrule this program.
2408 if test "$cross_compiling" != no; then
2409 if test -n "$ac_tool_prefix"; then
2410 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2411 set dummy ${ac_tool_prefix}strip; ac_word=$2
2412 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2413 $as_echo_n "checking for $ac_word... " >&6; }
2414 if test "${ac_cv_prog_STRIP+set}" = set; then
2415 $as_echo_n "(cached) " >&6
2416 else
2417 if test -n "$STRIP"; then
2418 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2419 else
2420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2421 for as_dir in $PATH
2423 IFS=$as_save_IFS
2424 test -z "$as_dir" && as_dir=.
2425 for ac_exec_ext in '' $ac_executable_extensions; do
2426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2427 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2428 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2429 break 2
2431 done
2432 done
2433 IFS=$as_save_IFS
2437 STRIP=$ac_cv_prog_STRIP
2438 if test -n "$STRIP"; then
2439 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2440 $as_echo "$STRIP" >&6; }
2441 else
2442 { $as_echo "$as_me:$LINENO: result: no" >&5
2443 $as_echo "no" >&6; }
2448 if test -z "$ac_cv_prog_STRIP"; then
2449 ac_ct_STRIP=$STRIP
2450 # Extract the first word of "strip", so it can be a program name with args.
2451 set dummy strip; ac_word=$2
2452 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2453 $as_echo_n "checking for $ac_word... " >&6; }
2454 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2455 $as_echo_n "(cached) " >&6
2456 else
2457 if test -n "$ac_ct_STRIP"; then
2458 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2459 else
2460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2461 for as_dir in $PATH
2463 IFS=$as_save_IFS
2464 test -z "$as_dir" && as_dir=.
2465 for ac_exec_ext in '' $ac_executable_extensions; do
2466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2467 ac_cv_prog_ac_ct_STRIP="strip"
2468 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2469 break 2
2471 done
2472 done
2473 IFS=$as_save_IFS
2477 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2478 if test -n "$ac_ct_STRIP"; then
2479 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2480 $as_echo "$ac_ct_STRIP" >&6; }
2481 else
2482 { $as_echo "$as_me:$LINENO: result: no" >&5
2483 $as_echo "no" >&6; }
2486 if test "x$ac_ct_STRIP" = x; then
2487 STRIP=":"
2488 else
2489 case $cross_compiling:$ac_tool_warned in
2490 yes:)
2491 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2492 whose name does not start with the host triplet. If you think this
2493 configuration is useful to you, please write to autoconf@gnu.org." >&5
2494 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2495 whose name does not start with the host triplet. If you think this
2496 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2497 ac_tool_warned=yes ;;
2498 esac
2499 STRIP=$ac_ct_STRIP
2501 else
2502 STRIP="$ac_cv_prog_STRIP"
2506 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2508 # We need awk for the "check" target. The system "awk" is bad on
2509 # some platforms.
2510 # Always define AMTAR for backward compatibility.
2512 AMTAR=${AMTAR-"${am_missing_run}tar"}
2514 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2521 DEPDIR="${am__leading_dot}deps"
2523 ac_config_commands="$ac_config_commands depfiles"
2526 am_make=${MAKE-make}
2527 cat > confinc << 'END'
2528 am__doit:
2529 @echo done
2530 .PHONY: am__doit
2532 # If we don't find an include directive, just comment out the code.
2533 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2534 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2535 am__include="#"
2536 am__quote=
2537 _am_result=none
2538 # First try GNU make style include.
2539 echo "include confinc" > confmf
2540 # We grep out `Entering directory' and `Leaving directory'
2541 # messages which can occur if `w' ends up in MAKEFLAGS.
2542 # In particular we don't look at `^make:' because GNU make might
2543 # be invoked under some other name (usually "gmake"), in which
2544 # case it prints its new name instead of `make'.
2545 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2546 am__include=include
2547 am__quote=
2548 _am_result=GNU
2550 # Now try BSD make style include.
2551 if test "$am__include" = "#"; then
2552 echo '.include "confinc"' > confmf
2553 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2554 am__include=.include
2555 am__quote="\""
2556 _am_result=BSD
2561 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2562 $as_echo "$_am_result" >&6; }
2563 rm -f confinc confmf
2565 # Check whether --enable-dependency-tracking was given.
2566 if test "${enable_dependency_tracking+set}" = set; then
2567 enableval=$enable_dependency_tracking;
2570 if test "x$enable_dependency_tracking" != xno; then
2571 am_depcomp="$ac_aux_dir/depcomp"
2572 AMDEPBACKSLASH='\'
2576 if test "x$enable_dependency_tracking" != xno; then
2577 AMDEP_TRUE=
2578 AMDEP_FALSE='#'
2579 else
2580 AMDEP_TRUE='#'
2581 AMDEP_FALSE=
2586 ac_ext=c
2587 ac_cpp='$CPP $CPPFLAGS'
2588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2591 if test -n "$ac_tool_prefix"; then
2592 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2593 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2594 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2595 $as_echo_n "checking for $ac_word... " >&6; }
2596 if test "${ac_cv_prog_CC+set}" = set; then
2597 $as_echo_n "(cached) " >&6
2598 else
2599 if test -n "$CC"; then
2600 ac_cv_prog_CC="$CC" # Let the user override the test.
2601 else
2602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2603 for as_dir in $PATH
2605 IFS=$as_save_IFS
2606 test -z "$as_dir" && as_dir=.
2607 for ac_exec_ext in '' $ac_executable_extensions; do
2608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2609 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2610 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2611 break 2
2613 done
2614 done
2615 IFS=$as_save_IFS
2619 CC=$ac_cv_prog_CC
2620 if test -n "$CC"; then
2621 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2622 $as_echo "$CC" >&6; }
2623 else
2624 { $as_echo "$as_me:$LINENO: result: no" >&5
2625 $as_echo "no" >&6; }
2630 if test -z "$ac_cv_prog_CC"; then
2631 ac_ct_CC=$CC
2632 # Extract the first word of "gcc", so it can be a program name with args.
2633 set dummy gcc; ac_word=$2
2634 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2635 $as_echo_n "checking for $ac_word... " >&6; }
2636 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2637 $as_echo_n "(cached) " >&6
2638 else
2639 if test -n "$ac_ct_CC"; then
2640 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2641 else
2642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643 for as_dir in $PATH
2645 IFS=$as_save_IFS
2646 test -z "$as_dir" && as_dir=.
2647 for ac_exec_ext in '' $ac_executable_extensions; do
2648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2649 ac_cv_prog_ac_ct_CC="gcc"
2650 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2651 break 2
2653 done
2654 done
2655 IFS=$as_save_IFS
2659 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2660 if test -n "$ac_ct_CC"; then
2661 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2662 $as_echo "$ac_ct_CC" >&6; }
2663 else
2664 { $as_echo "$as_me:$LINENO: result: no" >&5
2665 $as_echo "no" >&6; }
2668 if test "x$ac_ct_CC" = x; then
2669 CC=""
2670 else
2671 case $cross_compiling:$ac_tool_warned in
2672 yes:)
2673 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2674 whose name does not start with the host triplet. If you think this
2675 configuration is useful to you, please write to autoconf@gnu.org." >&5
2676 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2677 whose name does not start with the host triplet. If you think this
2678 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2679 ac_tool_warned=yes ;;
2680 esac
2681 CC=$ac_ct_CC
2683 else
2684 CC="$ac_cv_prog_CC"
2687 if test -z "$CC"; then
2688 if test -n "$ac_tool_prefix"; then
2689 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2690 set dummy ${ac_tool_prefix}cc; ac_word=$2
2691 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2692 $as_echo_n "checking for $ac_word... " >&6; }
2693 if test "${ac_cv_prog_CC+set}" = set; then
2694 $as_echo_n "(cached) " >&6
2695 else
2696 if test -n "$CC"; then
2697 ac_cv_prog_CC="$CC" # Let the user override the test.
2698 else
2699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2700 for as_dir in $PATH
2702 IFS=$as_save_IFS
2703 test -z "$as_dir" && as_dir=.
2704 for ac_exec_ext in '' $ac_executable_extensions; do
2705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2706 ac_cv_prog_CC="${ac_tool_prefix}cc"
2707 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2708 break 2
2710 done
2711 done
2712 IFS=$as_save_IFS
2716 CC=$ac_cv_prog_CC
2717 if test -n "$CC"; then
2718 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2719 $as_echo "$CC" >&6; }
2720 else
2721 { $as_echo "$as_me:$LINENO: result: no" >&5
2722 $as_echo "no" >&6; }
2728 if test -z "$CC"; then
2729 # Extract the first word of "cc", so it can be a program name with args.
2730 set dummy cc; ac_word=$2
2731 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2732 $as_echo_n "checking for $ac_word... " >&6; }
2733 if test "${ac_cv_prog_CC+set}" = set; then
2734 $as_echo_n "(cached) " >&6
2735 else
2736 if test -n "$CC"; then
2737 ac_cv_prog_CC="$CC" # Let the user override the test.
2738 else
2739 ac_prog_rejected=no
2740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2741 for as_dir in $PATH
2743 IFS=$as_save_IFS
2744 test -z "$as_dir" && as_dir=.
2745 for ac_exec_ext in '' $ac_executable_extensions; do
2746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2747 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2748 ac_prog_rejected=yes
2749 continue
2751 ac_cv_prog_CC="cc"
2752 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2753 break 2
2755 done
2756 done
2757 IFS=$as_save_IFS
2759 if test $ac_prog_rejected = yes; then
2760 # We found a bogon in the path, so make sure we never use it.
2761 set dummy $ac_cv_prog_CC
2762 shift
2763 if test $# != 0; then
2764 # We chose a different compiler from the bogus one.
2765 # However, it has the same basename, so the bogon will be chosen
2766 # first if we set CC to just the basename; use the full file name.
2767 shift
2768 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2773 CC=$ac_cv_prog_CC
2774 if test -n "$CC"; then
2775 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2776 $as_echo "$CC" >&6; }
2777 else
2778 { $as_echo "$as_me:$LINENO: result: no" >&5
2779 $as_echo "no" >&6; }
2784 if test -z "$CC"; then
2785 if test -n "$ac_tool_prefix"; then
2786 for ac_prog in cl.exe
2788 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2789 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2790 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2791 $as_echo_n "checking for $ac_word... " >&6; }
2792 if test "${ac_cv_prog_CC+set}" = set; then
2793 $as_echo_n "(cached) " >&6
2794 else
2795 if test -n "$CC"; then
2796 ac_cv_prog_CC="$CC" # Let the user override the test.
2797 else
2798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799 for as_dir in $PATH
2801 IFS=$as_save_IFS
2802 test -z "$as_dir" && as_dir=.
2803 for ac_exec_ext in '' $ac_executable_extensions; do
2804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2805 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2806 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2807 break 2
2809 done
2810 done
2811 IFS=$as_save_IFS
2815 CC=$ac_cv_prog_CC
2816 if test -n "$CC"; then
2817 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2818 $as_echo "$CC" >&6; }
2819 else
2820 { $as_echo "$as_me:$LINENO: result: no" >&5
2821 $as_echo "no" >&6; }
2825 test -n "$CC" && break
2826 done
2828 if test -z "$CC"; then
2829 ac_ct_CC=$CC
2830 for ac_prog in cl.exe
2832 # Extract the first word of "$ac_prog", so it can be a program name with args.
2833 set dummy $ac_prog; ac_word=$2
2834 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2835 $as_echo_n "checking for $ac_word... " >&6; }
2836 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2837 $as_echo_n "(cached) " >&6
2838 else
2839 if test -n "$ac_ct_CC"; then
2840 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2841 else
2842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2843 for as_dir in $PATH
2845 IFS=$as_save_IFS
2846 test -z "$as_dir" && as_dir=.
2847 for ac_exec_ext in '' $ac_executable_extensions; do
2848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2849 ac_cv_prog_ac_ct_CC="$ac_prog"
2850 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2851 break 2
2853 done
2854 done
2855 IFS=$as_save_IFS
2859 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2860 if test -n "$ac_ct_CC"; then
2861 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2862 $as_echo "$ac_ct_CC" >&6; }
2863 else
2864 { $as_echo "$as_me:$LINENO: result: no" >&5
2865 $as_echo "no" >&6; }
2869 test -n "$ac_ct_CC" && break
2870 done
2872 if test "x$ac_ct_CC" = x; then
2873 CC=""
2874 else
2875 case $cross_compiling:$ac_tool_warned in
2876 yes:)
2877 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2878 whose name does not start with the host triplet. If you think this
2879 configuration is useful to you, please write to autoconf@gnu.org." >&5
2880 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2881 whose name does not start with the host triplet. If you think this
2882 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2883 ac_tool_warned=yes ;;
2884 esac
2885 CC=$ac_ct_CC
2892 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2893 See \`config.log' for more details." >&5
2894 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2895 See \`config.log' for more details." >&2;}
2896 { (exit 1); exit 1; }; }
2898 # Provide some information about the compiler.
2899 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2900 set X $ac_compile
2901 ac_compiler=$2
2902 { (ac_try="$ac_compiler --version >&5"
2903 case "(($ac_try" in
2904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905 *) ac_try_echo=$ac_try;;
2906 esac
2907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2908 $as_echo "$ac_try_echo") >&5
2909 (eval "$ac_compiler --version >&5") 2>&5
2910 ac_status=$?
2911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); }
2913 { (ac_try="$ac_compiler -v >&5"
2914 case "(($ac_try" in
2915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2916 *) ac_try_echo=$ac_try;;
2917 esac
2918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2919 $as_echo "$ac_try_echo") >&5
2920 (eval "$ac_compiler -v >&5") 2>&5
2921 ac_status=$?
2922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923 (exit $ac_status); }
2924 { (ac_try="$ac_compiler -V >&5"
2925 case "(($ac_try" in
2926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2927 *) ac_try_echo=$ac_try;;
2928 esac
2929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2930 $as_echo "$ac_try_echo") >&5
2931 (eval "$ac_compiler -V >&5") 2>&5
2932 ac_status=$?
2933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); }
2936 cat >conftest.$ac_ext <<_ACEOF
2937 /* confdefs.h. */
2938 _ACEOF
2939 cat confdefs.h >>conftest.$ac_ext
2940 cat >>conftest.$ac_ext <<_ACEOF
2941 /* end confdefs.h. */
2944 main ()
2948 return 0;
2950 _ACEOF
2951 ac_clean_files_save=$ac_clean_files
2952 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2953 # Try to create an executable without -o first, disregard a.out.
2954 # It will help us diagnose broken compilers, and finding out an intuition
2955 # of exeext.
2956 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2957 $as_echo_n "checking for C compiler default output file name... " >&6; }
2958 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2960 # The possible output files:
2961 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2963 ac_rmfiles=
2964 for ac_file in $ac_files
2966 case $ac_file in
2967 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2968 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2969 esac
2970 done
2971 rm -f $ac_rmfiles
2973 if { (ac_try="$ac_link_default"
2974 case "(($ac_try" in
2975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2976 *) ac_try_echo=$ac_try;;
2977 esac
2978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2979 $as_echo "$ac_try_echo") >&5
2980 (eval "$ac_link_default") 2>&5
2981 ac_status=$?
2982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); }; then
2984 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2985 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2986 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2987 # so that the user can short-circuit this test for compilers unknown to
2988 # Autoconf.
2989 for ac_file in $ac_files ''
2991 test -f "$ac_file" || continue
2992 case $ac_file in
2993 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2995 [ab].out )
2996 # We found the default executable, but exeext='' is most
2997 # certainly right.
2998 break;;
2999 *.* )
3000 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3001 then :; else
3002 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3004 # We set ac_cv_exeext here because the later test for it is not
3005 # safe: cross compilers may not add the suffix if given an `-o'
3006 # argument, so we may need to know it at that point already.
3007 # Even if this section looks crufty: it has the advantage of
3008 # actually working.
3009 break;;
3011 break;;
3012 esac
3013 done
3014 test "$ac_cv_exeext" = no && ac_cv_exeext=
3016 else
3017 ac_file=''
3020 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3021 $as_echo "$ac_file" >&6; }
3022 if test -z "$ac_file"; then
3023 $as_echo "$as_me: failed program was:" >&5
3024 sed 's/^/| /' conftest.$ac_ext >&5
3026 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3027 See \`config.log' for more details." >&5
3028 $as_echo "$as_me: error: C compiler cannot create executables
3029 See \`config.log' for more details." >&2;}
3030 { (exit 77); exit 77; }; }
3033 ac_exeext=$ac_cv_exeext
3035 # Check that the compiler produces executables we can run. If not, either
3036 # the compiler is broken, or we cross compile.
3037 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3038 $as_echo_n "checking whether the C compiler works... " >&6; }
3039 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3040 # If not cross compiling, check that we can run a simple program.
3041 if test "$cross_compiling" != yes; then
3042 if { ac_try='./$ac_file'
3043 { (case "(($ac_try" in
3044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045 *) ac_try_echo=$ac_try;;
3046 esac
3047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3048 $as_echo "$ac_try_echo") >&5
3049 (eval "$ac_try") 2>&5
3050 ac_status=$?
3051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); }; }; then
3053 cross_compiling=no
3054 else
3055 if test "$cross_compiling" = maybe; then
3056 cross_compiling=yes
3057 else
3058 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3059 If you meant to cross compile, use \`--host'.
3060 See \`config.log' for more details." >&5
3061 $as_echo "$as_me: error: cannot run C compiled programs.
3062 If you meant to cross compile, use \`--host'.
3063 See \`config.log' for more details." >&2;}
3064 { (exit 1); exit 1; }; }
3068 { $as_echo "$as_me:$LINENO: result: yes" >&5
3069 $as_echo "yes" >&6; }
3071 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3072 ac_clean_files=$ac_clean_files_save
3073 # Check that the compiler produces executables we can run. If not, either
3074 # the compiler is broken, or we cross compile.
3075 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3076 $as_echo_n "checking whether we are cross compiling... " >&6; }
3077 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3078 $as_echo "$cross_compiling" >&6; }
3080 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3081 $as_echo_n "checking for suffix of executables... " >&6; }
3082 if { (ac_try="$ac_link"
3083 case "(($ac_try" in
3084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085 *) ac_try_echo=$ac_try;;
3086 esac
3087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3088 $as_echo "$ac_try_echo") >&5
3089 (eval "$ac_link") 2>&5
3090 ac_status=$?
3091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); }; then
3093 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3094 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3095 # work properly (i.e., refer to `conftest.exe'), while it won't with
3096 # `rm'.
3097 for ac_file in conftest.exe conftest conftest.*; do
3098 test -f "$ac_file" || continue
3099 case $ac_file in
3100 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3101 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3102 break;;
3103 * ) break;;
3104 esac
3105 done
3106 else
3107 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3108 See \`config.log' for more details." >&5
3109 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3110 See \`config.log' for more details." >&2;}
3111 { (exit 1); exit 1; }; }
3114 rm -f conftest$ac_cv_exeext
3115 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3116 $as_echo "$ac_cv_exeext" >&6; }
3118 rm -f conftest.$ac_ext
3119 EXEEXT=$ac_cv_exeext
3120 ac_exeext=$EXEEXT
3121 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3122 $as_echo_n "checking for suffix of object files... " >&6; }
3123 if test "${ac_cv_objext+set}" = set; then
3124 $as_echo_n "(cached) " >&6
3125 else
3126 cat >conftest.$ac_ext <<_ACEOF
3127 /* confdefs.h. */
3128 _ACEOF
3129 cat confdefs.h >>conftest.$ac_ext
3130 cat >>conftest.$ac_ext <<_ACEOF
3131 /* end confdefs.h. */
3134 main ()
3138 return 0;
3140 _ACEOF
3141 rm -f conftest.o conftest.obj
3142 if { (ac_try="$ac_compile"
3143 case "(($ac_try" in
3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3146 esac
3147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3148 $as_echo "$ac_try_echo") >&5
3149 (eval "$ac_compile") 2>&5
3150 ac_status=$?
3151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); }; then
3153 for ac_file in conftest.o conftest.obj conftest.*; do
3154 test -f "$ac_file" || continue;
3155 case $ac_file in
3156 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3157 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3158 break;;
3159 esac
3160 done
3161 else
3162 $as_echo "$as_me: failed program was:" >&5
3163 sed 's/^/| /' conftest.$ac_ext >&5
3165 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3166 See \`config.log' for more details." >&5
3167 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3168 See \`config.log' for more details." >&2;}
3169 { (exit 1); exit 1; }; }
3172 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3174 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3175 $as_echo "$ac_cv_objext" >&6; }
3176 OBJEXT=$ac_cv_objext
3177 ac_objext=$OBJEXT
3178 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3179 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3180 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3181 $as_echo_n "(cached) " >&6
3182 else
3183 cat >conftest.$ac_ext <<_ACEOF
3184 /* confdefs.h. */
3185 _ACEOF
3186 cat confdefs.h >>conftest.$ac_ext
3187 cat >>conftest.$ac_ext <<_ACEOF
3188 /* end confdefs.h. */
3191 main ()
3193 #ifndef __GNUC__
3194 choke me
3195 #endif
3198 return 0;
3200 _ACEOF
3201 rm -f conftest.$ac_objext
3202 if { (ac_try="$ac_compile"
3203 case "(($ac_try" in
3204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3205 *) ac_try_echo=$ac_try;;
3206 esac
3207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3208 $as_echo "$ac_try_echo") >&5
3209 (eval "$ac_compile") 2>conftest.er1
3210 ac_status=$?
3211 grep -v '^ *+' conftest.er1 >conftest.err
3212 rm -f conftest.er1
3213 cat conftest.err >&5
3214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215 (exit $ac_status); } && {
3216 test -z "$ac_c_werror_flag" ||
3217 test ! -s conftest.err
3218 } && test -s conftest.$ac_objext; then
3219 ac_compiler_gnu=yes
3220 else
3221 $as_echo "$as_me: failed program was:" >&5
3222 sed 's/^/| /' conftest.$ac_ext >&5
3224 ac_compiler_gnu=no
3227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3228 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3231 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3232 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3233 if test $ac_compiler_gnu = yes; then
3234 GCC=yes
3235 else
3236 GCC=
3238 ac_test_CFLAGS=${CFLAGS+set}
3239 ac_save_CFLAGS=$CFLAGS
3240 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3241 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3242 if test "${ac_cv_prog_cc_g+set}" = set; then
3243 $as_echo_n "(cached) " >&6
3244 else
3245 ac_save_c_werror_flag=$ac_c_werror_flag
3246 ac_c_werror_flag=yes
3247 ac_cv_prog_cc_g=no
3248 CFLAGS="-g"
3249 cat >conftest.$ac_ext <<_ACEOF
3250 /* confdefs.h. */
3251 _ACEOF
3252 cat confdefs.h >>conftest.$ac_ext
3253 cat >>conftest.$ac_ext <<_ACEOF
3254 /* end confdefs.h. */
3257 main ()
3261 return 0;
3263 _ACEOF
3264 rm -f conftest.$ac_objext
3265 if { (ac_try="$ac_compile"
3266 case "(($ac_try" in
3267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268 *) ac_try_echo=$ac_try;;
3269 esac
3270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3271 $as_echo "$ac_try_echo") >&5
3272 (eval "$ac_compile") 2>conftest.er1
3273 ac_status=$?
3274 grep -v '^ *+' conftest.er1 >conftest.err
3275 rm -f conftest.er1
3276 cat conftest.err >&5
3277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); } && {
3279 test -z "$ac_c_werror_flag" ||
3280 test ! -s conftest.err
3281 } && test -s conftest.$ac_objext; then
3282 ac_cv_prog_cc_g=yes
3283 else
3284 $as_echo "$as_me: failed program was:" >&5
3285 sed 's/^/| /' conftest.$ac_ext >&5
3287 CFLAGS=""
3288 cat >conftest.$ac_ext <<_ACEOF
3289 /* confdefs.h. */
3290 _ACEOF
3291 cat confdefs.h >>conftest.$ac_ext
3292 cat >>conftest.$ac_ext <<_ACEOF
3293 /* end confdefs.h. */
3296 main ()
3300 return 0;
3302 _ACEOF
3303 rm -f conftest.$ac_objext
3304 if { (ac_try="$ac_compile"
3305 case "(($ac_try" in
3306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3307 *) ac_try_echo=$ac_try;;
3308 esac
3309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3310 $as_echo "$ac_try_echo") >&5
3311 (eval "$ac_compile") 2>conftest.er1
3312 ac_status=$?
3313 grep -v '^ *+' conftest.er1 >conftest.err
3314 rm -f conftest.er1
3315 cat conftest.err >&5
3316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317 (exit $ac_status); } && {
3318 test -z "$ac_c_werror_flag" ||
3319 test ! -s conftest.err
3320 } && test -s conftest.$ac_objext; then
3322 else
3323 $as_echo "$as_me: failed program was:" >&5
3324 sed 's/^/| /' conftest.$ac_ext >&5
3326 ac_c_werror_flag=$ac_save_c_werror_flag
3327 CFLAGS="-g"
3328 cat >conftest.$ac_ext <<_ACEOF
3329 /* confdefs.h. */
3330 _ACEOF
3331 cat confdefs.h >>conftest.$ac_ext
3332 cat >>conftest.$ac_ext <<_ACEOF
3333 /* end confdefs.h. */
3336 main ()
3340 return 0;
3342 _ACEOF
3343 rm -f conftest.$ac_objext
3344 if { (ac_try="$ac_compile"
3345 case "(($ac_try" in
3346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3347 *) ac_try_echo=$ac_try;;
3348 esac
3349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3350 $as_echo "$ac_try_echo") >&5
3351 (eval "$ac_compile") 2>conftest.er1
3352 ac_status=$?
3353 grep -v '^ *+' conftest.er1 >conftest.err
3354 rm -f conftest.er1
3355 cat conftest.err >&5
3356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); } && {
3358 test -z "$ac_c_werror_flag" ||
3359 test ! -s conftest.err
3360 } && test -s conftest.$ac_objext; then
3361 ac_cv_prog_cc_g=yes
3362 else
3363 $as_echo "$as_me: failed program was:" >&5
3364 sed 's/^/| /' conftest.$ac_ext >&5
3369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3376 ac_c_werror_flag=$ac_save_c_werror_flag
3378 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3379 $as_echo "$ac_cv_prog_cc_g" >&6; }
3380 if test "$ac_test_CFLAGS" = set; then
3381 CFLAGS=$ac_save_CFLAGS
3382 elif test $ac_cv_prog_cc_g = yes; then
3383 if test "$GCC" = yes; then
3384 CFLAGS="-g -O2"
3385 else
3386 CFLAGS="-g"
3388 else
3389 if test "$GCC" = yes; then
3390 CFLAGS="-O2"
3391 else
3392 CFLAGS=
3395 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3396 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3397 if test "${ac_cv_prog_cc_c89+set}" = set; then
3398 $as_echo_n "(cached) " >&6
3399 else
3400 ac_cv_prog_cc_c89=no
3401 ac_save_CC=$CC
3402 cat >conftest.$ac_ext <<_ACEOF
3403 /* confdefs.h. */
3404 _ACEOF
3405 cat confdefs.h >>conftest.$ac_ext
3406 cat >>conftest.$ac_ext <<_ACEOF
3407 /* end confdefs.h. */
3408 #include <stdarg.h>
3409 #include <stdio.h>
3410 #include <sys/types.h>
3411 #include <sys/stat.h>
3412 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3413 struct buf { int x; };
3414 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3415 static char *e (p, i)
3416 char **p;
3417 int i;
3419 return p[i];
3421 static char *f (char * (*g) (char **, int), char **p, ...)
3423 char *s;
3424 va_list v;
3425 va_start (v,p);
3426 s = g (p, va_arg (v,int));
3427 va_end (v);
3428 return s;
3431 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3432 function prototypes and stuff, but not '\xHH' hex character constants.
3433 These don't provoke an error unfortunately, instead are silently treated
3434 as 'x'. The following induces an error, until -std is added to get
3435 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3436 array size at least. It's necessary to write '\x00'==0 to get something
3437 that's true only with -std. */
3438 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3440 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3441 inside strings and character constants. */
3442 #define FOO(x) 'x'
3443 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3445 int test (int i, double x);
3446 struct s1 {int (*f) (int a);};
3447 struct s2 {int (*f) (double a);};
3448 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3449 int argc;
3450 char **argv;
3452 main ()
3454 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3456 return 0;
3458 _ACEOF
3459 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3460 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3462 CC="$ac_save_CC $ac_arg"
3463 rm -f conftest.$ac_objext
3464 if { (ac_try="$ac_compile"
3465 case "(($ac_try" in
3466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3467 *) ac_try_echo=$ac_try;;
3468 esac
3469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3470 $as_echo "$ac_try_echo") >&5
3471 (eval "$ac_compile") 2>conftest.er1
3472 ac_status=$?
3473 grep -v '^ *+' conftest.er1 >conftest.err
3474 rm -f conftest.er1
3475 cat conftest.err >&5
3476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477 (exit $ac_status); } && {
3478 test -z "$ac_c_werror_flag" ||
3479 test ! -s conftest.err
3480 } && test -s conftest.$ac_objext; then
3481 ac_cv_prog_cc_c89=$ac_arg
3482 else
3483 $as_echo "$as_me: failed program was:" >&5
3484 sed 's/^/| /' conftest.$ac_ext >&5
3489 rm -f core conftest.err conftest.$ac_objext
3490 test "x$ac_cv_prog_cc_c89" != "xno" && break
3491 done
3492 rm -f conftest.$ac_ext
3493 CC=$ac_save_CC
3496 # AC_CACHE_VAL
3497 case "x$ac_cv_prog_cc_c89" in
3499 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3500 $as_echo "none needed" >&6; } ;;
3501 xno)
3502 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3503 $as_echo "unsupported" >&6; } ;;
3505 CC="$CC $ac_cv_prog_cc_c89"
3506 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3507 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3508 esac
3511 ac_ext=c
3512 ac_cpp='$CPP $CPPFLAGS'
3513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3517 depcc="$CC" am_compiler_list=
3519 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3520 $as_echo_n "checking dependency style of $depcc... " >&6; }
3521 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3522 $as_echo_n "(cached) " >&6
3523 else
3524 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3525 # We make a subdir and do the tests there. Otherwise we can end up
3526 # making bogus files that we don't know about and never remove. For
3527 # instance it was reported that on HP-UX the gcc test will end up
3528 # making a dummy file named `D' -- because `-MD' means `put the output
3529 # in D'.
3530 mkdir conftest.dir
3531 # Copy depcomp to subdir because otherwise we won't find it if we're
3532 # using a relative directory.
3533 cp "$am_depcomp" conftest.dir
3534 cd conftest.dir
3535 # We will build objects and dependencies in a subdirectory because
3536 # it helps to detect inapplicable dependency modes. For instance
3537 # both Tru64's cc and ICC support -MD to output dependencies as a
3538 # side effect of compilation, but ICC will put the dependencies in
3539 # the current directory while Tru64 will put them in the object
3540 # directory.
3541 mkdir sub
3543 am_cv_CC_dependencies_compiler_type=none
3544 if test "$am_compiler_list" = ""; then
3545 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3547 for depmode in $am_compiler_list; do
3548 # Setup a source with many dependencies, because some compilers
3549 # like to wrap large dependency lists on column 80 (with \), and
3550 # we should not choose a depcomp mode which is confused by this.
3552 # We need to recreate these files for each test, as the compiler may
3553 # overwrite some of them when testing with obscure command lines.
3554 # This happens at least with the AIX C compiler.
3555 : > sub/conftest.c
3556 for i in 1 2 3 4 5 6; do
3557 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3558 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3559 # Solaris 8's {/usr,}/bin/sh.
3560 touch sub/conftst$i.h
3561 done
3562 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3564 case $depmode in
3565 nosideeffect)
3566 # after this tag, mechanisms are not by side-effect, so they'll
3567 # only be used when explicitly requested
3568 if test "x$enable_dependency_tracking" = xyes; then
3569 continue
3570 else
3571 break
3574 none) break ;;
3575 esac
3576 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3577 # mode. It turns out that the SunPro C++ compiler does not properly
3578 # handle `-M -o', and we need to detect this.
3579 if depmode=$depmode \
3580 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3581 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3582 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3583 >/dev/null 2>conftest.err &&
3584 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3585 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3586 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3587 # icc doesn't choke on unknown options, it will just issue warnings
3588 # or remarks (even with -Werror). So we grep stderr for any message
3589 # that says an option was ignored or not supported.
3590 # When given -MP, icc 7.0 and 7.1 complain thusly:
3591 # icc: Command line warning: ignoring option '-M'; no argument required
3592 # The diagnosis changed in icc 8.0:
3593 # icc: Command line remark: option '-MP' not supported
3594 if (grep 'ignoring option' conftest.err ||
3595 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3596 am_cv_CC_dependencies_compiler_type=$depmode
3597 break
3600 done
3602 cd ..
3603 rm -rf conftest.dir
3604 else
3605 am_cv_CC_dependencies_compiler_type=none
3609 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3610 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3611 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3616 test "x$enable_dependency_tracking" != xno \
3617 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3618 am__fastdepCC_TRUE=
3619 am__fastdepCC_FALSE='#'
3620 else
3621 am__fastdepCC_TRUE='#'
3622 am__fastdepCC_FALSE=
3627 # Check whether --enable-largefile was given.
3628 if test "${enable_largefile+set}" = set; then
3629 enableval=$enable_largefile;
3632 if test "$enable_largefile" != no; then
3634 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3635 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3636 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3637 $as_echo_n "(cached) " >&6
3638 else
3639 ac_cv_sys_largefile_CC=no
3640 if test "$GCC" != yes; then
3641 ac_save_CC=$CC
3642 while :; do
3643 # IRIX 6.2 and later do not support large files by default,
3644 # so use the C compiler's -n32 option if that helps.
3645 cat >conftest.$ac_ext <<_ACEOF
3646 /* confdefs.h. */
3647 _ACEOF
3648 cat confdefs.h >>conftest.$ac_ext
3649 cat >>conftest.$ac_ext <<_ACEOF
3650 /* end confdefs.h. */
3651 #include <sys/types.h>
3652 /* Check that off_t can represent 2**63 - 1 correctly.
3653 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3654 since some C++ compilers masquerading as C compilers
3655 incorrectly reject 9223372036854775807. */
3656 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3657 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3658 && LARGE_OFF_T % 2147483647 == 1)
3659 ? 1 : -1];
3661 main ()
3665 return 0;
3667 _ACEOF
3668 rm -f conftest.$ac_objext
3669 if { (ac_try="$ac_compile"
3670 case "(($ac_try" in
3671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3672 *) ac_try_echo=$ac_try;;
3673 esac
3674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3675 $as_echo "$ac_try_echo") >&5
3676 (eval "$ac_compile") 2>conftest.er1
3677 ac_status=$?
3678 grep -v '^ *+' conftest.er1 >conftest.err
3679 rm -f conftest.er1
3680 cat conftest.err >&5
3681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682 (exit $ac_status); } && {
3683 test -z "$ac_c_werror_flag" ||
3684 test ! -s conftest.err
3685 } && test -s conftest.$ac_objext; then
3686 break
3687 else
3688 $as_echo "$as_me: failed program was:" >&5
3689 sed 's/^/| /' conftest.$ac_ext >&5
3694 rm -f core conftest.err conftest.$ac_objext
3695 CC="$CC -n32"
3696 rm -f conftest.$ac_objext
3697 if { (ac_try="$ac_compile"
3698 case "(($ac_try" in
3699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3700 *) ac_try_echo=$ac_try;;
3701 esac
3702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3703 $as_echo "$ac_try_echo") >&5
3704 (eval "$ac_compile") 2>conftest.er1
3705 ac_status=$?
3706 grep -v '^ *+' conftest.er1 >conftest.err
3707 rm -f conftest.er1
3708 cat conftest.err >&5
3709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); } && {
3711 test -z "$ac_c_werror_flag" ||
3712 test ! -s conftest.err
3713 } && test -s conftest.$ac_objext; then
3714 ac_cv_sys_largefile_CC=' -n32'; break
3715 else
3716 $as_echo "$as_me: failed program was:" >&5
3717 sed 's/^/| /' conftest.$ac_ext >&5
3722 rm -f core conftest.err conftest.$ac_objext
3723 break
3724 done
3725 CC=$ac_save_CC
3726 rm -f conftest.$ac_ext
3729 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3730 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
3731 if test "$ac_cv_sys_largefile_CC" != no; then
3732 CC=$CC$ac_cv_sys_largefile_CC
3735 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3736 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
3737 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3738 $as_echo_n "(cached) " >&6
3739 else
3740 while :; do
3741 cat >conftest.$ac_ext <<_ACEOF
3742 /* confdefs.h. */
3743 _ACEOF
3744 cat confdefs.h >>conftest.$ac_ext
3745 cat >>conftest.$ac_ext <<_ACEOF
3746 /* end confdefs.h. */
3747 #include <sys/types.h>
3748 /* Check that off_t can represent 2**63 - 1 correctly.
3749 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3750 since some C++ compilers masquerading as C compilers
3751 incorrectly reject 9223372036854775807. */
3752 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3753 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3754 && LARGE_OFF_T % 2147483647 == 1)
3755 ? 1 : -1];
3757 main ()
3761 return 0;
3763 _ACEOF
3764 rm -f conftest.$ac_objext
3765 if { (ac_try="$ac_compile"
3766 case "(($ac_try" in
3767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3768 *) ac_try_echo=$ac_try;;
3769 esac
3770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3771 $as_echo "$ac_try_echo") >&5
3772 (eval "$ac_compile") 2>conftest.er1
3773 ac_status=$?
3774 grep -v '^ *+' conftest.er1 >conftest.err
3775 rm -f conftest.er1
3776 cat conftest.err >&5
3777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778 (exit $ac_status); } && {
3779 test -z "$ac_c_werror_flag" ||
3780 test ! -s conftest.err
3781 } && test -s conftest.$ac_objext; then
3782 ac_cv_sys_file_offset_bits=no; break
3783 else
3784 $as_echo "$as_me: failed program was:" >&5
3785 sed 's/^/| /' conftest.$ac_ext >&5
3790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3791 cat >conftest.$ac_ext <<_ACEOF
3792 /* confdefs.h. */
3793 _ACEOF
3794 cat confdefs.h >>conftest.$ac_ext
3795 cat >>conftest.$ac_ext <<_ACEOF
3796 /* end confdefs.h. */
3797 #define _FILE_OFFSET_BITS 64
3798 #include <sys/types.h>
3799 /* Check that off_t can represent 2**63 - 1 correctly.
3800 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3801 since some C++ compilers masquerading as C compilers
3802 incorrectly reject 9223372036854775807. */
3803 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3804 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3805 && LARGE_OFF_T % 2147483647 == 1)
3806 ? 1 : -1];
3808 main ()
3812 return 0;
3814 _ACEOF
3815 rm -f conftest.$ac_objext
3816 if { (ac_try="$ac_compile"
3817 case "(($ac_try" in
3818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3819 *) ac_try_echo=$ac_try;;
3820 esac
3821 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3822 $as_echo "$ac_try_echo") >&5
3823 (eval "$ac_compile") 2>conftest.er1
3824 ac_status=$?
3825 grep -v '^ *+' conftest.er1 >conftest.err
3826 rm -f conftest.er1
3827 cat conftest.err >&5
3828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829 (exit $ac_status); } && {
3830 test -z "$ac_c_werror_flag" ||
3831 test ! -s conftest.err
3832 } && test -s conftest.$ac_objext; then
3833 ac_cv_sys_file_offset_bits=64; break
3834 else
3835 $as_echo "$as_me: failed program was:" >&5
3836 sed 's/^/| /' conftest.$ac_ext >&5
3841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3842 ac_cv_sys_file_offset_bits=unknown
3843 break
3844 done
3846 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3847 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
3848 case $ac_cv_sys_file_offset_bits in #(
3849 no | unknown) ;;
3851 cat >>confdefs.h <<_ACEOF
3852 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3853 _ACEOF
3855 esac
3856 rm -rf conftest*
3857 if test $ac_cv_sys_file_offset_bits = unknown; then
3858 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3859 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
3860 if test "${ac_cv_sys_large_files+set}" = set; then
3861 $as_echo_n "(cached) " >&6
3862 else
3863 while :; do
3864 cat >conftest.$ac_ext <<_ACEOF
3865 /* confdefs.h. */
3866 _ACEOF
3867 cat confdefs.h >>conftest.$ac_ext
3868 cat >>conftest.$ac_ext <<_ACEOF
3869 /* end confdefs.h. */
3870 #include <sys/types.h>
3871 /* Check that off_t can represent 2**63 - 1 correctly.
3872 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3873 since some C++ compilers masquerading as C compilers
3874 incorrectly reject 9223372036854775807. */
3875 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3876 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3877 && LARGE_OFF_T % 2147483647 == 1)
3878 ? 1 : -1];
3880 main ()
3884 return 0;
3886 _ACEOF
3887 rm -f conftest.$ac_objext
3888 if { (ac_try="$ac_compile"
3889 case "(($ac_try" in
3890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3891 *) ac_try_echo=$ac_try;;
3892 esac
3893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3894 $as_echo "$ac_try_echo") >&5
3895 (eval "$ac_compile") 2>conftest.er1
3896 ac_status=$?
3897 grep -v '^ *+' conftest.er1 >conftest.err
3898 rm -f conftest.er1
3899 cat conftest.err >&5
3900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); } && {
3902 test -z "$ac_c_werror_flag" ||
3903 test ! -s conftest.err
3904 } && test -s conftest.$ac_objext; then
3905 ac_cv_sys_large_files=no; break
3906 else
3907 $as_echo "$as_me: failed program was:" >&5
3908 sed 's/^/| /' conftest.$ac_ext >&5
3913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3914 cat >conftest.$ac_ext <<_ACEOF
3915 /* confdefs.h. */
3916 _ACEOF
3917 cat confdefs.h >>conftest.$ac_ext
3918 cat >>conftest.$ac_ext <<_ACEOF
3919 /* end confdefs.h. */
3920 #define _LARGE_FILES 1
3921 #include <sys/types.h>
3922 /* Check that off_t can represent 2**63 - 1 correctly.
3923 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3924 since some C++ compilers masquerading as C compilers
3925 incorrectly reject 9223372036854775807. */
3926 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3927 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3928 && LARGE_OFF_T % 2147483647 == 1)
3929 ? 1 : -1];
3931 main ()
3935 return 0;
3937 _ACEOF
3938 rm -f conftest.$ac_objext
3939 if { (ac_try="$ac_compile"
3940 case "(($ac_try" in
3941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3942 *) ac_try_echo=$ac_try;;
3943 esac
3944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3945 $as_echo "$ac_try_echo") >&5
3946 (eval "$ac_compile") 2>conftest.er1
3947 ac_status=$?
3948 grep -v '^ *+' conftest.er1 >conftest.err
3949 rm -f conftest.er1
3950 cat conftest.err >&5
3951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952 (exit $ac_status); } && {
3953 test -z "$ac_c_werror_flag" ||
3954 test ! -s conftest.err
3955 } && test -s conftest.$ac_objext; then
3956 ac_cv_sys_large_files=1; break
3957 else
3958 $as_echo "$as_me: failed program was:" >&5
3959 sed 's/^/| /' conftest.$ac_ext >&5
3964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3965 ac_cv_sys_large_files=unknown
3966 break
3967 done
3969 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3970 $as_echo "$ac_cv_sys_large_files" >&6; }
3971 case $ac_cv_sys_large_files in #(
3972 no | unknown) ;;
3974 cat >>confdefs.h <<_ACEOF
3975 #define _LARGE_FILES $ac_cv_sys_large_files
3976 _ACEOF
3978 esac
3979 rm -rf conftest*
3984 # Check for required programs.
3985 ac_ext=c
3986 ac_cpp='$CPP $CPPFLAGS'
3987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3990 if test -n "$ac_tool_prefix"; then
3991 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3992 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3993 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3994 $as_echo_n "checking for $ac_word... " >&6; }
3995 if test "${ac_cv_prog_CC+set}" = set; then
3996 $as_echo_n "(cached) " >&6
3997 else
3998 if test -n "$CC"; then
3999 ac_cv_prog_CC="$CC" # Let the user override the test.
4000 else
4001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4002 for as_dir in $PATH
4004 IFS=$as_save_IFS
4005 test -z "$as_dir" && as_dir=.
4006 for ac_exec_ext in '' $ac_executable_extensions; do
4007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4008 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4009 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4010 break 2
4012 done
4013 done
4014 IFS=$as_save_IFS
4018 CC=$ac_cv_prog_CC
4019 if test -n "$CC"; then
4020 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4021 $as_echo "$CC" >&6; }
4022 else
4023 { $as_echo "$as_me:$LINENO: result: no" >&5
4024 $as_echo "no" >&6; }
4029 if test -z "$ac_cv_prog_CC"; then
4030 ac_ct_CC=$CC
4031 # Extract the first word of "gcc", so it can be a program name with args.
4032 set dummy gcc; ac_word=$2
4033 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4034 $as_echo_n "checking for $ac_word... " >&6; }
4035 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4036 $as_echo_n "(cached) " >&6
4037 else
4038 if test -n "$ac_ct_CC"; then
4039 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4040 else
4041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4042 for as_dir in $PATH
4044 IFS=$as_save_IFS
4045 test -z "$as_dir" && as_dir=.
4046 for ac_exec_ext in '' $ac_executable_extensions; do
4047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4048 ac_cv_prog_ac_ct_CC="gcc"
4049 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4050 break 2
4052 done
4053 done
4054 IFS=$as_save_IFS
4058 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4059 if test -n "$ac_ct_CC"; then
4060 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4061 $as_echo "$ac_ct_CC" >&6; }
4062 else
4063 { $as_echo "$as_me:$LINENO: result: no" >&5
4064 $as_echo "no" >&6; }
4067 if test "x$ac_ct_CC" = x; then
4068 CC=""
4069 else
4070 case $cross_compiling:$ac_tool_warned in
4071 yes:)
4072 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4073 whose name does not start with the host triplet. If you think this
4074 configuration is useful to you, please write to autoconf@gnu.org." >&5
4075 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4076 whose name does not start with the host triplet. If you think this
4077 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4078 ac_tool_warned=yes ;;
4079 esac
4080 CC=$ac_ct_CC
4082 else
4083 CC="$ac_cv_prog_CC"
4086 if test -z "$CC"; then
4087 if test -n "$ac_tool_prefix"; then
4088 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4089 set dummy ${ac_tool_prefix}cc; ac_word=$2
4090 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4091 $as_echo_n "checking for $ac_word... " >&6; }
4092 if test "${ac_cv_prog_CC+set}" = set; then
4093 $as_echo_n "(cached) " >&6
4094 else
4095 if test -n "$CC"; then
4096 ac_cv_prog_CC="$CC" # Let the user override the test.
4097 else
4098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4099 for as_dir in $PATH
4101 IFS=$as_save_IFS
4102 test -z "$as_dir" && as_dir=.
4103 for ac_exec_ext in '' $ac_executable_extensions; do
4104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4105 ac_cv_prog_CC="${ac_tool_prefix}cc"
4106 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4107 break 2
4109 done
4110 done
4111 IFS=$as_save_IFS
4115 CC=$ac_cv_prog_CC
4116 if test -n "$CC"; then
4117 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4118 $as_echo "$CC" >&6; }
4119 else
4120 { $as_echo "$as_me:$LINENO: result: no" >&5
4121 $as_echo "no" >&6; }
4127 if test -z "$CC"; then
4128 # Extract the first word of "cc", so it can be a program name with args.
4129 set dummy cc; ac_word=$2
4130 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4131 $as_echo_n "checking for $ac_word... " >&6; }
4132 if test "${ac_cv_prog_CC+set}" = set; then
4133 $as_echo_n "(cached) " >&6
4134 else
4135 if test -n "$CC"; then
4136 ac_cv_prog_CC="$CC" # Let the user override the test.
4137 else
4138 ac_prog_rejected=no
4139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4140 for as_dir in $PATH
4142 IFS=$as_save_IFS
4143 test -z "$as_dir" && as_dir=.
4144 for ac_exec_ext in '' $ac_executable_extensions; do
4145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4146 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4147 ac_prog_rejected=yes
4148 continue
4150 ac_cv_prog_CC="cc"
4151 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4152 break 2
4154 done
4155 done
4156 IFS=$as_save_IFS
4158 if test $ac_prog_rejected = yes; then
4159 # We found a bogon in the path, so make sure we never use it.
4160 set dummy $ac_cv_prog_CC
4161 shift
4162 if test $# != 0; then
4163 # We chose a different compiler from the bogus one.
4164 # However, it has the same basename, so the bogon will be chosen
4165 # first if we set CC to just the basename; use the full file name.
4166 shift
4167 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4172 CC=$ac_cv_prog_CC
4173 if test -n "$CC"; then
4174 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4175 $as_echo "$CC" >&6; }
4176 else
4177 { $as_echo "$as_me:$LINENO: result: no" >&5
4178 $as_echo "no" >&6; }
4183 if test -z "$CC"; then
4184 if test -n "$ac_tool_prefix"; then
4185 for ac_prog in cl.exe
4187 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4188 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4189 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4190 $as_echo_n "checking for $ac_word... " >&6; }
4191 if test "${ac_cv_prog_CC+set}" = set; then
4192 $as_echo_n "(cached) " >&6
4193 else
4194 if test -n "$CC"; then
4195 ac_cv_prog_CC="$CC" # Let the user override the test.
4196 else
4197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198 for as_dir in $PATH
4200 IFS=$as_save_IFS
4201 test -z "$as_dir" && as_dir=.
4202 for ac_exec_ext in '' $ac_executable_extensions; do
4203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4204 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4205 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4206 break 2
4208 done
4209 done
4210 IFS=$as_save_IFS
4214 CC=$ac_cv_prog_CC
4215 if test -n "$CC"; then
4216 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4217 $as_echo "$CC" >&6; }
4218 else
4219 { $as_echo "$as_me:$LINENO: result: no" >&5
4220 $as_echo "no" >&6; }
4224 test -n "$CC" && break
4225 done
4227 if test -z "$CC"; then
4228 ac_ct_CC=$CC
4229 for ac_prog in cl.exe
4231 # Extract the first word of "$ac_prog", so it can be a program name with args.
4232 set dummy $ac_prog; ac_word=$2
4233 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4234 $as_echo_n "checking for $ac_word... " >&6; }
4235 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4236 $as_echo_n "(cached) " >&6
4237 else
4238 if test -n "$ac_ct_CC"; then
4239 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4240 else
4241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4242 for as_dir in $PATH
4244 IFS=$as_save_IFS
4245 test -z "$as_dir" && as_dir=.
4246 for ac_exec_ext in '' $ac_executable_extensions; do
4247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4248 ac_cv_prog_ac_ct_CC="$ac_prog"
4249 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4250 break 2
4252 done
4253 done
4254 IFS=$as_save_IFS
4258 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4259 if test -n "$ac_ct_CC"; then
4260 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4261 $as_echo "$ac_ct_CC" >&6; }
4262 else
4263 { $as_echo "$as_me:$LINENO: result: no" >&5
4264 $as_echo "no" >&6; }
4268 test -n "$ac_ct_CC" && break
4269 done
4271 if test "x$ac_ct_CC" = x; then
4272 CC=""
4273 else
4274 case $cross_compiling:$ac_tool_warned in
4275 yes:)
4276 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4277 whose name does not start with the host triplet. If you think this
4278 configuration is useful to you, please write to autoconf@gnu.org." >&5
4279 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4280 whose name does not start with the host triplet. If you think this
4281 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4282 ac_tool_warned=yes ;;
4283 esac
4284 CC=$ac_ct_CC
4291 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4292 See \`config.log' for more details." >&5
4293 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4294 See \`config.log' for more details." >&2;}
4295 { (exit 1); exit 1; }; }
4297 # Provide some information about the compiler.
4298 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4299 set X $ac_compile
4300 ac_compiler=$2
4301 { (ac_try="$ac_compiler --version >&5"
4302 case "(($ac_try" in
4303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4304 *) ac_try_echo=$ac_try;;
4305 esac
4306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4307 $as_echo "$ac_try_echo") >&5
4308 (eval "$ac_compiler --version >&5") 2>&5
4309 ac_status=$?
4310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); }
4312 { (ac_try="$ac_compiler -v >&5"
4313 case "(($ac_try" in
4314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4315 *) ac_try_echo=$ac_try;;
4316 esac
4317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4318 $as_echo "$ac_try_echo") >&5
4319 (eval "$ac_compiler -v >&5") 2>&5
4320 ac_status=$?
4321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322 (exit $ac_status); }
4323 { (ac_try="$ac_compiler -V >&5"
4324 case "(($ac_try" in
4325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4326 *) ac_try_echo=$ac_try;;
4327 esac
4328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4329 $as_echo "$ac_try_echo") >&5
4330 (eval "$ac_compiler -V >&5") 2>&5
4331 ac_status=$?
4332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); }
4335 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4336 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4337 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4338 $as_echo_n "(cached) " >&6
4339 else
4340 cat >conftest.$ac_ext <<_ACEOF
4341 /* confdefs.h. */
4342 _ACEOF
4343 cat confdefs.h >>conftest.$ac_ext
4344 cat >>conftest.$ac_ext <<_ACEOF
4345 /* end confdefs.h. */
4348 main ()
4350 #ifndef __GNUC__
4351 choke me
4352 #endif
4355 return 0;
4357 _ACEOF
4358 rm -f conftest.$ac_objext
4359 if { (ac_try="$ac_compile"
4360 case "(($ac_try" in
4361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4362 *) ac_try_echo=$ac_try;;
4363 esac
4364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4365 $as_echo "$ac_try_echo") >&5
4366 (eval "$ac_compile") 2>conftest.er1
4367 ac_status=$?
4368 grep -v '^ *+' conftest.er1 >conftest.err
4369 rm -f conftest.er1
4370 cat conftest.err >&5
4371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); } && {
4373 test -z "$ac_c_werror_flag" ||
4374 test ! -s conftest.err
4375 } && test -s conftest.$ac_objext; then
4376 ac_compiler_gnu=yes
4377 else
4378 $as_echo "$as_me: failed program was:" >&5
4379 sed 's/^/| /' conftest.$ac_ext >&5
4381 ac_compiler_gnu=no
4384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4385 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4388 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4389 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4390 if test $ac_compiler_gnu = yes; then
4391 GCC=yes
4392 else
4393 GCC=
4395 ac_test_CFLAGS=${CFLAGS+set}
4396 ac_save_CFLAGS=$CFLAGS
4397 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4398 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4399 if test "${ac_cv_prog_cc_g+set}" = set; then
4400 $as_echo_n "(cached) " >&6
4401 else
4402 ac_save_c_werror_flag=$ac_c_werror_flag
4403 ac_c_werror_flag=yes
4404 ac_cv_prog_cc_g=no
4405 CFLAGS="-g"
4406 cat >conftest.$ac_ext <<_ACEOF
4407 /* confdefs.h. */
4408 _ACEOF
4409 cat confdefs.h >>conftest.$ac_ext
4410 cat >>conftest.$ac_ext <<_ACEOF
4411 /* end confdefs.h. */
4414 main ()
4418 return 0;
4420 _ACEOF
4421 rm -f conftest.$ac_objext
4422 if { (ac_try="$ac_compile"
4423 case "(($ac_try" in
4424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4425 *) ac_try_echo=$ac_try;;
4426 esac
4427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4428 $as_echo "$ac_try_echo") >&5
4429 (eval "$ac_compile") 2>conftest.er1
4430 ac_status=$?
4431 grep -v '^ *+' conftest.er1 >conftest.err
4432 rm -f conftest.er1
4433 cat conftest.err >&5
4434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); } && {
4436 test -z "$ac_c_werror_flag" ||
4437 test ! -s conftest.err
4438 } && test -s conftest.$ac_objext; then
4439 ac_cv_prog_cc_g=yes
4440 else
4441 $as_echo "$as_me: failed program was:" >&5
4442 sed 's/^/| /' conftest.$ac_ext >&5
4444 CFLAGS=""
4445 cat >conftest.$ac_ext <<_ACEOF
4446 /* confdefs.h. */
4447 _ACEOF
4448 cat confdefs.h >>conftest.$ac_ext
4449 cat >>conftest.$ac_ext <<_ACEOF
4450 /* end confdefs.h. */
4453 main ()
4457 return 0;
4459 _ACEOF
4460 rm -f conftest.$ac_objext
4461 if { (ac_try="$ac_compile"
4462 case "(($ac_try" in
4463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4464 *) ac_try_echo=$ac_try;;
4465 esac
4466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4467 $as_echo "$ac_try_echo") >&5
4468 (eval "$ac_compile") 2>conftest.er1
4469 ac_status=$?
4470 grep -v '^ *+' conftest.er1 >conftest.err
4471 rm -f conftest.er1
4472 cat conftest.err >&5
4473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); } && {
4475 test -z "$ac_c_werror_flag" ||
4476 test ! -s conftest.err
4477 } && test -s conftest.$ac_objext; then
4479 else
4480 $as_echo "$as_me: failed program was:" >&5
4481 sed 's/^/| /' conftest.$ac_ext >&5
4483 ac_c_werror_flag=$ac_save_c_werror_flag
4484 CFLAGS="-g"
4485 cat >conftest.$ac_ext <<_ACEOF
4486 /* confdefs.h. */
4487 _ACEOF
4488 cat confdefs.h >>conftest.$ac_ext
4489 cat >>conftest.$ac_ext <<_ACEOF
4490 /* end confdefs.h. */
4493 main ()
4497 return 0;
4499 _ACEOF
4500 rm -f conftest.$ac_objext
4501 if { (ac_try="$ac_compile"
4502 case "(($ac_try" in
4503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4504 *) ac_try_echo=$ac_try;;
4505 esac
4506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4507 $as_echo "$ac_try_echo") >&5
4508 (eval "$ac_compile") 2>conftest.er1
4509 ac_status=$?
4510 grep -v '^ *+' conftest.er1 >conftest.err
4511 rm -f conftest.er1
4512 cat conftest.err >&5
4513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); } && {
4515 test -z "$ac_c_werror_flag" ||
4516 test ! -s conftest.err
4517 } && test -s conftest.$ac_objext; then
4518 ac_cv_prog_cc_g=yes
4519 else
4520 $as_echo "$as_me: failed program was:" >&5
4521 sed 's/^/| /' conftest.$ac_ext >&5
4526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4533 ac_c_werror_flag=$ac_save_c_werror_flag
4535 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4536 $as_echo "$ac_cv_prog_cc_g" >&6; }
4537 if test "$ac_test_CFLAGS" = set; then
4538 CFLAGS=$ac_save_CFLAGS
4539 elif test $ac_cv_prog_cc_g = yes; then
4540 if test "$GCC" = yes; then
4541 CFLAGS="-g -O2"
4542 else
4543 CFLAGS="-g"
4545 else
4546 if test "$GCC" = yes; then
4547 CFLAGS="-O2"
4548 else
4549 CFLAGS=
4552 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4553 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4554 if test "${ac_cv_prog_cc_c89+set}" = set; then
4555 $as_echo_n "(cached) " >&6
4556 else
4557 ac_cv_prog_cc_c89=no
4558 ac_save_CC=$CC
4559 cat >conftest.$ac_ext <<_ACEOF
4560 /* confdefs.h. */
4561 _ACEOF
4562 cat confdefs.h >>conftest.$ac_ext
4563 cat >>conftest.$ac_ext <<_ACEOF
4564 /* end confdefs.h. */
4565 #include <stdarg.h>
4566 #include <stdio.h>
4567 #include <sys/types.h>
4568 #include <sys/stat.h>
4569 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4570 struct buf { int x; };
4571 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4572 static char *e (p, i)
4573 char **p;
4574 int i;
4576 return p[i];
4578 static char *f (char * (*g) (char **, int), char **p, ...)
4580 char *s;
4581 va_list v;
4582 va_start (v,p);
4583 s = g (p, va_arg (v,int));
4584 va_end (v);
4585 return s;
4588 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4589 function prototypes and stuff, but not '\xHH' hex character constants.
4590 These don't provoke an error unfortunately, instead are silently treated
4591 as 'x'. The following induces an error, until -std is added to get
4592 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4593 array size at least. It's necessary to write '\x00'==0 to get something
4594 that's true only with -std. */
4595 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4597 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4598 inside strings and character constants. */
4599 #define FOO(x) 'x'
4600 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4602 int test (int i, double x);
4603 struct s1 {int (*f) (int a);};
4604 struct s2 {int (*f) (double a);};
4605 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4606 int argc;
4607 char **argv;
4609 main ()
4611 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4613 return 0;
4615 _ACEOF
4616 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4617 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4619 CC="$ac_save_CC $ac_arg"
4620 rm -f conftest.$ac_objext
4621 if { (ac_try="$ac_compile"
4622 case "(($ac_try" in
4623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4624 *) ac_try_echo=$ac_try;;
4625 esac
4626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4627 $as_echo "$ac_try_echo") >&5
4628 (eval "$ac_compile") 2>conftest.er1
4629 ac_status=$?
4630 grep -v '^ *+' conftest.er1 >conftest.err
4631 rm -f conftest.er1
4632 cat conftest.err >&5
4633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634 (exit $ac_status); } && {
4635 test -z "$ac_c_werror_flag" ||
4636 test ! -s conftest.err
4637 } && test -s conftest.$ac_objext; then
4638 ac_cv_prog_cc_c89=$ac_arg
4639 else
4640 $as_echo "$as_me: failed program was:" >&5
4641 sed 's/^/| /' conftest.$ac_ext >&5
4646 rm -f core conftest.err conftest.$ac_objext
4647 test "x$ac_cv_prog_cc_c89" != "xno" && break
4648 done
4649 rm -f conftest.$ac_ext
4650 CC=$ac_save_CC
4653 # AC_CACHE_VAL
4654 case "x$ac_cv_prog_cc_c89" in
4656 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4657 $as_echo "none needed" >&6; } ;;
4658 xno)
4659 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4660 $as_echo "unsupported" >&6; } ;;
4662 CC="$CC $ac_cv_prog_cc_c89"
4663 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4664 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4665 esac
4668 ac_ext=c
4669 ac_cpp='$CPP $CPPFLAGS'
4670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4674 depcc="$CC" am_compiler_list=
4676 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4677 $as_echo_n "checking dependency style of $depcc... " >&6; }
4678 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4679 $as_echo_n "(cached) " >&6
4680 else
4681 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4682 # We make a subdir and do the tests there. Otherwise we can end up
4683 # making bogus files that we don't know about and never remove. For
4684 # instance it was reported that on HP-UX the gcc test will end up
4685 # making a dummy file named `D' -- because `-MD' means `put the output
4686 # in D'.
4687 mkdir conftest.dir
4688 # Copy depcomp to subdir because otherwise we won't find it if we're
4689 # using a relative directory.
4690 cp "$am_depcomp" conftest.dir
4691 cd conftest.dir
4692 # We will build objects and dependencies in a subdirectory because
4693 # it helps to detect inapplicable dependency modes. For instance
4694 # both Tru64's cc and ICC support -MD to output dependencies as a
4695 # side effect of compilation, but ICC will put the dependencies in
4696 # the current directory while Tru64 will put them in the object
4697 # directory.
4698 mkdir sub
4700 am_cv_CC_dependencies_compiler_type=none
4701 if test "$am_compiler_list" = ""; then
4702 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4704 for depmode in $am_compiler_list; do
4705 # Setup a source with many dependencies, because some compilers
4706 # like to wrap large dependency lists on column 80 (with \), and
4707 # we should not choose a depcomp mode which is confused by this.
4709 # We need to recreate these files for each test, as the compiler may
4710 # overwrite some of them when testing with obscure command lines.
4711 # This happens at least with the AIX C compiler.
4712 : > sub/conftest.c
4713 for i in 1 2 3 4 5 6; do
4714 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4715 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4716 # Solaris 8's {/usr,}/bin/sh.
4717 touch sub/conftst$i.h
4718 done
4719 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4721 case $depmode in
4722 nosideeffect)
4723 # after this tag, mechanisms are not by side-effect, so they'll
4724 # only be used when explicitly requested
4725 if test "x$enable_dependency_tracking" = xyes; then
4726 continue
4727 else
4728 break
4731 none) break ;;
4732 esac
4733 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4734 # mode. It turns out that the SunPro C++ compiler does not properly
4735 # handle `-M -o', and we need to detect this.
4736 if depmode=$depmode \
4737 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4738 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4739 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4740 >/dev/null 2>conftest.err &&
4741 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4742 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4743 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4744 # icc doesn't choke on unknown options, it will just issue warnings
4745 # or remarks (even with -Werror). So we grep stderr for any message
4746 # that says an option was ignored or not supported.
4747 # When given -MP, icc 7.0 and 7.1 complain thusly:
4748 # icc: Command line warning: ignoring option '-M'; no argument required
4749 # The diagnosis changed in icc 8.0:
4750 # icc: Command line remark: option '-MP' not supported
4751 if (grep 'ignoring option' conftest.err ||
4752 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4753 am_cv_CC_dependencies_compiler_type=$depmode
4754 break
4757 done
4759 cd ..
4760 rm -rf conftest.dir
4761 else
4762 am_cv_CC_dependencies_compiler_type=none
4766 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4767 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4768 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4773 test "x$enable_dependency_tracking" != xno \
4774 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4775 am__fastdepCC_TRUE=
4776 am__fastdepCC_FALSE='#'
4777 else
4778 am__fastdepCC_TRUE='#'
4779 am__fastdepCC_FALSE=
4783 if test -n "$ac_tool_prefix"; then
4784 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4785 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4786 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4787 $as_echo_n "checking for $ac_word... " >&6; }
4788 if test "${ac_cv_prog_RANLIB+set}" = set; then
4789 $as_echo_n "(cached) " >&6
4790 else
4791 if test -n "$RANLIB"; then
4792 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4793 else
4794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4795 for as_dir in $PATH
4797 IFS=$as_save_IFS
4798 test -z "$as_dir" && as_dir=.
4799 for ac_exec_ext in '' $ac_executable_extensions; do
4800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4801 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4802 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4803 break 2
4805 done
4806 done
4807 IFS=$as_save_IFS
4811 RANLIB=$ac_cv_prog_RANLIB
4812 if test -n "$RANLIB"; then
4813 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
4814 $as_echo "$RANLIB" >&6; }
4815 else
4816 { $as_echo "$as_me:$LINENO: result: no" >&5
4817 $as_echo "no" >&6; }
4822 if test -z "$ac_cv_prog_RANLIB"; then
4823 ac_ct_RANLIB=$RANLIB
4824 # Extract the first word of "ranlib", so it can be a program name with args.
4825 set dummy ranlib; ac_word=$2
4826 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4827 $as_echo_n "checking for $ac_word... " >&6; }
4828 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4829 $as_echo_n "(cached) " >&6
4830 else
4831 if test -n "$ac_ct_RANLIB"; then
4832 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4833 else
4834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4835 for as_dir in $PATH
4837 IFS=$as_save_IFS
4838 test -z "$as_dir" && as_dir=.
4839 for ac_exec_ext in '' $ac_executable_extensions; do
4840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4841 ac_cv_prog_ac_ct_RANLIB="ranlib"
4842 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4843 break 2
4845 done
4846 done
4847 IFS=$as_save_IFS
4851 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4852 if test -n "$ac_ct_RANLIB"; then
4853 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4854 $as_echo "$ac_ct_RANLIB" >&6; }
4855 else
4856 { $as_echo "$as_me:$LINENO: result: no" >&5
4857 $as_echo "no" >&6; }
4860 if test "x$ac_ct_RANLIB" = x; then
4861 RANLIB=":"
4862 else
4863 case $cross_compiling:$ac_tool_warned in
4864 yes:)
4865 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4866 whose name does not start with the host triplet. If you think this
4867 configuration is useful to you, please write to autoconf@gnu.org." >&5
4868 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4869 whose name does not start with the host triplet. If you think this
4870 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4871 ac_tool_warned=yes ;;
4872 esac
4873 RANLIB=$ac_ct_RANLIB
4875 else
4876 RANLIB="$ac_cv_prog_RANLIB"
4879 # Check whether --enable-shared was given.
4880 if test "${enable_shared+set}" = set; then
4881 enableval=$enable_shared; p=${PACKAGE-default}
4882 case $enableval in
4883 yes) enable_shared=yes ;;
4884 no) enable_shared=no ;;
4886 enable_shared=no
4887 # Look at the argument we got. We use all the common list separators.
4888 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4889 for pkg in $enableval; do
4890 IFS="$lt_save_ifs"
4891 if test "X$pkg" = "X$p"; then
4892 enable_shared=yes
4894 done
4895 IFS="$lt_save_ifs"
4897 esac
4898 else
4899 enable_shared=yes
4903 # Check whether --enable-static was given.
4904 if test "${enable_static+set}" = set; then
4905 enableval=$enable_static; p=${PACKAGE-default}
4906 case $enableval in
4907 yes) enable_static=yes ;;
4908 no) enable_static=no ;;
4910 enable_static=no
4911 # Look at the argument we got. We use all the common list separators.
4912 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4913 for pkg in $enableval; do
4914 IFS="$lt_save_ifs"
4915 if test "X$pkg" = "X$p"; then
4916 enable_static=yes
4918 done
4919 IFS="$lt_save_ifs"
4921 esac
4922 else
4923 enable_static=yes
4927 # Check whether --enable-fast-install was given.
4928 if test "${enable_fast_install+set}" = set; then
4929 enableval=$enable_fast_install; p=${PACKAGE-default}
4930 case $enableval in
4931 yes) enable_fast_install=yes ;;
4932 no) enable_fast_install=no ;;
4934 enable_fast_install=no
4935 # Look at the argument we got. We use all the common list separators.
4936 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4937 for pkg in $enableval; do
4938 IFS="$lt_save_ifs"
4939 if test "X$pkg" = "X$p"; then
4940 enable_fast_install=yes
4942 done
4943 IFS="$lt_save_ifs"
4945 esac
4946 else
4947 enable_fast_install=yes
4951 # Make sure we can run config.sub.
4952 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4953 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4954 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4955 { (exit 1); exit 1; }; }
4957 { $as_echo "$as_me:$LINENO: checking build system type" >&5
4958 $as_echo_n "checking build system type... " >&6; }
4959 if test "${ac_cv_build+set}" = set; then
4960 $as_echo_n "(cached) " >&6
4961 else
4962 ac_build_alias=$build_alias
4963 test "x$ac_build_alias" = x &&
4964 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4965 test "x$ac_build_alias" = x &&
4966 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4967 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4968 { (exit 1); exit 1; }; }
4969 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4970 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4971 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4972 { (exit 1); exit 1; }; }
4975 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4976 $as_echo "$ac_cv_build" >&6; }
4977 case $ac_cv_build in
4978 *-*-*) ;;
4979 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4980 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
4981 { (exit 1); exit 1; }; };;
4982 esac
4983 build=$ac_cv_build
4984 ac_save_IFS=$IFS; IFS='-'
4985 set x $ac_cv_build
4986 shift
4987 build_cpu=$1
4988 build_vendor=$2
4989 shift; shift
4990 # Remember, the first character of IFS is used to create $*,
4991 # except with old shells:
4992 build_os=$*
4993 IFS=$ac_save_IFS
4994 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4997 { $as_echo "$as_me:$LINENO: checking host system type" >&5
4998 $as_echo_n "checking host system type... " >&6; }
4999 if test "${ac_cv_host+set}" = set; then
5000 $as_echo_n "(cached) " >&6
5001 else
5002 if test "x$host_alias" = x; then
5003 ac_cv_host=$ac_cv_build
5004 else
5005 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5006 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5007 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5008 { (exit 1); exit 1; }; }
5012 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5013 $as_echo "$ac_cv_host" >&6; }
5014 case $ac_cv_host in
5015 *-*-*) ;;
5016 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5017 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
5018 { (exit 1); exit 1; }; };;
5019 esac
5020 host=$ac_cv_host
5021 ac_save_IFS=$IFS; IFS='-'
5022 set x $ac_cv_host
5023 shift
5024 host_cpu=$1
5025 host_vendor=$2
5026 shift; shift
5027 # Remember, the first character of IFS is used to create $*,
5028 # except with old shells:
5029 host_os=$*
5030 IFS=$ac_save_IFS
5031 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5034 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5035 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5036 if test "${lt_cv_path_SED+set}" = set; then
5037 $as_echo_n "(cached) " >&6
5038 else
5039 # Loop through the user's path and test for sed and gsed.
5040 # Then use that list of sed's as ones to test for truncation.
5041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5042 for as_dir in $PATH
5044 IFS=$as_save_IFS
5045 test -z "$as_dir" && as_dir=.
5046 for lt_ac_prog in sed gsed; do
5047 for ac_exec_ext in '' $ac_executable_extensions; do
5048 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5049 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5051 done
5052 done
5053 done
5054 lt_ac_max=0
5055 lt_ac_count=0
5056 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5057 # along with /bin/sed that truncates output.
5058 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5059 test ! -f $lt_ac_sed && continue
5060 cat /dev/null > conftest.in
5061 lt_ac_count=0
5062 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5063 # Check for GNU sed and select it if it is found.
5064 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5065 lt_cv_path_SED=$lt_ac_sed
5066 break
5068 while true; do
5069 cat conftest.in conftest.in >conftest.tmp
5070 mv conftest.tmp conftest.in
5071 cp conftest.in conftest.nl
5072 echo >>conftest.nl
5073 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5074 cmp -s conftest.out conftest.nl || break
5075 # 10000 chars as input seems more than enough
5076 test $lt_ac_count -gt 10 && break
5077 lt_ac_count=`expr $lt_ac_count + 1`
5078 if test $lt_ac_count -gt $lt_ac_max; then
5079 lt_ac_max=$lt_ac_count
5080 lt_cv_path_SED=$lt_ac_sed
5082 done
5083 done
5087 SED=$lt_cv_path_SED
5088 { $as_echo "$as_me:$LINENO: result: $SED" >&5
5089 $as_echo "$SED" >&6; }
5091 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5092 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5093 if test "${ac_cv_path_GREP+set}" = set; then
5094 $as_echo_n "(cached) " >&6
5095 else
5096 if test -z "$GREP"; then
5097 ac_path_GREP_found=false
5098 # Loop through the user's path and test for each of PROGNAME-LIST
5099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5100 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5102 IFS=$as_save_IFS
5103 test -z "$as_dir" && as_dir=.
5104 for ac_prog in grep ggrep; do
5105 for ac_exec_ext in '' $ac_executable_extensions; do
5106 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5107 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5108 # Check for GNU ac_path_GREP and select it if it is found.
5109 # Check for GNU $ac_path_GREP
5110 case `"$ac_path_GREP" --version 2>&1` in
5111 *GNU*)
5112 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5114 ac_count=0
5115 $as_echo_n 0123456789 >"conftest.in"
5116 while :
5118 cat "conftest.in" "conftest.in" >"conftest.tmp"
5119 mv "conftest.tmp" "conftest.in"
5120 cp "conftest.in" "conftest.nl"
5121 $as_echo 'GREP' >> "conftest.nl"
5122 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5123 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5124 ac_count=`expr $ac_count + 1`
5125 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5126 # Best one so far, save it but keep looking for a better one
5127 ac_cv_path_GREP="$ac_path_GREP"
5128 ac_path_GREP_max=$ac_count
5130 # 10*(2^10) chars as input seems more than enough
5131 test $ac_count -gt 10 && break
5132 done
5133 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5134 esac
5136 $ac_path_GREP_found && break 3
5137 done
5138 done
5139 done
5140 IFS=$as_save_IFS
5141 if test -z "$ac_cv_path_GREP"; then
5142 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5143 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5144 { (exit 1); exit 1; }; }
5146 else
5147 ac_cv_path_GREP=$GREP
5151 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5152 $as_echo "$ac_cv_path_GREP" >&6; }
5153 GREP="$ac_cv_path_GREP"
5156 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5157 $as_echo_n "checking for egrep... " >&6; }
5158 if test "${ac_cv_path_EGREP+set}" = set; then
5159 $as_echo_n "(cached) " >&6
5160 else
5161 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5162 then ac_cv_path_EGREP="$GREP -E"
5163 else
5164 if test -z "$EGREP"; then
5165 ac_path_EGREP_found=false
5166 # Loop through the user's path and test for each of PROGNAME-LIST
5167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5168 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5170 IFS=$as_save_IFS
5171 test -z "$as_dir" && as_dir=.
5172 for ac_prog in egrep; do
5173 for ac_exec_ext in '' $ac_executable_extensions; do
5174 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5175 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5176 # Check for GNU ac_path_EGREP and select it if it is found.
5177 # Check for GNU $ac_path_EGREP
5178 case `"$ac_path_EGREP" --version 2>&1` in
5179 *GNU*)
5180 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5182 ac_count=0
5183 $as_echo_n 0123456789 >"conftest.in"
5184 while :
5186 cat "conftest.in" "conftest.in" >"conftest.tmp"
5187 mv "conftest.tmp" "conftest.in"
5188 cp "conftest.in" "conftest.nl"
5189 $as_echo 'EGREP' >> "conftest.nl"
5190 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5191 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5192 ac_count=`expr $ac_count + 1`
5193 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5194 # Best one so far, save it but keep looking for a better one
5195 ac_cv_path_EGREP="$ac_path_EGREP"
5196 ac_path_EGREP_max=$ac_count
5198 # 10*(2^10) chars as input seems more than enough
5199 test $ac_count -gt 10 && break
5200 done
5201 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5202 esac
5204 $ac_path_EGREP_found && break 3
5205 done
5206 done
5207 done
5208 IFS=$as_save_IFS
5209 if test -z "$ac_cv_path_EGREP"; then
5210 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5211 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5212 { (exit 1); exit 1; }; }
5214 else
5215 ac_cv_path_EGREP=$EGREP
5220 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5221 $as_echo "$ac_cv_path_EGREP" >&6; }
5222 EGREP="$ac_cv_path_EGREP"
5226 # Check whether --with-gnu-ld was given.
5227 if test "${with_gnu_ld+set}" = set; then
5228 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5229 else
5230 with_gnu_ld=no
5233 ac_prog=ld
5234 if test "$GCC" = yes; then
5235 # Check if gcc -print-prog-name=ld gives a path.
5236 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5237 $as_echo_n "checking for ld used by $CC... " >&6; }
5238 case $host in
5239 *-*-mingw*)
5240 # gcc leaves a trailing carriage return which upsets mingw
5241 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5243 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5244 esac
5245 case $ac_prog in
5246 # Accept absolute paths.
5247 [\\/]* | ?:[\\/]*)
5248 re_direlt='/[^/][^/]*/\.\./'
5249 # Canonicalize the pathname of ld
5250 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5251 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5252 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5253 done
5254 test -z "$LD" && LD="$ac_prog"
5257 # If it fails, then pretend we aren't using GCC.
5258 ac_prog=ld
5261 # If it is relative, then search for the first ld in PATH.
5262 with_gnu_ld=unknown
5264 esac
5265 elif test "$with_gnu_ld" = yes; then
5266 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5267 $as_echo_n "checking for GNU ld... " >&6; }
5268 else
5269 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5270 $as_echo_n "checking for non-GNU ld... " >&6; }
5272 if test "${lt_cv_path_LD+set}" = set; then
5273 $as_echo_n "(cached) " >&6
5274 else
5275 if test -z "$LD"; then
5276 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5277 for ac_dir in $PATH; do
5278 IFS="$lt_save_ifs"
5279 test -z "$ac_dir" && ac_dir=.
5280 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5281 lt_cv_path_LD="$ac_dir/$ac_prog"
5282 # Check to see if the program is GNU ld. I'd rather use --version,
5283 # but apparently some variants of GNU ld only accept -v.
5284 # Break only if it was the GNU/non-GNU ld that we prefer.
5285 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5286 *GNU* | *'with BFD'*)
5287 test "$with_gnu_ld" != no && break
5290 test "$with_gnu_ld" != yes && break
5292 esac
5294 done
5295 IFS="$lt_save_ifs"
5296 else
5297 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5301 LD="$lt_cv_path_LD"
5302 if test -n "$LD"; then
5303 { $as_echo "$as_me:$LINENO: result: $LD" >&5
5304 $as_echo "$LD" >&6; }
5305 else
5306 { $as_echo "$as_me:$LINENO: result: no" >&5
5307 $as_echo "no" >&6; }
5309 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5310 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5311 { (exit 1); exit 1; }; }
5312 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5313 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5314 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5315 $as_echo_n "(cached) " >&6
5316 else
5317 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5318 case `$LD -v 2>&1 </dev/null` in
5319 *GNU* | *'with BFD'*)
5320 lt_cv_prog_gnu_ld=yes
5323 lt_cv_prog_gnu_ld=no
5325 esac
5327 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5328 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5329 with_gnu_ld=$lt_cv_prog_gnu_ld
5332 { $as_echo "$as_me:$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:$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
5357 { $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5358 $as_echo_n "checking for BSD-compatible nm... " >&6; }
5359 if test "${lt_cv_path_NM+set}" = set; then
5360 $as_echo_n "(cached) " >&6
5361 else
5362 if test -n "$NM"; then
5363 # Let the user override the test.
5364 lt_cv_path_NM="$NM"
5365 else
5366 lt_nm_to_check="${ac_tool_prefix}nm"
5367 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5368 lt_nm_to_check="$lt_nm_to_check nm"
5370 for lt_tmp_nm in $lt_nm_to_check; do
5371 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5372 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5373 IFS="$lt_save_ifs"
5374 test -z "$ac_dir" && ac_dir=.
5375 tmp_nm="$ac_dir/$lt_tmp_nm"
5376 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5377 # Check to see if the nm accepts a BSD-compat flag.
5378 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5379 # nm: unknown option "B" ignored
5380 # Tru64's nm complains that /dev/null is an invalid object file
5381 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5382 */dev/null* | *'Invalid file or object type'*)
5383 lt_cv_path_NM="$tmp_nm -B"
5384 break
5387 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5388 */dev/null*)
5389 lt_cv_path_NM="$tmp_nm -p"
5390 break
5393 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5394 continue # so that we can try to find one that supports BSD flags
5396 esac
5398 esac
5400 done
5401 IFS="$lt_save_ifs"
5402 done
5403 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5406 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5407 $as_echo "$lt_cv_path_NM" >&6; }
5408 NM="$lt_cv_path_NM"
5410 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5411 $as_echo_n "checking whether ln -s works... " >&6; }
5412 LN_S=$as_ln_s
5413 if test "$LN_S" = "ln -s"; then
5414 { $as_echo "$as_me:$LINENO: result: yes" >&5
5415 $as_echo "yes" >&6; }
5416 else
5417 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5418 $as_echo "no, using $LN_S" >&6; }
5421 { $as_echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5422 $as_echo_n "checking how to recognise dependent libraries... " >&6; }
5423 if test "${lt_cv_deplibs_check_method+set}" = set; then
5424 $as_echo_n "(cached) " >&6
5425 else
5426 lt_cv_file_magic_cmd='$MAGIC_CMD'
5427 lt_cv_file_magic_test_file=
5428 lt_cv_deplibs_check_method='unknown'
5429 # Need to set the preceding variable on all platforms that support
5430 # interlibrary dependencies.
5431 # 'none' -- dependencies not supported.
5432 # `unknown' -- same as none, but documents that we really don't know.
5433 # 'pass_all' -- all dependencies passed with no checks.
5434 # 'test_compile' -- check by making test program.
5435 # 'file_magic [[regex]]' -- check by looking for files in library path
5436 # which responds to the $file_magic_cmd with a given extended regex.
5437 # If you have `file' or equivalent on your system and you're not sure
5438 # whether `pass_all' will *always* work, you probably want this one.
5440 case $host_os in
5441 aix4* | aix5*)
5442 lt_cv_deplibs_check_method=pass_all
5445 beos*)
5446 lt_cv_deplibs_check_method=pass_all
5449 bsdi[45]*)
5450 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5451 lt_cv_file_magic_cmd='/usr/bin/file -L'
5452 lt_cv_file_magic_test_file=/shlib/libc.so
5455 cygwin*)
5456 # func_win32_libid is a shell function defined in ltmain.sh
5457 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5458 lt_cv_file_magic_cmd='func_win32_libid'
5461 mingw* | pw32*)
5462 # Base MSYS/MinGW do not provide the 'file' command needed by
5463 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5464 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5465 lt_cv_file_magic_cmd='$OBJDUMP -f'
5468 darwin* | rhapsody*)
5469 lt_cv_deplibs_check_method=pass_all
5472 freebsd* | kfreebsd*-gnu | dragonfly*)
5473 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5474 case $host_cpu in
5475 i*86 )
5476 # Not sure whether the presence of OpenBSD here was a mistake.
5477 # Let's accept both of them until this is cleared up.
5478 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5479 lt_cv_file_magic_cmd=/usr/bin/file
5480 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5482 esac
5483 else
5484 lt_cv_deplibs_check_method=pass_all
5488 gnu*)
5489 lt_cv_deplibs_check_method=pass_all
5492 hpux10.20* | hpux11*)
5493 lt_cv_file_magic_cmd=/usr/bin/file
5494 case $host_cpu in
5495 ia64*)
5496 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5497 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5499 hppa*64*)
5500 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]'
5501 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5504 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5505 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5507 esac
5510 interix3*)
5511 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5512 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5515 irix5* | irix6* | nonstopux*)
5516 case $LD in
5517 *-32|*"-32 ") libmagic=32-bit;;
5518 *-n32|*"-n32 ") libmagic=N32;;
5519 *-64|*"-64 ") libmagic=64-bit;;
5520 *) libmagic=never-match;;
5521 esac
5522 lt_cv_deplibs_check_method=pass_all
5525 # This must be Linux ELF.
5526 linux*)
5527 lt_cv_deplibs_check_method=pass_all
5530 netbsd*)
5531 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5532 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5533 else
5534 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5538 newos6*)
5539 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5540 lt_cv_file_magic_cmd=/usr/bin/file
5541 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5544 nto-qnx*)
5545 lt_cv_deplibs_check_method=unknown
5548 openbsd*)
5549 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5550 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5551 else
5552 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5556 osf3* | osf4* | osf5*)
5557 lt_cv_deplibs_check_method=pass_all
5560 solaris*)
5561 lt_cv_deplibs_check_method=pass_all
5564 sysv4 | sysv4.3*)
5565 case $host_vendor in
5566 motorola)
5567 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]'
5568 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5570 ncr)
5571 lt_cv_deplibs_check_method=pass_all
5573 sequent)
5574 lt_cv_file_magic_cmd='/bin/file'
5575 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5577 sni)
5578 lt_cv_file_magic_cmd='/bin/file'
5579 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5580 lt_cv_file_magic_test_file=/lib/libc.so
5582 siemens)
5583 lt_cv_deplibs_check_method=pass_all
5586 lt_cv_deplibs_check_method=pass_all
5588 esac
5591 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5592 lt_cv_deplibs_check_method=pass_all
5594 esac
5597 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5598 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5599 file_magic_cmd=$lt_cv_file_magic_cmd
5600 deplibs_check_method=$lt_cv_deplibs_check_method
5601 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5606 # If no C compiler was specified, use CC.
5607 LTCC=${LTCC-"$CC"}
5609 # If no C compiler flags were specified, use CFLAGS.
5610 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5612 # Allow CC to be a program name with arguments.
5613 compiler=$CC
5615 # Check whether --enable-libtool-lock was given.
5616 if test "${enable_libtool_lock+set}" = set; then
5617 enableval=$enable_libtool_lock;
5620 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5622 # Some flags need to be propagated to the compiler or linker for good
5623 # libtool support.
5624 case $host in
5625 ia64-*-hpux*)
5626 # Find out which ABI we are using.
5627 echo 'int i;' > conftest.$ac_ext
5628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5629 (eval $ac_compile) 2>&5
5630 ac_status=$?
5631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); }; then
5633 case `/usr/bin/file conftest.$ac_objext` in
5634 *ELF-32*)
5635 HPUX_IA64_MODE="32"
5637 *ELF-64*)
5638 HPUX_IA64_MODE="64"
5640 esac
5642 rm -rf conftest*
5644 *-*-irix6*)
5645 # Find out which ABI we are using.
5646 echo '#line 5646 "configure"' > conftest.$ac_ext
5647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5648 (eval $ac_compile) 2>&5
5649 ac_status=$?
5650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); }; then
5652 if test "$lt_cv_prog_gnu_ld" = yes; then
5653 case `/usr/bin/file conftest.$ac_objext` in
5654 *32-bit*)
5655 LD="${LD-ld} -melf32bsmip"
5657 *N32*)
5658 LD="${LD-ld} -melf32bmipn32"
5660 *64-bit*)
5661 LD="${LD-ld} -melf64bmip"
5663 esac
5664 else
5665 case `/usr/bin/file conftest.$ac_objext` in
5666 *32-bit*)
5667 LD="${LD-ld} -32"
5669 *N32*)
5670 LD="${LD-ld} -n32"
5672 *64-bit*)
5673 LD="${LD-ld} -64"
5675 esac
5678 rm -rf conftest*
5681 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5682 # Find out which ABI we are using.
5683 echo 'int i;' > conftest.$ac_ext
5684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5685 (eval $ac_compile) 2>&5
5686 ac_status=$?
5687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); }; then
5689 case `/usr/bin/file conftest.o` in
5690 *32-bit*)
5691 case $host in
5692 x86_64-*linux*)
5693 LD="${LD-ld} -m elf_i386"
5695 ppc64-*linux*|powerpc64-*linux*)
5696 LD="${LD-ld} -m elf32ppclinux"
5698 s390x-*linux*)
5699 LD="${LD-ld} -m elf_s390"
5701 sparc64-*linux*)
5702 LD="${LD-ld} -m elf32_sparc"
5704 esac
5706 *64-bit*)
5707 case $host in
5708 x86_64-*linux*)
5709 LD="${LD-ld} -m elf_x86_64"
5711 ppc*-*linux*|powerpc*-*linux*)
5712 LD="${LD-ld} -m elf64ppc"
5714 s390*-*linux*)
5715 LD="${LD-ld} -m elf64_s390"
5717 sparc*-*linux*)
5718 LD="${LD-ld} -m elf64_sparc"
5720 esac
5722 esac
5724 rm -rf conftest*
5727 *-*-sco3.2v5*)
5728 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5729 SAVE_CFLAGS="$CFLAGS"
5730 CFLAGS="$CFLAGS -belf"
5731 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5732 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5733 if test "${lt_cv_cc_needs_belf+set}" = set; then
5734 $as_echo_n "(cached) " >&6
5735 else
5736 ac_ext=c
5737 ac_cpp='$CPP $CPPFLAGS'
5738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5742 cat >conftest.$ac_ext <<_ACEOF
5743 /* confdefs.h. */
5744 _ACEOF
5745 cat confdefs.h >>conftest.$ac_ext
5746 cat >>conftest.$ac_ext <<_ACEOF
5747 /* end confdefs.h. */
5750 main ()
5754 return 0;
5756 _ACEOF
5757 rm -f conftest.$ac_objext conftest$ac_exeext
5758 if { (ac_try="$ac_link"
5759 case "(($ac_try" in
5760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5761 *) ac_try_echo=$ac_try;;
5762 esac
5763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5764 $as_echo "$ac_try_echo") >&5
5765 (eval "$ac_link") 2>conftest.er1
5766 ac_status=$?
5767 grep -v '^ *+' conftest.er1 >conftest.err
5768 rm -f conftest.er1
5769 cat conftest.err >&5
5770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); } && {
5772 test -z "$ac_c_werror_flag" ||
5773 test ! -s conftest.err
5774 } && test -s conftest$ac_exeext && {
5775 test "$cross_compiling" = yes ||
5776 $as_test_x conftest$ac_exeext
5777 }; then
5778 lt_cv_cc_needs_belf=yes
5779 else
5780 $as_echo "$as_me: failed program was:" >&5
5781 sed 's/^/| /' conftest.$ac_ext >&5
5783 lt_cv_cc_needs_belf=no
5786 rm -rf conftest.dSYM
5787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5788 conftest$ac_exeext conftest.$ac_ext
5789 ac_ext=c
5790 ac_cpp='$CPP $CPPFLAGS'
5791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5796 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5797 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5798 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5799 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5800 CFLAGS="$SAVE_CFLAGS"
5803 sparc*-*solaris*)
5804 # Find out which ABI we are using.
5805 echo 'int i;' > conftest.$ac_ext
5806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5807 (eval $ac_compile) 2>&5
5808 ac_status=$?
5809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); }; then
5811 case `/usr/bin/file conftest.o` in
5812 *64-bit*)
5813 case $lt_cv_prog_gnu_ld in
5814 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5815 *) LD="${LD-ld} -64" ;;
5816 esac
5818 esac
5820 rm -rf conftest*
5824 esac
5826 need_locks="$enable_libtool_lock"
5829 ac_ext=c
5830 ac_cpp='$CPP $CPPFLAGS'
5831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5834 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5835 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5836 # On Suns, sometimes $CPP names a directory.
5837 if test -n "$CPP" && test -d "$CPP"; then
5838 CPP=
5840 if test -z "$CPP"; then
5841 if test "${ac_cv_prog_CPP+set}" = set; then
5842 $as_echo_n "(cached) " >&6
5843 else
5844 # Double quotes because CPP needs to be expanded
5845 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5847 ac_preproc_ok=false
5848 for ac_c_preproc_warn_flag in '' yes
5850 # Use a header file that comes with gcc, so configuring glibc
5851 # with a fresh cross-compiler works.
5852 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5853 # <limits.h> exists even on freestanding compilers.
5854 # On the NeXT, cc -E runs the code through the compiler's parser,
5855 # not just through cpp. "Syntax error" is here to catch this case.
5856 cat >conftest.$ac_ext <<_ACEOF
5857 /* confdefs.h. */
5858 _ACEOF
5859 cat confdefs.h >>conftest.$ac_ext
5860 cat >>conftest.$ac_ext <<_ACEOF
5861 /* end confdefs.h. */
5862 #ifdef __STDC__
5863 # include <limits.h>
5864 #else
5865 # include <assert.h>
5866 #endif
5867 Syntax error
5868 _ACEOF
5869 if { (ac_try="$ac_cpp conftest.$ac_ext"
5870 case "(($ac_try" in
5871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5872 *) ac_try_echo=$ac_try;;
5873 esac
5874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5875 $as_echo "$ac_try_echo") >&5
5876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5877 ac_status=$?
5878 grep -v '^ *+' conftest.er1 >conftest.err
5879 rm -f conftest.er1
5880 cat conftest.err >&5
5881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); } >/dev/null && {
5883 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5884 test ! -s conftest.err
5885 }; then
5887 else
5888 $as_echo "$as_me: failed program was:" >&5
5889 sed 's/^/| /' conftest.$ac_ext >&5
5891 # Broken: fails on valid input.
5892 continue
5895 rm -f conftest.err conftest.$ac_ext
5897 # OK, works on sane cases. Now check whether nonexistent headers
5898 # can be detected and how.
5899 cat >conftest.$ac_ext <<_ACEOF
5900 /* confdefs.h. */
5901 _ACEOF
5902 cat confdefs.h >>conftest.$ac_ext
5903 cat >>conftest.$ac_ext <<_ACEOF
5904 /* end confdefs.h. */
5905 #include <ac_nonexistent.h>
5906 _ACEOF
5907 if { (ac_try="$ac_cpp conftest.$ac_ext"
5908 case "(($ac_try" in
5909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5910 *) ac_try_echo=$ac_try;;
5911 esac
5912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5913 $as_echo "$ac_try_echo") >&5
5914 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5915 ac_status=$?
5916 grep -v '^ *+' conftest.er1 >conftest.err
5917 rm -f conftest.er1
5918 cat conftest.err >&5
5919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); } >/dev/null && {
5921 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5922 test ! -s conftest.err
5923 }; then
5924 # Broken: success on invalid input.
5925 continue
5926 else
5927 $as_echo "$as_me: failed program was:" >&5
5928 sed 's/^/| /' conftest.$ac_ext >&5
5930 # Passes both tests.
5931 ac_preproc_ok=:
5932 break
5935 rm -f conftest.err conftest.$ac_ext
5937 done
5938 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5939 rm -f conftest.err conftest.$ac_ext
5940 if $ac_preproc_ok; then
5941 break
5944 done
5945 ac_cv_prog_CPP=$CPP
5948 CPP=$ac_cv_prog_CPP
5949 else
5950 ac_cv_prog_CPP=$CPP
5952 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5953 $as_echo "$CPP" >&6; }
5954 ac_preproc_ok=false
5955 for ac_c_preproc_warn_flag in '' yes
5957 # Use a header file that comes with gcc, so configuring glibc
5958 # with a fresh cross-compiler works.
5959 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5960 # <limits.h> exists even on freestanding compilers.
5961 # On the NeXT, cc -E runs the code through the compiler's parser,
5962 # not just through cpp. "Syntax error" is here to catch this case.
5963 cat >conftest.$ac_ext <<_ACEOF
5964 /* confdefs.h. */
5965 _ACEOF
5966 cat confdefs.h >>conftest.$ac_ext
5967 cat >>conftest.$ac_ext <<_ACEOF
5968 /* end confdefs.h. */
5969 #ifdef __STDC__
5970 # include <limits.h>
5971 #else
5972 # include <assert.h>
5973 #endif
5974 Syntax error
5975 _ACEOF
5976 if { (ac_try="$ac_cpp conftest.$ac_ext"
5977 case "(($ac_try" in
5978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5979 *) ac_try_echo=$ac_try;;
5980 esac
5981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5982 $as_echo "$ac_try_echo") >&5
5983 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5984 ac_status=$?
5985 grep -v '^ *+' conftest.er1 >conftest.err
5986 rm -f conftest.er1
5987 cat conftest.err >&5
5988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989 (exit $ac_status); } >/dev/null && {
5990 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5991 test ! -s conftest.err
5992 }; then
5994 else
5995 $as_echo "$as_me: failed program was:" >&5
5996 sed 's/^/| /' conftest.$ac_ext >&5
5998 # Broken: fails on valid input.
5999 continue
6002 rm -f conftest.err conftest.$ac_ext
6004 # OK, works on sane cases. Now check whether nonexistent headers
6005 # can be detected and how.
6006 cat >conftest.$ac_ext <<_ACEOF
6007 /* confdefs.h. */
6008 _ACEOF
6009 cat confdefs.h >>conftest.$ac_ext
6010 cat >>conftest.$ac_ext <<_ACEOF
6011 /* end confdefs.h. */
6012 #include <ac_nonexistent.h>
6013 _ACEOF
6014 if { (ac_try="$ac_cpp conftest.$ac_ext"
6015 case "(($ac_try" in
6016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6017 *) ac_try_echo=$ac_try;;
6018 esac
6019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6020 $as_echo "$ac_try_echo") >&5
6021 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6022 ac_status=$?
6023 grep -v '^ *+' conftest.er1 >conftest.err
6024 rm -f conftest.er1
6025 cat conftest.err >&5
6026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); } >/dev/null && {
6028 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6029 test ! -s conftest.err
6030 }; then
6031 # Broken: success on invalid input.
6032 continue
6033 else
6034 $as_echo "$as_me: failed program was:" >&5
6035 sed 's/^/| /' conftest.$ac_ext >&5
6037 # Passes both tests.
6038 ac_preproc_ok=:
6039 break
6042 rm -f conftest.err conftest.$ac_ext
6044 done
6045 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6046 rm -f conftest.err conftest.$ac_ext
6047 if $ac_preproc_ok; then
6049 else
6050 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6051 See \`config.log' for more details." >&5
6052 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6053 See \`config.log' for more details." >&2;}
6054 { (exit 1); exit 1; }; }
6057 ac_ext=c
6058 ac_cpp='$CPP $CPPFLAGS'
6059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6064 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6065 $as_echo_n "checking for ANSI C header files... " >&6; }
6066 if test "${ac_cv_header_stdc+set}" = set; then
6067 $as_echo_n "(cached) " >&6
6068 else
6069 cat >conftest.$ac_ext <<_ACEOF
6070 /* confdefs.h. */
6071 _ACEOF
6072 cat confdefs.h >>conftest.$ac_ext
6073 cat >>conftest.$ac_ext <<_ACEOF
6074 /* end confdefs.h. */
6075 #include <stdlib.h>
6076 #include <stdarg.h>
6077 #include <string.h>
6078 #include <float.h>
6081 main ()
6085 return 0;
6087 _ACEOF
6088 rm -f conftest.$ac_objext
6089 if { (ac_try="$ac_compile"
6090 case "(($ac_try" in
6091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6092 *) ac_try_echo=$ac_try;;
6093 esac
6094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6095 $as_echo "$ac_try_echo") >&5
6096 (eval "$ac_compile") 2>conftest.er1
6097 ac_status=$?
6098 grep -v '^ *+' conftest.er1 >conftest.err
6099 rm -f conftest.er1
6100 cat conftest.err >&5
6101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102 (exit $ac_status); } && {
6103 test -z "$ac_c_werror_flag" ||
6104 test ! -s conftest.err
6105 } && test -s conftest.$ac_objext; then
6106 ac_cv_header_stdc=yes
6107 else
6108 $as_echo "$as_me: failed program was:" >&5
6109 sed 's/^/| /' conftest.$ac_ext >&5
6111 ac_cv_header_stdc=no
6114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6116 if test $ac_cv_header_stdc = yes; then
6117 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6118 cat >conftest.$ac_ext <<_ACEOF
6119 /* confdefs.h. */
6120 _ACEOF
6121 cat confdefs.h >>conftest.$ac_ext
6122 cat >>conftest.$ac_ext <<_ACEOF
6123 /* end confdefs.h. */
6124 #include <string.h>
6126 _ACEOF
6127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6128 $EGREP "memchr" >/dev/null 2>&1; then
6130 else
6131 ac_cv_header_stdc=no
6133 rm -f conftest*
6137 if test $ac_cv_header_stdc = yes; then
6138 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6139 cat >conftest.$ac_ext <<_ACEOF
6140 /* confdefs.h. */
6141 _ACEOF
6142 cat confdefs.h >>conftest.$ac_ext
6143 cat >>conftest.$ac_ext <<_ACEOF
6144 /* end confdefs.h. */
6145 #include <stdlib.h>
6147 _ACEOF
6148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6149 $EGREP "free" >/dev/null 2>&1; then
6151 else
6152 ac_cv_header_stdc=no
6154 rm -f conftest*
6158 if test $ac_cv_header_stdc = yes; then
6159 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6160 if test "$cross_compiling" = yes; then
6162 else
6163 cat >conftest.$ac_ext <<_ACEOF
6164 /* confdefs.h. */
6165 _ACEOF
6166 cat confdefs.h >>conftest.$ac_ext
6167 cat >>conftest.$ac_ext <<_ACEOF
6168 /* end confdefs.h. */
6169 #include <ctype.h>
6170 #include <stdlib.h>
6171 #if ((' ' & 0x0FF) == 0x020)
6172 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6173 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6174 #else
6175 # define ISLOWER(c) \
6176 (('a' <= (c) && (c) <= 'i') \
6177 || ('j' <= (c) && (c) <= 'r') \
6178 || ('s' <= (c) && (c) <= 'z'))
6179 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6180 #endif
6182 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6184 main ()
6186 int i;
6187 for (i = 0; i < 256; i++)
6188 if (XOR (islower (i), ISLOWER (i))
6189 || toupper (i) != TOUPPER (i))
6190 return 2;
6191 return 0;
6193 _ACEOF
6194 rm -f conftest$ac_exeext
6195 if { (ac_try="$ac_link"
6196 case "(($ac_try" in
6197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6198 *) ac_try_echo=$ac_try;;
6199 esac
6200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6201 $as_echo "$ac_try_echo") >&5
6202 (eval "$ac_link") 2>&5
6203 ac_status=$?
6204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6206 { (case "(($ac_try" in
6207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6208 *) ac_try_echo=$ac_try;;
6209 esac
6210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6211 $as_echo "$ac_try_echo") >&5
6212 (eval "$ac_try") 2>&5
6213 ac_status=$?
6214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); }; }; then
6217 else
6218 $as_echo "$as_me: program exited with status $ac_status" >&5
6219 $as_echo "$as_me: failed program was:" >&5
6220 sed 's/^/| /' conftest.$ac_ext >&5
6222 ( exit $ac_status )
6223 ac_cv_header_stdc=no
6225 rm -rf conftest.dSYM
6226 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6232 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6233 $as_echo "$ac_cv_header_stdc" >&6; }
6234 if test $ac_cv_header_stdc = yes; then
6236 cat >>confdefs.h <<\_ACEOF
6237 #define STDC_HEADERS 1
6238 _ACEOF
6242 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6252 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6253 inttypes.h stdint.h unistd.h
6255 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6256 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6257 $as_echo_n "checking for $ac_header... " >&6; }
6258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6259 $as_echo_n "(cached) " >&6
6260 else
6261 cat >conftest.$ac_ext <<_ACEOF
6262 /* confdefs.h. */
6263 _ACEOF
6264 cat confdefs.h >>conftest.$ac_ext
6265 cat >>conftest.$ac_ext <<_ACEOF
6266 /* end confdefs.h. */
6267 $ac_includes_default
6269 #include <$ac_header>
6270 _ACEOF
6271 rm -f conftest.$ac_objext
6272 if { (ac_try="$ac_compile"
6273 case "(($ac_try" in
6274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6275 *) ac_try_echo=$ac_try;;
6276 esac
6277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6278 $as_echo "$ac_try_echo") >&5
6279 (eval "$ac_compile") 2>conftest.er1
6280 ac_status=$?
6281 grep -v '^ *+' conftest.er1 >conftest.err
6282 rm -f conftest.er1
6283 cat conftest.err >&5
6284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); } && {
6286 test -z "$ac_c_werror_flag" ||
6287 test ! -s conftest.err
6288 } && test -s conftest.$ac_objext; then
6289 eval "$as_ac_Header=yes"
6290 else
6291 $as_echo "$as_me: failed program was:" >&5
6292 sed 's/^/| /' conftest.$ac_ext >&5
6294 eval "$as_ac_Header=no"
6297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6299 ac_res=`eval 'as_val=${'$as_ac_Header'}
6300 $as_echo "$as_val"'`
6301 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6302 $as_echo "$ac_res" >&6; }
6303 if test `eval 'as_val=${'$as_ac_Header'}
6304 $as_echo "$as_val"'` = yes; then
6305 cat >>confdefs.h <<_ACEOF
6306 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6307 _ACEOF
6311 done
6315 for ac_header in dlfcn.h
6317 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6319 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6320 $as_echo_n "checking for $ac_header... " >&6; }
6321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6322 $as_echo_n "(cached) " >&6
6324 ac_res=`eval 'as_val=${'$as_ac_Header'}
6325 $as_echo "$as_val"'`
6326 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6327 $as_echo "$ac_res" >&6; }
6328 else
6329 # Is the header compilable?
6330 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6331 $as_echo_n "checking $ac_header usability... " >&6; }
6332 cat >conftest.$ac_ext <<_ACEOF
6333 /* confdefs.h. */
6334 _ACEOF
6335 cat confdefs.h >>conftest.$ac_ext
6336 cat >>conftest.$ac_ext <<_ACEOF
6337 /* end confdefs.h. */
6338 $ac_includes_default
6339 #include <$ac_header>
6340 _ACEOF
6341 rm -f conftest.$ac_objext
6342 if { (ac_try="$ac_compile"
6343 case "(($ac_try" in
6344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6345 *) ac_try_echo=$ac_try;;
6346 esac
6347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6348 $as_echo "$ac_try_echo") >&5
6349 (eval "$ac_compile") 2>conftest.er1
6350 ac_status=$?
6351 grep -v '^ *+' conftest.er1 >conftest.err
6352 rm -f conftest.er1
6353 cat conftest.err >&5
6354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); } && {
6356 test -z "$ac_c_werror_flag" ||
6357 test ! -s conftest.err
6358 } && test -s conftest.$ac_objext; then
6359 ac_header_compiler=yes
6360 else
6361 $as_echo "$as_me: failed program was:" >&5
6362 sed 's/^/| /' conftest.$ac_ext >&5
6364 ac_header_compiler=no
6367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6368 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6369 $as_echo "$ac_header_compiler" >&6; }
6371 # Is the header present?
6372 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6373 $as_echo_n "checking $ac_header presence... " >&6; }
6374 cat >conftest.$ac_ext <<_ACEOF
6375 /* confdefs.h. */
6376 _ACEOF
6377 cat confdefs.h >>conftest.$ac_ext
6378 cat >>conftest.$ac_ext <<_ACEOF
6379 /* end confdefs.h. */
6380 #include <$ac_header>
6381 _ACEOF
6382 if { (ac_try="$ac_cpp conftest.$ac_ext"
6383 case "(($ac_try" in
6384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6385 *) ac_try_echo=$ac_try;;
6386 esac
6387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6388 $as_echo "$ac_try_echo") >&5
6389 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6390 ac_status=$?
6391 grep -v '^ *+' conftest.er1 >conftest.err
6392 rm -f conftest.er1
6393 cat conftest.err >&5
6394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); } >/dev/null && {
6396 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6397 test ! -s conftest.err
6398 }; then
6399 ac_header_preproc=yes
6400 else
6401 $as_echo "$as_me: failed program was:" >&5
6402 sed 's/^/| /' conftest.$ac_ext >&5
6404 ac_header_preproc=no
6407 rm -f conftest.err conftest.$ac_ext
6408 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6409 $as_echo "$ac_header_preproc" >&6; }
6411 # So? What about this header?
6412 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6413 yes:no: )
6414 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6415 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6416 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6417 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6418 ac_header_preproc=yes
6420 no:yes:* )
6421 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6422 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6423 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6424 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6425 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6426 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6427 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6428 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6429 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6430 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6431 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6432 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6433 ( cat <<\_ASBOX
6434 ## ------------------------------------ ##
6435 ## Report this to http://www.sqlite.org ##
6436 ## ------------------------------------ ##
6437 _ASBOX
6438 ) | sed "s/^/$as_me: WARNING: /" >&2
6440 esac
6441 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6442 $as_echo_n "checking for $ac_header... " >&6; }
6443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6444 $as_echo_n "(cached) " >&6
6445 else
6446 eval "$as_ac_Header=\$ac_header_preproc"
6448 ac_res=`eval 'as_val=${'$as_ac_Header'}
6449 $as_echo "$as_val"'`
6450 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6451 $as_echo "$ac_res" >&6; }
6454 if test `eval 'as_val=${'$as_ac_Header'}
6455 $as_echo "$as_val"'` = yes; then
6456 cat >>confdefs.h <<_ACEOF
6457 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6458 _ACEOF
6462 done
6464 ac_ext=cpp
6465 ac_cpp='$CXXCPP $CPPFLAGS'
6466 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6467 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6468 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6469 if test -z "$CXX"; then
6470 if test -n "$CCC"; then
6471 CXX=$CCC
6472 else
6473 if test -n "$ac_tool_prefix"; then
6474 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6476 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6477 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6478 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6479 $as_echo_n "checking for $ac_word... " >&6; }
6480 if test "${ac_cv_prog_CXX+set}" = set; then
6481 $as_echo_n "(cached) " >&6
6482 else
6483 if test -n "$CXX"; then
6484 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6485 else
6486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6487 for as_dir in $PATH
6489 IFS=$as_save_IFS
6490 test -z "$as_dir" && as_dir=.
6491 for ac_exec_ext in '' $ac_executable_extensions; do
6492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6493 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6494 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6495 break 2
6497 done
6498 done
6499 IFS=$as_save_IFS
6503 CXX=$ac_cv_prog_CXX
6504 if test -n "$CXX"; then
6505 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
6506 $as_echo "$CXX" >&6; }
6507 else
6508 { $as_echo "$as_me:$LINENO: result: no" >&5
6509 $as_echo "no" >&6; }
6513 test -n "$CXX" && break
6514 done
6516 if test -z "$CXX"; then
6517 ac_ct_CXX=$CXX
6518 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6520 # Extract the first word of "$ac_prog", so it can be a program name with args.
6521 set dummy $ac_prog; ac_word=$2
6522 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6523 $as_echo_n "checking for $ac_word... " >&6; }
6524 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6525 $as_echo_n "(cached) " >&6
6526 else
6527 if test -n "$ac_ct_CXX"; then
6528 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6529 else
6530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6531 for as_dir in $PATH
6533 IFS=$as_save_IFS
6534 test -z "$as_dir" && as_dir=.
6535 for ac_exec_ext in '' $ac_executable_extensions; do
6536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6537 ac_cv_prog_ac_ct_CXX="$ac_prog"
6538 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6539 break 2
6541 done
6542 done
6543 IFS=$as_save_IFS
6547 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6548 if test -n "$ac_ct_CXX"; then
6549 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6550 $as_echo "$ac_ct_CXX" >&6; }
6551 else
6552 { $as_echo "$as_me:$LINENO: result: no" >&5
6553 $as_echo "no" >&6; }
6557 test -n "$ac_ct_CXX" && break
6558 done
6560 if test "x$ac_ct_CXX" = x; then
6561 CXX="g++"
6562 else
6563 case $cross_compiling:$ac_tool_warned in
6564 yes:)
6565 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6566 whose name does not start with the host triplet. If you think this
6567 configuration is useful to you, please write to autoconf@gnu.org." >&5
6568 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6569 whose name does not start with the host triplet. If you think this
6570 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6571 ac_tool_warned=yes ;;
6572 esac
6573 CXX=$ac_ct_CXX
6579 # Provide some information about the compiler.
6580 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6581 set X $ac_compile
6582 ac_compiler=$2
6583 { (ac_try="$ac_compiler --version >&5"
6584 case "(($ac_try" in
6585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6586 *) ac_try_echo=$ac_try;;
6587 esac
6588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6589 $as_echo "$ac_try_echo") >&5
6590 (eval "$ac_compiler --version >&5") 2>&5
6591 ac_status=$?
6592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); }
6594 { (ac_try="$ac_compiler -v >&5"
6595 case "(($ac_try" in
6596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6597 *) ac_try_echo=$ac_try;;
6598 esac
6599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6600 $as_echo "$ac_try_echo") >&5
6601 (eval "$ac_compiler -v >&5") 2>&5
6602 ac_status=$?
6603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604 (exit $ac_status); }
6605 { (ac_try="$ac_compiler -V >&5"
6606 case "(($ac_try" in
6607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6608 *) ac_try_echo=$ac_try;;
6609 esac
6610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6611 $as_echo "$ac_try_echo") >&5
6612 (eval "$ac_compiler -V >&5") 2>&5
6613 ac_status=$?
6614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615 (exit $ac_status); }
6617 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6618 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6619 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6620 $as_echo_n "(cached) " >&6
6621 else
6622 cat >conftest.$ac_ext <<_ACEOF
6623 /* confdefs.h. */
6624 _ACEOF
6625 cat confdefs.h >>conftest.$ac_ext
6626 cat >>conftest.$ac_ext <<_ACEOF
6627 /* end confdefs.h. */
6630 main ()
6632 #ifndef __GNUC__
6633 choke me
6634 #endif
6637 return 0;
6639 _ACEOF
6640 rm -f conftest.$ac_objext
6641 if { (ac_try="$ac_compile"
6642 case "(($ac_try" in
6643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6644 *) ac_try_echo=$ac_try;;
6645 esac
6646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6647 $as_echo "$ac_try_echo") >&5
6648 (eval "$ac_compile") 2>conftest.er1
6649 ac_status=$?
6650 grep -v '^ *+' conftest.er1 >conftest.err
6651 rm -f conftest.er1
6652 cat conftest.err >&5
6653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); } && {
6655 test -z "$ac_cxx_werror_flag" ||
6656 test ! -s conftest.err
6657 } && test -s conftest.$ac_objext; then
6658 ac_compiler_gnu=yes
6659 else
6660 $as_echo "$as_me: failed program was:" >&5
6661 sed 's/^/| /' conftest.$ac_ext >&5
6663 ac_compiler_gnu=no
6666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6667 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6670 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6671 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6672 if test $ac_compiler_gnu = yes; then
6673 GXX=yes
6674 else
6675 GXX=
6677 ac_test_CXXFLAGS=${CXXFLAGS+set}
6678 ac_save_CXXFLAGS=$CXXFLAGS
6679 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6680 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6681 if test "${ac_cv_prog_cxx_g+set}" = set; then
6682 $as_echo_n "(cached) " >&6
6683 else
6684 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6685 ac_cxx_werror_flag=yes
6686 ac_cv_prog_cxx_g=no
6687 CXXFLAGS="-g"
6688 cat >conftest.$ac_ext <<_ACEOF
6689 /* confdefs.h. */
6690 _ACEOF
6691 cat confdefs.h >>conftest.$ac_ext
6692 cat >>conftest.$ac_ext <<_ACEOF
6693 /* end confdefs.h. */
6696 main ()
6700 return 0;
6702 _ACEOF
6703 rm -f conftest.$ac_objext
6704 if { (ac_try="$ac_compile"
6705 case "(($ac_try" in
6706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6707 *) ac_try_echo=$ac_try;;
6708 esac
6709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6710 $as_echo "$ac_try_echo") >&5
6711 (eval "$ac_compile") 2>conftest.er1
6712 ac_status=$?
6713 grep -v '^ *+' conftest.er1 >conftest.err
6714 rm -f conftest.er1
6715 cat conftest.err >&5
6716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717 (exit $ac_status); } && {
6718 test -z "$ac_cxx_werror_flag" ||
6719 test ! -s conftest.err
6720 } && test -s conftest.$ac_objext; then
6721 ac_cv_prog_cxx_g=yes
6722 else
6723 $as_echo "$as_me: failed program was:" >&5
6724 sed 's/^/| /' conftest.$ac_ext >&5
6726 CXXFLAGS=""
6727 cat >conftest.$ac_ext <<_ACEOF
6728 /* confdefs.h. */
6729 _ACEOF
6730 cat confdefs.h >>conftest.$ac_ext
6731 cat >>conftest.$ac_ext <<_ACEOF
6732 /* end confdefs.h. */
6735 main ()
6739 return 0;
6741 _ACEOF
6742 rm -f conftest.$ac_objext
6743 if { (ac_try="$ac_compile"
6744 case "(($ac_try" in
6745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6746 *) ac_try_echo=$ac_try;;
6747 esac
6748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6749 $as_echo "$ac_try_echo") >&5
6750 (eval "$ac_compile") 2>conftest.er1
6751 ac_status=$?
6752 grep -v '^ *+' conftest.er1 >conftest.err
6753 rm -f conftest.er1
6754 cat conftest.err >&5
6755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756 (exit $ac_status); } && {
6757 test -z "$ac_cxx_werror_flag" ||
6758 test ! -s conftest.err
6759 } && test -s conftest.$ac_objext; then
6761 else
6762 $as_echo "$as_me: failed program was:" >&5
6763 sed 's/^/| /' conftest.$ac_ext >&5
6765 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6766 CXXFLAGS="-g"
6767 cat >conftest.$ac_ext <<_ACEOF
6768 /* confdefs.h. */
6769 _ACEOF
6770 cat confdefs.h >>conftest.$ac_ext
6771 cat >>conftest.$ac_ext <<_ACEOF
6772 /* end confdefs.h. */
6775 main ()
6779 return 0;
6781 _ACEOF
6782 rm -f conftest.$ac_objext
6783 if { (ac_try="$ac_compile"
6784 case "(($ac_try" in
6785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6786 *) ac_try_echo=$ac_try;;
6787 esac
6788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6789 $as_echo "$ac_try_echo") >&5
6790 (eval "$ac_compile") 2>conftest.er1
6791 ac_status=$?
6792 grep -v '^ *+' conftest.er1 >conftest.err
6793 rm -f conftest.er1
6794 cat conftest.err >&5
6795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796 (exit $ac_status); } && {
6797 test -z "$ac_cxx_werror_flag" ||
6798 test ! -s conftest.err
6799 } && test -s conftest.$ac_objext; then
6800 ac_cv_prog_cxx_g=yes
6801 else
6802 $as_echo "$as_me: failed program was:" >&5
6803 sed 's/^/| /' conftest.$ac_ext >&5
6808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6815 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6817 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6818 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6819 if test "$ac_test_CXXFLAGS" = set; then
6820 CXXFLAGS=$ac_save_CXXFLAGS
6821 elif test $ac_cv_prog_cxx_g = yes; then
6822 if test "$GXX" = yes; then
6823 CXXFLAGS="-g -O2"
6824 else
6825 CXXFLAGS="-g"
6827 else
6828 if test "$GXX" = yes; then
6829 CXXFLAGS="-O2"
6830 else
6831 CXXFLAGS=
6834 ac_ext=cpp
6835 ac_cpp='$CXXCPP $CPPFLAGS'
6836 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6837 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6838 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6840 depcc="$CXX" am_compiler_list=
6842 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6843 $as_echo_n "checking dependency style of $depcc... " >&6; }
6844 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6845 $as_echo_n "(cached) " >&6
6846 else
6847 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6848 # We make a subdir and do the tests there. Otherwise we can end up
6849 # making bogus files that we don't know about and never remove. For
6850 # instance it was reported that on HP-UX the gcc test will end up
6851 # making a dummy file named `D' -- because `-MD' means `put the output
6852 # in D'.
6853 mkdir conftest.dir
6854 # Copy depcomp to subdir because otherwise we won't find it if we're
6855 # using a relative directory.
6856 cp "$am_depcomp" conftest.dir
6857 cd conftest.dir
6858 # We will build objects and dependencies in a subdirectory because
6859 # it helps to detect inapplicable dependency modes. For instance
6860 # both Tru64's cc and ICC support -MD to output dependencies as a
6861 # side effect of compilation, but ICC will put the dependencies in
6862 # the current directory while Tru64 will put them in the object
6863 # directory.
6864 mkdir sub
6866 am_cv_CXX_dependencies_compiler_type=none
6867 if test "$am_compiler_list" = ""; then
6868 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6870 for depmode in $am_compiler_list; do
6871 # Setup a source with many dependencies, because some compilers
6872 # like to wrap large dependency lists on column 80 (with \), and
6873 # we should not choose a depcomp mode which is confused by this.
6875 # We need to recreate these files for each test, as the compiler may
6876 # overwrite some of them when testing with obscure command lines.
6877 # This happens at least with the AIX C compiler.
6878 : > sub/conftest.c
6879 for i in 1 2 3 4 5 6; do
6880 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6881 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6882 # Solaris 8's {/usr,}/bin/sh.
6883 touch sub/conftst$i.h
6884 done
6885 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6887 case $depmode in
6888 nosideeffect)
6889 # after this tag, mechanisms are not by side-effect, so they'll
6890 # only be used when explicitly requested
6891 if test "x$enable_dependency_tracking" = xyes; then
6892 continue
6893 else
6894 break
6897 none) break ;;
6898 esac
6899 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6900 # mode. It turns out that the SunPro C++ compiler does not properly
6901 # handle `-M -o', and we need to detect this.
6902 if depmode=$depmode \
6903 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6904 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6905 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6906 >/dev/null 2>conftest.err &&
6907 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6908 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6909 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6910 # icc doesn't choke on unknown options, it will just issue warnings
6911 # or remarks (even with -Werror). So we grep stderr for any message
6912 # that says an option was ignored or not supported.
6913 # When given -MP, icc 7.0 and 7.1 complain thusly:
6914 # icc: Command line warning: ignoring option '-M'; no argument required
6915 # The diagnosis changed in icc 8.0:
6916 # icc: Command line remark: option '-MP' not supported
6917 if (grep 'ignoring option' conftest.err ||
6918 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6919 am_cv_CXX_dependencies_compiler_type=$depmode
6920 break
6923 done
6925 cd ..
6926 rm -rf conftest.dir
6927 else
6928 am_cv_CXX_dependencies_compiler_type=none
6932 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6933 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6934 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6939 test "x$enable_dependency_tracking" != xno \
6940 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6941 am__fastdepCXX_TRUE=
6942 am__fastdepCXX_FALSE='#'
6943 else
6944 am__fastdepCXX_TRUE='#'
6945 am__fastdepCXX_FALSE=
6951 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6952 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6953 (test "X$CXX" != "Xg++"))) ; then
6954 ac_ext=cpp
6955 ac_cpp='$CXXCPP $CPPFLAGS'
6956 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6957 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6958 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6959 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6960 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6961 if test -z "$CXXCPP"; then
6962 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6963 $as_echo_n "(cached) " >&6
6964 else
6965 # Double quotes because CXXCPP needs to be expanded
6966 for CXXCPP in "$CXX -E" "/lib/cpp"
6968 ac_preproc_ok=false
6969 for ac_cxx_preproc_warn_flag in '' yes
6971 # Use a header file that comes with gcc, so configuring glibc
6972 # with a fresh cross-compiler works.
6973 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6974 # <limits.h> exists even on freestanding compilers.
6975 # On the NeXT, cc -E runs the code through the compiler's parser,
6976 # not just through cpp. "Syntax error" is here to catch this case.
6977 cat >conftest.$ac_ext <<_ACEOF
6978 /* confdefs.h. */
6979 _ACEOF
6980 cat confdefs.h >>conftest.$ac_ext
6981 cat >>conftest.$ac_ext <<_ACEOF
6982 /* end confdefs.h. */
6983 #ifdef __STDC__
6984 # include <limits.h>
6985 #else
6986 # include <assert.h>
6987 #endif
6988 Syntax error
6989 _ACEOF
6990 if { (ac_try="$ac_cpp conftest.$ac_ext"
6991 case "(($ac_try" in
6992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6993 *) ac_try_echo=$ac_try;;
6994 esac
6995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6996 $as_echo "$ac_try_echo") >&5
6997 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6998 ac_status=$?
6999 grep -v '^ *+' conftest.er1 >conftest.err
7000 rm -f conftest.er1
7001 cat conftest.err >&5
7002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003 (exit $ac_status); } >/dev/null && {
7004 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7005 test ! -s conftest.err
7006 }; then
7008 else
7009 $as_echo "$as_me: failed program was:" >&5
7010 sed 's/^/| /' conftest.$ac_ext >&5
7012 # Broken: fails on valid input.
7013 continue
7016 rm -f conftest.err conftest.$ac_ext
7018 # OK, works on sane cases. Now check whether nonexistent headers
7019 # can be detected and how.
7020 cat >conftest.$ac_ext <<_ACEOF
7021 /* confdefs.h. */
7022 _ACEOF
7023 cat confdefs.h >>conftest.$ac_ext
7024 cat >>conftest.$ac_ext <<_ACEOF
7025 /* end confdefs.h. */
7026 #include <ac_nonexistent.h>
7027 _ACEOF
7028 if { (ac_try="$ac_cpp conftest.$ac_ext"
7029 case "(($ac_try" in
7030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7031 *) ac_try_echo=$ac_try;;
7032 esac
7033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7034 $as_echo "$ac_try_echo") >&5
7035 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7036 ac_status=$?
7037 grep -v '^ *+' conftest.er1 >conftest.err
7038 rm -f conftest.er1
7039 cat conftest.err >&5
7040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041 (exit $ac_status); } >/dev/null && {
7042 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7043 test ! -s conftest.err
7044 }; then
7045 # Broken: success on invalid input.
7046 continue
7047 else
7048 $as_echo "$as_me: failed program was:" >&5
7049 sed 's/^/| /' conftest.$ac_ext >&5
7051 # Passes both tests.
7052 ac_preproc_ok=:
7053 break
7056 rm -f conftest.err conftest.$ac_ext
7058 done
7059 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7060 rm -f conftest.err conftest.$ac_ext
7061 if $ac_preproc_ok; then
7062 break
7065 done
7066 ac_cv_prog_CXXCPP=$CXXCPP
7069 CXXCPP=$ac_cv_prog_CXXCPP
7070 else
7071 ac_cv_prog_CXXCPP=$CXXCPP
7073 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
7074 $as_echo "$CXXCPP" >&6; }
7075 ac_preproc_ok=false
7076 for ac_cxx_preproc_warn_flag in '' yes
7078 # Use a header file that comes with gcc, so configuring glibc
7079 # with a fresh cross-compiler works.
7080 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7081 # <limits.h> exists even on freestanding compilers.
7082 # On the NeXT, cc -E runs the code through the compiler's parser,
7083 # not just through cpp. "Syntax error" is here to catch this case.
7084 cat >conftest.$ac_ext <<_ACEOF
7085 /* confdefs.h. */
7086 _ACEOF
7087 cat confdefs.h >>conftest.$ac_ext
7088 cat >>conftest.$ac_ext <<_ACEOF
7089 /* end confdefs.h. */
7090 #ifdef __STDC__
7091 # include <limits.h>
7092 #else
7093 # include <assert.h>
7094 #endif
7095 Syntax error
7096 _ACEOF
7097 if { (ac_try="$ac_cpp conftest.$ac_ext"
7098 case "(($ac_try" in
7099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7100 *) ac_try_echo=$ac_try;;
7101 esac
7102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7103 $as_echo "$ac_try_echo") >&5
7104 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7105 ac_status=$?
7106 grep -v '^ *+' conftest.er1 >conftest.err
7107 rm -f conftest.er1
7108 cat conftest.err >&5
7109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110 (exit $ac_status); } >/dev/null && {
7111 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7112 test ! -s conftest.err
7113 }; then
7115 else
7116 $as_echo "$as_me: failed program was:" >&5
7117 sed 's/^/| /' conftest.$ac_ext >&5
7119 # Broken: fails on valid input.
7120 continue
7123 rm -f conftest.err conftest.$ac_ext
7125 # OK, works on sane cases. Now check whether nonexistent headers
7126 # can be detected and how.
7127 cat >conftest.$ac_ext <<_ACEOF
7128 /* confdefs.h. */
7129 _ACEOF
7130 cat confdefs.h >>conftest.$ac_ext
7131 cat >>conftest.$ac_ext <<_ACEOF
7132 /* end confdefs.h. */
7133 #include <ac_nonexistent.h>
7134 _ACEOF
7135 if { (ac_try="$ac_cpp conftest.$ac_ext"
7136 case "(($ac_try" in
7137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7138 *) ac_try_echo=$ac_try;;
7139 esac
7140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7141 $as_echo "$ac_try_echo") >&5
7142 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7143 ac_status=$?
7144 grep -v '^ *+' conftest.er1 >conftest.err
7145 rm -f conftest.er1
7146 cat conftest.err >&5
7147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148 (exit $ac_status); } >/dev/null && {
7149 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7150 test ! -s conftest.err
7151 }; then
7152 # Broken: success on invalid input.
7153 continue
7154 else
7155 $as_echo "$as_me: failed program was:" >&5
7156 sed 's/^/| /' conftest.$ac_ext >&5
7158 # Passes both tests.
7159 ac_preproc_ok=:
7160 break
7163 rm -f conftest.err conftest.$ac_ext
7165 done
7166 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7167 rm -f conftest.err conftest.$ac_ext
7168 if $ac_preproc_ok; then
7170 else
7171 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7172 See \`config.log' for more details." >&5
7173 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7174 See \`config.log' for more details." >&2;}
7175 { (exit 1); exit 1; }; }
7178 ac_ext=cpp
7179 ac_cpp='$CXXCPP $CPPFLAGS'
7180 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7181 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7182 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7187 ac_ext=f
7188 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7189 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7190 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7191 if test -n "$ac_tool_prefix"; then
7192 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
7194 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7195 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7196 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7197 $as_echo_n "checking for $ac_word... " >&6; }
7198 if test "${ac_cv_prog_F77+set}" = set; then
7199 $as_echo_n "(cached) " >&6
7200 else
7201 if test -n "$F77"; then
7202 ac_cv_prog_F77="$F77" # Let the user override the test.
7203 else
7204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7205 for as_dir in $PATH
7207 IFS=$as_save_IFS
7208 test -z "$as_dir" && as_dir=.
7209 for ac_exec_ext in '' $ac_executable_extensions; do
7210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7211 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7212 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7213 break 2
7215 done
7216 done
7217 IFS=$as_save_IFS
7221 F77=$ac_cv_prog_F77
7222 if test -n "$F77"; then
7223 { $as_echo "$as_me:$LINENO: result: $F77" >&5
7224 $as_echo "$F77" >&6; }
7225 else
7226 { $as_echo "$as_me:$LINENO: result: no" >&5
7227 $as_echo "no" >&6; }
7231 test -n "$F77" && break
7232 done
7234 if test -z "$F77"; then
7235 ac_ct_F77=$F77
7236 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
7238 # Extract the first word of "$ac_prog", so it can be a program name with args.
7239 set dummy $ac_prog; ac_word=$2
7240 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7241 $as_echo_n "checking for $ac_word... " >&6; }
7242 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7243 $as_echo_n "(cached) " >&6
7244 else
7245 if test -n "$ac_ct_F77"; then
7246 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7247 else
7248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7249 for as_dir in $PATH
7251 IFS=$as_save_IFS
7252 test -z "$as_dir" && as_dir=.
7253 for ac_exec_ext in '' $ac_executable_extensions; do
7254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7255 ac_cv_prog_ac_ct_F77="$ac_prog"
7256 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7257 break 2
7259 done
7260 done
7261 IFS=$as_save_IFS
7265 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7266 if test -n "$ac_ct_F77"; then
7267 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7268 $as_echo "$ac_ct_F77" >&6; }
7269 else
7270 { $as_echo "$as_me:$LINENO: result: no" >&5
7271 $as_echo "no" >&6; }
7275 test -n "$ac_ct_F77" && break
7276 done
7278 if test "x$ac_ct_F77" = x; then
7279 F77=""
7280 else
7281 case $cross_compiling:$ac_tool_warned in
7282 yes:)
7283 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7284 whose name does not start with the host triplet. If you think this
7285 configuration is useful to you, please write to autoconf@gnu.org." >&5
7286 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7287 whose name does not start with the host triplet. If you think this
7288 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7289 ac_tool_warned=yes ;;
7290 esac
7291 F77=$ac_ct_F77
7296 # Provide some information about the compiler.
7297 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7298 set X $ac_compile
7299 ac_compiler=$2
7300 { (ac_try="$ac_compiler --version >&5"
7301 case "(($ac_try" in
7302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7303 *) ac_try_echo=$ac_try;;
7304 esac
7305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7306 $as_echo "$ac_try_echo") >&5
7307 (eval "$ac_compiler --version >&5") 2>&5
7308 ac_status=$?
7309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); }
7311 { (ac_try="$ac_compiler -v >&5"
7312 case "(($ac_try" in
7313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7314 *) ac_try_echo=$ac_try;;
7315 esac
7316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7317 $as_echo "$ac_try_echo") >&5
7318 (eval "$ac_compiler -v >&5") 2>&5
7319 ac_status=$?
7320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321 (exit $ac_status); }
7322 { (ac_try="$ac_compiler -V >&5"
7323 case "(($ac_try" in
7324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7325 *) ac_try_echo=$ac_try;;
7326 esac
7327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7328 $as_echo "$ac_try_echo") >&5
7329 (eval "$ac_compiler -V >&5") 2>&5
7330 ac_status=$?
7331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332 (exit $ac_status); }
7333 rm -f a.out
7335 # If we don't use `.F' as extension, the preprocessor is not run on the
7336 # input file. (Note that this only needs to work for GNU compilers.)
7337 ac_save_ext=$ac_ext
7338 ac_ext=F
7339 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7340 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
7341 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7342 $as_echo_n "(cached) " >&6
7343 else
7344 cat >conftest.$ac_ext <<_ACEOF
7345 program main
7346 #ifndef __GNUC__
7347 choke me
7348 #endif
7351 _ACEOF
7352 rm -f conftest.$ac_objext
7353 if { (ac_try="$ac_compile"
7354 case "(($ac_try" in
7355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7356 *) ac_try_echo=$ac_try;;
7357 esac
7358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7359 $as_echo "$ac_try_echo") >&5
7360 (eval "$ac_compile") 2>conftest.er1
7361 ac_status=$?
7362 grep -v '^ *+' conftest.er1 >conftest.err
7363 rm -f conftest.er1
7364 cat conftest.err >&5
7365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366 (exit $ac_status); } && {
7367 test -z "$ac_f77_werror_flag" ||
7368 test ! -s conftest.err
7369 } && test -s conftest.$ac_objext; then
7370 ac_compiler_gnu=yes
7371 else
7372 $as_echo "$as_me: failed program was:" >&5
7373 sed 's/^/| /' conftest.$ac_ext >&5
7375 ac_compiler_gnu=no
7378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7379 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7382 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7383 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
7384 ac_ext=$ac_save_ext
7385 ac_test_FFLAGS=${FFLAGS+set}
7386 ac_save_FFLAGS=$FFLAGS
7387 FFLAGS=
7388 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7389 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
7390 if test "${ac_cv_prog_f77_g+set}" = set; then
7391 $as_echo_n "(cached) " >&6
7392 else
7393 FFLAGS=-g
7394 cat >conftest.$ac_ext <<_ACEOF
7395 program main
7398 _ACEOF
7399 rm -f conftest.$ac_objext
7400 if { (ac_try="$ac_compile"
7401 case "(($ac_try" in
7402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7403 *) ac_try_echo=$ac_try;;
7404 esac
7405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7406 $as_echo "$ac_try_echo") >&5
7407 (eval "$ac_compile") 2>conftest.er1
7408 ac_status=$?
7409 grep -v '^ *+' conftest.er1 >conftest.err
7410 rm -f conftest.er1
7411 cat conftest.err >&5
7412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); } && {
7414 test -z "$ac_f77_werror_flag" ||
7415 test ! -s conftest.err
7416 } && test -s conftest.$ac_objext; then
7417 ac_cv_prog_f77_g=yes
7418 else
7419 $as_echo "$as_me: failed program was:" >&5
7420 sed 's/^/| /' conftest.$ac_ext >&5
7422 ac_cv_prog_f77_g=no
7425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7428 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7429 $as_echo "$ac_cv_prog_f77_g" >&6; }
7430 if test "$ac_test_FFLAGS" = set; then
7431 FFLAGS=$ac_save_FFLAGS
7432 elif test $ac_cv_prog_f77_g = yes; then
7433 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7434 FFLAGS="-g -O2"
7435 else
7436 FFLAGS="-g"
7438 else
7439 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7440 FFLAGS="-O2"
7441 else
7442 FFLAGS=
7446 if test $ac_compiler_gnu = yes; then
7447 G77=yes
7448 else
7449 G77=
7451 ac_ext=c
7452 ac_cpp='$CPP $CPPFLAGS'
7453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7459 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7461 # find the maximum length of command line arguments
7462 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7463 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7464 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7465 $as_echo_n "(cached) " >&6
7466 else
7468 teststring="ABCD"
7470 case $build_os in
7471 msdosdjgpp*)
7472 # On DJGPP, this test can blow up pretty badly due to problems in libc
7473 # (any single argument exceeding 2000 bytes causes a buffer overrun
7474 # during glob expansion). Even if it were fixed, the result of this
7475 # check would be larger than it should be.
7476 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7479 gnu*)
7480 # Under GNU Hurd, this test is not required because there is
7481 # no limit to the length of command line arguments.
7482 # Libtool will interpret -1 as no limit whatsoever
7483 lt_cv_sys_max_cmd_len=-1;
7486 cygwin* | mingw*)
7487 # On Win9x/ME, this test blows up -- it succeeds, but takes
7488 # about 5 minutes as the teststring grows exponentially.
7489 # Worse, since 9x/ME are not pre-emptively multitasking,
7490 # you end up with a "frozen" computer, even though with patience
7491 # the test eventually succeeds (with a max line length of 256k).
7492 # Instead, let's just punt: use the minimum linelength reported by
7493 # all of the supported platforms: 8192 (on NT/2K/XP).
7494 lt_cv_sys_max_cmd_len=8192;
7497 amigaos*)
7498 # On AmigaOS with pdksh, this test takes hours, literally.
7499 # So we just punt and use a minimum line length of 8192.
7500 lt_cv_sys_max_cmd_len=8192;
7503 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7504 # This has been around since 386BSD, at least. Likely further.
7505 if test -x /sbin/sysctl; then
7506 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7507 elif test -x /usr/sbin/sysctl; then
7508 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7509 else
7510 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7512 # And add a safety zone
7513 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7514 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7517 interix*)
7518 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7519 lt_cv_sys_max_cmd_len=196608
7522 osf*)
7523 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7524 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7525 # nice to cause kernel panics so lets avoid the loop below.
7526 # First set a reasonable default.
7527 lt_cv_sys_max_cmd_len=16384
7529 if test -x /sbin/sysconfig; then
7530 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7531 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7532 esac
7535 sco3.2v5*)
7536 lt_cv_sys_max_cmd_len=102400
7538 sysv5* | sco5v6* | sysv4.2uw2*)
7539 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7540 if test -n "$kargmax"; then
7541 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7542 else
7543 lt_cv_sys_max_cmd_len=32768
7547 # If test is not a shell built-in, we'll probably end up computing a
7548 # maximum length that is only half of the actual maximum length, but
7549 # we can't tell.
7550 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7551 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7552 = "XX$teststring") >/dev/null 2>&1 &&
7553 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7554 lt_cv_sys_max_cmd_len=$new_result &&
7555 test $i != 17 # 1/2 MB should be enough
7557 i=`expr $i + 1`
7558 teststring=$teststring$teststring
7559 done
7560 teststring=
7561 # Add a significant safety factor because C++ compilers can tack on massive
7562 # amounts of additional arguments before passing them to the linker.
7563 # It appears as though 1/2 is a usable value.
7564 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7566 esac
7570 if test -n $lt_cv_sys_max_cmd_len ; then
7571 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7572 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7573 else
7574 { $as_echo "$as_me:$LINENO: result: none" >&5
7575 $as_echo "none" >&6; }
7581 # Check for command to grab the raw symbol name followed by C symbol from nm.
7582 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7583 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7584 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7585 $as_echo_n "(cached) " >&6
7586 else
7588 # These are sane defaults that work on at least a few old systems.
7589 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7591 # Character class describing NM global symbol codes.
7592 symcode='[BCDEGRST]'
7594 # Regexp to match symbols that can be accessed directly from C.
7595 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7597 # Transform an extracted symbol line into a proper C declaration
7598 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7600 # Transform an extracted symbol line into symbol name and symbol address
7601 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
7603 # Define system-specific variables.
7604 case $host_os in
7605 aix*)
7606 symcode='[BCDT]'
7608 cygwin* | mingw* | pw32*)
7609 symcode='[ABCDGISTW]'
7611 hpux*) # Its linker distinguishes data from code symbols
7612 if test "$host_cpu" = ia64; then
7613 symcode='[ABCDEGRST]'
7615 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7616 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
7618 linux*)
7619 if test "$host_cpu" = ia64; then
7620 symcode='[ABCDGIRSTW]'
7621 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7622 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
7625 irix* | nonstopux*)
7626 symcode='[BCDEGRST]'
7628 osf*)
7629 symcode='[BCDEGQRST]'
7631 solaris*)
7632 symcode='[BDRT]'
7634 sco3.2v5*)
7635 symcode='[DT]'
7637 sysv4.2uw2*)
7638 symcode='[DT]'
7640 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7641 symcode='[ABDT]'
7643 sysv4)
7644 symcode='[DFNSTU]'
7646 esac
7648 # Handle CRLF in mingw tool chain
7649 opt_cr=
7650 case $build_os in
7651 mingw*)
7652 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7654 esac
7656 # If we're using GNU nm, then use its standard symbol codes.
7657 case `$NM -V 2>&1` in
7658 *GNU* | *'with BFD'*)
7659 symcode='[ABCDGIRSTW]' ;;
7660 esac
7662 # Try without a prefix undercore, then with it.
7663 for ac_symprfx in "" "_"; do
7665 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7666 symxfrm="\\1 $ac_symprfx\\2 \\2"
7668 # Write the raw and C identifiers.
7669 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7671 # Check to see that the pipe works correctly.
7672 pipe_works=no
7674 rm -f conftest*
7675 cat > conftest.$ac_ext <<EOF
7676 #ifdef __cplusplus
7677 extern "C" {
7678 #endif
7679 char nm_test_var;
7680 void nm_test_func(){}
7681 #ifdef __cplusplus
7683 #endif
7684 int main(){nm_test_var='a';nm_test_func();return(0);}
7687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7688 (eval $ac_compile) 2>&5
7689 ac_status=$?
7690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691 (exit $ac_status); }; then
7692 # Now try to grab the symbols.
7693 nlist=conftest.nm
7694 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7695 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7696 ac_status=$?
7697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698 (exit $ac_status); } && test -s "$nlist"; then
7699 # Try sorting and uniquifying the output.
7700 if sort "$nlist" | uniq > "$nlist"T; then
7701 mv -f "$nlist"T "$nlist"
7702 else
7703 rm -f "$nlist"T
7706 # Make sure that we snagged all the symbols we need.
7707 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7708 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7709 cat <<EOF > conftest.$ac_ext
7710 #ifdef __cplusplus
7711 extern "C" {
7712 #endif
7715 # Now generate the symbol file.
7716 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7718 cat <<EOF >> conftest.$ac_ext
7719 #if defined (__STDC__) && __STDC__
7720 # define lt_ptr_t void *
7721 #else
7722 # define lt_ptr_t char *
7723 # define const
7724 #endif
7726 /* The mapping between symbol names and symbols. */
7727 const struct {
7728 const char *name;
7729 lt_ptr_t address;
7731 lt_preloaded_symbols[] =
7734 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7735 cat <<\EOF >> conftest.$ac_ext
7736 {0, (lt_ptr_t) 0}
7739 #ifdef __cplusplus
7741 #endif
7743 # Now try linking the two files.
7744 mv conftest.$ac_objext conftstm.$ac_objext
7745 lt_save_LIBS="$LIBS"
7746 lt_save_CFLAGS="$CFLAGS"
7747 LIBS="conftstm.$ac_objext"
7748 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7750 (eval $ac_link) 2>&5
7751 ac_status=$?
7752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7753 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7754 pipe_works=yes
7756 LIBS="$lt_save_LIBS"
7757 CFLAGS="$lt_save_CFLAGS"
7758 else
7759 echo "cannot find nm_test_func in $nlist" >&5
7761 else
7762 echo "cannot find nm_test_var in $nlist" >&5
7764 else
7765 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7767 else
7768 echo "$progname: failed program was:" >&5
7769 cat conftest.$ac_ext >&5
7771 rm -f conftest* conftst*
7773 # Do not use the global_symbol_pipe unless it works.
7774 if test "$pipe_works" = yes; then
7775 break
7776 else
7777 lt_cv_sys_global_symbol_pipe=
7779 done
7783 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7784 lt_cv_sys_global_symbol_to_cdecl=
7786 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7787 { $as_echo "$as_me:$LINENO: result: failed" >&5
7788 $as_echo "failed" >&6; }
7789 else
7790 { $as_echo "$as_me:$LINENO: result: ok" >&5
7791 $as_echo "ok" >&6; }
7794 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7795 $as_echo_n "checking for objdir... " >&6; }
7796 if test "${lt_cv_objdir+set}" = set; then
7797 $as_echo_n "(cached) " >&6
7798 else
7799 rm -f .libs 2>/dev/null
7800 mkdir .libs 2>/dev/null
7801 if test -d .libs; then
7802 lt_cv_objdir=.libs
7803 else
7804 # MS-DOS does not allow filenames that begin with a dot.
7805 lt_cv_objdir=_libs
7807 rmdir .libs 2>/dev/null
7809 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7810 $as_echo "$lt_cv_objdir" >&6; }
7811 objdir=$lt_cv_objdir
7817 case $host_os in
7818 aix3*)
7819 # AIX sometimes has problems with the GCC collect2 program. For some
7820 # reason, if we set the COLLECT_NAMES environment variable, the problems
7821 # vanish in a puff of smoke.
7822 if test "X${COLLECT_NAMES+set}" != Xset; then
7823 COLLECT_NAMES=
7824 export COLLECT_NAMES
7827 esac
7829 # Sed substitution that helps us do robust quoting. It backslashifies
7830 # metacharacters that are still active within double-quoted strings.
7831 Xsed='sed -e 1s/^X//'
7832 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7834 # Same as above, but do not quote variable references.
7835 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7837 # Sed substitution to delay expansion of an escaped shell variable in a
7838 # double_quote_subst'ed string.
7839 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7841 # Sed substitution to avoid accidental globbing in evaled expressions
7842 no_glob_subst='s/\*/\\\*/g'
7844 # Constants:
7845 rm="rm -f"
7847 # Global variables:
7848 default_ofile=libtool
7849 can_build_shared=yes
7851 # All known linkers require a `.a' archive for static linking (except MSVC,
7852 # which needs '.lib').
7853 libext=a
7854 ltmain="$ac_aux_dir/ltmain.sh"
7855 ofile="$default_ofile"
7856 with_gnu_ld="$lt_cv_prog_gnu_ld"
7858 if test -n "$ac_tool_prefix"; then
7859 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7860 set dummy ${ac_tool_prefix}ar; ac_word=$2
7861 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7862 $as_echo_n "checking for $ac_word... " >&6; }
7863 if test "${ac_cv_prog_AR+set}" = set; then
7864 $as_echo_n "(cached) " >&6
7865 else
7866 if test -n "$AR"; then
7867 ac_cv_prog_AR="$AR" # Let the user override the test.
7868 else
7869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7870 for as_dir in $PATH
7872 IFS=$as_save_IFS
7873 test -z "$as_dir" && as_dir=.
7874 for ac_exec_ext in '' $ac_executable_extensions; do
7875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7876 ac_cv_prog_AR="${ac_tool_prefix}ar"
7877 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7878 break 2
7880 done
7881 done
7882 IFS=$as_save_IFS
7886 AR=$ac_cv_prog_AR
7887 if test -n "$AR"; then
7888 { $as_echo "$as_me:$LINENO: result: $AR" >&5
7889 $as_echo "$AR" >&6; }
7890 else
7891 { $as_echo "$as_me:$LINENO: result: no" >&5
7892 $as_echo "no" >&6; }
7897 if test -z "$ac_cv_prog_AR"; then
7898 ac_ct_AR=$AR
7899 # Extract the first word of "ar", so it can be a program name with args.
7900 set dummy ar; ac_word=$2
7901 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7902 $as_echo_n "checking for $ac_word... " >&6; }
7903 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7904 $as_echo_n "(cached) " >&6
7905 else
7906 if test -n "$ac_ct_AR"; then
7907 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7908 else
7909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7910 for as_dir in $PATH
7912 IFS=$as_save_IFS
7913 test -z "$as_dir" && as_dir=.
7914 for ac_exec_ext in '' $ac_executable_extensions; do
7915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7916 ac_cv_prog_ac_ct_AR="ar"
7917 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7918 break 2
7920 done
7921 done
7922 IFS=$as_save_IFS
7926 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7927 if test -n "$ac_ct_AR"; then
7928 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7929 $as_echo "$ac_ct_AR" >&6; }
7930 else
7931 { $as_echo "$as_me:$LINENO: result: no" >&5
7932 $as_echo "no" >&6; }
7935 if test "x$ac_ct_AR" = x; then
7936 AR="false"
7937 else
7938 case $cross_compiling:$ac_tool_warned in
7939 yes:)
7940 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7941 whose name does not start with the host triplet. If you think this
7942 configuration is useful to you, please write to autoconf@gnu.org." >&5
7943 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7944 whose name does not start with the host triplet. If you think this
7945 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7946 ac_tool_warned=yes ;;
7947 esac
7948 AR=$ac_ct_AR
7950 else
7951 AR="$ac_cv_prog_AR"
7954 if test -n "$ac_tool_prefix"; then
7955 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7956 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7957 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7958 $as_echo_n "checking for $ac_word... " >&6; }
7959 if test "${ac_cv_prog_RANLIB+set}" = set; then
7960 $as_echo_n "(cached) " >&6
7961 else
7962 if test -n "$RANLIB"; then
7963 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7964 else
7965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7966 for as_dir in $PATH
7968 IFS=$as_save_IFS
7969 test -z "$as_dir" && as_dir=.
7970 for ac_exec_ext in '' $ac_executable_extensions; do
7971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7972 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7973 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7974 break 2
7976 done
7977 done
7978 IFS=$as_save_IFS
7982 RANLIB=$ac_cv_prog_RANLIB
7983 if test -n "$RANLIB"; then
7984 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
7985 $as_echo "$RANLIB" >&6; }
7986 else
7987 { $as_echo "$as_me:$LINENO: result: no" >&5
7988 $as_echo "no" >&6; }
7993 if test -z "$ac_cv_prog_RANLIB"; then
7994 ac_ct_RANLIB=$RANLIB
7995 # Extract the first word of "ranlib", so it can be a program name with args.
7996 set dummy ranlib; ac_word=$2
7997 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7998 $as_echo_n "checking for $ac_word... " >&6; }
7999 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8000 $as_echo_n "(cached) " >&6
8001 else
8002 if test -n "$ac_ct_RANLIB"; then
8003 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8004 else
8005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8006 for as_dir in $PATH
8008 IFS=$as_save_IFS
8009 test -z "$as_dir" && as_dir=.
8010 for ac_exec_ext in '' $ac_executable_extensions; do
8011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8012 ac_cv_prog_ac_ct_RANLIB="ranlib"
8013 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8014 break 2
8016 done
8017 done
8018 IFS=$as_save_IFS
8022 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8023 if test -n "$ac_ct_RANLIB"; then
8024 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8025 $as_echo "$ac_ct_RANLIB" >&6; }
8026 else
8027 { $as_echo "$as_me:$LINENO: result: no" >&5
8028 $as_echo "no" >&6; }
8031 if test "x$ac_ct_RANLIB" = x; then
8032 RANLIB=":"
8033 else
8034 case $cross_compiling:$ac_tool_warned in
8035 yes:)
8036 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8037 whose name does not start with the host triplet. If you think this
8038 configuration is useful to you, please write to autoconf@gnu.org." >&5
8039 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8040 whose name does not start with the host triplet. If you think this
8041 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8042 ac_tool_warned=yes ;;
8043 esac
8044 RANLIB=$ac_ct_RANLIB
8046 else
8047 RANLIB="$ac_cv_prog_RANLIB"
8050 if test -n "$ac_tool_prefix"; then
8051 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8052 set dummy ${ac_tool_prefix}strip; ac_word=$2
8053 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8054 $as_echo_n "checking for $ac_word... " >&6; }
8055 if test "${ac_cv_prog_STRIP+set}" = set; then
8056 $as_echo_n "(cached) " >&6
8057 else
8058 if test -n "$STRIP"; then
8059 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8060 else
8061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8062 for as_dir in $PATH
8064 IFS=$as_save_IFS
8065 test -z "$as_dir" && as_dir=.
8066 for ac_exec_ext in '' $ac_executable_extensions; do
8067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8068 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8069 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8070 break 2
8072 done
8073 done
8074 IFS=$as_save_IFS
8078 STRIP=$ac_cv_prog_STRIP
8079 if test -n "$STRIP"; then
8080 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
8081 $as_echo "$STRIP" >&6; }
8082 else
8083 { $as_echo "$as_me:$LINENO: result: no" >&5
8084 $as_echo "no" >&6; }
8089 if test -z "$ac_cv_prog_STRIP"; then
8090 ac_ct_STRIP=$STRIP
8091 # Extract the first word of "strip", so it can be a program name with args.
8092 set dummy strip; ac_word=$2
8093 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8094 $as_echo_n "checking for $ac_word... " >&6; }
8095 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8096 $as_echo_n "(cached) " >&6
8097 else
8098 if test -n "$ac_ct_STRIP"; then
8099 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8100 else
8101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8102 for as_dir in $PATH
8104 IFS=$as_save_IFS
8105 test -z "$as_dir" && as_dir=.
8106 for ac_exec_ext in '' $ac_executable_extensions; do
8107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8108 ac_cv_prog_ac_ct_STRIP="strip"
8109 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8110 break 2
8112 done
8113 done
8114 IFS=$as_save_IFS
8118 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8119 if test -n "$ac_ct_STRIP"; then
8120 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8121 $as_echo "$ac_ct_STRIP" >&6; }
8122 else
8123 { $as_echo "$as_me:$LINENO: result: no" >&5
8124 $as_echo "no" >&6; }
8127 if test "x$ac_ct_STRIP" = x; then
8128 STRIP=":"
8129 else
8130 case $cross_compiling:$ac_tool_warned in
8131 yes:)
8132 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8133 whose name does not start with the host triplet. If you think this
8134 configuration is useful to you, please write to autoconf@gnu.org." >&5
8135 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8136 whose name does not start with the host triplet. If you think this
8137 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8138 ac_tool_warned=yes ;;
8139 esac
8140 STRIP=$ac_ct_STRIP
8142 else
8143 STRIP="$ac_cv_prog_STRIP"
8147 old_CC="$CC"
8148 old_CFLAGS="$CFLAGS"
8150 # Set sane defaults for various variables
8151 test -z "$AR" && AR=ar
8152 test -z "$AR_FLAGS" && AR_FLAGS=cru
8153 test -z "$AS" && AS=as
8154 test -z "$CC" && CC=cc
8155 test -z "$LTCC" && LTCC=$CC
8156 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8157 test -z "$DLLTOOL" && DLLTOOL=dlltool
8158 test -z "$LD" && LD=ld
8159 test -z "$LN_S" && LN_S="ln -s"
8160 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8161 test -z "$NM" && NM=nm
8162 test -z "$SED" && SED=sed
8163 test -z "$OBJDUMP" && OBJDUMP=objdump
8164 test -z "$RANLIB" && RANLIB=:
8165 test -z "$STRIP" && STRIP=:
8166 test -z "$ac_objext" && ac_objext=o
8168 # Determine commands to create old-style static archives.
8169 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8170 old_postinstall_cmds='chmod 644 $oldlib'
8171 old_postuninstall_cmds=
8173 if test -n "$RANLIB"; then
8174 case $host_os in
8175 openbsd*)
8176 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8179 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8181 esac
8182 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8185 for cc_temp in $compiler""; do
8186 case $cc_temp in
8187 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8188 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8189 \-*) ;;
8190 *) break;;
8191 esac
8192 done
8193 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8196 # Only perform the check for file, if the check method requires it
8197 case $deplibs_check_method in
8198 file_magic*)
8199 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8200 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8201 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8202 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8203 $as_echo_n "(cached) " >&6
8204 else
8205 case $MAGIC_CMD in
8206 [\\/*] | ?:[\\/]*)
8207 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8210 lt_save_MAGIC_CMD="$MAGIC_CMD"
8211 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8212 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8213 for ac_dir in $ac_dummy; do
8214 IFS="$lt_save_ifs"
8215 test -z "$ac_dir" && ac_dir=.
8216 if test -f $ac_dir/${ac_tool_prefix}file; then
8217 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8218 if test -n "$file_magic_test_file"; then
8219 case $deplibs_check_method in
8220 "file_magic "*)
8221 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8222 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8223 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8224 $EGREP "$file_magic_regex" > /dev/null; then
8226 else
8227 cat <<EOF 1>&2
8229 *** Warning: the command libtool uses to detect shared libraries,
8230 *** $file_magic_cmd, produces output that libtool cannot recognize.
8231 *** The result is that libtool may fail to recognize shared libraries
8232 *** as such. This will affect the creation of libtool libraries that
8233 *** depend on shared libraries, but programs linked with such libtool
8234 *** libraries will work regardless of this problem. Nevertheless, you
8235 *** may want to report the problem to your system manager and/or to
8236 *** bug-libtool@gnu.org
8239 fi ;;
8240 esac
8242 break
8244 done
8245 IFS="$lt_save_ifs"
8246 MAGIC_CMD="$lt_save_MAGIC_CMD"
8248 esac
8251 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8252 if test -n "$MAGIC_CMD"; then
8253 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8254 $as_echo "$MAGIC_CMD" >&6; }
8255 else
8256 { $as_echo "$as_me:$LINENO: result: no" >&5
8257 $as_echo "no" >&6; }
8260 if test -z "$lt_cv_path_MAGIC_CMD"; then
8261 if test -n "$ac_tool_prefix"; then
8262 { $as_echo "$as_me:$LINENO: checking for file" >&5
8263 $as_echo_n "checking for file... " >&6; }
8264 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8265 $as_echo_n "(cached) " >&6
8266 else
8267 case $MAGIC_CMD in
8268 [\\/*] | ?:[\\/]*)
8269 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8272 lt_save_MAGIC_CMD="$MAGIC_CMD"
8273 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8274 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8275 for ac_dir in $ac_dummy; do
8276 IFS="$lt_save_ifs"
8277 test -z "$ac_dir" && ac_dir=.
8278 if test -f $ac_dir/file; then
8279 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8280 if test -n "$file_magic_test_file"; then
8281 case $deplibs_check_method in
8282 "file_magic "*)
8283 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8284 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8285 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8286 $EGREP "$file_magic_regex" > /dev/null; then
8288 else
8289 cat <<EOF 1>&2
8291 *** Warning: the command libtool uses to detect shared libraries,
8292 *** $file_magic_cmd, produces output that libtool cannot recognize.
8293 *** The result is that libtool may fail to recognize shared libraries
8294 *** as such. This will affect the creation of libtool libraries that
8295 *** depend on shared libraries, but programs linked with such libtool
8296 *** libraries will work regardless of this problem. Nevertheless, you
8297 *** may want to report the problem to your system manager and/or to
8298 *** bug-libtool@gnu.org
8301 fi ;;
8302 esac
8304 break
8306 done
8307 IFS="$lt_save_ifs"
8308 MAGIC_CMD="$lt_save_MAGIC_CMD"
8310 esac
8313 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8314 if test -n "$MAGIC_CMD"; then
8315 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8316 $as_echo "$MAGIC_CMD" >&6; }
8317 else
8318 { $as_echo "$as_me:$LINENO: result: no" >&5
8319 $as_echo "no" >&6; }
8322 else
8323 MAGIC_CMD=:
8329 esac
8331 enable_dlopen=no
8332 enable_win32_dll=no
8334 # Check whether --enable-libtool-lock was given.
8335 if test "${enable_libtool_lock+set}" = set; then
8336 enableval=$enable_libtool_lock;
8339 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8342 # Check whether --with-pic was given.
8343 if test "${with_pic+set}" = set; then
8344 withval=$with_pic; pic_mode="$withval"
8345 else
8346 pic_mode=default
8349 test -z "$pic_mode" && pic_mode=default
8351 # Use C for the default configuration in the libtool script
8352 tagname=
8353 lt_save_CC="$CC"
8354 ac_ext=c
8355 ac_cpp='$CPP $CPPFLAGS'
8356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8361 # Source file extension for C test sources.
8362 ac_ext=c
8364 # Object file extension for compiled C test sources.
8365 objext=o
8366 objext=$objext
8368 # Code to be used in simple compile tests
8369 lt_simple_compile_test_code="int some_variable = 0;\n"
8371 # Code to be used in simple link tests
8372 lt_simple_link_test_code='int main(){return(0);}\n'
8375 # If no C compiler was specified, use CC.
8376 LTCC=${LTCC-"$CC"}
8378 # If no C compiler flags were specified, use CFLAGS.
8379 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8381 # Allow CC to be a program name with arguments.
8382 compiler=$CC
8385 # save warnings/boilerplate of simple test code
8386 ac_outfile=conftest.$ac_objext
8387 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8388 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8389 _lt_compiler_boilerplate=`cat conftest.err`
8390 $rm conftest*
8392 ac_outfile=conftest.$ac_objext
8393 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8394 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8395 _lt_linker_boilerplate=`cat conftest.err`
8396 $rm conftest*
8400 lt_prog_compiler_no_builtin_flag=
8402 if test "$GCC" = yes; then
8403 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8406 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8407 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8408 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8409 $as_echo_n "(cached) " >&6
8410 else
8411 lt_cv_prog_compiler_rtti_exceptions=no
8412 ac_outfile=conftest.$ac_objext
8413 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8414 lt_compiler_flag="-fno-rtti -fno-exceptions"
8415 # Insert the option either (1) after the last *FLAGS variable, or
8416 # (2) before a word containing "conftest.", or (3) at the end.
8417 # Note that $ac_compile itself does not contain backslashes and begins
8418 # with a dollar sign (not a hyphen), so the echo should work correctly.
8419 # The option is referenced via a variable to avoid confusing sed.
8420 lt_compile=`echo "$ac_compile" | $SED \
8421 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8422 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8423 -e 's:$: $lt_compiler_flag:'`
8424 (eval echo "\"\$as_me:8424: $lt_compile\"" >&5)
8425 (eval "$lt_compile" 2>conftest.err)
8426 ac_status=$?
8427 cat conftest.err >&5
8428 echo "$as_me:8428: \$? = $ac_status" >&5
8429 if (exit $ac_status) && test -s "$ac_outfile"; then
8430 # The compiler can only warn and ignore the option if not recognized
8431 # So say no if there are warnings other than the usual output.
8432 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8433 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8434 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8435 lt_cv_prog_compiler_rtti_exceptions=yes
8438 $rm conftest*
8441 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8442 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8444 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8445 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8446 else
8452 lt_prog_compiler_wl=
8453 lt_prog_compiler_pic=
8454 lt_prog_compiler_static=
8456 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8457 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8459 if test "$GCC" = yes; then
8460 lt_prog_compiler_wl='-Wl,'
8461 lt_prog_compiler_static='-static'
8463 case $host_os in
8464 aix*)
8465 # All AIX code is PIC.
8466 if test "$host_cpu" = ia64; then
8467 # AIX 5 now supports IA64 processor
8468 lt_prog_compiler_static='-Bstatic'
8472 amigaos*)
8473 # FIXME: we need at least 68020 code to build shared libraries, but
8474 # adding the `-m68020' flag to GCC prevents building anything better,
8475 # like `-m68040'.
8476 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8479 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8480 # PIC is the default for these OSes.
8483 mingw* | pw32* | os2*)
8484 # This hack is so that the source file can tell whether it is being
8485 # built for inclusion in a dll (and should export symbols for example).
8486 lt_prog_compiler_pic='-DDLL_EXPORT'
8489 darwin* | rhapsody*)
8490 # PIC is the default on this platform
8491 # Common symbols not allowed in MH_DYLIB files
8492 lt_prog_compiler_pic='-fno-common'
8495 interix3*)
8496 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8497 # Instead, we relocate shared libraries at runtime.
8500 msdosdjgpp*)
8501 # Just because we use GCC doesn't mean we suddenly get shared libraries
8502 # on systems that don't support them.
8503 lt_prog_compiler_can_build_shared=no
8504 enable_shared=no
8507 sysv4*MP*)
8508 if test -d /usr/nec; then
8509 lt_prog_compiler_pic=-Kconform_pic
8513 hpux*)
8514 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8515 # not for PA HP-UX.
8516 case $host_cpu in
8517 hppa*64*|ia64*)
8518 # +Z the default
8521 lt_prog_compiler_pic='-fPIC'
8523 esac
8527 lt_prog_compiler_pic='-fPIC'
8529 esac
8530 else
8531 # PORTME Check for flag to pass linker flags through the system compiler.
8532 case $host_os in
8533 aix*)
8534 lt_prog_compiler_wl='-Wl,'
8535 if test "$host_cpu" = ia64; then
8536 # AIX 5 now supports IA64 processor
8537 lt_prog_compiler_static='-Bstatic'
8538 else
8539 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8542 darwin*)
8543 # PIC is the default on this platform
8544 # Common symbols not allowed in MH_DYLIB files
8545 case $cc_basename in
8546 xlc*)
8547 lt_prog_compiler_pic='-qnocommon'
8548 lt_prog_compiler_wl='-Wl,'
8550 esac
8553 mingw* | pw32* | os2*)
8554 # This hack is so that the source file can tell whether it is being
8555 # built for inclusion in a dll (and should export symbols for example).
8556 lt_prog_compiler_pic='-DDLL_EXPORT'
8559 hpux9* | hpux10* | hpux11*)
8560 lt_prog_compiler_wl='-Wl,'
8561 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8562 # not for PA HP-UX.
8563 case $host_cpu in
8564 hppa*64*|ia64*)
8565 # +Z the default
8568 lt_prog_compiler_pic='+Z'
8570 esac
8571 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8572 lt_prog_compiler_static='${wl}-a ${wl}archive'
8575 irix5* | irix6* | nonstopux*)
8576 lt_prog_compiler_wl='-Wl,'
8577 # PIC (with -KPIC) is the default.
8578 lt_prog_compiler_static='-non_shared'
8581 newsos6)
8582 lt_prog_compiler_pic='-KPIC'
8583 lt_prog_compiler_static='-Bstatic'
8586 linux*)
8587 case $cc_basename in
8588 icc* | ecc*)
8589 lt_prog_compiler_wl='-Wl,'
8590 lt_prog_compiler_pic='-KPIC'
8591 lt_prog_compiler_static='-static'
8593 pgcc* | pgf77* | pgf90* | pgf95*)
8594 # Portland Group compilers (*not* the Pentium gcc compiler,
8595 # which looks to be a dead project)
8596 lt_prog_compiler_wl='-Wl,'
8597 lt_prog_compiler_pic='-fpic'
8598 lt_prog_compiler_static='-Bstatic'
8600 ccc*)
8601 lt_prog_compiler_wl='-Wl,'
8602 # All Alpha code is PIC.
8603 lt_prog_compiler_static='-non_shared'
8605 esac
8608 osf3* | osf4* | osf5*)
8609 lt_prog_compiler_wl='-Wl,'
8610 # All OSF/1 code is PIC.
8611 lt_prog_compiler_static='-non_shared'
8614 solaris*)
8615 lt_prog_compiler_pic='-KPIC'
8616 lt_prog_compiler_static='-Bstatic'
8617 case $cc_basename in
8618 f77* | f90* | f95*)
8619 lt_prog_compiler_wl='-Qoption ld ';;
8621 lt_prog_compiler_wl='-Wl,';;
8622 esac
8625 sunos4*)
8626 lt_prog_compiler_wl='-Qoption ld '
8627 lt_prog_compiler_pic='-PIC'
8628 lt_prog_compiler_static='-Bstatic'
8631 sysv4 | sysv4.2uw2* | sysv4.3*)
8632 lt_prog_compiler_wl='-Wl,'
8633 lt_prog_compiler_pic='-KPIC'
8634 lt_prog_compiler_static='-Bstatic'
8637 sysv4*MP*)
8638 if test -d /usr/nec ;then
8639 lt_prog_compiler_pic='-Kconform_pic'
8640 lt_prog_compiler_static='-Bstatic'
8644 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8645 lt_prog_compiler_wl='-Wl,'
8646 lt_prog_compiler_pic='-KPIC'
8647 lt_prog_compiler_static='-Bstatic'
8650 unicos*)
8651 lt_prog_compiler_wl='-Wl,'
8652 lt_prog_compiler_can_build_shared=no
8655 uts4*)
8656 lt_prog_compiler_pic='-pic'
8657 lt_prog_compiler_static='-Bstatic'
8661 lt_prog_compiler_can_build_shared=no
8663 esac
8666 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8667 $as_echo "$lt_prog_compiler_pic" >&6; }
8670 # Check to make sure the PIC flag actually works.
8672 if test -n "$lt_prog_compiler_pic"; then
8674 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8675 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8676 if test "${lt_prog_compiler_pic_works+set}" = set; then
8677 $as_echo_n "(cached) " >&6
8678 else
8679 lt_prog_compiler_pic_works=no
8680 ac_outfile=conftest.$ac_objext
8681 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8682 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8683 # Insert the option either (1) after the last *FLAGS variable, or
8684 # (2) before a word containing "conftest.", or (3) at the end.
8685 # Note that $ac_compile itself does not contain backslashes and begins
8686 # with a dollar sign (not a hyphen), so the echo should work correctly.
8687 # The option is referenced via a variable to avoid confusing sed.
8688 lt_compile=`echo "$ac_compile" | $SED \
8689 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8690 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8691 -e 's:$: $lt_compiler_flag:'`
8692 (eval echo "\"\$as_me:8692: $lt_compile\"" >&5)
8693 (eval "$lt_compile" 2>conftest.err)
8694 ac_status=$?
8695 cat conftest.err >&5
8696 echo "$as_me:8696: \$? = $ac_status" >&5
8697 if (exit $ac_status) && test -s "$ac_outfile"; then
8698 # The compiler can only warn and ignore the option if not recognized
8699 # So say no if there are warnings other than the usual output.
8700 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8701 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8702 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8703 lt_prog_compiler_pic_works=yes
8706 $rm conftest*
8709 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8710 $as_echo "$lt_prog_compiler_pic_works" >&6; }
8712 if test x"$lt_prog_compiler_pic_works" = xyes; then
8713 case $lt_prog_compiler_pic in
8714 "" | " "*) ;;
8715 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8716 esac
8717 else
8718 lt_prog_compiler_pic=
8719 lt_prog_compiler_can_build_shared=no
8723 case $host_os in
8724 # For platforms which do not support PIC, -DPIC is meaningless:
8725 *djgpp*)
8726 lt_prog_compiler_pic=
8729 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8731 esac
8734 # Check to make sure the static flag actually works.
8736 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8737 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8738 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8739 if test "${lt_prog_compiler_static_works+set}" = set; then
8740 $as_echo_n "(cached) " >&6
8741 else
8742 lt_prog_compiler_static_works=no
8743 save_LDFLAGS="$LDFLAGS"
8744 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8745 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8746 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8747 # The linker can only warn and ignore the option if not recognized
8748 # So say no if there are warnings
8749 if test -s conftest.err; then
8750 # Append any errors to the config.log.
8751 cat conftest.err 1>&5
8752 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8753 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8754 if diff conftest.exp conftest.er2 >/dev/null; then
8755 lt_prog_compiler_static_works=yes
8757 else
8758 lt_prog_compiler_static_works=yes
8761 $rm conftest*
8762 LDFLAGS="$save_LDFLAGS"
8765 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8766 $as_echo "$lt_prog_compiler_static_works" >&6; }
8768 if test x"$lt_prog_compiler_static_works" = xyes; then
8770 else
8771 lt_prog_compiler_static=
8775 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8776 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8777 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8778 $as_echo_n "(cached) " >&6
8779 else
8780 lt_cv_prog_compiler_c_o=no
8781 $rm -r conftest 2>/dev/null
8782 mkdir conftest
8783 cd conftest
8784 mkdir out
8785 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8787 lt_compiler_flag="-o out/conftest2.$ac_objext"
8788 # Insert the option either (1) after the last *FLAGS variable, or
8789 # (2) before a word containing "conftest.", or (3) at the end.
8790 # Note that $ac_compile itself does not contain backslashes and begins
8791 # with a dollar sign (not a hyphen), so the echo should work correctly.
8792 lt_compile=`echo "$ac_compile" | $SED \
8793 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8794 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8795 -e 's:$: $lt_compiler_flag:'`
8796 (eval echo "\"\$as_me:8796: $lt_compile\"" >&5)
8797 (eval "$lt_compile" 2>out/conftest.err)
8798 ac_status=$?
8799 cat out/conftest.err >&5
8800 echo "$as_me:8800: \$? = $ac_status" >&5
8801 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8802 then
8803 # The compiler can only warn and ignore the option if not recognized
8804 # So say no if there are warnings
8805 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8806 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8807 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8808 lt_cv_prog_compiler_c_o=yes
8811 chmod u+w . 2>&5
8812 $rm conftest*
8813 # SGI C++ compiler will create directory out/ii_files/ for
8814 # template instantiation
8815 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8816 $rm out/* && rmdir out
8817 cd ..
8818 rmdir conftest
8819 $rm conftest*
8822 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8823 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8826 hard_links="nottested"
8827 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8828 # do not overwrite the value of need_locks provided by the user
8829 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8830 $as_echo_n "checking if we can lock with hard links... " >&6; }
8831 hard_links=yes
8832 $rm conftest*
8833 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8834 touch conftest.a
8835 ln conftest.a conftest.b 2>&5 || hard_links=no
8836 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8837 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8838 $as_echo "$hard_links" >&6; }
8839 if test "$hard_links" = no; then
8840 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8841 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8842 need_locks=warn
8844 else
8845 need_locks=no
8848 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8849 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8851 runpath_var=
8852 allow_undefined_flag=
8853 enable_shared_with_static_runtimes=no
8854 archive_cmds=
8855 archive_expsym_cmds=
8856 old_archive_From_new_cmds=
8857 old_archive_from_expsyms_cmds=
8858 export_dynamic_flag_spec=
8859 whole_archive_flag_spec=
8860 thread_safe_flag_spec=
8861 hardcode_libdir_flag_spec=
8862 hardcode_libdir_flag_spec_ld=
8863 hardcode_libdir_separator=
8864 hardcode_direct=no
8865 hardcode_minus_L=no
8866 hardcode_shlibpath_var=unsupported
8867 link_all_deplibs=unknown
8868 hardcode_automatic=no
8869 module_cmds=
8870 module_expsym_cmds=
8871 always_export_symbols=no
8872 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8873 # include_expsyms should be a list of space-separated symbols to be *always*
8874 # included in the symbol list
8875 include_expsyms=
8876 # exclude_expsyms can be an extended regexp of symbols to exclude
8877 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8878 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8879 # as well as any symbol that contains `d'.
8880 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8881 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8882 # platforms (ab)use it in PIC code, but their linkers get confused if
8883 # the symbol is explicitly referenced. Since portable code cannot
8884 # rely on this symbol name, it's probably fine to never include it in
8885 # preloaded symbol tables.
8886 extract_expsyms_cmds=
8887 # Just being paranoid about ensuring that cc_basename is set.
8888 for cc_temp in $compiler""; do
8889 case $cc_temp in
8890 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8891 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8892 \-*) ;;
8893 *) break;;
8894 esac
8895 done
8896 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8898 case $host_os in
8899 cygwin* | mingw* | pw32*)
8900 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8901 # When not using gcc, we currently assume that we are using
8902 # Microsoft Visual C++.
8903 if test "$GCC" != yes; then
8904 with_gnu_ld=no
8907 interix*)
8908 # we just hope/assume this is gcc and not c89 (= MSVC++)
8909 with_gnu_ld=yes
8911 openbsd*)
8912 with_gnu_ld=no
8914 esac
8916 ld_shlibs=yes
8917 if test "$with_gnu_ld" = yes; then
8918 # If archive_cmds runs LD, not CC, wlarc should be empty
8919 wlarc='${wl}'
8921 # Set some defaults for GNU ld with shared library support. These
8922 # are reset later if shared libraries are not supported. Putting them
8923 # here allows them to be overridden if necessary.
8924 runpath_var=LD_RUN_PATH
8925 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8926 export_dynamic_flag_spec='${wl}--export-dynamic'
8927 # ancient GNU ld didn't support --whole-archive et. al.
8928 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8929 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8930 else
8931 whole_archive_flag_spec=
8933 supports_anon_versioning=no
8934 case `$LD -v 2>/dev/null` in
8935 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8936 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8937 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8938 *\ 2.11.*) ;; # other 2.11 versions
8939 *) supports_anon_versioning=yes ;;
8940 esac
8942 # See if GNU ld supports shared libraries.
8943 case $host_os in
8944 aix3* | aix4* | aix5*)
8945 # On AIX/PPC, the GNU linker is very broken
8946 if test "$host_cpu" != ia64; then
8947 ld_shlibs=no
8948 cat <<EOF 1>&2
8950 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8951 *** to be unable to reliably create shared libraries on AIX.
8952 *** Therefore, libtool is disabling shared libraries support. If you
8953 *** really care for shared libraries, you may want to modify your PATH
8954 *** so that a non-GNU linker is found, and then restart.
8960 amigaos*)
8961 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)'
8962 hardcode_libdir_flag_spec='-L$libdir'
8963 hardcode_minus_L=yes
8965 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8966 # that the semantics of dynamic libraries on AmigaOS, at least up
8967 # to version 4, is to share data among multiple programs linked
8968 # with the same dynamic library. Since this doesn't match the
8969 # behavior of shared libraries on other platforms, we can't use
8970 # them.
8971 ld_shlibs=no
8974 beos*)
8975 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8976 allow_undefined_flag=unsupported
8977 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8978 # support --undefined. This deserves some investigation. FIXME
8979 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8980 else
8981 ld_shlibs=no
8985 cygwin* | mingw* | pw32*)
8986 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8987 # as there is no search path for DLLs.
8988 hardcode_libdir_flag_spec='-L$libdir'
8989 allow_undefined_flag=unsupported
8990 always_export_symbols=no
8991 enable_shared_with_static_runtimes=yes
8992 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8994 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8995 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8996 # If the export-symbols file already is a .def file (1st line
8997 # is EXPORTS), use it as is; otherwise, prepend...
8998 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8999 cp $export_symbols $output_objdir/$soname.def;
9000 else
9001 echo EXPORTS > $output_objdir/$soname.def;
9002 cat $export_symbols >> $output_objdir/$soname.def;
9004 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9005 else
9006 ld_shlibs=no
9010 interix3*)
9011 hardcode_direct=no
9012 hardcode_shlibpath_var=no
9013 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9014 export_dynamic_flag_spec='${wl}-E'
9015 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9016 # Instead, shared libraries are loaded at an image base (0x10000000 by
9017 # default) and relocated if they conflict, which is a slow very memory
9018 # consuming and fragmenting process. To avoid this, we pick a random,
9019 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9020 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9021 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9022 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'
9025 linux*)
9026 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9027 tmp_addflag=
9028 case $cc_basename,$host_cpu in
9029 pgcc*) # Portland Group C compiler
9030 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'
9031 tmp_addflag=' $pic_flag'
9033 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9034 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'
9035 tmp_addflag=' $pic_flag -Mnomain' ;;
9036 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9037 tmp_addflag=' -i_dynamic' ;;
9038 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9039 tmp_addflag=' -i_dynamic -nofor_main' ;;
9040 ifc* | ifort*) # Intel Fortran compiler
9041 tmp_addflag=' -nofor_main' ;;
9042 esac
9043 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9045 if test $supports_anon_versioning = yes; then
9046 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9047 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9048 $echo "local: *; };" >> $output_objdir/$libname.ver~
9049 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9051 else
9052 ld_shlibs=no
9056 netbsd*)
9057 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9058 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9059 wlarc=
9060 else
9061 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9062 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9066 solaris*)
9067 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9068 ld_shlibs=no
9069 cat <<EOF 1>&2
9071 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9072 *** create shared libraries on Solaris systems. Therefore, libtool
9073 *** is disabling shared libraries support. We urge you to upgrade GNU
9074 *** binutils to release 2.9.1 or newer. Another option is to modify
9075 *** your PATH or compiler configuration so that the native linker is
9076 *** used, and then restart.
9079 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9080 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9081 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9082 else
9083 ld_shlibs=no
9087 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9088 case `$LD -v 2>&1` in
9089 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9090 ld_shlibs=no
9091 cat <<_LT_EOF 1>&2
9093 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9094 *** reliably create shared libraries on SCO systems. Therefore, libtool
9095 *** is disabling shared libraries support. We urge you to upgrade GNU
9096 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9097 *** your PATH or compiler configuration so that the native linker is
9098 *** used, and then restart.
9100 _LT_EOF
9103 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9104 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9105 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9106 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9107 else
9108 ld_shlibs=no
9111 esac
9114 sunos4*)
9115 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9116 wlarc=
9117 hardcode_direct=yes
9118 hardcode_shlibpath_var=no
9122 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9123 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9124 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9125 else
9126 ld_shlibs=no
9129 esac
9131 if test "$ld_shlibs" = no; then
9132 runpath_var=
9133 hardcode_libdir_flag_spec=
9134 export_dynamic_flag_spec=
9135 whole_archive_flag_spec=
9137 else
9138 # PORTME fill in a description of your system's linker (not GNU ld)
9139 case $host_os in
9140 aix3*)
9141 allow_undefined_flag=unsupported
9142 always_export_symbols=yes
9143 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'
9144 # Note: this linker hardcodes the directories in LIBPATH if there
9145 # are no directories specified by -L.
9146 hardcode_minus_L=yes
9147 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9148 # Neither direct hardcoding nor static linking is supported with a
9149 # broken collect2.
9150 hardcode_direct=unsupported
9154 aix4* | aix5*)
9155 if test "$host_cpu" = ia64; then
9156 # On IA64, the linker does run time linking by default, so we don't
9157 # have to do anything special.
9158 aix_use_runtimelinking=no
9159 exp_sym_flag='-Bexport'
9160 no_entry_flag=""
9161 else
9162 # If we're using GNU nm, then we don't want the "-C" option.
9163 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9164 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9165 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'
9166 else
9167 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'
9169 aix_use_runtimelinking=no
9171 # Test if we are trying to use run time linking or normal
9172 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9173 # need to do runtime linking.
9174 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9175 for ld_flag in $LDFLAGS; do
9176 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9177 aix_use_runtimelinking=yes
9178 break
9180 done
9182 esac
9184 exp_sym_flag='-bexport'
9185 no_entry_flag='-bnoentry'
9188 # When large executables or shared objects are built, AIX ld can
9189 # have problems creating the table of contents. If linking a library
9190 # or program results in "error TOC overflow" add -mminimal-toc to
9191 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9192 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9194 archive_cmds=''
9195 hardcode_direct=yes
9196 hardcode_libdir_separator=':'
9197 link_all_deplibs=yes
9199 if test "$GCC" = yes; then
9200 case $host_os in aix4.[012]|aix4.[012].*)
9201 # We only want to do this on AIX 4.2 and lower, the check
9202 # below for broken collect2 doesn't work under 4.3+
9203 collect2name=`${CC} -print-prog-name=collect2`
9204 if test -f "$collect2name" && \
9205 strings "$collect2name" | grep resolve_lib_name >/dev/null
9206 then
9207 # We have reworked collect2
9208 hardcode_direct=yes
9209 else
9210 # We have old collect2
9211 hardcode_direct=unsupported
9212 # It fails to find uninstalled libraries when the uninstalled
9213 # path is not listed in the libpath. Setting hardcode_minus_L
9214 # to unsupported forces relinking
9215 hardcode_minus_L=yes
9216 hardcode_libdir_flag_spec='-L$libdir'
9217 hardcode_libdir_separator=
9220 esac
9221 shared_flag='-shared'
9222 if test "$aix_use_runtimelinking" = yes; then
9223 shared_flag="$shared_flag "'${wl}-G'
9225 else
9226 # not using gcc
9227 if test "$host_cpu" = ia64; then
9228 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9229 # chokes on -Wl,-G. The following line is correct:
9230 shared_flag='-G'
9231 else
9232 if test "$aix_use_runtimelinking" = yes; then
9233 shared_flag='${wl}-G'
9234 else
9235 shared_flag='${wl}-bM:SRE'
9240 # It seems that -bexpall does not export symbols beginning with
9241 # underscore (_), so it is better to generate a list of symbols to export.
9242 always_export_symbols=yes
9243 if test "$aix_use_runtimelinking" = yes; then
9244 # Warning - without using the other runtime loading flags (-brtl),
9245 # -berok will link without error, but may produce a broken library.
9246 allow_undefined_flag='-berok'
9247 # Determine the default libpath from the value encoded in an empty executable.
9248 cat >conftest.$ac_ext <<_ACEOF
9249 /* confdefs.h. */
9250 _ACEOF
9251 cat confdefs.h >>conftest.$ac_ext
9252 cat >>conftest.$ac_ext <<_ACEOF
9253 /* end confdefs.h. */
9256 main ()
9260 return 0;
9262 _ACEOF
9263 rm -f conftest.$ac_objext conftest$ac_exeext
9264 if { (ac_try="$ac_link"
9265 case "(($ac_try" in
9266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9267 *) ac_try_echo=$ac_try;;
9268 esac
9269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9270 $as_echo "$ac_try_echo") >&5
9271 (eval "$ac_link") 2>conftest.er1
9272 ac_status=$?
9273 grep -v '^ *+' conftest.er1 >conftest.err
9274 rm -f conftest.er1
9275 cat conftest.err >&5
9276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277 (exit $ac_status); } && {
9278 test -z "$ac_c_werror_flag" ||
9279 test ! -s conftest.err
9280 } && test -s conftest$ac_exeext && {
9281 test "$cross_compiling" = yes ||
9282 $as_test_x conftest$ac_exeext
9283 }; then
9285 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9287 # Check for a 64-bit object if we didn't find anything.
9288 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9289 }'`; fi
9290 else
9291 $as_echo "$as_me: failed program was:" >&5
9292 sed 's/^/| /' conftest.$ac_ext >&5
9297 rm -rf conftest.dSYM
9298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9299 conftest$ac_exeext conftest.$ac_ext
9300 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9302 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9303 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9304 else
9305 if test "$host_cpu" = ia64; then
9306 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9307 allow_undefined_flag="-z nodefs"
9308 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"
9309 else
9310 # Determine the default libpath from the value encoded in an empty executable.
9311 cat >conftest.$ac_ext <<_ACEOF
9312 /* confdefs.h. */
9313 _ACEOF
9314 cat confdefs.h >>conftest.$ac_ext
9315 cat >>conftest.$ac_ext <<_ACEOF
9316 /* end confdefs.h. */
9319 main ()
9323 return 0;
9325 _ACEOF
9326 rm -f conftest.$ac_objext conftest$ac_exeext
9327 if { (ac_try="$ac_link"
9328 case "(($ac_try" in
9329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9330 *) ac_try_echo=$ac_try;;
9331 esac
9332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9333 $as_echo "$ac_try_echo") >&5
9334 (eval "$ac_link") 2>conftest.er1
9335 ac_status=$?
9336 grep -v '^ *+' conftest.er1 >conftest.err
9337 rm -f conftest.er1
9338 cat conftest.err >&5
9339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9340 (exit $ac_status); } && {
9341 test -z "$ac_c_werror_flag" ||
9342 test ! -s conftest.err
9343 } && test -s conftest$ac_exeext && {
9344 test "$cross_compiling" = yes ||
9345 $as_test_x conftest$ac_exeext
9346 }; then
9348 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9350 # Check for a 64-bit object if we didn't find anything.
9351 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9352 }'`; fi
9353 else
9354 $as_echo "$as_me: failed program was:" >&5
9355 sed 's/^/| /' conftest.$ac_ext >&5
9360 rm -rf conftest.dSYM
9361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9362 conftest$ac_exeext conftest.$ac_ext
9363 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9365 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9366 # Warning - without using the other run time loading flags,
9367 # -berok will link without error, but may produce a broken library.
9368 no_undefined_flag=' ${wl}-bernotok'
9369 allow_undefined_flag=' ${wl}-berok'
9370 # Exported symbols can be pulled into shared objects from archives
9371 whole_archive_flag_spec='$convenience'
9372 archive_cmds_need_lc=yes
9373 # This is similar to how AIX traditionally builds its shared libraries.
9374 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'
9379 amigaos*)
9380 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)'
9381 hardcode_libdir_flag_spec='-L$libdir'
9382 hardcode_minus_L=yes
9383 # see comment about different semantics on the GNU ld section
9384 ld_shlibs=no
9387 bsdi[45]*)
9388 export_dynamic_flag_spec=-rdynamic
9391 cygwin* | mingw* | pw32*)
9392 # When not using gcc, we currently assume that we are using
9393 # Microsoft Visual C++.
9394 # hardcode_libdir_flag_spec is actually meaningless, as there is
9395 # no search path for DLLs.
9396 hardcode_libdir_flag_spec=' '
9397 allow_undefined_flag=unsupported
9398 # Tell ltmain to make .lib files, not .a files.
9399 libext=lib
9400 # Tell ltmain to make .dll files, not .so files.
9401 shrext_cmds=".dll"
9402 # FIXME: Setting linknames here is a bad hack.
9403 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9404 # The linker will automatically build a .lib file if we build a DLL.
9405 old_archive_From_new_cmds='true'
9406 # FIXME: Should let the user specify the lib program.
9407 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9408 fix_srcfile_path='`cygpath -w "$srcfile"`'
9409 enable_shared_with_static_runtimes=yes
9412 darwin* | rhapsody*)
9413 case $host_os in
9414 rhapsody* | darwin1.[012])
9415 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9417 *) # Darwin 1.3 on
9418 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9419 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9420 else
9421 case ${MACOSX_DEPLOYMENT_TARGET} in
9422 10.[012])
9423 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9425 10.*)
9426 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9428 esac
9431 esac
9432 archive_cmds_need_lc=no
9433 hardcode_direct=no
9434 hardcode_automatic=yes
9435 hardcode_shlibpath_var=unsupported
9436 whole_archive_flag_spec=''
9437 link_all_deplibs=yes
9438 if test "$GCC" = yes ; then
9439 output_verbose_link_cmd='echo'
9440 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9441 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9442 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9443 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9444 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9445 else
9446 case $cc_basename in
9447 xlc*)
9448 output_verbose_link_cmd='echo'
9449 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9450 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9451 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9452 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9453 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9456 ld_shlibs=no
9458 esac
9462 dgux*)
9463 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9464 hardcode_libdir_flag_spec='-L$libdir'
9465 hardcode_shlibpath_var=no
9468 freebsd1*)
9469 ld_shlibs=no
9472 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9473 # support. Future versions do this automatically, but an explicit c++rt0.o
9474 # does not break anything, and helps significantly (at the cost of a little
9475 # extra space).
9476 freebsd2.2*)
9477 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9478 hardcode_libdir_flag_spec='-R$libdir'
9479 hardcode_direct=yes
9480 hardcode_shlibpath_var=no
9483 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9484 freebsd2*)
9485 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9486 hardcode_direct=yes
9487 hardcode_minus_L=yes
9488 hardcode_shlibpath_var=no
9491 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9492 freebsd* | kfreebsd*-gnu | dragonfly*)
9493 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9494 hardcode_libdir_flag_spec='-R$libdir'
9495 hardcode_direct=yes
9496 hardcode_shlibpath_var=no
9499 hpux9*)
9500 if test "$GCC" = yes; then
9501 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'
9502 else
9503 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'
9505 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9506 hardcode_libdir_separator=:
9507 hardcode_direct=yes
9509 # hardcode_minus_L: Not really in the search PATH,
9510 # but as the default location of the library.
9511 hardcode_minus_L=yes
9512 export_dynamic_flag_spec='${wl}-E'
9515 hpux10*)
9516 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9517 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9518 else
9519 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9521 if test "$with_gnu_ld" = no; then
9522 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9523 hardcode_libdir_separator=:
9525 hardcode_direct=yes
9526 export_dynamic_flag_spec='${wl}-E'
9528 # hardcode_minus_L: Not really in the search PATH,
9529 # but as the default location of the library.
9530 hardcode_minus_L=yes
9534 hpux11*)
9535 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9536 case $host_cpu in
9537 hppa*64*)
9538 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9540 ia64*)
9541 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9544 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9546 esac
9547 else
9548 case $host_cpu in
9549 hppa*64*)
9550 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9552 ia64*)
9553 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9556 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9558 esac
9560 if test "$with_gnu_ld" = no; then
9561 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9562 hardcode_libdir_separator=:
9564 case $host_cpu in
9565 hppa*64*|ia64*)
9566 hardcode_libdir_flag_spec_ld='+b $libdir'
9567 hardcode_direct=no
9568 hardcode_shlibpath_var=no
9571 hardcode_direct=yes
9572 export_dynamic_flag_spec='${wl}-E'
9574 # hardcode_minus_L: Not really in the search PATH,
9575 # but as the default location of the library.
9576 hardcode_minus_L=yes
9578 esac
9582 irix5* | irix6* | nonstopux*)
9583 if test "$GCC" = yes; then
9584 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9585 else
9586 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9587 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9589 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9590 hardcode_libdir_separator=:
9591 link_all_deplibs=yes
9594 netbsd*)
9595 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9596 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9597 else
9598 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9600 hardcode_libdir_flag_spec='-R$libdir'
9601 hardcode_direct=yes
9602 hardcode_shlibpath_var=no
9605 newsos6)
9606 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9607 hardcode_direct=yes
9608 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9609 hardcode_libdir_separator=:
9610 hardcode_shlibpath_var=no
9613 openbsd*)
9614 hardcode_direct=yes
9615 hardcode_shlibpath_var=no
9616 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9617 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9618 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9619 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9620 export_dynamic_flag_spec='${wl}-E'
9621 else
9622 case $host_os in
9623 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9624 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9625 hardcode_libdir_flag_spec='-R$libdir'
9628 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9629 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9631 esac
9635 os2*)
9636 hardcode_libdir_flag_spec='-L$libdir'
9637 hardcode_minus_L=yes
9638 allow_undefined_flag=unsupported
9639 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'
9640 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9643 osf3*)
9644 if test "$GCC" = yes; then
9645 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9646 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9647 else
9648 allow_undefined_flag=' -expect_unresolved \*'
9649 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9651 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9652 hardcode_libdir_separator=:
9655 osf4* | osf5*) # as osf3* with the addition of -msym flag
9656 if test "$GCC" = yes; then
9657 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9658 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9659 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9660 else
9661 allow_undefined_flag=' -expect_unresolved \*'
9662 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9663 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9664 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
9666 # Both c and cxx compiler support -rpath directly
9667 hardcode_libdir_flag_spec='-rpath $libdir'
9669 hardcode_libdir_separator=:
9672 solaris*)
9673 no_undefined_flag=' -z text'
9674 if test "$GCC" = yes; then
9675 wlarc='${wl}'
9676 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9677 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9678 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9679 else
9680 wlarc=''
9681 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9682 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9683 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9685 hardcode_libdir_flag_spec='-R$libdir'
9686 hardcode_shlibpath_var=no
9687 case $host_os in
9688 solaris2.[0-5] | solaris2.[0-5].*) ;;
9690 # The compiler driver will combine linker options so we
9691 # cannot just pass the convience library names through
9692 # without $wl, iff we do not link with $LD.
9693 # Luckily, gcc supports the same syntax we need for Sun Studio.
9694 # Supported since Solaris 2.6 (maybe 2.5.1?)
9695 case $wlarc in
9697 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9699 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
9700 esac ;;
9701 esac
9702 link_all_deplibs=yes
9705 sunos4*)
9706 if test "x$host_vendor" = xsequent; then
9707 # Use $CC to link under sequent, because it throws in some extra .o
9708 # files that make .init and .fini sections work.
9709 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9710 else
9711 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9713 hardcode_libdir_flag_spec='-L$libdir'
9714 hardcode_direct=yes
9715 hardcode_minus_L=yes
9716 hardcode_shlibpath_var=no
9719 sysv4)
9720 case $host_vendor in
9721 sni)
9722 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9723 hardcode_direct=yes # is this really true???
9725 siemens)
9726 ## LD is ld it makes a PLAMLIB
9727 ## CC just makes a GrossModule.
9728 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9729 reload_cmds='$CC -r -o $output$reload_objs'
9730 hardcode_direct=no
9732 motorola)
9733 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9734 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9736 esac
9737 runpath_var='LD_RUN_PATH'
9738 hardcode_shlibpath_var=no
9741 sysv4.3*)
9742 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9743 hardcode_shlibpath_var=no
9744 export_dynamic_flag_spec='-Bexport'
9747 sysv4*MP*)
9748 if test -d /usr/nec; then
9749 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9750 hardcode_shlibpath_var=no
9751 runpath_var=LD_RUN_PATH
9752 hardcode_runpath_var=yes
9753 ld_shlibs=yes
9757 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9758 no_undefined_flag='${wl}-z,text'
9759 archive_cmds_need_lc=no
9760 hardcode_shlibpath_var=no
9761 runpath_var='LD_RUN_PATH'
9763 if test "$GCC" = yes; then
9764 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9765 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9766 else
9767 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9768 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9772 sysv5* | sco3.2v5* | sco5v6*)
9773 # Note: We can NOT use -z defs as we might desire, because we do not
9774 # link with -lc, and that would cause any symbols used from libc to
9775 # always be unresolved, which means just about no library would
9776 # ever link correctly. If we're not using GNU ld we use -z text
9777 # though, which does catch some bad symbols but isn't as heavy-handed
9778 # as -z defs.
9779 no_undefined_flag='${wl}-z,text'
9780 allow_undefined_flag='${wl}-z,nodefs'
9781 archive_cmds_need_lc=no
9782 hardcode_shlibpath_var=no
9783 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9784 hardcode_libdir_separator=':'
9785 link_all_deplibs=yes
9786 export_dynamic_flag_spec='${wl}-Bexport'
9787 runpath_var='LD_RUN_PATH'
9789 if test "$GCC" = yes; then
9790 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9791 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9792 else
9793 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9794 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9798 uts4*)
9799 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9800 hardcode_libdir_flag_spec='-L$libdir'
9801 hardcode_shlibpath_var=no
9805 ld_shlibs=no
9807 esac
9810 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9811 $as_echo "$ld_shlibs" >&6; }
9812 test "$ld_shlibs" = no && can_build_shared=no
9815 # Do we need to explicitly link libc?
9817 case "x$archive_cmds_need_lc" in
9818 x|xyes)
9819 # Assume -lc should be added
9820 archive_cmds_need_lc=yes
9822 if test "$enable_shared" = yes && test "$GCC" = yes; then
9823 case $archive_cmds in
9824 *'~'*)
9825 # FIXME: we may have to deal with multi-command sequences.
9827 '$CC '*)
9828 # Test whether the compiler implicitly links with -lc since on some
9829 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9830 # to ld, don't add -lc before -lgcc.
9831 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9832 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9833 $rm conftest*
9834 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9837 (eval $ac_compile) 2>&5
9838 ac_status=$?
9839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); } 2>conftest.err; then
9841 soname=conftest
9842 lib=conftest
9843 libobjs=conftest.$ac_objext
9844 deplibs=
9845 wl=$lt_prog_compiler_wl
9846 pic_flag=$lt_prog_compiler_pic
9847 compiler_flags=-v
9848 linker_flags=-v
9849 verstring=
9850 output_objdir=.
9851 libname=conftest
9852 lt_save_allow_undefined_flag=$allow_undefined_flag
9853 allow_undefined_flag=
9854 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9855 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9856 ac_status=$?
9857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); }
9859 then
9860 archive_cmds_need_lc=no
9861 else
9862 archive_cmds_need_lc=yes
9864 allow_undefined_flag=$lt_save_allow_undefined_flag
9865 else
9866 cat conftest.err 1>&5
9868 $rm conftest*
9869 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9870 $as_echo "$archive_cmds_need_lc" >&6; }
9872 esac
9875 esac
9877 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9878 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9879 library_names_spec=
9880 libname_spec='lib$name'
9881 soname_spec=
9882 shrext_cmds=".so"
9883 postinstall_cmds=
9884 postuninstall_cmds=
9885 finish_cmds=
9886 finish_eval=
9887 shlibpath_var=
9888 shlibpath_overrides_runpath=unknown
9889 version_type=none
9890 dynamic_linker="$host_os ld.so"
9891 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9892 if test "$GCC" = yes; then
9893 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9894 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9895 # if the path contains ";" then we assume it to be the separator
9896 # otherwise default to the standard path separator (i.e. ":") - it is
9897 # assumed that no part of a normal pathname contains ";" but that should
9898 # okay in the real world where ";" in dirpaths is itself problematic.
9899 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9900 else
9901 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9903 else
9904 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9906 need_lib_prefix=unknown
9907 hardcode_into_libs=no
9909 # when you set need_version to no, make sure it does not cause -set_version
9910 # flags to be left without arguments
9911 need_version=unknown
9913 case $host_os in
9914 aix3*)
9915 version_type=linux
9916 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9917 shlibpath_var=LIBPATH
9919 # AIX 3 has no versioning support, so we append a major version to the name.
9920 soname_spec='${libname}${release}${shared_ext}$major'
9923 aix4* | aix5*)
9924 version_type=linux
9925 need_lib_prefix=no
9926 need_version=no
9927 hardcode_into_libs=yes
9928 if test "$host_cpu" = ia64; then
9929 # AIX 5 supports IA64
9930 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9931 shlibpath_var=LD_LIBRARY_PATH
9932 else
9933 # With GCC up to 2.95.x, collect2 would create an import file
9934 # for dependence libraries. The import file would start with
9935 # the line `#! .'. This would cause the generated library to
9936 # depend on `.', always an invalid library. This was fixed in
9937 # development snapshots of GCC prior to 3.0.
9938 case $host_os in
9939 aix4 | aix4.[01] | aix4.[01].*)
9940 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9941 echo ' yes '
9942 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9944 else
9945 can_build_shared=no
9948 esac
9949 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9950 # soname into executable. Probably we can add versioning support to
9951 # collect2, so additional links can be useful in future.
9952 if test "$aix_use_runtimelinking" = yes; then
9953 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9954 # instead of lib<name>.a to let people know that these are not
9955 # typical AIX shared libraries.
9956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9957 else
9958 # We preserve .a as extension for shared libraries through AIX4.2
9959 # and later when we are not doing run time linking.
9960 library_names_spec='${libname}${release}.a $libname.a'
9961 soname_spec='${libname}${release}${shared_ext}$major'
9963 shlibpath_var=LIBPATH
9967 amigaos*)
9968 library_names_spec='$libname.ixlibrary $libname.a'
9969 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9970 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'
9973 beos*)
9974 library_names_spec='${libname}${shared_ext}'
9975 dynamic_linker="$host_os ld.so"
9976 shlibpath_var=LIBRARY_PATH
9979 bsdi[45]*)
9980 version_type=linux
9981 need_version=no
9982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9983 soname_spec='${libname}${release}${shared_ext}$major'
9984 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9985 shlibpath_var=LD_LIBRARY_PATH
9986 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9987 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9988 # the default ld.so.conf also contains /usr/contrib/lib and
9989 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9990 # libtool to hard-code these into programs
9993 cygwin* | mingw* | pw32*)
9994 version_type=windows
9995 shrext_cmds=".dll"
9996 need_version=no
9997 need_lib_prefix=no
9999 case $GCC,$host_os in
10000 yes,cygwin* | yes,mingw* | yes,pw32*)
10001 library_names_spec='$libname.dll.a'
10002 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10003 postinstall_cmds='base_file=`basename \${file}`~
10004 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10005 dldir=$destdir/`dirname \$dlpath`~
10006 test -d \$dldir || mkdir -p \$dldir~
10007 $install_prog $dir/$dlname \$dldir/$dlname~
10008 chmod a+x \$dldir/$dlname'
10009 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10010 dlpath=$dir/\$dldll~
10011 $rm \$dlpath'
10012 shlibpath_overrides_runpath=yes
10014 case $host_os in
10015 cygwin*)
10016 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10017 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10018 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10020 mingw*)
10021 # MinGW DLLs use traditional 'lib' prefix
10022 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10023 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10024 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10025 # It is most probably a Windows format PATH printed by
10026 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10027 # path with ; separators, and with drive letters. We can handle the
10028 # drive letters (cygwin fileutils understands them), so leave them,
10029 # especially as we might pass files found there to a mingw objdump,
10030 # which wouldn't understand a cygwinified path. Ahh.
10031 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10032 else
10033 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10036 pw32*)
10037 # pw32 DLLs use 'pw' prefix rather than 'lib'
10038 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10040 esac
10044 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10046 esac
10047 dynamic_linker='Win32 ld.exe'
10048 # FIXME: first we should search . and the directory the executable is in
10049 shlibpath_var=PATH
10052 darwin* | rhapsody*)
10053 dynamic_linker="$host_os dyld"
10054 version_type=darwin
10055 need_lib_prefix=no
10056 need_version=no
10057 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10058 soname_spec='${libname}${release}${major}$shared_ext'
10059 shlibpath_overrides_runpath=yes
10060 shlibpath_var=DYLD_LIBRARY_PATH
10061 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10062 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10063 if test "$GCC" = yes; then
10064 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
10065 else
10066 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10068 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10071 dgux*)
10072 version_type=linux
10073 need_lib_prefix=no
10074 need_version=no
10075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10076 soname_spec='${libname}${release}${shared_ext}$major'
10077 shlibpath_var=LD_LIBRARY_PATH
10080 freebsd1*)
10081 dynamic_linker=no
10084 kfreebsd*-gnu)
10085 version_type=linux
10086 need_lib_prefix=no
10087 need_version=no
10088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10089 soname_spec='${libname}${release}${shared_ext}$major'
10090 shlibpath_var=LD_LIBRARY_PATH
10091 shlibpath_overrides_runpath=no
10092 hardcode_into_libs=yes
10093 dynamic_linker='GNU ld.so'
10096 freebsd* | dragonfly*)
10097 # DragonFly does not have aout. When/if they implement a new
10098 # versioning mechanism, adjust this.
10099 if test -x /usr/bin/objformat; then
10100 objformat=`/usr/bin/objformat`
10101 else
10102 case $host_os in
10103 freebsd[123]*) objformat=aout ;;
10104 *) objformat=elf ;;
10105 esac
10107 version_type=freebsd-$objformat
10108 case $version_type in
10109 freebsd-elf*)
10110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10111 need_version=no
10112 need_lib_prefix=no
10114 freebsd-*)
10115 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10116 need_version=yes
10118 esac
10119 shlibpath_var=LD_LIBRARY_PATH
10120 case $host_os in
10121 freebsd2*)
10122 shlibpath_overrides_runpath=yes
10124 freebsd3.[01]* | freebsdelf3.[01]*)
10125 shlibpath_overrides_runpath=yes
10126 hardcode_into_libs=yes
10128 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10129 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10130 shlibpath_overrides_runpath=no
10131 hardcode_into_libs=yes
10133 freebsd*) # from 4.6 on
10134 shlibpath_overrides_runpath=yes
10135 hardcode_into_libs=yes
10137 esac
10140 gnu*)
10141 version_type=linux
10142 need_lib_prefix=no
10143 need_version=no
10144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10145 soname_spec='${libname}${release}${shared_ext}$major'
10146 shlibpath_var=LD_LIBRARY_PATH
10147 hardcode_into_libs=yes
10150 hpux9* | hpux10* | hpux11*)
10151 # Give a soname corresponding to the major version so that dld.sl refuses to
10152 # link against other versions.
10153 version_type=sunos
10154 need_lib_prefix=no
10155 need_version=no
10156 case $host_cpu in
10157 ia64*)
10158 shrext_cmds='.so'
10159 hardcode_into_libs=yes
10160 dynamic_linker="$host_os dld.so"
10161 shlibpath_var=LD_LIBRARY_PATH
10162 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10164 soname_spec='${libname}${release}${shared_ext}$major'
10165 if test "X$HPUX_IA64_MODE" = X32; then
10166 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10167 else
10168 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10170 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10172 hppa*64*)
10173 shrext_cmds='.sl'
10174 hardcode_into_libs=yes
10175 dynamic_linker="$host_os dld.sl"
10176 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10177 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10179 soname_spec='${libname}${release}${shared_ext}$major'
10180 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10181 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10184 shrext_cmds='.sl'
10185 dynamic_linker="$host_os dld.sl"
10186 shlibpath_var=SHLIB_PATH
10187 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10189 soname_spec='${libname}${release}${shared_ext}$major'
10191 esac
10192 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10193 postinstall_cmds='chmod 555 $lib'
10196 interix3*)
10197 version_type=linux
10198 need_lib_prefix=no
10199 need_version=no
10200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10201 soname_spec='${libname}${release}${shared_ext}$major'
10202 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10203 shlibpath_var=LD_LIBRARY_PATH
10204 shlibpath_overrides_runpath=no
10205 hardcode_into_libs=yes
10208 irix5* | irix6* | nonstopux*)
10209 case $host_os in
10210 nonstopux*) version_type=nonstopux ;;
10212 if test "$lt_cv_prog_gnu_ld" = yes; then
10213 version_type=linux
10214 else
10215 version_type=irix
10216 fi ;;
10217 esac
10218 need_lib_prefix=no
10219 need_version=no
10220 soname_spec='${libname}${release}${shared_ext}$major'
10221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10222 case $host_os in
10223 irix5* | nonstopux*)
10224 libsuff= shlibsuff=
10227 case $LD in # libtool.m4 will add one of these switches to LD
10228 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10229 libsuff= shlibsuff= libmagic=32-bit;;
10230 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10231 libsuff=32 shlibsuff=N32 libmagic=N32;;
10232 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10233 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10234 *) libsuff= shlibsuff= libmagic=never-match;;
10235 esac
10237 esac
10238 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10239 shlibpath_overrides_runpath=no
10240 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10241 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10242 hardcode_into_libs=yes
10245 # No shared lib support for Linux oldld, aout, or coff.
10246 linux*oldld* | linux*aout* | linux*coff*)
10247 dynamic_linker=no
10250 # This must be Linux ELF.
10251 linux*)
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10258 shlibpath_var=LD_LIBRARY_PATH
10259 shlibpath_overrides_runpath=no
10260 # This implies no fast_install, which is unacceptable.
10261 # Some rework will be needed to allow for fast_install
10262 # before this can be enabled.
10263 hardcode_into_libs=yes
10265 # Append ld.so.conf contents to the search path
10266 if test -f /etc/ld.so.conf; then
10267 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10268 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10271 # We used to test for /lib/ld.so.1 and disable shared libraries on
10272 # powerpc, because MkLinux only supported shared libraries with the
10273 # GNU dynamic linker. Since this was broken with cross compilers,
10274 # most powerpc-linux boxes support dynamic linking these days and
10275 # people can always --disable-shared, the test was removed, and we
10276 # assume the GNU/Linux dynamic linker is in use.
10277 dynamic_linker='GNU/Linux ld.so'
10280 knetbsd*-gnu)
10281 version_type=linux
10282 need_lib_prefix=no
10283 need_version=no
10284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10285 soname_spec='${libname}${release}${shared_ext}$major'
10286 shlibpath_var=LD_LIBRARY_PATH
10287 shlibpath_overrides_runpath=no
10288 hardcode_into_libs=yes
10289 dynamic_linker='GNU ld.so'
10292 netbsd*)
10293 version_type=sunos
10294 need_lib_prefix=no
10295 need_version=no
10296 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10298 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10299 dynamic_linker='NetBSD (a.out) ld.so'
10300 else
10301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10302 soname_spec='${libname}${release}${shared_ext}$major'
10303 dynamic_linker='NetBSD ld.elf_so'
10305 shlibpath_var=LD_LIBRARY_PATH
10306 shlibpath_overrides_runpath=yes
10307 hardcode_into_libs=yes
10310 newsos6)
10311 version_type=linux
10312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10313 shlibpath_var=LD_LIBRARY_PATH
10314 shlibpath_overrides_runpath=yes
10317 nto-qnx*)
10318 version_type=linux
10319 need_lib_prefix=no
10320 need_version=no
10321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10322 soname_spec='${libname}${release}${shared_ext}$major'
10323 shlibpath_var=LD_LIBRARY_PATH
10324 shlibpath_overrides_runpath=yes
10327 openbsd*)
10328 version_type=sunos
10329 sys_lib_dlsearch_path_spec="/usr/lib"
10330 need_lib_prefix=no
10331 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10332 case $host_os in
10333 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10334 *) need_version=no ;;
10335 esac
10336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10337 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10338 shlibpath_var=LD_LIBRARY_PATH
10339 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10340 case $host_os in
10341 openbsd2.[89] | openbsd2.[89].*)
10342 shlibpath_overrides_runpath=no
10345 shlibpath_overrides_runpath=yes
10347 esac
10348 else
10349 shlibpath_overrides_runpath=yes
10353 os2*)
10354 libname_spec='$name'
10355 shrext_cmds=".dll"
10356 need_lib_prefix=no
10357 library_names_spec='$libname${shared_ext} $libname.a'
10358 dynamic_linker='OS/2 ld.exe'
10359 shlibpath_var=LIBPATH
10362 osf3* | osf4* | osf5*)
10363 version_type=osf
10364 need_lib_prefix=no
10365 need_version=no
10366 soname_spec='${libname}${release}${shared_ext}$major'
10367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10368 shlibpath_var=LD_LIBRARY_PATH
10369 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10370 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10373 solaris*)
10374 version_type=linux
10375 need_lib_prefix=no
10376 need_version=no
10377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10378 soname_spec='${libname}${release}${shared_ext}$major'
10379 shlibpath_var=LD_LIBRARY_PATH
10380 shlibpath_overrides_runpath=yes
10381 hardcode_into_libs=yes
10382 # ldd complains unless libraries are executable
10383 postinstall_cmds='chmod +x $lib'
10386 sunos4*)
10387 version_type=sunos
10388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10389 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10390 shlibpath_var=LD_LIBRARY_PATH
10391 shlibpath_overrides_runpath=yes
10392 if test "$with_gnu_ld" = yes; then
10393 need_lib_prefix=no
10395 need_version=yes
10398 sysv4 | sysv4.3*)
10399 version_type=linux
10400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10401 soname_spec='${libname}${release}${shared_ext}$major'
10402 shlibpath_var=LD_LIBRARY_PATH
10403 case $host_vendor in
10404 sni)
10405 shlibpath_overrides_runpath=no
10406 need_lib_prefix=no
10407 export_dynamic_flag_spec='${wl}-Blargedynsym'
10408 runpath_var=LD_RUN_PATH
10410 siemens)
10411 need_lib_prefix=no
10413 motorola)
10414 need_lib_prefix=no
10415 need_version=no
10416 shlibpath_overrides_runpath=no
10417 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10419 esac
10422 sysv4*MP*)
10423 if test -d /usr/nec ;then
10424 version_type=linux
10425 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10426 soname_spec='$libname${shared_ext}.$major'
10427 shlibpath_var=LD_LIBRARY_PATH
10431 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10432 version_type=freebsd-elf
10433 need_lib_prefix=no
10434 need_version=no
10435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10436 soname_spec='${libname}${release}${shared_ext}$major'
10437 shlibpath_var=LD_LIBRARY_PATH
10438 hardcode_into_libs=yes
10439 if test "$with_gnu_ld" = yes; then
10440 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10441 shlibpath_overrides_runpath=no
10442 else
10443 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10444 shlibpath_overrides_runpath=yes
10445 case $host_os in
10446 sco3.2v5*)
10447 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10449 esac
10451 sys_lib_dlsearch_path_spec='/usr/lib'
10454 uts4*)
10455 version_type=linux
10456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10457 soname_spec='${libname}${release}${shared_ext}$major'
10458 shlibpath_var=LD_LIBRARY_PATH
10462 dynamic_linker=no
10464 esac
10465 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10466 $as_echo "$dynamic_linker" >&6; }
10467 test "$dynamic_linker" = no && can_build_shared=no
10469 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10470 if test "$GCC" = yes; then
10471 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10474 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10475 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10476 hardcode_action=
10477 if test -n "$hardcode_libdir_flag_spec" || \
10478 test -n "$runpath_var" || \
10479 test "X$hardcode_automatic" = "Xyes" ; then
10481 # We can hardcode non-existant directories.
10482 if test "$hardcode_direct" != no &&
10483 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10484 # have to relink, otherwise we might link with an installed library
10485 # when we should be linking with a yet-to-be-installed one
10486 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10487 test "$hardcode_minus_L" != no; then
10488 # Linking always hardcodes the temporary library directory.
10489 hardcode_action=relink
10490 else
10491 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10492 hardcode_action=immediate
10494 else
10495 # We cannot hardcode anything, or else we can only hardcode existing
10496 # directories.
10497 hardcode_action=unsupported
10499 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10500 $as_echo "$hardcode_action" >&6; }
10502 if test "$hardcode_action" = relink; then
10503 # Fast installation is not supported
10504 enable_fast_install=no
10505 elif test "$shlibpath_overrides_runpath" = yes ||
10506 test "$enable_shared" = no; then
10507 # Fast installation is not necessary
10508 enable_fast_install=needless
10511 striplib=
10512 old_striplib=
10513 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10514 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10515 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10516 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10517 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10518 { $as_echo "$as_me:$LINENO: result: yes" >&5
10519 $as_echo "yes" >&6; }
10520 else
10521 # FIXME - insert some real tests, host_os isn't really good enough
10522 case $host_os in
10523 darwin*)
10524 if test -n "$STRIP" ; then
10525 striplib="$STRIP -x"
10526 { $as_echo "$as_me:$LINENO: result: yes" >&5
10527 $as_echo "yes" >&6; }
10528 else
10529 { $as_echo "$as_me:$LINENO: result: no" >&5
10530 $as_echo "no" >&6; }
10534 { $as_echo "$as_me:$LINENO: result: no" >&5
10535 $as_echo "no" >&6; }
10537 esac
10540 if test "x$enable_dlopen" != xyes; then
10541 enable_dlopen=unknown
10542 enable_dlopen_self=unknown
10543 enable_dlopen_self_static=unknown
10544 else
10545 lt_cv_dlopen=no
10546 lt_cv_dlopen_libs=
10548 case $host_os in
10549 beos*)
10550 lt_cv_dlopen="load_add_on"
10551 lt_cv_dlopen_libs=
10552 lt_cv_dlopen_self=yes
10555 mingw* | pw32*)
10556 lt_cv_dlopen="LoadLibrary"
10557 lt_cv_dlopen_libs=
10560 cygwin*)
10561 lt_cv_dlopen="dlopen"
10562 lt_cv_dlopen_libs=
10565 darwin*)
10566 # if libdl is installed we need to link against it
10567 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10568 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10569 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10570 $as_echo_n "(cached) " >&6
10571 else
10572 ac_check_lib_save_LIBS=$LIBS
10573 LIBS="-ldl $LIBS"
10574 cat >conftest.$ac_ext <<_ACEOF
10575 /* confdefs.h. */
10576 _ACEOF
10577 cat confdefs.h >>conftest.$ac_ext
10578 cat >>conftest.$ac_ext <<_ACEOF
10579 /* end confdefs.h. */
10581 /* Override any GCC internal prototype to avoid an error.
10582 Use char because int might match the return type of a GCC
10583 builtin and then its argument prototype would still apply. */
10584 #ifdef __cplusplus
10585 extern "C"
10586 #endif
10587 char dlopen ();
10589 main ()
10591 return dlopen ();
10593 return 0;
10595 _ACEOF
10596 rm -f conftest.$ac_objext conftest$ac_exeext
10597 if { (ac_try="$ac_link"
10598 case "(($ac_try" in
10599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10600 *) ac_try_echo=$ac_try;;
10601 esac
10602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10603 $as_echo "$ac_try_echo") >&5
10604 (eval "$ac_link") 2>conftest.er1
10605 ac_status=$?
10606 grep -v '^ *+' conftest.er1 >conftest.err
10607 rm -f conftest.er1
10608 cat conftest.err >&5
10609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610 (exit $ac_status); } && {
10611 test -z "$ac_c_werror_flag" ||
10612 test ! -s conftest.err
10613 } && test -s conftest$ac_exeext && {
10614 test "$cross_compiling" = yes ||
10615 $as_test_x conftest$ac_exeext
10616 }; then
10617 ac_cv_lib_dl_dlopen=yes
10618 else
10619 $as_echo "$as_me: failed program was:" >&5
10620 sed 's/^/| /' conftest.$ac_ext >&5
10622 ac_cv_lib_dl_dlopen=no
10625 rm -rf conftest.dSYM
10626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10627 conftest$ac_exeext conftest.$ac_ext
10628 LIBS=$ac_check_lib_save_LIBS
10630 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10631 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10632 if test $ac_cv_lib_dl_dlopen = yes; then
10633 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10634 else
10636 lt_cv_dlopen="dyld"
10637 lt_cv_dlopen_libs=
10638 lt_cv_dlopen_self=yes
10645 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10646 $as_echo_n "checking for shl_load... " >&6; }
10647 if test "${ac_cv_func_shl_load+set}" = set; then
10648 $as_echo_n "(cached) " >&6
10649 else
10650 cat >conftest.$ac_ext <<_ACEOF
10651 /* confdefs.h. */
10652 _ACEOF
10653 cat confdefs.h >>conftest.$ac_ext
10654 cat >>conftest.$ac_ext <<_ACEOF
10655 /* end confdefs.h. */
10656 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10657 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10658 #define shl_load innocuous_shl_load
10660 /* System header to define __stub macros and hopefully few prototypes,
10661 which can conflict with char shl_load (); below.
10662 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10663 <limits.h> exists even on freestanding compilers. */
10665 #ifdef __STDC__
10666 # include <limits.h>
10667 #else
10668 # include <assert.h>
10669 #endif
10671 #undef shl_load
10673 /* Override any GCC internal prototype to avoid an error.
10674 Use char because int might match the return type of a GCC
10675 builtin and then its argument prototype would still apply. */
10676 #ifdef __cplusplus
10677 extern "C"
10678 #endif
10679 char shl_load ();
10680 /* The GNU C library defines this for functions which it implements
10681 to always fail with ENOSYS. Some functions are actually named
10682 something starting with __ and the normal name is an alias. */
10683 #if defined __stub_shl_load || defined __stub___shl_load
10684 choke me
10685 #endif
10688 main ()
10690 return shl_load ();
10692 return 0;
10694 _ACEOF
10695 rm -f conftest.$ac_objext conftest$ac_exeext
10696 if { (ac_try="$ac_link"
10697 case "(($ac_try" in
10698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10699 *) ac_try_echo=$ac_try;;
10700 esac
10701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10702 $as_echo "$ac_try_echo") >&5
10703 (eval "$ac_link") 2>conftest.er1
10704 ac_status=$?
10705 grep -v '^ *+' conftest.er1 >conftest.err
10706 rm -f conftest.er1
10707 cat conftest.err >&5
10708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709 (exit $ac_status); } && {
10710 test -z "$ac_c_werror_flag" ||
10711 test ! -s conftest.err
10712 } && test -s conftest$ac_exeext && {
10713 test "$cross_compiling" = yes ||
10714 $as_test_x conftest$ac_exeext
10715 }; then
10716 ac_cv_func_shl_load=yes
10717 else
10718 $as_echo "$as_me: failed program was:" >&5
10719 sed 's/^/| /' conftest.$ac_ext >&5
10721 ac_cv_func_shl_load=no
10724 rm -rf conftest.dSYM
10725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10726 conftest$ac_exeext conftest.$ac_ext
10728 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10729 $as_echo "$ac_cv_func_shl_load" >&6; }
10730 if test $ac_cv_func_shl_load = yes; then
10731 lt_cv_dlopen="shl_load"
10732 else
10733 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10734 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10735 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10736 $as_echo_n "(cached) " >&6
10737 else
10738 ac_check_lib_save_LIBS=$LIBS
10739 LIBS="-ldld $LIBS"
10740 cat >conftest.$ac_ext <<_ACEOF
10741 /* confdefs.h. */
10742 _ACEOF
10743 cat confdefs.h >>conftest.$ac_ext
10744 cat >>conftest.$ac_ext <<_ACEOF
10745 /* end confdefs.h. */
10747 /* Override any GCC internal prototype to avoid an error.
10748 Use char because int might match the return type of a GCC
10749 builtin and then its argument prototype would still apply. */
10750 #ifdef __cplusplus
10751 extern "C"
10752 #endif
10753 char shl_load ();
10755 main ()
10757 return shl_load ();
10759 return 0;
10761 _ACEOF
10762 rm -f conftest.$ac_objext conftest$ac_exeext
10763 if { (ac_try="$ac_link"
10764 case "(($ac_try" in
10765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10766 *) ac_try_echo=$ac_try;;
10767 esac
10768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10769 $as_echo "$ac_try_echo") >&5
10770 (eval "$ac_link") 2>conftest.er1
10771 ac_status=$?
10772 grep -v '^ *+' conftest.er1 >conftest.err
10773 rm -f conftest.er1
10774 cat conftest.err >&5
10775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776 (exit $ac_status); } && {
10777 test -z "$ac_c_werror_flag" ||
10778 test ! -s conftest.err
10779 } && test -s conftest$ac_exeext && {
10780 test "$cross_compiling" = yes ||
10781 $as_test_x conftest$ac_exeext
10782 }; then
10783 ac_cv_lib_dld_shl_load=yes
10784 else
10785 $as_echo "$as_me: failed program was:" >&5
10786 sed 's/^/| /' conftest.$ac_ext >&5
10788 ac_cv_lib_dld_shl_load=no
10791 rm -rf conftest.dSYM
10792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10793 conftest$ac_exeext conftest.$ac_ext
10794 LIBS=$ac_check_lib_save_LIBS
10796 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10797 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10798 if test $ac_cv_lib_dld_shl_load = yes; then
10799 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10800 else
10801 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10802 $as_echo_n "checking for dlopen... " >&6; }
10803 if test "${ac_cv_func_dlopen+set}" = set; then
10804 $as_echo_n "(cached) " >&6
10805 else
10806 cat >conftest.$ac_ext <<_ACEOF
10807 /* confdefs.h. */
10808 _ACEOF
10809 cat confdefs.h >>conftest.$ac_ext
10810 cat >>conftest.$ac_ext <<_ACEOF
10811 /* end confdefs.h. */
10812 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10814 #define dlopen innocuous_dlopen
10816 /* System header to define __stub macros and hopefully few prototypes,
10817 which can conflict with char dlopen (); below.
10818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10819 <limits.h> exists even on freestanding compilers. */
10821 #ifdef __STDC__
10822 # include <limits.h>
10823 #else
10824 # include <assert.h>
10825 #endif
10827 #undef dlopen
10829 /* Override any GCC internal prototype to avoid an error.
10830 Use char because int might match the return type of a GCC
10831 builtin and then its argument prototype would still apply. */
10832 #ifdef __cplusplus
10833 extern "C"
10834 #endif
10835 char dlopen ();
10836 /* The GNU C library defines this for functions which it implements
10837 to always fail with ENOSYS. Some functions are actually named
10838 something starting with __ and the normal name is an alias. */
10839 #if defined __stub_dlopen || defined __stub___dlopen
10840 choke me
10841 #endif
10844 main ()
10846 return dlopen ();
10848 return 0;
10850 _ACEOF
10851 rm -f conftest.$ac_objext conftest$ac_exeext
10852 if { (ac_try="$ac_link"
10853 case "(($ac_try" in
10854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10855 *) ac_try_echo=$ac_try;;
10856 esac
10857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10858 $as_echo "$ac_try_echo") >&5
10859 (eval "$ac_link") 2>conftest.er1
10860 ac_status=$?
10861 grep -v '^ *+' conftest.er1 >conftest.err
10862 rm -f conftest.er1
10863 cat conftest.err >&5
10864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865 (exit $ac_status); } && {
10866 test -z "$ac_c_werror_flag" ||
10867 test ! -s conftest.err
10868 } && test -s conftest$ac_exeext && {
10869 test "$cross_compiling" = yes ||
10870 $as_test_x conftest$ac_exeext
10871 }; then
10872 ac_cv_func_dlopen=yes
10873 else
10874 $as_echo "$as_me: failed program was:" >&5
10875 sed 's/^/| /' conftest.$ac_ext >&5
10877 ac_cv_func_dlopen=no
10880 rm -rf conftest.dSYM
10881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10882 conftest$ac_exeext conftest.$ac_ext
10884 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10885 $as_echo "$ac_cv_func_dlopen" >&6; }
10886 if test $ac_cv_func_dlopen = yes; then
10887 lt_cv_dlopen="dlopen"
10888 else
10889 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10890 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10891 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10892 $as_echo_n "(cached) " >&6
10893 else
10894 ac_check_lib_save_LIBS=$LIBS
10895 LIBS="-ldl $LIBS"
10896 cat >conftest.$ac_ext <<_ACEOF
10897 /* confdefs.h. */
10898 _ACEOF
10899 cat confdefs.h >>conftest.$ac_ext
10900 cat >>conftest.$ac_ext <<_ACEOF
10901 /* end confdefs.h. */
10903 /* Override any GCC internal prototype to avoid an error.
10904 Use char because int might match the return type of a GCC
10905 builtin and then its argument prototype would still apply. */
10906 #ifdef __cplusplus
10907 extern "C"
10908 #endif
10909 char dlopen ();
10911 main ()
10913 return dlopen ();
10915 return 0;
10917 _ACEOF
10918 rm -f conftest.$ac_objext conftest$ac_exeext
10919 if { (ac_try="$ac_link"
10920 case "(($ac_try" in
10921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10922 *) ac_try_echo=$ac_try;;
10923 esac
10924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10925 $as_echo "$ac_try_echo") >&5
10926 (eval "$ac_link") 2>conftest.er1
10927 ac_status=$?
10928 grep -v '^ *+' conftest.er1 >conftest.err
10929 rm -f conftest.er1
10930 cat conftest.err >&5
10931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); } && {
10933 test -z "$ac_c_werror_flag" ||
10934 test ! -s conftest.err
10935 } && test -s conftest$ac_exeext && {
10936 test "$cross_compiling" = yes ||
10937 $as_test_x conftest$ac_exeext
10938 }; then
10939 ac_cv_lib_dl_dlopen=yes
10940 else
10941 $as_echo "$as_me: failed program was:" >&5
10942 sed 's/^/| /' conftest.$ac_ext >&5
10944 ac_cv_lib_dl_dlopen=no
10947 rm -rf conftest.dSYM
10948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10949 conftest$ac_exeext conftest.$ac_ext
10950 LIBS=$ac_check_lib_save_LIBS
10952 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10953 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10954 if test $ac_cv_lib_dl_dlopen = yes; then
10955 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10956 else
10957 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10958 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10959 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10960 $as_echo_n "(cached) " >&6
10961 else
10962 ac_check_lib_save_LIBS=$LIBS
10963 LIBS="-lsvld $LIBS"
10964 cat >conftest.$ac_ext <<_ACEOF
10965 /* confdefs.h. */
10966 _ACEOF
10967 cat confdefs.h >>conftest.$ac_ext
10968 cat >>conftest.$ac_ext <<_ACEOF
10969 /* end confdefs.h. */
10971 /* Override any GCC internal prototype to avoid an error.
10972 Use char because int might match the return type of a GCC
10973 builtin and then its argument prototype would still apply. */
10974 #ifdef __cplusplus
10975 extern "C"
10976 #endif
10977 char dlopen ();
10979 main ()
10981 return dlopen ();
10983 return 0;
10985 _ACEOF
10986 rm -f conftest.$ac_objext conftest$ac_exeext
10987 if { (ac_try="$ac_link"
10988 case "(($ac_try" in
10989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10990 *) ac_try_echo=$ac_try;;
10991 esac
10992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10993 $as_echo "$ac_try_echo") >&5
10994 (eval "$ac_link") 2>conftest.er1
10995 ac_status=$?
10996 grep -v '^ *+' conftest.er1 >conftest.err
10997 rm -f conftest.er1
10998 cat conftest.err >&5
10999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000 (exit $ac_status); } && {
11001 test -z "$ac_c_werror_flag" ||
11002 test ! -s conftest.err
11003 } && test -s conftest$ac_exeext && {
11004 test "$cross_compiling" = yes ||
11005 $as_test_x conftest$ac_exeext
11006 }; then
11007 ac_cv_lib_svld_dlopen=yes
11008 else
11009 $as_echo "$as_me: failed program was:" >&5
11010 sed 's/^/| /' conftest.$ac_ext >&5
11012 ac_cv_lib_svld_dlopen=no
11015 rm -rf conftest.dSYM
11016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11017 conftest$ac_exeext conftest.$ac_ext
11018 LIBS=$ac_check_lib_save_LIBS
11020 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11021 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11022 if test $ac_cv_lib_svld_dlopen = yes; then
11023 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11024 else
11025 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11026 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11027 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11028 $as_echo_n "(cached) " >&6
11029 else
11030 ac_check_lib_save_LIBS=$LIBS
11031 LIBS="-ldld $LIBS"
11032 cat >conftest.$ac_ext <<_ACEOF
11033 /* confdefs.h. */
11034 _ACEOF
11035 cat confdefs.h >>conftest.$ac_ext
11036 cat >>conftest.$ac_ext <<_ACEOF
11037 /* end confdefs.h. */
11039 /* Override any GCC internal prototype to avoid an error.
11040 Use char because int might match the return type of a GCC
11041 builtin and then its argument prototype would still apply. */
11042 #ifdef __cplusplus
11043 extern "C"
11044 #endif
11045 char dld_link ();
11047 main ()
11049 return dld_link ();
11051 return 0;
11053 _ACEOF
11054 rm -f conftest.$ac_objext conftest$ac_exeext
11055 if { (ac_try="$ac_link"
11056 case "(($ac_try" in
11057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11058 *) ac_try_echo=$ac_try;;
11059 esac
11060 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11061 $as_echo "$ac_try_echo") >&5
11062 (eval "$ac_link") 2>conftest.er1
11063 ac_status=$?
11064 grep -v '^ *+' conftest.er1 >conftest.err
11065 rm -f conftest.er1
11066 cat conftest.err >&5
11067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 (exit $ac_status); } && {
11069 test -z "$ac_c_werror_flag" ||
11070 test ! -s conftest.err
11071 } && test -s conftest$ac_exeext && {
11072 test "$cross_compiling" = yes ||
11073 $as_test_x conftest$ac_exeext
11074 }; then
11075 ac_cv_lib_dld_dld_link=yes
11076 else
11077 $as_echo "$as_me: failed program was:" >&5
11078 sed 's/^/| /' conftest.$ac_ext >&5
11080 ac_cv_lib_dld_dld_link=no
11083 rm -rf conftest.dSYM
11084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11085 conftest$ac_exeext conftest.$ac_ext
11086 LIBS=$ac_check_lib_save_LIBS
11088 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11089 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11090 if test $ac_cv_lib_dld_dld_link = yes; then
11091 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11110 esac
11112 if test "x$lt_cv_dlopen" != xno; then
11113 enable_dlopen=yes
11114 else
11115 enable_dlopen=no
11118 case $lt_cv_dlopen in
11119 dlopen)
11120 save_CPPFLAGS="$CPPFLAGS"
11121 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11123 save_LDFLAGS="$LDFLAGS"
11124 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11126 save_LIBS="$LIBS"
11127 LIBS="$lt_cv_dlopen_libs $LIBS"
11129 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11130 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11131 if test "${lt_cv_dlopen_self+set}" = set; then
11132 $as_echo_n "(cached) " >&6
11133 else
11134 if test "$cross_compiling" = yes; then :
11135 lt_cv_dlopen_self=cross
11136 else
11137 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11138 lt_status=$lt_dlunknown
11139 cat > conftest.$ac_ext <<EOF
11140 #line 11140 "configure"
11141 #include "confdefs.h"
11143 #if HAVE_DLFCN_H
11144 #include <dlfcn.h>
11145 #endif
11147 #include <stdio.h>
11149 #ifdef RTLD_GLOBAL
11150 # define LT_DLGLOBAL RTLD_GLOBAL
11151 #else
11152 # ifdef DL_GLOBAL
11153 # define LT_DLGLOBAL DL_GLOBAL
11154 # else
11155 # define LT_DLGLOBAL 0
11156 # endif
11157 #endif
11159 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11160 find out it does not work in some platform. */
11161 #ifndef LT_DLLAZY_OR_NOW
11162 # ifdef RTLD_LAZY
11163 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11164 # else
11165 # ifdef DL_LAZY
11166 # define LT_DLLAZY_OR_NOW DL_LAZY
11167 # else
11168 # ifdef RTLD_NOW
11169 # define LT_DLLAZY_OR_NOW RTLD_NOW
11170 # else
11171 # ifdef DL_NOW
11172 # define LT_DLLAZY_OR_NOW DL_NOW
11173 # else
11174 # define LT_DLLAZY_OR_NOW 0
11175 # endif
11176 # endif
11177 # endif
11178 # endif
11179 #endif
11181 #ifdef __cplusplus
11182 extern "C" void exit (int);
11183 #endif
11185 void fnord() { int i=42;}
11186 int main ()
11188 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11189 int status = $lt_dlunknown;
11191 if (self)
11193 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11194 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11195 /* dlclose (self); */
11197 else
11198 puts (dlerror ());
11200 exit (status);
11203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11204 (eval $ac_link) 2>&5
11205 ac_status=$?
11206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11208 (./conftest; exit; ) >&5 2>/dev/null
11209 lt_status=$?
11210 case x$lt_status in
11211 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11212 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11213 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11214 esac
11215 else :
11216 # compilation failed
11217 lt_cv_dlopen_self=no
11220 rm -fr conftest*
11224 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11225 $as_echo "$lt_cv_dlopen_self" >&6; }
11227 if test "x$lt_cv_dlopen_self" = xyes; then
11228 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11229 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11230 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11231 if test "${lt_cv_dlopen_self_static+set}" = set; then
11232 $as_echo_n "(cached) " >&6
11233 else
11234 if test "$cross_compiling" = yes; then :
11235 lt_cv_dlopen_self_static=cross
11236 else
11237 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11238 lt_status=$lt_dlunknown
11239 cat > conftest.$ac_ext <<EOF
11240 #line 11240 "configure"
11241 #include "confdefs.h"
11243 #if HAVE_DLFCN_H
11244 #include <dlfcn.h>
11245 #endif
11247 #include <stdio.h>
11249 #ifdef RTLD_GLOBAL
11250 # define LT_DLGLOBAL RTLD_GLOBAL
11251 #else
11252 # ifdef DL_GLOBAL
11253 # define LT_DLGLOBAL DL_GLOBAL
11254 # else
11255 # define LT_DLGLOBAL 0
11256 # endif
11257 #endif
11259 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11260 find out it does not work in some platform. */
11261 #ifndef LT_DLLAZY_OR_NOW
11262 # ifdef RTLD_LAZY
11263 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11264 # else
11265 # ifdef DL_LAZY
11266 # define LT_DLLAZY_OR_NOW DL_LAZY
11267 # else
11268 # ifdef RTLD_NOW
11269 # define LT_DLLAZY_OR_NOW RTLD_NOW
11270 # else
11271 # ifdef DL_NOW
11272 # define LT_DLLAZY_OR_NOW DL_NOW
11273 # else
11274 # define LT_DLLAZY_OR_NOW 0
11275 # endif
11276 # endif
11277 # endif
11278 # endif
11279 #endif
11281 #ifdef __cplusplus
11282 extern "C" void exit (int);
11283 #endif
11285 void fnord() { int i=42;}
11286 int main ()
11288 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11289 int status = $lt_dlunknown;
11291 if (self)
11293 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11294 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11295 /* dlclose (self); */
11297 else
11298 puts (dlerror ());
11300 exit (status);
11303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11304 (eval $ac_link) 2>&5
11305 ac_status=$?
11306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11308 (./conftest; exit; ) >&5 2>/dev/null
11309 lt_status=$?
11310 case x$lt_status in
11311 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11312 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11313 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11314 esac
11315 else :
11316 # compilation failed
11317 lt_cv_dlopen_self_static=no
11320 rm -fr conftest*
11324 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11325 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11328 CPPFLAGS="$save_CPPFLAGS"
11329 LDFLAGS="$save_LDFLAGS"
11330 LIBS="$save_LIBS"
11332 esac
11334 case $lt_cv_dlopen_self in
11335 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11336 *) enable_dlopen_self=unknown ;;
11337 esac
11339 case $lt_cv_dlopen_self_static in
11340 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11341 *) enable_dlopen_self_static=unknown ;;
11342 esac
11346 # Report which library types will actually be built
11347 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11348 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11349 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11350 $as_echo "$can_build_shared" >&6; }
11352 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11353 $as_echo_n "checking whether to build shared libraries... " >&6; }
11354 test "$can_build_shared" = "no" && enable_shared=no
11356 # On AIX, shared libraries and static libraries use the same namespace, and
11357 # are all built from PIC.
11358 case $host_os in
11359 aix3*)
11360 test "$enable_shared" = yes && enable_static=no
11361 if test -n "$RANLIB"; then
11362 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11363 postinstall_cmds='$RANLIB $lib'
11367 aix4* | aix5*)
11368 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11369 test "$enable_shared" = yes && enable_static=no
11372 esac
11373 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11374 $as_echo "$enable_shared" >&6; }
11376 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11377 $as_echo_n "checking whether to build static libraries... " >&6; }
11378 # Make sure either enable_shared or enable_static is yes.
11379 test "$enable_shared" = yes || enable_static=yes
11380 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11381 $as_echo "$enable_static" >&6; }
11383 # The else clause should only fire when bootstrapping the
11384 # libtool distribution, otherwise you forgot to ship ltmain.sh
11385 # with your package, and you will get complaints that there are
11386 # no rules to generate ltmain.sh.
11387 if test -f "$ltmain"; then
11388 # See if we are running on zsh, and set the options which allow our commands through
11389 # without removal of \ escapes.
11390 if test -n "${ZSH_VERSION+set}" ; then
11391 setopt NO_GLOB_SUBST
11393 # Now quote all the things that may contain metacharacters while being
11394 # careful not to overquote the AC_SUBSTed values. We take copies of the
11395 # variables and quote the copies for generation of the libtool script.
11396 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11397 SED SHELL STRIP \
11398 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11399 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11400 deplibs_check_method reload_flag reload_cmds need_locks \
11401 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11402 lt_cv_sys_global_symbol_to_c_name_address \
11403 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11404 old_postinstall_cmds old_postuninstall_cmds \
11405 compiler \
11406 CC \
11407 LD \
11408 lt_prog_compiler_wl \
11409 lt_prog_compiler_pic \
11410 lt_prog_compiler_static \
11411 lt_prog_compiler_no_builtin_flag \
11412 export_dynamic_flag_spec \
11413 thread_safe_flag_spec \
11414 whole_archive_flag_spec \
11415 enable_shared_with_static_runtimes \
11416 old_archive_cmds \
11417 old_archive_from_new_cmds \
11418 predep_objects \
11419 postdep_objects \
11420 predeps \
11421 postdeps \
11422 compiler_lib_search_path \
11423 archive_cmds \
11424 archive_expsym_cmds \
11425 postinstall_cmds \
11426 postuninstall_cmds \
11427 old_archive_from_expsyms_cmds \
11428 allow_undefined_flag \
11429 no_undefined_flag \
11430 export_symbols_cmds \
11431 hardcode_libdir_flag_spec \
11432 hardcode_libdir_flag_spec_ld \
11433 hardcode_libdir_separator \
11434 hardcode_automatic \
11435 module_cmds \
11436 module_expsym_cmds \
11437 lt_cv_prog_compiler_c_o \
11438 exclude_expsyms \
11439 include_expsyms; do
11441 case $var in
11442 old_archive_cmds | \
11443 old_archive_from_new_cmds | \
11444 archive_cmds | \
11445 archive_expsym_cmds | \
11446 module_cmds | \
11447 module_expsym_cmds | \
11448 old_archive_from_expsyms_cmds | \
11449 export_symbols_cmds | \
11450 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11451 postinstall_cmds | postuninstall_cmds | \
11452 old_postinstall_cmds | old_postuninstall_cmds | \
11453 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11454 # Double-quote double-evaled strings.
11455 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11458 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11460 esac
11461 done
11463 case $lt_echo in
11464 *'\$0 --fallback-echo"')
11465 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11467 esac
11469 cfgfile="${ofile}T"
11470 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11471 $rm -f "$cfgfile"
11472 { $as_echo "$as_me:$LINENO: creating $ofile" >&5
11473 $as_echo "$as_me: creating $ofile" >&6;}
11475 cat <<__EOF__ >> "$cfgfile"
11476 #! $SHELL
11478 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11479 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11480 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11482 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11483 # Free Software Foundation, Inc.
11485 # This file is part of GNU Libtool:
11486 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11488 # This program is free software; you can redistribute it and/or modify
11489 # it under the terms of the GNU General Public License as published by
11490 # the Free Software Foundation; either version 2 of the License, or
11491 # (at your option) any later version.
11493 # This program is distributed in the hope that it will be useful, but
11494 # WITHOUT ANY WARRANTY; without even the implied warranty of
11495 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11496 # General Public License for more details.
11498 # You should have received a copy of the GNU General Public License
11499 # along with this program; if not, write to the Free Software
11500 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11502 # As a special exception to the GNU General Public License, if you
11503 # distribute this file as part of a program that contains a
11504 # configuration script generated by Autoconf, you may include it under
11505 # the same distribution terms that you use for the rest of that program.
11507 # A sed program that does not truncate output.
11508 SED=$lt_SED
11510 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11511 Xsed="$SED -e 1s/^X//"
11513 # The HP-UX ksh and POSIX shell print the target directory to stdout
11514 # if CDPATH is set.
11515 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11517 # The names of the tagged configurations supported by this script.
11518 available_tags=
11520 # ### BEGIN LIBTOOL CONFIG
11522 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11524 # Shell to use when invoking shell scripts.
11525 SHELL=$lt_SHELL
11527 # Whether or not to build shared libraries.
11528 build_libtool_libs=$enable_shared
11530 # Whether or not to build static libraries.
11531 build_old_libs=$enable_static
11533 # Whether or not to add -lc for building shared libraries.
11534 build_libtool_need_lc=$archive_cmds_need_lc
11536 # Whether or not to disallow shared libs when runtime libs are static
11537 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11539 # Whether or not to optimize for fast installation.
11540 fast_install=$enable_fast_install
11542 # The host system.
11543 host_alias=$host_alias
11544 host=$host
11545 host_os=$host_os
11547 # The build system.
11548 build_alias=$build_alias
11549 build=$build
11550 build_os=$build_os
11552 # An echo program that does not interpret backslashes.
11553 echo=$lt_echo
11555 # The archiver.
11556 AR=$lt_AR
11557 AR_FLAGS=$lt_AR_FLAGS
11559 # A C compiler.
11560 LTCC=$lt_LTCC
11562 # LTCC compiler flags.
11563 LTCFLAGS=$lt_LTCFLAGS
11565 # A language-specific compiler.
11566 CC=$lt_compiler
11568 # Is the compiler the GNU C compiler?
11569 with_gcc=$GCC
11571 # An ERE matcher.
11572 EGREP=$lt_EGREP
11574 # The linker used to build libraries.
11575 LD=$lt_LD
11577 # Whether we need hard or soft links.
11578 LN_S=$lt_LN_S
11580 # A BSD-compatible nm program.
11581 NM=$lt_NM
11583 # A symbol stripping program
11584 STRIP=$lt_STRIP
11586 # Used to examine libraries when file_magic_cmd begins "file"
11587 MAGIC_CMD=$MAGIC_CMD
11589 # Used on cygwin: DLL creation program.
11590 DLLTOOL="$DLLTOOL"
11592 # Used on cygwin: object dumper.
11593 OBJDUMP="$OBJDUMP"
11595 # Used on cygwin: assembler.
11596 AS="$AS"
11598 # The name of the directory that contains temporary libtool files.
11599 objdir=$objdir
11601 # How to create reloadable object files.
11602 reload_flag=$lt_reload_flag
11603 reload_cmds=$lt_reload_cmds
11605 # How to pass a linker flag through the compiler.
11606 wl=$lt_lt_prog_compiler_wl
11608 # Object file suffix (normally "o").
11609 objext="$ac_objext"
11611 # Old archive suffix (normally "a").
11612 libext="$libext"
11614 # Shared library suffix (normally ".so").
11615 shrext_cmds='$shrext_cmds'
11617 # Executable file suffix (normally "").
11618 exeext="$exeext"
11620 # Additional compiler flags for building library objects.
11621 pic_flag=$lt_lt_prog_compiler_pic
11622 pic_mode=$pic_mode
11624 # What is the maximum length of a command?
11625 max_cmd_len=$lt_cv_sys_max_cmd_len
11627 # Does compiler simultaneously support -c and -o options?
11628 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11630 # Must we lock files when doing compilation?
11631 need_locks=$lt_need_locks
11633 # Do we need the lib prefix for modules?
11634 need_lib_prefix=$need_lib_prefix
11636 # Do we need a version for libraries?
11637 need_version=$need_version
11639 # Whether dlopen is supported.
11640 dlopen_support=$enable_dlopen
11642 # Whether dlopen of programs is supported.
11643 dlopen_self=$enable_dlopen_self
11645 # Whether dlopen of statically linked programs is supported.
11646 dlopen_self_static=$enable_dlopen_self_static
11648 # Compiler flag to prevent dynamic linking.
11649 link_static_flag=$lt_lt_prog_compiler_static
11651 # Compiler flag to turn off builtin functions.
11652 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11654 # Compiler flag to allow reflexive dlopens.
11655 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11657 # Compiler flag to generate shared objects directly from archives.
11658 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11660 # Compiler flag to generate thread-safe objects.
11661 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11663 # Library versioning type.
11664 version_type=$version_type
11666 # Format of library name prefix.
11667 libname_spec=$lt_libname_spec
11669 # List of archive names. First name is the real one, the rest are links.
11670 # The last name is the one that the linker finds with -lNAME.
11671 library_names_spec=$lt_library_names_spec
11673 # The coded name of the library, if different from the real name.
11674 soname_spec=$lt_soname_spec
11676 # Commands used to build and install an old-style archive.
11677 RANLIB=$lt_RANLIB
11678 old_archive_cmds=$lt_old_archive_cmds
11679 old_postinstall_cmds=$lt_old_postinstall_cmds
11680 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11682 # Create an old-style archive from a shared archive.
11683 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11685 # Create a temporary old-style archive to link instead of a shared archive.
11686 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11688 # Commands used to build and install a shared archive.
11689 archive_cmds=$lt_archive_cmds
11690 archive_expsym_cmds=$lt_archive_expsym_cmds
11691 postinstall_cmds=$lt_postinstall_cmds
11692 postuninstall_cmds=$lt_postuninstall_cmds
11694 # Commands used to build a loadable module (assumed same as above if empty)
11695 module_cmds=$lt_module_cmds
11696 module_expsym_cmds=$lt_module_expsym_cmds
11698 # Commands to strip libraries.
11699 old_striplib=$lt_old_striplib
11700 striplib=$lt_striplib
11702 # Dependencies to place before the objects being linked to create a
11703 # shared library.
11704 predep_objects=$lt_predep_objects
11706 # Dependencies to place after the objects being linked to create a
11707 # shared library.
11708 postdep_objects=$lt_postdep_objects
11710 # Dependencies to place before the objects being linked to create a
11711 # shared library.
11712 predeps=$lt_predeps
11714 # Dependencies to place after the objects being linked to create a
11715 # shared library.
11716 postdeps=$lt_postdeps
11718 # The library search path used internally by the compiler when linking
11719 # a shared library.
11720 compiler_lib_search_path=$lt_compiler_lib_search_path
11722 # Method to check whether dependent libraries are shared objects.
11723 deplibs_check_method=$lt_deplibs_check_method
11725 # Command to use when deplibs_check_method == file_magic.
11726 file_magic_cmd=$lt_file_magic_cmd
11728 # Flag that allows shared libraries with undefined symbols to be built.
11729 allow_undefined_flag=$lt_allow_undefined_flag
11731 # Flag that forces no undefined symbols.
11732 no_undefined_flag=$lt_no_undefined_flag
11734 # Commands used to finish a libtool library installation in a directory.
11735 finish_cmds=$lt_finish_cmds
11737 # Same as above, but a single script fragment to be evaled but not shown.
11738 finish_eval=$lt_finish_eval
11740 # Take the output of nm and produce a listing of raw symbols and C names.
11741 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11743 # Transform the output of nm in a proper C declaration
11744 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11746 # Transform the output of nm in a C name address pair
11747 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11749 # This is the shared library runtime path variable.
11750 runpath_var=$runpath_var
11752 # This is the shared library path variable.
11753 shlibpath_var=$shlibpath_var
11755 # Is shlibpath searched before the hard-coded library search path?
11756 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11758 # How to hardcode a shared library path into an executable.
11759 hardcode_action=$hardcode_action
11761 # Whether we should hardcode library paths into libraries.
11762 hardcode_into_libs=$hardcode_into_libs
11764 # Flag to hardcode \$libdir into a binary during linking.
11765 # This must work even if \$libdir does not exist.
11766 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11768 # If ld is used when linking, flag to hardcode \$libdir into
11769 # a binary during linking. This must work even if \$libdir does
11770 # not exist.
11771 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11773 # Whether we need a single -rpath flag with a separated argument.
11774 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11776 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11777 # resulting binary.
11778 hardcode_direct=$hardcode_direct
11780 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11781 # resulting binary.
11782 hardcode_minus_L=$hardcode_minus_L
11784 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11785 # the resulting binary.
11786 hardcode_shlibpath_var=$hardcode_shlibpath_var
11788 # Set to yes if building a shared library automatically hardcodes DIR into the library
11789 # and all subsequent libraries and executables linked against it.
11790 hardcode_automatic=$hardcode_automatic
11792 # Variables whose values should be saved in libtool wrapper scripts and
11793 # restored at relink time.
11794 variables_saved_for_relink="$variables_saved_for_relink"
11796 # Whether libtool must link a program against all its dependency libraries.
11797 link_all_deplibs=$link_all_deplibs
11799 # Compile-time system search path for libraries
11800 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11802 # Run-time system search path for libraries
11803 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11805 # Fix the shell variable \$srcfile for the compiler.
11806 fix_srcfile_path="$fix_srcfile_path"
11808 # Set to yes if exported symbols are required.
11809 always_export_symbols=$always_export_symbols
11811 # The commands to list exported symbols.
11812 export_symbols_cmds=$lt_export_symbols_cmds
11814 # The commands to extract the exported symbol list from a shared archive.
11815 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11817 # Symbols that should not be listed in the preloaded symbols.
11818 exclude_expsyms=$lt_exclude_expsyms
11820 # Symbols that must always be exported.
11821 include_expsyms=$lt_include_expsyms
11823 # ### END LIBTOOL CONFIG
11825 __EOF__
11828 case $host_os in
11829 aix3*)
11830 cat <<\EOF >> "$cfgfile"
11832 # AIX sometimes has problems with the GCC collect2 program. For some
11833 # reason, if we set the COLLECT_NAMES environment variable, the problems
11834 # vanish in a puff of smoke.
11835 if test "X${COLLECT_NAMES+set}" != Xset; then
11836 COLLECT_NAMES=
11837 export COLLECT_NAMES
11841 esac
11843 # We use sed instead of cat because bash on DJGPP gets confused if
11844 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11845 # text mode, it properly converts lines to CR/LF. This bash problem
11846 # is reportedly fixed, but why not run on old versions too?
11847 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11849 mv -f "$cfgfile" "$ofile" || \
11850 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11851 chmod +x "$ofile"
11853 else
11854 # If there is no Makefile yet, we rely on a make rule to execute
11855 # `config.status --recheck' to rerun these tests and create the
11856 # libtool script then.
11857 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11858 if test -f "$ltmain_in"; then
11859 test -f Makefile && make "$ltmain"
11864 ac_ext=c
11865 ac_cpp='$CPP $CPPFLAGS'
11866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11870 CC="$lt_save_CC"
11873 # Check whether --with-tags was given.
11874 if test "${with_tags+set}" = set; then
11875 withval=$with_tags; tagnames="$withval"
11879 if test -f "$ltmain" && test -n "$tagnames"; then
11880 if test ! -f "${ofile}"; then
11881 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11882 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11885 if test -z "$LTCC"; then
11886 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11887 if test -z "$LTCC"; then
11888 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11889 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11890 else
11891 { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11892 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11895 if test -z "$LTCFLAGS"; then
11896 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11899 # Extract list of available tagged configurations in $ofile.
11900 # Note that this assumes the entire list is on one line.
11901 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11903 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11904 for tagname in $tagnames; do
11905 IFS="$lt_save_ifs"
11906 # Check whether tagname contains only valid characters
11907 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11908 "") ;;
11909 *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11910 $as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
11911 { (exit 1); exit 1; }; }
11913 esac
11915 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11916 then
11917 { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11918 $as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11919 { (exit 1); exit 1; }; }
11922 # Update the list of available tags.
11923 if test -n "$tagname"; then
11924 echo appending configuration tag \"$tagname\" to $ofile
11926 case $tagname in
11927 CXX)
11928 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11929 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11930 (test "X$CXX" != "Xg++"))) ; then
11931 ac_ext=cpp
11932 ac_cpp='$CXXCPP $CPPFLAGS'
11933 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11934 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11935 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11940 archive_cmds_need_lc_CXX=no
11941 allow_undefined_flag_CXX=
11942 always_export_symbols_CXX=no
11943 archive_expsym_cmds_CXX=
11944 export_dynamic_flag_spec_CXX=
11945 hardcode_direct_CXX=no
11946 hardcode_libdir_flag_spec_CXX=
11947 hardcode_libdir_flag_spec_ld_CXX=
11948 hardcode_libdir_separator_CXX=
11949 hardcode_minus_L_CXX=no
11950 hardcode_shlibpath_var_CXX=unsupported
11951 hardcode_automatic_CXX=no
11952 module_cmds_CXX=
11953 module_expsym_cmds_CXX=
11954 link_all_deplibs_CXX=unknown
11955 old_archive_cmds_CXX=$old_archive_cmds
11956 no_undefined_flag_CXX=
11957 whole_archive_flag_spec_CXX=
11958 enable_shared_with_static_runtimes_CXX=no
11960 # Dependencies to place before and after the object being linked:
11961 predep_objects_CXX=
11962 postdep_objects_CXX=
11963 predeps_CXX=
11964 postdeps_CXX=
11965 compiler_lib_search_path_CXX=
11967 # Source file extension for C++ test sources.
11968 ac_ext=cpp
11970 # Object file extension for compiled C++ test sources.
11971 objext=o
11972 objext_CXX=$objext
11974 # Code to be used in simple compile tests
11975 lt_simple_compile_test_code="int some_variable = 0;\n"
11977 # Code to be used in simple link tests
11978 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11980 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11982 # If no C compiler was specified, use CC.
11983 LTCC=${LTCC-"$CC"}
11985 # If no C compiler flags were specified, use CFLAGS.
11986 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11988 # Allow CC to be a program name with arguments.
11989 compiler=$CC
11992 # save warnings/boilerplate of simple test code
11993 ac_outfile=conftest.$ac_objext
11994 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11995 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11996 _lt_compiler_boilerplate=`cat conftest.err`
11997 $rm conftest*
11999 ac_outfile=conftest.$ac_objext
12000 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12001 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12002 _lt_linker_boilerplate=`cat conftest.err`
12003 $rm conftest*
12006 # Allow CC to be a program name with arguments.
12007 lt_save_CC=$CC
12008 lt_save_LD=$LD
12009 lt_save_GCC=$GCC
12010 GCC=$GXX
12011 lt_save_with_gnu_ld=$with_gnu_ld
12012 lt_save_path_LD=$lt_cv_path_LD
12013 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12014 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12015 else
12016 $as_unset lt_cv_prog_gnu_ld
12018 if test -n "${lt_cv_path_LDCXX+set}"; then
12019 lt_cv_path_LD=$lt_cv_path_LDCXX
12020 else
12021 $as_unset lt_cv_path_LD
12023 test -z "${LDCXX+set}" || LD=$LDCXX
12024 CC=${CXX-"c++"}
12025 compiler=$CC
12026 compiler_CXX=$CC
12027 for cc_temp in $compiler""; do
12028 case $cc_temp in
12029 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12030 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12031 \-*) ;;
12032 *) break;;
12033 esac
12034 done
12035 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12038 # We don't want -fno-exception wen compiling C++ code, so set the
12039 # no_builtin_flag separately
12040 if test "$GXX" = yes; then
12041 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12042 else
12043 lt_prog_compiler_no_builtin_flag_CXX=
12046 if test "$GXX" = yes; then
12047 # Set up default GNU C++ configuration
12050 # Check whether --with-gnu-ld was given.
12051 if test "${with_gnu_ld+set}" = set; then
12052 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12053 else
12054 with_gnu_ld=no
12057 ac_prog=ld
12058 if test "$GCC" = yes; then
12059 # Check if gcc -print-prog-name=ld gives a path.
12060 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12061 $as_echo_n "checking for ld used by $CC... " >&6; }
12062 case $host in
12063 *-*-mingw*)
12064 # gcc leaves a trailing carriage return which upsets mingw
12065 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12067 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12068 esac
12069 case $ac_prog in
12070 # Accept absolute paths.
12071 [\\/]* | ?:[\\/]*)
12072 re_direlt='/[^/][^/]*/\.\./'
12073 # Canonicalize the pathname of ld
12074 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12075 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12076 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12077 done
12078 test -z "$LD" && LD="$ac_prog"
12081 # If it fails, then pretend we aren't using GCC.
12082 ac_prog=ld
12085 # If it is relative, then search for the first ld in PATH.
12086 with_gnu_ld=unknown
12088 esac
12089 elif test "$with_gnu_ld" = yes; then
12090 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
12091 $as_echo_n "checking for GNU ld... " >&6; }
12092 else
12093 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12094 $as_echo_n "checking for non-GNU ld... " >&6; }
12096 if test "${lt_cv_path_LD+set}" = set; then
12097 $as_echo_n "(cached) " >&6
12098 else
12099 if test -z "$LD"; then
12100 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12101 for ac_dir in $PATH; do
12102 IFS="$lt_save_ifs"
12103 test -z "$ac_dir" && ac_dir=.
12104 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12105 lt_cv_path_LD="$ac_dir/$ac_prog"
12106 # Check to see if the program is GNU ld. I'd rather use --version,
12107 # but apparently some variants of GNU ld only accept -v.
12108 # Break only if it was the GNU/non-GNU ld that we prefer.
12109 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12110 *GNU* | *'with BFD'*)
12111 test "$with_gnu_ld" != no && break
12114 test "$with_gnu_ld" != yes && break
12116 esac
12118 done
12119 IFS="$lt_save_ifs"
12120 else
12121 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12125 LD="$lt_cv_path_LD"
12126 if test -n "$LD"; then
12127 { $as_echo "$as_me:$LINENO: result: $LD" >&5
12128 $as_echo "$LD" >&6; }
12129 else
12130 { $as_echo "$as_me:$LINENO: result: no" >&5
12131 $as_echo "no" >&6; }
12133 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12134 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12135 { (exit 1); exit 1; }; }
12136 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12137 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12138 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12139 $as_echo_n "(cached) " >&6
12140 else
12141 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12142 case `$LD -v 2>&1 </dev/null` in
12143 *GNU* | *'with BFD'*)
12144 lt_cv_prog_gnu_ld=yes
12147 lt_cv_prog_gnu_ld=no
12149 esac
12151 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12152 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12153 with_gnu_ld=$lt_cv_prog_gnu_ld
12157 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12158 # archiving commands below assume that GNU ld is being used.
12159 if test "$with_gnu_ld" = yes; then
12160 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12161 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'
12163 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12164 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12166 # If archive_cmds runs LD, not CC, wlarc should be empty
12167 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12168 # investigate it a little bit more. (MM)
12169 wlarc='${wl}'
12171 # ancient GNU ld didn't support --whole-archive et. al.
12172 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12173 grep 'no-whole-archive' > /dev/null; then
12174 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12175 else
12176 whole_archive_flag_spec_CXX=
12178 else
12179 with_gnu_ld=no
12180 wlarc=
12182 # A generic and very simple default shared library creation
12183 # command for GNU C++ for the case where it uses the native
12184 # linker, instead of GNU ld. If possible, this setting should
12185 # overridden to take advantage of the native linker features on
12186 # the platform it is being used on.
12187 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12190 # Commands to make compiler produce verbose output that lists
12191 # what "hidden" libraries, object files and flags are used when
12192 # linking a shared library.
12193 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12195 else
12196 GXX=no
12197 with_gnu_ld=no
12198 wlarc=
12201 # PORTME: fill in a description of your system's C++ link characteristics
12202 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12203 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12204 ld_shlibs_CXX=yes
12205 case $host_os in
12206 aix3*)
12207 # FIXME: insert proper C++ library support
12208 ld_shlibs_CXX=no
12210 aix4* | aix5*)
12211 if test "$host_cpu" = ia64; then
12212 # On IA64, the linker does run time linking by default, so we don't
12213 # have to do anything special.
12214 aix_use_runtimelinking=no
12215 exp_sym_flag='-Bexport'
12216 no_entry_flag=""
12217 else
12218 aix_use_runtimelinking=no
12220 # Test if we are trying to use run time linking or normal
12221 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12222 # need to do runtime linking.
12223 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12224 for ld_flag in $LDFLAGS; do
12225 case $ld_flag in
12226 *-brtl*)
12227 aix_use_runtimelinking=yes
12228 break
12230 esac
12231 done
12233 esac
12235 exp_sym_flag='-bexport'
12236 no_entry_flag='-bnoentry'
12239 # When large executables or shared objects are built, AIX ld can
12240 # have problems creating the table of contents. If linking a library
12241 # or program results in "error TOC overflow" add -mminimal-toc to
12242 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12243 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12245 archive_cmds_CXX=''
12246 hardcode_direct_CXX=yes
12247 hardcode_libdir_separator_CXX=':'
12248 link_all_deplibs_CXX=yes
12250 if test "$GXX" = yes; then
12251 case $host_os in aix4.[012]|aix4.[012].*)
12252 # We only want to do this on AIX 4.2 and lower, the check
12253 # below for broken collect2 doesn't work under 4.3+
12254 collect2name=`${CC} -print-prog-name=collect2`
12255 if test -f "$collect2name" && \
12256 strings "$collect2name" | grep resolve_lib_name >/dev/null
12257 then
12258 # We have reworked collect2
12259 hardcode_direct_CXX=yes
12260 else
12261 # We have old collect2
12262 hardcode_direct_CXX=unsupported
12263 # It fails to find uninstalled libraries when the uninstalled
12264 # path is not listed in the libpath. Setting hardcode_minus_L
12265 # to unsupported forces relinking
12266 hardcode_minus_L_CXX=yes
12267 hardcode_libdir_flag_spec_CXX='-L$libdir'
12268 hardcode_libdir_separator_CXX=
12271 esac
12272 shared_flag='-shared'
12273 if test "$aix_use_runtimelinking" = yes; then
12274 shared_flag="$shared_flag "'${wl}-G'
12276 else
12277 # not using gcc
12278 if test "$host_cpu" = ia64; then
12279 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12280 # chokes on -Wl,-G. The following line is correct:
12281 shared_flag='-G'
12282 else
12283 if test "$aix_use_runtimelinking" = yes; then
12284 shared_flag='${wl}-G'
12285 else
12286 shared_flag='${wl}-bM:SRE'
12291 # It seems that -bexpall does not export symbols beginning with
12292 # underscore (_), so it is better to generate a list of symbols to export.
12293 always_export_symbols_CXX=yes
12294 if test "$aix_use_runtimelinking" = yes; then
12295 # Warning - without using the other runtime loading flags (-brtl),
12296 # -berok will link without error, but may produce a broken library.
12297 allow_undefined_flag_CXX='-berok'
12298 # Determine the default libpath from the value encoded in an empty executable.
12299 cat >conftest.$ac_ext <<_ACEOF
12300 /* confdefs.h. */
12301 _ACEOF
12302 cat confdefs.h >>conftest.$ac_ext
12303 cat >>conftest.$ac_ext <<_ACEOF
12304 /* end confdefs.h. */
12307 main ()
12311 return 0;
12313 _ACEOF
12314 rm -f conftest.$ac_objext conftest$ac_exeext
12315 if { (ac_try="$ac_link"
12316 case "(($ac_try" in
12317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12318 *) ac_try_echo=$ac_try;;
12319 esac
12320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12321 $as_echo "$ac_try_echo") >&5
12322 (eval "$ac_link") 2>conftest.er1
12323 ac_status=$?
12324 grep -v '^ *+' conftest.er1 >conftest.err
12325 rm -f conftest.er1
12326 cat conftest.err >&5
12327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328 (exit $ac_status); } && {
12329 test -z "$ac_cxx_werror_flag" ||
12330 test ! -s conftest.err
12331 } && test -s conftest$ac_exeext && {
12332 test "$cross_compiling" = yes ||
12333 $as_test_x conftest$ac_exeext
12334 }; then
12336 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12338 # Check for a 64-bit object if we didn't find anything.
12339 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12340 }'`; fi
12341 else
12342 $as_echo "$as_me: failed program was:" >&5
12343 sed 's/^/| /' conftest.$ac_ext >&5
12348 rm -rf conftest.dSYM
12349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12350 conftest$ac_exeext conftest.$ac_ext
12351 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12353 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12355 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12356 else
12357 if test "$host_cpu" = ia64; then
12358 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12359 allow_undefined_flag_CXX="-z nodefs"
12360 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"
12361 else
12362 # Determine the default libpath from the value encoded in an empty executable.
12363 cat >conftest.$ac_ext <<_ACEOF
12364 /* confdefs.h. */
12365 _ACEOF
12366 cat confdefs.h >>conftest.$ac_ext
12367 cat >>conftest.$ac_ext <<_ACEOF
12368 /* end confdefs.h. */
12371 main ()
12375 return 0;
12377 _ACEOF
12378 rm -f conftest.$ac_objext conftest$ac_exeext
12379 if { (ac_try="$ac_link"
12380 case "(($ac_try" in
12381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12382 *) ac_try_echo=$ac_try;;
12383 esac
12384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12385 $as_echo "$ac_try_echo") >&5
12386 (eval "$ac_link") 2>conftest.er1
12387 ac_status=$?
12388 grep -v '^ *+' conftest.er1 >conftest.err
12389 rm -f conftest.er1
12390 cat conftest.err >&5
12391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); } && {
12393 test -z "$ac_cxx_werror_flag" ||
12394 test ! -s conftest.err
12395 } && test -s conftest$ac_exeext && {
12396 test "$cross_compiling" = yes ||
12397 $as_test_x conftest$ac_exeext
12398 }; then
12400 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12402 # Check for a 64-bit object if we didn't find anything.
12403 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12404 }'`; fi
12405 else
12406 $as_echo "$as_me: failed program was:" >&5
12407 sed 's/^/| /' conftest.$ac_ext >&5
12412 rm -rf conftest.dSYM
12413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12414 conftest$ac_exeext conftest.$ac_ext
12415 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12417 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12418 # Warning - without using the other run time loading flags,
12419 # -berok will link without error, but may produce a broken library.
12420 no_undefined_flag_CXX=' ${wl}-bernotok'
12421 allow_undefined_flag_CXX=' ${wl}-berok'
12422 # Exported symbols can be pulled into shared objects from archives
12423 whole_archive_flag_spec_CXX='$convenience'
12424 archive_cmds_need_lc_CXX=yes
12425 # This is similar to how AIX traditionally builds its shared libraries.
12426 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'
12431 beos*)
12432 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12433 allow_undefined_flag_CXX=unsupported
12434 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12435 # support --undefined. This deserves some investigation. FIXME
12436 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12437 else
12438 ld_shlibs_CXX=no
12442 chorus*)
12443 case $cc_basename in
12445 # FIXME: insert proper C++ library support
12446 ld_shlibs_CXX=no
12448 esac
12451 cygwin* | mingw* | pw32*)
12452 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12453 # as there is no search path for DLLs.
12454 hardcode_libdir_flag_spec_CXX='-L$libdir'
12455 allow_undefined_flag_CXX=unsupported
12456 always_export_symbols_CXX=no
12457 enable_shared_with_static_runtimes_CXX=yes
12459 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12460 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'
12461 # If the export-symbols file already is a .def file (1st line
12462 # is EXPORTS), use it as is; otherwise, prepend...
12463 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12464 cp $export_symbols $output_objdir/$soname.def;
12465 else
12466 echo EXPORTS > $output_objdir/$soname.def;
12467 cat $export_symbols >> $output_objdir/$soname.def;
12469 $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'
12470 else
12471 ld_shlibs_CXX=no
12474 darwin* | rhapsody*)
12475 case $host_os in
12476 rhapsody* | darwin1.[012])
12477 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12479 *) # Darwin 1.3 on
12480 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12481 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12482 else
12483 case ${MACOSX_DEPLOYMENT_TARGET} in
12484 10.[012])
12485 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12487 10.*)
12488 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12490 esac
12493 esac
12494 archive_cmds_need_lc_CXX=no
12495 hardcode_direct_CXX=no
12496 hardcode_automatic_CXX=yes
12497 hardcode_shlibpath_var_CXX=unsupported
12498 whole_archive_flag_spec_CXX=''
12499 link_all_deplibs_CXX=yes
12501 if test "$GXX" = yes ; then
12502 lt_int_apple_cc_single_mod=no
12503 output_verbose_link_cmd='echo'
12504 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12505 lt_int_apple_cc_single_mod=yes
12507 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12508 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12509 else
12510 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'
12512 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12513 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12514 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12515 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12516 else
12517 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12519 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12520 else
12521 case $cc_basename in
12522 xlc*)
12523 output_verbose_link_cmd='echo'
12524 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12525 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12526 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12527 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12528 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12531 ld_shlibs_CXX=no
12533 esac
12537 dgux*)
12538 case $cc_basename in
12539 ec++*)
12540 # FIXME: insert proper C++ library support
12541 ld_shlibs_CXX=no
12543 ghcx*)
12544 # Green Hills C++ Compiler
12545 # FIXME: insert proper C++ library support
12546 ld_shlibs_CXX=no
12549 # FIXME: insert proper C++ library support
12550 ld_shlibs_CXX=no
12552 esac
12554 freebsd[12]*)
12555 # C++ shared libraries reported to be fairly broken before switch to ELF
12556 ld_shlibs_CXX=no
12558 freebsd-elf*)
12559 archive_cmds_need_lc_CXX=no
12561 freebsd* | kfreebsd*-gnu | dragonfly*)
12562 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12563 # conventions
12564 ld_shlibs_CXX=yes
12566 gnu*)
12568 hpux9*)
12569 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12570 hardcode_libdir_separator_CXX=:
12571 export_dynamic_flag_spec_CXX='${wl}-E'
12572 hardcode_direct_CXX=yes
12573 hardcode_minus_L_CXX=yes # Not in the search PATH,
12574 # but as the default
12575 # location of the library.
12577 case $cc_basename in
12578 CC*)
12579 # FIXME: insert proper C++ library support
12580 ld_shlibs_CXX=no
12582 aCC*)
12583 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'
12584 # Commands to make compiler produce verbose output that lists
12585 # what "hidden" libraries, object files and flags are used when
12586 # linking a shared library.
12588 # There doesn't appear to be a way to prevent this compiler from
12589 # explicitly linking system object files so we need to strip them
12590 # from the output so that they don't get included in the library
12591 # dependencies.
12592 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12595 if test "$GXX" = yes; then
12596 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'
12597 else
12598 # FIXME: insert proper C++ library support
12599 ld_shlibs_CXX=no
12602 esac
12604 hpux10*|hpux11*)
12605 if test $with_gnu_ld = no; then
12606 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12607 hardcode_libdir_separator_CXX=:
12609 case $host_cpu in
12610 hppa*64*|ia64*)
12611 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12614 export_dynamic_flag_spec_CXX='${wl}-E'
12616 esac
12618 case $host_cpu in
12619 hppa*64*|ia64*)
12620 hardcode_direct_CXX=no
12621 hardcode_shlibpath_var_CXX=no
12624 hardcode_direct_CXX=yes
12625 hardcode_minus_L_CXX=yes # Not in the search PATH,
12626 # but as the default
12627 # location of the library.
12629 esac
12631 case $cc_basename in
12632 CC*)
12633 # FIXME: insert proper C++ library support
12634 ld_shlibs_CXX=no
12636 aCC*)
12637 case $host_cpu in
12638 hppa*64*)
12639 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12641 ia64*)
12642 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12645 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12647 esac
12648 # Commands to make compiler produce verbose output that lists
12649 # what "hidden" libraries, object files and flags are used when
12650 # linking a shared library.
12652 # There doesn't appear to be a way to prevent this compiler from
12653 # explicitly linking system object files so we need to strip them
12654 # from the output so that they don't get included in the library
12655 # dependencies.
12656 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12659 if test "$GXX" = yes; then
12660 if test $with_gnu_ld = no; then
12661 case $host_cpu in
12662 hppa*64*)
12663 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12665 ia64*)
12666 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12669 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'
12671 esac
12673 else
12674 # FIXME: insert proper C++ library support
12675 ld_shlibs_CXX=no
12678 esac
12680 interix3*)
12681 hardcode_direct_CXX=no
12682 hardcode_shlibpath_var_CXX=no
12683 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12684 export_dynamic_flag_spec_CXX='${wl}-E'
12685 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12686 # Instead, shared libraries are loaded at an image base (0x10000000 by
12687 # default) and relocated if they conflict, which is a slow very memory
12688 # consuming and fragmenting process. To avoid this, we pick a random,
12689 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12690 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12691 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'
12692 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'
12694 irix5* | irix6*)
12695 case $cc_basename in
12696 CC*)
12697 # SGI C++
12698 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12700 # Archives containing C++ object files must be created using
12701 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12702 # necessary to make sure instantiated templates are included
12703 # in the archive.
12704 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12707 if test "$GXX" = yes; then
12708 if test "$with_gnu_ld" = no; then
12709 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12710 else
12711 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
12714 link_all_deplibs_CXX=yes
12716 esac
12717 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12718 hardcode_libdir_separator_CXX=:
12720 linux*)
12721 case $cc_basename in
12722 KCC*)
12723 # Kuck and Associates, Inc. (KAI) C++ Compiler
12725 # KCC will only create a shared library if the output file
12726 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12727 # to its proper name (with version) after linking.
12728 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'
12729 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'
12730 # Commands to make compiler produce verbose output that lists
12731 # what "hidden" libraries, object files and flags are used when
12732 # linking a shared library.
12734 # There doesn't appear to be a way to prevent this compiler from
12735 # explicitly linking system object files so we need to strip them
12736 # from the output so that they don't get included in the library
12737 # dependencies.
12738 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12740 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12741 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12743 # Archives containing C++ object files must be created using
12744 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12745 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12747 icpc*)
12748 # Intel C++
12749 with_gnu_ld=yes
12750 # version 8.0 and above of icpc choke on multiply defined symbols
12751 # if we add $predep_objects and $postdep_objects, however 7.1 and
12752 # earlier do not add the objects themselves.
12753 case `$CC -V 2>&1` in
12754 *"Version 7."*)
12755 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12756 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'
12758 *) # Version 8.0 or newer
12759 tmp_idyn=
12760 case $host_cpu in
12761 ia64*) tmp_idyn=' -i_dynamic';;
12762 esac
12763 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12764 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'
12766 esac
12767 archive_cmds_need_lc_CXX=no
12768 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12769 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12770 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12772 pgCC*)
12773 # Portland Group C++ compiler
12774 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12775 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'
12777 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12778 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12779 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'
12781 cxx*)
12782 # Compaq C++
12783 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12784 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'
12786 runpath_var=LD_RUN_PATH
12787 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12788 hardcode_libdir_separator_CXX=:
12790 # Commands to make compiler produce verbose output that lists
12791 # what "hidden" libraries, object files and flags are used when
12792 # linking a shared library.
12794 # There doesn't appear to be a way to prevent this compiler from
12795 # explicitly linking system object files so we need to strip them
12796 # from the output so that they don't get included in the library
12797 # dependencies.
12798 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12800 esac
12802 lynxos*)
12803 # FIXME: insert proper C++ library support
12804 ld_shlibs_CXX=no
12806 m88k*)
12807 # FIXME: insert proper C++ library support
12808 ld_shlibs_CXX=no
12810 mvs*)
12811 case $cc_basename in
12812 cxx*)
12813 # FIXME: insert proper C++ library support
12814 ld_shlibs_CXX=no
12817 # FIXME: insert proper C++ library support
12818 ld_shlibs_CXX=no
12820 esac
12822 netbsd*)
12823 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12824 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12825 wlarc=
12826 hardcode_libdir_flag_spec_CXX='-R$libdir'
12827 hardcode_direct_CXX=yes
12828 hardcode_shlibpath_var_CXX=no
12830 # Workaround some broken pre-1.5 toolchains
12831 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12833 openbsd2*)
12834 # C++ shared libraries are fairly broken
12835 ld_shlibs_CXX=no
12837 openbsd*)
12838 hardcode_direct_CXX=yes
12839 hardcode_shlibpath_var_CXX=no
12840 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12841 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12842 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12843 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12844 export_dynamic_flag_spec_CXX='${wl}-E'
12845 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12847 output_verbose_link_cmd='echo'
12849 osf3*)
12850 case $cc_basename in
12851 KCC*)
12852 # Kuck and Associates, Inc. (KAI) C++ Compiler
12854 # KCC will only create a shared library if the output file
12855 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12856 # to its proper name (with version) after linking.
12857 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'
12859 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12860 hardcode_libdir_separator_CXX=:
12862 # Archives containing C++ object files must be created using
12863 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12864 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12867 RCC*)
12868 # Rational C++ 2.4.1
12869 # FIXME: insert proper C++ library support
12870 ld_shlibs_CXX=no
12872 cxx*)
12873 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12874 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12876 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12877 hardcode_libdir_separator_CXX=:
12879 # Commands to make compiler produce verbose output that lists
12880 # what "hidden" libraries, object files and flags are used when
12881 # linking a shared library.
12883 # There doesn't appear to be a way to prevent this compiler from
12884 # explicitly linking system object files so we need to strip them
12885 # from the output so that they don't get included in the library
12886 # dependencies.
12887 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12890 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12891 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12892 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12894 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12895 hardcode_libdir_separator_CXX=:
12897 # Commands to make compiler produce verbose output that lists
12898 # what "hidden" libraries, object files and flags are used when
12899 # linking a shared library.
12900 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12902 else
12903 # FIXME: insert proper C++ library support
12904 ld_shlibs_CXX=no
12907 esac
12909 osf4* | osf5*)
12910 case $cc_basename in
12911 KCC*)
12912 # Kuck and Associates, Inc. (KAI) C++ Compiler
12914 # KCC will only create a shared library if the output file
12915 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12916 # to its proper name (with version) after linking.
12917 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'
12919 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12920 hardcode_libdir_separator_CXX=:
12922 # Archives containing C++ object files must be created using
12923 # the KAI C++ compiler.
12924 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12926 RCC*)
12927 # Rational C++ 2.4.1
12928 # FIXME: insert proper C++ library support
12929 ld_shlibs_CXX=no
12931 cxx*)
12932 allow_undefined_flag_CXX=' -expect_unresolved \*'
12933 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12934 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12935 echo "-hidden">> $lib.exp~
12936 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
12937 $rm $lib.exp'
12939 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12940 hardcode_libdir_separator_CXX=:
12942 # Commands to make compiler produce verbose output that lists
12943 # what "hidden" libraries, object files and flags are used when
12944 # linking a shared library.
12946 # There doesn't appear to be a way to prevent this compiler from
12947 # explicitly linking system object files so we need to strip them
12948 # from the output so that they don't get included in the library
12949 # dependencies.
12950 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12953 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12954 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12955 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12957 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12958 hardcode_libdir_separator_CXX=:
12960 # Commands to make compiler produce verbose output that lists
12961 # what "hidden" libraries, object files and flags are used when
12962 # linking a shared library.
12963 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12965 else
12966 # FIXME: insert proper C++ library support
12967 ld_shlibs_CXX=no
12970 esac
12972 psos*)
12973 # FIXME: insert proper C++ library support
12974 ld_shlibs_CXX=no
12976 sunos4*)
12977 case $cc_basename in
12978 CC*)
12979 # Sun C++ 4.x
12980 # FIXME: insert proper C++ library support
12981 ld_shlibs_CXX=no
12983 lcc*)
12984 # Lucid
12985 # FIXME: insert proper C++ library support
12986 ld_shlibs_CXX=no
12989 # FIXME: insert proper C++ library support
12990 ld_shlibs_CXX=no
12992 esac
12994 solaris*)
12995 case $cc_basename in
12996 CC*)
12997 # Sun C++ 4.2, 5.x and Centerline C++
12998 archive_cmds_need_lc_CXX=yes
12999 no_undefined_flag_CXX=' -zdefs'
13000 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13001 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13002 $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'
13004 hardcode_libdir_flag_spec_CXX='-R$libdir'
13005 hardcode_shlibpath_var_CXX=no
13006 case $host_os in
13007 solaris2.[0-5] | solaris2.[0-5].*) ;;
13009 # The C++ compiler is used as linker so we must use $wl
13010 # flag to pass the commands to the underlying system
13011 # linker. We must also pass each convience library through
13012 # to the system linker between allextract/defaultextract.
13013 # The C++ compiler will combine linker options so we
13014 # cannot just pass the convience library names through
13015 # without $wl.
13016 # Supported since Solaris 2.6 (maybe 2.5.1?)
13017 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
13019 esac
13020 link_all_deplibs_CXX=yes
13022 output_verbose_link_cmd='echo'
13024 # Archives containing C++ object files must be created using
13025 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13026 # necessary to make sure instantiated templates are included
13027 # in the archive.
13028 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13030 gcx*)
13031 # Green Hills C++ Compiler
13032 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13034 # The C++ compiler must be used to create the archive.
13035 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13038 # GNU C++ compiler with Solaris linker
13039 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13040 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13041 if $CC --version | grep -v '^2\.7' > /dev/null; then
13042 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13043 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13044 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13046 # Commands to make compiler produce verbose output that lists
13047 # what "hidden" libraries, object files and flags are used when
13048 # linking a shared library.
13049 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13050 else
13051 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13052 # platform.
13053 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13054 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13055 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13057 # Commands to make compiler produce verbose output that lists
13058 # what "hidden" libraries, object files and flags are used when
13059 # linking a shared library.
13060 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13063 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13066 esac
13068 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13069 no_undefined_flag_CXX='${wl}-z,text'
13070 archive_cmds_need_lc_CXX=no
13071 hardcode_shlibpath_var_CXX=no
13072 runpath_var='LD_RUN_PATH'
13074 case $cc_basename in
13075 CC*)
13076 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13077 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13080 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13081 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13083 esac
13085 sysv5* | sco3.2v5* | sco5v6*)
13086 # Note: We can NOT use -z defs as we might desire, because we do not
13087 # link with -lc, and that would cause any symbols used from libc to
13088 # always be unresolved, which means just about no library would
13089 # ever link correctly. If we're not using GNU ld we use -z text
13090 # though, which does catch some bad symbols but isn't as heavy-handed
13091 # as -z defs.
13092 # For security reasons, it is highly recommended that you always
13093 # use absolute paths for naming shared libraries, and exclude the
13094 # DT_RUNPATH tag from executables and libraries. But doing so
13095 # requires that you compile everything twice, which is a pain.
13096 # So that behaviour is only enabled if SCOABSPATH is set to a
13097 # non-empty value in the environment. Most likely only useful for
13098 # creating official distributions of packages.
13099 # This is a hack until libtool officially supports absolute path
13100 # names for shared libraries.
13101 no_undefined_flag_CXX='${wl}-z,text'
13102 allow_undefined_flag_CXX='${wl}-z,nodefs'
13103 archive_cmds_need_lc_CXX=no
13104 hardcode_shlibpath_var_CXX=no
13105 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13106 hardcode_libdir_separator_CXX=':'
13107 link_all_deplibs_CXX=yes
13108 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13109 runpath_var='LD_RUN_PATH'
13111 case $cc_basename in
13112 CC*)
13113 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13114 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13117 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13118 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13120 esac
13122 tandem*)
13123 case $cc_basename in
13124 NCC*)
13125 # NonStop-UX NCC 3.20
13126 # FIXME: insert proper C++ library support
13127 ld_shlibs_CXX=no
13130 # FIXME: insert proper C++ library support
13131 ld_shlibs_CXX=no
13133 esac
13135 vxworks*)
13136 # FIXME: insert proper C++ library support
13137 ld_shlibs_CXX=no
13140 # FIXME: insert proper C++ library support
13141 ld_shlibs_CXX=no
13143 esac
13144 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13145 $as_echo "$ld_shlibs_CXX" >&6; }
13146 test "$ld_shlibs_CXX" = no && can_build_shared=no
13148 GCC_CXX="$GXX"
13149 LD_CXX="$LD"
13152 cat > conftest.$ac_ext <<EOF
13153 class Foo
13155 public:
13156 Foo (void) { a = 0; }
13157 private:
13158 int a;
13162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13163 (eval $ac_compile) 2>&5
13164 ac_status=$?
13165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166 (exit $ac_status); }; then
13167 # Parse the compiler output and extract the necessary
13168 # objects, libraries and library flags.
13170 # Sentinel used to keep track of whether or not we are before
13171 # the conftest object file.
13172 pre_test_object_deps_done=no
13174 # The `*' in the case matches for architectures that use `case' in
13175 # $output_verbose_cmd can trigger glob expansion during the loop
13176 # eval without this substitution.
13177 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13179 for p in `eval $output_verbose_link_cmd`; do
13180 case $p in
13182 -L* | -R* | -l*)
13183 # Some compilers place space between "-{L,R}" and the path.
13184 # Remove the space.
13185 if test $p = "-L" \
13186 || test $p = "-R"; then
13187 prev=$p
13188 continue
13189 else
13190 prev=
13193 if test "$pre_test_object_deps_done" = no; then
13194 case $p in
13195 -L* | -R*)
13196 # Internal compiler library paths should come after those
13197 # provided the user. The postdeps already come after the
13198 # user supplied libs so there is no need to process them.
13199 if test -z "$compiler_lib_search_path_CXX"; then
13200 compiler_lib_search_path_CXX="${prev}${p}"
13201 else
13202 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13205 # The "-l" case would never come before the object being
13206 # linked, so don't bother handling this case.
13207 esac
13208 else
13209 if test -z "$postdeps_CXX"; then
13210 postdeps_CXX="${prev}${p}"
13211 else
13212 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13217 *.$objext)
13218 # This assumes that the test object file only shows up
13219 # once in the compiler output.
13220 if test "$p" = "conftest.$objext"; then
13221 pre_test_object_deps_done=yes
13222 continue
13225 if test "$pre_test_object_deps_done" = no; then
13226 if test -z "$predep_objects_CXX"; then
13227 predep_objects_CXX="$p"
13228 else
13229 predep_objects_CXX="$predep_objects_CXX $p"
13231 else
13232 if test -z "$postdep_objects_CXX"; then
13233 postdep_objects_CXX="$p"
13234 else
13235 postdep_objects_CXX="$postdep_objects_CXX $p"
13240 *) ;; # Ignore the rest.
13242 esac
13243 done
13245 # Clean up.
13246 rm -f a.out a.exe
13247 else
13248 echo "libtool.m4: error: problem compiling CXX test program"
13251 $rm -f confest.$objext
13253 # PORTME: override above test on systems where it is broken
13254 case $host_os in
13255 interix3*)
13256 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13257 # hack all around it, let's just trust "g++" to DTRT.
13258 predep_objects_CXX=
13259 postdep_objects_CXX=
13260 postdeps_CXX=
13263 solaris*)
13264 case $cc_basename in
13265 CC*)
13266 # Adding this requires a known-good setup of shared libraries for
13267 # Sun compiler versions before 5.6, else PIC objects from an old
13268 # archive will be linked into the output, leading to subtle bugs.
13269 postdeps_CXX='-lCstd -lCrun'
13271 esac
13273 esac
13276 case " $postdeps_CXX " in
13277 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13278 esac
13280 lt_prog_compiler_wl_CXX=
13281 lt_prog_compiler_pic_CXX=
13282 lt_prog_compiler_static_CXX=
13284 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13285 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13287 # C++ specific cases for pic, static, wl, etc.
13288 if test "$GXX" = yes; then
13289 lt_prog_compiler_wl_CXX='-Wl,'
13290 lt_prog_compiler_static_CXX='-static'
13292 case $host_os in
13293 aix*)
13294 # All AIX code is PIC.
13295 if test "$host_cpu" = ia64; then
13296 # AIX 5 now supports IA64 processor
13297 lt_prog_compiler_static_CXX='-Bstatic'
13300 amigaos*)
13301 # FIXME: we need at least 68020 code to build shared libraries, but
13302 # adding the `-m68020' flag to GCC prevents building anything better,
13303 # like `-m68040'.
13304 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13306 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13307 # PIC is the default for these OSes.
13309 mingw* | os2* | pw32*)
13310 # This hack is so that the source file can tell whether it is being
13311 # built for inclusion in a dll (and should export symbols for example).
13312 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13314 darwin* | rhapsody*)
13315 # PIC is the default on this platform
13316 # Common symbols not allowed in MH_DYLIB files
13317 lt_prog_compiler_pic_CXX='-fno-common'
13319 *djgpp*)
13320 # DJGPP does not support shared libraries at all
13321 lt_prog_compiler_pic_CXX=
13323 interix3*)
13324 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13325 # Instead, we relocate shared libraries at runtime.
13327 sysv4*MP*)
13328 if test -d /usr/nec; then
13329 lt_prog_compiler_pic_CXX=-Kconform_pic
13332 hpux*)
13333 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13334 # not for PA HP-UX.
13335 case $host_cpu in
13336 hppa*64*|ia64*)
13339 lt_prog_compiler_pic_CXX='-fPIC'
13341 esac
13344 lt_prog_compiler_pic_CXX='-fPIC'
13346 esac
13347 else
13348 case $host_os in
13349 aix4* | aix5*)
13350 # All AIX code is PIC.
13351 if test "$host_cpu" = ia64; then
13352 # AIX 5 now supports IA64 processor
13353 lt_prog_compiler_static_CXX='-Bstatic'
13354 else
13355 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13358 chorus*)
13359 case $cc_basename in
13360 cxch68*)
13361 # Green Hills C++ Compiler
13362 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13364 esac
13366 darwin*)
13367 # PIC is the default on this platform
13368 # Common symbols not allowed in MH_DYLIB files
13369 case $cc_basename in
13370 xlc*)
13371 lt_prog_compiler_pic_CXX='-qnocommon'
13372 lt_prog_compiler_wl_CXX='-Wl,'
13374 esac
13376 dgux*)
13377 case $cc_basename in
13378 ec++*)
13379 lt_prog_compiler_pic_CXX='-KPIC'
13381 ghcx*)
13382 # Green Hills C++ Compiler
13383 lt_prog_compiler_pic_CXX='-pic'
13387 esac
13389 freebsd* | kfreebsd*-gnu | dragonfly*)
13390 # FreeBSD uses GNU C++
13392 hpux9* | hpux10* | hpux11*)
13393 case $cc_basename in
13394 CC*)
13395 lt_prog_compiler_wl_CXX='-Wl,'
13396 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13397 if test "$host_cpu" != ia64; then
13398 lt_prog_compiler_pic_CXX='+Z'
13401 aCC*)
13402 lt_prog_compiler_wl_CXX='-Wl,'
13403 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13404 case $host_cpu in
13405 hppa*64*|ia64*)
13406 # +Z the default
13409 lt_prog_compiler_pic_CXX='+Z'
13411 esac
13415 esac
13417 interix*)
13418 # This is c89, which is MS Visual C++ (no shared libs)
13419 # Anyone wants to do a port?
13421 irix5* | irix6* | nonstopux*)
13422 case $cc_basename in
13423 CC*)
13424 lt_prog_compiler_wl_CXX='-Wl,'
13425 lt_prog_compiler_static_CXX='-non_shared'
13426 # CC pic flag -KPIC is the default.
13430 esac
13432 linux*)
13433 case $cc_basename in
13434 KCC*)
13435 # KAI C++ Compiler
13436 lt_prog_compiler_wl_CXX='--backend -Wl,'
13437 lt_prog_compiler_pic_CXX='-fPIC'
13439 icpc* | ecpc*)
13440 # Intel C++
13441 lt_prog_compiler_wl_CXX='-Wl,'
13442 lt_prog_compiler_pic_CXX='-KPIC'
13443 lt_prog_compiler_static_CXX='-static'
13445 pgCC*)
13446 # Portland Group C++ compiler.
13447 lt_prog_compiler_wl_CXX='-Wl,'
13448 lt_prog_compiler_pic_CXX='-fpic'
13449 lt_prog_compiler_static_CXX='-Bstatic'
13451 cxx*)
13452 # Compaq C++
13453 # Make sure the PIC flag is empty. It appears that all Alpha
13454 # Linux and Compaq Tru64 Unix objects are PIC.
13455 lt_prog_compiler_pic_CXX=
13456 lt_prog_compiler_static_CXX='-non_shared'
13460 esac
13462 lynxos*)
13464 m88k*)
13466 mvs*)
13467 case $cc_basename in
13468 cxx*)
13469 lt_prog_compiler_pic_CXX='-W c,exportall'
13473 esac
13475 netbsd*)
13477 osf3* | osf4* | osf5*)
13478 case $cc_basename in
13479 KCC*)
13480 lt_prog_compiler_wl_CXX='--backend -Wl,'
13482 RCC*)
13483 # Rational C++ 2.4.1
13484 lt_prog_compiler_pic_CXX='-pic'
13486 cxx*)
13487 # Digital/Compaq C++
13488 lt_prog_compiler_wl_CXX='-Wl,'
13489 # Make sure the PIC flag is empty. It appears that all Alpha
13490 # Linux and Compaq Tru64 Unix objects are PIC.
13491 lt_prog_compiler_pic_CXX=
13492 lt_prog_compiler_static_CXX='-non_shared'
13496 esac
13498 psos*)
13500 solaris*)
13501 case $cc_basename in
13502 CC*)
13503 # Sun C++ 4.2, 5.x and Centerline C++
13504 lt_prog_compiler_pic_CXX='-KPIC'
13505 lt_prog_compiler_static_CXX='-Bstatic'
13506 lt_prog_compiler_wl_CXX='-Qoption ld '
13508 gcx*)
13509 # Green Hills C++ Compiler
13510 lt_prog_compiler_pic_CXX='-PIC'
13514 esac
13516 sunos4*)
13517 case $cc_basename in
13518 CC*)
13519 # Sun C++ 4.x
13520 lt_prog_compiler_pic_CXX='-pic'
13521 lt_prog_compiler_static_CXX='-Bstatic'
13523 lcc*)
13524 # Lucid
13525 lt_prog_compiler_pic_CXX='-pic'
13529 esac
13531 tandem*)
13532 case $cc_basename in
13533 NCC*)
13534 # NonStop-UX NCC 3.20
13535 lt_prog_compiler_pic_CXX='-KPIC'
13539 esac
13541 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13542 case $cc_basename in
13543 CC*)
13544 lt_prog_compiler_wl_CXX='-Wl,'
13545 lt_prog_compiler_pic_CXX='-KPIC'
13546 lt_prog_compiler_static_CXX='-Bstatic'
13548 esac
13550 vxworks*)
13553 lt_prog_compiler_can_build_shared_CXX=no
13555 esac
13558 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13559 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13562 # Check to make sure the PIC flag actually works.
13564 if test -n "$lt_prog_compiler_pic_CXX"; then
13566 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13567 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13568 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13569 $as_echo_n "(cached) " >&6
13570 else
13571 lt_prog_compiler_pic_works_CXX=no
13572 ac_outfile=conftest.$ac_objext
13573 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13574 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13575 # Insert the option either (1) after the last *FLAGS variable, or
13576 # (2) before a word containing "conftest.", or (3) at the end.
13577 # Note that $ac_compile itself does not contain backslashes and begins
13578 # with a dollar sign (not a hyphen), so the echo should work correctly.
13579 # The option is referenced via a variable to avoid confusing sed.
13580 lt_compile=`echo "$ac_compile" | $SED \
13581 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13582 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13583 -e 's:$: $lt_compiler_flag:'`
13584 (eval echo "\"\$as_me:13584: $lt_compile\"" >&5)
13585 (eval "$lt_compile" 2>conftest.err)
13586 ac_status=$?
13587 cat conftest.err >&5
13588 echo "$as_me:13588: \$? = $ac_status" >&5
13589 if (exit $ac_status) && test -s "$ac_outfile"; then
13590 # The compiler can only warn and ignore the option if not recognized
13591 # So say no if there are warnings other than the usual output.
13592 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13593 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13594 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13595 lt_prog_compiler_pic_works_CXX=yes
13598 $rm conftest*
13601 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13602 $as_echo "$lt_prog_compiler_pic_works_CXX" >&6; }
13604 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13605 case $lt_prog_compiler_pic_CXX in
13606 "" | " "*) ;;
13607 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13608 esac
13609 else
13610 lt_prog_compiler_pic_CXX=
13611 lt_prog_compiler_can_build_shared_CXX=no
13615 case $host_os in
13616 # For platforms which do not support PIC, -DPIC is meaningless:
13617 *djgpp*)
13618 lt_prog_compiler_pic_CXX=
13621 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13623 esac
13626 # Check to make sure the static flag actually works.
13628 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13629 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13630 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13631 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13632 $as_echo_n "(cached) " >&6
13633 else
13634 lt_prog_compiler_static_works_CXX=no
13635 save_LDFLAGS="$LDFLAGS"
13636 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13637 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13638 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13639 # The linker can only warn and ignore the option if not recognized
13640 # So say no if there are warnings
13641 if test -s conftest.err; then
13642 # Append any errors to the config.log.
13643 cat conftest.err 1>&5
13644 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13645 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13646 if diff conftest.exp conftest.er2 >/dev/null; then
13647 lt_prog_compiler_static_works_CXX=yes
13649 else
13650 lt_prog_compiler_static_works_CXX=yes
13653 $rm conftest*
13654 LDFLAGS="$save_LDFLAGS"
13657 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13658 $as_echo "$lt_prog_compiler_static_works_CXX" >&6; }
13660 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13662 else
13663 lt_prog_compiler_static_CXX=
13667 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13668 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13669 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13670 $as_echo_n "(cached) " >&6
13671 else
13672 lt_cv_prog_compiler_c_o_CXX=no
13673 $rm -r conftest 2>/dev/null
13674 mkdir conftest
13675 cd conftest
13676 mkdir out
13677 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13679 lt_compiler_flag="-o out/conftest2.$ac_objext"
13680 # Insert the option either (1) after the last *FLAGS variable, or
13681 # (2) before a word containing "conftest.", or (3) at the end.
13682 # Note that $ac_compile itself does not contain backslashes and begins
13683 # with a dollar sign (not a hyphen), so the echo should work correctly.
13684 lt_compile=`echo "$ac_compile" | $SED \
13685 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13686 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13687 -e 's:$: $lt_compiler_flag:'`
13688 (eval echo "\"\$as_me:13688: $lt_compile\"" >&5)
13689 (eval "$lt_compile" 2>out/conftest.err)
13690 ac_status=$?
13691 cat out/conftest.err >&5
13692 echo "$as_me:13692: \$? = $ac_status" >&5
13693 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13694 then
13695 # The compiler can only warn and ignore the option if not recognized
13696 # So say no if there are warnings
13697 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13698 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13699 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13700 lt_cv_prog_compiler_c_o_CXX=yes
13703 chmod u+w . 2>&5
13704 $rm conftest*
13705 # SGI C++ compiler will create directory out/ii_files/ for
13706 # template instantiation
13707 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13708 $rm out/* && rmdir out
13709 cd ..
13710 rmdir conftest
13711 $rm conftest*
13714 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13715 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13718 hard_links="nottested"
13719 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13720 # do not overwrite the value of need_locks provided by the user
13721 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13722 $as_echo_n "checking if we can lock with hard links... " >&6; }
13723 hard_links=yes
13724 $rm conftest*
13725 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13726 touch conftest.a
13727 ln conftest.a conftest.b 2>&5 || hard_links=no
13728 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13729 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13730 $as_echo "$hard_links" >&6; }
13731 if test "$hard_links" = no; then
13732 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13733 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13734 need_locks=warn
13736 else
13737 need_locks=no
13740 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13741 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13743 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13744 case $host_os in
13745 aix4* | aix5*)
13746 # If we're using GNU nm, then we don't want the "-C" option.
13747 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13748 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13749 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'
13750 else
13751 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'
13754 pw32*)
13755 export_symbols_cmds_CXX="$ltdll_cmds"
13757 cygwin* | mingw*)
13758 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'
13761 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13763 esac
13765 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13766 $as_echo "$ld_shlibs_CXX" >&6; }
13767 test "$ld_shlibs_CXX" = no && can_build_shared=no
13770 # Do we need to explicitly link libc?
13772 case "x$archive_cmds_need_lc_CXX" in
13773 x|xyes)
13774 # Assume -lc should be added
13775 archive_cmds_need_lc_CXX=yes
13777 if test "$enable_shared" = yes && test "$GCC" = yes; then
13778 case $archive_cmds_CXX in
13779 *'~'*)
13780 # FIXME: we may have to deal with multi-command sequences.
13782 '$CC '*)
13783 # Test whether the compiler implicitly links with -lc since on some
13784 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13785 # to ld, don't add -lc before -lgcc.
13786 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13787 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13788 $rm conftest*
13789 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13792 (eval $ac_compile) 2>&5
13793 ac_status=$?
13794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795 (exit $ac_status); } 2>conftest.err; then
13796 soname=conftest
13797 lib=conftest
13798 libobjs=conftest.$ac_objext
13799 deplibs=
13800 wl=$lt_prog_compiler_wl_CXX
13801 pic_flag=$lt_prog_compiler_pic_CXX
13802 compiler_flags=-v
13803 linker_flags=-v
13804 verstring=
13805 output_objdir=.
13806 libname=conftest
13807 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13808 allow_undefined_flag_CXX=
13809 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13810 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13811 ac_status=$?
13812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); }
13814 then
13815 archive_cmds_need_lc_CXX=no
13816 else
13817 archive_cmds_need_lc_CXX=yes
13819 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13820 else
13821 cat conftest.err 1>&5
13823 $rm conftest*
13824 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13825 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
13827 esac
13830 esac
13832 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13833 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13834 library_names_spec=
13835 libname_spec='lib$name'
13836 soname_spec=
13837 shrext_cmds=".so"
13838 postinstall_cmds=
13839 postuninstall_cmds=
13840 finish_cmds=
13841 finish_eval=
13842 shlibpath_var=
13843 shlibpath_overrides_runpath=unknown
13844 version_type=none
13845 dynamic_linker="$host_os ld.so"
13846 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13847 if test "$GCC" = yes; then
13848 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13849 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13850 # if the path contains ";" then we assume it to be the separator
13851 # otherwise default to the standard path separator (i.e. ":") - it is
13852 # assumed that no part of a normal pathname contains ";" but that should
13853 # okay in the real world where ";" in dirpaths is itself problematic.
13854 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13855 else
13856 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13858 else
13859 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13861 need_lib_prefix=unknown
13862 hardcode_into_libs=no
13864 # when you set need_version to no, make sure it does not cause -set_version
13865 # flags to be left without arguments
13866 need_version=unknown
13868 case $host_os in
13869 aix3*)
13870 version_type=linux
13871 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13872 shlibpath_var=LIBPATH
13874 # AIX 3 has no versioning support, so we append a major version to the name.
13875 soname_spec='${libname}${release}${shared_ext}$major'
13878 aix4* | aix5*)
13879 version_type=linux
13880 need_lib_prefix=no
13881 need_version=no
13882 hardcode_into_libs=yes
13883 if test "$host_cpu" = ia64; then
13884 # AIX 5 supports IA64
13885 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13886 shlibpath_var=LD_LIBRARY_PATH
13887 else
13888 # With GCC up to 2.95.x, collect2 would create an import file
13889 # for dependence libraries. The import file would start with
13890 # the line `#! .'. This would cause the generated library to
13891 # depend on `.', always an invalid library. This was fixed in
13892 # development snapshots of GCC prior to 3.0.
13893 case $host_os in
13894 aix4 | aix4.[01] | aix4.[01].*)
13895 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13896 echo ' yes '
13897 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13899 else
13900 can_build_shared=no
13903 esac
13904 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13905 # soname into executable. Probably we can add versioning support to
13906 # collect2, so additional links can be useful in future.
13907 if test "$aix_use_runtimelinking" = yes; then
13908 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13909 # instead of lib<name>.a to let people know that these are not
13910 # typical AIX shared libraries.
13911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13912 else
13913 # We preserve .a as extension for shared libraries through AIX4.2
13914 # and later when we are not doing run time linking.
13915 library_names_spec='${libname}${release}.a $libname.a'
13916 soname_spec='${libname}${release}${shared_ext}$major'
13918 shlibpath_var=LIBPATH
13922 amigaos*)
13923 library_names_spec='$libname.ixlibrary $libname.a'
13924 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13925 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'
13928 beos*)
13929 library_names_spec='${libname}${shared_ext}'
13930 dynamic_linker="$host_os ld.so"
13931 shlibpath_var=LIBRARY_PATH
13934 bsdi[45]*)
13935 version_type=linux
13936 need_version=no
13937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13938 soname_spec='${libname}${release}${shared_ext}$major'
13939 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13940 shlibpath_var=LD_LIBRARY_PATH
13941 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13942 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13943 # the default ld.so.conf also contains /usr/contrib/lib and
13944 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13945 # libtool to hard-code these into programs
13948 cygwin* | mingw* | pw32*)
13949 version_type=windows
13950 shrext_cmds=".dll"
13951 need_version=no
13952 need_lib_prefix=no
13954 case $GCC,$host_os in
13955 yes,cygwin* | yes,mingw* | yes,pw32*)
13956 library_names_spec='$libname.dll.a'
13957 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13958 postinstall_cmds='base_file=`basename \${file}`~
13959 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13960 dldir=$destdir/`dirname \$dlpath`~
13961 test -d \$dldir || mkdir -p \$dldir~
13962 $install_prog $dir/$dlname \$dldir/$dlname~
13963 chmod a+x \$dldir/$dlname'
13964 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13965 dlpath=$dir/\$dldll~
13966 $rm \$dlpath'
13967 shlibpath_overrides_runpath=yes
13969 case $host_os in
13970 cygwin*)
13971 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13972 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13973 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13975 mingw*)
13976 # MinGW DLLs use traditional 'lib' prefix
13977 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13978 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13979 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13980 # It is most probably a Windows format PATH printed by
13981 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13982 # path with ; separators, and with drive letters. We can handle the
13983 # drive letters (cygwin fileutils understands them), so leave them,
13984 # especially as we might pass files found there to a mingw objdump,
13985 # which wouldn't understand a cygwinified path. Ahh.
13986 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13987 else
13988 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13991 pw32*)
13992 # pw32 DLLs use 'pw' prefix rather than 'lib'
13993 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13995 esac
13999 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14001 esac
14002 dynamic_linker='Win32 ld.exe'
14003 # FIXME: first we should search . and the directory the executable is in
14004 shlibpath_var=PATH
14007 darwin* | rhapsody*)
14008 dynamic_linker="$host_os dyld"
14009 version_type=darwin
14010 need_lib_prefix=no
14011 need_version=no
14012 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14013 soname_spec='${libname}${release}${major}$shared_ext'
14014 shlibpath_overrides_runpath=yes
14015 shlibpath_var=DYLD_LIBRARY_PATH
14016 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14017 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14018 if test "$GCC" = yes; then
14019 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14020 else
14021 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14023 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14026 dgux*)
14027 version_type=linux
14028 need_lib_prefix=no
14029 need_version=no
14030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14031 soname_spec='${libname}${release}${shared_ext}$major'
14032 shlibpath_var=LD_LIBRARY_PATH
14035 freebsd1*)
14036 dynamic_linker=no
14039 kfreebsd*-gnu)
14040 version_type=linux
14041 need_lib_prefix=no
14042 need_version=no
14043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14044 soname_spec='${libname}${release}${shared_ext}$major'
14045 shlibpath_var=LD_LIBRARY_PATH
14046 shlibpath_overrides_runpath=no
14047 hardcode_into_libs=yes
14048 dynamic_linker='GNU ld.so'
14051 freebsd* | dragonfly*)
14052 # DragonFly does not have aout. When/if they implement a new
14053 # versioning mechanism, adjust this.
14054 if test -x /usr/bin/objformat; then
14055 objformat=`/usr/bin/objformat`
14056 else
14057 case $host_os in
14058 freebsd[123]*) objformat=aout ;;
14059 *) objformat=elf ;;
14060 esac
14062 version_type=freebsd-$objformat
14063 case $version_type in
14064 freebsd-elf*)
14065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14066 need_version=no
14067 need_lib_prefix=no
14069 freebsd-*)
14070 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14071 need_version=yes
14073 esac
14074 shlibpath_var=LD_LIBRARY_PATH
14075 case $host_os in
14076 freebsd2*)
14077 shlibpath_overrides_runpath=yes
14079 freebsd3.[01]* | freebsdelf3.[01]*)
14080 shlibpath_overrides_runpath=yes
14081 hardcode_into_libs=yes
14083 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14084 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14085 shlibpath_overrides_runpath=no
14086 hardcode_into_libs=yes
14088 freebsd*) # from 4.6 on
14089 shlibpath_overrides_runpath=yes
14090 hardcode_into_libs=yes
14092 esac
14095 gnu*)
14096 version_type=linux
14097 need_lib_prefix=no
14098 need_version=no
14099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14100 soname_spec='${libname}${release}${shared_ext}$major'
14101 shlibpath_var=LD_LIBRARY_PATH
14102 hardcode_into_libs=yes
14105 hpux9* | hpux10* | hpux11*)
14106 # Give a soname corresponding to the major version so that dld.sl refuses to
14107 # link against other versions.
14108 version_type=sunos
14109 need_lib_prefix=no
14110 need_version=no
14111 case $host_cpu in
14112 ia64*)
14113 shrext_cmds='.so'
14114 hardcode_into_libs=yes
14115 dynamic_linker="$host_os dld.so"
14116 shlibpath_var=LD_LIBRARY_PATH
14117 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14119 soname_spec='${libname}${release}${shared_ext}$major'
14120 if test "X$HPUX_IA64_MODE" = X32; then
14121 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14122 else
14123 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14125 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14127 hppa*64*)
14128 shrext_cmds='.sl'
14129 hardcode_into_libs=yes
14130 dynamic_linker="$host_os dld.sl"
14131 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14132 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14134 soname_spec='${libname}${release}${shared_ext}$major'
14135 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14136 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14139 shrext_cmds='.sl'
14140 dynamic_linker="$host_os dld.sl"
14141 shlibpath_var=SHLIB_PATH
14142 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14144 soname_spec='${libname}${release}${shared_ext}$major'
14146 esac
14147 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14148 postinstall_cmds='chmod 555 $lib'
14151 interix3*)
14152 version_type=linux
14153 need_lib_prefix=no
14154 need_version=no
14155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14156 soname_spec='${libname}${release}${shared_ext}$major'
14157 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14158 shlibpath_var=LD_LIBRARY_PATH
14159 shlibpath_overrides_runpath=no
14160 hardcode_into_libs=yes
14163 irix5* | irix6* | nonstopux*)
14164 case $host_os in
14165 nonstopux*) version_type=nonstopux ;;
14167 if test "$lt_cv_prog_gnu_ld" = yes; then
14168 version_type=linux
14169 else
14170 version_type=irix
14171 fi ;;
14172 esac
14173 need_lib_prefix=no
14174 need_version=no
14175 soname_spec='${libname}${release}${shared_ext}$major'
14176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14177 case $host_os in
14178 irix5* | nonstopux*)
14179 libsuff= shlibsuff=
14182 case $LD in # libtool.m4 will add one of these switches to LD
14183 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14184 libsuff= shlibsuff= libmagic=32-bit;;
14185 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14186 libsuff=32 shlibsuff=N32 libmagic=N32;;
14187 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14188 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14189 *) libsuff= shlibsuff= libmagic=never-match;;
14190 esac
14192 esac
14193 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14194 shlibpath_overrides_runpath=no
14195 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14196 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14197 hardcode_into_libs=yes
14200 # No shared lib support for Linux oldld, aout, or coff.
14201 linux*oldld* | linux*aout* | linux*coff*)
14202 dynamic_linker=no
14205 # This must be Linux ELF.
14206 linux*)
14207 version_type=linux
14208 need_lib_prefix=no
14209 need_version=no
14210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14211 soname_spec='${libname}${release}${shared_ext}$major'
14212 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14213 shlibpath_var=LD_LIBRARY_PATH
14214 shlibpath_overrides_runpath=no
14215 # This implies no fast_install, which is unacceptable.
14216 # Some rework will be needed to allow for fast_install
14217 # before this can be enabled.
14218 hardcode_into_libs=yes
14220 # Append ld.so.conf contents to the search path
14221 if test -f /etc/ld.so.conf; then
14222 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14223 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14226 # We used to test for /lib/ld.so.1 and disable shared libraries on
14227 # powerpc, because MkLinux only supported shared libraries with the
14228 # GNU dynamic linker. Since this was broken with cross compilers,
14229 # most powerpc-linux boxes support dynamic linking these days and
14230 # people can always --disable-shared, the test was removed, and we
14231 # assume the GNU/Linux dynamic linker is in use.
14232 dynamic_linker='GNU/Linux ld.so'
14235 knetbsd*-gnu)
14236 version_type=linux
14237 need_lib_prefix=no
14238 need_version=no
14239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14240 soname_spec='${libname}${release}${shared_ext}$major'
14241 shlibpath_var=LD_LIBRARY_PATH
14242 shlibpath_overrides_runpath=no
14243 hardcode_into_libs=yes
14244 dynamic_linker='GNU ld.so'
14247 netbsd*)
14248 version_type=sunos
14249 need_lib_prefix=no
14250 need_version=no
14251 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14253 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14254 dynamic_linker='NetBSD (a.out) ld.so'
14255 else
14256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14257 soname_spec='${libname}${release}${shared_ext}$major'
14258 dynamic_linker='NetBSD ld.elf_so'
14260 shlibpath_var=LD_LIBRARY_PATH
14261 shlibpath_overrides_runpath=yes
14262 hardcode_into_libs=yes
14265 newsos6)
14266 version_type=linux
14267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14268 shlibpath_var=LD_LIBRARY_PATH
14269 shlibpath_overrides_runpath=yes
14272 nto-qnx*)
14273 version_type=linux
14274 need_lib_prefix=no
14275 need_version=no
14276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14277 soname_spec='${libname}${release}${shared_ext}$major'
14278 shlibpath_var=LD_LIBRARY_PATH
14279 shlibpath_overrides_runpath=yes
14282 openbsd*)
14283 version_type=sunos
14284 sys_lib_dlsearch_path_spec="/usr/lib"
14285 need_lib_prefix=no
14286 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14287 case $host_os in
14288 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14289 *) need_version=no ;;
14290 esac
14291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14292 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14293 shlibpath_var=LD_LIBRARY_PATH
14294 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14295 case $host_os in
14296 openbsd2.[89] | openbsd2.[89].*)
14297 shlibpath_overrides_runpath=no
14300 shlibpath_overrides_runpath=yes
14302 esac
14303 else
14304 shlibpath_overrides_runpath=yes
14308 os2*)
14309 libname_spec='$name'
14310 shrext_cmds=".dll"
14311 need_lib_prefix=no
14312 library_names_spec='$libname${shared_ext} $libname.a'
14313 dynamic_linker='OS/2 ld.exe'
14314 shlibpath_var=LIBPATH
14317 osf3* | osf4* | osf5*)
14318 version_type=osf
14319 need_lib_prefix=no
14320 need_version=no
14321 soname_spec='${libname}${release}${shared_ext}$major'
14322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14323 shlibpath_var=LD_LIBRARY_PATH
14324 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14325 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14328 solaris*)
14329 version_type=linux
14330 need_lib_prefix=no
14331 need_version=no
14332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14333 soname_spec='${libname}${release}${shared_ext}$major'
14334 shlibpath_var=LD_LIBRARY_PATH
14335 shlibpath_overrides_runpath=yes
14336 hardcode_into_libs=yes
14337 # ldd complains unless libraries are executable
14338 postinstall_cmds='chmod +x $lib'
14341 sunos4*)
14342 version_type=sunos
14343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14344 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14345 shlibpath_var=LD_LIBRARY_PATH
14346 shlibpath_overrides_runpath=yes
14347 if test "$with_gnu_ld" = yes; then
14348 need_lib_prefix=no
14350 need_version=yes
14353 sysv4 | sysv4.3*)
14354 version_type=linux
14355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14356 soname_spec='${libname}${release}${shared_ext}$major'
14357 shlibpath_var=LD_LIBRARY_PATH
14358 case $host_vendor in
14359 sni)
14360 shlibpath_overrides_runpath=no
14361 need_lib_prefix=no
14362 export_dynamic_flag_spec='${wl}-Blargedynsym'
14363 runpath_var=LD_RUN_PATH
14365 siemens)
14366 need_lib_prefix=no
14368 motorola)
14369 need_lib_prefix=no
14370 need_version=no
14371 shlibpath_overrides_runpath=no
14372 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14374 esac
14377 sysv4*MP*)
14378 if test -d /usr/nec ;then
14379 version_type=linux
14380 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14381 soname_spec='$libname${shared_ext}.$major'
14382 shlibpath_var=LD_LIBRARY_PATH
14386 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14387 version_type=freebsd-elf
14388 need_lib_prefix=no
14389 need_version=no
14390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14391 soname_spec='${libname}${release}${shared_ext}$major'
14392 shlibpath_var=LD_LIBRARY_PATH
14393 hardcode_into_libs=yes
14394 if test "$with_gnu_ld" = yes; then
14395 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14396 shlibpath_overrides_runpath=no
14397 else
14398 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14399 shlibpath_overrides_runpath=yes
14400 case $host_os in
14401 sco3.2v5*)
14402 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14404 esac
14406 sys_lib_dlsearch_path_spec='/usr/lib'
14409 uts4*)
14410 version_type=linux
14411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14412 soname_spec='${libname}${release}${shared_ext}$major'
14413 shlibpath_var=LD_LIBRARY_PATH
14417 dynamic_linker=no
14419 esac
14420 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14421 $as_echo "$dynamic_linker" >&6; }
14422 test "$dynamic_linker" = no && can_build_shared=no
14424 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14425 if test "$GCC" = yes; then
14426 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14429 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14430 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14431 hardcode_action_CXX=
14432 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14433 test -n "$runpath_var_CXX" || \
14434 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14436 # We can hardcode non-existant directories.
14437 if test "$hardcode_direct_CXX" != no &&
14438 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14439 # have to relink, otherwise we might link with an installed library
14440 # when we should be linking with a yet-to-be-installed one
14441 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14442 test "$hardcode_minus_L_CXX" != no; then
14443 # Linking always hardcodes the temporary library directory.
14444 hardcode_action_CXX=relink
14445 else
14446 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14447 hardcode_action_CXX=immediate
14449 else
14450 # We cannot hardcode anything, or else we can only hardcode existing
14451 # directories.
14452 hardcode_action_CXX=unsupported
14454 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14455 $as_echo "$hardcode_action_CXX" >&6; }
14457 if test "$hardcode_action_CXX" = relink; then
14458 # Fast installation is not supported
14459 enable_fast_install=no
14460 elif test "$shlibpath_overrides_runpath" = yes ||
14461 test "$enable_shared" = no; then
14462 # Fast installation is not necessary
14463 enable_fast_install=needless
14467 # The else clause should only fire when bootstrapping the
14468 # libtool distribution, otherwise you forgot to ship ltmain.sh
14469 # with your package, and you will get complaints that there are
14470 # no rules to generate ltmain.sh.
14471 if test -f "$ltmain"; then
14472 # See if we are running on zsh, and set the options which allow our commands through
14473 # without removal of \ escapes.
14474 if test -n "${ZSH_VERSION+set}" ; then
14475 setopt NO_GLOB_SUBST
14477 # Now quote all the things that may contain metacharacters while being
14478 # careful not to overquote the AC_SUBSTed values. We take copies of the
14479 # variables and quote the copies for generation of the libtool script.
14480 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14481 SED SHELL STRIP \
14482 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14483 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14484 deplibs_check_method reload_flag reload_cmds need_locks \
14485 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14486 lt_cv_sys_global_symbol_to_c_name_address \
14487 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14488 old_postinstall_cmds old_postuninstall_cmds \
14489 compiler_CXX \
14490 CC_CXX \
14491 LD_CXX \
14492 lt_prog_compiler_wl_CXX \
14493 lt_prog_compiler_pic_CXX \
14494 lt_prog_compiler_static_CXX \
14495 lt_prog_compiler_no_builtin_flag_CXX \
14496 export_dynamic_flag_spec_CXX \
14497 thread_safe_flag_spec_CXX \
14498 whole_archive_flag_spec_CXX \
14499 enable_shared_with_static_runtimes_CXX \
14500 old_archive_cmds_CXX \
14501 old_archive_from_new_cmds_CXX \
14502 predep_objects_CXX \
14503 postdep_objects_CXX \
14504 predeps_CXX \
14505 postdeps_CXX \
14506 compiler_lib_search_path_CXX \
14507 archive_cmds_CXX \
14508 archive_expsym_cmds_CXX \
14509 postinstall_cmds_CXX \
14510 postuninstall_cmds_CXX \
14511 old_archive_from_expsyms_cmds_CXX \
14512 allow_undefined_flag_CXX \
14513 no_undefined_flag_CXX \
14514 export_symbols_cmds_CXX \
14515 hardcode_libdir_flag_spec_CXX \
14516 hardcode_libdir_flag_spec_ld_CXX \
14517 hardcode_libdir_separator_CXX \
14518 hardcode_automatic_CXX \
14519 module_cmds_CXX \
14520 module_expsym_cmds_CXX \
14521 lt_cv_prog_compiler_c_o_CXX \
14522 exclude_expsyms_CXX \
14523 include_expsyms_CXX; do
14525 case $var in
14526 old_archive_cmds_CXX | \
14527 old_archive_from_new_cmds_CXX | \
14528 archive_cmds_CXX | \
14529 archive_expsym_cmds_CXX | \
14530 module_cmds_CXX | \
14531 module_expsym_cmds_CXX | \
14532 old_archive_from_expsyms_cmds_CXX | \
14533 export_symbols_cmds_CXX | \
14534 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14535 postinstall_cmds | postuninstall_cmds | \
14536 old_postinstall_cmds | old_postuninstall_cmds | \
14537 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14538 # Double-quote double-evaled strings.
14539 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14542 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14544 esac
14545 done
14547 case $lt_echo in
14548 *'\$0 --fallback-echo"')
14549 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14551 esac
14553 cfgfile="$ofile"
14555 cat <<__EOF__ >> "$cfgfile"
14556 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14558 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14560 # Shell to use when invoking shell scripts.
14561 SHELL=$lt_SHELL
14563 # Whether or not to build shared libraries.
14564 build_libtool_libs=$enable_shared
14566 # Whether or not to build static libraries.
14567 build_old_libs=$enable_static
14569 # Whether or not to add -lc for building shared libraries.
14570 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14572 # Whether or not to disallow shared libs when runtime libs are static
14573 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14575 # Whether or not to optimize for fast installation.
14576 fast_install=$enable_fast_install
14578 # The host system.
14579 host_alias=$host_alias
14580 host=$host
14581 host_os=$host_os
14583 # The build system.
14584 build_alias=$build_alias
14585 build=$build
14586 build_os=$build_os
14588 # An echo program that does not interpret backslashes.
14589 echo=$lt_echo
14591 # The archiver.
14592 AR=$lt_AR
14593 AR_FLAGS=$lt_AR_FLAGS
14595 # A C compiler.
14596 LTCC=$lt_LTCC
14598 # LTCC compiler flags.
14599 LTCFLAGS=$lt_LTCFLAGS
14601 # A language-specific compiler.
14602 CC=$lt_compiler_CXX
14604 # Is the compiler the GNU C compiler?
14605 with_gcc=$GCC_CXX
14607 # An ERE matcher.
14608 EGREP=$lt_EGREP
14610 # The linker used to build libraries.
14611 LD=$lt_LD_CXX
14613 # Whether we need hard or soft links.
14614 LN_S=$lt_LN_S
14616 # A BSD-compatible nm program.
14617 NM=$lt_NM
14619 # A symbol stripping program
14620 STRIP=$lt_STRIP
14622 # Used to examine libraries when file_magic_cmd begins "file"
14623 MAGIC_CMD=$MAGIC_CMD
14625 # Used on cygwin: DLL creation program.
14626 DLLTOOL="$DLLTOOL"
14628 # Used on cygwin: object dumper.
14629 OBJDUMP="$OBJDUMP"
14631 # Used on cygwin: assembler.
14632 AS="$AS"
14634 # The name of the directory that contains temporary libtool files.
14635 objdir=$objdir
14637 # How to create reloadable object files.
14638 reload_flag=$lt_reload_flag
14639 reload_cmds=$lt_reload_cmds
14641 # How to pass a linker flag through the compiler.
14642 wl=$lt_lt_prog_compiler_wl_CXX
14644 # Object file suffix (normally "o").
14645 objext="$ac_objext"
14647 # Old archive suffix (normally "a").
14648 libext="$libext"
14650 # Shared library suffix (normally ".so").
14651 shrext_cmds='$shrext_cmds'
14653 # Executable file suffix (normally "").
14654 exeext="$exeext"
14656 # Additional compiler flags for building library objects.
14657 pic_flag=$lt_lt_prog_compiler_pic_CXX
14658 pic_mode=$pic_mode
14660 # What is the maximum length of a command?
14661 max_cmd_len=$lt_cv_sys_max_cmd_len
14663 # Does compiler simultaneously support -c and -o options?
14664 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14666 # Must we lock files when doing compilation?
14667 need_locks=$lt_need_locks
14669 # Do we need the lib prefix for modules?
14670 need_lib_prefix=$need_lib_prefix
14672 # Do we need a version for libraries?
14673 need_version=$need_version
14675 # Whether dlopen is supported.
14676 dlopen_support=$enable_dlopen
14678 # Whether dlopen of programs is supported.
14679 dlopen_self=$enable_dlopen_self
14681 # Whether dlopen of statically linked programs is supported.
14682 dlopen_self_static=$enable_dlopen_self_static
14684 # Compiler flag to prevent dynamic linking.
14685 link_static_flag=$lt_lt_prog_compiler_static_CXX
14687 # Compiler flag to turn off builtin functions.
14688 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14690 # Compiler flag to allow reflexive dlopens.
14691 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14693 # Compiler flag to generate shared objects directly from archives.
14694 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14696 # Compiler flag to generate thread-safe objects.
14697 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14699 # Library versioning type.
14700 version_type=$version_type
14702 # Format of library name prefix.
14703 libname_spec=$lt_libname_spec
14705 # List of archive names. First name is the real one, the rest are links.
14706 # The last name is the one that the linker finds with -lNAME.
14707 library_names_spec=$lt_library_names_spec
14709 # The coded name of the library, if different from the real name.
14710 soname_spec=$lt_soname_spec
14712 # Commands used to build and install an old-style archive.
14713 RANLIB=$lt_RANLIB
14714 old_archive_cmds=$lt_old_archive_cmds_CXX
14715 old_postinstall_cmds=$lt_old_postinstall_cmds
14716 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14718 # Create an old-style archive from a shared archive.
14719 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14721 # Create a temporary old-style archive to link instead of a shared archive.
14722 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14724 # Commands used to build and install a shared archive.
14725 archive_cmds=$lt_archive_cmds_CXX
14726 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14727 postinstall_cmds=$lt_postinstall_cmds
14728 postuninstall_cmds=$lt_postuninstall_cmds
14730 # Commands used to build a loadable module (assumed same as above if empty)
14731 module_cmds=$lt_module_cmds_CXX
14732 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14734 # Commands to strip libraries.
14735 old_striplib=$lt_old_striplib
14736 striplib=$lt_striplib
14738 # Dependencies to place before the objects being linked to create a
14739 # shared library.
14740 predep_objects=$lt_predep_objects_CXX
14742 # Dependencies to place after the objects being linked to create a
14743 # shared library.
14744 postdep_objects=$lt_postdep_objects_CXX
14746 # Dependencies to place before the objects being linked to create a
14747 # shared library.
14748 predeps=$lt_predeps_CXX
14750 # Dependencies to place after the objects being linked to create a
14751 # shared library.
14752 postdeps=$lt_postdeps_CXX
14754 # The library search path used internally by the compiler when linking
14755 # a shared library.
14756 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14758 # Method to check whether dependent libraries are shared objects.
14759 deplibs_check_method=$lt_deplibs_check_method
14761 # Command to use when deplibs_check_method == file_magic.
14762 file_magic_cmd=$lt_file_magic_cmd
14764 # Flag that allows shared libraries with undefined symbols to be built.
14765 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14767 # Flag that forces no undefined symbols.
14768 no_undefined_flag=$lt_no_undefined_flag_CXX
14770 # Commands used to finish a libtool library installation in a directory.
14771 finish_cmds=$lt_finish_cmds
14773 # Same as above, but a single script fragment to be evaled but not shown.
14774 finish_eval=$lt_finish_eval
14776 # Take the output of nm and produce a listing of raw symbols and C names.
14777 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14779 # Transform the output of nm in a proper C declaration
14780 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14782 # Transform the output of nm in a C name address pair
14783 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14785 # This is the shared library runtime path variable.
14786 runpath_var=$runpath_var
14788 # This is the shared library path variable.
14789 shlibpath_var=$shlibpath_var
14791 # Is shlibpath searched before the hard-coded library search path?
14792 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14794 # How to hardcode a shared library path into an executable.
14795 hardcode_action=$hardcode_action_CXX
14797 # Whether we should hardcode library paths into libraries.
14798 hardcode_into_libs=$hardcode_into_libs
14800 # Flag to hardcode \$libdir into a binary during linking.
14801 # This must work even if \$libdir does not exist.
14802 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14804 # If ld is used when linking, flag to hardcode \$libdir into
14805 # a binary during linking. This must work even if \$libdir does
14806 # not exist.
14807 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14809 # Whether we need a single -rpath flag with a separated argument.
14810 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14812 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14813 # resulting binary.
14814 hardcode_direct=$hardcode_direct_CXX
14816 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14817 # resulting binary.
14818 hardcode_minus_L=$hardcode_minus_L_CXX
14820 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14821 # the resulting binary.
14822 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14824 # Set to yes if building a shared library automatically hardcodes DIR into the library
14825 # and all subsequent libraries and executables linked against it.
14826 hardcode_automatic=$hardcode_automatic_CXX
14828 # Variables whose values should be saved in libtool wrapper scripts and
14829 # restored at relink time.
14830 variables_saved_for_relink="$variables_saved_for_relink"
14832 # Whether libtool must link a program against all its dependency libraries.
14833 link_all_deplibs=$link_all_deplibs_CXX
14835 # Compile-time system search path for libraries
14836 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14838 # Run-time system search path for libraries
14839 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14841 # Fix the shell variable \$srcfile for the compiler.
14842 fix_srcfile_path="$fix_srcfile_path_CXX"
14844 # Set to yes if exported symbols are required.
14845 always_export_symbols=$always_export_symbols_CXX
14847 # The commands to list exported symbols.
14848 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14850 # The commands to extract the exported symbol list from a shared archive.
14851 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14853 # Symbols that should not be listed in the preloaded symbols.
14854 exclude_expsyms=$lt_exclude_expsyms_CXX
14856 # Symbols that must always be exported.
14857 include_expsyms=$lt_include_expsyms_CXX
14859 # ### END LIBTOOL TAG CONFIG: $tagname
14861 __EOF__
14864 else
14865 # If there is no Makefile yet, we rely on a make rule to execute
14866 # `config.status --recheck' to rerun these tests and create the
14867 # libtool script then.
14868 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14869 if test -f "$ltmain_in"; then
14870 test -f Makefile && make "$ltmain"
14875 ac_ext=c
14876 ac_cpp='$CPP $CPPFLAGS'
14877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14881 CC=$lt_save_CC
14882 LDCXX=$LD
14883 LD=$lt_save_LD
14884 GCC=$lt_save_GCC
14885 with_gnu_ldcxx=$with_gnu_ld
14886 with_gnu_ld=$lt_save_with_gnu_ld
14887 lt_cv_path_LDCXX=$lt_cv_path_LD
14888 lt_cv_path_LD=$lt_save_path_LD
14889 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14890 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14892 else
14893 tagname=""
14897 F77)
14898 if test -n "$F77" && test "X$F77" != "Xno"; then
14900 ac_ext=f
14901 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14902 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14903 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14906 archive_cmds_need_lc_F77=no
14907 allow_undefined_flag_F77=
14908 always_export_symbols_F77=no
14909 archive_expsym_cmds_F77=
14910 export_dynamic_flag_spec_F77=
14911 hardcode_direct_F77=no
14912 hardcode_libdir_flag_spec_F77=
14913 hardcode_libdir_flag_spec_ld_F77=
14914 hardcode_libdir_separator_F77=
14915 hardcode_minus_L_F77=no
14916 hardcode_automatic_F77=no
14917 module_cmds_F77=
14918 module_expsym_cmds_F77=
14919 link_all_deplibs_F77=unknown
14920 old_archive_cmds_F77=$old_archive_cmds
14921 no_undefined_flag_F77=
14922 whole_archive_flag_spec_F77=
14923 enable_shared_with_static_runtimes_F77=no
14925 # Source file extension for f77 test sources.
14926 ac_ext=f
14928 # Object file extension for compiled f77 test sources.
14929 objext=o
14930 objext_F77=$objext
14932 # Code to be used in simple compile tests
14933 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14935 # Code to be used in simple link tests
14936 lt_simple_link_test_code=" program t\n end\n"
14938 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14940 # If no C compiler was specified, use CC.
14941 LTCC=${LTCC-"$CC"}
14943 # If no C compiler flags were specified, use CFLAGS.
14944 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14946 # Allow CC to be a program name with arguments.
14947 compiler=$CC
14950 # save warnings/boilerplate of simple test code
14951 ac_outfile=conftest.$ac_objext
14952 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14953 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14954 _lt_compiler_boilerplate=`cat conftest.err`
14955 $rm conftest*
14957 ac_outfile=conftest.$ac_objext
14958 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14959 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14960 _lt_linker_boilerplate=`cat conftest.err`
14961 $rm conftest*
14964 # Allow CC to be a program name with arguments.
14965 lt_save_CC="$CC"
14966 CC=${F77-"f77"}
14967 compiler=$CC
14968 compiler_F77=$CC
14969 for cc_temp in $compiler""; do
14970 case $cc_temp in
14971 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14972 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14973 \-*) ;;
14974 *) break;;
14975 esac
14976 done
14977 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14980 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14981 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14982 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14983 $as_echo "$can_build_shared" >&6; }
14985 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14986 $as_echo_n "checking whether to build shared libraries... " >&6; }
14987 test "$can_build_shared" = "no" && enable_shared=no
14989 # On AIX, shared libraries and static libraries use the same namespace, and
14990 # are all built from PIC.
14991 case $host_os in
14992 aix3*)
14993 test "$enable_shared" = yes && enable_static=no
14994 if test -n "$RANLIB"; then
14995 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14996 postinstall_cmds='$RANLIB $lib'
14999 aix4* | aix5*)
15000 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15001 test "$enable_shared" = yes && enable_static=no
15004 esac
15005 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
15006 $as_echo "$enable_shared" >&6; }
15008 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15009 $as_echo_n "checking whether to build static libraries... " >&6; }
15010 # Make sure either enable_shared or enable_static is yes.
15011 test "$enable_shared" = yes || enable_static=yes
15012 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
15013 $as_echo "$enable_static" >&6; }
15015 GCC_F77="$G77"
15016 LD_F77="$LD"
15018 lt_prog_compiler_wl_F77=
15019 lt_prog_compiler_pic_F77=
15020 lt_prog_compiler_static_F77=
15022 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15023 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15025 if test "$GCC" = yes; then
15026 lt_prog_compiler_wl_F77='-Wl,'
15027 lt_prog_compiler_static_F77='-static'
15029 case $host_os in
15030 aix*)
15031 # All AIX code is PIC.
15032 if test "$host_cpu" = ia64; then
15033 # AIX 5 now supports IA64 processor
15034 lt_prog_compiler_static_F77='-Bstatic'
15038 amigaos*)
15039 # FIXME: we need at least 68020 code to build shared libraries, but
15040 # adding the `-m68020' flag to GCC prevents building anything better,
15041 # like `-m68040'.
15042 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15045 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15046 # PIC is the default for these OSes.
15049 mingw* | pw32* | os2*)
15050 # This hack is so that the source file can tell whether it is being
15051 # built for inclusion in a dll (and should export symbols for example).
15052 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15055 darwin* | rhapsody*)
15056 # PIC is the default on this platform
15057 # Common symbols not allowed in MH_DYLIB files
15058 lt_prog_compiler_pic_F77='-fno-common'
15061 interix3*)
15062 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15063 # Instead, we relocate shared libraries at runtime.
15066 msdosdjgpp*)
15067 # Just because we use GCC doesn't mean we suddenly get shared libraries
15068 # on systems that don't support them.
15069 lt_prog_compiler_can_build_shared_F77=no
15070 enable_shared=no
15073 sysv4*MP*)
15074 if test -d /usr/nec; then
15075 lt_prog_compiler_pic_F77=-Kconform_pic
15079 hpux*)
15080 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15081 # not for PA HP-UX.
15082 case $host_cpu in
15083 hppa*64*|ia64*)
15084 # +Z the default
15087 lt_prog_compiler_pic_F77='-fPIC'
15089 esac
15093 lt_prog_compiler_pic_F77='-fPIC'
15095 esac
15096 else
15097 # PORTME Check for flag to pass linker flags through the system compiler.
15098 case $host_os in
15099 aix*)
15100 lt_prog_compiler_wl_F77='-Wl,'
15101 if test "$host_cpu" = ia64; then
15102 # AIX 5 now supports IA64 processor
15103 lt_prog_compiler_static_F77='-Bstatic'
15104 else
15105 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15108 darwin*)
15109 # PIC is the default on this platform
15110 # Common symbols not allowed in MH_DYLIB files
15111 case $cc_basename in
15112 xlc*)
15113 lt_prog_compiler_pic_F77='-qnocommon'
15114 lt_prog_compiler_wl_F77='-Wl,'
15116 esac
15119 mingw* | pw32* | os2*)
15120 # This hack is so that the source file can tell whether it is being
15121 # built for inclusion in a dll (and should export symbols for example).
15122 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15125 hpux9* | hpux10* | hpux11*)
15126 lt_prog_compiler_wl_F77='-Wl,'
15127 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15128 # not for PA HP-UX.
15129 case $host_cpu in
15130 hppa*64*|ia64*)
15131 # +Z the default
15134 lt_prog_compiler_pic_F77='+Z'
15136 esac
15137 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15138 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15141 irix5* | irix6* | nonstopux*)
15142 lt_prog_compiler_wl_F77='-Wl,'
15143 # PIC (with -KPIC) is the default.
15144 lt_prog_compiler_static_F77='-non_shared'
15147 newsos6)
15148 lt_prog_compiler_pic_F77='-KPIC'
15149 lt_prog_compiler_static_F77='-Bstatic'
15152 linux*)
15153 case $cc_basename in
15154 icc* | ecc*)
15155 lt_prog_compiler_wl_F77='-Wl,'
15156 lt_prog_compiler_pic_F77='-KPIC'
15157 lt_prog_compiler_static_F77='-static'
15159 pgcc* | pgf77* | pgf90* | pgf95*)
15160 # Portland Group compilers (*not* the Pentium gcc compiler,
15161 # which looks to be a dead project)
15162 lt_prog_compiler_wl_F77='-Wl,'
15163 lt_prog_compiler_pic_F77='-fpic'
15164 lt_prog_compiler_static_F77='-Bstatic'
15166 ccc*)
15167 lt_prog_compiler_wl_F77='-Wl,'
15168 # All Alpha code is PIC.
15169 lt_prog_compiler_static_F77='-non_shared'
15171 esac
15174 osf3* | osf4* | osf5*)
15175 lt_prog_compiler_wl_F77='-Wl,'
15176 # All OSF/1 code is PIC.
15177 lt_prog_compiler_static_F77='-non_shared'
15180 solaris*)
15181 lt_prog_compiler_pic_F77='-KPIC'
15182 lt_prog_compiler_static_F77='-Bstatic'
15183 case $cc_basename in
15184 f77* | f90* | f95*)
15185 lt_prog_compiler_wl_F77='-Qoption ld ';;
15187 lt_prog_compiler_wl_F77='-Wl,';;
15188 esac
15191 sunos4*)
15192 lt_prog_compiler_wl_F77='-Qoption ld '
15193 lt_prog_compiler_pic_F77='-PIC'
15194 lt_prog_compiler_static_F77='-Bstatic'
15197 sysv4 | sysv4.2uw2* | sysv4.3*)
15198 lt_prog_compiler_wl_F77='-Wl,'
15199 lt_prog_compiler_pic_F77='-KPIC'
15200 lt_prog_compiler_static_F77='-Bstatic'
15203 sysv4*MP*)
15204 if test -d /usr/nec ;then
15205 lt_prog_compiler_pic_F77='-Kconform_pic'
15206 lt_prog_compiler_static_F77='-Bstatic'
15210 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15211 lt_prog_compiler_wl_F77='-Wl,'
15212 lt_prog_compiler_pic_F77='-KPIC'
15213 lt_prog_compiler_static_F77='-Bstatic'
15216 unicos*)
15217 lt_prog_compiler_wl_F77='-Wl,'
15218 lt_prog_compiler_can_build_shared_F77=no
15221 uts4*)
15222 lt_prog_compiler_pic_F77='-pic'
15223 lt_prog_compiler_static_F77='-Bstatic'
15227 lt_prog_compiler_can_build_shared_F77=no
15229 esac
15232 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15233 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
15236 # Check to make sure the PIC flag actually works.
15238 if test -n "$lt_prog_compiler_pic_F77"; then
15240 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15241 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
15242 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15243 $as_echo_n "(cached) " >&6
15244 else
15245 lt_prog_compiler_pic_works_F77=no
15246 ac_outfile=conftest.$ac_objext
15247 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15248 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15249 # Insert the option either (1) after the last *FLAGS variable, or
15250 # (2) before a word containing "conftest.", or (3) at the end.
15251 # Note that $ac_compile itself does not contain backslashes and begins
15252 # with a dollar sign (not a hyphen), so the echo should work correctly.
15253 # The option is referenced via a variable to avoid confusing sed.
15254 lt_compile=`echo "$ac_compile" | $SED \
15255 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15256 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15257 -e 's:$: $lt_compiler_flag:'`
15258 (eval echo "\"\$as_me:15258: $lt_compile\"" >&5)
15259 (eval "$lt_compile" 2>conftest.err)
15260 ac_status=$?
15261 cat conftest.err >&5
15262 echo "$as_me:15262: \$? = $ac_status" >&5
15263 if (exit $ac_status) && test -s "$ac_outfile"; then
15264 # The compiler can only warn and ignore the option if not recognized
15265 # So say no if there are warnings other than the usual output.
15266 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15267 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15268 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15269 lt_prog_compiler_pic_works_F77=yes
15272 $rm conftest*
15275 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15276 $as_echo "$lt_prog_compiler_pic_works_F77" >&6; }
15278 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15279 case $lt_prog_compiler_pic_F77 in
15280 "" | " "*) ;;
15281 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15282 esac
15283 else
15284 lt_prog_compiler_pic_F77=
15285 lt_prog_compiler_can_build_shared_F77=no
15289 case $host_os in
15290 # For platforms which do not support PIC, -DPIC is meaningless:
15291 *djgpp*)
15292 lt_prog_compiler_pic_F77=
15295 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15297 esac
15300 # Check to make sure the static flag actually works.
15302 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15303 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15304 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15305 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15306 $as_echo_n "(cached) " >&6
15307 else
15308 lt_prog_compiler_static_works_F77=no
15309 save_LDFLAGS="$LDFLAGS"
15310 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15311 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15312 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15313 # The linker can only warn and ignore the option if not recognized
15314 # So say no if there are warnings
15315 if test -s conftest.err; then
15316 # Append any errors to the config.log.
15317 cat conftest.err 1>&5
15318 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15319 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15320 if diff conftest.exp conftest.er2 >/dev/null; then
15321 lt_prog_compiler_static_works_F77=yes
15323 else
15324 lt_prog_compiler_static_works_F77=yes
15327 $rm conftest*
15328 LDFLAGS="$save_LDFLAGS"
15331 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15332 $as_echo "$lt_prog_compiler_static_works_F77" >&6; }
15334 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15336 else
15337 lt_prog_compiler_static_F77=
15341 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15342 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15343 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15344 $as_echo_n "(cached) " >&6
15345 else
15346 lt_cv_prog_compiler_c_o_F77=no
15347 $rm -r conftest 2>/dev/null
15348 mkdir conftest
15349 cd conftest
15350 mkdir out
15351 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15353 lt_compiler_flag="-o out/conftest2.$ac_objext"
15354 # Insert the option either (1) after the last *FLAGS variable, or
15355 # (2) before a word containing "conftest.", or (3) at the end.
15356 # Note that $ac_compile itself does not contain backslashes and begins
15357 # with a dollar sign (not a hyphen), so the echo should work correctly.
15358 lt_compile=`echo "$ac_compile" | $SED \
15359 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15360 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15361 -e 's:$: $lt_compiler_flag:'`
15362 (eval echo "\"\$as_me:15362: $lt_compile\"" >&5)
15363 (eval "$lt_compile" 2>out/conftest.err)
15364 ac_status=$?
15365 cat out/conftest.err >&5
15366 echo "$as_me:15366: \$? = $ac_status" >&5
15367 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15368 then
15369 # The compiler can only warn and ignore the option if not recognized
15370 # So say no if there are warnings
15371 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15372 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15373 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15374 lt_cv_prog_compiler_c_o_F77=yes
15377 chmod u+w . 2>&5
15378 $rm conftest*
15379 # SGI C++ compiler will create directory out/ii_files/ for
15380 # template instantiation
15381 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15382 $rm out/* && rmdir out
15383 cd ..
15384 rmdir conftest
15385 $rm conftest*
15388 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15389 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
15392 hard_links="nottested"
15393 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15394 # do not overwrite the value of need_locks provided by the user
15395 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15396 $as_echo_n "checking if we can lock with hard links... " >&6; }
15397 hard_links=yes
15398 $rm conftest*
15399 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15400 touch conftest.a
15401 ln conftest.a conftest.b 2>&5 || hard_links=no
15402 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15403 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
15404 $as_echo "$hard_links" >&6; }
15405 if test "$hard_links" = no; then
15406 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15407 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15408 need_locks=warn
15410 else
15411 need_locks=no
15414 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15415 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15417 runpath_var=
15418 allow_undefined_flag_F77=
15419 enable_shared_with_static_runtimes_F77=no
15420 archive_cmds_F77=
15421 archive_expsym_cmds_F77=
15422 old_archive_From_new_cmds_F77=
15423 old_archive_from_expsyms_cmds_F77=
15424 export_dynamic_flag_spec_F77=
15425 whole_archive_flag_spec_F77=
15426 thread_safe_flag_spec_F77=
15427 hardcode_libdir_flag_spec_F77=
15428 hardcode_libdir_flag_spec_ld_F77=
15429 hardcode_libdir_separator_F77=
15430 hardcode_direct_F77=no
15431 hardcode_minus_L_F77=no
15432 hardcode_shlibpath_var_F77=unsupported
15433 link_all_deplibs_F77=unknown
15434 hardcode_automatic_F77=no
15435 module_cmds_F77=
15436 module_expsym_cmds_F77=
15437 always_export_symbols_F77=no
15438 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15439 # include_expsyms should be a list of space-separated symbols to be *always*
15440 # included in the symbol list
15441 include_expsyms_F77=
15442 # exclude_expsyms can be an extended regexp of symbols to exclude
15443 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15444 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15445 # as well as any symbol that contains `d'.
15446 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15447 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15448 # platforms (ab)use it in PIC code, but their linkers get confused if
15449 # the symbol is explicitly referenced. Since portable code cannot
15450 # rely on this symbol name, it's probably fine to never include it in
15451 # preloaded symbol tables.
15452 extract_expsyms_cmds=
15453 # Just being paranoid about ensuring that cc_basename is set.
15454 for cc_temp in $compiler""; do
15455 case $cc_temp in
15456 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15457 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15458 \-*) ;;
15459 *) break;;
15460 esac
15461 done
15462 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15464 case $host_os in
15465 cygwin* | mingw* | pw32*)
15466 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15467 # When not using gcc, we currently assume that we are using
15468 # Microsoft Visual C++.
15469 if test "$GCC" != yes; then
15470 with_gnu_ld=no
15473 interix*)
15474 # we just hope/assume this is gcc and not c89 (= MSVC++)
15475 with_gnu_ld=yes
15477 openbsd*)
15478 with_gnu_ld=no
15480 esac
15482 ld_shlibs_F77=yes
15483 if test "$with_gnu_ld" = yes; then
15484 # If archive_cmds runs LD, not CC, wlarc should be empty
15485 wlarc='${wl}'
15487 # Set some defaults for GNU ld with shared library support. These
15488 # are reset later if shared libraries are not supported. Putting them
15489 # here allows them to be overridden if necessary.
15490 runpath_var=LD_RUN_PATH
15491 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15492 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15493 # ancient GNU ld didn't support --whole-archive et. al.
15494 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15495 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15496 else
15497 whole_archive_flag_spec_F77=
15499 supports_anon_versioning=no
15500 case `$LD -v 2>/dev/null` in
15501 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15502 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15503 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15504 *\ 2.11.*) ;; # other 2.11 versions
15505 *) supports_anon_versioning=yes ;;
15506 esac
15508 # See if GNU ld supports shared libraries.
15509 case $host_os in
15510 aix3* | aix4* | aix5*)
15511 # On AIX/PPC, the GNU linker is very broken
15512 if test "$host_cpu" != ia64; then
15513 ld_shlibs_F77=no
15514 cat <<EOF 1>&2
15516 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15517 *** to be unable to reliably create shared libraries on AIX.
15518 *** Therefore, libtool is disabling shared libraries support. If you
15519 *** really care for shared libraries, you may want to modify your PATH
15520 *** so that a non-GNU linker is found, and then restart.
15526 amigaos*)
15527 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15528 hardcode_libdir_flag_spec_F77='-L$libdir'
15529 hardcode_minus_L_F77=yes
15531 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15532 # that the semantics of dynamic libraries on AmigaOS, at least up
15533 # to version 4, is to share data among multiple programs linked
15534 # with the same dynamic library. Since this doesn't match the
15535 # behavior of shared libraries on other platforms, we can't use
15536 # them.
15537 ld_shlibs_F77=no
15540 beos*)
15541 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15542 allow_undefined_flag_F77=unsupported
15543 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15544 # support --undefined. This deserves some investigation. FIXME
15545 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15546 else
15547 ld_shlibs_F77=no
15551 cygwin* | mingw* | pw32*)
15552 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15553 # as there is no search path for DLLs.
15554 hardcode_libdir_flag_spec_F77='-L$libdir'
15555 allow_undefined_flag_F77=unsupported
15556 always_export_symbols_F77=no
15557 enable_shared_with_static_runtimes_F77=yes
15558 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15560 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15561 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15562 # If the export-symbols file already is a .def file (1st line
15563 # is EXPORTS), use it as is; otherwise, prepend...
15564 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15565 cp $export_symbols $output_objdir/$soname.def;
15566 else
15567 echo EXPORTS > $output_objdir/$soname.def;
15568 cat $export_symbols >> $output_objdir/$soname.def;
15570 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15571 else
15572 ld_shlibs_F77=no
15576 interix3*)
15577 hardcode_direct_F77=no
15578 hardcode_shlibpath_var_F77=no
15579 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15580 export_dynamic_flag_spec_F77='${wl}-E'
15581 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15582 # Instead, shared libraries are loaded at an image base (0x10000000 by
15583 # default) and relocated if they conflict, which is a slow very memory
15584 # consuming and fragmenting process. To avoid this, we pick a random,
15585 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15586 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15587 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15588 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15591 linux*)
15592 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15593 tmp_addflag=
15594 case $cc_basename,$host_cpu in
15595 pgcc*) # Portland Group C compiler
15596 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15597 tmp_addflag=' $pic_flag'
15599 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15600 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15601 tmp_addflag=' $pic_flag -Mnomain' ;;
15602 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15603 tmp_addflag=' -i_dynamic' ;;
15604 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15605 tmp_addflag=' -i_dynamic -nofor_main' ;;
15606 ifc* | ifort*) # Intel Fortran compiler
15607 tmp_addflag=' -nofor_main' ;;
15608 esac
15609 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15611 if test $supports_anon_versioning = yes; then
15612 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15613 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15614 $echo "local: *; };" >> $output_objdir/$libname.ver~
15615 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15617 else
15618 ld_shlibs_F77=no
15622 netbsd*)
15623 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15624 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15625 wlarc=
15626 else
15627 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15628 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15632 solaris*)
15633 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15634 ld_shlibs_F77=no
15635 cat <<EOF 1>&2
15637 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15638 *** create shared libraries on Solaris systems. Therefore, libtool
15639 *** is disabling shared libraries support. We urge you to upgrade GNU
15640 *** binutils to release 2.9.1 or newer. Another option is to modify
15641 *** your PATH or compiler configuration so that the native linker is
15642 *** used, and then restart.
15645 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15646 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15647 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15648 else
15649 ld_shlibs_F77=no
15653 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15654 case `$LD -v 2>&1` in
15655 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15656 ld_shlibs_F77=no
15657 cat <<_LT_EOF 1>&2
15659 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15660 *** reliably create shared libraries on SCO systems. Therefore, libtool
15661 *** is disabling shared libraries support. We urge you to upgrade GNU
15662 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15663 *** your PATH or compiler configuration so that the native linker is
15664 *** used, and then restart.
15666 _LT_EOF
15669 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15670 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15671 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15672 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15673 else
15674 ld_shlibs_F77=no
15677 esac
15680 sunos4*)
15681 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15682 wlarc=
15683 hardcode_direct_F77=yes
15684 hardcode_shlibpath_var_F77=no
15688 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15689 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15690 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15691 else
15692 ld_shlibs_F77=no
15695 esac
15697 if test "$ld_shlibs_F77" = no; then
15698 runpath_var=
15699 hardcode_libdir_flag_spec_F77=
15700 export_dynamic_flag_spec_F77=
15701 whole_archive_flag_spec_F77=
15703 else
15704 # PORTME fill in a description of your system's linker (not GNU ld)
15705 case $host_os in
15706 aix3*)
15707 allow_undefined_flag_F77=unsupported
15708 always_export_symbols_F77=yes
15709 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15710 # Note: this linker hardcodes the directories in LIBPATH if there
15711 # are no directories specified by -L.
15712 hardcode_minus_L_F77=yes
15713 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15714 # Neither direct hardcoding nor static linking is supported with a
15715 # broken collect2.
15716 hardcode_direct_F77=unsupported
15720 aix4* | aix5*)
15721 if test "$host_cpu" = ia64; then
15722 # On IA64, the linker does run time linking by default, so we don't
15723 # have to do anything special.
15724 aix_use_runtimelinking=no
15725 exp_sym_flag='-Bexport'
15726 no_entry_flag=""
15727 else
15728 # If we're using GNU nm, then we don't want the "-C" option.
15729 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15730 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15731 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15732 else
15733 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15735 aix_use_runtimelinking=no
15737 # Test if we are trying to use run time linking or normal
15738 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15739 # need to do runtime linking.
15740 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15741 for ld_flag in $LDFLAGS; do
15742 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15743 aix_use_runtimelinking=yes
15744 break
15746 done
15748 esac
15750 exp_sym_flag='-bexport'
15751 no_entry_flag='-bnoentry'
15754 # When large executables or shared objects are built, AIX ld can
15755 # have problems creating the table of contents. If linking a library
15756 # or program results in "error TOC overflow" add -mminimal-toc to
15757 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15758 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15760 archive_cmds_F77=''
15761 hardcode_direct_F77=yes
15762 hardcode_libdir_separator_F77=':'
15763 link_all_deplibs_F77=yes
15765 if test "$GCC" = yes; then
15766 case $host_os in aix4.[012]|aix4.[012].*)
15767 # We only want to do this on AIX 4.2 and lower, the check
15768 # below for broken collect2 doesn't work under 4.3+
15769 collect2name=`${CC} -print-prog-name=collect2`
15770 if test -f "$collect2name" && \
15771 strings "$collect2name" | grep resolve_lib_name >/dev/null
15772 then
15773 # We have reworked collect2
15774 hardcode_direct_F77=yes
15775 else
15776 # We have old collect2
15777 hardcode_direct_F77=unsupported
15778 # It fails to find uninstalled libraries when the uninstalled
15779 # path is not listed in the libpath. Setting hardcode_minus_L
15780 # to unsupported forces relinking
15781 hardcode_minus_L_F77=yes
15782 hardcode_libdir_flag_spec_F77='-L$libdir'
15783 hardcode_libdir_separator_F77=
15786 esac
15787 shared_flag='-shared'
15788 if test "$aix_use_runtimelinking" = yes; then
15789 shared_flag="$shared_flag "'${wl}-G'
15791 else
15792 # not using gcc
15793 if test "$host_cpu" = ia64; then
15794 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15795 # chokes on -Wl,-G. The following line is correct:
15796 shared_flag='-G'
15797 else
15798 if test "$aix_use_runtimelinking" = yes; then
15799 shared_flag='${wl}-G'
15800 else
15801 shared_flag='${wl}-bM:SRE'
15806 # It seems that -bexpall does not export symbols beginning with
15807 # underscore (_), so it is better to generate a list of symbols to export.
15808 always_export_symbols_F77=yes
15809 if test "$aix_use_runtimelinking" = yes; then
15810 # Warning - without using the other runtime loading flags (-brtl),
15811 # -berok will link without error, but may produce a broken library.
15812 allow_undefined_flag_F77='-berok'
15813 # Determine the default libpath from the value encoded in an empty executable.
15814 cat >conftest.$ac_ext <<_ACEOF
15815 program main
15818 _ACEOF
15819 rm -f conftest.$ac_objext conftest$ac_exeext
15820 if { (ac_try="$ac_link"
15821 case "(($ac_try" in
15822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15823 *) ac_try_echo=$ac_try;;
15824 esac
15825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15826 $as_echo "$ac_try_echo") >&5
15827 (eval "$ac_link") 2>conftest.er1
15828 ac_status=$?
15829 grep -v '^ *+' conftest.er1 >conftest.err
15830 rm -f conftest.er1
15831 cat conftest.err >&5
15832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833 (exit $ac_status); } && {
15834 test -z "$ac_f77_werror_flag" ||
15835 test ! -s conftest.err
15836 } && test -s conftest$ac_exeext && {
15837 test "$cross_compiling" = yes ||
15838 $as_test_x conftest$ac_exeext
15839 }; then
15841 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15843 # Check for a 64-bit object if we didn't find anything.
15844 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15845 }'`; fi
15846 else
15847 $as_echo "$as_me: failed program was:" >&5
15848 sed 's/^/| /' conftest.$ac_ext >&5
15853 rm -rf conftest.dSYM
15854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15855 conftest$ac_exeext conftest.$ac_ext
15856 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15858 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15859 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15860 else
15861 if test "$host_cpu" = ia64; then
15862 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15863 allow_undefined_flag_F77="-z nodefs"
15864 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
15865 else
15866 # Determine the default libpath from the value encoded in an empty executable.
15867 cat >conftest.$ac_ext <<_ACEOF
15868 program main
15871 _ACEOF
15872 rm -f conftest.$ac_objext conftest$ac_exeext
15873 if { (ac_try="$ac_link"
15874 case "(($ac_try" in
15875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15876 *) ac_try_echo=$ac_try;;
15877 esac
15878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15879 $as_echo "$ac_try_echo") >&5
15880 (eval "$ac_link") 2>conftest.er1
15881 ac_status=$?
15882 grep -v '^ *+' conftest.er1 >conftest.err
15883 rm -f conftest.er1
15884 cat conftest.err >&5
15885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15886 (exit $ac_status); } && {
15887 test -z "$ac_f77_werror_flag" ||
15888 test ! -s conftest.err
15889 } && test -s conftest$ac_exeext && {
15890 test "$cross_compiling" = yes ||
15891 $as_test_x conftest$ac_exeext
15892 }; then
15894 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15896 # Check for a 64-bit object if we didn't find anything.
15897 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15898 }'`; fi
15899 else
15900 $as_echo "$as_me: failed program was:" >&5
15901 sed 's/^/| /' conftest.$ac_ext >&5
15906 rm -rf conftest.dSYM
15907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15908 conftest$ac_exeext conftest.$ac_ext
15909 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15911 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15912 # Warning - without using the other run time loading flags,
15913 # -berok will link without error, but may produce a broken library.
15914 no_undefined_flag_F77=' ${wl}-bernotok'
15915 allow_undefined_flag_F77=' ${wl}-berok'
15916 # Exported symbols can be pulled into shared objects from archives
15917 whole_archive_flag_spec_F77='$convenience'
15918 archive_cmds_need_lc_F77=yes
15919 # This is similar to how AIX traditionally builds its shared libraries.
15920 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15925 amigaos*)
15926 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15927 hardcode_libdir_flag_spec_F77='-L$libdir'
15928 hardcode_minus_L_F77=yes
15929 # see comment about different semantics on the GNU ld section
15930 ld_shlibs_F77=no
15933 bsdi[45]*)
15934 export_dynamic_flag_spec_F77=-rdynamic
15937 cygwin* | mingw* | pw32*)
15938 # When not using gcc, we currently assume that we are using
15939 # Microsoft Visual C++.
15940 # hardcode_libdir_flag_spec is actually meaningless, as there is
15941 # no search path for DLLs.
15942 hardcode_libdir_flag_spec_F77=' '
15943 allow_undefined_flag_F77=unsupported
15944 # Tell ltmain to make .lib files, not .a files.
15945 libext=lib
15946 # Tell ltmain to make .dll files, not .so files.
15947 shrext_cmds=".dll"
15948 # FIXME: Setting linknames here is a bad hack.
15949 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15950 # The linker will automatically build a .lib file if we build a DLL.
15951 old_archive_From_new_cmds_F77='true'
15952 # FIXME: Should let the user specify the lib program.
15953 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15954 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15955 enable_shared_with_static_runtimes_F77=yes
15958 darwin* | rhapsody*)
15959 case $host_os in
15960 rhapsody* | darwin1.[012])
15961 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15963 *) # Darwin 1.3 on
15964 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15965 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15966 else
15967 case ${MACOSX_DEPLOYMENT_TARGET} in
15968 10.[012])
15969 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15971 10.*)
15972 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15974 esac
15977 esac
15978 archive_cmds_need_lc_F77=no
15979 hardcode_direct_F77=no
15980 hardcode_automatic_F77=yes
15981 hardcode_shlibpath_var_F77=unsupported
15982 whole_archive_flag_spec_F77=''
15983 link_all_deplibs_F77=yes
15984 if test "$GCC" = yes ; then
15985 output_verbose_link_cmd='echo'
15986 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15987 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15988 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15989 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15990 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15991 else
15992 case $cc_basename in
15993 xlc*)
15994 output_verbose_link_cmd='echo'
15995 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15996 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15997 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15998 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15999 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16002 ld_shlibs_F77=no
16004 esac
16008 dgux*)
16009 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16010 hardcode_libdir_flag_spec_F77='-L$libdir'
16011 hardcode_shlibpath_var_F77=no
16014 freebsd1*)
16015 ld_shlibs_F77=no
16018 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16019 # support. Future versions do this automatically, but an explicit c++rt0.o
16020 # does not break anything, and helps significantly (at the cost of a little
16021 # extra space).
16022 freebsd2.2*)
16023 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16024 hardcode_libdir_flag_spec_F77='-R$libdir'
16025 hardcode_direct_F77=yes
16026 hardcode_shlibpath_var_F77=no
16029 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16030 freebsd2*)
16031 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16032 hardcode_direct_F77=yes
16033 hardcode_minus_L_F77=yes
16034 hardcode_shlibpath_var_F77=no
16037 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16038 freebsd* | kfreebsd*-gnu | dragonfly*)
16039 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16040 hardcode_libdir_flag_spec_F77='-R$libdir'
16041 hardcode_direct_F77=yes
16042 hardcode_shlibpath_var_F77=no
16045 hpux9*)
16046 if test "$GCC" = yes; then
16047 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16048 else
16049 archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16051 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16052 hardcode_libdir_separator_F77=:
16053 hardcode_direct_F77=yes
16055 # hardcode_minus_L: Not really in the search PATH,
16056 # but as the default location of the library.
16057 hardcode_minus_L_F77=yes
16058 export_dynamic_flag_spec_F77='${wl}-E'
16061 hpux10*)
16062 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16063 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16064 else
16065 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16067 if test "$with_gnu_ld" = no; then
16068 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16069 hardcode_libdir_separator_F77=:
16071 hardcode_direct_F77=yes
16072 export_dynamic_flag_spec_F77='${wl}-E'
16074 # hardcode_minus_L: Not really in the search PATH,
16075 # but as the default location of the library.
16076 hardcode_minus_L_F77=yes
16080 hpux11*)
16081 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16082 case $host_cpu in
16083 hppa*64*)
16084 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16086 ia64*)
16087 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16090 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16092 esac
16093 else
16094 case $host_cpu in
16095 hppa*64*)
16096 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16098 ia64*)
16099 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16102 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16104 esac
16106 if test "$with_gnu_ld" = no; then
16107 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16108 hardcode_libdir_separator_F77=:
16110 case $host_cpu in
16111 hppa*64*|ia64*)
16112 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16113 hardcode_direct_F77=no
16114 hardcode_shlibpath_var_F77=no
16117 hardcode_direct_F77=yes
16118 export_dynamic_flag_spec_F77='${wl}-E'
16120 # hardcode_minus_L: Not really in the search PATH,
16121 # but as the default location of the library.
16122 hardcode_minus_L_F77=yes
16124 esac
16128 irix5* | irix6* | nonstopux*)
16129 if test "$GCC" = yes; then
16130 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16131 else
16132 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16133 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16135 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16136 hardcode_libdir_separator_F77=:
16137 link_all_deplibs_F77=yes
16140 netbsd*)
16141 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16142 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16143 else
16144 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16146 hardcode_libdir_flag_spec_F77='-R$libdir'
16147 hardcode_direct_F77=yes
16148 hardcode_shlibpath_var_F77=no
16151 newsos6)
16152 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16153 hardcode_direct_F77=yes
16154 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16155 hardcode_libdir_separator_F77=:
16156 hardcode_shlibpath_var_F77=no
16159 openbsd*)
16160 hardcode_direct_F77=yes
16161 hardcode_shlibpath_var_F77=no
16162 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16163 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16164 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16165 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16166 export_dynamic_flag_spec_F77='${wl}-E'
16167 else
16168 case $host_os in
16169 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16170 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16171 hardcode_libdir_flag_spec_F77='-R$libdir'
16174 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16175 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16177 esac
16181 os2*)
16182 hardcode_libdir_flag_spec_F77='-L$libdir'
16183 hardcode_minus_L_F77=yes
16184 allow_undefined_flag_F77=unsupported
16185 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
16186 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16189 osf3*)
16190 if test "$GCC" = yes; then
16191 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16192 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16193 else
16194 allow_undefined_flag_F77=' -expect_unresolved \*'
16195 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16197 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16198 hardcode_libdir_separator_F77=:
16201 osf4* | osf5*) # as osf3* with the addition of -msym flag
16202 if test "$GCC" = yes; then
16203 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16204 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16205 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16206 else
16207 allow_undefined_flag_F77=' -expect_unresolved \*'
16208 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16209 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16210 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16212 # Both c and cxx compiler support -rpath directly
16213 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16215 hardcode_libdir_separator_F77=:
16218 solaris*)
16219 no_undefined_flag_F77=' -z text'
16220 if test "$GCC" = yes; then
16221 wlarc='${wl}'
16222 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16223 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16224 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16225 else
16226 wlarc=''
16227 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16228 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16229 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16231 hardcode_libdir_flag_spec_F77='-R$libdir'
16232 hardcode_shlibpath_var_F77=no
16233 case $host_os in
16234 solaris2.[0-5] | solaris2.[0-5].*) ;;
16236 # The compiler driver will combine linker options so we
16237 # cannot just pass the convience library names through
16238 # without $wl, iff we do not link with $LD.
16239 # Luckily, gcc supports the same syntax we need for Sun Studio.
16240 # Supported since Solaris 2.6 (maybe 2.5.1?)
16241 case $wlarc in
16243 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16245 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16246 esac ;;
16247 esac
16248 link_all_deplibs_F77=yes
16251 sunos4*)
16252 if test "x$host_vendor" = xsequent; then
16253 # Use $CC to link under sequent, because it throws in some extra .o
16254 # files that make .init and .fini sections work.
16255 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16256 else
16257 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16259 hardcode_libdir_flag_spec_F77='-L$libdir'
16260 hardcode_direct_F77=yes
16261 hardcode_minus_L_F77=yes
16262 hardcode_shlibpath_var_F77=no
16265 sysv4)
16266 case $host_vendor in
16267 sni)
16268 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16269 hardcode_direct_F77=yes # is this really true???
16271 siemens)
16272 ## LD is ld it makes a PLAMLIB
16273 ## CC just makes a GrossModule.
16274 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16275 reload_cmds_F77='$CC -r -o $output$reload_objs'
16276 hardcode_direct_F77=no
16278 motorola)
16279 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16280 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16282 esac
16283 runpath_var='LD_RUN_PATH'
16284 hardcode_shlibpath_var_F77=no
16287 sysv4.3*)
16288 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16289 hardcode_shlibpath_var_F77=no
16290 export_dynamic_flag_spec_F77='-Bexport'
16293 sysv4*MP*)
16294 if test -d /usr/nec; then
16295 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16296 hardcode_shlibpath_var_F77=no
16297 runpath_var=LD_RUN_PATH
16298 hardcode_runpath_var=yes
16299 ld_shlibs_F77=yes
16303 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16304 no_undefined_flag_F77='${wl}-z,text'
16305 archive_cmds_need_lc_F77=no
16306 hardcode_shlibpath_var_F77=no
16307 runpath_var='LD_RUN_PATH'
16309 if test "$GCC" = yes; then
16310 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16311 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16312 else
16313 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16314 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16318 sysv5* | sco3.2v5* | sco5v6*)
16319 # Note: We can NOT use -z defs as we might desire, because we do not
16320 # link with -lc, and that would cause any symbols used from libc to
16321 # always be unresolved, which means just about no library would
16322 # ever link correctly. If we're not using GNU ld we use -z text
16323 # though, which does catch some bad symbols but isn't as heavy-handed
16324 # as -z defs.
16325 no_undefined_flag_F77='${wl}-z,text'
16326 allow_undefined_flag_F77='${wl}-z,nodefs'
16327 archive_cmds_need_lc_F77=no
16328 hardcode_shlibpath_var_F77=no
16329 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16330 hardcode_libdir_separator_F77=':'
16331 link_all_deplibs_F77=yes
16332 export_dynamic_flag_spec_F77='${wl}-Bexport'
16333 runpath_var='LD_RUN_PATH'
16335 if test "$GCC" = yes; then
16336 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16337 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16338 else
16339 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16340 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16344 uts4*)
16345 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16346 hardcode_libdir_flag_spec_F77='-L$libdir'
16347 hardcode_shlibpath_var_F77=no
16351 ld_shlibs_F77=no
16353 esac
16356 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16357 $as_echo "$ld_shlibs_F77" >&6; }
16358 test "$ld_shlibs_F77" = no && can_build_shared=no
16361 # Do we need to explicitly link libc?
16363 case "x$archive_cmds_need_lc_F77" in
16364 x|xyes)
16365 # Assume -lc should be added
16366 archive_cmds_need_lc_F77=yes
16368 if test "$enable_shared" = yes && test "$GCC" = yes; then
16369 case $archive_cmds_F77 in
16370 *'~'*)
16371 # FIXME: we may have to deal with multi-command sequences.
16373 '$CC '*)
16374 # Test whether the compiler implicitly links with -lc since on some
16375 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16376 # to ld, don't add -lc before -lgcc.
16377 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16378 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16379 $rm conftest*
16380 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16383 (eval $ac_compile) 2>&5
16384 ac_status=$?
16385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16386 (exit $ac_status); } 2>conftest.err; then
16387 soname=conftest
16388 lib=conftest
16389 libobjs=conftest.$ac_objext
16390 deplibs=
16391 wl=$lt_prog_compiler_wl_F77
16392 pic_flag=$lt_prog_compiler_pic_F77
16393 compiler_flags=-v
16394 linker_flags=-v
16395 verstring=
16396 output_objdir=.
16397 libname=conftest
16398 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16399 allow_undefined_flag_F77=
16400 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16401 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16402 ac_status=$?
16403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404 (exit $ac_status); }
16405 then
16406 archive_cmds_need_lc_F77=no
16407 else
16408 archive_cmds_need_lc_F77=yes
16410 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16411 else
16412 cat conftest.err 1>&5
16414 $rm conftest*
16415 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16416 $as_echo "$archive_cmds_need_lc_F77" >&6; }
16418 esac
16421 esac
16423 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16424 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16425 library_names_spec=
16426 libname_spec='lib$name'
16427 soname_spec=
16428 shrext_cmds=".so"
16429 postinstall_cmds=
16430 postuninstall_cmds=
16431 finish_cmds=
16432 finish_eval=
16433 shlibpath_var=
16434 shlibpath_overrides_runpath=unknown
16435 version_type=none
16436 dynamic_linker="$host_os ld.so"
16437 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16438 if test "$GCC" = yes; then
16439 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16440 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16441 # if the path contains ";" then we assume it to be the separator
16442 # otherwise default to the standard path separator (i.e. ":") - it is
16443 # assumed that no part of a normal pathname contains ";" but that should
16444 # okay in the real world where ";" in dirpaths is itself problematic.
16445 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16446 else
16447 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16449 else
16450 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16452 need_lib_prefix=unknown
16453 hardcode_into_libs=no
16455 # when you set need_version to no, make sure it does not cause -set_version
16456 # flags to be left without arguments
16457 need_version=unknown
16459 case $host_os in
16460 aix3*)
16461 version_type=linux
16462 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16463 shlibpath_var=LIBPATH
16465 # AIX 3 has no versioning support, so we append a major version to the name.
16466 soname_spec='${libname}${release}${shared_ext}$major'
16469 aix4* | aix5*)
16470 version_type=linux
16471 need_lib_prefix=no
16472 need_version=no
16473 hardcode_into_libs=yes
16474 if test "$host_cpu" = ia64; then
16475 # AIX 5 supports IA64
16476 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16477 shlibpath_var=LD_LIBRARY_PATH
16478 else
16479 # With GCC up to 2.95.x, collect2 would create an import file
16480 # for dependence libraries. The import file would start with
16481 # the line `#! .'. This would cause the generated library to
16482 # depend on `.', always an invalid library. This was fixed in
16483 # development snapshots of GCC prior to 3.0.
16484 case $host_os in
16485 aix4 | aix4.[01] | aix4.[01].*)
16486 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16487 echo ' yes '
16488 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16490 else
16491 can_build_shared=no
16494 esac
16495 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16496 # soname into executable. Probably we can add versioning support to
16497 # collect2, so additional links can be useful in future.
16498 if test "$aix_use_runtimelinking" = yes; then
16499 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16500 # instead of lib<name>.a to let people know that these are not
16501 # typical AIX shared libraries.
16502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16503 else
16504 # We preserve .a as extension for shared libraries through AIX4.2
16505 # and later when we are not doing run time linking.
16506 library_names_spec='${libname}${release}.a $libname.a'
16507 soname_spec='${libname}${release}${shared_ext}$major'
16509 shlibpath_var=LIBPATH
16513 amigaos*)
16514 library_names_spec='$libname.ixlibrary $libname.a'
16515 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16516 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'
16519 beos*)
16520 library_names_spec='${libname}${shared_ext}'
16521 dynamic_linker="$host_os ld.so"
16522 shlibpath_var=LIBRARY_PATH
16525 bsdi[45]*)
16526 version_type=linux
16527 need_version=no
16528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16529 soname_spec='${libname}${release}${shared_ext}$major'
16530 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16531 shlibpath_var=LD_LIBRARY_PATH
16532 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16533 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16534 # the default ld.so.conf also contains /usr/contrib/lib and
16535 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16536 # libtool to hard-code these into programs
16539 cygwin* | mingw* | pw32*)
16540 version_type=windows
16541 shrext_cmds=".dll"
16542 need_version=no
16543 need_lib_prefix=no
16545 case $GCC,$host_os in
16546 yes,cygwin* | yes,mingw* | yes,pw32*)
16547 library_names_spec='$libname.dll.a'
16548 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16549 postinstall_cmds='base_file=`basename \${file}`~
16550 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16551 dldir=$destdir/`dirname \$dlpath`~
16552 test -d \$dldir || mkdir -p \$dldir~
16553 $install_prog $dir/$dlname \$dldir/$dlname~
16554 chmod a+x \$dldir/$dlname'
16555 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16556 dlpath=$dir/\$dldll~
16557 $rm \$dlpath'
16558 shlibpath_overrides_runpath=yes
16560 case $host_os in
16561 cygwin*)
16562 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16563 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16564 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16566 mingw*)
16567 # MinGW DLLs use traditional 'lib' prefix
16568 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16569 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16570 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16571 # It is most probably a Windows format PATH printed by
16572 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16573 # path with ; separators, and with drive letters. We can handle the
16574 # drive letters (cygwin fileutils understands them), so leave them,
16575 # especially as we might pass files found there to a mingw objdump,
16576 # which wouldn't understand a cygwinified path. Ahh.
16577 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16578 else
16579 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16582 pw32*)
16583 # pw32 DLLs use 'pw' prefix rather than 'lib'
16584 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16586 esac
16590 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16592 esac
16593 dynamic_linker='Win32 ld.exe'
16594 # FIXME: first we should search . and the directory the executable is in
16595 shlibpath_var=PATH
16598 darwin* | rhapsody*)
16599 dynamic_linker="$host_os dyld"
16600 version_type=darwin
16601 need_lib_prefix=no
16602 need_version=no
16603 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16604 soname_spec='${libname}${release}${major}$shared_ext'
16605 shlibpath_overrides_runpath=yes
16606 shlibpath_var=DYLD_LIBRARY_PATH
16607 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16608 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16609 if test "$GCC" = yes; then
16610 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16611 else
16612 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16614 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16617 dgux*)
16618 version_type=linux
16619 need_lib_prefix=no
16620 need_version=no
16621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16622 soname_spec='${libname}${release}${shared_ext}$major'
16623 shlibpath_var=LD_LIBRARY_PATH
16626 freebsd1*)
16627 dynamic_linker=no
16630 kfreebsd*-gnu)
16631 version_type=linux
16632 need_lib_prefix=no
16633 need_version=no
16634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16635 soname_spec='${libname}${release}${shared_ext}$major'
16636 shlibpath_var=LD_LIBRARY_PATH
16637 shlibpath_overrides_runpath=no
16638 hardcode_into_libs=yes
16639 dynamic_linker='GNU ld.so'
16642 freebsd* | dragonfly*)
16643 # DragonFly does not have aout. When/if they implement a new
16644 # versioning mechanism, adjust this.
16645 if test -x /usr/bin/objformat; then
16646 objformat=`/usr/bin/objformat`
16647 else
16648 case $host_os in
16649 freebsd[123]*) objformat=aout ;;
16650 *) objformat=elf ;;
16651 esac
16653 version_type=freebsd-$objformat
16654 case $version_type in
16655 freebsd-elf*)
16656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16657 need_version=no
16658 need_lib_prefix=no
16660 freebsd-*)
16661 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16662 need_version=yes
16664 esac
16665 shlibpath_var=LD_LIBRARY_PATH
16666 case $host_os in
16667 freebsd2*)
16668 shlibpath_overrides_runpath=yes
16670 freebsd3.[01]* | freebsdelf3.[01]*)
16671 shlibpath_overrides_runpath=yes
16672 hardcode_into_libs=yes
16674 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16675 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16676 shlibpath_overrides_runpath=no
16677 hardcode_into_libs=yes
16679 freebsd*) # from 4.6 on
16680 shlibpath_overrides_runpath=yes
16681 hardcode_into_libs=yes
16683 esac
16686 gnu*)
16687 version_type=linux
16688 need_lib_prefix=no
16689 need_version=no
16690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16691 soname_spec='${libname}${release}${shared_ext}$major'
16692 shlibpath_var=LD_LIBRARY_PATH
16693 hardcode_into_libs=yes
16696 hpux9* | hpux10* | hpux11*)
16697 # Give a soname corresponding to the major version so that dld.sl refuses to
16698 # link against other versions.
16699 version_type=sunos
16700 need_lib_prefix=no
16701 need_version=no
16702 case $host_cpu in
16703 ia64*)
16704 shrext_cmds='.so'
16705 hardcode_into_libs=yes
16706 dynamic_linker="$host_os dld.so"
16707 shlibpath_var=LD_LIBRARY_PATH
16708 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16710 soname_spec='${libname}${release}${shared_ext}$major'
16711 if test "X$HPUX_IA64_MODE" = X32; then
16712 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16713 else
16714 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16716 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16718 hppa*64*)
16719 shrext_cmds='.sl'
16720 hardcode_into_libs=yes
16721 dynamic_linker="$host_os dld.sl"
16722 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16723 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16725 soname_spec='${libname}${release}${shared_ext}$major'
16726 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16727 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16730 shrext_cmds='.sl'
16731 dynamic_linker="$host_os dld.sl"
16732 shlibpath_var=SHLIB_PATH
16733 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16735 soname_spec='${libname}${release}${shared_ext}$major'
16737 esac
16738 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16739 postinstall_cmds='chmod 555 $lib'
16742 interix3*)
16743 version_type=linux
16744 need_lib_prefix=no
16745 need_version=no
16746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16747 soname_spec='${libname}${release}${shared_ext}$major'
16748 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16749 shlibpath_var=LD_LIBRARY_PATH
16750 shlibpath_overrides_runpath=no
16751 hardcode_into_libs=yes
16754 irix5* | irix6* | nonstopux*)
16755 case $host_os in
16756 nonstopux*) version_type=nonstopux ;;
16758 if test "$lt_cv_prog_gnu_ld" = yes; then
16759 version_type=linux
16760 else
16761 version_type=irix
16762 fi ;;
16763 esac
16764 need_lib_prefix=no
16765 need_version=no
16766 soname_spec='${libname}${release}${shared_ext}$major'
16767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16768 case $host_os in
16769 irix5* | nonstopux*)
16770 libsuff= shlibsuff=
16773 case $LD in # libtool.m4 will add one of these switches to LD
16774 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16775 libsuff= shlibsuff= libmagic=32-bit;;
16776 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16777 libsuff=32 shlibsuff=N32 libmagic=N32;;
16778 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16779 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16780 *) libsuff= shlibsuff= libmagic=never-match;;
16781 esac
16783 esac
16784 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16785 shlibpath_overrides_runpath=no
16786 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16787 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16788 hardcode_into_libs=yes
16791 # No shared lib support for Linux oldld, aout, or coff.
16792 linux*oldld* | linux*aout* | linux*coff*)
16793 dynamic_linker=no
16796 # This must be Linux ELF.
16797 linux*)
16798 version_type=linux
16799 need_lib_prefix=no
16800 need_version=no
16801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16802 soname_spec='${libname}${release}${shared_ext}$major'
16803 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16804 shlibpath_var=LD_LIBRARY_PATH
16805 shlibpath_overrides_runpath=no
16806 # This implies no fast_install, which is unacceptable.
16807 # Some rework will be needed to allow for fast_install
16808 # before this can be enabled.
16809 hardcode_into_libs=yes
16811 # Append ld.so.conf contents to the search path
16812 if test -f /etc/ld.so.conf; then
16813 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16814 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16817 # We used to test for /lib/ld.so.1 and disable shared libraries on
16818 # powerpc, because MkLinux only supported shared libraries with the
16819 # GNU dynamic linker. Since this was broken with cross compilers,
16820 # most powerpc-linux boxes support dynamic linking these days and
16821 # people can always --disable-shared, the test was removed, and we
16822 # assume the GNU/Linux dynamic linker is in use.
16823 dynamic_linker='GNU/Linux ld.so'
16826 knetbsd*-gnu)
16827 version_type=linux
16828 need_lib_prefix=no
16829 need_version=no
16830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16831 soname_spec='${libname}${release}${shared_ext}$major'
16832 shlibpath_var=LD_LIBRARY_PATH
16833 shlibpath_overrides_runpath=no
16834 hardcode_into_libs=yes
16835 dynamic_linker='GNU ld.so'
16838 netbsd*)
16839 version_type=sunos
16840 need_lib_prefix=no
16841 need_version=no
16842 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16844 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16845 dynamic_linker='NetBSD (a.out) ld.so'
16846 else
16847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16848 soname_spec='${libname}${release}${shared_ext}$major'
16849 dynamic_linker='NetBSD ld.elf_so'
16851 shlibpath_var=LD_LIBRARY_PATH
16852 shlibpath_overrides_runpath=yes
16853 hardcode_into_libs=yes
16856 newsos6)
16857 version_type=linux
16858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16859 shlibpath_var=LD_LIBRARY_PATH
16860 shlibpath_overrides_runpath=yes
16863 nto-qnx*)
16864 version_type=linux
16865 need_lib_prefix=no
16866 need_version=no
16867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16868 soname_spec='${libname}${release}${shared_ext}$major'
16869 shlibpath_var=LD_LIBRARY_PATH
16870 shlibpath_overrides_runpath=yes
16873 openbsd*)
16874 version_type=sunos
16875 sys_lib_dlsearch_path_spec="/usr/lib"
16876 need_lib_prefix=no
16877 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16878 case $host_os in
16879 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16880 *) need_version=no ;;
16881 esac
16882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16883 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16884 shlibpath_var=LD_LIBRARY_PATH
16885 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16886 case $host_os in
16887 openbsd2.[89] | openbsd2.[89].*)
16888 shlibpath_overrides_runpath=no
16891 shlibpath_overrides_runpath=yes
16893 esac
16894 else
16895 shlibpath_overrides_runpath=yes
16899 os2*)
16900 libname_spec='$name'
16901 shrext_cmds=".dll"
16902 need_lib_prefix=no
16903 library_names_spec='$libname${shared_ext} $libname.a'
16904 dynamic_linker='OS/2 ld.exe'
16905 shlibpath_var=LIBPATH
16908 osf3* | osf4* | osf5*)
16909 version_type=osf
16910 need_lib_prefix=no
16911 need_version=no
16912 soname_spec='${libname}${release}${shared_ext}$major'
16913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16914 shlibpath_var=LD_LIBRARY_PATH
16915 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16916 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16919 solaris*)
16920 version_type=linux
16921 need_lib_prefix=no
16922 need_version=no
16923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16924 soname_spec='${libname}${release}${shared_ext}$major'
16925 shlibpath_var=LD_LIBRARY_PATH
16926 shlibpath_overrides_runpath=yes
16927 hardcode_into_libs=yes
16928 # ldd complains unless libraries are executable
16929 postinstall_cmds='chmod +x $lib'
16932 sunos4*)
16933 version_type=sunos
16934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16935 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16936 shlibpath_var=LD_LIBRARY_PATH
16937 shlibpath_overrides_runpath=yes
16938 if test "$with_gnu_ld" = yes; then
16939 need_lib_prefix=no
16941 need_version=yes
16944 sysv4 | sysv4.3*)
16945 version_type=linux
16946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16947 soname_spec='${libname}${release}${shared_ext}$major'
16948 shlibpath_var=LD_LIBRARY_PATH
16949 case $host_vendor in
16950 sni)
16951 shlibpath_overrides_runpath=no
16952 need_lib_prefix=no
16953 export_dynamic_flag_spec='${wl}-Blargedynsym'
16954 runpath_var=LD_RUN_PATH
16956 siemens)
16957 need_lib_prefix=no
16959 motorola)
16960 need_lib_prefix=no
16961 need_version=no
16962 shlibpath_overrides_runpath=no
16963 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16965 esac
16968 sysv4*MP*)
16969 if test -d /usr/nec ;then
16970 version_type=linux
16971 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16972 soname_spec='$libname${shared_ext}.$major'
16973 shlibpath_var=LD_LIBRARY_PATH
16977 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16978 version_type=freebsd-elf
16979 need_lib_prefix=no
16980 need_version=no
16981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16982 soname_spec='${libname}${release}${shared_ext}$major'
16983 shlibpath_var=LD_LIBRARY_PATH
16984 hardcode_into_libs=yes
16985 if test "$with_gnu_ld" = yes; then
16986 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16987 shlibpath_overrides_runpath=no
16988 else
16989 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16990 shlibpath_overrides_runpath=yes
16991 case $host_os in
16992 sco3.2v5*)
16993 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16995 esac
16997 sys_lib_dlsearch_path_spec='/usr/lib'
17000 uts4*)
17001 version_type=linux
17002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17003 soname_spec='${libname}${release}${shared_ext}$major'
17004 shlibpath_var=LD_LIBRARY_PATH
17008 dynamic_linker=no
17010 esac
17011 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17012 $as_echo "$dynamic_linker" >&6; }
17013 test "$dynamic_linker" = no && can_build_shared=no
17015 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17016 if test "$GCC" = yes; then
17017 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17020 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17021 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17022 hardcode_action_F77=
17023 if test -n "$hardcode_libdir_flag_spec_F77" || \
17024 test -n "$runpath_var_F77" || \
17025 test "X$hardcode_automatic_F77" = "Xyes" ; then
17027 # We can hardcode non-existant directories.
17028 if test "$hardcode_direct_F77" != no &&
17029 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17030 # have to relink, otherwise we might link with an installed library
17031 # when we should be linking with a yet-to-be-installed one
17032 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17033 test "$hardcode_minus_L_F77" != no; then
17034 # Linking always hardcodes the temporary library directory.
17035 hardcode_action_F77=relink
17036 else
17037 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17038 hardcode_action_F77=immediate
17040 else
17041 # We cannot hardcode anything, or else we can only hardcode existing
17042 # directories.
17043 hardcode_action_F77=unsupported
17045 { $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17046 $as_echo "$hardcode_action_F77" >&6; }
17048 if test "$hardcode_action_F77" = relink; then
17049 # Fast installation is not supported
17050 enable_fast_install=no
17051 elif test "$shlibpath_overrides_runpath" = yes ||
17052 test "$enable_shared" = no; then
17053 # Fast installation is not necessary
17054 enable_fast_install=needless
17058 # The else clause should only fire when bootstrapping the
17059 # libtool distribution, otherwise you forgot to ship ltmain.sh
17060 # with your package, and you will get complaints that there are
17061 # no rules to generate ltmain.sh.
17062 if test -f "$ltmain"; then
17063 # See if we are running on zsh, and set the options which allow our commands through
17064 # without removal of \ escapes.
17065 if test -n "${ZSH_VERSION+set}" ; then
17066 setopt NO_GLOB_SUBST
17068 # Now quote all the things that may contain metacharacters while being
17069 # careful not to overquote the AC_SUBSTed values. We take copies of the
17070 # variables and quote the copies for generation of the libtool script.
17071 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17072 SED SHELL STRIP \
17073 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17074 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17075 deplibs_check_method reload_flag reload_cmds need_locks \
17076 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17077 lt_cv_sys_global_symbol_to_c_name_address \
17078 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17079 old_postinstall_cmds old_postuninstall_cmds \
17080 compiler_F77 \
17081 CC_F77 \
17082 LD_F77 \
17083 lt_prog_compiler_wl_F77 \
17084 lt_prog_compiler_pic_F77 \
17085 lt_prog_compiler_static_F77 \
17086 lt_prog_compiler_no_builtin_flag_F77 \
17087 export_dynamic_flag_spec_F77 \
17088 thread_safe_flag_spec_F77 \
17089 whole_archive_flag_spec_F77 \
17090 enable_shared_with_static_runtimes_F77 \
17091 old_archive_cmds_F77 \
17092 old_archive_from_new_cmds_F77 \
17093 predep_objects_F77 \
17094 postdep_objects_F77 \
17095 predeps_F77 \
17096 postdeps_F77 \
17097 compiler_lib_search_path_F77 \
17098 archive_cmds_F77 \
17099 archive_expsym_cmds_F77 \
17100 postinstall_cmds_F77 \
17101 postuninstall_cmds_F77 \
17102 old_archive_from_expsyms_cmds_F77 \
17103 allow_undefined_flag_F77 \
17104 no_undefined_flag_F77 \
17105 export_symbols_cmds_F77 \
17106 hardcode_libdir_flag_spec_F77 \
17107 hardcode_libdir_flag_spec_ld_F77 \
17108 hardcode_libdir_separator_F77 \
17109 hardcode_automatic_F77 \
17110 module_cmds_F77 \
17111 module_expsym_cmds_F77 \
17112 lt_cv_prog_compiler_c_o_F77 \
17113 exclude_expsyms_F77 \
17114 include_expsyms_F77; do
17116 case $var in
17117 old_archive_cmds_F77 | \
17118 old_archive_from_new_cmds_F77 | \
17119 archive_cmds_F77 | \
17120 archive_expsym_cmds_F77 | \
17121 module_cmds_F77 | \
17122 module_expsym_cmds_F77 | \
17123 old_archive_from_expsyms_cmds_F77 | \
17124 export_symbols_cmds_F77 | \
17125 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17126 postinstall_cmds | postuninstall_cmds | \
17127 old_postinstall_cmds | old_postuninstall_cmds | \
17128 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17129 # Double-quote double-evaled strings.
17130 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17133 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17135 esac
17136 done
17138 case $lt_echo in
17139 *'\$0 --fallback-echo"')
17140 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17142 esac
17144 cfgfile="$ofile"
17146 cat <<__EOF__ >> "$cfgfile"
17147 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17149 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17151 # Shell to use when invoking shell scripts.
17152 SHELL=$lt_SHELL
17154 # Whether or not to build shared libraries.
17155 build_libtool_libs=$enable_shared
17157 # Whether or not to build static libraries.
17158 build_old_libs=$enable_static
17160 # Whether or not to add -lc for building shared libraries.
17161 build_libtool_need_lc=$archive_cmds_need_lc_F77
17163 # Whether or not to disallow shared libs when runtime libs are static
17164 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17166 # Whether or not to optimize for fast installation.
17167 fast_install=$enable_fast_install
17169 # The host system.
17170 host_alias=$host_alias
17171 host=$host
17172 host_os=$host_os
17174 # The build system.
17175 build_alias=$build_alias
17176 build=$build
17177 build_os=$build_os
17179 # An echo program that does not interpret backslashes.
17180 echo=$lt_echo
17182 # The archiver.
17183 AR=$lt_AR
17184 AR_FLAGS=$lt_AR_FLAGS
17186 # A C compiler.
17187 LTCC=$lt_LTCC
17189 # LTCC compiler flags.
17190 LTCFLAGS=$lt_LTCFLAGS
17192 # A language-specific compiler.
17193 CC=$lt_compiler_F77
17195 # Is the compiler the GNU C compiler?
17196 with_gcc=$GCC_F77
17198 # An ERE matcher.
17199 EGREP=$lt_EGREP
17201 # The linker used to build libraries.
17202 LD=$lt_LD_F77
17204 # Whether we need hard or soft links.
17205 LN_S=$lt_LN_S
17207 # A BSD-compatible nm program.
17208 NM=$lt_NM
17210 # A symbol stripping program
17211 STRIP=$lt_STRIP
17213 # Used to examine libraries when file_magic_cmd begins "file"
17214 MAGIC_CMD=$MAGIC_CMD
17216 # Used on cygwin: DLL creation program.
17217 DLLTOOL="$DLLTOOL"
17219 # Used on cygwin: object dumper.
17220 OBJDUMP="$OBJDUMP"
17222 # Used on cygwin: assembler.
17223 AS="$AS"
17225 # The name of the directory that contains temporary libtool files.
17226 objdir=$objdir
17228 # How to create reloadable object files.
17229 reload_flag=$lt_reload_flag
17230 reload_cmds=$lt_reload_cmds
17232 # How to pass a linker flag through the compiler.
17233 wl=$lt_lt_prog_compiler_wl_F77
17235 # Object file suffix (normally "o").
17236 objext="$ac_objext"
17238 # Old archive suffix (normally "a").
17239 libext="$libext"
17241 # Shared library suffix (normally ".so").
17242 shrext_cmds='$shrext_cmds'
17244 # Executable file suffix (normally "").
17245 exeext="$exeext"
17247 # Additional compiler flags for building library objects.
17248 pic_flag=$lt_lt_prog_compiler_pic_F77
17249 pic_mode=$pic_mode
17251 # What is the maximum length of a command?
17252 max_cmd_len=$lt_cv_sys_max_cmd_len
17254 # Does compiler simultaneously support -c and -o options?
17255 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17257 # Must we lock files when doing compilation?
17258 need_locks=$lt_need_locks
17260 # Do we need the lib prefix for modules?
17261 need_lib_prefix=$need_lib_prefix
17263 # Do we need a version for libraries?
17264 need_version=$need_version
17266 # Whether dlopen is supported.
17267 dlopen_support=$enable_dlopen
17269 # Whether dlopen of programs is supported.
17270 dlopen_self=$enable_dlopen_self
17272 # Whether dlopen of statically linked programs is supported.
17273 dlopen_self_static=$enable_dlopen_self_static
17275 # Compiler flag to prevent dynamic linking.
17276 link_static_flag=$lt_lt_prog_compiler_static_F77
17278 # Compiler flag to turn off builtin functions.
17279 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17281 # Compiler flag to allow reflexive dlopens.
17282 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17284 # Compiler flag to generate shared objects directly from archives.
17285 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17287 # Compiler flag to generate thread-safe objects.
17288 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17290 # Library versioning type.
17291 version_type=$version_type
17293 # Format of library name prefix.
17294 libname_spec=$lt_libname_spec
17296 # List of archive names. First name is the real one, the rest are links.
17297 # The last name is the one that the linker finds with -lNAME.
17298 library_names_spec=$lt_library_names_spec
17300 # The coded name of the library, if different from the real name.
17301 soname_spec=$lt_soname_spec
17303 # Commands used to build and install an old-style archive.
17304 RANLIB=$lt_RANLIB
17305 old_archive_cmds=$lt_old_archive_cmds_F77
17306 old_postinstall_cmds=$lt_old_postinstall_cmds
17307 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17309 # Create an old-style archive from a shared archive.
17310 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17312 # Create a temporary old-style archive to link instead of a shared archive.
17313 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17315 # Commands used to build and install a shared archive.
17316 archive_cmds=$lt_archive_cmds_F77
17317 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17318 postinstall_cmds=$lt_postinstall_cmds
17319 postuninstall_cmds=$lt_postuninstall_cmds
17321 # Commands used to build a loadable module (assumed same as above if empty)
17322 module_cmds=$lt_module_cmds_F77
17323 module_expsym_cmds=$lt_module_expsym_cmds_F77
17325 # Commands to strip libraries.
17326 old_striplib=$lt_old_striplib
17327 striplib=$lt_striplib
17329 # Dependencies to place before the objects being linked to create a
17330 # shared library.
17331 predep_objects=$lt_predep_objects_F77
17333 # Dependencies to place after the objects being linked to create a
17334 # shared library.
17335 postdep_objects=$lt_postdep_objects_F77
17337 # Dependencies to place before the objects being linked to create a
17338 # shared library.
17339 predeps=$lt_predeps_F77
17341 # Dependencies to place after the objects being linked to create a
17342 # shared library.
17343 postdeps=$lt_postdeps_F77
17345 # The library search path used internally by the compiler when linking
17346 # a shared library.
17347 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17349 # Method to check whether dependent libraries are shared objects.
17350 deplibs_check_method=$lt_deplibs_check_method
17352 # Command to use when deplibs_check_method == file_magic.
17353 file_magic_cmd=$lt_file_magic_cmd
17355 # Flag that allows shared libraries with undefined symbols to be built.
17356 allow_undefined_flag=$lt_allow_undefined_flag_F77
17358 # Flag that forces no undefined symbols.
17359 no_undefined_flag=$lt_no_undefined_flag_F77
17361 # Commands used to finish a libtool library installation in a directory.
17362 finish_cmds=$lt_finish_cmds
17364 # Same as above, but a single script fragment to be evaled but not shown.
17365 finish_eval=$lt_finish_eval
17367 # Take the output of nm and produce a listing of raw symbols and C names.
17368 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17370 # Transform the output of nm in a proper C declaration
17371 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17373 # Transform the output of nm in a C name address pair
17374 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17376 # This is the shared library runtime path variable.
17377 runpath_var=$runpath_var
17379 # This is the shared library path variable.
17380 shlibpath_var=$shlibpath_var
17382 # Is shlibpath searched before the hard-coded library search path?
17383 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17385 # How to hardcode a shared library path into an executable.
17386 hardcode_action=$hardcode_action_F77
17388 # Whether we should hardcode library paths into libraries.
17389 hardcode_into_libs=$hardcode_into_libs
17391 # Flag to hardcode \$libdir into a binary during linking.
17392 # This must work even if \$libdir does not exist.
17393 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17395 # If ld is used when linking, flag to hardcode \$libdir into
17396 # a binary during linking. This must work even if \$libdir does
17397 # not exist.
17398 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17400 # Whether we need a single -rpath flag with a separated argument.
17401 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17403 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17404 # resulting binary.
17405 hardcode_direct=$hardcode_direct_F77
17407 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17408 # resulting binary.
17409 hardcode_minus_L=$hardcode_minus_L_F77
17411 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17412 # the resulting binary.
17413 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17415 # Set to yes if building a shared library automatically hardcodes DIR into the library
17416 # and all subsequent libraries and executables linked against it.
17417 hardcode_automatic=$hardcode_automatic_F77
17419 # Variables whose values should be saved in libtool wrapper scripts and
17420 # restored at relink time.
17421 variables_saved_for_relink="$variables_saved_for_relink"
17423 # Whether libtool must link a program against all its dependency libraries.
17424 link_all_deplibs=$link_all_deplibs_F77
17426 # Compile-time system search path for libraries
17427 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17429 # Run-time system search path for libraries
17430 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17432 # Fix the shell variable \$srcfile for the compiler.
17433 fix_srcfile_path="$fix_srcfile_path_F77"
17435 # Set to yes if exported symbols are required.
17436 always_export_symbols=$always_export_symbols_F77
17438 # The commands to list exported symbols.
17439 export_symbols_cmds=$lt_export_symbols_cmds_F77
17441 # The commands to extract the exported symbol list from a shared archive.
17442 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17444 # Symbols that should not be listed in the preloaded symbols.
17445 exclude_expsyms=$lt_exclude_expsyms_F77
17447 # Symbols that must always be exported.
17448 include_expsyms=$lt_include_expsyms_F77
17450 # ### END LIBTOOL TAG CONFIG: $tagname
17452 __EOF__
17455 else
17456 # If there is no Makefile yet, we rely on a make rule to execute
17457 # `config.status --recheck' to rerun these tests and create the
17458 # libtool script then.
17459 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17460 if test -f "$ltmain_in"; then
17461 test -f Makefile && make "$ltmain"
17466 ac_ext=c
17467 ac_cpp='$CPP $CPPFLAGS'
17468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17472 CC="$lt_save_CC"
17474 else
17475 tagname=""
17479 GCJ)
17480 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17483 # Source file extension for Java test sources.
17484 ac_ext=java
17486 # Object file extension for compiled Java test sources.
17487 objext=o
17488 objext_GCJ=$objext
17490 # Code to be used in simple compile tests
17491 lt_simple_compile_test_code="class foo {}\n"
17493 # Code to be used in simple link tests
17494 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17496 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17498 # If no C compiler was specified, use CC.
17499 LTCC=${LTCC-"$CC"}
17501 # If no C compiler flags were specified, use CFLAGS.
17502 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17504 # Allow CC to be a program name with arguments.
17505 compiler=$CC
17508 # save warnings/boilerplate of simple test code
17509 ac_outfile=conftest.$ac_objext
17510 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17511 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17512 _lt_compiler_boilerplate=`cat conftest.err`
17513 $rm conftest*
17515 ac_outfile=conftest.$ac_objext
17516 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17517 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17518 _lt_linker_boilerplate=`cat conftest.err`
17519 $rm conftest*
17522 # Allow CC to be a program name with arguments.
17523 lt_save_CC="$CC"
17524 CC=${GCJ-"gcj"}
17525 compiler=$CC
17526 compiler_GCJ=$CC
17527 for cc_temp in $compiler""; do
17528 case $cc_temp in
17529 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17530 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17531 \-*) ;;
17532 *) break;;
17533 esac
17534 done
17535 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17538 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17539 archive_cmds_need_lc_GCJ=no
17541 old_archive_cmds_GCJ=$old_archive_cmds
17544 lt_prog_compiler_no_builtin_flag_GCJ=
17546 if test "$GCC" = yes; then
17547 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17550 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17551 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
17552 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17553 $as_echo_n "(cached) " >&6
17554 else
17555 lt_cv_prog_compiler_rtti_exceptions=no
17556 ac_outfile=conftest.$ac_objext
17557 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17558 lt_compiler_flag="-fno-rtti -fno-exceptions"
17559 # Insert the option either (1) after the last *FLAGS variable, or
17560 # (2) before a word containing "conftest.", or (3) at the end.
17561 # Note that $ac_compile itself does not contain backslashes and begins
17562 # with a dollar sign (not a hyphen), so the echo should work correctly.
17563 # The option is referenced via a variable to avoid confusing sed.
17564 lt_compile=`echo "$ac_compile" | $SED \
17565 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17566 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17567 -e 's:$: $lt_compiler_flag:'`
17568 (eval echo "\"\$as_me:17568: $lt_compile\"" >&5)
17569 (eval "$lt_compile" 2>conftest.err)
17570 ac_status=$?
17571 cat conftest.err >&5
17572 echo "$as_me:17572: \$? = $ac_status" >&5
17573 if (exit $ac_status) && test -s "$ac_outfile"; then
17574 # The compiler can only warn and ignore the option if not recognized
17575 # So say no if there are warnings other than the usual output.
17576 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17577 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17578 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17579 lt_cv_prog_compiler_rtti_exceptions=yes
17582 $rm conftest*
17585 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17586 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17588 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17589 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17590 else
17596 lt_prog_compiler_wl_GCJ=
17597 lt_prog_compiler_pic_GCJ=
17598 lt_prog_compiler_static_GCJ=
17600 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17601 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17603 if test "$GCC" = yes; then
17604 lt_prog_compiler_wl_GCJ='-Wl,'
17605 lt_prog_compiler_static_GCJ='-static'
17607 case $host_os in
17608 aix*)
17609 # All AIX code is PIC.
17610 if test "$host_cpu" = ia64; then
17611 # AIX 5 now supports IA64 processor
17612 lt_prog_compiler_static_GCJ='-Bstatic'
17616 amigaos*)
17617 # FIXME: we need at least 68020 code to build shared libraries, but
17618 # adding the `-m68020' flag to GCC prevents building anything better,
17619 # like `-m68040'.
17620 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17623 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17624 # PIC is the default for these OSes.
17627 mingw* | pw32* | os2*)
17628 # This hack is so that the source file can tell whether it is being
17629 # built for inclusion in a dll (and should export symbols for example).
17630 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17633 darwin* | rhapsody*)
17634 # PIC is the default on this platform
17635 # Common symbols not allowed in MH_DYLIB files
17636 lt_prog_compiler_pic_GCJ='-fno-common'
17639 interix3*)
17640 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17641 # Instead, we relocate shared libraries at runtime.
17644 msdosdjgpp*)
17645 # Just because we use GCC doesn't mean we suddenly get shared libraries
17646 # on systems that don't support them.
17647 lt_prog_compiler_can_build_shared_GCJ=no
17648 enable_shared=no
17651 sysv4*MP*)
17652 if test -d /usr/nec; then
17653 lt_prog_compiler_pic_GCJ=-Kconform_pic
17657 hpux*)
17658 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17659 # not for PA HP-UX.
17660 case $host_cpu in
17661 hppa*64*|ia64*)
17662 # +Z the default
17665 lt_prog_compiler_pic_GCJ='-fPIC'
17667 esac
17671 lt_prog_compiler_pic_GCJ='-fPIC'
17673 esac
17674 else
17675 # PORTME Check for flag to pass linker flags through the system compiler.
17676 case $host_os in
17677 aix*)
17678 lt_prog_compiler_wl_GCJ='-Wl,'
17679 if test "$host_cpu" = ia64; then
17680 # AIX 5 now supports IA64 processor
17681 lt_prog_compiler_static_GCJ='-Bstatic'
17682 else
17683 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17686 darwin*)
17687 # PIC is the default on this platform
17688 # Common symbols not allowed in MH_DYLIB files
17689 case $cc_basename in
17690 xlc*)
17691 lt_prog_compiler_pic_GCJ='-qnocommon'
17692 lt_prog_compiler_wl_GCJ='-Wl,'
17694 esac
17697 mingw* | pw32* | os2*)
17698 # This hack is so that the source file can tell whether it is being
17699 # built for inclusion in a dll (and should export symbols for example).
17700 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17703 hpux9* | hpux10* | hpux11*)
17704 lt_prog_compiler_wl_GCJ='-Wl,'
17705 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17706 # not for PA HP-UX.
17707 case $host_cpu in
17708 hppa*64*|ia64*)
17709 # +Z the default
17712 lt_prog_compiler_pic_GCJ='+Z'
17714 esac
17715 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17716 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17719 irix5* | irix6* | nonstopux*)
17720 lt_prog_compiler_wl_GCJ='-Wl,'
17721 # PIC (with -KPIC) is the default.
17722 lt_prog_compiler_static_GCJ='-non_shared'
17725 newsos6)
17726 lt_prog_compiler_pic_GCJ='-KPIC'
17727 lt_prog_compiler_static_GCJ='-Bstatic'
17730 linux*)
17731 case $cc_basename in
17732 icc* | ecc*)
17733 lt_prog_compiler_wl_GCJ='-Wl,'
17734 lt_prog_compiler_pic_GCJ='-KPIC'
17735 lt_prog_compiler_static_GCJ='-static'
17737 pgcc* | pgf77* | pgf90* | pgf95*)
17738 # Portland Group compilers (*not* the Pentium gcc compiler,
17739 # which looks to be a dead project)
17740 lt_prog_compiler_wl_GCJ='-Wl,'
17741 lt_prog_compiler_pic_GCJ='-fpic'
17742 lt_prog_compiler_static_GCJ='-Bstatic'
17744 ccc*)
17745 lt_prog_compiler_wl_GCJ='-Wl,'
17746 # All Alpha code is PIC.
17747 lt_prog_compiler_static_GCJ='-non_shared'
17749 esac
17752 osf3* | osf4* | osf5*)
17753 lt_prog_compiler_wl_GCJ='-Wl,'
17754 # All OSF/1 code is PIC.
17755 lt_prog_compiler_static_GCJ='-non_shared'
17758 solaris*)
17759 lt_prog_compiler_pic_GCJ='-KPIC'
17760 lt_prog_compiler_static_GCJ='-Bstatic'
17761 case $cc_basename in
17762 f77* | f90* | f95*)
17763 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17765 lt_prog_compiler_wl_GCJ='-Wl,';;
17766 esac
17769 sunos4*)
17770 lt_prog_compiler_wl_GCJ='-Qoption ld '
17771 lt_prog_compiler_pic_GCJ='-PIC'
17772 lt_prog_compiler_static_GCJ='-Bstatic'
17775 sysv4 | sysv4.2uw2* | sysv4.3*)
17776 lt_prog_compiler_wl_GCJ='-Wl,'
17777 lt_prog_compiler_pic_GCJ='-KPIC'
17778 lt_prog_compiler_static_GCJ='-Bstatic'
17781 sysv4*MP*)
17782 if test -d /usr/nec ;then
17783 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17784 lt_prog_compiler_static_GCJ='-Bstatic'
17788 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17789 lt_prog_compiler_wl_GCJ='-Wl,'
17790 lt_prog_compiler_pic_GCJ='-KPIC'
17791 lt_prog_compiler_static_GCJ='-Bstatic'
17794 unicos*)
17795 lt_prog_compiler_wl_GCJ='-Wl,'
17796 lt_prog_compiler_can_build_shared_GCJ=no
17799 uts4*)
17800 lt_prog_compiler_pic_GCJ='-pic'
17801 lt_prog_compiler_static_GCJ='-Bstatic'
17805 lt_prog_compiler_can_build_shared_GCJ=no
17807 esac
17810 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17811 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17814 # Check to make sure the PIC flag actually works.
17816 if test -n "$lt_prog_compiler_pic_GCJ"; then
17818 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17819 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17820 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17821 $as_echo_n "(cached) " >&6
17822 else
17823 lt_prog_compiler_pic_works_GCJ=no
17824 ac_outfile=conftest.$ac_objext
17825 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17826 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17827 # Insert the option either (1) after the last *FLAGS variable, or
17828 # (2) before a word containing "conftest.", or (3) at the end.
17829 # Note that $ac_compile itself does not contain backslashes and begins
17830 # with a dollar sign (not a hyphen), so the echo should work correctly.
17831 # The option is referenced via a variable to avoid confusing sed.
17832 lt_compile=`echo "$ac_compile" | $SED \
17833 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17834 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17835 -e 's:$: $lt_compiler_flag:'`
17836 (eval echo "\"\$as_me:17836: $lt_compile\"" >&5)
17837 (eval "$lt_compile" 2>conftest.err)
17838 ac_status=$?
17839 cat conftest.err >&5
17840 echo "$as_me:17840: \$? = $ac_status" >&5
17841 if (exit $ac_status) && test -s "$ac_outfile"; then
17842 # The compiler can only warn and ignore the option if not recognized
17843 # So say no if there are warnings other than the usual output.
17844 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17845 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17846 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17847 lt_prog_compiler_pic_works_GCJ=yes
17850 $rm conftest*
17853 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17854 $as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; }
17856 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17857 case $lt_prog_compiler_pic_GCJ in
17858 "" | " "*) ;;
17859 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17860 esac
17861 else
17862 lt_prog_compiler_pic_GCJ=
17863 lt_prog_compiler_can_build_shared_GCJ=no
17867 case $host_os in
17868 # For platforms which do not support PIC, -DPIC is meaningless:
17869 *djgpp*)
17870 lt_prog_compiler_pic_GCJ=
17873 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17875 esac
17878 # Check to make sure the static flag actually works.
17880 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17881 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17882 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17883 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17884 $as_echo_n "(cached) " >&6
17885 else
17886 lt_prog_compiler_static_works_GCJ=no
17887 save_LDFLAGS="$LDFLAGS"
17888 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17889 printf "$lt_simple_link_test_code" > conftest.$ac_ext
17890 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17891 # The linker can only warn and ignore the option if not recognized
17892 # So say no if there are warnings
17893 if test -s conftest.err; then
17894 # Append any errors to the config.log.
17895 cat conftest.err 1>&5
17896 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17897 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17898 if diff conftest.exp conftest.er2 >/dev/null; then
17899 lt_prog_compiler_static_works_GCJ=yes
17901 else
17902 lt_prog_compiler_static_works_GCJ=yes
17905 $rm conftest*
17906 LDFLAGS="$save_LDFLAGS"
17909 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17910 $as_echo "$lt_prog_compiler_static_works_GCJ" >&6; }
17912 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17914 else
17915 lt_prog_compiler_static_GCJ=
17919 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17920 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17921 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17922 $as_echo_n "(cached) " >&6
17923 else
17924 lt_cv_prog_compiler_c_o_GCJ=no
17925 $rm -r conftest 2>/dev/null
17926 mkdir conftest
17927 cd conftest
17928 mkdir out
17929 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17931 lt_compiler_flag="-o out/conftest2.$ac_objext"
17932 # Insert the option either (1) after the last *FLAGS variable, or
17933 # (2) before a word containing "conftest.", or (3) at the end.
17934 # Note that $ac_compile itself does not contain backslashes and begins
17935 # with a dollar sign (not a hyphen), so the echo should work correctly.
17936 lt_compile=`echo "$ac_compile" | $SED \
17937 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17938 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17939 -e 's:$: $lt_compiler_flag:'`
17940 (eval echo "\"\$as_me:17940: $lt_compile\"" >&5)
17941 (eval "$lt_compile" 2>out/conftest.err)
17942 ac_status=$?
17943 cat out/conftest.err >&5
17944 echo "$as_me:17944: \$? = $ac_status" >&5
17945 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17946 then
17947 # The compiler can only warn and ignore the option if not recognized
17948 # So say no if there are warnings
17949 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17950 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17951 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17952 lt_cv_prog_compiler_c_o_GCJ=yes
17955 chmod u+w . 2>&5
17956 $rm conftest*
17957 # SGI C++ compiler will create directory out/ii_files/ for
17958 # template instantiation
17959 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17960 $rm out/* && rmdir out
17961 cd ..
17962 rmdir conftest
17963 $rm conftest*
17966 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17967 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17970 hard_links="nottested"
17971 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17972 # do not overwrite the value of need_locks provided by the user
17973 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17974 $as_echo_n "checking if we can lock with hard links... " >&6; }
17975 hard_links=yes
17976 $rm conftest*
17977 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17978 touch conftest.a
17979 ln conftest.a conftest.b 2>&5 || hard_links=no
17980 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17981 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17982 $as_echo "$hard_links" >&6; }
17983 if test "$hard_links" = no; then
17984 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17985 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17986 need_locks=warn
17988 else
17989 need_locks=no
17992 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17993 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17995 runpath_var=
17996 allow_undefined_flag_GCJ=
17997 enable_shared_with_static_runtimes_GCJ=no
17998 archive_cmds_GCJ=
17999 archive_expsym_cmds_GCJ=
18000 old_archive_From_new_cmds_GCJ=
18001 old_archive_from_expsyms_cmds_GCJ=
18002 export_dynamic_flag_spec_GCJ=
18003 whole_archive_flag_spec_GCJ=
18004 thread_safe_flag_spec_GCJ=
18005 hardcode_libdir_flag_spec_GCJ=
18006 hardcode_libdir_flag_spec_ld_GCJ=
18007 hardcode_libdir_separator_GCJ=
18008 hardcode_direct_GCJ=no
18009 hardcode_minus_L_GCJ=no
18010 hardcode_shlibpath_var_GCJ=unsupported
18011 link_all_deplibs_GCJ=unknown
18012 hardcode_automatic_GCJ=no
18013 module_cmds_GCJ=
18014 module_expsym_cmds_GCJ=
18015 always_export_symbols_GCJ=no
18016 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18017 # include_expsyms should be a list of space-separated symbols to be *always*
18018 # included in the symbol list
18019 include_expsyms_GCJ=
18020 # exclude_expsyms can be an extended regexp of symbols to exclude
18021 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18022 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18023 # as well as any symbol that contains `d'.
18024 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18025 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18026 # platforms (ab)use it in PIC code, but their linkers get confused if
18027 # the symbol is explicitly referenced. Since portable code cannot
18028 # rely on this symbol name, it's probably fine to never include it in
18029 # preloaded symbol tables.
18030 extract_expsyms_cmds=
18031 # Just being paranoid about ensuring that cc_basename is set.
18032 for cc_temp in $compiler""; do
18033 case $cc_temp in
18034 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18035 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18036 \-*) ;;
18037 *) break;;
18038 esac
18039 done
18040 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18042 case $host_os in
18043 cygwin* | mingw* | pw32*)
18044 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18045 # When not using gcc, we currently assume that we are using
18046 # Microsoft Visual C++.
18047 if test "$GCC" != yes; then
18048 with_gnu_ld=no
18051 interix*)
18052 # we just hope/assume this is gcc and not c89 (= MSVC++)
18053 with_gnu_ld=yes
18055 openbsd*)
18056 with_gnu_ld=no
18058 esac
18060 ld_shlibs_GCJ=yes
18061 if test "$with_gnu_ld" = yes; then
18062 # If archive_cmds runs LD, not CC, wlarc should be empty
18063 wlarc='${wl}'
18065 # Set some defaults for GNU ld with shared library support. These
18066 # are reset later if shared libraries are not supported. Putting them
18067 # here allows them to be overridden if necessary.
18068 runpath_var=LD_RUN_PATH
18069 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18070 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18071 # ancient GNU ld didn't support --whole-archive et. al.
18072 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18073 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18074 else
18075 whole_archive_flag_spec_GCJ=
18077 supports_anon_versioning=no
18078 case `$LD -v 2>/dev/null` in
18079 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18080 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18081 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18082 *\ 2.11.*) ;; # other 2.11 versions
18083 *) supports_anon_versioning=yes ;;
18084 esac
18086 # See if GNU ld supports shared libraries.
18087 case $host_os in
18088 aix3* | aix4* | aix5*)
18089 # On AIX/PPC, the GNU linker is very broken
18090 if test "$host_cpu" != ia64; then
18091 ld_shlibs_GCJ=no
18092 cat <<EOF 1>&2
18094 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18095 *** to be unable to reliably create shared libraries on AIX.
18096 *** Therefore, libtool is disabling shared libraries support. If you
18097 *** really care for shared libraries, you may want to modify your PATH
18098 *** so that a non-GNU linker is found, and then restart.
18104 amigaos*)
18105 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
18106 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18107 hardcode_minus_L_GCJ=yes
18109 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18110 # that the semantics of dynamic libraries on AmigaOS, at least up
18111 # to version 4, is to share data among multiple programs linked
18112 # with the same dynamic library. Since this doesn't match the
18113 # behavior of shared libraries on other platforms, we can't use
18114 # them.
18115 ld_shlibs_GCJ=no
18118 beos*)
18119 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18120 allow_undefined_flag_GCJ=unsupported
18121 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18122 # support --undefined. This deserves some investigation. FIXME
18123 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18124 else
18125 ld_shlibs_GCJ=no
18129 cygwin* | mingw* | pw32*)
18130 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18131 # as there is no search path for DLLs.
18132 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18133 allow_undefined_flag_GCJ=unsupported
18134 always_export_symbols_GCJ=no
18135 enable_shared_with_static_runtimes_GCJ=yes
18136 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18138 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18139 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18140 # If the export-symbols file already is a .def file (1st line
18141 # is EXPORTS), use it as is; otherwise, prepend...
18142 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18143 cp $export_symbols $output_objdir/$soname.def;
18144 else
18145 echo EXPORTS > $output_objdir/$soname.def;
18146 cat $export_symbols >> $output_objdir/$soname.def;
18148 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18149 else
18150 ld_shlibs_GCJ=no
18154 interix3*)
18155 hardcode_direct_GCJ=no
18156 hardcode_shlibpath_var_GCJ=no
18157 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18158 export_dynamic_flag_spec_GCJ='${wl}-E'
18159 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18160 # Instead, shared libraries are loaded at an image base (0x10000000 by
18161 # default) and relocated if they conflict, which is a slow very memory
18162 # consuming and fragmenting process. To avoid this, we pick a random,
18163 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18164 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18165 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18166 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18169 linux*)
18170 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18171 tmp_addflag=
18172 case $cc_basename,$host_cpu in
18173 pgcc*) # Portland Group C compiler
18174 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18175 tmp_addflag=' $pic_flag'
18177 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18178 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18179 tmp_addflag=' $pic_flag -Mnomain' ;;
18180 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18181 tmp_addflag=' -i_dynamic' ;;
18182 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18183 tmp_addflag=' -i_dynamic -nofor_main' ;;
18184 ifc* | ifort*) # Intel Fortran compiler
18185 tmp_addflag=' -nofor_main' ;;
18186 esac
18187 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18189 if test $supports_anon_versioning = yes; then
18190 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18191 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18192 $echo "local: *; };" >> $output_objdir/$libname.ver~
18193 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18195 else
18196 ld_shlibs_GCJ=no
18200 netbsd*)
18201 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18202 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18203 wlarc=
18204 else
18205 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18206 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18210 solaris*)
18211 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18212 ld_shlibs_GCJ=no
18213 cat <<EOF 1>&2
18215 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18216 *** create shared libraries on Solaris systems. Therefore, libtool
18217 *** is disabling shared libraries support. We urge you to upgrade GNU
18218 *** binutils to release 2.9.1 or newer. Another option is to modify
18219 *** your PATH or compiler configuration so that the native linker is
18220 *** used, and then restart.
18223 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18224 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18225 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18226 else
18227 ld_shlibs_GCJ=no
18231 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18232 case `$LD -v 2>&1` in
18233 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18234 ld_shlibs_GCJ=no
18235 cat <<_LT_EOF 1>&2
18237 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18238 *** reliably create shared libraries on SCO systems. Therefore, libtool
18239 *** is disabling shared libraries support. We urge you to upgrade GNU
18240 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18241 *** your PATH or compiler configuration so that the native linker is
18242 *** used, and then restart.
18244 _LT_EOF
18247 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18248 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18249 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18250 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18251 else
18252 ld_shlibs_GCJ=no
18255 esac
18258 sunos4*)
18259 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18260 wlarc=
18261 hardcode_direct_GCJ=yes
18262 hardcode_shlibpath_var_GCJ=no
18266 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18267 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18268 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18269 else
18270 ld_shlibs_GCJ=no
18273 esac
18275 if test "$ld_shlibs_GCJ" = no; then
18276 runpath_var=
18277 hardcode_libdir_flag_spec_GCJ=
18278 export_dynamic_flag_spec_GCJ=
18279 whole_archive_flag_spec_GCJ=
18281 else
18282 # PORTME fill in a description of your system's linker (not GNU ld)
18283 case $host_os in
18284 aix3*)
18285 allow_undefined_flag_GCJ=unsupported
18286 always_export_symbols_GCJ=yes
18287 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
18288 # Note: this linker hardcodes the directories in LIBPATH if there
18289 # are no directories specified by -L.
18290 hardcode_minus_L_GCJ=yes
18291 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18292 # Neither direct hardcoding nor static linking is supported with a
18293 # broken collect2.
18294 hardcode_direct_GCJ=unsupported
18298 aix4* | aix5*)
18299 if test "$host_cpu" = ia64; then
18300 # On IA64, the linker does run time linking by default, so we don't
18301 # have to do anything special.
18302 aix_use_runtimelinking=no
18303 exp_sym_flag='-Bexport'
18304 no_entry_flag=""
18305 else
18306 # If we're using GNU nm, then we don't want the "-C" option.
18307 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18308 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18309 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
18310 else
18311 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
18313 aix_use_runtimelinking=no
18315 # Test if we are trying to use run time linking or normal
18316 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18317 # need to do runtime linking.
18318 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18319 for ld_flag in $LDFLAGS; do
18320 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18321 aix_use_runtimelinking=yes
18322 break
18324 done
18326 esac
18328 exp_sym_flag='-bexport'
18329 no_entry_flag='-bnoentry'
18332 # When large executables or shared objects are built, AIX ld can
18333 # have problems creating the table of contents. If linking a library
18334 # or program results in "error TOC overflow" add -mminimal-toc to
18335 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18336 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18338 archive_cmds_GCJ=''
18339 hardcode_direct_GCJ=yes
18340 hardcode_libdir_separator_GCJ=':'
18341 link_all_deplibs_GCJ=yes
18343 if test "$GCC" = yes; then
18344 case $host_os in aix4.[012]|aix4.[012].*)
18345 # We only want to do this on AIX 4.2 and lower, the check
18346 # below for broken collect2 doesn't work under 4.3+
18347 collect2name=`${CC} -print-prog-name=collect2`
18348 if test -f "$collect2name" && \
18349 strings "$collect2name" | grep resolve_lib_name >/dev/null
18350 then
18351 # We have reworked collect2
18352 hardcode_direct_GCJ=yes
18353 else
18354 # We have old collect2
18355 hardcode_direct_GCJ=unsupported
18356 # It fails to find uninstalled libraries when the uninstalled
18357 # path is not listed in the libpath. Setting hardcode_minus_L
18358 # to unsupported forces relinking
18359 hardcode_minus_L_GCJ=yes
18360 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18361 hardcode_libdir_separator_GCJ=
18364 esac
18365 shared_flag='-shared'
18366 if test "$aix_use_runtimelinking" = yes; then
18367 shared_flag="$shared_flag "'${wl}-G'
18369 else
18370 # not using gcc
18371 if test "$host_cpu" = ia64; then
18372 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18373 # chokes on -Wl,-G. The following line is correct:
18374 shared_flag='-G'
18375 else
18376 if test "$aix_use_runtimelinking" = yes; then
18377 shared_flag='${wl}-G'
18378 else
18379 shared_flag='${wl}-bM:SRE'
18384 # It seems that -bexpall does not export symbols beginning with
18385 # underscore (_), so it is better to generate a list of symbols to export.
18386 always_export_symbols_GCJ=yes
18387 if test "$aix_use_runtimelinking" = yes; then
18388 # Warning - without using the other runtime loading flags (-brtl),
18389 # -berok will link without error, but may produce a broken library.
18390 allow_undefined_flag_GCJ='-berok'
18391 # Determine the default libpath from the value encoded in an empty executable.
18392 cat >conftest.$ac_ext <<_ACEOF
18393 /* confdefs.h. */
18394 _ACEOF
18395 cat confdefs.h >>conftest.$ac_ext
18396 cat >>conftest.$ac_ext <<_ACEOF
18397 /* end confdefs.h. */
18400 main ()
18404 return 0;
18406 _ACEOF
18407 rm -f conftest.$ac_objext conftest$ac_exeext
18408 if { (ac_try="$ac_link"
18409 case "(($ac_try" in
18410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18411 *) ac_try_echo=$ac_try;;
18412 esac
18413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18414 $as_echo "$ac_try_echo") >&5
18415 (eval "$ac_link") 2>conftest.er1
18416 ac_status=$?
18417 grep -v '^ *+' conftest.er1 >conftest.err
18418 rm -f conftest.er1
18419 cat conftest.err >&5
18420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421 (exit $ac_status); } && {
18422 test -z "$ac_c_werror_flag" ||
18423 test ! -s conftest.err
18424 } && test -s conftest$ac_exeext && {
18425 test "$cross_compiling" = yes ||
18426 $as_test_x conftest$ac_exeext
18427 }; then
18429 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18431 # Check for a 64-bit object if we didn't find anything.
18432 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18433 }'`; fi
18434 else
18435 $as_echo "$as_me: failed program was:" >&5
18436 sed 's/^/| /' conftest.$ac_ext >&5
18441 rm -rf conftest.dSYM
18442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18443 conftest$ac_exeext conftest.$ac_ext
18444 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18446 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18447 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18448 else
18449 if test "$host_cpu" = ia64; then
18450 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18451 allow_undefined_flag_GCJ="-z nodefs"
18452 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
18453 else
18454 # Determine the default libpath from the value encoded in an empty executable.
18455 cat >conftest.$ac_ext <<_ACEOF
18456 /* confdefs.h. */
18457 _ACEOF
18458 cat confdefs.h >>conftest.$ac_ext
18459 cat >>conftest.$ac_ext <<_ACEOF
18460 /* end confdefs.h. */
18463 main ()
18467 return 0;
18469 _ACEOF
18470 rm -f conftest.$ac_objext conftest$ac_exeext
18471 if { (ac_try="$ac_link"
18472 case "(($ac_try" in
18473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18474 *) ac_try_echo=$ac_try;;
18475 esac
18476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18477 $as_echo "$ac_try_echo") >&5
18478 (eval "$ac_link") 2>conftest.er1
18479 ac_status=$?
18480 grep -v '^ *+' conftest.er1 >conftest.err
18481 rm -f conftest.er1
18482 cat conftest.err >&5
18483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18484 (exit $ac_status); } && {
18485 test -z "$ac_c_werror_flag" ||
18486 test ! -s conftest.err
18487 } && test -s conftest$ac_exeext && {
18488 test "$cross_compiling" = yes ||
18489 $as_test_x conftest$ac_exeext
18490 }; then
18492 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18494 # Check for a 64-bit object if we didn't find anything.
18495 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18496 }'`; fi
18497 else
18498 $as_echo "$as_me: failed program was:" >&5
18499 sed 's/^/| /' conftest.$ac_ext >&5
18504 rm -rf conftest.dSYM
18505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18506 conftest$ac_exeext conftest.$ac_ext
18507 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18509 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18510 # Warning - without using the other run time loading flags,
18511 # -berok will link without error, but may produce a broken library.
18512 no_undefined_flag_GCJ=' ${wl}-bernotok'
18513 allow_undefined_flag_GCJ=' ${wl}-berok'
18514 # Exported symbols can be pulled into shared objects from archives
18515 whole_archive_flag_spec_GCJ='$convenience'
18516 archive_cmds_need_lc_GCJ=yes
18517 # This is similar to how AIX traditionally builds its shared libraries.
18518 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
18523 amigaos*)
18524 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
18525 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18526 hardcode_minus_L_GCJ=yes
18527 # see comment about different semantics on the GNU ld section
18528 ld_shlibs_GCJ=no
18531 bsdi[45]*)
18532 export_dynamic_flag_spec_GCJ=-rdynamic
18535 cygwin* | mingw* | pw32*)
18536 # When not using gcc, we currently assume that we are using
18537 # Microsoft Visual C++.
18538 # hardcode_libdir_flag_spec is actually meaningless, as there is
18539 # no search path for DLLs.
18540 hardcode_libdir_flag_spec_GCJ=' '
18541 allow_undefined_flag_GCJ=unsupported
18542 # Tell ltmain to make .lib files, not .a files.
18543 libext=lib
18544 # Tell ltmain to make .dll files, not .so files.
18545 shrext_cmds=".dll"
18546 # FIXME: Setting linknames here is a bad hack.
18547 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18548 # The linker will automatically build a .lib file if we build a DLL.
18549 old_archive_From_new_cmds_GCJ='true'
18550 # FIXME: Should let the user specify the lib program.
18551 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18552 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18553 enable_shared_with_static_runtimes_GCJ=yes
18556 darwin* | rhapsody*)
18557 case $host_os in
18558 rhapsody* | darwin1.[012])
18559 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18561 *) # Darwin 1.3 on
18562 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18563 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18564 else
18565 case ${MACOSX_DEPLOYMENT_TARGET} in
18566 10.[012])
18567 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18569 10.*)
18570 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18572 esac
18575 esac
18576 archive_cmds_need_lc_GCJ=no
18577 hardcode_direct_GCJ=no
18578 hardcode_automatic_GCJ=yes
18579 hardcode_shlibpath_var_GCJ=unsupported
18580 whole_archive_flag_spec_GCJ=''
18581 link_all_deplibs_GCJ=yes
18582 if test "$GCC" = yes ; then
18583 output_verbose_link_cmd='echo'
18584 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18585 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18586 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18587 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18588 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18589 else
18590 case $cc_basename in
18591 xlc*)
18592 output_verbose_link_cmd='echo'
18593 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18594 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18595 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18596 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18597 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18600 ld_shlibs_GCJ=no
18602 esac
18606 dgux*)
18607 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18608 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18609 hardcode_shlibpath_var_GCJ=no
18612 freebsd1*)
18613 ld_shlibs_GCJ=no
18616 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18617 # support. Future versions do this automatically, but an explicit c++rt0.o
18618 # does not break anything, and helps significantly (at the cost of a little
18619 # extra space).
18620 freebsd2.2*)
18621 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18622 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18623 hardcode_direct_GCJ=yes
18624 hardcode_shlibpath_var_GCJ=no
18627 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18628 freebsd2*)
18629 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18630 hardcode_direct_GCJ=yes
18631 hardcode_minus_L_GCJ=yes
18632 hardcode_shlibpath_var_GCJ=no
18635 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18636 freebsd* | kfreebsd*-gnu | dragonfly*)
18637 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18638 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18639 hardcode_direct_GCJ=yes
18640 hardcode_shlibpath_var_GCJ=no
18643 hpux9*)
18644 if test "$GCC" = yes; then
18645 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18646 else
18647 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18649 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18650 hardcode_libdir_separator_GCJ=:
18651 hardcode_direct_GCJ=yes
18653 # hardcode_minus_L: Not really in the search PATH,
18654 # but as the default location of the library.
18655 hardcode_minus_L_GCJ=yes
18656 export_dynamic_flag_spec_GCJ='${wl}-E'
18659 hpux10*)
18660 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18661 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18662 else
18663 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18665 if test "$with_gnu_ld" = no; then
18666 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18667 hardcode_libdir_separator_GCJ=:
18669 hardcode_direct_GCJ=yes
18670 export_dynamic_flag_spec_GCJ='${wl}-E'
18672 # hardcode_minus_L: Not really in the search PATH,
18673 # but as the default location of the library.
18674 hardcode_minus_L_GCJ=yes
18678 hpux11*)
18679 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18680 case $host_cpu in
18681 hppa*64*)
18682 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18684 ia64*)
18685 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18688 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18690 esac
18691 else
18692 case $host_cpu in
18693 hppa*64*)
18694 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18696 ia64*)
18697 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18700 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18702 esac
18704 if test "$with_gnu_ld" = no; then
18705 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18706 hardcode_libdir_separator_GCJ=:
18708 case $host_cpu in
18709 hppa*64*|ia64*)
18710 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18711 hardcode_direct_GCJ=no
18712 hardcode_shlibpath_var_GCJ=no
18715 hardcode_direct_GCJ=yes
18716 export_dynamic_flag_spec_GCJ='${wl}-E'
18718 # hardcode_minus_L: Not really in the search PATH,
18719 # but as the default location of the library.
18720 hardcode_minus_L_GCJ=yes
18722 esac
18726 irix5* | irix6* | nonstopux*)
18727 if test "$GCC" = yes; then
18728 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18729 else
18730 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18731 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18733 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18734 hardcode_libdir_separator_GCJ=:
18735 link_all_deplibs_GCJ=yes
18738 netbsd*)
18739 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18740 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18741 else
18742 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18744 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18745 hardcode_direct_GCJ=yes
18746 hardcode_shlibpath_var_GCJ=no
18749 newsos6)
18750 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18751 hardcode_direct_GCJ=yes
18752 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18753 hardcode_libdir_separator_GCJ=:
18754 hardcode_shlibpath_var_GCJ=no
18757 openbsd*)
18758 hardcode_direct_GCJ=yes
18759 hardcode_shlibpath_var_GCJ=no
18760 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18761 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18762 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18763 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18764 export_dynamic_flag_spec_GCJ='${wl}-E'
18765 else
18766 case $host_os in
18767 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18768 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18769 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18772 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18773 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18775 esac
18779 os2*)
18780 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18781 hardcode_minus_L_GCJ=yes
18782 allow_undefined_flag_GCJ=unsupported
18783 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
18784 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18787 osf3*)
18788 if test "$GCC" = yes; then
18789 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18790 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18791 else
18792 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18793 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18795 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18796 hardcode_libdir_separator_GCJ=:
18799 osf4* | osf5*) # as osf3* with the addition of -msym flag
18800 if test "$GCC" = yes; then
18801 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18802 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18803 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18804 else
18805 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18806 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18807 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18808 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
18810 # Both c and cxx compiler support -rpath directly
18811 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18813 hardcode_libdir_separator_GCJ=:
18816 solaris*)
18817 no_undefined_flag_GCJ=' -z text'
18818 if test "$GCC" = yes; then
18819 wlarc='${wl}'
18820 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18821 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18822 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18823 else
18824 wlarc=''
18825 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18826 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18827 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18829 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18830 hardcode_shlibpath_var_GCJ=no
18831 case $host_os in
18832 solaris2.[0-5] | solaris2.[0-5].*) ;;
18834 # The compiler driver will combine linker options so we
18835 # cannot just pass the convience library names through
18836 # without $wl, iff we do not link with $LD.
18837 # Luckily, gcc supports the same syntax we need for Sun Studio.
18838 # Supported since Solaris 2.6 (maybe 2.5.1?)
18839 case $wlarc in
18841 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18843 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
18844 esac ;;
18845 esac
18846 link_all_deplibs_GCJ=yes
18849 sunos4*)
18850 if test "x$host_vendor" = xsequent; then
18851 # Use $CC to link under sequent, because it throws in some extra .o
18852 # files that make .init and .fini sections work.
18853 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18854 else
18855 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18857 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18858 hardcode_direct_GCJ=yes
18859 hardcode_minus_L_GCJ=yes
18860 hardcode_shlibpath_var_GCJ=no
18863 sysv4)
18864 case $host_vendor in
18865 sni)
18866 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18867 hardcode_direct_GCJ=yes # is this really true???
18869 siemens)
18870 ## LD is ld it makes a PLAMLIB
18871 ## CC just makes a GrossModule.
18872 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18873 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18874 hardcode_direct_GCJ=no
18876 motorola)
18877 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18878 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18880 esac
18881 runpath_var='LD_RUN_PATH'
18882 hardcode_shlibpath_var_GCJ=no
18885 sysv4.3*)
18886 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18887 hardcode_shlibpath_var_GCJ=no
18888 export_dynamic_flag_spec_GCJ='-Bexport'
18891 sysv4*MP*)
18892 if test -d /usr/nec; then
18893 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18894 hardcode_shlibpath_var_GCJ=no
18895 runpath_var=LD_RUN_PATH
18896 hardcode_runpath_var=yes
18897 ld_shlibs_GCJ=yes
18901 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18902 no_undefined_flag_GCJ='${wl}-z,text'
18903 archive_cmds_need_lc_GCJ=no
18904 hardcode_shlibpath_var_GCJ=no
18905 runpath_var='LD_RUN_PATH'
18907 if test "$GCC" = yes; then
18908 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18909 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18910 else
18911 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18912 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18916 sysv5* | sco3.2v5* | sco5v6*)
18917 # Note: We can NOT use -z defs as we might desire, because we do not
18918 # link with -lc, and that would cause any symbols used from libc to
18919 # always be unresolved, which means just about no library would
18920 # ever link correctly. If we're not using GNU ld we use -z text
18921 # though, which does catch some bad symbols but isn't as heavy-handed
18922 # as -z defs.
18923 no_undefined_flag_GCJ='${wl}-z,text'
18924 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18925 archive_cmds_need_lc_GCJ=no
18926 hardcode_shlibpath_var_GCJ=no
18927 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18928 hardcode_libdir_separator_GCJ=':'
18929 link_all_deplibs_GCJ=yes
18930 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18931 runpath_var='LD_RUN_PATH'
18933 if test "$GCC" = yes; then
18934 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18935 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18936 else
18937 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18938 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18942 uts4*)
18943 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18944 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18945 hardcode_shlibpath_var_GCJ=no
18949 ld_shlibs_GCJ=no
18951 esac
18954 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18955 $as_echo "$ld_shlibs_GCJ" >&6; }
18956 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18959 # Do we need to explicitly link libc?
18961 case "x$archive_cmds_need_lc_GCJ" in
18962 x|xyes)
18963 # Assume -lc should be added
18964 archive_cmds_need_lc_GCJ=yes
18966 if test "$enable_shared" = yes && test "$GCC" = yes; then
18967 case $archive_cmds_GCJ in
18968 *'~'*)
18969 # FIXME: we may have to deal with multi-command sequences.
18971 '$CC '*)
18972 # Test whether the compiler implicitly links with -lc since on some
18973 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18974 # to ld, don't add -lc before -lgcc.
18975 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18976 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18977 $rm conftest*
18978 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18981 (eval $ac_compile) 2>&5
18982 ac_status=$?
18983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18984 (exit $ac_status); } 2>conftest.err; then
18985 soname=conftest
18986 lib=conftest
18987 libobjs=conftest.$ac_objext
18988 deplibs=
18989 wl=$lt_prog_compiler_wl_GCJ
18990 pic_flag=$lt_prog_compiler_pic_GCJ
18991 compiler_flags=-v
18992 linker_flags=-v
18993 verstring=
18994 output_objdir=.
18995 libname=conftest
18996 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18997 allow_undefined_flag_GCJ=
18998 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18999 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19000 ac_status=$?
19001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002 (exit $ac_status); }
19003 then
19004 archive_cmds_need_lc_GCJ=no
19005 else
19006 archive_cmds_need_lc_GCJ=yes
19008 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19009 else
19010 cat conftest.err 1>&5
19012 $rm conftest*
19013 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19014 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
19016 esac
19019 esac
19021 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19022 $as_echo_n "checking dynamic linker characteristics... " >&6; }
19023 library_names_spec=
19024 libname_spec='lib$name'
19025 soname_spec=
19026 shrext_cmds=".so"
19027 postinstall_cmds=
19028 postuninstall_cmds=
19029 finish_cmds=
19030 finish_eval=
19031 shlibpath_var=
19032 shlibpath_overrides_runpath=unknown
19033 version_type=none
19034 dynamic_linker="$host_os ld.so"
19035 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19036 if test "$GCC" = yes; then
19037 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19038 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19039 # if the path contains ";" then we assume it to be the separator
19040 # otherwise default to the standard path separator (i.e. ":") - it is
19041 # assumed that no part of a normal pathname contains ";" but that should
19042 # okay in the real world where ";" in dirpaths is itself problematic.
19043 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19044 else
19045 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19047 else
19048 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19050 need_lib_prefix=unknown
19051 hardcode_into_libs=no
19053 # when you set need_version to no, make sure it does not cause -set_version
19054 # flags to be left without arguments
19055 need_version=unknown
19057 case $host_os in
19058 aix3*)
19059 version_type=linux
19060 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19061 shlibpath_var=LIBPATH
19063 # AIX 3 has no versioning support, so we append a major version to the name.
19064 soname_spec='${libname}${release}${shared_ext}$major'
19067 aix4* | aix5*)
19068 version_type=linux
19069 need_lib_prefix=no
19070 need_version=no
19071 hardcode_into_libs=yes
19072 if test "$host_cpu" = ia64; then
19073 # AIX 5 supports IA64
19074 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19075 shlibpath_var=LD_LIBRARY_PATH
19076 else
19077 # With GCC up to 2.95.x, collect2 would create an import file
19078 # for dependence libraries. The import file would start with
19079 # the line `#! .'. This would cause the generated library to
19080 # depend on `.', always an invalid library. This was fixed in
19081 # development snapshots of GCC prior to 3.0.
19082 case $host_os in
19083 aix4 | aix4.[01] | aix4.[01].*)
19084 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19085 echo ' yes '
19086 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19088 else
19089 can_build_shared=no
19092 esac
19093 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19094 # soname into executable. Probably we can add versioning support to
19095 # collect2, so additional links can be useful in future.
19096 if test "$aix_use_runtimelinking" = yes; then
19097 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19098 # instead of lib<name>.a to let people know that these are not
19099 # typical AIX shared libraries.
19100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19101 else
19102 # We preserve .a as extension for shared libraries through AIX4.2
19103 # and later when we are not doing run time linking.
19104 library_names_spec='${libname}${release}.a $libname.a'
19105 soname_spec='${libname}${release}${shared_ext}$major'
19107 shlibpath_var=LIBPATH
19111 amigaos*)
19112 library_names_spec='$libname.ixlibrary $libname.a'
19113 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19114 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'
19117 beos*)
19118 library_names_spec='${libname}${shared_ext}'
19119 dynamic_linker="$host_os ld.so"
19120 shlibpath_var=LIBRARY_PATH
19123 bsdi[45]*)
19124 version_type=linux
19125 need_version=no
19126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19127 soname_spec='${libname}${release}${shared_ext}$major'
19128 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19129 shlibpath_var=LD_LIBRARY_PATH
19130 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19131 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19132 # the default ld.so.conf also contains /usr/contrib/lib and
19133 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19134 # libtool to hard-code these into programs
19137 cygwin* | mingw* | pw32*)
19138 version_type=windows
19139 shrext_cmds=".dll"
19140 need_version=no
19141 need_lib_prefix=no
19143 case $GCC,$host_os in
19144 yes,cygwin* | yes,mingw* | yes,pw32*)
19145 library_names_spec='$libname.dll.a'
19146 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19147 postinstall_cmds='base_file=`basename \${file}`~
19148 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19149 dldir=$destdir/`dirname \$dlpath`~
19150 test -d \$dldir || mkdir -p \$dldir~
19151 $install_prog $dir/$dlname \$dldir/$dlname~
19152 chmod a+x \$dldir/$dlname'
19153 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19154 dlpath=$dir/\$dldll~
19155 $rm \$dlpath'
19156 shlibpath_overrides_runpath=yes
19158 case $host_os in
19159 cygwin*)
19160 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19161 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19162 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19164 mingw*)
19165 # MinGW DLLs use traditional 'lib' prefix
19166 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19167 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19168 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19169 # It is most probably a Windows format PATH printed by
19170 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19171 # path with ; separators, and with drive letters. We can handle the
19172 # drive letters (cygwin fileutils understands them), so leave them,
19173 # especially as we might pass files found there to a mingw objdump,
19174 # which wouldn't understand a cygwinified path. Ahh.
19175 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19176 else
19177 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19180 pw32*)
19181 # pw32 DLLs use 'pw' prefix rather than 'lib'
19182 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19184 esac
19188 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19190 esac
19191 dynamic_linker='Win32 ld.exe'
19192 # FIXME: first we should search . and the directory the executable is in
19193 shlibpath_var=PATH
19196 darwin* | rhapsody*)
19197 dynamic_linker="$host_os dyld"
19198 version_type=darwin
19199 need_lib_prefix=no
19200 need_version=no
19201 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19202 soname_spec='${libname}${release}${major}$shared_ext'
19203 shlibpath_overrides_runpath=yes
19204 shlibpath_var=DYLD_LIBRARY_PATH
19205 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19206 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19207 if test "$GCC" = yes; then
19208 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
19209 else
19210 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19212 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19215 dgux*)
19216 version_type=linux
19217 need_lib_prefix=no
19218 need_version=no
19219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19220 soname_spec='${libname}${release}${shared_ext}$major'
19221 shlibpath_var=LD_LIBRARY_PATH
19224 freebsd1*)
19225 dynamic_linker=no
19228 kfreebsd*-gnu)
19229 version_type=linux
19230 need_lib_prefix=no
19231 need_version=no
19232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19233 soname_spec='${libname}${release}${shared_ext}$major'
19234 shlibpath_var=LD_LIBRARY_PATH
19235 shlibpath_overrides_runpath=no
19236 hardcode_into_libs=yes
19237 dynamic_linker='GNU ld.so'
19240 freebsd* | dragonfly*)
19241 # DragonFly does not have aout. When/if they implement a new
19242 # versioning mechanism, adjust this.
19243 if test -x /usr/bin/objformat; then
19244 objformat=`/usr/bin/objformat`
19245 else
19246 case $host_os in
19247 freebsd[123]*) objformat=aout ;;
19248 *) objformat=elf ;;
19249 esac
19251 version_type=freebsd-$objformat
19252 case $version_type in
19253 freebsd-elf*)
19254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19255 need_version=no
19256 need_lib_prefix=no
19258 freebsd-*)
19259 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19260 need_version=yes
19262 esac
19263 shlibpath_var=LD_LIBRARY_PATH
19264 case $host_os in
19265 freebsd2*)
19266 shlibpath_overrides_runpath=yes
19268 freebsd3.[01]* | freebsdelf3.[01]*)
19269 shlibpath_overrides_runpath=yes
19270 hardcode_into_libs=yes
19272 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19273 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19274 shlibpath_overrides_runpath=no
19275 hardcode_into_libs=yes
19277 freebsd*) # from 4.6 on
19278 shlibpath_overrides_runpath=yes
19279 hardcode_into_libs=yes
19281 esac
19284 gnu*)
19285 version_type=linux
19286 need_lib_prefix=no
19287 need_version=no
19288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19289 soname_spec='${libname}${release}${shared_ext}$major'
19290 shlibpath_var=LD_LIBRARY_PATH
19291 hardcode_into_libs=yes
19294 hpux9* | hpux10* | hpux11*)
19295 # Give a soname corresponding to the major version so that dld.sl refuses to
19296 # link against other versions.
19297 version_type=sunos
19298 need_lib_prefix=no
19299 need_version=no
19300 case $host_cpu in
19301 ia64*)
19302 shrext_cmds='.so'
19303 hardcode_into_libs=yes
19304 dynamic_linker="$host_os dld.so"
19305 shlibpath_var=LD_LIBRARY_PATH
19306 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19308 soname_spec='${libname}${release}${shared_ext}$major'
19309 if test "X$HPUX_IA64_MODE" = X32; then
19310 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19311 else
19312 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19314 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19316 hppa*64*)
19317 shrext_cmds='.sl'
19318 hardcode_into_libs=yes
19319 dynamic_linker="$host_os dld.sl"
19320 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19321 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19323 soname_spec='${libname}${release}${shared_ext}$major'
19324 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19325 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19328 shrext_cmds='.sl'
19329 dynamic_linker="$host_os dld.sl"
19330 shlibpath_var=SHLIB_PATH
19331 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19333 soname_spec='${libname}${release}${shared_ext}$major'
19335 esac
19336 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19337 postinstall_cmds='chmod 555 $lib'
19340 interix3*)
19341 version_type=linux
19342 need_lib_prefix=no
19343 need_version=no
19344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19345 soname_spec='${libname}${release}${shared_ext}$major'
19346 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19347 shlibpath_var=LD_LIBRARY_PATH
19348 shlibpath_overrides_runpath=no
19349 hardcode_into_libs=yes
19352 irix5* | irix6* | nonstopux*)
19353 case $host_os in
19354 nonstopux*) version_type=nonstopux ;;
19356 if test "$lt_cv_prog_gnu_ld" = yes; then
19357 version_type=linux
19358 else
19359 version_type=irix
19360 fi ;;
19361 esac
19362 need_lib_prefix=no
19363 need_version=no
19364 soname_spec='${libname}${release}${shared_ext}$major'
19365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19366 case $host_os in
19367 irix5* | nonstopux*)
19368 libsuff= shlibsuff=
19371 case $LD in # libtool.m4 will add one of these switches to LD
19372 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19373 libsuff= shlibsuff= libmagic=32-bit;;
19374 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19375 libsuff=32 shlibsuff=N32 libmagic=N32;;
19376 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19377 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19378 *) libsuff= shlibsuff= libmagic=never-match;;
19379 esac
19381 esac
19382 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19383 shlibpath_overrides_runpath=no
19384 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19385 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19386 hardcode_into_libs=yes
19389 # No shared lib support for Linux oldld, aout, or coff.
19390 linux*oldld* | linux*aout* | linux*coff*)
19391 dynamic_linker=no
19394 # This must be Linux ELF.
19395 linux*)
19396 version_type=linux
19397 need_lib_prefix=no
19398 need_version=no
19399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19400 soname_spec='${libname}${release}${shared_ext}$major'
19401 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19402 shlibpath_var=LD_LIBRARY_PATH
19403 shlibpath_overrides_runpath=no
19404 # This implies no fast_install, which is unacceptable.
19405 # Some rework will be needed to allow for fast_install
19406 # before this can be enabled.
19407 hardcode_into_libs=yes
19409 # Append ld.so.conf contents to the search path
19410 if test -f /etc/ld.so.conf; then
19411 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19412 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19415 # We used to test for /lib/ld.so.1 and disable shared libraries on
19416 # powerpc, because MkLinux only supported shared libraries with the
19417 # GNU dynamic linker. Since this was broken with cross compilers,
19418 # most powerpc-linux boxes support dynamic linking these days and
19419 # people can always --disable-shared, the test was removed, and we
19420 # assume the GNU/Linux dynamic linker is in use.
19421 dynamic_linker='GNU/Linux ld.so'
19424 knetbsd*-gnu)
19425 version_type=linux
19426 need_lib_prefix=no
19427 need_version=no
19428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19429 soname_spec='${libname}${release}${shared_ext}$major'
19430 shlibpath_var=LD_LIBRARY_PATH
19431 shlibpath_overrides_runpath=no
19432 hardcode_into_libs=yes
19433 dynamic_linker='GNU ld.so'
19436 netbsd*)
19437 version_type=sunos
19438 need_lib_prefix=no
19439 need_version=no
19440 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19442 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19443 dynamic_linker='NetBSD (a.out) ld.so'
19444 else
19445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19446 soname_spec='${libname}${release}${shared_ext}$major'
19447 dynamic_linker='NetBSD ld.elf_so'
19449 shlibpath_var=LD_LIBRARY_PATH
19450 shlibpath_overrides_runpath=yes
19451 hardcode_into_libs=yes
19454 newsos6)
19455 version_type=linux
19456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19457 shlibpath_var=LD_LIBRARY_PATH
19458 shlibpath_overrides_runpath=yes
19461 nto-qnx*)
19462 version_type=linux
19463 need_lib_prefix=no
19464 need_version=no
19465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19466 soname_spec='${libname}${release}${shared_ext}$major'
19467 shlibpath_var=LD_LIBRARY_PATH
19468 shlibpath_overrides_runpath=yes
19471 openbsd*)
19472 version_type=sunos
19473 sys_lib_dlsearch_path_spec="/usr/lib"
19474 need_lib_prefix=no
19475 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19476 case $host_os in
19477 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19478 *) need_version=no ;;
19479 esac
19480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19481 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19482 shlibpath_var=LD_LIBRARY_PATH
19483 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19484 case $host_os in
19485 openbsd2.[89] | openbsd2.[89].*)
19486 shlibpath_overrides_runpath=no
19489 shlibpath_overrides_runpath=yes
19491 esac
19492 else
19493 shlibpath_overrides_runpath=yes
19497 os2*)
19498 libname_spec='$name'
19499 shrext_cmds=".dll"
19500 need_lib_prefix=no
19501 library_names_spec='$libname${shared_ext} $libname.a'
19502 dynamic_linker='OS/2 ld.exe'
19503 shlibpath_var=LIBPATH
19506 osf3* | osf4* | osf5*)
19507 version_type=osf
19508 need_lib_prefix=no
19509 need_version=no
19510 soname_spec='${libname}${release}${shared_ext}$major'
19511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19512 shlibpath_var=LD_LIBRARY_PATH
19513 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19514 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19517 solaris*)
19518 version_type=linux
19519 need_lib_prefix=no
19520 need_version=no
19521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19522 soname_spec='${libname}${release}${shared_ext}$major'
19523 shlibpath_var=LD_LIBRARY_PATH
19524 shlibpath_overrides_runpath=yes
19525 hardcode_into_libs=yes
19526 # ldd complains unless libraries are executable
19527 postinstall_cmds='chmod +x $lib'
19530 sunos4*)
19531 version_type=sunos
19532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19533 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19534 shlibpath_var=LD_LIBRARY_PATH
19535 shlibpath_overrides_runpath=yes
19536 if test "$with_gnu_ld" = yes; then
19537 need_lib_prefix=no
19539 need_version=yes
19542 sysv4 | sysv4.3*)
19543 version_type=linux
19544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19545 soname_spec='${libname}${release}${shared_ext}$major'
19546 shlibpath_var=LD_LIBRARY_PATH
19547 case $host_vendor in
19548 sni)
19549 shlibpath_overrides_runpath=no
19550 need_lib_prefix=no
19551 export_dynamic_flag_spec='${wl}-Blargedynsym'
19552 runpath_var=LD_RUN_PATH
19554 siemens)
19555 need_lib_prefix=no
19557 motorola)
19558 need_lib_prefix=no
19559 need_version=no
19560 shlibpath_overrides_runpath=no
19561 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19563 esac
19566 sysv4*MP*)
19567 if test -d /usr/nec ;then
19568 version_type=linux
19569 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19570 soname_spec='$libname${shared_ext}.$major'
19571 shlibpath_var=LD_LIBRARY_PATH
19575 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19576 version_type=freebsd-elf
19577 need_lib_prefix=no
19578 need_version=no
19579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19580 soname_spec='${libname}${release}${shared_ext}$major'
19581 shlibpath_var=LD_LIBRARY_PATH
19582 hardcode_into_libs=yes
19583 if test "$with_gnu_ld" = yes; then
19584 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19585 shlibpath_overrides_runpath=no
19586 else
19587 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19588 shlibpath_overrides_runpath=yes
19589 case $host_os in
19590 sco3.2v5*)
19591 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19593 esac
19595 sys_lib_dlsearch_path_spec='/usr/lib'
19598 uts4*)
19599 version_type=linux
19600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19601 soname_spec='${libname}${release}${shared_ext}$major'
19602 shlibpath_var=LD_LIBRARY_PATH
19606 dynamic_linker=no
19608 esac
19609 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19610 $as_echo "$dynamic_linker" >&6; }
19611 test "$dynamic_linker" = no && can_build_shared=no
19613 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19614 if test "$GCC" = yes; then
19615 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19618 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19619 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19620 hardcode_action_GCJ=
19621 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19622 test -n "$runpath_var_GCJ" || \
19623 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19625 # We can hardcode non-existant directories.
19626 if test "$hardcode_direct_GCJ" != no &&
19627 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19628 # have to relink, otherwise we might link with an installed library
19629 # when we should be linking with a yet-to-be-installed one
19630 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19631 test "$hardcode_minus_L_GCJ" != no; then
19632 # Linking always hardcodes the temporary library directory.
19633 hardcode_action_GCJ=relink
19634 else
19635 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19636 hardcode_action_GCJ=immediate
19638 else
19639 # We cannot hardcode anything, or else we can only hardcode existing
19640 # directories.
19641 hardcode_action_GCJ=unsupported
19643 { $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19644 $as_echo "$hardcode_action_GCJ" >&6; }
19646 if test "$hardcode_action_GCJ" = relink; then
19647 # Fast installation is not supported
19648 enable_fast_install=no
19649 elif test "$shlibpath_overrides_runpath" = yes ||
19650 test "$enable_shared" = no; then
19651 # Fast installation is not necessary
19652 enable_fast_install=needless
19656 # The else clause should only fire when bootstrapping the
19657 # libtool distribution, otherwise you forgot to ship ltmain.sh
19658 # with your package, and you will get complaints that there are
19659 # no rules to generate ltmain.sh.
19660 if test -f "$ltmain"; then
19661 # See if we are running on zsh, and set the options which allow our commands through
19662 # without removal of \ escapes.
19663 if test -n "${ZSH_VERSION+set}" ; then
19664 setopt NO_GLOB_SUBST
19666 # Now quote all the things that may contain metacharacters while being
19667 # careful not to overquote the AC_SUBSTed values. We take copies of the
19668 # variables and quote the copies for generation of the libtool script.
19669 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19670 SED SHELL STRIP \
19671 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19672 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19673 deplibs_check_method reload_flag reload_cmds need_locks \
19674 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19675 lt_cv_sys_global_symbol_to_c_name_address \
19676 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19677 old_postinstall_cmds old_postuninstall_cmds \
19678 compiler_GCJ \
19679 CC_GCJ \
19680 LD_GCJ \
19681 lt_prog_compiler_wl_GCJ \
19682 lt_prog_compiler_pic_GCJ \
19683 lt_prog_compiler_static_GCJ \
19684 lt_prog_compiler_no_builtin_flag_GCJ \
19685 export_dynamic_flag_spec_GCJ \
19686 thread_safe_flag_spec_GCJ \
19687 whole_archive_flag_spec_GCJ \
19688 enable_shared_with_static_runtimes_GCJ \
19689 old_archive_cmds_GCJ \
19690 old_archive_from_new_cmds_GCJ \
19691 predep_objects_GCJ \
19692 postdep_objects_GCJ \
19693 predeps_GCJ \
19694 postdeps_GCJ \
19695 compiler_lib_search_path_GCJ \
19696 archive_cmds_GCJ \
19697 archive_expsym_cmds_GCJ \
19698 postinstall_cmds_GCJ \
19699 postuninstall_cmds_GCJ \
19700 old_archive_from_expsyms_cmds_GCJ \
19701 allow_undefined_flag_GCJ \
19702 no_undefined_flag_GCJ \
19703 export_symbols_cmds_GCJ \
19704 hardcode_libdir_flag_spec_GCJ \
19705 hardcode_libdir_flag_spec_ld_GCJ \
19706 hardcode_libdir_separator_GCJ \
19707 hardcode_automatic_GCJ \
19708 module_cmds_GCJ \
19709 module_expsym_cmds_GCJ \
19710 lt_cv_prog_compiler_c_o_GCJ \
19711 exclude_expsyms_GCJ \
19712 include_expsyms_GCJ; do
19714 case $var in
19715 old_archive_cmds_GCJ | \
19716 old_archive_from_new_cmds_GCJ | \
19717 archive_cmds_GCJ | \
19718 archive_expsym_cmds_GCJ | \
19719 module_cmds_GCJ | \
19720 module_expsym_cmds_GCJ | \
19721 old_archive_from_expsyms_cmds_GCJ | \
19722 export_symbols_cmds_GCJ | \
19723 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19724 postinstall_cmds | postuninstall_cmds | \
19725 old_postinstall_cmds | old_postuninstall_cmds | \
19726 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19727 # Double-quote double-evaled strings.
19728 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19731 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19733 esac
19734 done
19736 case $lt_echo in
19737 *'\$0 --fallback-echo"')
19738 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19740 esac
19742 cfgfile="$ofile"
19744 cat <<__EOF__ >> "$cfgfile"
19745 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19747 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19749 # Shell to use when invoking shell scripts.
19750 SHELL=$lt_SHELL
19752 # Whether or not to build shared libraries.
19753 build_libtool_libs=$enable_shared
19755 # Whether or not to build static libraries.
19756 build_old_libs=$enable_static
19758 # Whether or not to add -lc for building shared libraries.
19759 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19761 # Whether or not to disallow shared libs when runtime libs are static
19762 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19764 # Whether or not to optimize for fast installation.
19765 fast_install=$enable_fast_install
19767 # The host system.
19768 host_alias=$host_alias
19769 host=$host
19770 host_os=$host_os
19772 # The build system.
19773 build_alias=$build_alias
19774 build=$build
19775 build_os=$build_os
19777 # An echo program that does not interpret backslashes.
19778 echo=$lt_echo
19780 # The archiver.
19781 AR=$lt_AR
19782 AR_FLAGS=$lt_AR_FLAGS
19784 # A C compiler.
19785 LTCC=$lt_LTCC
19787 # LTCC compiler flags.
19788 LTCFLAGS=$lt_LTCFLAGS
19790 # A language-specific compiler.
19791 CC=$lt_compiler_GCJ
19793 # Is the compiler the GNU C compiler?
19794 with_gcc=$GCC_GCJ
19796 # An ERE matcher.
19797 EGREP=$lt_EGREP
19799 # The linker used to build libraries.
19800 LD=$lt_LD_GCJ
19802 # Whether we need hard or soft links.
19803 LN_S=$lt_LN_S
19805 # A BSD-compatible nm program.
19806 NM=$lt_NM
19808 # A symbol stripping program
19809 STRIP=$lt_STRIP
19811 # Used to examine libraries when file_magic_cmd begins "file"
19812 MAGIC_CMD=$MAGIC_CMD
19814 # Used on cygwin: DLL creation program.
19815 DLLTOOL="$DLLTOOL"
19817 # Used on cygwin: object dumper.
19818 OBJDUMP="$OBJDUMP"
19820 # Used on cygwin: assembler.
19821 AS="$AS"
19823 # The name of the directory that contains temporary libtool files.
19824 objdir=$objdir
19826 # How to create reloadable object files.
19827 reload_flag=$lt_reload_flag
19828 reload_cmds=$lt_reload_cmds
19830 # How to pass a linker flag through the compiler.
19831 wl=$lt_lt_prog_compiler_wl_GCJ
19833 # Object file suffix (normally "o").
19834 objext="$ac_objext"
19836 # Old archive suffix (normally "a").
19837 libext="$libext"
19839 # Shared library suffix (normally ".so").
19840 shrext_cmds='$shrext_cmds'
19842 # Executable file suffix (normally "").
19843 exeext="$exeext"
19845 # Additional compiler flags for building library objects.
19846 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19847 pic_mode=$pic_mode
19849 # What is the maximum length of a command?
19850 max_cmd_len=$lt_cv_sys_max_cmd_len
19852 # Does compiler simultaneously support -c and -o options?
19853 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19855 # Must we lock files when doing compilation?
19856 need_locks=$lt_need_locks
19858 # Do we need the lib prefix for modules?
19859 need_lib_prefix=$need_lib_prefix
19861 # Do we need a version for libraries?
19862 need_version=$need_version
19864 # Whether dlopen is supported.
19865 dlopen_support=$enable_dlopen
19867 # Whether dlopen of programs is supported.
19868 dlopen_self=$enable_dlopen_self
19870 # Whether dlopen of statically linked programs is supported.
19871 dlopen_self_static=$enable_dlopen_self_static
19873 # Compiler flag to prevent dynamic linking.
19874 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19876 # Compiler flag to turn off builtin functions.
19877 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19879 # Compiler flag to allow reflexive dlopens.
19880 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19882 # Compiler flag to generate shared objects directly from archives.
19883 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19885 # Compiler flag to generate thread-safe objects.
19886 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19888 # Library versioning type.
19889 version_type=$version_type
19891 # Format of library name prefix.
19892 libname_spec=$lt_libname_spec
19894 # List of archive names. First name is the real one, the rest are links.
19895 # The last name is the one that the linker finds with -lNAME.
19896 library_names_spec=$lt_library_names_spec
19898 # The coded name of the library, if different from the real name.
19899 soname_spec=$lt_soname_spec
19901 # Commands used to build and install an old-style archive.
19902 RANLIB=$lt_RANLIB
19903 old_archive_cmds=$lt_old_archive_cmds_GCJ
19904 old_postinstall_cmds=$lt_old_postinstall_cmds
19905 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19907 # Create an old-style archive from a shared archive.
19908 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19910 # Create a temporary old-style archive to link instead of a shared archive.
19911 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19913 # Commands used to build and install a shared archive.
19914 archive_cmds=$lt_archive_cmds_GCJ
19915 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19916 postinstall_cmds=$lt_postinstall_cmds
19917 postuninstall_cmds=$lt_postuninstall_cmds
19919 # Commands used to build a loadable module (assumed same as above if empty)
19920 module_cmds=$lt_module_cmds_GCJ
19921 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19923 # Commands to strip libraries.
19924 old_striplib=$lt_old_striplib
19925 striplib=$lt_striplib
19927 # Dependencies to place before the objects being linked to create a
19928 # shared library.
19929 predep_objects=$lt_predep_objects_GCJ
19931 # Dependencies to place after the objects being linked to create a
19932 # shared library.
19933 postdep_objects=$lt_postdep_objects_GCJ
19935 # Dependencies to place before the objects being linked to create a
19936 # shared library.
19937 predeps=$lt_predeps_GCJ
19939 # Dependencies to place after the objects being linked to create a
19940 # shared library.
19941 postdeps=$lt_postdeps_GCJ
19943 # The library search path used internally by the compiler when linking
19944 # a shared library.
19945 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19947 # Method to check whether dependent libraries are shared objects.
19948 deplibs_check_method=$lt_deplibs_check_method
19950 # Command to use when deplibs_check_method == file_magic.
19951 file_magic_cmd=$lt_file_magic_cmd
19953 # Flag that allows shared libraries with undefined symbols to be built.
19954 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19956 # Flag that forces no undefined symbols.
19957 no_undefined_flag=$lt_no_undefined_flag_GCJ
19959 # Commands used to finish a libtool library installation in a directory.
19960 finish_cmds=$lt_finish_cmds
19962 # Same as above, but a single script fragment to be evaled but not shown.
19963 finish_eval=$lt_finish_eval
19965 # Take the output of nm and produce a listing of raw symbols and C names.
19966 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19968 # Transform the output of nm in a proper C declaration
19969 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19971 # Transform the output of nm in a C name address pair
19972 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19974 # This is the shared library runtime path variable.
19975 runpath_var=$runpath_var
19977 # This is the shared library path variable.
19978 shlibpath_var=$shlibpath_var
19980 # Is shlibpath searched before the hard-coded library search path?
19981 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19983 # How to hardcode a shared library path into an executable.
19984 hardcode_action=$hardcode_action_GCJ
19986 # Whether we should hardcode library paths into libraries.
19987 hardcode_into_libs=$hardcode_into_libs
19989 # Flag to hardcode \$libdir into a binary during linking.
19990 # This must work even if \$libdir does not exist.
19991 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19993 # If ld is used when linking, flag to hardcode \$libdir into
19994 # a binary during linking. This must work even if \$libdir does
19995 # not exist.
19996 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19998 # Whether we need a single -rpath flag with a separated argument.
19999 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20001 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20002 # resulting binary.
20003 hardcode_direct=$hardcode_direct_GCJ
20005 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20006 # resulting binary.
20007 hardcode_minus_L=$hardcode_minus_L_GCJ
20009 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20010 # the resulting binary.
20011 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20013 # Set to yes if building a shared library automatically hardcodes DIR into the library
20014 # and all subsequent libraries and executables linked against it.
20015 hardcode_automatic=$hardcode_automatic_GCJ
20017 # Variables whose values should be saved in libtool wrapper scripts and
20018 # restored at relink time.
20019 variables_saved_for_relink="$variables_saved_for_relink"
20021 # Whether libtool must link a program against all its dependency libraries.
20022 link_all_deplibs=$link_all_deplibs_GCJ
20024 # Compile-time system search path for libraries
20025 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20027 # Run-time system search path for libraries
20028 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20030 # Fix the shell variable \$srcfile for the compiler.
20031 fix_srcfile_path="$fix_srcfile_path_GCJ"
20033 # Set to yes if exported symbols are required.
20034 always_export_symbols=$always_export_symbols_GCJ
20036 # The commands to list exported symbols.
20037 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20039 # The commands to extract the exported symbol list from a shared archive.
20040 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20042 # Symbols that should not be listed in the preloaded symbols.
20043 exclude_expsyms=$lt_exclude_expsyms_GCJ
20045 # Symbols that must always be exported.
20046 include_expsyms=$lt_include_expsyms_GCJ
20048 # ### END LIBTOOL TAG CONFIG: $tagname
20050 __EOF__
20053 else
20054 # If there is no Makefile yet, we rely on a make rule to execute
20055 # `config.status --recheck' to rerun these tests and create the
20056 # libtool script then.
20057 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20058 if test -f "$ltmain_in"; then
20059 test -f Makefile && make "$ltmain"
20064 ac_ext=c
20065 ac_cpp='$CPP $CPPFLAGS'
20066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20070 CC="$lt_save_CC"
20072 else
20073 tagname=""
20080 # Source file extension for RC test sources.
20081 ac_ext=rc
20083 # Object file extension for compiled RC test sources.
20084 objext=o
20085 objext_RC=$objext
20087 # Code to be used in simple compile tests
20088 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20090 # Code to be used in simple link tests
20091 lt_simple_link_test_code="$lt_simple_compile_test_code"
20093 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20095 # If no C compiler was specified, use CC.
20096 LTCC=${LTCC-"$CC"}
20098 # If no C compiler flags were specified, use CFLAGS.
20099 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20101 # Allow CC to be a program name with arguments.
20102 compiler=$CC
20105 # save warnings/boilerplate of simple test code
20106 ac_outfile=conftest.$ac_objext
20107 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20108 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20109 _lt_compiler_boilerplate=`cat conftest.err`
20110 $rm conftest*
20112 ac_outfile=conftest.$ac_objext
20113 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20114 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20115 _lt_linker_boilerplate=`cat conftest.err`
20116 $rm conftest*
20119 # Allow CC to be a program name with arguments.
20120 lt_save_CC="$CC"
20121 CC=${RC-"windres"}
20122 compiler=$CC
20123 compiler_RC=$CC
20124 for cc_temp in $compiler""; do
20125 case $cc_temp in
20126 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20127 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20128 \-*) ;;
20129 *) break;;
20130 esac
20131 done
20132 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20134 lt_cv_prog_compiler_c_o_RC=yes
20136 # The else clause should only fire when bootstrapping the
20137 # libtool distribution, otherwise you forgot to ship ltmain.sh
20138 # with your package, and you will get complaints that there are
20139 # no rules to generate ltmain.sh.
20140 if test -f "$ltmain"; then
20141 # See if we are running on zsh, and set the options which allow our commands through
20142 # without removal of \ escapes.
20143 if test -n "${ZSH_VERSION+set}" ; then
20144 setopt NO_GLOB_SUBST
20146 # Now quote all the things that may contain metacharacters while being
20147 # careful not to overquote the AC_SUBSTed values. We take copies of the
20148 # variables and quote the copies for generation of the libtool script.
20149 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20150 SED SHELL STRIP \
20151 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20152 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20153 deplibs_check_method reload_flag reload_cmds need_locks \
20154 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20155 lt_cv_sys_global_symbol_to_c_name_address \
20156 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20157 old_postinstall_cmds old_postuninstall_cmds \
20158 compiler_RC \
20159 CC_RC \
20160 LD_RC \
20161 lt_prog_compiler_wl_RC \
20162 lt_prog_compiler_pic_RC \
20163 lt_prog_compiler_static_RC \
20164 lt_prog_compiler_no_builtin_flag_RC \
20165 export_dynamic_flag_spec_RC \
20166 thread_safe_flag_spec_RC \
20167 whole_archive_flag_spec_RC \
20168 enable_shared_with_static_runtimes_RC \
20169 old_archive_cmds_RC \
20170 old_archive_from_new_cmds_RC \
20171 predep_objects_RC \
20172 postdep_objects_RC \
20173 predeps_RC \
20174 postdeps_RC \
20175 compiler_lib_search_path_RC \
20176 archive_cmds_RC \
20177 archive_expsym_cmds_RC \
20178 postinstall_cmds_RC \
20179 postuninstall_cmds_RC \
20180 old_archive_from_expsyms_cmds_RC \
20181 allow_undefined_flag_RC \
20182 no_undefined_flag_RC \
20183 export_symbols_cmds_RC \
20184 hardcode_libdir_flag_spec_RC \
20185 hardcode_libdir_flag_spec_ld_RC \
20186 hardcode_libdir_separator_RC \
20187 hardcode_automatic_RC \
20188 module_cmds_RC \
20189 module_expsym_cmds_RC \
20190 lt_cv_prog_compiler_c_o_RC \
20191 exclude_expsyms_RC \
20192 include_expsyms_RC; do
20194 case $var in
20195 old_archive_cmds_RC | \
20196 old_archive_from_new_cmds_RC | \
20197 archive_cmds_RC | \
20198 archive_expsym_cmds_RC | \
20199 module_cmds_RC | \
20200 module_expsym_cmds_RC | \
20201 old_archive_from_expsyms_cmds_RC | \
20202 export_symbols_cmds_RC | \
20203 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20204 postinstall_cmds | postuninstall_cmds | \
20205 old_postinstall_cmds | old_postuninstall_cmds | \
20206 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20207 # Double-quote double-evaled strings.
20208 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20211 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20213 esac
20214 done
20216 case $lt_echo in
20217 *'\$0 --fallback-echo"')
20218 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20220 esac
20222 cfgfile="$ofile"
20224 cat <<__EOF__ >> "$cfgfile"
20225 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20227 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20229 # Shell to use when invoking shell scripts.
20230 SHELL=$lt_SHELL
20232 # Whether or not to build shared libraries.
20233 build_libtool_libs=$enable_shared
20235 # Whether or not to build static libraries.
20236 build_old_libs=$enable_static
20238 # Whether or not to add -lc for building shared libraries.
20239 build_libtool_need_lc=$archive_cmds_need_lc_RC
20241 # Whether or not to disallow shared libs when runtime libs are static
20242 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20244 # Whether or not to optimize for fast installation.
20245 fast_install=$enable_fast_install
20247 # The host system.
20248 host_alias=$host_alias
20249 host=$host
20250 host_os=$host_os
20252 # The build system.
20253 build_alias=$build_alias
20254 build=$build
20255 build_os=$build_os
20257 # An echo program that does not interpret backslashes.
20258 echo=$lt_echo
20260 # The archiver.
20261 AR=$lt_AR
20262 AR_FLAGS=$lt_AR_FLAGS
20264 # A C compiler.
20265 LTCC=$lt_LTCC
20267 # LTCC compiler flags.
20268 LTCFLAGS=$lt_LTCFLAGS
20270 # A language-specific compiler.
20271 CC=$lt_compiler_RC
20273 # Is the compiler the GNU C compiler?
20274 with_gcc=$GCC_RC
20276 # An ERE matcher.
20277 EGREP=$lt_EGREP
20279 # The linker used to build libraries.
20280 LD=$lt_LD_RC
20282 # Whether we need hard or soft links.
20283 LN_S=$lt_LN_S
20285 # A BSD-compatible nm program.
20286 NM=$lt_NM
20288 # A symbol stripping program
20289 STRIP=$lt_STRIP
20291 # Used to examine libraries when file_magic_cmd begins "file"
20292 MAGIC_CMD=$MAGIC_CMD
20294 # Used on cygwin: DLL creation program.
20295 DLLTOOL="$DLLTOOL"
20297 # Used on cygwin: object dumper.
20298 OBJDUMP="$OBJDUMP"
20300 # Used on cygwin: assembler.
20301 AS="$AS"
20303 # The name of the directory that contains temporary libtool files.
20304 objdir=$objdir
20306 # How to create reloadable object files.
20307 reload_flag=$lt_reload_flag
20308 reload_cmds=$lt_reload_cmds
20310 # How to pass a linker flag through the compiler.
20311 wl=$lt_lt_prog_compiler_wl_RC
20313 # Object file suffix (normally "o").
20314 objext="$ac_objext"
20316 # Old archive suffix (normally "a").
20317 libext="$libext"
20319 # Shared library suffix (normally ".so").
20320 shrext_cmds='$shrext_cmds'
20322 # Executable file suffix (normally "").
20323 exeext="$exeext"
20325 # Additional compiler flags for building library objects.
20326 pic_flag=$lt_lt_prog_compiler_pic_RC
20327 pic_mode=$pic_mode
20329 # What is the maximum length of a command?
20330 max_cmd_len=$lt_cv_sys_max_cmd_len
20332 # Does compiler simultaneously support -c and -o options?
20333 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20335 # Must we lock files when doing compilation?
20336 need_locks=$lt_need_locks
20338 # Do we need the lib prefix for modules?
20339 need_lib_prefix=$need_lib_prefix
20341 # Do we need a version for libraries?
20342 need_version=$need_version
20344 # Whether dlopen is supported.
20345 dlopen_support=$enable_dlopen
20347 # Whether dlopen of programs is supported.
20348 dlopen_self=$enable_dlopen_self
20350 # Whether dlopen of statically linked programs is supported.
20351 dlopen_self_static=$enable_dlopen_self_static
20353 # Compiler flag to prevent dynamic linking.
20354 link_static_flag=$lt_lt_prog_compiler_static_RC
20356 # Compiler flag to turn off builtin functions.
20357 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20359 # Compiler flag to allow reflexive dlopens.
20360 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20362 # Compiler flag to generate shared objects directly from archives.
20363 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20365 # Compiler flag to generate thread-safe objects.
20366 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20368 # Library versioning type.
20369 version_type=$version_type
20371 # Format of library name prefix.
20372 libname_spec=$lt_libname_spec
20374 # List of archive names. First name is the real one, the rest are links.
20375 # The last name is the one that the linker finds with -lNAME.
20376 library_names_spec=$lt_library_names_spec
20378 # The coded name of the library, if different from the real name.
20379 soname_spec=$lt_soname_spec
20381 # Commands used to build and install an old-style archive.
20382 RANLIB=$lt_RANLIB
20383 old_archive_cmds=$lt_old_archive_cmds_RC
20384 old_postinstall_cmds=$lt_old_postinstall_cmds
20385 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20387 # Create an old-style archive from a shared archive.
20388 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20390 # Create a temporary old-style archive to link instead of a shared archive.
20391 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20393 # Commands used to build and install a shared archive.
20394 archive_cmds=$lt_archive_cmds_RC
20395 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20396 postinstall_cmds=$lt_postinstall_cmds
20397 postuninstall_cmds=$lt_postuninstall_cmds
20399 # Commands used to build a loadable module (assumed same as above if empty)
20400 module_cmds=$lt_module_cmds_RC
20401 module_expsym_cmds=$lt_module_expsym_cmds_RC
20403 # Commands to strip libraries.
20404 old_striplib=$lt_old_striplib
20405 striplib=$lt_striplib
20407 # Dependencies to place before the objects being linked to create a
20408 # shared library.
20409 predep_objects=$lt_predep_objects_RC
20411 # Dependencies to place after the objects being linked to create a
20412 # shared library.
20413 postdep_objects=$lt_postdep_objects_RC
20415 # Dependencies to place before the objects being linked to create a
20416 # shared library.
20417 predeps=$lt_predeps_RC
20419 # Dependencies to place after the objects being linked to create a
20420 # shared library.
20421 postdeps=$lt_postdeps_RC
20423 # The library search path used internally by the compiler when linking
20424 # a shared library.
20425 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20427 # Method to check whether dependent libraries are shared objects.
20428 deplibs_check_method=$lt_deplibs_check_method
20430 # Command to use when deplibs_check_method == file_magic.
20431 file_magic_cmd=$lt_file_magic_cmd
20433 # Flag that allows shared libraries with undefined symbols to be built.
20434 allow_undefined_flag=$lt_allow_undefined_flag_RC
20436 # Flag that forces no undefined symbols.
20437 no_undefined_flag=$lt_no_undefined_flag_RC
20439 # Commands used to finish a libtool library installation in a directory.
20440 finish_cmds=$lt_finish_cmds
20442 # Same as above, but a single script fragment to be evaled but not shown.
20443 finish_eval=$lt_finish_eval
20445 # Take the output of nm and produce a listing of raw symbols and C names.
20446 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20448 # Transform the output of nm in a proper C declaration
20449 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20451 # Transform the output of nm in a C name address pair
20452 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20454 # This is the shared library runtime path variable.
20455 runpath_var=$runpath_var
20457 # This is the shared library path variable.
20458 shlibpath_var=$shlibpath_var
20460 # Is shlibpath searched before the hard-coded library search path?
20461 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20463 # How to hardcode a shared library path into an executable.
20464 hardcode_action=$hardcode_action_RC
20466 # Whether we should hardcode library paths into libraries.
20467 hardcode_into_libs=$hardcode_into_libs
20469 # Flag to hardcode \$libdir into a binary during linking.
20470 # This must work even if \$libdir does not exist.
20471 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20473 # If ld is used when linking, flag to hardcode \$libdir into
20474 # a binary during linking. This must work even if \$libdir does
20475 # not exist.
20476 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20478 # Whether we need a single -rpath flag with a separated argument.
20479 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20481 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20482 # resulting binary.
20483 hardcode_direct=$hardcode_direct_RC
20485 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20486 # resulting binary.
20487 hardcode_minus_L=$hardcode_minus_L_RC
20489 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20490 # the resulting binary.
20491 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20493 # Set to yes if building a shared library automatically hardcodes DIR into the library
20494 # and all subsequent libraries and executables linked against it.
20495 hardcode_automatic=$hardcode_automatic_RC
20497 # Variables whose values should be saved in libtool wrapper scripts and
20498 # restored at relink time.
20499 variables_saved_for_relink="$variables_saved_for_relink"
20501 # Whether libtool must link a program against all its dependency libraries.
20502 link_all_deplibs=$link_all_deplibs_RC
20504 # Compile-time system search path for libraries
20505 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20507 # Run-time system search path for libraries
20508 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20510 # Fix the shell variable \$srcfile for the compiler.
20511 fix_srcfile_path="$fix_srcfile_path_RC"
20513 # Set to yes if exported symbols are required.
20514 always_export_symbols=$always_export_symbols_RC
20516 # The commands to list exported symbols.
20517 export_symbols_cmds=$lt_export_symbols_cmds_RC
20519 # The commands to extract the exported symbol list from a shared archive.
20520 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20522 # Symbols that should not be listed in the preloaded symbols.
20523 exclude_expsyms=$lt_exclude_expsyms_RC
20525 # Symbols that must always be exported.
20526 include_expsyms=$lt_include_expsyms_RC
20528 # ### END LIBTOOL TAG CONFIG: $tagname
20530 __EOF__
20533 else
20534 # If there is no Makefile yet, we rely on a make rule to execute
20535 # `config.status --recheck' to rerun these tests and create the
20536 # libtool script then.
20537 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20538 if test -f "$ltmain_in"; then
20539 test -f Makefile && make "$ltmain"
20544 ac_ext=c
20545 ac_cpp='$CPP $CPPFLAGS'
20546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20550 CC="$lt_save_CC"
20555 { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20556 $as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20557 { (exit 1); exit 1; }; }
20559 esac
20561 # Append the new tag name to the list of available tags.
20562 if test -n "$tagname" ; then
20563 available_tags="$available_tags $tagname"
20566 done
20567 IFS="$lt_save_ifs"
20569 # Now substitute the updated list of available tags.
20570 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20571 mv "${ofile}T" "$ofile"
20572 chmod +x "$ofile"
20573 else
20574 rm -f "${ofile}T"
20575 { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20576 $as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20577 { (exit 1); exit 1; }; }
20583 # This can be used to rebuild libtool when needed
20584 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20586 # Always use our own libtool.
20587 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20589 # Prevent multiple expansion
20611 # Check for library functions that SQLite can optionally use.
20617 for ac_func in fdatasync usleep fullfsync localtime_r gmtime_r
20619 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20620 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20621 $as_echo_n "checking for $ac_func... " >&6; }
20622 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20623 $as_echo_n "(cached) " >&6
20624 else
20625 cat >conftest.$ac_ext <<_ACEOF
20626 /* confdefs.h. */
20627 _ACEOF
20628 cat confdefs.h >>conftest.$ac_ext
20629 cat >>conftest.$ac_ext <<_ACEOF
20630 /* end confdefs.h. */
20631 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20632 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20633 #define $ac_func innocuous_$ac_func
20635 /* System header to define __stub macros and hopefully few prototypes,
20636 which can conflict with char $ac_func (); below.
20637 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20638 <limits.h> exists even on freestanding compilers. */
20640 #ifdef __STDC__
20641 # include <limits.h>
20642 #else
20643 # include <assert.h>
20644 #endif
20646 #undef $ac_func
20648 /* Override any GCC internal prototype to avoid an error.
20649 Use char because int might match the return type of a GCC
20650 builtin and then its argument prototype would still apply. */
20651 #ifdef __cplusplus
20652 extern "C"
20653 #endif
20654 char $ac_func ();
20655 /* The GNU C library defines this for functions which it implements
20656 to always fail with ENOSYS. Some functions are actually named
20657 something starting with __ and the normal name is an alias. */
20658 #if defined __stub_$ac_func || defined __stub___$ac_func
20659 choke me
20660 #endif
20663 main ()
20665 return $ac_func ();
20667 return 0;
20669 _ACEOF
20670 rm -f conftest.$ac_objext conftest$ac_exeext
20671 if { (ac_try="$ac_link"
20672 case "(($ac_try" in
20673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20674 *) ac_try_echo=$ac_try;;
20675 esac
20676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20677 $as_echo "$ac_try_echo") >&5
20678 (eval "$ac_link") 2>conftest.er1
20679 ac_status=$?
20680 grep -v '^ *+' conftest.er1 >conftest.err
20681 rm -f conftest.er1
20682 cat conftest.err >&5
20683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684 (exit $ac_status); } && {
20685 test -z "$ac_c_werror_flag" ||
20686 test ! -s conftest.err
20687 } && test -s conftest$ac_exeext && {
20688 test "$cross_compiling" = yes ||
20689 $as_test_x conftest$ac_exeext
20690 }; then
20691 eval "$as_ac_var=yes"
20692 else
20693 $as_echo "$as_me: failed program was:" >&5
20694 sed 's/^/| /' conftest.$ac_ext >&5
20696 eval "$as_ac_var=no"
20699 rm -rf conftest.dSYM
20700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20701 conftest$ac_exeext conftest.$ac_ext
20703 ac_res=`eval 'as_val=${'$as_ac_var'}
20704 $as_echo "$as_val"'`
20705 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20706 $as_echo "$ac_res" >&6; }
20707 if test `eval 'as_val=${'$as_ac_var'}
20708 $as_echo "$as_val"'` = yes; then
20709 cat >>confdefs.h <<_ACEOF
20710 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20711 _ACEOF
20714 done
20717 ac_config_files="$ac_config_files Makefile sqlite3.pc"
20721 #-----------------------------------------------------------------------
20722 # --enable-readline
20724 # Check whether --enable-readline was given.
20725 if test "${enable_readline+set}" = set; then
20726 enableval=$enable_readline;
20727 else
20728 enable_readline=yes
20731 if test x"$enable_readline" != xno ; then
20732 sLIBS=$LIBS
20733 LIBS=""
20734 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
20735 $as_echo_n "checking for library containing tgetent... " >&6; }
20736 if test "${ac_cv_search_tgetent+set}" = set; then
20737 $as_echo_n "(cached) " >&6
20738 else
20739 ac_func_search_save_LIBS=$LIBS
20740 cat >conftest.$ac_ext <<_ACEOF
20741 /* confdefs.h. */
20742 _ACEOF
20743 cat confdefs.h >>conftest.$ac_ext
20744 cat >>conftest.$ac_ext <<_ACEOF
20745 /* end confdefs.h. */
20747 /* Override any GCC internal prototype to avoid an error.
20748 Use char because int might match the return type of a GCC
20749 builtin and then its argument prototype would still apply. */
20750 #ifdef __cplusplus
20751 extern "C"
20752 #endif
20753 char tgetent ();
20755 main ()
20757 return tgetent ();
20759 return 0;
20761 _ACEOF
20762 for ac_lib in '' curses ncurses ncursesw; do
20763 if test -z "$ac_lib"; then
20764 ac_res="none required"
20765 else
20766 ac_res=-l$ac_lib
20767 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20769 rm -f conftest.$ac_objext conftest$ac_exeext
20770 if { (ac_try="$ac_link"
20771 case "(($ac_try" in
20772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20773 *) ac_try_echo=$ac_try;;
20774 esac
20775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20776 $as_echo "$ac_try_echo") >&5
20777 (eval "$ac_link") 2>conftest.er1
20778 ac_status=$?
20779 grep -v '^ *+' conftest.er1 >conftest.err
20780 rm -f conftest.er1
20781 cat conftest.err >&5
20782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20783 (exit $ac_status); } && {
20784 test -z "$ac_c_werror_flag" ||
20785 test ! -s conftest.err
20786 } && test -s conftest$ac_exeext && {
20787 test "$cross_compiling" = yes ||
20788 $as_test_x conftest$ac_exeext
20789 }; then
20790 ac_cv_search_tgetent=$ac_res
20791 else
20792 $as_echo "$as_me: failed program was:" >&5
20793 sed 's/^/| /' conftest.$ac_ext >&5
20798 rm -rf conftest.dSYM
20799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20800 conftest$ac_exeext
20801 if test "${ac_cv_search_tgetent+set}" = set; then
20802 break
20804 done
20805 if test "${ac_cv_search_tgetent+set}" = set; then
20807 else
20808 ac_cv_search_tgetent=no
20810 rm conftest.$ac_ext
20811 LIBS=$ac_func_search_save_LIBS
20813 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
20814 $as_echo "$ac_cv_search_tgetent" >&6; }
20815 ac_res=$ac_cv_search_tgetent
20816 if test "$ac_res" != no; then
20817 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20821 { $as_echo "$as_me:$LINENO: checking for library containing readline" >&5
20822 $as_echo_n "checking for library containing readline... " >&6; }
20823 if test "${ac_cv_search_readline+set}" = set; then
20824 $as_echo_n "(cached) " >&6
20825 else
20826 ac_func_search_save_LIBS=$LIBS
20827 cat >conftest.$ac_ext <<_ACEOF
20828 /* confdefs.h. */
20829 _ACEOF
20830 cat confdefs.h >>conftest.$ac_ext
20831 cat >>conftest.$ac_ext <<_ACEOF
20832 /* end confdefs.h. */
20834 /* Override any GCC internal prototype to avoid an error.
20835 Use char because int might match the return type of a GCC
20836 builtin and then its argument prototype would still apply. */
20837 #ifdef __cplusplus
20838 extern "C"
20839 #endif
20840 char readline ();
20842 main ()
20844 return readline ();
20846 return 0;
20848 _ACEOF
20849 for ac_lib in '' readline; do
20850 if test -z "$ac_lib"; then
20851 ac_res="none required"
20852 else
20853 ac_res=-l$ac_lib
20854 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20856 rm -f conftest.$ac_objext conftest$ac_exeext
20857 if { (ac_try="$ac_link"
20858 case "(($ac_try" in
20859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20860 *) ac_try_echo=$ac_try;;
20861 esac
20862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20863 $as_echo "$ac_try_echo") >&5
20864 (eval "$ac_link") 2>conftest.er1
20865 ac_status=$?
20866 grep -v '^ *+' conftest.er1 >conftest.err
20867 rm -f conftest.er1
20868 cat conftest.err >&5
20869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20870 (exit $ac_status); } && {
20871 test -z "$ac_c_werror_flag" ||
20872 test ! -s conftest.err
20873 } && test -s conftest$ac_exeext && {
20874 test "$cross_compiling" = yes ||
20875 $as_test_x conftest$ac_exeext
20876 }; then
20877 ac_cv_search_readline=$ac_res
20878 else
20879 $as_echo "$as_me: failed program was:" >&5
20880 sed 's/^/| /' conftest.$ac_ext >&5
20885 rm -rf conftest.dSYM
20886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20887 conftest$ac_exeext
20888 if test "${ac_cv_search_readline+set}" = set; then
20889 break
20891 done
20892 if test "${ac_cv_search_readline+set}" = set; then
20894 else
20895 ac_cv_search_readline=no
20897 rm conftest.$ac_ext
20898 LIBS=$ac_func_search_save_LIBS
20900 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_readline" >&5
20901 $as_echo "$ac_cv_search_readline" >&6; }
20902 ac_res=$ac_cv_search_readline
20903 if test "$ac_res" != no; then
20904 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20906 else
20907 enable_readline=no
20911 for ac_func in readline
20913 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20914 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20915 $as_echo_n "checking for $ac_func... " >&6; }
20916 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20917 $as_echo_n "(cached) " >&6
20918 else
20919 cat >conftest.$ac_ext <<_ACEOF
20920 /* confdefs.h. */
20921 _ACEOF
20922 cat confdefs.h >>conftest.$ac_ext
20923 cat >>conftest.$ac_ext <<_ACEOF
20924 /* end confdefs.h. */
20925 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20926 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20927 #define $ac_func innocuous_$ac_func
20929 /* System header to define __stub macros and hopefully few prototypes,
20930 which can conflict with char $ac_func (); below.
20931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20932 <limits.h> exists even on freestanding compilers. */
20934 #ifdef __STDC__
20935 # include <limits.h>
20936 #else
20937 # include <assert.h>
20938 #endif
20940 #undef $ac_func
20942 /* Override any GCC internal prototype to avoid an error.
20943 Use char because int might match the return type of a GCC
20944 builtin and then its argument prototype would still apply. */
20945 #ifdef __cplusplus
20946 extern "C"
20947 #endif
20948 char $ac_func ();
20949 /* The GNU C library defines this for functions which it implements
20950 to always fail with ENOSYS. Some functions are actually named
20951 something starting with __ and the normal name is an alias. */
20952 #if defined __stub_$ac_func || defined __stub___$ac_func
20953 choke me
20954 #endif
20957 main ()
20959 return $ac_func ();
20961 return 0;
20963 _ACEOF
20964 rm -f conftest.$ac_objext conftest$ac_exeext
20965 if { (ac_try="$ac_link"
20966 case "(($ac_try" in
20967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20968 *) ac_try_echo=$ac_try;;
20969 esac
20970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20971 $as_echo "$ac_try_echo") >&5
20972 (eval "$ac_link") 2>conftest.er1
20973 ac_status=$?
20974 grep -v '^ *+' conftest.er1 >conftest.err
20975 rm -f conftest.er1
20976 cat conftest.err >&5
20977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20978 (exit $ac_status); } && {
20979 test -z "$ac_c_werror_flag" ||
20980 test ! -s conftest.err
20981 } && test -s conftest$ac_exeext && {
20982 test "$cross_compiling" = yes ||
20983 $as_test_x conftest$ac_exeext
20984 }; then
20985 eval "$as_ac_var=yes"
20986 else
20987 $as_echo "$as_me: failed program was:" >&5
20988 sed 's/^/| /' conftest.$ac_ext >&5
20990 eval "$as_ac_var=no"
20993 rm -rf conftest.dSYM
20994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20995 conftest$ac_exeext conftest.$ac_ext
20997 ac_res=`eval 'as_val=${'$as_ac_var'}
20998 $as_echo "$as_val"'`
20999 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21000 $as_echo "$ac_res" >&6; }
21001 if test `eval 'as_val=${'$as_ac_var'}
21002 $as_echo "$as_val"'` = yes; then
21003 cat >>confdefs.h <<_ACEOF
21004 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21005 _ACEOF
21008 done
21010 READLINE_LIBS=$LIBS
21011 LIBS=$sLIBS
21014 #-----------------------------------------------------------------------
21016 #-----------------------------------------------------------------------
21017 # --enable-threadsafe
21019 # Check whether --enable-threadsafe was given.
21020 if test "${enable_threadsafe+set}" = set; then
21021 enableval=$enable_threadsafe;
21022 else
21023 enable_threadsafe=yes
21026 THREADSAFE_FLAGS=-DSQLITE_THREADSAFE=0
21027 if test x"$enable_threadsafe" != "xno"; then
21028 THREADSAFE_FLAGS=-DSQLITE_THREADSAFE=1
21029 { $as_echo "$as_me:$LINENO: checking for library containing pthread_create" >&5
21030 $as_echo_n "checking for library containing pthread_create... " >&6; }
21031 if test "${ac_cv_search_pthread_create+set}" = set; then
21032 $as_echo_n "(cached) " >&6
21033 else
21034 ac_func_search_save_LIBS=$LIBS
21035 cat >conftest.$ac_ext <<_ACEOF
21036 /* confdefs.h. */
21037 _ACEOF
21038 cat confdefs.h >>conftest.$ac_ext
21039 cat >>conftest.$ac_ext <<_ACEOF
21040 /* end confdefs.h. */
21042 /* Override any GCC internal prototype to avoid an error.
21043 Use char because int might match the return type of a GCC
21044 builtin and then its argument prototype would still apply. */
21045 #ifdef __cplusplus
21046 extern "C"
21047 #endif
21048 char pthread_create ();
21050 main ()
21052 return pthread_create ();
21054 return 0;
21056 _ACEOF
21057 for ac_lib in '' pthread; do
21058 if test -z "$ac_lib"; then
21059 ac_res="none required"
21060 else
21061 ac_res=-l$ac_lib
21062 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21064 rm -f conftest.$ac_objext conftest$ac_exeext
21065 if { (ac_try="$ac_link"
21066 case "(($ac_try" in
21067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21068 *) ac_try_echo=$ac_try;;
21069 esac
21070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21071 $as_echo "$ac_try_echo") >&5
21072 (eval "$ac_link") 2>conftest.er1
21073 ac_status=$?
21074 grep -v '^ *+' conftest.er1 >conftest.err
21075 rm -f conftest.er1
21076 cat conftest.err >&5
21077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21078 (exit $ac_status); } && {
21079 test -z "$ac_c_werror_flag" ||
21080 test ! -s conftest.err
21081 } && test -s conftest$ac_exeext && {
21082 test "$cross_compiling" = yes ||
21083 $as_test_x conftest$ac_exeext
21084 }; then
21085 ac_cv_search_pthread_create=$ac_res
21086 else
21087 $as_echo "$as_me: failed program was:" >&5
21088 sed 's/^/| /' conftest.$ac_ext >&5
21093 rm -rf conftest.dSYM
21094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21095 conftest$ac_exeext
21096 if test "${ac_cv_search_pthread_create+set}" = set; then
21097 break
21099 done
21100 if test "${ac_cv_search_pthread_create+set}" = set; then
21102 else
21103 ac_cv_search_pthread_create=no
21105 rm conftest.$ac_ext
21106 LIBS=$ac_func_search_save_LIBS
21108 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_create" >&5
21109 $as_echo "$ac_cv_search_pthread_create" >&6; }
21110 ac_res=$ac_cv_search_pthread_create
21111 if test "$ac_res" != no; then
21112 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21118 #-----------------------------------------------------------------------
21120 #-----------------------------------------------------------------------
21121 # --enable-dynamic-extensions
21123 # Check whether --enable-dynamic-extensions was given.
21124 if test "${enable_dynamic_extensions+set}" = set; then
21125 enableval=$enable_dynamic_extensions;
21126 else
21127 enable_dynamic_extensions=yes
21130 if test x"$enable_dynamic_extensions" != "xno"; then
21131 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
21132 $as_echo_n "checking for library containing dlopen... " >&6; }
21133 if test "${ac_cv_search_dlopen+set}" = set; then
21134 $as_echo_n "(cached) " >&6
21135 else
21136 ac_func_search_save_LIBS=$LIBS
21137 cat >conftest.$ac_ext <<_ACEOF
21138 /* confdefs.h. */
21139 _ACEOF
21140 cat confdefs.h >>conftest.$ac_ext
21141 cat >>conftest.$ac_ext <<_ACEOF
21142 /* end confdefs.h. */
21144 /* Override any GCC internal prototype to avoid an error.
21145 Use char because int might match the return type of a GCC
21146 builtin and then its argument prototype would still apply. */
21147 #ifdef __cplusplus
21148 extern "C"
21149 #endif
21150 char dlopen ();
21152 main ()
21154 return dlopen ();
21156 return 0;
21158 _ACEOF
21159 for ac_lib in '' dl; do
21160 if test -z "$ac_lib"; then
21161 ac_res="none required"
21162 else
21163 ac_res=-l$ac_lib
21164 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21166 rm -f conftest.$ac_objext conftest$ac_exeext
21167 if { (ac_try="$ac_link"
21168 case "(($ac_try" in
21169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21170 *) ac_try_echo=$ac_try;;
21171 esac
21172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21173 $as_echo "$ac_try_echo") >&5
21174 (eval "$ac_link") 2>conftest.er1
21175 ac_status=$?
21176 grep -v '^ *+' conftest.er1 >conftest.err
21177 rm -f conftest.er1
21178 cat conftest.err >&5
21179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21180 (exit $ac_status); } && {
21181 test -z "$ac_c_werror_flag" ||
21182 test ! -s conftest.err
21183 } && test -s conftest$ac_exeext && {
21184 test "$cross_compiling" = yes ||
21185 $as_test_x conftest$ac_exeext
21186 }; then
21187 ac_cv_search_dlopen=$ac_res
21188 else
21189 $as_echo "$as_me: failed program was:" >&5
21190 sed 's/^/| /' conftest.$ac_ext >&5
21195 rm -rf conftest.dSYM
21196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21197 conftest$ac_exeext
21198 if test "${ac_cv_search_dlopen+set}" = set; then
21199 break
21201 done
21202 if test "${ac_cv_search_dlopen+set}" = set; then
21204 else
21205 ac_cv_search_dlopen=no
21207 rm conftest.$ac_ext
21208 LIBS=$ac_func_search_save_LIBS
21210 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
21211 $as_echo "$ac_cv_search_dlopen" >&6; }
21212 ac_res=$ac_cv_search_dlopen
21213 if test "$ac_res" != no; then
21214 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21218 else
21219 DYNAMIC_EXTENSION_FLAGS=-DSQLITE_OMIT_LOAD_EXTENSION=1
21221 { $as_echo "$as_me:$LINENO: checking for whether to support dynamic extensions" >&5
21222 $as_echo_n "checking for whether to support dynamic extensions... " >&6; }
21223 { $as_echo "$as_me:$LINENO: result: $enable_dynamic_extensions" >&5
21224 $as_echo "$enable_dynamic_extensions" >&6; }
21226 #-----------------------------------------------------------------------
21228 #-----------------------------------------------------------------------
21229 # UPDATE: Maybe it's better if users just set CFLAGS before invoking
21230 # configure. This option doesn't really add much...
21232 # --enable-tempstore
21234 # AC_ARG_ENABLE(tempstore, [AS_HELP_STRING(
21235 # [--enable-tempstore],
21236 # [in-memory temporary tables (never, no, yes, always) [default=no]])],
21237 # [], [enable_tempstore=no])
21238 # AC_MSG_CHECKING([for whether or not to store temp tables in-memory])
21239 # case "$enable_tempstore" in
21240 # never ) TEMP_STORE=0 ;;
21241 # no ) TEMP_STORE=1 ;;
21242 # always ) TEMP_STORE=3 ;;
21243 # yes ) TEMP_STORE=3 ;;
21244 # * )
21245 # TEMP_STORE=1
21246 # enable_tempstore=yes
21247 # ;;
21248 # esac
21249 # AC_MSG_RESULT($enable_tempstore)
21250 # AC_SUBST(TEMP_STORE)
21251 #-----------------------------------------------------------------------
21253 cat >confcache <<\_ACEOF
21254 # This file is a shell script that caches the results of configure
21255 # tests run on this system so they can be shared between configure
21256 # scripts and configure runs, see configure's option --config-cache.
21257 # It is not useful on other systems. If it contains results you don't
21258 # want to keep, you may remove or edit it.
21260 # config.status only pays attention to the cache file if you give it
21261 # the --recheck option to rerun configure.
21263 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21264 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21265 # following values.
21267 _ACEOF
21269 # The following way of writing the cache mishandles newlines in values,
21270 # but we know of no workaround that is simple, portable, and efficient.
21271 # So, we kill variables containing newlines.
21272 # Ultrix sh set writes to stderr and can't be redirected directly,
21273 # and sets the high bit in the cache file unless we assign to the vars.
21275 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21276 eval ac_val=\$$ac_var
21277 case $ac_val in #(
21278 *${as_nl}*)
21279 case $ac_var in #(
21280 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21281 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21282 esac
21283 case $ac_var in #(
21284 _ | IFS | as_nl) ;; #(
21285 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21286 *) $as_unset $ac_var ;;
21287 esac ;;
21288 esac
21289 done
21291 (set) 2>&1 |
21292 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21293 *${as_nl}ac_space=\ *)
21294 # `set' does not quote correctly, so add quotes (double-quote
21295 # substitution turns \\\\ into \\, and sed turns \\ into \).
21296 sed -n \
21297 "s/'/'\\\\''/g;
21298 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21299 ;; #(
21301 # `set' quotes correctly as required by POSIX, so do not add quotes.
21302 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21304 esac |
21305 sort
21307 sed '
21308 /^ac_cv_env_/b end
21309 t clear
21310 :clear
21311 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21312 t end
21313 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21314 :end' >>confcache
21315 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21316 if test -w "$cache_file"; then
21317 test "x$cache_file" != "x/dev/null" &&
21318 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
21319 $as_echo "$as_me: updating cache $cache_file" >&6;}
21320 cat confcache >$cache_file
21321 else
21322 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21323 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21326 rm -f confcache
21328 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21329 # Let make expand exec_prefix.
21330 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21332 # Transform confdefs.h into DEFS.
21333 # Protect against shell expansion while executing Makefile rules.
21334 # Protect against Makefile macro expansion.
21336 # If the first sed substitution is executed (which looks for macros that
21337 # take arguments), then branch to the quote section. Otherwise,
21338 # look for a macro that doesn't take arguments.
21339 ac_script='
21340 :mline
21341 /\\$/{
21343 s,\\\n,,
21344 b mline
21346 t clear
21347 :clear
21348 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
21349 t quote
21350 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
21351 t quote
21352 b any
21353 :quote
21354 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21355 s/\[/\\&/g
21356 s/\]/\\&/g
21357 s/\$/$$/g
21359 :any
21362 s/^\n//
21363 s/\n/ /g
21367 DEFS=`sed -n "$ac_script" confdefs.h`
21370 ac_libobjs=
21371 ac_ltlibobjs=
21372 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21373 # 1. Remove the extension, and $U if already installed.
21374 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21375 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21376 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21377 # will be set to the directory where LIBOBJS objects are built.
21378 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21379 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21380 done
21381 LIBOBJS=$ac_libobjs
21383 LTLIBOBJS=$ac_ltlibobjs
21386 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21387 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21388 Usually this means the macro was only invoked conditionally." >&5
21389 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
21390 Usually this means the macro was only invoked conditionally." >&2;}
21391 { (exit 1); exit 1; }; }
21393 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21394 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21395 Usually this means the macro was only invoked conditionally." >&5
21396 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21397 Usually this means the macro was only invoked conditionally." >&2;}
21398 { (exit 1); exit 1; }; }
21400 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21401 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21402 Usually this means the macro was only invoked conditionally." >&5
21403 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21404 Usually this means the macro was only invoked conditionally." >&2;}
21405 { (exit 1); exit 1; }; }
21407 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21408 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21409 Usually this means the macro was only invoked conditionally." >&5
21410 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21411 Usually this means the macro was only invoked conditionally." >&2;}
21412 { (exit 1); exit 1; }; }
21415 : ${CONFIG_STATUS=./config.status}
21416 ac_write_fail=0
21417 ac_clean_files_save=$ac_clean_files
21418 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21419 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21420 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21421 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21422 #! $SHELL
21423 # Generated by $as_me.
21424 # Run this file to recreate the current configuration.
21425 # Compiler output produced by configure, useful for debugging
21426 # configure, is in config.log if it exists.
21428 debug=false
21429 ac_cs_recheck=false
21430 ac_cs_silent=false
21431 SHELL=\${CONFIG_SHELL-$SHELL}
21432 _ACEOF
21434 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21435 ## --------------------- ##
21436 ## M4sh Initialization. ##
21437 ## --------------------- ##
21439 # Be more Bourne compatible
21440 DUALCASE=1; export DUALCASE # for MKS sh
21441 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21442 emulate sh
21443 NULLCMD=:
21444 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21445 # is contrary to our usage. Disable this feature.
21446 alias -g '${1+"$@"}'='"$@"'
21447 setopt NO_GLOB_SUBST
21448 else
21449 case `(set -o) 2>/dev/null` in
21450 *posix*) set -o posix ;;
21451 esac
21458 # PATH needs CR
21459 # Avoid depending upon Character Ranges.
21460 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21461 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21462 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21463 as_cr_digits='0123456789'
21464 as_cr_alnum=$as_cr_Letters$as_cr_digits
21466 as_nl='
21468 export as_nl
21469 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21470 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21471 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21472 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21473 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21474 as_echo='printf %s\n'
21475 as_echo_n='printf %s'
21476 else
21477 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21478 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21479 as_echo_n='/usr/ucb/echo -n'
21480 else
21481 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21482 as_echo_n_body='eval
21483 arg=$1;
21484 case $arg in
21485 *"$as_nl"*)
21486 expr "X$arg" : "X\\(.*\\)$as_nl";
21487 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21488 esac;
21489 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21491 export as_echo_n_body
21492 as_echo_n='sh -c $as_echo_n_body as_echo'
21494 export as_echo_body
21495 as_echo='sh -c $as_echo_body as_echo'
21498 # The user is always right.
21499 if test "${PATH_SEPARATOR+set}" != set; then
21500 PATH_SEPARATOR=:
21501 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21502 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21503 PATH_SEPARATOR=';'
21507 # Support unset when possible.
21508 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21509 as_unset=unset
21510 else
21511 as_unset=false
21515 # IFS
21516 # We need space, tab and new line, in precisely that order. Quoting is
21517 # there to prevent editors from complaining about space-tab.
21518 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21519 # splitting by setting IFS to empty value.)
21520 IFS=" "" $as_nl"
21522 # Find who we are. Look in the path if we contain no directory separator.
21523 case $0 in
21524 *[\\/]* ) as_myself=$0 ;;
21525 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21526 for as_dir in $PATH
21528 IFS=$as_save_IFS
21529 test -z "$as_dir" && as_dir=.
21530 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21531 done
21532 IFS=$as_save_IFS
21535 esac
21536 # We did not find ourselves, most probably we were run as `sh COMMAND'
21537 # in which case we are not to be found in the path.
21538 if test "x$as_myself" = x; then
21539 as_myself=$0
21541 if test ! -f "$as_myself"; then
21542 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21543 { (exit 1); exit 1; }
21546 # Work around bugs in pre-3.0 UWIN ksh.
21547 for as_var in ENV MAIL MAILPATH
21548 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21549 done
21550 PS1='$ '
21551 PS2='> '
21552 PS4='+ '
21554 # NLS nuisances.
21555 LC_ALL=C
21556 export LC_ALL
21557 LANGUAGE=C
21558 export LANGUAGE
21560 # Required to use basename.
21561 if expr a : '\(a\)' >/dev/null 2>&1 &&
21562 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21563 as_expr=expr
21564 else
21565 as_expr=false
21568 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21569 as_basename=basename
21570 else
21571 as_basename=false
21575 # Name of the executable.
21576 as_me=`$as_basename -- "$0" ||
21577 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21578 X"$0" : 'X\(//\)$' \| \
21579 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21580 $as_echo X/"$0" |
21581 sed '/^.*\/\([^/][^/]*\)\/*$/{
21582 s//\1/
21585 /^X\/\(\/\/\)$/{
21586 s//\1/
21589 /^X\/\(\/\).*/{
21590 s//\1/
21593 s/.*/./; q'`
21595 # CDPATH.
21596 $as_unset CDPATH
21600 as_lineno_1=$LINENO
21601 as_lineno_2=$LINENO
21602 test "x$as_lineno_1" != "x$as_lineno_2" &&
21603 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21605 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21606 # uniformly replaced by the line number. The first 'sed' inserts a
21607 # line-number line after each line using $LINENO; the second 'sed'
21608 # does the real work. The second script uses 'N' to pair each
21609 # line-number line with the line containing $LINENO, and appends
21610 # trailing '-' during substitution so that $LINENO is not a special
21611 # case at line end.
21612 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21613 # scripts with optimization help from Paolo Bonzini. Blame Lee
21614 # E. McMahon (1931-1989) for sed's syntax. :-)
21615 sed -n '
21617 /[$]LINENO/=
21618 ' <$as_myself |
21619 sed '
21620 s/[$]LINENO.*/&-/
21621 t lineno
21623 :lineno
21625 :loop
21626 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21627 t loop
21628 s/-\n.*//
21629 ' >$as_me.lineno &&
21630 chmod +x "$as_me.lineno" ||
21631 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21632 { (exit 1); exit 1; }; }
21634 # Don't try to exec as it changes $[0], causing all sort of problems
21635 # (the dirname of $[0] is not the place where we might find the
21636 # original and so on. Autoconf is especially sensitive to this).
21637 . "./$as_me.lineno"
21638 # Exit status is that of the last command.
21639 exit
21643 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21644 as_dirname=dirname
21645 else
21646 as_dirname=false
21649 ECHO_C= ECHO_N= ECHO_T=
21650 case `echo -n x` in
21651 -n*)
21652 case `echo 'x\c'` in
21653 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21654 *) ECHO_C='\c';;
21655 esac;;
21657 ECHO_N='-n';;
21658 esac
21659 if expr a : '\(a\)' >/dev/null 2>&1 &&
21660 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21661 as_expr=expr
21662 else
21663 as_expr=false
21666 rm -f conf$$ conf$$.exe conf$$.file
21667 if test -d conf$$.dir; then
21668 rm -f conf$$.dir/conf$$.file
21669 else
21670 rm -f conf$$.dir
21671 mkdir conf$$.dir 2>/dev/null
21673 if (echo >conf$$.file) 2>/dev/null; then
21674 if ln -s conf$$.file conf$$ 2>/dev/null; then
21675 as_ln_s='ln -s'
21676 # ... but there are two gotchas:
21677 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21678 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21679 # In both cases, we have to default to `cp -p'.
21680 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21681 as_ln_s='cp -p'
21682 elif ln conf$$.file conf$$ 2>/dev/null; then
21683 as_ln_s=ln
21684 else
21685 as_ln_s='cp -p'
21687 else
21688 as_ln_s='cp -p'
21690 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21691 rmdir conf$$.dir 2>/dev/null
21693 if mkdir -p . 2>/dev/null; then
21694 as_mkdir_p=:
21695 else
21696 test -d ./-p && rmdir ./-p
21697 as_mkdir_p=false
21700 if test -x / >/dev/null 2>&1; then
21701 as_test_x='test -x'
21702 else
21703 if ls -dL / >/dev/null 2>&1; then
21704 as_ls_L_option=L
21705 else
21706 as_ls_L_option=
21708 as_test_x='
21709 eval sh -c '\''
21710 if test -d "$1"; then
21711 test -d "$1/.";
21712 else
21713 case $1 in
21714 -*)set "./$1";;
21715 esac;
21716 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21717 ???[sx]*):;;*)false;;esac;fi
21718 '\'' sh
21721 as_executable_p=$as_test_x
21723 # Sed expression to map a string onto a valid CPP name.
21724 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21726 # Sed expression to map a string onto a valid variable name.
21727 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21730 exec 6>&1
21732 # Save the log message, to keep $[0] and so on meaningful, and to
21733 # report actual input values of CONFIG_FILES etc. instead of their
21734 # values after options handling.
21735 ac_log="
21736 This file was extended by sqlite $as_me 3.7.5, which was
21737 generated by GNU Autoconf 2.62. Invocation command line was
21739 CONFIG_FILES = $CONFIG_FILES
21740 CONFIG_HEADERS = $CONFIG_HEADERS
21741 CONFIG_LINKS = $CONFIG_LINKS
21742 CONFIG_COMMANDS = $CONFIG_COMMANDS
21743 $ $0 $@
21745 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21748 _ACEOF
21750 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21751 # Files that config.status was made for.
21752 config_files="$ac_config_files"
21753 config_commands="$ac_config_commands"
21755 _ACEOF
21757 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21758 ac_cs_usage="\
21759 \`$as_me' instantiates files from templates according to the
21760 current configuration.
21762 Usage: $0 [OPTIONS] [FILE]...
21764 -h, --help print this help, then exit
21765 -V, --version print version number and configuration settings, then exit
21766 -q, --quiet do not print progress messages
21767 -d, --debug don't remove temporary files
21768 --recheck update $as_me by reconfiguring in the same conditions
21769 --file=FILE[:TEMPLATE]
21770 instantiate the configuration file FILE
21772 Configuration files:
21773 $config_files
21775 Configuration commands:
21776 $config_commands
21778 Report bugs to <bug-autoconf@gnu.org>."
21780 _ACEOF
21781 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21782 ac_cs_version="\\
21783 sqlite config.status 3.7.5
21784 configured by $0, generated by GNU Autoconf 2.62,
21785 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21787 Copyright (C) 2008 Free Software Foundation, Inc.
21788 This config.status script is free software; the Free Software Foundation
21789 gives unlimited permission to copy, distribute and modify it."
21791 ac_pwd='$ac_pwd'
21792 srcdir='$srcdir'
21793 INSTALL='$INSTALL'
21794 AWK='$AWK'
21795 test -n "\$AWK" || AWK=awk
21796 _ACEOF
21798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21799 # The default lists apply if the user does not specify any file.
21800 ac_need_defaults=:
21801 while test $# != 0
21803 case $1 in
21804 --*=*)
21805 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21806 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21807 ac_shift=:
21810 ac_option=$1
21811 ac_optarg=$2
21812 ac_shift=shift
21814 esac
21816 case $ac_option in
21817 # Handling of the options.
21818 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21819 ac_cs_recheck=: ;;
21820 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21821 $as_echo "$ac_cs_version"; exit ;;
21822 --debug | --debu | --deb | --de | --d | -d )
21823 debug=: ;;
21824 --file | --fil | --fi | --f )
21825 $ac_shift
21826 case $ac_optarg in
21827 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21828 esac
21829 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
21830 ac_need_defaults=false;;
21831 --he | --h | --help | --hel | -h )
21832 $as_echo "$ac_cs_usage"; exit ;;
21833 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21834 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21835 ac_cs_silent=: ;;
21837 # This is an error.
21838 -*) { $as_echo "$as_me: error: unrecognized option: $1
21839 Try \`$0 --help' for more information." >&2
21840 { (exit 1); exit 1; }; } ;;
21842 *) ac_config_targets="$ac_config_targets $1"
21843 ac_need_defaults=false ;;
21845 esac
21846 shift
21847 done
21849 ac_configure_extra_args=
21851 if $ac_cs_silent; then
21852 exec 6>/dev/null
21853 ac_configure_extra_args="$ac_configure_extra_args --silent"
21856 _ACEOF
21857 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21858 if \$ac_cs_recheck; then
21859 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21860 shift
21861 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21862 CONFIG_SHELL='$SHELL'
21863 export CONFIG_SHELL
21864 exec "\$@"
21867 _ACEOF
21868 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21869 exec 5>>config.log
21871 echo
21872 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21873 ## Running $as_me. ##
21874 _ASBOX
21875 $as_echo "$ac_log"
21876 } >&5
21878 _ACEOF
21879 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21881 # INIT-COMMANDS
21883 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21885 _ACEOF
21887 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21889 # Handling of arguments.
21890 for ac_config_target in $ac_config_targets
21892 case $ac_config_target in
21893 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21894 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21895 "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
21897 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21898 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21899 { (exit 1); exit 1; }; };;
21900 esac
21901 done
21904 # If the user did not use the arguments to specify the items to instantiate,
21905 # then the envvar interface is used. Set only those that are not.
21906 # We use the long form for the default assignment because of an extremely
21907 # bizarre bug on SunOS 4.1.3.
21908 if $ac_need_defaults; then
21909 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21910 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21913 # Have a temporary directory for convenience. Make it in the build tree
21914 # simply because there is no reason against having it here, and in addition,
21915 # creating and moving files from /tmp can sometimes cause problems.
21916 # Hook for its removal unless debugging.
21917 # Note that there is a small window in which the directory will not be cleaned:
21918 # after its creation but before its name has been assigned to `$tmp'.
21919 $debug ||
21921 tmp=
21922 trap 'exit_status=$?
21923 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21925 trap '{ (exit 1); exit 1; }' 1 2 13 15
21927 # Create a (secure) tmp directory for tmp files.
21930 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21931 test -n "$tmp" && test -d "$tmp"
21932 } ||
21934 tmp=./conf$$-$RANDOM
21935 (umask 077 && mkdir "$tmp")
21936 } ||
21938 $as_echo "$as_me: cannot create a temporary directory in ." >&2
21939 { (exit 1); exit 1; }
21942 # Set up the scripts for CONFIG_FILES section.
21943 # No need to generate them if there are no CONFIG_FILES.
21944 # This happens for instance with `./config.status config.h'.
21945 if test -n "$CONFIG_FILES"; then
21948 ac_cr=' '
21949 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21950 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21951 ac_cs_awk_cr='\\r'
21952 else
21953 ac_cs_awk_cr=$ac_cr
21956 echo 'BEGIN {' >"$tmp/subs1.awk" &&
21957 _ACEOF
21961 echo "cat >conf$$subs.awk <<_ACEOF" &&
21962 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21963 echo "_ACEOF"
21964 } >conf$$subs.sh ||
21965 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21966 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21967 { (exit 1); exit 1; }; }
21968 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
21969 ac_delim='%!_!# '
21970 for ac_last_try in false false false false false :; do
21971 . ./conf$$subs.sh ||
21972 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21973 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21974 { (exit 1); exit 1; }; }
21976 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
21977 break
21978 elif $ac_last_try; then
21979 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21980 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21981 { (exit 1); exit 1; }; }
21982 else
21983 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21985 done
21986 rm -f conf$$subs.sh
21988 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21989 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
21990 _ACEOF
21991 sed -n '
21993 s/^/S["/; s/!.*/"]=/
21996 s/^[^!]*!//
21997 :repl
21998 t repl
21999 s/'"$ac_delim"'$//
22000 t delim
22003 s/\(.\{148\}\).*/\1/
22004 t more1
22005 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22008 b repl
22009 :more1
22010 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22013 s/.\{148\}//
22014 t nl
22015 :delim
22017 s/\(.\{148\}\).*/\1/
22018 t more2
22019 s/["\\]/\\&/g; s/^/"/; s/$/"/
22022 :more2
22023 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22026 s/.\{148\}//
22027 t delim
22028 ' <conf$$subs.awk | sed '
22029 /^[^""]/{
22031 s/\n//
22033 ' >>$CONFIG_STATUS || ac_write_fail=1
22034 rm -f conf$$subs.awk
22035 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22036 _ACAWK
22037 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
22038 for (key in S) S_is_set[key] = 1
22039 FS = "\a"
22043 line = $ 0
22044 nfields = split(line, field, "@")
22045 substed = 0
22046 len = length(field[1])
22047 for (i = 2; i < nfields; i++) {
22048 key = field[i]
22049 keylen = length(key)
22050 if (S_is_set[key]) {
22051 value = S[key]
22052 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22053 len += length(value) + length(field[++i])
22054 substed = 1
22055 } else
22056 len += 1 + keylen
22059 print line
22062 _ACAWK
22063 _ACEOF
22064 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22065 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22066 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22067 else
22069 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
22070 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
22071 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
22072 { (exit 1); exit 1; }; }
22073 _ACEOF
22075 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22076 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22077 # trailing colons and then remove the whole line if VPATH becomes empty
22078 # (actually we leave an empty line to preserve line numbers).
22079 if test "x$srcdir" = x.; then
22080 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22081 s/:*\$(srcdir):*/:/
22082 s/:*\${srcdir}:*/:/
22083 s/:*@srcdir@:*/:/
22084 s/^\([^=]*=[ ]*\):*/\1/
22085 s/:*$//
22086 s/^[^=]*=[ ]*$//
22090 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22091 fi # test -n "$CONFIG_FILES"
22094 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
22095 shift
22096 for ac_tag
22098 case $ac_tag in
22099 :[FHLC]) ac_mode=$ac_tag; continue;;
22100 esac
22101 case $ac_mode$ac_tag in
22102 :[FHL]*:*);;
22103 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22104 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22105 { (exit 1); exit 1; }; };;
22106 :[FH]-) ac_tag=-:-;;
22107 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22108 esac
22109 ac_save_IFS=$IFS
22110 IFS=:
22111 set x $ac_tag
22112 IFS=$ac_save_IFS
22113 shift
22114 ac_file=$1
22115 shift
22117 case $ac_mode in
22118 :L) ac_source=$1;;
22119 :[FH])
22120 ac_file_inputs=
22121 for ac_f
22123 case $ac_f in
22124 -) ac_f="$tmp/stdin";;
22125 *) # Look for the file first in the build tree, then in the source tree
22126 # (if the path is not absolute). The absolute path cannot be DOS-style,
22127 # because $ac_f cannot contain `:'.
22128 test -f "$ac_f" ||
22129 case $ac_f in
22130 [\\/$]*) false;;
22131 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22132 esac ||
22133 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22134 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22135 { (exit 1); exit 1; }; };;
22136 esac
22137 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22138 ac_file_inputs="$ac_file_inputs '$ac_f'"
22139 done
22141 # Let's still pretend it is `configure' which instantiates (i.e., don't
22142 # use $as_me), people would be surprised to read:
22143 # /* config.h. Generated by config.status. */
22144 configure_input='Generated from '`
22145 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22146 `' by configure.'
22147 if test x"$ac_file" != x-; then
22148 configure_input="$ac_file. $configure_input"
22149 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
22150 $as_echo "$as_me: creating $ac_file" >&6;}
22152 # Neutralize special characters interpreted by sed in replacement strings.
22153 case $configure_input in #(
22154 *\&* | *\|* | *\\* )
22155 ac_sed_conf_input=`$as_echo "$configure_input" |
22156 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22157 *) ac_sed_conf_input=$configure_input;;
22158 esac
22160 case $ac_tag in
22161 *:-:* | *:-) cat >"$tmp/stdin" \
22162 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22163 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22164 { (exit 1); exit 1; }; } ;;
22165 esac
22167 esac
22169 ac_dir=`$as_dirname -- "$ac_file" ||
22170 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22171 X"$ac_file" : 'X\(//\)[^/]' \| \
22172 X"$ac_file" : 'X\(//\)$' \| \
22173 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22174 $as_echo X"$ac_file" |
22175 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22176 s//\1/
22179 /^X\(\/\/\)[^/].*/{
22180 s//\1/
22183 /^X\(\/\/\)$/{
22184 s//\1/
22187 /^X\(\/\).*/{
22188 s//\1/
22191 s/.*/./; q'`
22192 { as_dir="$ac_dir"
22193 case $as_dir in #(
22194 -*) as_dir=./$as_dir;;
22195 esac
22196 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22197 as_dirs=
22198 while :; do
22199 case $as_dir in #(
22200 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22201 *) as_qdir=$as_dir;;
22202 esac
22203 as_dirs="'$as_qdir' $as_dirs"
22204 as_dir=`$as_dirname -- "$as_dir" ||
22205 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22206 X"$as_dir" : 'X\(//\)[^/]' \| \
22207 X"$as_dir" : 'X\(//\)$' \| \
22208 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22209 $as_echo X"$as_dir" |
22210 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22211 s//\1/
22214 /^X\(\/\/\)[^/].*/{
22215 s//\1/
22218 /^X\(\/\/\)$/{
22219 s//\1/
22222 /^X\(\/\).*/{
22223 s//\1/
22226 s/.*/./; q'`
22227 test -d "$as_dir" && break
22228 done
22229 test -z "$as_dirs" || eval "mkdir $as_dirs"
22230 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22231 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22232 { (exit 1); exit 1; }; }; }
22233 ac_builddir=.
22235 case "$ac_dir" in
22236 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22238 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22239 # A ".." for each directory in $ac_dir_suffix.
22240 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22241 case $ac_top_builddir_sub in
22242 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22243 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22244 esac ;;
22245 esac
22246 ac_abs_top_builddir=$ac_pwd
22247 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22248 # for backward compatibility:
22249 ac_top_builddir=$ac_top_build_prefix
22251 case $srcdir in
22252 .) # We are building in place.
22253 ac_srcdir=.
22254 ac_top_srcdir=$ac_top_builddir_sub
22255 ac_abs_top_srcdir=$ac_pwd ;;
22256 [\\/]* | ?:[\\/]* ) # Absolute name.
22257 ac_srcdir=$srcdir$ac_dir_suffix;
22258 ac_top_srcdir=$srcdir
22259 ac_abs_top_srcdir=$srcdir ;;
22260 *) # Relative name.
22261 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22262 ac_top_srcdir=$ac_top_build_prefix$srcdir
22263 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22264 esac
22265 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22268 case $ac_mode in
22271 # CONFIG_FILE
22274 case $INSTALL in
22275 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22276 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22277 esac
22278 _ACEOF
22280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22281 # If the template does not know about datarootdir, expand it.
22282 # FIXME: This hack should be removed a few years after 2.60.
22283 ac_datarootdir_hack=; ac_datarootdir_seen=
22285 ac_sed_dataroot='
22286 /datarootdir/ {
22290 /@datadir@/p
22291 /@docdir@/p
22292 /@infodir@/p
22293 /@localedir@/p
22294 /@mandir@/p
22296 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22297 *datarootdir*) ac_datarootdir_seen=yes;;
22298 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22299 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22300 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22301 _ACEOF
22302 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22303 ac_datarootdir_hack='
22304 s&@datadir@&$datadir&g
22305 s&@docdir@&$docdir&g
22306 s&@infodir@&$infodir&g
22307 s&@localedir@&$localedir&g
22308 s&@mandir@&$mandir&g
22309 s&\\\${datarootdir}&$datarootdir&g' ;;
22310 esac
22311 _ACEOF
22313 # Neutralize VPATH when `$srcdir' = `.'.
22314 # Shell code in configure.ac might set extrasub.
22315 # FIXME: do we really want to maintain this feature?
22316 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22317 ac_sed_extra="$ac_vpsub
22318 $extrasub
22319 _ACEOF
22320 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22322 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22323 s|@configure_input@|$ac_sed_conf_input|;t t
22324 s&@top_builddir@&$ac_top_builddir_sub&;t t
22325 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22326 s&@srcdir@&$ac_srcdir&;t t
22327 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22328 s&@top_srcdir@&$ac_top_srcdir&;t t
22329 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22330 s&@builddir@&$ac_builddir&;t t
22331 s&@abs_builddir@&$ac_abs_builddir&;t t
22332 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22333 s&@INSTALL@&$ac_INSTALL&;t t
22334 $ac_datarootdir_hack
22336 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
22337 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22338 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22339 { (exit 1); exit 1; }; }
22341 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22342 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22343 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22344 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22345 which seems to be undefined. Please make sure it is defined." >&5
22346 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22347 which seems to be undefined. Please make sure it is defined." >&2;}
22349 rm -f "$tmp/stdin"
22350 case $ac_file in
22351 -) cat "$tmp/out" && rm -f "$tmp/out";;
22352 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
22353 esac \
22354 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22355 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22356 { (exit 1); exit 1; }; }
22360 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
22361 $as_echo "$as_me: executing $ac_file commands" >&6;}
22363 esac
22366 case $ac_file$ac_mode in
22367 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22368 # Strip MF so we end up with the name of the file.
22369 mf=`echo "$mf" | sed -e 's/:.*$//'`
22370 # Check whether this is an Automake generated Makefile or not.
22371 # We used to match only the files named `Makefile.in', but
22372 # some people rename them; so instead we look at the file content.
22373 # Grep'ing the first line is not enough: some people post-process
22374 # each Makefile.in and add a new line on top of each file to say so.
22375 # So let's grep whole file.
22376 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22377 dirpart=`$as_dirname -- "$mf" ||
22378 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22379 X"$mf" : 'X\(//\)[^/]' \| \
22380 X"$mf" : 'X\(//\)$' \| \
22381 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22382 $as_echo X"$mf" |
22383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22384 s//\1/
22387 /^X\(\/\/\)[^/].*/{
22388 s//\1/
22391 /^X\(\/\/\)$/{
22392 s//\1/
22395 /^X\(\/\).*/{
22396 s//\1/
22399 s/.*/./; q'`
22400 else
22401 continue
22403 # Extract the definition of DEPDIR, am__include, and am__quote
22404 # from the Makefile without running `make'.
22405 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22406 test -z "$DEPDIR" && continue
22407 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22408 test -z "am__include" && continue
22409 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22410 # When using ansi2knr, U may be empty or an underscore; expand it
22411 U=`sed -n 's/^U = //p' < "$mf"`
22412 # Find all dependency output files, they are included files with
22413 # $(DEPDIR) in their names. We invoke sed twice because it is the
22414 # simplest approach to changing $(DEPDIR) to its actual value in the
22415 # expansion.
22416 for file in `sed -n "
22417 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22418 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22419 # Make sure the directory exists.
22420 test -f "$dirpart/$file" && continue
22421 fdir=`$as_dirname -- "$file" ||
22422 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22423 X"$file" : 'X\(//\)[^/]' \| \
22424 X"$file" : 'X\(//\)$' \| \
22425 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22426 $as_echo X"$file" |
22427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22428 s//\1/
22431 /^X\(\/\/\)[^/].*/{
22432 s//\1/
22435 /^X\(\/\/\)$/{
22436 s//\1/
22439 /^X\(\/\).*/{
22440 s//\1/
22443 s/.*/./; q'`
22444 { as_dir=$dirpart/$fdir
22445 case $as_dir in #(
22446 -*) as_dir=./$as_dir;;
22447 esac
22448 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22449 as_dirs=
22450 while :; do
22451 case $as_dir in #(
22452 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22453 *) as_qdir=$as_dir;;
22454 esac
22455 as_dirs="'$as_qdir' $as_dirs"
22456 as_dir=`$as_dirname -- "$as_dir" ||
22457 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22458 X"$as_dir" : 'X\(//\)[^/]' \| \
22459 X"$as_dir" : 'X\(//\)$' \| \
22460 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22461 $as_echo X"$as_dir" |
22462 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22463 s//\1/
22466 /^X\(\/\/\)[^/].*/{
22467 s//\1/
22470 /^X\(\/\/\)$/{
22471 s//\1/
22474 /^X\(\/\).*/{
22475 s//\1/
22478 s/.*/./; q'`
22479 test -d "$as_dir" && break
22480 done
22481 test -z "$as_dirs" || eval "mkdir $as_dirs"
22482 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22483 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22484 { (exit 1); exit 1; }; }; }
22485 # echo "creating $dirpart/$file"
22486 echo '# dummy' > "$dirpart/$file"
22487 done
22488 done
22491 esac
22492 done # for ac_tag
22495 { (exit 0); exit 0; }
22496 _ACEOF
22497 chmod +x $CONFIG_STATUS
22498 ac_clean_files=$ac_clean_files_save
22500 test $ac_write_fail = 0 ||
22501 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
22502 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
22503 { (exit 1); exit 1; }; }
22506 # configure is writing to config.log, and then calls config.status.
22507 # config.status does its own redirection, appending to config.log.
22508 # Unfortunately, on DOS this fails, as config.log is still kept open
22509 # by configure, so config.status won't be able to write to it; its
22510 # output is simply discarded. So we exec the FD to /dev/null,
22511 # effectively closing config.log, so it can be properly (re)opened and
22512 # appended to by config.status. When coming back to configure, we
22513 # need to make the FD available again.
22514 if test "$no_create" != yes; then
22515 ac_cs_success=:
22516 ac_config_status_args=
22517 test "$silent" = yes &&
22518 ac_config_status_args="$ac_config_status_args --quiet"
22519 exec 5>/dev/null
22520 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22521 exec 5>>config.log
22522 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22523 # would make configure fail if this is the last instruction.
22524 $ac_cs_success || { (exit 1); exit 1; }
22526 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22527 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
22528 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}