2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for expat 1.95.7.
5 # Report bugs to <expat-bugs@mail.libexpat.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
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+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
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
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
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'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
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.)
98 # Find who we are. Look in the path if we contain no directory separator.
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
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
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
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 ||
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
182 if test $as_have_required = yes && (eval ":
192 as_func_ret_success () {
195 as_func_ret_failure () {
200 if as_func_success; then
204 echo as_func_success failed.
207 if as_func_failure; then
209 echo as_func_failure succeeded.
212 if as_func_ret_success; then
216 echo as_func_ret_success failed.
219 if as_func_ret_failure; then
221 echo as_func_ret_failure succeeded.
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
228 echo positional parameters were not saved.
231 test \$exitcode = 0) || { (exit 1); exit 1; }
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
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
246 test -z "$as_dir" && as_dir=.
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
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
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+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
279 CONFIG_SHELL=$as_shell
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
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+"$@"}'='"$@"'
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
307 as_func_ret_success () {
310 as_func_ret_failure () {
315 if as_func_success; then
319 echo as_func_success failed.
322 if as_func_failure; then
324 echo as_func_failure succeeded.
327 if as_func_ret_success; then
331 echo as_func_ret_success failed.
334 if as_func_ret_failure; then
336 echo as_func_ret_failure succeeded.
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
343 echo positional parameters were not saved.
346 test $exitcode = 0) || { (exit 1); exit 1; }
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; }
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
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 () {
396 as_func_ret_success () {
399 as_func_ret_failure () {
404 if as_func_success; then
408 echo as_func_success failed.
411 if as_func_failure; then
413 echo as_func_failure succeeded.
416 if as_func_ret_success; then
420 echo as_func_ret_success failed.
423 if as_func_ret_failure; then
425 echo as_func_ret_failure succeeded.
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
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.
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
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. :-)
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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).
483 # Exit status is that of the last command.
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
494 ECHO_C= ECHO_N= ECHO_T=
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
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
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 ||
527 elif ln conf$$.file conf$$ 2>/dev/null; then
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
541 test -d ./-p && rmdir ./-p
545 if test -x / >/dev/null 2>&1; then
548 if ls -dL / >/dev/null 2>&1; then
555 if test -d "$1"; then
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
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}
582 # Remove one level of quotation (which was required for Make).
583 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
588 if test "X$1" = X--no-reexec; then
589 # Discard the --no-reexec flag, and continue.
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!
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
611 # The HP-UX ksh and POSIX shell print the target directory to stdout
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
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
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
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
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.
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
667 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
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
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
682 SHELL="$CONFIG_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"
691 # maybe with a smaller string...
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
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+"$@"}
707 # Oops. We lost completely, so just stick with 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.
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
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`
740 ac_default_prefix=/usr/local
742 ac_config_libobj_dir=.
748 SHELL=${CONFIG_SHELL-/bin/sh}
750 # Identity of this package.
752 PACKAGE_TARNAME='expat'
753 PACKAGE_VERSION='1.95.7'
754 PACKAGE_STRING='expat 1.95.7'
755 PACKAGE_BUGREPORT='expat-bugs@mail.libexpat.org'
757 ac_unique_file="Makefile.in"
758 # Factoring default headers for most tests.
759 ac_includes_default="\
761 #ifdef HAVE_SYS_TYPES_H
762 # include <sys/types.h>
764 #ifdef HAVE_SYS_STAT_H
765 # include <sys/stat.h>
771 # ifdef HAVE_STDLIB_H
776 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
781 #ifdef HAVE_STRINGS_H
782 # include <strings.h>
784 #ifdef HAVE_INTTYPES_H
785 # include <inttypes.h>
794 ac_subst_vars='LTLIBOBJS
870 program_transform_name
882 enable_option_checking
891 ac_precious_vars='build_alias
908 # Initialize some variables set by options.
910 ac_init_version=false
911 ac_unrecognized_opts=
913 # The variables have the same names as the options, with
914 # dashes changed to underlines.
922 program_transform_name=s,x,x,
930 # Installation directory options.
931 # These are left unexpanded so users can "make install exec_prefix=/foo"
932 # and all the variables that are supposed to be based on exec_prefix
933 # by default will actually change.
934 # Use braces instead of parens because sh, perl, etc. also accept them.
935 # (The list follows the same order as the GNU Coding Standards.)
936 bindir='${exec_prefix}/bin'
937 sbindir='${exec_prefix}/sbin'
938 libexecdir='${exec_prefix}/libexec'
939 datarootdir='${prefix}/share'
940 datadir='${datarootdir}'
941 sysconfdir='${prefix}/etc'
942 sharedstatedir='${prefix}/com'
943 localstatedir='${prefix}/var'
944 includedir='${prefix}/include'
945 oldincludedir='/usr/include'
946 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
947 infodir='${datarootdir}/info'
952 libdir='${exec_prefix}/lib'
953 localedir='${datarootdir}/locale'
954 mandir='${datarootdir}/man'
960 # If the previous option needs an argument, assign it.
961 if test -n "$ac_prev"; then
962 eval $ac_prev=\$ac_option
968 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
972 # Accept the important Cygnus configure options, so we can diagnose typos.
974 case $ac_dashdash$ac_option in
978 -bindir | --bindir | --bindi | --bind | --bin | --bi)
980 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
983 -build | --build | --buil | --bui | --bu)
984 ac_prev=build_alias ;;
985 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
986 build_alias=$ac_optarg ;;
988 -cache-file | --cache-file | --cache-fil | --cache-fi \
989 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
990 ac_prev=cache_file ;;
991 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
992 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
993 cache_file=$ac_optarg ;;
996 cache_file=config.cache ;;
998 -datadir | --datadir | --datadi | --datad)
1000 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1001 datadir=$ac_optarg ;;
1003 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1004 | --dataroo | --dataro | --datar)
1005 ac_prev=datarootdir ;;
1006 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1007 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1008 datarootdir=$ac_optarg ;;
1010 -disable-* | --disable-*)
1011 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1012 # Reject names that are not valid shell variable names.
1013 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1014 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1015 { (exit 1); exit 1; }; }
1016 ac_useropt_orig=$ac_useropt
1017 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1018 case $ac_user_opts in
1020 "enable_$ac_useropt"
1022 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1023 ac_unrecognized_sep=', ';;
1025 eval enable_$ac_useropt=no ;;
1027 -docdir | --docdir | --docdi | --doc | --do)
1029 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1030 docdir=$ac_optarg ;;
1032 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1034 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1035 dvidir=$ac_optarg ;;
1037 -enable-* | --enable-*)
1038 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1039 # Reject names that are not valid shell variable names.
1040 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1041 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1042 { (exit 1); exit 1; }; }
1043 ac_useropt_orig=$ac_useropt
1044 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1045 case $ac_user_opts in
1047 "enable_$ac_useropt"
1049 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1050 ac_unrecognized_sep=', ';;
1052 eval enable_$ac_useropt=\$ac_optarg ;;
1054 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1055 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1056 | --exec | --exe | --ex)
1057 ac_prev=exec_prefix ;;
1058 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1059 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1060 | --exec=* | --exe=* | --ex=*)
1061 exec_prefix=$ac_optarg ;;
1063 -gas | --gas | --ga | --g)
1064 # Obsolete; use --with-gas.
1067 -help | --help | --hel | --he | -h)
1068 ac_init_help=long ;;
1069 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1070 ac_init_help=recursive ;;
1071 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1072 ac_init_help=short ;;
1074 -host | --host | --hos | --ho)
1075 ac_prev=host_alias ;;
1076 -host=* | --host=* | --hos=* | --ho=*)
1077 host_alias=$ac_optarg ;;
1079 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1081 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1083 htmldir=$ac_optarg ;;
1085 -includedir | --includedir | --includedi | --included | --include \
1086 | --includ | --inclu | --incl | --inc)
1087 ac_prev=includedir ;;
1088 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1089 | --includ=* | --inclu=* | --incl=* | --inc=*)
1090 includedir=$ac_optarg ;;
1092 -infodir | --infodir | --infodi | --infod | --info | --inf)
1094 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1095 infodir=$ac_optarg ;;
1097 -libdir | --libdir | --libdi | --libd)
1099 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1100 libdir=$ac_optarg ;;
1102 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1103 | --libexe | --libex | --libe)
1104 ac_prev=libexecdir ;;
1105 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1106 | --libexe=* | --libex=* | --libe=*)
1107 libexecdir=$ac_optarg ;;
1109 -localedir | --localedir | --localedi | --localed | --locale)
1110 ac_prev=localedir ;;
1111 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1112 localedir=$ac_optarg ;;
1114 -localstatedir | --localstatedir | --localstatedi | --localstated \
1115 | --localstate | --localstat | --localsta | --localst | --locals)
1116 ac_prev=localstatedir ;;
1117 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1118 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1119 localstatedir=$ac_optarg ;;
1121 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1123 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1124 mandir=$ac_optarg ;;
1126 -nfp | --nfp | --nf)
1127 # Obsolete; use --without-fp.
1130 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1131 | --no-cr | --no-c | -n)
1134 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1135 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1138 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1139 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1140 | --oldin | --oldi | --old | --ol | --o)
1141 ac_prev=oldincludedir ;;
1142 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1143 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1144 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1145 oldincludedir=$ac_optarg ;;
1147 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1149 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1150 prefix=$ac_optarg ;;
1152 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1153 | --program-pre | --program-pr | --program-p)
1154 ac_prev=program_prefix ;;
1155 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1156 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1157 program_prefix=$ac_optarg ;;
1159 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1160 | --program-suf | --program-su | --program-s)
1161 ac_prev=program_suffix ;;
1162 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1163 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1164 program_suffix=$ac_optarg ;;
1166 -program-transform-name | --program-transform-name \
1167 | --program-transform-nam | --program-transform-na \
1168 | --program-transform-n | --program-transform- \
1169 | --program-transform | --program-transfor \
1170 | --program-transfo | --program-transf \
1171 | --program-trans | --program-tran \
1172 | --progr-tra | --program-tr | --program-t)
1173 ac_prev=program_transform_name ;;
1174 -program-transform-name=* | --program-transform-name=* \
1175 | --program-transform-nam=* | --program-transform-na=* \
1176 | --program-transform-n=* | --program-transform-=* \
1177 | --program-transform=* | --program-transfor=* \
1178 | --program-transfo=* | --program-transf=* \
1179 | --program-trans=* | --program-tran=* \
1180 | --progr-tra=* | --program-tr=* | --program-t=*)
1181 program_transform_name=$ac_optarg ;;
1183 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1185 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1186 pdfdir=$ac_optarg ;;
1188 -psdir | --psdir | --psdi | --psd | --ps)
1190 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1193 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1194 | -silent | --silent | --silen | --sile | --sil)
1197 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1199 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1201 sbindir=$ac_optarg ;;
1203 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1204 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1205 | --sharedst | --shareds | --shared | --share | --shar \
1207 ac_prev=sharedstatedir ;;
1208 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1209 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1210 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1212 sharedstatedir=$ac_optarg ;;
1214 -site | --site | --sit)
1216 -site=* | --site=* | --sit=*)
1219 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1221 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1222 srcdir=$ac_optarg ;;
1224 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1225 | --syscon | --sysco | --sysc | --sys | --sy)
1226 ac_prev=sysconfdir ;;
1227 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1228 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1229 sysconfdir=$ac_optarg ;;
1231 -target | --target | --targe | --targ | --tar | --ta | --t)
1232 ac_prev=target_alias ;;
1233 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1234 target_alias=$ac_optarg ;;
1236 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1239 -version | --version | --versio | --versi | --vers | -V)
1240 ac_init_version=: ;;
1243 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1244 # Reject names that are not valid shell variable names.
1245 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1246 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1247 { (exit 1); exit 1; }; }
1248 ac_useropt_orig=$ac_useropt
1249 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1250 case $ac_user_opts in
1254 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1255 ac_unrecognized_sep=', ';;
1257 eval with_$ac_useropt=\$ac_optarg ;;
1259 -without-* | --without-*)
1260 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1261 # Reject names that are not valid shell variable names.
1262 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1263 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1264 { (exit 1); exit 1; }; }
1265 ac_useropt_orig=$ac_useropt
1266 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1267 case $ac_user_opts in
1271 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1272 ac_unrecognized_sep=', ';;
1274 eval with_$ac_useropt=no ;;
1277 # Obsolete; use --with-x.
1280 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1281 | --x-incl | --x-inc | --x-in | --x-i)
1282 ac_prev=x_includes ;;
1283 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1284 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1285 x_includes=$ac_optarg ;;
1287 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1288 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1289 ac_prev=x_libraries ;;
1290 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1291 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1292 x_libraries=$ac_optarg ;;
1294 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1295 Try \`$0 --help' for more information." >&2
1296 { (exit 1); exit 1; }; }
1300 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1301 # Reject names that are not valid shell variable names.
1302 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1303 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1304 { (exit 1); exit 1; }; }
1305 eval $ac_envvar=\$ac_optarg
1306 export $ac_envvar ;;
1309 # FIXME: should be removed in autoconf 3.0.
1310 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1311 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1312 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1313 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1319 if test -n "$ac_prev"; then
1320 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1321 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1322 { (exit 1); exit 1; }; }
1325 if test -n "$ac_unrecognized_opts"; then
1326 case $enable_option_checking in
1328 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1329 { (exit 1); exit 1; }; } ;;
1330 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1334 # Check all directory arguments for consistency.
1335 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1336 datadir sysconfdir sharedstatedir localstatedir includedir \
1337 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1338 libdir localedir mandir
1340 eval ac_val=\$$ac_var
1341 # Remove trailing slashes.
1344 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1345 eval $ac_var=\$ac_val;;
1347 # Be sure to have absolute directory names.
1349 [\\/$]* | ?:[\\/]* ) continue;;
1350 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1352 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1353 { (exit 1); exit 1; }; }
1356 # There might be people who depend on the old broken behavior: `$host'
1357 # used to hold the argument of --host etc.
1358 # FIXME: To remove some day.
1361 target=$target_alias
1363 # FIXME: To remove some day.
1364 if test "x$host_alias" != x; then
1365 if test "x$build_alias" = x; then
1366 cross_compiling=maybe
1367 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1368 If a cross compiler is detected then cross compile mode will be used." >&2
1369 elif test "x$build_alias" != "x$host_alias"; then
1375 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1377 test "$silent" = yes && exec 6>/dev/null
1380 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1381 ac_ls_di=`ls -di .` &&
1382 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1383 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1384 { (exit 1); exit 1; }; }
1385 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1386 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1387 { (exit 1); exit 1; }; }
1390 # Find the source files, if location was not specified.
1391 if test -z "$srcdir"; then
1392 ac_srcdir_defaulted=yes
1393 # Try the directory containing this script, then the parent directory.
1394 ac_confdir=`$as_dirname -- "$as_myself" ||
1395 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1396 X"$as_myself" : 'X\(//\)[^/]' \| \
1397 X"$as_myself" : 'X\(//\)$' \| \
1398 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1399 $as_echo X"$as_myself" |
1400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1418 if test ! -r "$srcdir/$ac_unique_file"; then
1422 ac_srcdir_defaulted=no
1424 if test ! -r "$srcdir/$ac_unique_file"; then
1425 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1426 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1427 { (exit 1); exit 1; }; }
1429 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1431 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1432 { (exit 1); exit 1; }; }
1434 # When building in place, set srcdir=.
1435 if test "$ac_abs_confdir" = "$ac_pwd"; then
1438 # Remove unnecessary trailing slashes from srcdir.
1439 # Double slashes in file names in object file debugging info
1440 # mess up M-x gdb in Emacs.
1442 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1444 for ac_var in $ac_precious_vars; do
1445 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1446 eval ac_env_${ac_var}_value=\$${ac_var}
1447 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1448 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1452 # Report the --help message.
1454 if test "$ac_init_help" = "long"; then
1455 # Omit some internal or obsolete options to make the list less imposing.
1456 # This message is too long to be a string in the A/UX 3.1 sh.
1458 \`configure' configures expat 1.95.7 to adapt to many kinds of systems.
1460 Usage: $0 [OPTION]... [VAR=VALUE]...
1462 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1463 VAR=VALUE. See below for descriptions of some of the useful variables.
1465 Defaults for the options are specified in brackets.
1468 -h, --help display this help and exit
1469 --help=short display options specific to this package
1470 --help=recursive display the short help of all the included packages
1471 -V, --version display version information and exit
1472 -q, --quiet, --silent do not print \`checking...' messages
1473 --cache-file=FILE cache test results in FILE [disabled]
1474 -C, --config-cache alias for \`--cache-file=config.cache'
1475 -n, --no-create do not create output files
1476 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1478 Installation directories:
1479 --prefix=PREFIX install architecture-independent files in PREFIX
1480 [$ac_default_prefix]
1481 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1484 By default, \`make install' will install all the files in
1485 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1486 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1487 for instance \`--prefix=\$HOME'.
1489 For better control, use the options below.
1491 Fine tuning of the installation directories:
1492 --bindir=DIR user executables [EPREFIX/bin]
1493 --sbindir=DIR system admin executables [EPREFIX/sbin]
1494 --libexecdir=DIR program executables [EPREFIX/libexec]
1495 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1496 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1497 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1498 --libdir=DIR object code libraries [EPREFIX/lib]
1499 --includedir=DIR C header files [PREFIX/include]
1500 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1501 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1502 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1503 --infodir=DIR info documentation [DATAROOTDIR/info]
1504 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1505 --mandir=DIR man documentation [DATAROOTDIR/man]
1506 --docdir=DIR documentation root [DATAROOTDIR/doc/expat]
1507 --htmldir=DIR html documentation [DOCDIR]
1508 --dvidir=DIR dvi documentation [DOCDIR]
1509 --pdfdir=DIR pdf documentation [DOCDIR]
1510 --psdir=DIR ps documentation [DOCDIR]
1516 --build=BUILD configure for building on BUILD [guessed]
1517 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1518 --target=TARGET configure for building compilers for TARGET [HOST]
1522 if test -n "$ac_init_help"; then
1523 case $ac_init_help in
1524 short | recursive ) echo "Configuration of expat 1.95.7:";;
1529 --disable-option-checking ignore unrecognized --enable/--with options
1530 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1531 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1532 --enable-shared[=PKGS] build shared libraries [default=yes]
1533 --enable-static[=PKGS] build static libraries [default=yes]
1534 --enable-fast-install[=PKGS]
1535 optimize for fast installation [default=yes]
1536 --disable-libtool-lock avoid locking (might break parallel builds)
1539 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1540 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1541 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1542 --with-pic try to use only PIC/non-PIC objects [default=use
1544 --with-tags[=TAGS] include additional configurations [automatic]
1546 Some influential environment variables:
1547 CC C compiler command
1548 CFLAGS C compiler flags
1549 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1550 nonstandard directory <lib dir>
1551 LIBS libraries to pass to the linker, e.g. -l<library>
1552 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1553 you have headers in a nonstandard directory <include dir>
1555 CXX C++ compiler command
1556 CXXFLAGS C++ compiler flags
1557 CXXCPP C++ preprocessor
1558 F77 Fortran 77 compiler command
1559 FFLAGS Fortran 77 compiler flags
1561 Use these variables to override the choices made by `configure' or to help
1562 it to find libraries and programs with nonstandard names/locations.
1564 Report bugs to <expat-bugs@mail.libexpat.org>.
1569 if test "$ac_init_help" = "recursive"; then
1570 # If there are subdirs, report their specific --help.
1571 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1572 test -d "$ac_dir" ||
1573 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1578 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1580 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1581 # A ".." for each directory in $ac_dir_suffix.
1582 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1583 case $ac_top_builddir_sub in
1584 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1585 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1588 ac_abs_top_builddir=$ac_pwd
1589 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1590 # for backward compatibility:
1591 ac_top_builddir=$ac_top_build_prefix
1594 .) # We are building in place.
1596 ac_top_srcdir=$ac_top_builddir_sub
1597 ac_abs_top_srcdir=$ac_pwd ;;
1598 [\\/]* | ?:[\\/]* ) # Absolute name.
1599 ac_srcdir=$srcdir$ac_dir_suffix;
1600 ac_top_srcdir=$srcdir
1601 ac_abs_top_srcdir=$srcdir ;;
1603 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1604 ac_top_srcdir=$ac_top_build_prefix$srcdir
1605 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1607 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1609 cd "$ac_dir" || { ac_status=$?; continue; }
1610 # Check for guested configure.
1611 if test -f "$ac_srcdir/configure.gnu"; then
1613 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1614 elif test -f "$ac_srcdir/configure"; then
1616 $SHELL "$ac_srcdir/configure" --help=recursive
1618 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1620 cd "$ac_pwd" || { ac_status=$?; break; }
1624 test -n "$ac_init_help" && exit $ac_status
1625 if $ac_init_version; then
1627 expat configure 1.95.7
1628 generated by GNU Autoconf 2.63
1630 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1631 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1632 This configure script is free software; the Free Software Foundation
1633 gives unlimited permission to copy, distribute and modify it.
1637 cat >config.log <<_ACEOF
1638 This file contains any messages produced by compilers while
1639 running configure, to aid debugging if configure makes a mistake.
1641 It was created by expat $as_me 1.95.7, which was
1642 generated by GNU Autoconf 2.63. Invocation command line was
1654 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1655 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1656 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1657 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1658 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1660 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1661 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1663 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1664 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1665 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1666 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1667 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1668 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1669 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1677 test -z "$as_dir" && as_dir=.
1678 $as_echo "PATH: $as_dir"
1694 # Keep a trace of the command line.
1695 # Strip out --no-create and --no-recursion so they do not pile up.
1696 # Strip out --silent because we don't want to record it for future runs.
1697 # Also quote any args containing shell meta-characters.
1698 # Make two passes to allow for proper duplicate-argument suppression.
1702 ac_must_keep_next=false
1708 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1709 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1710 | -silent | --silent | --silen | --sile | --sil)
1713 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1716 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1718 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1719 if test $ac_must_keep_next = true; then
1720 ac_must_keep_next=false # Got value, back to normal.
1723 *=* | --config-cache | -C | -disable-* | --disable-* \
1724 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1725 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1726 | -with-* | --with-* | -without-* | --without-* | --x)
1727 case "$ac_configure_args0 " in
1728 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1731 -* ) ac_must_keep_next=true ;;
1734 ac_configure_args="$ac_configure_args '$ac_arg'"
1739 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1740 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1742 # When interrupted or exit'd, cleanup temporary files, and complete
1743 # config.log. We remove comments because anyway the quotes in there
1744 # would cause problems or look ugly.
1745 # WARNING: Use '\'' to represent an apostrophe within the trap.
1746 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1747 trap 'exit_status=$?
1748 # Save into config.log some information that might help in debugging.
1753 ## ---------------- ##
1754 ## Cache variables. ##
1755 ## ---------------- ##
1758 # The following way of writing the cache mishandles newlines in values,
1760 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1761 eval ac_val=\$$ac_var
1765 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1766 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1769 _ | IFS | as_nl) ;; #(
1770 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1771 *) $as_unset $ac_var ;;
1776 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1777 *${as_nl}ac_space=\ *)
1779 "s/'\''/'\''\\\\'\'''\''/g;
1780 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1783 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1791 ## ----------------- ##
1792 ## Output variables. ##
1793 ## ----------------- ##
1796 for ac_var in $ac_subst_vars
1798 eval ac_val=\$$ac_var
1800 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1802 $as_echo "$ac_var='\''$ac_val'\''"
1806 if test -n "$ac_subst_files"; then
1808 ## ------------------- ##
1809 ## File substitutions. ##
1810 ## ------------------- ##
1813 for ac_var in $ac_subst_files
1815 eval ac_val=\$$ac_var
1817 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1819 $as_echo "$ac_var='\''$ac_val'\''"
1824 if test -s confdefs.h; then
1834 test "$ac_signal" != 0 &&
1835 $as_echo "$as_me: caught signal $ac_signal"
1836 $as_echo "$as_me: exit $exit_status"
1838 rm -f core *.core core.conftest.* &&
1839 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1842 for ac_signal in 1 2 13 15; do
1843 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1847 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1848 rm -f -r conftest* confdefs.h
1850 # Predefined preprocessor variables.
1852 cat >>confdefs.h <<_ACEOF
1853 #define PACKAGE_NAME "$PACKAGE_NAME"
1857 cat >>confdefs.h <<_ACEOF
1858 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1862 cat >>confdefs.h <<_ACEOF
1863 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1867 cat >>confdefs.h <<_ACEOF
1868 #define PACKAGE_STRING "$PACKAGE_STRING"
1872 cat >>confdefs.h <<_ACEOF
1873 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1877 # Let the site file select an alternate cache file if it wants to.
1878 # Prefer an explicitly selected file to automatically selected ones.
1881 if test -n "$CONFIG_SITE"; then
1882 ac_site_file1=$CONFIG_SITE
1883 elif test "x$prefix" != xNONE; then
1884 ac_site_file1=$prefix/share/config.site
1885 ac_site_file2=$prefix/etc/config.site
1887 ac_site_file1=$ac_default_prefix/share/config.site
1888 ac_site_file2=$ac_default_prefix/etc/config.site
1890 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1892 test "x$ac_site_file" = xNONE && continue
1893 if test -r "$ac_site_file"; then
1894 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1895 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1896 sed 's/^/| /' "$ac_site_file" >&5
1901 if test -r "$cache_file"; then
1902 # Some versions of bash will fail to source /dev/null (special
1903 # files actually), so we avoid doing that.
1904 if test -f "$cache_file"; then
1905 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1906 $as_echo "$as_me: loading cache $cache_file" >&6;}
1908 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1909 *) . "./$cache_file";;
1913 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1914 $as_echo "$as_me: creating cache $cache_file" >&6;}
1918 # Check that the precious variables saved in the cache have kept the same
1920 ac_cache_corrupted=false
1921 for ac_var in $ac_precious_vars; do
1922 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1923 eval ac_new_set=\$ac_env_${ac_var}_set
1924 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1925 eval ac_new_val=\$ac_env_${ac_var}_value
1926 case $ac_old_set,$ac_new_set in
1928 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1929 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1930 ac_cache_corrupted=: ;;
1932 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1933 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1934 ac_cache_corrupted=: ;;
1937 if test "x$ac_old_val" != "x$ac_new_val"; then
1938 # differences in whitespace do not lead to failure.
1939 ac_old_val_w=`echo x $ac_old_val`
1940 ac_new_val_w=`echo x $ac_new_val`
1941 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1942 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1943 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1944 ac_cache_corrupted=:
1946 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1947 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1948 eval $ac_var=\$ac_old_val
1950 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1951 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1952 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1953 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1956 # Pass precious variables to config.status.
1957 if test "$ac_new_set" = set; then
1959 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1960 *) ac_arg=$ac_var=$ac_new_val ;;
1962 case " $ac_configure_args " in
1963 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1964 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1968 if $ac_cache_corrupted; then
1969 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1971 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1972 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1973 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1974 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1975 { (exit 1); exit 1; }; }
2003 ac_cpp='$CPP $CPPFLAGS'
2004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2012 for ac_dir in conftools "$srcdir"/conftools; do
2013 if test -f "$ac_dir/install-sh"; then
2015 ac_install_sh="$ac_aux_dir/install-sh -c"
2017 elif test -f "$ac_dir/install.sh"; then
2019 ac_install_sh="$ac_aux_dir/install.sh -c"
2021 elif test -f "$ac_dir/shtool"; then
2023 ac_install_sh="$ac_aux_dir/shtool install -c"
2027 if test -z "$ac_aux_dir"; then
2028 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in conftools \"$srcdir\"/conftools" >&5
2029 $as_echo "$as_me: error: cannot find install-sh or install.sh in conftools \"$srcdir\"/conftools" >&2;}
2030 { (exit 1); exit 1; }; }
2033 # These three variables are undocumented and unsupported,
2034 # and are intended to be withdrawn in a future Autoconf release.
2035 # They can cause serious problems if a builder's source tree is in a directory
2036 # whose full name contains unusual characters.
2037 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2038 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2039 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2049 ac_config_headers="$ac_config_headers expat_config.h"
2055 # Make sure we can run config.sub.
2056 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2057 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2058 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2059 { (exit 1); exit 1; }; }
2061 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2062 $as_echo_n "checking build system type... " >&6; }
2063 if test "${ac_cv_build+set}" = set; then
2064 $as_echo_n "(cached) " >&6
2066 ac_build_alias=$build_alias
2067 test "x$ac_build_alias" = x &&
2068 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2069 test "x$ac_build_alias" = x &&
2070 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2071 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2072 { (exit 1); exit 1; }; }
2073 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2074 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2075 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2076 { (exit 1); exit 1; }; }
2079 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2080 $as_echo "$ac_cv_build" >&6; }
2081 case $ac_cv_build in
2083 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2084 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2085 { (exit 1); exit 1; }; };;
2088 ac_save_IFS=$IFS; IFS='-'
2094 # Remember, the first character of IFS is used to create $*,
2095 # except with old shells:
2098 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2101 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2102 $as_echo_n "checking host system type... " >&6; }
2103 if test "${ac_cv_host+set}" = set; then
2104 $as_echo_n "(cached) " >&6
2106 if test "x$host_alias" = x; then
2107 ac_cv_host=$ac_cv_build
2109 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2110 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2111 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2112 { (exit 1); exit 1; }; }
2116 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2117 $as_echo "$ac_cv_host" >&6; }
2120 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2121 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2122 { (exit 1); exit 1; }; };;
2125 ac_save_IFS=$IFS; IFS='-'
2131 # Remember, the first character of IFS is used to create $*,
2132 # except with old shells:
2135 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2138 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2139 $as_echo_n "checking target system type... " >&6; }
2140 if test "${ac_cv_target+set}" = set; then
2141 $as_echo_n "(cached) " >&6
2143 if test "x$target_alias" = x; then
2144 ac_cv_target=$ac_cv_host
2146 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2147 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2148 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2149 { (exit 1); exit 1; }; }
2153 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2154 $as_echo "$ac_cv_target" >&6; }
2155 case $ac_cv_target in
2157 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2158 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2159 { (exit 1); exit 1; }; };;
2161 target=$ac_cv_target
2162 ac_save_IFS=$IFS; IFS='-'
2168 # Remember, the first character of IFS is used to create $*,
2169 # except with old shells:
2172 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2175 # The aliases save the names the user supplied, while $host etc.
2176 # will get canonicalized.
2177 test -n "$target_alias" &&
2178 test "$program_prefix$program_suffix$program_transform_name" = \
2180 program_prefix=${target_alias}-
2184 # Use a custom made libtool replacement
2185 echo Using aplibtool
2186 LIBTOOL="$srcdir/../../../apr/build/aplibtool"
2191 # Check whether --enable-shared was given.
2192 if test "${enable_shared+set}" = set; then
2193 enableval=$enable_shared; p=${PACKAGE-default}
2195 yes) enable_shared=yes ;;
2196 no) enable_shared=no ;;
2199 # Look at the argument we got. We use all the common list separators.
2200 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2201 for pkg in $enableval; do
2203 if test "X$pkg" = "X$p"; then
2215 # Check whether --enable-static was given.
2216 if test "${enable_static+set}" = set; then
2217 enableval=$enable_static; p=${PACKAGE-default}
2219 yes) enable_static=yes ;;
2220 no) enable_static=no ;;
2223 # Look at the argument we got. We use all the common list separators.
2224 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2225 for pkg in $enableval; do
2227 if test "X$pkg" = "X$p"; then
2239 # Check whether --enable-fast-install was given.
2240 if test "${enable_fast_install+set}" = set; then
2241 enableval=$enable_fast_install; p=${PACKAGE-default}
2243 yes) enable_fast_install=yes ;;
2244 no) enable_fast_install=no ;;
2246 enable_fast_install=no
2247 # Look at the argument we got. We use all the common list separators.
2248 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2249 for pkg in $enableval; do
2251 if test "X$pkg" = "X$p"; then
2252 enable_fast_install=yes
2259 enable_fast_install=yes
2264 ac_cpp='$CPP $CPPFLAGS'
2265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2268 if test -n "$ac_tool_prefix"; then
2269 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2270 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2271 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2272 $as_echo_n "checking for $ac_word... " >&6; }
2273 if test "${ac_cv_prog_CC+set}" = set; then
2274 $as_echo_n "(cached) " >&6
2276 if test -n "$CC"; then
2277 ac_cv_prog_CC="$CC" # Let the user override the test.
2279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2283 test -z "$as_dir" && as_dir=.
2284 for ac_exec_ext in '' $ac_executable_extensions; do
2285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2286 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2287 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2297 if test -n "$CC"; then
2298 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2299 $as_echo "$CC" >&6; }
2301 { $as_echo "$as_me:$LINENO: result: no" >&5
2302 $as_echo "no" >&6; }
2307 if test -z "$ac_cv_prog_CC"; then
2309 # Extract the first word of "gcc", so it can be a program name with args.
2310 set dummy gcc; ac_word=$2
2311 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2312 $as_echo_n "checking for $ac_word... " >&6; }
2313 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2314 $as_echo_n "(cached) " >&6
2316 if test -n "$ac_ct_CC"; then
2317 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2323 test -z "$as_dir" && as_dir=.
2324 for ac_exec_ext in '' $ac_executable_extensions; do
2325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2326 ac_cv_prog_ac_ct_CC="gcc"
2327 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2336 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2337 if test -n "$ac_ct_CC"; then
2338 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2339 $as_echo "$ac_ct_CC" >&6; }
2341 { $as_echo "$as_me:$LINENO: result: no" >&5
2342 $as_echo "no" >&6; }
2345 if test "x$ac_ct_CC" = x; then
2348 case $cross_compiling:$ac_tool_warned in
2350 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2351 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2352 ac_tool_warned=yes ;;
2360 if test -z "$CC"; then
2361 if test -n "$ac_tool_prefix"; then
2362 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2363 set dummy ${ac_tool_prefix}cc; ac_word=$2
2364 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2365 $as_echo_n "checking for $ac_word... " >&6; }
2366 if test "${ac_cv_prog_CC+set}" = set; then
2367 $as_echo_n "(cached) " >&6
2369 if test -n "$CC"; then
2370 ac_cv_prog_CC="$CC" # Let the user override the test.
2372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2376 test -z "$as_dir" && as_dir=.
2377 for ac_exec_ext in '' $ac_executable_extensions; do
2378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2379 ac_cv_prog_CC="${ac_tool_prefix}cc"
2380 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2390 if test -n "$CC"; then
2391 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2392 $as_echo "$CC" >&6; }
2394 { $as_echo "$as_me:$LINENO: result: no" >&5
2395 $as_echo "no" >&6; }
2401 if test -z "$CC"; then
2402 # Extract the first word of "cc", so it can be a program name with args.
2403 set dummy cc; ac_word=$2
2404 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2405 $as_echo_n "checking for $ac_word... " >&6; }
2406 if test "${ac_cv_prog_CC+set}" = set; then
2407 $as_echo_n "(cached) " >&6
2409 if test -n "$CC"; then
2410 ac_cv_prog_CC="$CC" # Let the user override the test.
2413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2417 test -z "$as_dir" && as_dir=.
2418 for ac_exec_ext in '' $ac_executable_extensions; do
2419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2420 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2421 ac_prog_rejected=yes
2425 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2432 if test $ac_prog_rejected = yes; then
2433 # We found a bogon in the path, so make sure we never use it.
2434 set dummy $ac_cv_prog_CC
2436 if test $# != 0; then
2437 # We chose a different compiler from the bogus one.
2438 # However, it has the same basename, so the bogon will be chosen
2439 # first if we set CC to just the basename; use the full file name.
2441 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2447 if test -n "$CC"; then
2448 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2449 $as_echo "$CC" >&6; }
2451 { $as_echo "$as_me:$LINENO: result: no" >&5
2452 $as_echo "no" >&6; }
2457 if test -z "$CC"; then
2458 if test -n "$ac_tool_prefix"; then
2459 for ac_prog in cl.exe
2461 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2462 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2463 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2464 $as_echo_n "checking for $ac_word... " >&6; }
2465 if test "${ac_cv_prog_CC+set}" = set; then
2466 $as_echo_n "(cached) " >&6
2468 if test -n "$CC"; then
2469 ac_cv_prog_CC="$CC" # Let the user override the test.
2471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475 test -z "$as_dir" && as_dir=.
2476 for ac_exec_ext in '' $ac_executable_extensions; do
2477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2478 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2479 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2489 if test -n "$CC"; then
2490 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2491 $as_echo "$CC" >&6; }
2493 { $as_echo "$as_me:$LINENO: result: no" >&5
2494 $as_echo "no" >&6; }
2498 test -n "$CC" && break
2501 if test -z "$CC"; then
2503 for ac_prog in cl.exe
2505 # Extract the first word of "$ac_prog", so it can be a program name with args.
2506 set dummy $ac_prog; ac_word=$2
2507 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2508 $as_echo_n "checking for $ac_word... " >&6; }
2509 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2510 $as_echo_n "(cached) " >&6
2512 if test -n "$ac_ct_CC"; then
2513 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2519 test -z "$as_dir" && as_dir=.
2520 for ac_exec_ext in '' $ac_executable_extensions; do
2521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2522 ac_cv_prog_ac_ct_CC="$ac_prog"
2523 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2532 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2533 if test -n "$ac_ct_CC"; then
2534 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2535 $as_echo "$ac_ct_CC" >&6; }
2537 { $as_echo "$as_me:$LINENO: result: no" >&5
2538 $as_echo "no" >&6; }
2542 test -n "$ac_ct_CC" && break
2545 if test "x$ac_ct_CC" = x; then
2548 case $cross_compiling:$ac_tool_warned in
2550 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2552 ac_tool_warned=yes ;;
2561 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2562 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2563 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2564 See \`config.log' for more details." >&5
2565 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2566 See \`config.log' for more details." >&2;}
2567 { (exit 1); exit 1; }; }; }
2569 # Provide some information about the compiler.
2570 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2573 { (ac_try="$ac_compiler --version >&5"
2575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2576 *) ac_try_echo=$ac_try;;
2578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2579 $as_echo "$ac_try_echo") >&5
2580 (eval "$ac_compiler --version >&5") 2>&5
2582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); }
2584 { (ac_try="$ac_compiler -v >&5"
2586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2587 *) ac_try_echo=$ac_try;;
2589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2590 $as_echo "$ac_try_echo") >&5
2591 (eval "$ac_compiler -v >&5") 2>&5
2593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); }
2595 { (ac_try="$ac_compiler -V >&5"
2597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2598 *) ac_try_echo=$ac_try;;
2600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2601 $as_echo "$ac_try_echo") >&5
2602 (eval "$ac_compiler -V >&5") 2>&5
2604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }
2607 cat >conftest.$ac_ext <<_ACEOF
2610 cat confdefs.h >>conftest.$ac_ext
2611 cat >>conftest.$ac_ext <<_ACEOF
2612 /* end confdefs.h. */
2622 ac_clean_files_save=$ac_clean_files
2623 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2624 # Try to create an executable without -o first, disregard a.out.
2625 # It will help us diagnose broken compilers, and finding out an intuition
2627 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2628 $as_echo_n "checking for C compiler default output file name... " >&6; }
2629 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2631 # The possible output files:
2632 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2635 for ac_file in $ac_files
2638 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2639 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2644 if { (ac_try="$ac_link_default"
2646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2647 *) ac_try_echo=$ac_try;;
2649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2650 $as_echo "$ac_try_echo") >&5
2651 (eval "$ac_link_default") 2>&5
2653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); }; then
2655 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2656 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2657 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2658 # so that the user can short-circuit this test for compilers unknown to
2660 for ac_file in $ac_files ''
2662 test -f "$ac_file" || continue
2664 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2667 # We found the default executable, but exeext='' is most
2671 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2673 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2675 # We set ac_cv_exeext here because the later test for it is not
2676 # safe: cross compilers may not add the suffix if given an `-o'
2677 # argument, so we may need to know it at that point already.
2678 # Even if this section looks crufty: it has the advantage of
2685 test "$ac_cv_exeext" = no && ac_cv_exeext=
2691 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2692 $as_echo "$ac_file" >&6; }
2693 if test -z "$ac_file"; then
2694 $as_echo "$as_me: failed program was:" >&5
2695 sed 's/^/| /' conftest.$ac_ext >&5
2697 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2698 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2699 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2700 See \`config.log' for more details." >&5
2701 $as_echo "$as_me: error: C compiler cannot create executables
2702 See \`config.log' for more details." >&2;}
2703 { (exit 77); exit 77; }; }; }
2706 ac_exeext=$ac_cv_exeext
2708 # Check that the compiler produces executables we can run. If not, either
2709 # the compiler is broken, or we cross compile.
2710 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2711 $as_echo_n "checking whether the C compiler works... " >&6; }
2712 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2713 # If not cross compiling, check that we can run a simple program.
2714 if test "$cross_compiling" != yes; then
2715 if { ac_try='./$ac_file'
2716 { (case "(($ac_try" in
2717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2718 *) ac_try_echo=$ac_try;;
2720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2721 $as_echo "$ac_try_echo") >&5
2722 (eval "$ac_try") 2>&5
2724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); }; }; then
2728 if test "$cross_compiling" = maybe; then
2731 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2732 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2733 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2734 If you meant to cross compile, use \`--host'.
2735 See \`config.log' for more details." >&5
2736 $as_echo "$as_me: error: cannot run C compiled programs.
2737 If you meant to cross compile, use \`--host'.
2738 See \`config.log' for more details." >&2;}
2739 { (exit 1); exit 1; }; }; }
2743 { $as_echo "$as_me:$LINENO: result: yes" >&5
2744 $as_echo "yes" >&6; }
2746 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2747 ac_clean_files=$ac_clean_files_save
2748 # Check that the compiler produces executables we can run. If not, either
2749 # the compiler is broken, or we cross compile.
2750 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2751 $as_echo_n "checking whether we are cross compiling... " >&6; }
2752 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2753 $as_echo "$cross_compiling" >&6; }
2755 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2756 $as_echo_n "checking for suffix of executables... " >&6; }
2757 if { (ac_try="$ac_link"
2759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2760 *) ac_try_echo=$ac_try;;
2762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2763 $as_echo "$ac_try_echo") >&5
2764 (eval "$ac_link") 2>&5
2766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); }; then
2768 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2769 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2770 # work properly (i.e., refer to `conftest.exe'), while it won't with
2772 for ac_file in conftest.exe conftest conftest.*; do
2773 test -f "$ac_file" || continue
2775 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2776 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2782 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2783 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2784 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2785 See \`config.log' for more details." >&5
2786 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2787 See \`config.log' for more details." >&2;}
2788 { (exit 1); exit 1; }; }; }
2791 rm -f conftest$ac_cv_exeext
2792 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2793 $as_echo "$ac_cv_exeext" >&6; }
2795 rm -f conftest.$ac_ext
2796 EXEEXT=$ac_cv_exeext
2798 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2799 $as_echo_n "checking for suffix of object files... " >&6; }
2800 if test "${ac_cv_objext+set}" = set; then
2801 $as_echo_n "(cached) " >&6
2803 cat >conftest.$ac_ext <<_ACEOF
2806 cat confdefs.h >>conftest.$ac_ext
2807 cat >>conftest.$ac_ext <<_ACEOF
2808 /* end confdefs.h. */
2818 rm -f conftest.o conftest.obj
2819 if { (ac_try="$ac_compile"
2821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2822 *) ac_try_echo=$ac_try;;
2824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2825 $as_echo "$ac_try_echo") >&5
2826 (eval "$ac_compile") 2>&5
2828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); }; then
2830 for ac_file in conftest.o conftest.obj conftest.*; do
2831 test -f "$ac_file" || continue;
2833 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2834 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2839 $as_echo "$as_me: failed program was:" >&5
2840 sed 's/^/| /' conftest.$ac_ext >&5
2842 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2843 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2844 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2845 See \`config.log' for more details." >&5
2846 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2847 See \`config.log' for more details." >&2;}
2848 { (exit 1); exit 1; }; }; }
2851 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2853 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2854 $as_echo "$ac_cv_objext" >&6; }
2855 OBJEXT=$ac_cv_objext
2857 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2858 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2859 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2860 $as_echo_n "(cached) " >&6
2862 cat >conftest.$ac_ext <<_ACEOF
2865 cat confdefs.h >>conftest.$ac_ext
2866 cat >>conftest.$ac_ext <<_ACEOF
2867 /* end confdefs.h. */
2880 rm -f conftest.$ac_objext
2881 if { (ac_try="$ac_compile"
2883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2884 *) ac_try_echo=$ac_try;;
2886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2887 $as_echo "$ac_try_echo") >&5
2888 (eval "$ac_compile") 2>conftest.er1
2890 grep -v '^ *+' conftest.er1 >conftest.err
2892 cat conftest.err >&5
2893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); } && {
2895 test -z "$ac_c_werror_flag" ||
2896 test ! -s conftest.err
2897 } && test -s conftest.$ac_objext; then
2900 $as_echo "$as_me: failed program was:" >&5
2901 sed 's/^/| /' conftest.$ac_ext >&5
2906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2907 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2910 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2911 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2912 if test $ac_compiler_gnu = yes; then
2917 ac_test_CFLAGS=${CFLAGS+set}
2918 ac_save_CFLAGS=$CFLAGS
2919 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2920 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2921 if test "${ac_cv_prog_cc_g+set}" = set; then
2922 $as_echo_n "(cached) " >&6
2924 ac_save_c_werror_flag=$ac_c_werror_flag
2925 ac_c_werror_flag=yes
2928 cat >conftest.$ac_ext <<_ACEOF
2931 cat confdefs.h >>conftest.$ac_ext
2932 cat >>conftest.$ac_ext <<_ACEOF
2933 /* end confdefs.h. */
2943 rm -f conftest.$ac_objext
2944 if { (ac_try="$ac_compile"
2946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2947 *) ac_try_echo=$ac_try;;
2949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2950 $as_echo "$ac_try_echo") >&5
2951 (eval "$ac_compile") 2>conftest.er1
2953 grep -v '^ *+' conftest.er1 >conftest.err
2955 cat conftest.err >&5
2956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); } && {
2958 test -z "$ac_c_werror_flag" ||
2959 test ! -s conftest.err
2960 } && test -s conftest.$ac_objext; then
2963 $as_echo "$as_me: failed program was:" >&5
2964 sed 's/^/| /' conftest.$ac_ext >&5
2967 cat >conftest.$ac_ext <<_ACEOF
2970 cat confdefs.h >>conftest.$ac_ext
2971 cat >>conftest.$ac_ext <<_ACEOF
2972 /* end confdefs.h. */
2982 rm -f conftest.$ac_objext
2983 if { (ac_try="$ac_compile"
2985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986 *) ac_try_echo=$ac_try;;
2988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2989 $as_echo "$ac_try_echo") >&5
2990 (eval "$ac_compile") 2>conftest.er1
2992 grep -v '^ *+' conftest.er1 >conftest.err
2994 cat conftest.err >&5
2995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996 (exit $ac_status); } && {
2997 test -z "$ac_c_werror_flag" ||
2998 test ! -s conftest.err
2999 } && test -s conftest.$ac_objext; then
3002 $as_echo "$as_me: failed program was:" >&5
3003 sed 's/^/| /' conftest.$ac_ext >&5
3005 ac_c_werror_flag=$ac_save_c_werror_flag
3007 cat >conftest.$ac_ext <<_ACEOF
3010 cat confdefs.h >>conftest.$ac_ext
3011 cat >>conftest.$ac_ext <<_ACEOF
3012 /* end confdefs.h. */
3022 rm -f conftest.$ac_objext
3023 if { (ac_try="$ac_compile"
3025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026 *) ac_try_echo=$ac_try;;
3028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3029 $as_echo "$ac_try_echo") >&5
3030 (eval "$ac_compile") 2>conftest.er1
3032 grep -v '^ *+' conftest.er1 >conftest.err
3034 cat conftest.err >&5
3035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); } && {
3037 test -z "$ac_c_werror_flag" ||
3038 test ! -s conftest.err
3039 } && test -s conftest.$ac_objext; then
3042 $as_echo "$as_me: failed program was:" >&5
3043 sed 's/^/| /' conftest.$ac_ext >&5
3048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3055 ac_c_werror_flag=$ac_save_c_werror_flag
3057 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3058 $as_echo "$ac_cv_prog_cc_g" >&6; }
3059 if test "$ac_test_CFLAGS" = set; then
3060 CFLAGS=$ac_save_CFLAGS
3061 elif test $ac_cv_prog_cc_g = yes; then
3062 if test "$GCC" = yes; then
3068 if test "$GCC" = yes; then
3074 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3075 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3076 if test "${ac_cv_prog_cc_c89+set}" = set; then
3077 $as_echo_n "(cached) " >&6
3079 ac_cv_prog_cc_c89=no
3081 cat >conftest.$ac_ext <<_ACEOF
3084 cat confdefs.h >>conftest.$ac_ext
3085 cat >>conftest.$ac_ext <<_ACEOF
3086 /* end confdefs.h. */
3089 #include <sys/types.h>
3090 #include <sys/stat.h>
3091 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3092 struct buf { int x; };
3093 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3094 static char *e (p, i)
3100 static char *f (char * (*g) (char **, int), char **p, ...)
3105 s = g (p, va_arg (v,int));
3110 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3111 function prototypes and stuff, but not '\xHH' hex character constants.
3112 These don't provoke an error unfortunately, instead are silently treated
3113 as 'x'. The following induces an error, until -std is added to get
3114 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3115 array size at least. It's necessary to write '\x00'==0 to get something
3116 that's true only with -std. */
3117 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3119 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3120 inside strings and character constants. */
3122 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3124 int test (int i, double x);
3125 struct s1 {int (*f) (int a);};
3126 struct s2 {int (*f) (double a);};
3127 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3133 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3138 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3139 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3141 CC="$ac_save_CC $ac_arg"
3142 rm -f conftest.$ac_objext
3143 if { (ac_try="$ac_compile"
3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3149 $as_echo "$ac_try_echo") >&5
3150 (eval "$ac_compile") 2>conftest.er1
3152 grep -v '^ *+' conftest.er1 >conftest.err
3154 cat conftest.err >&5
3155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156 (exit $ac_status); } && {
3157 test -z "$ac_c_werror_flag" ||
3158 test ! -s conftest.err
3159 } && test -s conftest.$ac_objext; then
3160 ac_cv_prog_cc_c89=$ac_arg
3162 $as_echo "$as_me: failed program was:" >&5
3163 sed 's/^/| /' conftest.$ac_ext >&5
3168 rm -f core conftest.err conftest.$ac_objext
3169 test "x$ac_cv_prog_cc_c89" != "xno" && break
3171 rm -f conftest.$ac_ext
3176 case "x$ac_cv_prog_cc_c89" in
3178 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3179 $as_echo "none needed" >&6; } ;;
3181 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3182 $as_echo "unsupported" >&6; } ;;
3184 CC="$CC $ac_cv_prog_cc_c89"
3185 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3186 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3191 ac_cpp='$CPP $CPPFLAGS'
3192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3196 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3197 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3198 if test "${lt_cv_path_SED+set}" = set; then
3199 $as_echo_n "(cached) " >&6
3201 # Loop through the user's path and test for sed and gsed.
3202 # Then use that list of sed's as ones to test for truncation.
3203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207 test -z "$as_dir" && as_dir=.
3208 for lt_ac_prog in sed gsed; do
3209 for ac_exec_ext in '' $ac_executable_extensions; do
3210 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3211 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3219 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3220 # along with /bin/sed that truncates output.
3221 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3222 test ! -f $lt_ac_sed && continue
3223 cat /dev/null > conftest.in
3225 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3226 # Check for GNU sed and select it if it is found.
3227 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3228 lt_cv_path_SED=$lt_ac_sed
3232 cat conftest.in conftest.in >conftest.tmp
3233 mv conftest.tmp conftest.in
3234 cp conftest.in conftest.nl
3236 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3237 cmp -s conftest.out conftest.nl || break
3238 # 10000 chars as input seems more than enough
3239 test $lt_ac_count -gt 10 && break
3240 lt_ac_count=`expr $lt_ac_count + 1`
3241 if test $lt_ac_count -gt $lt_ac_max; then
3242 lt_ac_max=$lt_ac_count
3243 lt_cv_path_SED=$lt_ac_sed
3252 { $as_echo "$as_me:$LINENO: result: $SED" >&5
3253 $as_echo "$SED" >&6; }
3255 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3256 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3257 if test "${ac_cv_path_GREP+set}" = set; then
3258 $as_echo_n "(cached) " >&6
3260 if test -z "$GREP"; then
3261 ac_path_GREP_found=false
3262 # Loop through the user's path and test for each of PROGNAME-LIST
3263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3264 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3267 test -z "$as_dir" && as_dir=.
3268 for ac_prog in grep ggrep; do
3269 for ac_exec_ext in '' $ac_executable_extensions; do
3270 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3271 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3272 # Check for GNU ac_path_GREP and select it if it is found.
3273 # Check for GNU $ac_path_GREP
3274 case `"$ac_path_GREP" --version 2>&1` in
3276 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3279 $as_echo_n 0123456789 >"conftest.in"
3282 cat "conftest.in" "conftest.in" >"conftest.tmp"
3283 mv "conftest.tmp" "conftest.in"
3284 cp "conftest.in" "conftest.nl"
3285 $as_echo 'GREP' >> "conftest.nl"
3286 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3287 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3288 ac_count=`expr $ac_count + 1`
3289 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3290 # Best one so far, save it but keep looking for a better one
3291 ac_cv_path_GREP="$ac_path_GREP"
3292 ac_path_GREP_max=$ac_count
3294 # 10*(2^10) chars as input seems more than enough
3295 test $ac_count -gt 10 && break
3297 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3300 $ac_path_GREP_found && break 3
3305 if test -z "$ac_cv_path_GREP"; then
3306 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3307 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3308 { (exit 1); exit 1; }; }
3311 ac_cv_path_GREP=$GREP
3315 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3316 $as_echo "$ac_cv_path_GREP" >&6; }
3317 GREP="$ac_cv_path_GREP"
3320 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3321 $as_echo_n "checking for egrep... " >&6; }
3322 if test "${ac_cv_path_EGREP+set}" = set; then
3323 $as_echo_n "(cached) " >&6
3325 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3326 then ac_cv_path_EGREP="$GREP -E"
3328 if test -z "$EGREP"; then
3329 ac_path_EGREP_found=false
3330 # Loop through the user's path and test for each of PROGNAME-LIST
3331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3332 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3335 test -z "$as_dir" && as_dir=.
3336 for ac_prog in egrep; do
3337 for ac_exec_ext in '' $ac_executable_extensions; do
3338 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3339 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3340 # Check for GNU ac_path_EGREP and select it if it is found.
3341 # Check for GNU $ac_path_EGREP
3342 case `"$ac_path_EGREP" --version 2>&1` in
3344 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3347 $as_echo_n 0123456789 >"conftest.in"
3350 cat "conftest.in" "conftest.in" >"conftest.tmp"
3351 mv "conftest.tmp" "conftest.in"
3352 cp "conftest.in" "conftest.nl"
3353 $as_echo 'EGREP' >> "conftest.nl"
3354 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3355 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3356 ac_count=`expr $ac_count + 1`
3357 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3358 # Best one so far, save it but keep looking for a better one
3359 ac_cv_path_EGREP="$ac_path_EGREP"
3360 ac_path_EGREP_max=$ac_count
3362 # 10*(2^10) chars as input seems more than enough
3363 test $ac_count -gt 10 && break
3365 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3368 $ac_path_EGREP_found && break 3
3373 if test -z "$ac_cv_path_EGREP"; then
3374 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3375 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3376 { (exit 1); exit 1; }; }
3379 ac_cv_path_EGREP=$EGREP
3384 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3385 $as_echo "$ac_cv_path_EGREP" >&6; }
3386 EGREP="$ac_cv_path_EGREP"
3390 # Check whether --with-gnu-ld was given.
3391 if test "${with_gnu_ld+set}" = set; then
3392 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3398 if test "$GCC" = yes; then
3399 # Check if gcc -print-prog-name=ld gives a path.
3400 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3401 $as_echo_n "checking for ld used by $CC... " >&6; }
3404 # gcc leaves a trailing carriage return which upsets mingw
3405 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3407 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3410 # Accept absolute paths.
3412 re_direlt='/[^/][^/]*/\.\./'
3413 # Canonicalize the pathname of ld
3414 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3415 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3416 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3418 test -z "$LD" && LD="$ac_prog"
3421 # If it fails, then pretend we aren't using GCC.
3425 # If it is relative, then search for the first ld in PATH.
3429 elif test "$with_gnu_ld" = yes; then
3430 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
3431 $as_echo_n "checking for GNU ld... " >&6; }
3433 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3434 $as_echo_n "checking for non-GNU ld... " >&6; }
3436 if test "${lt_cv_path_LD+set}" = set; then
3437 $as_echo_n "(cached) " >&6
3439 if test -z "$LD"; then
3440 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3441 for ac_dir in $PATH; do
3443 test -z "$ac_dir" && ac_dir=.
3444 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3445 lt_cv_path_LD="$ac_dir/$ac_prog"
3446 # Check to see if the program is GNU ld. I'd rather use --version,
3447 # but apparently some variants of GNU ld only accept -v.
3448 # Break only if it was the GNU/non-GNU ld that we prefer.
3449 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3450 *GNU* | *'with BFD'*)
3451 test "$with_gnu_ld" != no && break
3454 test "$with_gnu_ld" != yes && break
3461 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3466 if test -n "$LD"; then
3467 { $as_echo "$as_me:$LINENO: result: $LD" >&5
3468 $as_echo "$LD" >&6; }
3470 { $as_echo "$as_me:$LINENO: result: no" >&5
3471 $as_echo "no" >&6; }
3473 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3474 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3475 { (exit 1); exit 1; }; }
3476 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3477 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3478 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3479 $as_echo_n "(cached) " >&6
3481 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3482 case `$LD -v 2>&1 </dev/null` in
3483 *GNU* | *'with BFD'*)
3484 lt_cv_prog_gnu_ld=yes
3487 lt_cv_prog_gnu_ld=no
3491 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3492 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
3493 with_gnu_ld=$lt_cv_prog_gnu_ld
3496 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3497 $as_echo_n "checking for $LD option to reload object files... " >&6; }
3498 if test "${lt_cv_ld_reload_flag+set}" = set; then
3499 $as_echo_n "(cached) " >&6
3501 lt_cv_ld_reload_flag='-r'
3503 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3504 $as_echo "$lt_cv_ld_reload_flag" >&6; }
3505 reload_flag=$lt_cv_ld_reload_flag
3506 case $reload_flag in
3508 *) reload_flag=" $reload_flag" ;;
3510 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3513 if test "$GCC" = yes; then
3514 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3516 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3521 { $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3522 $as_echo_n "checking for BSD-compatible nm... " >&6; }
3523 if test "${lt_cv_path_NM+set}" = set; then
3524 $as_echo_n "(cached) " >&6
3526 if test -n "$NM"; then
3527 # Let the user override the test.
3530 lt_nm_to_check="${ac_tool_prefix}nm"
3531 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3532 lt_nm_to_check="$lt_nm_to_check nm"
3534 for lt_tmp_nm in $lt_nm_to_check; do
3535 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3536 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3538 test -z "$ac_dir" && ac_dir=.
3539 tmp_nm="$ac_dir/$lt_tmp_nm"
3540 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3541 # Check to see if the nm accepts a BSD-compat flag.
3542 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3543 # nm: unknown option "B" ignored
3544 # Tru64's nm complains that /dev/null is an invalid object file
3545 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3546 */dev/null* | *'Invalid file or object type'*)
3547 lt_cv_path_NM="$tmp_nm -B"
3551 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3553 lt_cv_path_NM="$tmp_nm -p"
3557 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3558 continue # so that we can try to find one that supports BSD flags
3567 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3570 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3571 $as_echo "$lt_cv_path_NM" >&6; }
3574 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3575 $as_echo_n "checking whether ln -s works... " >&6; }
3577 if test "$LN_S" = "ln -s"; then
3578 { $as_echo "$as_me:$LINENO: result: yes" >&5
3579 $as_echo "yes" >&6; }
3581 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3582 $as_echo "no, using $LN_S" >&6; }
3585 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
3586 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
3587 if test "${lt_cv_deplibs_check_method+set}" = set; then
3588 $as_echo_n "(cached) " >&6
3590 lt_cv_file_magic_cmd='$MAGIC_CMD'
3591 lt_cv_file_magic_test_file=
3592 lt_cv_deplibs_check_method='unknown'
3593 # Need to set the preceding variable on all platforms that support
3594 # interlibrary dependencies.
3595 # 'none' -- dependencies not supported.
3596 # `unknown' -- same as none, but documents that we really don't know.
3597 # 'pass_all' -- all dependencies passed with no checks.
3598 # 'test_compile' -- check by making test program.
3599 # 'file_magic [[regex]]' -- check by looking for files in library path
3600 # which responds to the $file_magic_cmd with a given extended regex.
3601 # If you have `file' or equivalent on your system and you're not sure
3602 # whether `pass_all' will *always* work, you probably want this one.
3606 lt_cv_deplibs_check_method=pass_all
3610 lt_cv_deplibs_check_method=pass_all
3614 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3615 lt_cv_file_magic_cmd='/usr/bin/file -L'
3616 lt_cv_file_magic_test_file=/shlib/libc.so
3620 # func_win32_libid is a shell function defined in ltmain.sh
3621 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3622 lt_cv_file_magic_cmd='func_win32_libid'
3626 # Base MSYS/MinGW do not provide the 'file' command needed by
3627 # func_win32_libid shell function, so use a weaker test based on 'objdump',
3628 # unless we find 'file', for example because we are cross-compiling.
3629 if ( file / ) >/dev/null 2>&1; then
3630 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3631 lt_cv_file_magic_cmd='func_win32_libid'
3633 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3634 lt_cv_file_magic_cmd='$OBJDUMP -f'
3638 darwin* | rhapsody*)
3639 lt_cv_deplibs_check_method=pass_all
3642 freebsd* | dragonfly*)
3643 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3646 # Not sure whether the presence of OpenBSD here was a mistake.
3647 # Let's accept both of them until this is cleared up.
3648 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3649 lt_cv_file_magic_cmd=/usr/bin/file
3650 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3654 lt_cv_deplibs_check_method=pass_all
3659 lt_cv_deplibs_check_method=pass_all
3662 hpux10.20* | hpux11*)
3663 lt_cv_file_magic_cmd=/usr/bin/file
3666 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3667 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3670 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]'
3671 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3674 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3675 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3681 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3682 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3685 irix5* | irix6* | nonstopux*)
3687 *-32|*"-32 ") libmagic=32-bit;;
3688 *-n32|*"-n32 ") libmagic=N32;;
3689 *-64|*"-64 ") libmagic=64-bit;;
3690 *) libmagic=never-match;;
3692 lt_cv_deplibs_check_method=pass_all
3695 # This must be Linux ELF.
3696 linux* | k*bsd*-gnu)
3697 lt_cv_deplibs_check_method=pass_all
3701 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3702 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3704 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3709 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3710 lt_cv_file_magic_cmd=/usr/bin/file
3711 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3715 lt_cv_deplibs_check_method=unknown
3719 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3720 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3722 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3726 osf3* | osf4* | osf5*)
3727 lt_cv_deplibs_check_method=pass_all
3731 lt_cv_deplibs_check_method=pass_all
3735 lt_cv_deplibs_check_method=pass_all
3739 case $host_vendor in
3741 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]'
3742 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3745 lt_cv_deplibs_check_method=pass_all
3748 lt_cv_file_magic_cmd='/bin/file'
3749 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3752 lt_cv_file_magic_cmd='/bin/file'
3753 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3754 lt_cv_file_magic_test_file=/lib/libc.so
3757 lt_cv_deplibs_check_method=pass_all
3760 lt_cv_deplibs_check_method=pass_all
3765 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3766 lt_cv_deplibs_check_method=pass_all
3771 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3772 $as_echo "$lt_cv_deplibs_check_method" >&6; }
3773 file_magic_cmd=$lt_cv_file_magic_cmd
3774 deplibs_check_method=$lt_cv_deplibs_check_method
3775 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3780 # If no C compiler was specified, use CC.
3783 # If no C compiler flags were specified, use CFLAGS.
3784 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3786 # Allow CC to be a program name with arguments.
3790 # Check whether --enable-libtool-lock was given.
3791 if test "${enable_libtool_lock+set}" = set; then
3792 enableval=$enable_libtool_lock;
3795 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3797 # Some flags need to be propagated to the compiler or linker for good
3801 # Find out which ABI we are using.
3802 echo 'int i;' > conftest.$ac_ext
3803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3804 (eval $ac_compile) 2>&5
3806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); }; then
3808 case `/usr/bin/file conftest.$ac_objext` in
3820 # Find out which ABI we are using.
3821 echo '#line 3821 "configure"' > conftest.$ac_ext
3822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3823 (eval $ac_compile) 2>&5
3825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826 (exit $ac_status); }; then
3827 if test "$lt_cv_prog_gnu_ld" = yes; then
3828 case `/usr/bin/file conftest.$ac_objext` in
3830 LD="${LD-ld} -melf32bsmip"
3833 LD="${LD-ld} -melf32bmipn32"
3836 LD="${LD-ld} -melf64bmip"
3840 case `/usr/bin/file conftest.$ac_objext` in
3856 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
3857 s390*-*linux*|sparc*-*linux*)
3858 # Find out which ABI we are using.
3859 echo 'int i;' > conftest.$ac_ext
3860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3861 (eval $ac_compile) 2>&5
3863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); }; then
3865 case `/usr/bin/file conftest.o` in
3868 x86_64-*kfreebsd*-gnu)
3869 LD="${LD-ld} -m elf_i386_fbsd"
3872 LD="${LD-ld} -m elf_i386"
3874 ppc64-*linux*|powerpc64-*linux*)
3875 LD="${LD-ld} -m elf32ppclinux"
3878 LD="${LD-ld} -m elf_s390"
3881 LD="${LD-ld} -m elf32_sparc"
3888 x86_64-*kfreebsd*-gnu)
3889 LD="${LD-ld} -m elf_x86_64_fbsd"
3892 LD="${LD-ld} -m elf_x86_64"
3894 ppc*-*linux*|powerpc*-*linux*)
3895 LD="${LD-ld} -m elf64ppc"
3898 LD="${LD-ld} -m elf64_s390"
3901 LD="${LD-ld} -m elf64_sparc"
3911 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3912 SAVE_CFLAGS="$CFLAGS"
3913 CFLAGS="$CFLAGS -belf"
3914 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3915 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
3916 if test "${lt_cv_cc_needs_belf+set}" = set; then
3917 $as_echo_n "(cached) " >&6
3920 ac_cpp='$CPP $CPPFLAGS'
3921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3925 cat >conftest.$ac_ext <<_ACEOF
3928 cat confdefs.h >>conftest.$ac_ext
3929 cat >>conftest.$ac_ext <<_ACEOF
3930 /* end confdefs.h. */
3940 rm -f conftest.$ac_objext conftest$ac_exeext
3941 if { (ac_try="$ac_link"
3943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3944 *) ac_try_echo=$ac_try;;
3946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3947 $as_echo "$ac_try_echo") >&5
3948 (eval "$ac_link") 2>conftest.er1
3950 grep -v '^ *+' conftest.er1 >conftest.err
3952 cat conftest.err >&5
3953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954 (exit $ac_status); } && {
3955 test -z "$ac_c_werror_flag" ||
3956 test ! -s conftest.err
3957 } && test -s conftest$ac_exeext && {
3958 test "$cross_compiling" = yes ||
3959 $as_test_x conftest$ac_exeext
3961 lt_cv_cc_needs_belf=yes
3963 $as_echo "$as_me: failed program was:" >&5
3964 sed 's/^/| /' conftest.$ac_ext >&5
3966 lt_cv_cc_needs_belf=no
3969 rm -rf conftest.dSYM
3970 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3971 conftest$ac_exeext conftest.$ac_ext
3973 ac_cpp='$CPP $CPPFLAGS'
3974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3979 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3980 $as_echo "$lt_cv_cc_needs_belf" >&6; }
3981 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3982 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3983 CFLAGS="$SAVE_CFLAGS"
3987 # Find out which ABI we are using.
3988 echo 'int i;' > conftest.$ac_ext
3989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3990 (eval $ac_compile) 2>&5
3992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); }; then
3994 case `/usr/bin/file conftest.o` in
3996 case $lt_cv_prog_gnu_ld in
3997 yes*) LD="${LD-ld} -m elf64_sparc" ;;
3999 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4010 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4011 if test -n "$ac_tool_prefix"; then
4012 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4013 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4014 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4015 $as_echo_n "checking for $ac_word... " >&6; }
4016 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4017 $as_echo_n "(cached) " >&6
4019 if test -n "$DLLTOOL"; then
4020 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4026 test -z "$as_dir" && as_dir=.
4027 for ac_exec_ext in '' $ac_executable_extensions; do
4028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4029 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4030 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4039 DLLTOOL=$ac_cv_prog_DLLTOOL
4040 if test -n "$DLLTOOL"; then
4041 { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4042 $as_echo "$DLLTOOL" >&6; }
4044 { $as_echo "$as_me:$LINENO: result: no" >&5
4045 $as_echo "no" >&6; }
4050 if test -z "$ac_cv_prog_DLLTOOL"; then
4051 ac_ct_DLLTOOL=$DLLTOOL
4052 # Extract the first word of "dlltool", so it can be a program name with args.
4053 set dummy dlltool; ac_word=$2
4054 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4055 $as_echo_n "checking for $ac_word... " >&6; }
4056 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4057 $as_echo_n "(cached) " >&6
4059 if test -n "$ac_ct_DLLTOOL"; then
4060 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4066 test -z "$as_dir" && as_dir=.
4067 for ac_exec_ext in '' $ac_executable_extensions; do
4068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4069 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4070 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4079 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4080 if test -n "$ac_ct_DLLTOOL"; then
4081 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4082 $as_echo "$ac_ct_DLLTOOL" >&6; }
4084 { $as_echo "$as_me:$LINENO: result: no" >&5
4085 $as_echo "no" >&6; }
4088 if test "x$ac_ct_DLLTOOL" = x; then
4091 case $cross_compiling:$ac_tool_warned in
4093 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4094 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4095 ac_tool_warned=yes ;;
4097 DLLTOOL=$ac_ct_DLLTOOL
4100 DLLTOOL="$ac_cv_prog_DLLTOOL"
4103 if test -n "$ac_tool_prefix"; then
4104 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4105 set dummy ${ac_tool_prefix}as; ac_word=$2
4106 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4107 $as_echo_n "checking for $ac_word... " >&6; }
4108 if test "${ac_cv_prog_AS+set}" = set; then
4109 $as_echo_n "(cached) " >&6
4111 if test -n "$AS"; then
4112 ac_cv_prog_AS="$AS" # Let the user override the test.
4114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4118 test -z "$as_dir" && as_dir=.
4119 for ac_exec_ext in '' $ac_executable_extensions; do
4120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4121 ac_cv_prog_AS="${ac_tool_prefix}as"
4122 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4132 if test -n "$AS"; then
4133 { $as_echo "$as_me:$LINENO: result: $AS" >&5
4134 $as_echo "$AS" >&6; }
4136 { $as_echo "$as_me:$LINENO: result: no" >&5
4137 $as_echo "no" >&6; }
4142 if test -z "$ac_cv_prog_AS"; then
4144 # Extract the first word of "as", so it can be a program name with args.
4145 set dummy as; ac_word=$2
4146 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4147 $as_echo_n "checking for $ac_word... " >&6; }
4148 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4149 $as_echo_n "(cached) " >&6
4151 if test -n "$ac_ct_AS"; then
4152 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4158 test -z "$as_dir" && as_dir=.
4159 for ac_exec_ext in '' $ac_executable_extensions; do
4160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4161 ac_cv_prog_ac_ct_AS="as"
4162 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4171 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4172 if test -n "$ac_ct_AS"; then
4173 { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4174 $as_echo "$ac_ct_AS" >&6; }
4176 { $as_echo "$as_me:$LINENO: result: no" >&5
4177 $as_echo "no" >&6; }
4180 if test "x$ac_ct_AS" = x; then
4183 case $cross_compiling:$ac_tool_warned in
4185 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4186 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4187 ac_tool_warned=yes ;;
4195 if test -n "$ac_tool_prefix"; then
4196 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4197 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4198 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4199 $as_echo_n "checking for $ac_word... " >&6; }
4200 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4201 $as_echo_n "(cached) " >&6
4203 if test -n "$OBJDUMP"; then
4204 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210 test -z "$as_dir" && as_dir=.
4211 for ac_exec_ext in '' $ac_executable_extensions; do
4212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4213 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4214 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4223 OBJDUMP=$ac_cv_prog_OBJDUMP
4224 if test -n "$OBJDUMP"; then
4225 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4226 $as_echo "$OBJDUMP" >&6; }
4228 { $as_echo "$as_me:$LINENO: result: no" >&5
4229 $as_echo "no" >&6; }
4234 if test -z "$ac_cv_prog_OBJDUMP"; then
4235 ac_ct_OBJDUMP=$OBJDUMP
4236 # Extract the first word of "objdump", so it can be a program name with args.
4237 set dummy objdump; ac_word=$2
4238 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4239 $as_echo_n "checking for $ac_word... " >&6; }
4240 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4241 $as_echo_n "(cached) " >&6
4243 if test -n "$ac_ct_OBJDUMP"; then
4244 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4250 test -z "$as_dir" && as_dir=.
4251 for ac_exec_ext in '' $ac_executable_extensions; do
4252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4253 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4254 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4263 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4264 if test -n "$ac_ct_OBJDUMP"; then
4265 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4266 $as_echo "$ac_ct_OBJDUMP" >&6; }
4268 { $as_echo "$as_me:$LINENO: result: no" >&5
4269 $as_echo "no" >&6; }
4272 if test "x$ac_ct_OBJDUMP" = x; then
4275 case $cross_compiling:$ac_tool_warned in
4277 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4278 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4279 ac_tool_warned=yes ;;
4281 OBJDUMP=$ac_ct_OBJDUMP
4284 OBJDUMP="$ac_cv_prog_OBJDUMP"
4291 need_locks="$enable_libtool_lock"
4295 ac_cpp='$CPP $CPPFLAGS'
4296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4299 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4300 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4301 # On Suns, sometimes $CPP names a directory.
4302 if test -n "$CPP" && test -d "$CPP"; then
4305 if test -z "$CPP"; then
4306 if test "${ac_cv_prog_CPP+set}" = set; then
4307 $as_echo_n "(cached) " >&6
4309 # Double quotes because CPP needs to be expanded
4310 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4313 for ac_c_preproc_warn_flag in '' yes
4315 # Use a header file that comes with gcc, so configuring glibc
4316 # with a fresh cross-compiler works.
4317 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4318 # <limits.h> exists even on freestanding compilers.
4319 # On the NeXT, cc -E runs the code through the compiler's parser,
4320 # not just through cpp. "Syntax error" is here to catch this case.
4321 cat >conftest.$ac_ext <<_ACEOF
4324 cat confdefs.h >>conftest.$ac_ext
4325 cat >>conftest.$ac_ext <<_ACEOF
4326 /* end confdefs.h. */
4328 # include <limits.h>
4330 # include <assert.h>
4334 if { (ac_try="$ac_cpp conftest.$ac_ext"
4336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4337 *) ac_try_echo=$ac_try;;
4339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4340 $as_echo "$ac_try_echo") >&5
4341 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4343 grep -v '^ *+' conftest.er1 >conftest.err
4345 cat conftest.err >&5
4346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); } >/dev/null && {
4348 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4349 test ! -s conftest.err
4353 $as_echo "$as_me: failed program was:" >&5
4354 sed 's/^/| /' conftest.$ac_ext >&5
4356 # Broken: fails on valid input.
4360 rm -f conftest.err conftest.$ac_ext
4362 # OK, works on sane cases. Now check whether nonexistent headers
4363 # can be detected and how.
4364 cat >conftest.$ac_ext <<_ACEOF
4367 cat confdefs.h >>conftest.$ac_ext
4368 cat >>conftest.$ac_ext <<_ACEOF
4369 /* end confdefs.h. */
4370 #include <ac_nonexistent.h>
4372 if { (ac_try="$ac_cpp conftest.$ac_ext"
4374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4375 *) ac_try_echo=$ac_try;;
4377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4378 $as_echo "$ac_try_echo") >&5
4379 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4381 grep -v '^ *+' conftest.er1 >conftest.err
4383 cat conftest.err >&5
4384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); } >/dev/null && {
4386 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4387 test ! -s conftest.err
4389 # Broken: success on invalid input.
4392 $as_echo "$as_me: failed program was:" >&5
4393 sed 's/^/| /' conftest.$ac_ext >&5
4395 # Passes both tests.
4400 rm -f conftest.err conftest.$ac_ext
4403 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4404 rm -f conftest.err conftest.$ac_ext
4405 if $ac_preproc_ok; then
4417 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4418 $as_echo "$CPP" >&6; }
4420 for ac_c_preproc_warn_flag in '' yes
4422 # Use a header file that comes with gcc, so configuring glibc
4423 # with a fresh cross-compiler works.
4424 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4425 # <limits.h> exists even on freestanding compilers.
4426 # On the NeXT, cc -E runs the code through the compiler's parser,
4427 # not just through cpp. "Syntax error" is here to catch this case.
4428 cat >conftest.$ac_ext <<_ACEOF
4431 cat confdefs.h >>conftest.$ac_ext
4432 cat >>conftest.$ac_ext <<_ACEOF
4433 /* end confdefs.h. */
4435 # include <limits.h>
4437 # include <assert.h>
4441 if { (ac_try="$ac_cpp conftest.$ac_ext"
4443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4444 *) ac_try_echo=$ac_try;;
4446 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4447 $as_echo "$ac_try_echo") >&5
4448 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4450 grep -v '^ *+' conftest.er1 >conftest.err
4452 cat conftest.err >&5
4453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454 (exit $ac_status); } >/dev/null && {
4455 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4456 test ! -s conftest.err
4460 $as_echo "$as_me: failed program was:" >&5
4461 sed 's/^/| /' conftest.$ac_ext >&5
4463 # Broken: fails on valid input.
4467 rm -f conftest.err conftest.$ac_ext
4469 # OK, works on sane cases. Now check whether nonexistent headers
4470 # can be detected and how.
4471 cat >conftest.$ac_ext <<_ACEOF
4474 cat confdefs.h >>conftest.$ac_ext
4475 cat >>conftest.$ac_ext <<_ACEOF
4476 /* end confdefs.h. */
4477 #include <ac_nonexistent.h>
4479 if { (ac_try="$ac_cpp conftest.$ac_ext"
4481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4482 *) ac_try_echo=$ac_try;;
4484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4485 $as_echo "$ac_try_echo") >&5
4486 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4488 grep -v '^ *+' conftest.er1 >conftest.err
4490 cat conftest.err >&5
4491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); } >/dev/null && {
4493 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4494 test ! -s conftest.err
4496 # Broken: success on invalid input.
4499 $as_echo "$as_me: failed program was:" >&5
4500 sed 's/^/| /' conftest.$ac_ext >&5
4502 # Passes both tests.
4507 rm -f conftest.err conftest.$ac_ext
4510 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4511 rm -f conftest.err conftest.$ac_ext
4512 if $ac_preproc_ok; then
4515 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4516 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4517 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4518 See \`config.log' for more details." >&5
4519 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4520 See \`config.log' for more details." >&2;}
4521 { (exit 1); exit 1; }; }; }
4525 ac_cpp='$CPP $CPPFLAGS'
4526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4531 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4532 $as_echo_n "checking for ANSI C header files... " >&6; }
4533 if test "${ac_cv_header_stdc+set}" = set; then
4534 $as_echo_n "(cached) " >&6
4536 cat >conftest.$ac_ext <<_ACEOF
4539 cat confdefs.h >>conftest.$ac_ext
4540 cat >>conftest.$ac_ext <<_ACEOF
4541 /* end confdefs.h. */
4555 rm -f conftest.$ac_objext
4556 if { (ac_try="$ac_compile"
4558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4559 *) ac_try_echo=$ac_try;;
4561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4562 $as_echo "$ac_try_echo") >&5
4563 (eval "$ac_compile") 2>conftest.er1
4565 grep -v '^ *+' conftest.er1 >conftest.err
4567 cat conftest.err >&5
4568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); } && {
4570 test -z "$ac_c_werror_flag" ||
4571 test ! -s conftest.err
4572 } && test -s conftest.$ac_objext; then
4573 ac_cv_header_stdc=yes
4575 $as_echo "$as_me: failed program was:" >&5
4576 sed 's/^/| /' conftest.$ac_ext >&5
4578 ac_cv_header_stdc=no
4581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4583 if test $ac_cv_header_stdc = yes; then
4584 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4585 cat >conftest.$ac_ext <<_ACEOF
4588 cat confdefs.h >>conftest.$ac_ext
4589 cat >>conftest.$ac_ext <<_ACEOF
4590 /* end confdefs.h. */
4594 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4595 $EGREP "memchr" >/dev/null 2>&1; then
4598 ac_cv_header_stdc=no
4604 if test $ac_cv_header_stdc = yes; then
4605 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4606 cat >conftest.$ac_ext <<_ACEOF
4609 cat confdefs.h >>conftest.$ac_ext
4610 cat >>conftest.$ac_ext <<_ACEOF
4611 /* end confdefs.h. */
4615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4616 $EGREP "free" >/dev/null 2>&1; then
4619 ac_cv_header_stdc=no
4625 if test $ac_cv_header_stdc = yes; then
4626 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4627 if test "$cross_compiling" = yes; then
4630 cat >conftest.$ac_ext <<_ACEOF
4633 cat confdefs.h >>conftest.$ac_ext
4634 cat >>conftest.$ac_ext <<_ACEOF
4635 /* end confdefs.h. */
4638 #if ((' ' & 0x0FF) == 0x020)
4639 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4640 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4642 # define ISLOWER(c) \
4643 (('a' <= (c) && (c) <= 'i') \
4644 || ('j' <= (c) && (c) <= 'r') \
4645 || ('s' <= (c) && (c) <= 'z'))
4646 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4649 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4654 for (i = 0; i < 256; i++)
4655 if (XOR (islower (i), ISLOWER (i))
4656 || toupper (i) != TOUPPER (i))
4661 rm -f conftest$ac_exeext
4662 if { (ac_try="$ac_link"
4664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4665 *) ac_try_echo=$ac_try;;
4667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4668 $as_echo "$ac_try_echo") >&5
4669 (eval "$ac_link") 2>&5
4671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4673 { (case "(($ac_try" in
4674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4675 *) ac_try_echo=$ac_try;;
4677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4678 $as_echo "$ac_try_echo") >&5
4679 (eval "$ac_try") 2>&5
4681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); }; }; then
4685 $as_echo "$as_me: program exited with status $ac_status" >&5
4686 $as_echo "$as_me: failed program was:" >&5
4687 sed 's/^/| /' conftest.$ac_ext >&5
4690 ac_cv_header_stdc=no
4692 rm -rf conftest.dSYM
4693 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4699 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4700 $as_echo "$ac_cv_header_stdc" >&6; }
4701 if test $ac_cv_header_stdc = yes; then
4703 cat >>confdefs.h <<\_ACEOF
4704 #define STDC_HEADERS 1
4709 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4719 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4720 inttypes.h stdint.h unistd.h
4722 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4723 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4724 $as_echo_n "checking for $ac_header... " >&6; }
4725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4726 $as_echo_n "(cached) " >&6
4728 cat >conftest.$ac_ext <<_ACEOF
4731 cat confdefs.h >>conftest.$ac_ext
4732 cat >>conftest.$ac_ext <<_ACEOF
4733 /* end confdefs.h. */
4734 $ac_includes_default
4736 #include <$ac_header>
4738 rm -f conftest.$ac_objext
4739 if { (ac_try="$ac_compile"
4741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4742 *) ac_try_echo=$ac_try;;
4744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4745 $as_echo "$ac_try_echo") >&5
4746 (eval "$ac_compile") 2>conftest.er1
4748 grep -v '^ *+' conftest.er1 >conftest.err
4750 cat conftest.err >&5
4751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); } && {
4753 test -z "$ac_c_werror_flag" ||
4754 test ! -s conftest.err
4755 } && test -s conftest.$ac_objext; then
4756 eval "$as_ac_Header=yes"
4758 $as_echo "$as_me: failed program was:" >&5
4759 sed 's/^/| /' conftest.$ac_ext >&5
4761 eval "$as_ac_Header=no"
4764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4766 ac_res=`eval 'as_val=${'$as_ac_Header'}
4767 $as_echo "$as_val"'`
4768 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4769 $as_echo "$ac_res" >&6; }
4770 as_val=`eval 'as_val=${'$as_ac_Header'}
4771 $as_echo "$as_val"'`
4772 if test "x$as_val" = x""yes; then
4773 cat >>confdefs.h <<_ACEOF
4774 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4783 for ac_header in dlfcn.h
4785 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4787 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4788 $as_echo_n "checking for $ac_header... " >&6; }
4789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4790 $as_echo_n "(cached) " >&6
4792 ac_res=`eval 'as_val=${'$as_ac_Header'}
4793 $as_echo "$as_val"'`
4794 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4795 $as_echo "$ac_res" >&6; }
4797 # Is the header compilable?
4798 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4799 $as_echo_n "checking $ac_header usability... " >&6; }
4800 cat >conftest.$ac_ext <<_ACEOF
4803 cat confdefs.h >>conftest.$ac_ext
4804 cat >>conftest.$ac_ext <<_ACEOF
4805 /* end confdefs.h. */
4806 $ac_includes_default
4807 #include <$ac_header>
4809 rm -f conftest.$ac_objext
4810 if { (ac_try="$ac_compile"
4812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4813 *) ac_try_echo=$ac_try;;
4815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4816 $as_echo "$ac_try_echo") >&5
4817 (eval "$ac_compile") 2>conftest.er1
4819 grep -v '^ *+' conftest.er1 >conftest.err
4821 cat conftest.err >&5
4822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); } && {
4824 test -z "$ac_c_werror_flag" ||
4825 test ! -s conftest.err
4826 } && test -s conftest.$ac_objext; then
4827 ac_header_compiler=yes
4829 $as_echo "$as_me: failed program was:" >&5
4830 sed 's/^/| /' conftest.$ac_ext >&5
4832 ac_header_compiler=no
4835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4836 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4837 $as_echo "$ac_header_compiler" >&6; }
4839 # Is the header present?
4840 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4841 $as_echo_n "checking $ac_header presence... " >&6; }
4842 cat >conftest.$ac_ext <<_ACEOF
4845 cat confdefs.h >>conftest.$ac_ext
4846 cat >>conftest.$ac_ext <<_ACEOF
4847 /* end confdefs.h. */
4848 #include <$ac_header>
4850 if { (ac_try="$ac_cpp conftest.$ac_ext"
4852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4853 *) ac_try_echo=$ac_try;;
4855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4856 $as_echo "$ac_try_echo") >&5
4857 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4859 grep -v '^ *+' conftest.er1 >conftest.err
4861 cat conftest.err >&5
4862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); } >/dev/null && {
4864 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4865 test ! -s conftest.err
4867 ac_header_preproc=yes
4869 $as_echo "$as_me: failed program was:" >&5
4870 sed 's/^/| /' conftest.$ac_ext >&5
4872 ac_header_preproc=no
4875 rm -f conftest.err conftest.$ac_ext
4876 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4877 $as_echo "$ac_header_preproc" >&6; }
4879 # So? What about this header?
4880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4882 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4883 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4884 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4885 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4886 ac_header_preproc=yes
4889 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4890 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4891 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4892 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4893 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4894 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4895 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4896 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4897 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4898 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4899 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4900 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4902 ## ------------------------------------------- ##
4903 ## Report this to expat-bugs@mail.libexpat.org ##
4904 ## ------------------------------------------- ##
4906 ) | sed "s/^/$as_me: WARNING: /" >&2
4909 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4910 $as_echo_n "checking for $ac_header... " >&6; }
4911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4912 $as_echo_n "(cached) " >&6
4914 eval "$as_ac_Header=\$ac_header_preproc"
4916 ac_res=`eval 'as_val=${'$as_ac_Header'}
4917 $as_echo "$as_val"'`
4918 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4919 $as_echo "$ac_res" >&6; }
4922 as_val=`eval 'as_val=${'$as_ac_Header'}
4923 $as_echo "$as_val"'`
4924 if test "x$as_val" = x""yes; then
4925 cat >>confdefs.h <<_ACEOF
4926 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4934 ac_cpp='$CXXCPP $CPPFLAGS'
4935 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4936 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4937 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4938 if test -z "$CXX"; then
4939 if test -n "$CCC"; then
4942 if test -n "$ac_tool_prefix"; then
4943 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4945 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4946 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4947 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4948 $as_echo_n "checking for $ac_word... " >&6; }
4949 if test "${ac_cv_prog_CXX+set}" = set; then
4950 $as_echo_n "(cached) " >&6
4952 if test -n "$CXX"; then
4953 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4959 test -z "$as_dir" && as_dir=.
4960 for ac_exec_ext in '' $ac_executable_extensions; do
4961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4962 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4963 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4973 if test -n "$CXX"; then
4974 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
4975 $as_echo "$CXX" >&6; }
4977 { $as_echo "$as_me:$LINENO: result: no" >&5
4978 $as_echo "no" >&6; }
4982 test -n "$CXX" && break
4985 if test -z "$CXX"; then
4987 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4989 # Extract the first word of "$ac_prog", so it can be a program name with args.
4990 set dummy $ac_prog; ac_word=$2
4991 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4992 $as_echo_n "checking for $ac_word... " >&6; }
4993 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4994 $as_echo_n "(cached) " >&6
4996 if test -n "$ac_ct_CXX"; then
4997 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5003 test -z "$as_dir" && as_dir=.
5004 for ac_exec_ext in '' $ac_executable_extensions; do
5005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5006 ac_cv_prog_ac_ct_CXX="$ac_prog"
5007 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5016 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5017 if test -n "$ac_ct_CXX"; then
5018 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5019 $as_echo "$ac_ct_CXX" >&6; }
5021 { $as_echo "$as_me:$LINENO: result: no" >&5
5022 $as_echo "no" >&6; }
5026 test -n "$ac_ct_CXX" && break
5029 if test "x$ac_ct_CXX" = x; then
5032 case $cross_compiling:$ac_tool_warned in
5034 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5035 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5036 ac_tool_warned=yes ;;
5044 # Provide some information about the compiler.
5045 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5048 { (ac_try="$ac_compiler --version >&5"
5050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5051 *) ac_try_echo=$ac_try;;
5053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5054 $as_echo "$ac_try_echo") >&5
5055 (eval "$ac_compiler --version >&5") 2>&5
5057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058 (exit $ac_status); }
5059 { (ac_try="$ac_compiler -v >&5"
5061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5062 *) ac_try_echo=$ac_try;;
5064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5065 $as_echo "$ac_try_echo") >&5
5066 (eval "$ac_compiler -v >&5") 2>&5
5068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069 (exit $ac_status); }
5070 { (ac_try="$ac_compiler -V >&5"
5072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5073 *) ac_try_echo=$ac_try;;
5075 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5076 $as_echo "$ac_try_echo") >&5
5077 (eval "$ac_compiler -V >&5") 2>&5
5079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080 (exit $ac_status); }
5082 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5083 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5084 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5085 $as_echo_n "(cached) " >&6
5087 cat >conftest.$ac_ext <<_ACEOF
5090 cat confdefs.h >>conftest.$ac_ext
5091 cat >>conftest.$ac_ext <<_ACEOF
5092 /* end confdefs.h. */
5105 rm -f conftest.$ac_objext
5106 if { (ac_try="$ac_compile"
5108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5109 *) ac_try_echo=$ac_try;;
5111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5112 $as_echo "$ac_try_echo") >&5
5113 (eval "$ac_compile") 2>conftest.er1
5115 grep -v '^ *+' conftest.er1 >conftest.err
5117 cat conftest.err >&5
5118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); } && {
5120 test -z "$ac_cxx_werror_flag" ||
5121 test ! -s conftest.err
5122 } && test -s conftest.$ac_objext; then
5125 $as_echo "$as_me: failed program was:" >&5
5126 sed 's/^/| /' conftest.$ac_ext >&5
5131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5132 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5135 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5136 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5137 if test $ac_compiler_gnu = yes; then
5142 ac_test_CXXFLAGS=${CXXFLAGS+set}
5143 ac_save_CXXFLAGS=$CXXFLAGS
5144 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5145 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5146 if test "${ac_cv_prog_cxx_g+set}" = set; then
5147 $as_echo_n "(cached) " >&6
5149 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5150 ac_cxx_werror_flag=yes
5153 cat >conftest.$ac_ext <<_ACEOF
5156 cat confdefs.h >>conftest.$ac_ext
5157 cat >>conftest.$ac_ext <<_ACEOF
5158 /* end confdefs.h. */
5168 rm -f conftest.$ac_objext
5169 if { (ac_try="$ac_compile"
5171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5172 *) ac_try_echo=$ac_try;;
5174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5175 $as_echo "$ac_try_echo") >&5
5176 (eval "$ac_compile") 2>conftest.er1
5178 grep -v '^ *+' conftest.er1 >conftest.err
5180 cat conftest.err >&5
5181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182 (exit $ac_status); } && {
5183 test -z "$ac_cxx_werror_flag" ||
5184 test ! -s conftest.err
5185 } && test -s conftest.$ac_objext; then
5186 ac_cv_prog_cxx_g=yes
5188 $as_echo "$as_me: failed program was:" >&5
5189 sed 's/^/| /' conftest.$ac_ext >&5
5192 cat >conftest.$ac_ext <<_ACEOF
5195 cat confdefs.h >>conftest.$ac_ext
5196 cat >>conftest.$ac_ext <<_ACEOF
5197 /* end confdefs.h. */
5207 rm -f conftest.$ac_objext
5208 if { (ac_try="$ac_compile"
5210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5211 *) ac_try_echo=$ac_try;;
5213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5214 $as_echo "$ac_try_echo") >&5
5215 (eval "$ac_compile") 2>conftest.er1
5217 grep -v '^ *+' conftest.er1 >conftest.err
5219 cat conftest.err >&5
5220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221 (exit $ac_status); } && {
5222 test -z "$ac_cxx_werror_flag" ||
5223 test ! -s conftest.err
5224 } && test -s conftest.$ac_objext; then
5227 $as_echo "$as_me: failed program was:" >&5
5228 sed 's/^/| /' conftest.$ac_ext >&5
5230 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5232 cat >conftest.$ac_ext <<_ACEOF
5235 cat confdefs.h >>conftest.$ac_ext
5236 cat >>conftest.$ac_ext <<_ACEOF
5237 /* end confdefs.h. */
5247 rm -f conftest.$ac_objext
5248 if { (ac_try="$ac_compile"
5250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5251 *) ac_try_echo=$ac_try;;
5253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5254 $as_echo "$ac_try_echo") >&5
5255 (eval "$ac_compile") 2>conftest.er1
5257 grep -v '^ *+' conftest.er1 >conftest.err
5259 cat conftest.err >&5
5260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); } && {
5262 test -z "$ac_cxx_werror_flag" ||
5263 test ! -s conftest.err
5264 } && test -s conftest.$ac_objext; then
5265 ac_cv_prog_cxx_g=yes
5267 $as_echo "$as_me: failed program was:" >&5
5268 sed 's/^/| /' conftest.$ac_ext >&5
5273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5280 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5282 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5283 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5284 if test "$ac_test_CXXFLAGS" = set; then
5285 CXXFLAGS=$ac_save_CXXFLAGS
5286 elif test $ac_cv_prog_cxx_g = yes; then
5287 if test "$GXX" = yes; then
5293 if test "$GXX" = yes; then
5300 ac_cpp='$CXXCPP $CPPFLAGS'
5301 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5302 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5303 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5307 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5308 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5309 (test "X$CXX" != "Xg++"))) ; then
5311 ac_cpp='$CXXCPP $CPPFLAGS'
5312 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5313 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5314 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5315 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5316 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5317 if test -z "$CXXCPP"; then
5318 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5319 $as_echo_n "(cached) " >&6
5321 # Double quotes because CXXCPP needs to be expanded
5322 for CXXCPP in "$CXX -E" "/lib/cpp"
5325 for ac_cxx_preproc_warn_flag in '' yes
5327 # Use a header file that comes with gcc, so configuring glibc
5328 # with a fresh cross-compiler works.
5329 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5330 # <limits.h> exists even on freestanding compilers.
5331 # On the NeXT, cc -E runs the code through the compiler's parser,
5332 # not just through cpp. "Syntax error" is here to catch this case.
5333 cat >conftest.$ac_ext <<_ACEOF
5336 cat confdefs.h >>conftest.$ac_ext
5337 cat >>conftest.$ac_ext <<_ACEOF
5338 /* end confdefs.h. */
5340 # include <limits.h>
5342 # include <assert.h>
5346 if { (ac_try="$ac_cpp conftest.$ac_ext"
5348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5349 *) ac_try_echo=$ac_try;;
5351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5352 $as_echo "$ac_try_echo") >&5
5353 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5355 grep -v '^ *+' conftest.er1 >conftest.err
5357 cat conftest.err >&5
5358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); } >/dev/null && {
5360 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5361 test ! -s conftest.err
5365 $as_echo "$as_me: failed program was:" >&5
5366 sed 's/^/| /' conftest.$ac_ext >&5
5368 # Broken: fails on valid input.
5372 rm -f conftest.err conftest.$ac_ext
5374 # OK, works on sane cases. Now check whether nonexistent headers
5375 # can be detected and how.
5376 cat >conftest.$ac_ext <<_ACEOF
5379 cat confdefs.h >>conftest.$ac_ext
5380 cat >>conftest.$ac_ext <<_ACEOF
5381 /* end confdefs.h. */
5382 #include <ac_nonexistent.h>
5384 if { (ac_try="$ac_cpp conftest.$ac_ext"
5386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5387 *) ac_try_echo=$ac_try;;
5389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5390 $as_echo "$ac_try_echo") >&5
5391 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5393 grep -v '^ *+' conftest.er1 >conftest.err
5395 cat conftest.err >&5
5396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397 (exit $ac_status); } >/dev/null && {
5398 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5399 test ! -s conftest.err
5401 # Broken: success on invalid input.
5404 $as_echo "$as_me: failed program was:" >&5
5405 sed 's/^/| /' conftest.$ac_ext >&5
5407 # Passes both tests.
5412 rm -f conftest.err conftest.$ac_ext
5415 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5416 rm -f conftest.err conftest.$ac_ext
5417 if $ac_preproc_ok; then
5422 ac_cv_prog_CXXCPP=$CXXCPP
5425 CXXCPP=$ac_cv_prog_CXXCPP
5427 ac_cv_prog_CXXCPP=$CXXCPP
5429 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
5430 $as_echo "$CXXCPP" >&6; }
5432 for ac_cxx_preproc_warn_flag in '' yes
5434 # Use a header file that comes with gcc, so configuring glibc
5435 # with a fresh cross-compiler works.
5436 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5437 # <limits.h> exists even on freestanding compilers.
5438 # On the NeXT, cc -E runs the code through the compiler's parser,
5439 # not just through cpp. "Syntax error" is here to catch this case.
5440 cat >conftest.$ac_ext <<_ACEOF
5443 cat confdefs.h >>conftest.$ac_ext
5444 cat >>conftest.$ac_ext <<_ACEOF
5445 /* end confdefs.h. */
5447 # include <limits.h>
5449 # include <assert.h>
5453 if { (ac_try="$ac_cpp conftest.$ac_ext"
5455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5456 *) ac_try_echo=$ac_try;;
5458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5459 $as_echo "$ac_try_echo") >&5
5460 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5462 grep -v '^ *+' conftest.er1 >conftest.err
5464 cat conftest.err >&5
5465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466 (exit $ac_status); } >/dev/null && {
5467 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5468 test ! -s conftest.err
5472 $as_echo "$as_me: failed program was:" >&5
5473 sed 's/^/| /' conftest.$ac_ext >&5
5475 # Broken: fails on valid input.
5479 rm -f conftest.err conftest.$ac_ext
5481 # OK, works on sane cases. Now check whether nonexistent headers
5482 # can be detected and how.
5483 cat >conftest.$ac_ext <<_ACEOF
5486 cat confdefs.h >>conftest.$ac_ext
5487 cat >>conftest.$ac_ext <<_ACEOF
5488 /* end confdefs.h. */
5489 #include <ac_nonexistent.h>
5491 if { (ac_try="$ac_cpp conftest.$ac_ext"
5493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5494 *) ac_try_echo=$ac_try;;
5496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5497 $as_echo "$ac_try_echo") >&5
5498 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5500 grep -v '^ *+' conftest.er1 >conftest.err
5502 cat conftest.err >&5
5503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); } >/dev/null && {
5505 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5506 test ! -s conftest.err
5508 # Broken: success on invalid input.
5511 $as_echo "$as_me: failed program was:" >&5
5512 sed 's/^/| /' conftest.$ac_ext >&5
5514 # Passes both tests.
5519 rm -f conftest.err conftest.$ac_ext
5522 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5523 rm -f conftest.err conftest.$ac_ext
5524 if $ac_preproc_ok; then
5527 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5528 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5529 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5530 See \`config.log' for more details." >&5
5531 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5532 See \`config.log' for more details." >&2;}
5533 { (exit 1); exit 1; }; }; }
5537 ac_cpp='$CXXCPP $CPPFLAGS'
5538 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5539 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5540 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5546 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5547 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5548 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5549 if test -n "$ac_tool_prefix"; then
5550 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
5552 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5553 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5554 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5555 $as_echo_n "checking for $ac_word... " >&6; }
5556 if test "${ac_cv_prog_F77+set}" = set; then
5557 $as_echo_n "(cached) " >&6
5559 if test -n "$F77"; then
5560 ac_cv_prog_F77="$F77" # Let the user override the test.
5562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5566 test -z "$as_dir" && as_dir=.
5567 for ac_exec_ext in '' $ac_executable_extensions; do
5568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5569 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5570 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5580 if test -n "$F77"; then
5581 { $as_echo "$as_me:$LINENO: result: $F77" >&5
5582 $as_echo "$F77" >&6; }
5584 { $as_echo "$as_me:$LINENO: result: no" >&5
5585 $as_echo "no" >&6; }
5589 test -n "$F77" && break
5592 if test -z "$F77"; then
5594 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
5596 # Extract the first word of "$ac_prog", so it can be a program name with args.
5597 set dummy $ac_prog; ac_word=$2
5598 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5599 $as_echo_n "checking for $ac_word... " >&6; }
5600 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5601 $as_echo_n "(cached) " >&6
5603 if test -n "$ac_ct_F77"; then
5604 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5610 test -z "$as_dir" && as_dir=.
5611 for ac_exec_ext in '' $ac_executable_extensions; do
5612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5613 ac_cv_prog_ac_ct_F77="$ac_prog"
5614 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5623 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5624 if test -n "$ac_ct_F77"; then
5625 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5626 $as_echo "$ac_ct_F77" >&6; }
5628 { $as_echo "$as_me:$LINENO: result: no" >&5
5629 $as_echo "no" >&6; }
5633 test -n "$ac_ct_F77" && break
5636 if test "x$ac_ct_F77" = x; then
5639 case $cross_compiling:$ac_tool_warned in
5641 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5642 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5643 ac_tool_warned=yes ;;
5650 # Provide some information about the compiler.
5651 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5654 { (ac_try="$ac_compiler --version >&5"
5656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5657 *) ac_try_echo=$ac_try;;
5659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5660 $as_echo "$ac_try_echo") >&5
5661 (eval "$ac_compiler --version >&5") 2>&5
5663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); }
5665 { (ac_try="$ac_compiler -v >&5"
5667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5668 *) ac_try_echo=$ac_try;;
5670 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5671 $as_echo "$ac_try_echo") >&5
5672 (eval "$ac_compiler -v >&5") 2>&5
5674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); }
5676 { (ac_try="$ac_compiler -V >&5"
5678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5679 *) ac_try_echo=$ac_try;;
5681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5682 $as_echo "$ac_try_echo") >&5
5683 (eval "$ac_compiler -V >&5") 2>&5
5685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686 (exit $ac_status); }
5689 # If we don't use `.F' as extension, the preprocessor is not run on the
5690 # input file. (Note that this only needs to work for GNU compilers.)
5693 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5694 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
5695 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5696 $as_echo_n "(cached) " >&6
5698 cat >conftest.$ac_ext <<_ACEOF
5706 rm -f conftest.$ac_objext
5707 if { (ac_try="$ac_compile"
5709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5710 *) ac_try_echo=$ac_try;;
5712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5713 $as_echo "$ac_try_echo") >&5
5714 (eval "$ac_compile") 2>conftest.er1
5716 grep -v '^ *+' conftest.er1 >conftest.err
5718 cat conftest.err >&5
5719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); } && {
5721 test -z "$ac_f77_werror_flag" ||
5722 test ! -s conftest.err
5723 } && test -s conftest.$ac_objext; then
5726 $as_echo "$as_me: failed program was:" >&5
5727 sed 's/^/| /' conftest.$ac_ext >&5
5732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5733 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5736 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5737 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
5739 ac_test_FFLAGS=${FFLAGS+set}
5740 ac_save_FFLAGS=$FFLAGS
5742 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5743 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
5744 if test "${ac_cv_prog_f77_g+set}" = set; then
5745 $as_echo_n "(cached) " >&6
5748 cat >conftest.$ac_ext <<_ACEOF
5753 rm -f conftest.$ac_objext
5754 if { (ac_try="$ac_compile"
5756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5757 *) ac_try_echo=$ac_try;;
5759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5760 $as_echo "$ac_try_echo") >&5
5761 (eval "$ac_compile") 2>conftest.er1
5763 grep -v '^ *+' conftest.er1 >conftest.err
5765 cat conftest.err >&5
5766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); } && {
5768 test -z "$ac_f77_werror_flag" ||
5769 test ! -s conftest.err
5770 } && test -s conftest.$ac_objext; then
5771 ac_cv_prog_f77_g=yes
5773 $as_echo "$as_me: failed program was:" >&5
5774 sed 's/^/| /' conftest.$ac_ext >&5
5779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5782 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5783 $as_echo "$ac_cv_prog_f77_g" >&6; }
5784 if test "$ac_test_FFLAGS" = set; then
5785 FFLAGS=$ac_save_FFLAGS
5786 elif test $ac_cv_prog_f77_g = yes; then
5787 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5793 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5800 if test $ac_compiler_gnu = yes; then
5806 ac_cpp='$CPP $CPPFLAGS'
5807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5813 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5814 # find the maximum length of command line arguments
5815 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5816 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5817 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5818 $as_echo_n "(cached) " >&6
5825 # On DJGPP, this test can blow up pretty badly due to problems in libc
5826 # (any single argument exceeding 2000 bytes causes a buffer overrun
5827 # during glob expansion). Even if it were fixed, the result of this
5828 # check would be larger than it should be.
5829 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5833 # Under GNU Hurd, this test is not required because there is
5834 # no limit to the length of command line arguments.
5835 # Libtool will interpret -1 as no limit whatsoever
5836 lt_cv_sys_max_cmd_len=-1;
5840 # On Win9x/ME, this test blows up -- it succeeds, but takes
5841 # about 5 minutes as the teststring grows exponentially.
5842 # Worse, since 9x/ME are not pre-emptively multitasking,
5843 # you end up with a "frozen" computer, even though with patience
5844 # the test eventually succeeds (with a max line length of 256k).
5845 # Instead, let's just punt: use the minimum linelength reported by
5846 # all of the supported platforms: 8192 (on NT/2K/XP).
5847 lt_cv_sys_max_cmd_len=8192;
5851 # On AmigaOS with pdksh, this test takes hours, literally.
5852 # So we just punt and use a minimum line length of 8192.
5853 lt_cv_sys_max_cmd_len=8192;
5856 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5857 # This has been around since 386BSD, at least. Likely further.
5858 if test -x /sbin/sysctl; then
5859 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5860 elif test -x /usr/sbin/sysctl; then
5861 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5863 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5865 # And add a safety zone
5866 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5867 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5871 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5872 lt_cv_sys_max_cmd_len=196608
5876 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5877 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5878 # nice to cause kernel panics so lets avoid the loop below.
5879 # First set a reasonable default.
5880 lt_cv_sys_max_cmd_len=16384
5882 if test -x /sbin/sysconfig; then
5883 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5884 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5889 lt_cv_sys_max_cmd_len=102400
5891 sysv5* | sco5v6* | sysv4.2uw2*)
5892 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5893 if test -n "$kargmax"; then
5894 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5896 lt_cv_sys_max_cmd_len=32768
5900 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5901 if test -n "$lt_cv_sys_max_cmd_len"; then
5902 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5903 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5905 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5906 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5907 = "XX$teststring") >/dev/null 2>&1 &&
5908 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5909 lt_cv_sys_max_cmd_len=$new_result &&
5910 test $i != 17 # 1/2 MB should be enough
5913 teststring=$teststring$teststring
5916 # Add a significant safety factor because C++ compilers can tack on massive
5917 # amounts of additional arguments before passing them to the linker.
5918 # It appears as though 1/2 is a usable value.
5919 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5926 if test -n $lt_cv_sys_max_cmd_len ; then
5927 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5928 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5930 { $as_echo "$as_me:$LINENO: result: none" >&5
5931 $as_echo "none" >&6; }
5938 # Check for command to grab the raw symbol name followed by C symbol from nm.
5939 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5940 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5941 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5942 $as_echo_n "(cached) " >&6
5945 # These are sane defaults that work on at least a few old systems.
5946 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5948 # Character class describing NM global symbol codes.
5949 symcode='[BCDEGRST]'
5951 # Regexp to match symbols that can be accessed directly from C.
5952 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5954 # Transform an extracted symbol line into a proper C declaration
5955 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5957 # Transform an extracted symbol line into symbol name and symbol address
5958 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'"
5960 # Define system-specific variables.
5965 cygwin* | mingw* | pw32*)
5966 symcode='[ABCDGISTW]'
5968 hpux*) # Its linker distinguishes data from code symbols
5969 if test "$host_cpu" = ia64; then
5970 symcode='[ABCDEGRST]'
5972 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5973 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'"
5975 linux* | k*bsd*-gnu)
5976 if test "$host_cpu" = ia64; then
5977 symcode='[ABCDGIRSTW]'
5978 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5979 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'"
5983 symcode='[BCDEGRST]'
5986 symcode='[BCDEGQRST]'
5997 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6005 # Handle CRLF in mingw tool chain
6009 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6013 # If we're using GNU nm, then use its standard symbol codes.
6014 case `$NM -V 2>&1` in
6015 *GNU* | *'with BFD'*)
6016 symcode='[ABCDGIRSTW]' ;;
6019 # Try without a prefix undercore, then with it.
6020 for ac_symprfx in "" "_"; do
6022 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6023 symxfrm="\\1 $ac_symprfx\\2 \\2"
6025 # Write the raw and C identifiers.
6026 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6028 # Check to see that the pipe works correctly.
6032 cat > conftest.$ac_ext <<EOF
6037 void nm_test_func(){}
6041 int main(){nm_test_var='a';nm_test_func();return(0);}
6044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6045 (eval $ac_compile) 2>&5
6047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); }; then
6049 # Now try to grab the symbols.
6051 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6052 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055 (exit $ac_status); } && test -s "$nlist"; then
6056 # Try sorting and uniquifying the output.
6057 if sort "$nlist" | uniq > "$nlist"T; then
6058 mv -f "$nlist"T "$nlist"
6063 # Make sure that we snagged all the symbols we need.
6064 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6065 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6066 cat <<EOF > conftest.$ac_ext
6072 # Now generate the symbol file.
6073 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6075 cat <<EOF >> conftest.$ac_ext
6076 #if defined (__STDC__) && __STDC__
6077 # define lt_ptr_t void *
6079 # define lt_ptr_t char *
6083 /* The mapping between symbol names and symbols. */
6088 lt_preloaded_symbols[] =
6091 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6092 cat <<\EOF >> conftest.$ac_ext
6100 # Now try linking the two files.
6101 mv conftest.$ac_objext conftstm.$ac_objext
6102 lt_save_LIBS="$LIBS"
6103 lt_save_CFLAGS="$CFLAGS"
6104 LIBS="conftstm.$ac_objext"
6105 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6107 (eval $ac_link) 2>&5
6109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6113 LIBS="$lt_save_LIBS"
6114 CFLAGS="$lt_save_CFLAGS"
6116 echo "cannot find nm_test_func in $nlist" >&5
6119 echo "cannot find nm_test_var in $nlist" >&5
6122 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6125 echo "$progname: failed program was:" >&5
6126 cat conftest.$ac_ext >&5
6128 rm -rf conftest* conftst*
6130 # Do not use the global_symbol_pipe unless it works.
6131 if test "$pipe_works" = yes; then
6134 lt_cv_sys_global_symbol_pipe=
6140 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6141 lt_cv_sys_global_symbol_to_cdecl=
6143 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6144 { $as_echo "$as_me:$LINENO: result: failed" >&5
6145 $as_echo "failed" >&6; }
6147 { $as_echo "$as_me:$LINENO: result: ok" >&5
6148 $as_echo "ok" >&6; }
6151 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
6152 $as_echo_n "checking for objdir... " >&6; }
6153 if test "${lt_cv_objdir+set}" = set; then
6154 $as_echo_n "(cached) " >&6
6156 rm -f .libs 2>/dev/null
6157 mkdir .libs 2>/dev/null
6158 if test -d .libs; then
6161 # MS-DOS does not allow filenames that begin with a dot.
6164 rmdir .libs 2>/dev/null
6166 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6167 $as_echo "$lt_cv_objdir" >&6; }
6168 objdir=$lt_cv_objdir
6176 # AIX sometimes has problems with the GCC collect2 program. For some
6177 # reason, if we set the COLLECT_NAMES environment variable, the problems
6178 # vanish in a puff of smoke.
6179 if test "X${COLLECT_NAMES+set}" != Xset; then
6181 export COLLECT_NAMES
6186 # Sed substitution that helps us do robust quoting. It backslashifies
6187 # metacharacters that are still active within double-quoted strings.
6188 Xsed='sed -e 1s/^X//'
6189 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6191 # Same as above, but do not quote variable references.
6192 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6194 # Sed substitution to delay expansion of an escaped shell variable in a
6195 # double_quote_subst'ed string.
6196 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6198 # Sed substitution to avoid accidental globbing in evaled expressions
6199 no_glob_subst='s/\*/\\\*/g'
6205 default_ofile=libtool
6206 can_build_shared=yes
6208 # All known linkers require a `.a' archive for static linking (except MSVC,
6209 # which needs '.lib').
6211 ltmain="$ac_aux_dir/ltmain.sh"
6212 ofile="$default_ofile"
6213 with_gnu_ld="$lt_cv_prog_gnu_ld"
6215 if test -n "$ac_tool_prefix"; then
6216 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6217 set dummy ${ac_tool_prefix}ar; ac_word=$2
6218 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6219 $as_echo_n "checking for $ac_word... " >&6; }
6220 if test "${ac_cv_prog_AR+set}" = set; then
6221 $as_echo_n "(cached) " >&6
6223 if test -n "$AR"; then
6224 ac_cv_prog_AR="$AR" # Let the user override the test.
6226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6230 test -z "$as_dir" && as_dir=.
6231 for ac_exec_ext in '' $ac_executable_extensions; do
6232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6233 ac_cv_prog_AR="${ac_tool_prefix}ar"
6234 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6244 if test -n "$AR"; then
6245 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6246 $as_echo "$AR" >&6; }
6248 { $as_echo "$as_me:$LINENO: result: no" >&5
6249 $as_echo "no" >&6; }
6254 if test -z "$ac_cv_prog_AR"; then
6256 # Extract the first word of "ar", so it can be a program name with args.
6257 set dummy ar; ac_word=$2
6258 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6259 $as_echo_n "checking for $ac_word... " >&6; }
6260 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6261 $as_echo_n "(cached) " >&6
6263 if test -n "$ac_ct_AR"; then
6264 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6270 test -z "$as_dir" && as_dir=.
6271 for ac_exec_ext in '' $ac_executable_extensions; do
6272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6273 ac_cv_prog_ac_ct_AR="ar"
6274 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6283 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6284 if test -n "$ac_ct_AR"; then
6285 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6286 $as_echo "$ac_ct_AR" >&6; }
6288 { $as_echo "$as_me:$LINENO: result: no" >&5
6289 $as_echo "no" >&6; }
6292 if test "x$ac_ct_AR" = x; then
6295 case $cross_compiling:$ac_tool_warned in
6297 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6298 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6299 ac_tool_warned=yes ;;
6307 if test -n "$ac_tool_prefix"; then
6308 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6309 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6310 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6311 $as_echo_n "checking for $ac_word... " >&6; }
6312 if test "${ac_cv_prog_RANLIB+set}" = set; then
6313 $as_echo_n "(cached) " >&6
6315 if test -n "$RANLIB"; then
6316 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6322 test -z "$as_dir" && as_dir=.
6323 for ac_exec_ext in '' $ac_executable_extensions; do
6324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6325 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6326 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6335 RANLIB=$ac_cv_prog_RANLIB
6336 if test -n "$RANLIB"; then
6337 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6338 $as_echo "$RANLIB" >&6; }
6340 { $as_echo "$as_me:$LINENO: result: no" >&5
6341 $as_echo "no" >&6; }
6346 if test -z "$ac_cv_prog_RANLIB"; then
6347 ac_ct_RANLIB=$RANLIB
6348 # Extract the first word of "ranlib", so it can be a program name with args.
6349 set dummy ranlib; ac_word=$2
6350 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6351 $as_echo_n "checking for $ac_word... " >&6; }
6352 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6353 $as_echo_n "(cached) " >&6
6355 if test -n "$ac_ct_RANLIB"; then
6356 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6362 test -z "$as_dir" && as_dir=.
6363 for ac_exec_ext in '' $ac_executable_extensions; do
6364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6365 ac_cv_prog_ac_ct_RANLIB="ranlib"
6366 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6375 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6376 if test -n "$ac_ct_RANLIB"; then
6377 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6378 $as_echo "$ac_ct_RANLIB" >&6; }
6380 { $as_echo "$as_me:$LINENO: result: no" >&5
6381 $as_echo "no" >&6; }
6384 if test "x$ac_ct_RANLIB" = x; then
6387 case $cross_compiling:$ac_tool_warned in
6389 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6390 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6391 ac_tool_warned=yes ;;
6393 RANLIB=$ac_ct_RANLIB
6396 RANLIB="$ac_cv_prog_RANLIB"
6399 if test -n "$ac_tool_prefix"; then
6400 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6401 set dummy ${ac_tool_prefix}strip; ac_word=$2
6402 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6403 $as_echo_n "checking for $ac_word... " >&6; }
6404 if test "${ac_cv_prog_STRIP+set}" = set; then
6405 $as_echo_n "(cached) " >&6
6407 if test -n "$STRIP"; then
6408 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6414 test -z "$as_dir" && as_dir=.
6415 for ac_exec_ext in '' $ac_executable_extensions; do
6416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6417 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6418 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6427 STRIP=$ac_cv_prog_STRIP
6428 if test -n "$STRIP"; then
6429 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6430 $as_echo "$STRIP" >&6; }
6432 { $as_echo "$as_me:$LINENO: result: no" >&5
6433 $as_echo "no" >&6; }
6438 if test -z "$ac_cv_prog_STRIP"; then
6440 # Extract the first word of "strip", so it can be a program name with args.
6441 set dummy strip; ac_word=$2
6442 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6443 $as_echo_n "checking for $ac_word... " >&6; }
6444 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6445 $as_echo_n "(cached) " >&6
6447 if test -n "$ac_ct_STRIP"; then
6448 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6454 test -z "$as_dir" && as_dir=.
6455 for ac_exec_ext in '' $ac_executable_extensions; do
6456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6457 ac_cv_prog_ac_ct_STRIP="strip"
6458 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6467 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6468 if test -n "$ac_ct_STRIP"; then
6469 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6470 $as_echo "$ac_ct_STRIP" >&6; }
6472 { $as_echo "$as_me:$LINENO: result: no" >&5
6473 $as_echo "no" >&6; }
6476 if test "x$ac_ct_STRIP" = x; then
6479 case $cross_compiling:$ac_tool_warned in
6481 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6482 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6483 ac_tool_warned=yes ;;
6488 STRIP="$ac_cv_prog_STRIP"
6493 old_CFLAGS="$CFLAGS"
6495 # Set sane defaults for various variables
6496 test -z "$AR" && AR=ar
6497 test -z "$AR_FLAGS" && AR_FLAGS=cru
6498 test -z "$AS" && AS=as
6499 test -z "$CC" && CC=cc
6500 test -z "$LTCC" && LTCC=$CC
6501 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6502 test -z "$DLLTOOL" && DLLTOOL=dlltool
6503 test -z "$LD" && LD=ld
6504 test -z "$LN_S" && LN_S="ln -s"
6505 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6506 test -z "$NM" && NM=nm
6507 test -z "$SED" && SED=sed
6508 test -z "$OBJDUMP" && OBJDUMP=objdump
6509 test -z "$RANLIB" && RANLIB=:
6510 test -z "$STRIP" && STRIP=:
6511 test -z "$ac_objext" && ac_objext=o
6513 # Determine commands to create old-style static archives.
6514 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6515 old_postinstall_cmds='chmod 644 $oldlib'
6516 old_postuninstall_cmds=
6518 if test -n "$RANLIB"; then
6521 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6524 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6527 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6530 for cc_temp in $compiler""; do
6532 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6533 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6538 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6541 # Only perform the check for file, if the check method requires it
6542 case $deplibs_check_method in
6544 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6545 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6546 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6547 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6548 $as_echo_n "(cached) " >&6
6552 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6555 lt_save_MAGIC_CMD="$MAGIC_CMD"
6556 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6557 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6558 for ac_dir in $ac_dummy; do
6560 test -z "$ac_dir" && ac_dir=.
6561 if test -f $ac_dir/${ac_tool_prefix}file; then
6562 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6563 if test -n "$file_magic_test_file"; then
6564 case $deplibs_check_method in
6566 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6567 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6568 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6569 $EGREP "$file_magic_regex" > /dev/null; then
6574 *** Warning: the command libtool uses to detect shared libraries,
6575 *** $file_magic_cmd, produces output that libtool cannot recognize.
6576 *** The result is that libtool may fail to recognize shared libraries
6577 *** as such. This will affect the creation of libtool libraries that
6578 *** depend on shared libraries, but programs linked with such libtool
6579 *** libraries will work regardless of this problem. Nevertheless, you
6580 *** may want to report the problem to your system manager and/or to
6581 *** bug-libtool@gnu.org
6591 MAGIC_CMD="$lt_save_MAGIC_CMD"
6596 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6597 if test -n "$MAGIC_CMD"; then
6598 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6599 $as_echo "$MAGIC_CMD" >&6; }
6601 { $as_echo "$as_me:$LINENO: result: no" >&5
6602 $as_echo "no" >&6; }
6605 if test -z "$lt_cv_path_MAGIC_CMD"; then
6606 if test -n "$ac_tool_prefix"; then
6607 { $as_echo "$as_me:$LINENO: checking for file" >&5
6608 $as_echo_n "checking for file... " >&6; }
6609 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6610 $as_echo_n "(cached) " >&6
6614 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6617 lt_save_MAGIC_CMD="$MAGIC_CMD"
6618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6619 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6620 for ac_dir in $ac_dummy; do
6622 test -z "$ac_dir" && ac_dir=.
6623 if test -f $ac_dir/file; then
6624 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6625 if test -n "$file_magic_test_file"; then
6626 case $deplibs_check_method in
6628 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6629 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6630 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6631 $EGREP "$file_magic_regex" > /dev/null; then
6636 *** Warning: the command libtool uses to detect shared libraries,
6637 *** $file_magic_cmd, produces output that libtool cannot recognize.
6638 *** The result is that libtool may fail to recognize shared libraries
6639 *** as such. This will affect the creation of libtool libraries that
6640 *** depend on shared libraries, but programs linked with such libtool
6641 *** libraries will work regardless of this problem. Nevertheless, you
6642 *** may want to report the problem to your system manager and/or to
6643 *** bug-libtool@gnu.org
6653 MAGIC_CMD="$lt_save_MAGIC_CMD"
6658 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6659 if test -n "$MAGIC_CMD"; then
6660 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6661 $as_echo "$MAGIC_CMD" >&6; }
6663 { $as_echo "$as_me:$LINENO: result: no" >&5
6664 $as_echo "no" >&6; }
6678 rhapsody* | darwin*)
6679 if test -n "$ac_tool_prefix"; then
6680 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6681 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6682 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6683 $as_echo_n "checking for $ac_word... " >&6; }
6684 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6685 $as_echo_n "(cached) " >&6
6687 if test -n "$DSYMUTIL"; then
6688 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6694 test -z "$as_dir" && as_dir=.
6695 for ac_exec_ext in '' $ac_executable_extensions; do
6696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6697 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6698 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6707 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6708 if test -n "$DSYMUTIL"; then
6709 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6710 $as_echo "$DSYMUTIL" >&6; }
6712 { $as_echo "$as_me:$LINENO: result: no" >&5
6713 $as_echo "no" >&6; }
6718 if test -z "$ac_cv_prog_DSYMUTIL"; then
6719 ac_ct_DSYMUTIL=$DSYMUTIL
6720 # Extract the first word of "dsymutil", so it can be a program name with args.
6721 set dummy dsymutil; ac_word=$2
6722 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6723 $as_echo_n "checking for $ac_word... " >&6; }
6724 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6725 $as_echo_n "(cached) " >&6
6727 if test -n "$ac_ct_DSYMUTIL"; then
6728 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6734 test -z "$as_dir" && as_dir=.
6735 for ac_exec_ext in '' $ac_executable_extensions; do
6736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6737 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6738 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6747 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6748 if test -n "$ac_ct_DSYMUTIL"; then
6749 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6750 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6752 { $as_echo "$as_me:$LINENO: result: no" >&5
6753 $as_echo "no" >&6; }
6756 if test "x$ac_ct_DSYMUTIL" = x; then
6759 case $cross_compiling:$ac_tool_warned in
6761 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6762 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6763 ac_tool_warned=yes ;;
6765 DSYMUTIL=$ac_ct_DSYMUTIL
6768 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6771 if test -n "$ac_tool_prefix"; then
6772 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6773 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6774 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6775 $as_echo_n "checking for $ac_word... " >&6; }
6776 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6777 $as_echo_n "(cached) " >&6
6779 if test -n "$NMEDIT"; then
6780 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6786 test -z "$as_dir" && as_dir=.
6787 for ac_exec_ext in '' $ac_executable_extensions; do
6788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6789 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6790 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6799 NMEDIT=$ac_cv_prog_NMEDIT
6800 if test -n "$NMEDIT"; then
6801 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6802 $as_echo "$NMEDIT" >&6; }
6804 { $as_echo "$as_me:$LINENO: result: no" >&5
6805 $as_echo "no" >&6; }
6810 if test -z "$ac_cv_prog_NMEDIT"; then
6811 ac_ct_NMEDIT=$NMEDIT
6812 # Extract the first word of "nmedit", so it can be a program name with args.
6813 set dummy nmedit; ac_word=$2
6814 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6815 $as_echo_n "checking for $ac_word... " >&6; }
6816 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6817 $as_echo_n "(cached) " >&6
6819 if test -n "$ac_ct_NMEDIT"; then
6820 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6826 test -z "$as_dir" && as_dir=.
6827 for ac_exec_ext in '' $ac_executable_extensions; do
6828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6829 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6830 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6839 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6840 if test -n "$ac_ct_NMEDIT"; then
6841 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6842 $as_echo "$ac_ct_NMEDIT" >&6; }
6844 { $as_echo "$as_me:$LINENO: result: no" >&5
6845 $as_echo "no" >&6; }
6848 if test "x$ac_ct_NMEDIT" = x; then
6851 case $cross_compiling:$ac_tool_warned in
6853 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6854 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6855 ac_tool_warned=yes ;;
6857 NMEDIT=$ac_ct_NMEDIT
6860 NMEDIT="$ac_cv_prog_NMEDIT"
6864 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6865 $as_echo_n "checking for -single_module linker flag... " >&6; }
6866 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6867 $as_echo_n "(cached) " >&6
6869 lt_cv_apple_cc_single_mod=no
6870 if test -z "${LT_MULTI_MODULE}"; then
6871 # By default we will add the -single_module flag. You can override
6872 # by either setting the environment variable LT_MULTI_MODULE
6873 # non-empty at configure time, or by adding -multi_module to the
6875 echo "int foo(void){return 1;}" > conftest.c
6876 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6877 -dynamiclib ${wl}-single_module conftest.c
6878 if test -f libconftest.dylib; then
6879 lt_cv_apple_cc_single_mod=yes
6880 rm -rf libconftest.dylib*
6885 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6886 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6887 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6888 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6889 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6890 $as_echo_n "(cached) " >&6
6892 lt_cv_ld_exported_symbols_list=no
6893 save_LDFLAGS=$LDFLAGS
6894 echo "_main" > conftest.sym
6895 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6896 cat >conftest.$ac_ext <<_ACEOF
6899 cat confdefs.h >>conftest.$ac_ext
6900 cat >>conftest.$ac_ext <<_ACEOF
6901 /* end confdefs.h. */
6911 rm -f conftest.$ac_objext conftest$ac_exeext
6912 if { (ac_try="$ac_link"
6914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6915 *) ac_try_echo=$ac_try;;
6917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6918 $as_echo "$ac_try_echo") >&5
6919 (eval "$ac_link") 2>conftest.er1
6921 grep -v '^ *+' conftest.er1 >conftest.err
6923 cat conftest.err >&5
6924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925 (exit $ac_status); } && {
6926 test -z "$ac_c_werror_flag" ||
6927 test ! -s conftest.err
6928 } && test -s conftest$ac_exeext && {
6929 test "$cross_compiling" = yes ||
6930 $as_test_x conftest$ac_exeext
6932 lt_cv_ld_exported_symbols_list=yes
6934 $as_echo "$as_me: failed program was:" >&5
6935 sed 's/^/| /' conftest.$ac_ext >&5
6937 lt_cv_ld_exported_symbols_list=no
6940 rm -rf conftest.dSYM
6941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6942 conftest$ac_exeext conftest.$ac_ext
6943 LDFLAGS="$save_LDFLAGS"
6946 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6947 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6949 rhapsody* | darwin1.[0123])
6950 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6952 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6954 # if running on 10.5 or later, the deployment target defaults
6955 # to the OS version, if on x86, and 10.4, the deployment
6956 # target defaults to 10.4. Don't you love it?
6957 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6958 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6959 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6961 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6963 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6967 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6968 _lt_dar_single_mod='$single_module'
6970 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6971 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6973 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
6975 if test "$DSYMUTIL" != ":"; then
6976 _lt_dsymutil="~$DSYMUTIL \$lib || :"
6985 enable_win32_dll=yes
6987 # Check whether --enable-libtool-lock was given.
6988 if test "${enable_libtool_lock+set}" = set; then
6989 enableval=$enable_libtool_lock;
6992 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6995 # Check whether --with-pic was given.
6996 if test "${with_pic+set}" = set; then
6997 withval=$with_pic; pic_mode="$withval"
7002 test -z "$pic_mode" && pic_mode=default
7004 # Use C for the default configuration in the libtool script
7008 ac_cpp='$CPP $CPPFLAGS'
7009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7014 # Source file extension for C test sources.
7017 # Object file extension for compiled C test sources.
7021 # Code to be used in simple compile tests
7022 lt_simple_compile_test_code="int some_variable = 0;"
7024 # Code to be used in simple link tests
7025 lt_simple_link_test_code='int main(){return(0);}'
7028 # If no C compiler was specified, use CC.
7031 # If no C compiler flags were specified, use CFLAGS.
7032 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7034 # Allow CC to be a program name with arguments.
7038 # save warnings/boilerplate of simple test code
7039 ac_outfile=conftest.$ac_objext
7040 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7041 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7042 _lt_compiler_boilerplate=`cat conftest.err`
7045 ac_outfile=conftest.$ac_objext
7046 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7047 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7048 _lt_linker_boilerplate=`cat conftest.err`
7053 ## There is no encapsulation within the following macros, do not change
7054 ## the running order or otherwise move them around unless you know exactly
7055 ## what you are doing...
7057 lt_prog_compiler_no_builtin_flag=
7059 if test "$GCC" = yes; then
7060 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7063 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7064 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7065 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7066 $as_echo_n "(cached) " >&6
7068 lt_cv_prog_compiler_rtti_exceptions=no
7069 ac_outfile=conftest.$ac_objext
7070 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7071 lt_compiler_flag="-fno-rtti -fno-exceptions"
7072 # Insert the option either (1) after the last *FLAGS variable, or
7073 # (2) before a word containing "conftest.", or (3) at the end.
7074 # Note that $ac_compile itself does not contain backslashes and begins
7075 # with a dollar sign (not a hyphen), so the echo should work correctly.
7076 # The option is referenced via a variable to avoid confusing sed.
7077 lt_compile=`echo "$ac_compile" | $SED \
7078 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7079 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7080 -e 's:$: $lt_compiler_flag:'`
7081 (eval echo "\"\$as_me:7081: $lt_compile\"" >&5)
7082 (eval "$lt_compile" 2>conftest.err)
7084 cat conftest.err >&5
7085 echo "$as_me:7085: \$? = $ac_status" >&5
7086 if (exit $ac_status) && test -s "$ac_outfile"; then
7087 # The compiler can only warn and ignore the option if not recognized
7088 # So say no if there are warnings other than the usual output.
7089 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7090 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7091 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7092 lt_cv_prog_compiler_rtti_exceptions=yes
7098 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7099 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7101 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7102 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7109 lt_prog_compiler_wl=
7110 lt_prog_compiler_pic=
7111 lt_prog_compiler_static=
7113 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7114 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7116 if test "$GCC" = yes; then
7117 lt_prog_compiler_wl='-Wl,'
7118 lt_prog_compiler_static='-static'
7122 # All AIX code is PIC.
7123 if test "$host_cpu" = ia64; then
7124 # AIX 5 now supports IA64 processor
7125 lt_prog_compiler_static='-Bstatic'
7130 # FIXME: we need at least 68020 code to build shared libraries, but
7131 # adding the `-m68020' flag to GCC prevents building anything better,
7133 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7136 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7137 # PIC is the default for these OSes.
7140 mingw* | cygwin* | pw32* | os2*)
7141 # This hack is so that the source file can tell whether it is being
7142 # built for inclusion in a dll (and should export symbols for example).
7143 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7144 # (--disable-auto-import) libraries
7145 lt_prog_compiler_pic='-DDLL_EXPORT'
7148 darwin* | rhapsody*)
7149 # PIC is the default on this platform
7150 # Common symbols not allowed in MH_DYLIB files
7151 lt_prog_compiler_pic='-fno-common'
7155 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7156 # Instead, we relocate shared libraries at runtime.
7160 # Just because we use GCC doesn't mean we suddenly get shared libraries
7161 # on systems that don't support them.
7162 lt_prog_compiler_can_build_shared=no
7167 if test -d /usr/nec; then
7168 lt_prog_compiler_pic=-Kconform_pic
7173 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7180 lt_prog_compiler_pic='-fPIC'
7186 lt_prog_compiler_pic='-fPIC'
7190 # PORTME Check for flag to pass linker flags through the system compiler.
7193 lt_prog_compiler_wl='-Wl,'
7194 if test "$host_cpu" = ia64; then
7195 # AIX 5 now supports IA64 processor
7196 lt_prog_compiler_static='-Bstatic'
7198 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7202 # PIC is the default on this platform
7203 # Common symbols not allowed in MH_DYLIB files
7204 case $cc_basename in
7206 lt_prog_compiler_pic='-qnocommon'
7207 lt_prog_compiler_wl='-Wl,'
7212 mingw* | cygwin* | pw32* | os2*)
7213 # This hack is so that the source file can tell whether it is being
7214 # built for inclusion in a dll (and should export symbols for example).
7215 lt_prog_compiler_pic='-DDLL_EXPORT'
7218 hpux9* | hpux10* | hpux11*)
7219 lt_prog_compiler_wl='-Wl,'
7220 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7227 lt_prog_compiler_pic='+Z'
7230 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7231 lt_prog_compiler_static='${wl}-a ${wl}archive'
7234 irix5* | irix6* | nonstopux*)
7235 lt_prog_compiler_wl='-Wl,'
7236 # PIC (with -KPIC) is the default.
7237 lt_prog_compiler_static='-non_shared'
7241 lt_prog_compiler_pic='-KPIC'
7242 lt_prog_compiler_static='-Bstatic'
7245 linux* | k*bsd*-gnu)
7246 case $cc_basename in
7248 lt_prog_compiler_wl='-Wl,'
7249 lt_prog_compiler_pic='-KPIC'
7250 lt_prog_compiler_static='-static'
7252 pgcc* | pgf77* | pgf90* | pgf95*)
7253 # Portland Group compilers (*not* the Pentium gcc compiler,
7254 # which looks to be a dead project)
7255 lt_prog_compiler_wl='-Wl,'
7256 lt_prog_compiler_pic='-fpic'
7257 lt_prog_compiler_static='-Bstatic'
7260 lt_prog_compiler_wl='-Wl,'
7261 # All Alpha code is PIC.
7262 lt_prog_compiler_static='-non_shared'
7265 case `$CC -V 2>&1 | sed 5q` in
7268 lt_prog_compiler_pic='-KPIC'
7269 lt_prog_compiler_static='-Bstatic'
7270 lt_prog_compiler_wl='-Wl,'
7273 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7274 lt_prog_compiler_pic='-KPIC'
7275 lt_prog_compiler_static='-Bstatic'
7276 lt_prog_compiler_wl=''
7283 osf3* | osf4* | osf5*)
7284 lt_prog_compiler_wl='-Wl,'
7285 # All OSF/1 code is PIC.
7286 lt_prog_compiler_static='-non_shared'
7290 lt_prog_compiler_static='-non_shared'
7294 lt_prog_compiler_pic='-KPIC'
7295 lt_prog_compiler_static='-Bstatic'
7296 case $cc_basename in
7298 lt_prog_compiler_wl='-Qoption ld ';;
7300 lt_prog_compiler_wl='-Wl,';;
7305 lt_prog_compiler_wl='-Qoption ld '
7306 lt_prog_compiler_pic='-PIC'
7307 lt_prog_compiler_static='-Bstatic'
7310 sysv4 | sysv4.2uw2* | sysv4.3*)
7311 lt_prog_compiler_wl='-Wl,'
7312 lt_prog_compiler_pic='-KPIC'
7313 lt_prog_compiler_static='-Bstatic'
7317 if test -d /usr/nec ;then
7318 lt_prog_compiler_pic='-Kconform_pic'
7319 lt_prog_compiler_static='-Bstatic'
7323 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7324 lt_prog_compiler_wl='-Wl,'
7325 lt_prog_compiler_pic='-KPIC'
7326 lt_prog_compiler_static='-Bstatic'
7330 lt_prog_compiler_wl='-Wl,'
7331 lt_prog_compiler_can_build_shared=no
7335 lt_prog_compiler_pic='-pic'
7336 lt_prog_compiler_static='-Bstatic'
7340 lt_prog_compiler_can_build_shared=no
7345 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7346 $as_echo "$lt_prog_compiler_pic" >&6; }
7349 # Check to make sure the PIC flag actually works.
7351 if test -n "$lt_prog_compiler_pic"; then
7353 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7354 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7355 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7356 $as_echo_n "(cached) " >&6
7358 lt_cv_prog_compiler_pic_works=no
7359 ac_outfile=conftest.$ac_objext
7360 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7361 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7362 # Insert the option either (1) after the last *FLAGS variable, or
7363 # (2) before a word containing "conftest.", or (3) at the end.
7364 # Note that $ac_compile itself does not contain backslashes and begins
7365 # with a dollar sign (not a hyphen), so the echo should work correctly.
7366 # The option is referenced via a variable to avoid confusing sed.
7367 lt_compile=`echo "$ac_compile" | $SED \
7368 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7369 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7370 -e 's:$: $lt_compiler_flag:'`
7371 (eval echo "\"\$as_me:7371: $lt_compile\"" >&5)
7372 (eval "$lt_compile" 2>conftest.err)
7374 cat conftest.err >&5
7375 echo "$as_me:7375: \$? = $ac_status" >&5
7376 if (exit $ac_status) && test -s "$ac_outfile"; then
7377 # The compiler can only warn and ignore the option if not recognized
7378 # So say no if there are warnings other than the usual output.
7379 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7380 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7381 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7382 lt_cv_prog_compiler_pic_works=yes
7388 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7389 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7391 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7392 case $lt_prog_compiler_pic in
7394 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7397 lt_prog_compiler_pic=
7398 lt_prog_compiler_can_build_shared=no
7403 # For platforms which do not support PIC, -DPIC is meaningless:
7405 lt_prog_compiler_pic=
7408 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7413 # Check to make sure the static flag actually works.
7415 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7416 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7417 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7418 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7419 $as_echo_n "(cached) " >&6
7421 lt_cv_prog_compiler_static_works=no
7422 save_LDFLAGS="$LDFLAGS"
7423 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7424 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7425 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7426 # The linker can only warn and ignore the option if not recognized
7427 # So say no if there are warnings
7428 if test -s conftest.err; then
7429 # Append any errors to the config.log.
7430 cat conftest.err 1>&5
7431 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7432 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7433 if diff conftest.exp conftest.er2 >/dev/null; then
7434 lt_cv_prog_compiler_static_works=yes
7437 lt_cv_prog_compiler_static_works=yes
7441 LDFLAGS="$save_LDFLAGS"
7444 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7445 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7447 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7450 lt_prog_compiler_static=
7454 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7455 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7456 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7457 $as_echo_n "(cached) " >&6
7459 lt_cv_prog_compiler_c_o=no
7460 $rm -r conftest 2>/dev/null
7464 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7466 lt_compiler_flag="-o out/conftest2.$ac_objext"
7467 # Insert the option either (1) after the last *FLAGS variable, or
7468 # (2) before a word containing "conftest.", or (3) at the end.
7469 # Note that $ac_compile itself does not contain backslashes and begins
7470 # with a dollar sign (not a hyphen), so the echo should work correctly.
7471 lt_compile=`echo "$ac_compile" | $SED \
7472 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7473 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7474 -e 's:$: $lt_compiler_flag:'`
7475 (eval echo "\"\$as_me:7475: $lt_compile\"" >&5)
7476 (eval "$lt_compile" 2>out/conftest.err)
7478 cat out/conftest.err >&5
7479 echo "$as_me:7479: \$? = $ac_status" >&5
7480 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7482 # The compiler can only warn and ignore the option if not recognized
7483 # So say no if there are warnings
7484 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7485 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7486 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7487 lt_cv_prog_compiler_c_o=yes
7492 # SGI C++ compiler will create directory out/ii_files/ for
7493 # template instantiation
7494 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7495 $rm out/* && rmdir out
7501 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7502 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7505 hard_links="nottested"
7506 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7507 # do not overwrite the value of need_locks provided by the user
7508 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7509 $as_echo_n "checking if we can lock with hard links... " >&6; }
7512 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7514 ln conftest.a conftest.b 2>&5 || hard_links=no
7515 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7516 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
7517 $as_echo "$hard_links" >&6; }
7518 if test "$hard_links" = no; then
7519 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7520 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7527 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7528 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7531 allow_undefined_flag=
7532 enable_shared_with_static_runtimes=no
7534 archive_expsym_cmds=
7535 old_archive_From_new_cmds=
7536 old_archive_from_expsyms_cmds=
7537 export_dynamic_flag_spec=
7538 whole_archive_flag_spec=
7539 thread_safe_flag_spec=
7540 hardcode_libdir_flag_spec=
7541 hardcode_libdir_flag_spec_ld=
7542 hardcode_libdir_separator=
7545 hardcode_shlibpath_var=unsupported
7546 link_all_deplibs=unknown
7547 hardcode_automatic=no
7550 always_export_symbols=no
7551 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7552 # include_expsyms should be a list of space-separated symbols to be *always*
7553 # included in the symbol list
7555 # exclude_expsyms can be an extended regexp of symbols to exclude
7556 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7557 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7558 # as well as any symbol that contains `d'.
7559 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7560 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7561 # platforms (ab)use it in PIC code, but their linkers get confused if
7562 # the symbol is explicitly referenced. Since portable code cannot
7563 # rely on this symbol name, it's probably fine to never include it in
7564 # preloaded symbol tables.
7565 # Exclude shared library initialization/finalization symbols.
7566 extract_expsyms_cmds=
7567 # Just being paranoid about ensuring that cc_basename is set.
7568 for cc_temp in $compiler""; do
7570 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7571 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7576 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7579 cygwin* | mingw* | pw32*)
7580 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7581 # When not using gcc, we currently assume that we are using
7582 # Microsoft Visual C++.
7583 if test "$GCC" != yes; then
7588 # we just hope/assume this is gcc and not c89 (= MSVC++)
7597 if test "$with_gnu_ld" = yes; then
7598 # If archive_cmds runs LD, not CC, wlarc should be empty
7601 # Set some defaults for GNU ld with shared library support. These
7602 # are reset later if shared libraries are not supported. Putting them
7603 # here allows them to be overridden if necessary.
7604 runpath_var=LD_RUN_PATH
7605 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7606 export_dynamic_flag_spec='${wl}--export-dynamic'
7607 # ancient GNU ld didn't support --whole-archive et. al.
7608 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7609 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7611 whole_archive_flag_spec=
7613 supports_anon_versioning=no
7614 case `$LD -v 2>/dev/null` in
7615 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7616 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7617 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7618 *\ 2.11.*) ;; # other 2.11 versions
7619 *) supports_anon_versioning=yes ;;
7622 # See if GNU ld supports shared libraries.
7625 # On AIX/PPC, the GNU linker is very broken
7626 if test "$host_cpu" != ia64; then
7630 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7631 *** to be unable to reliably create shared libraries on AIX.
7632 *** Therefore, libtool is disabling shared libraries support. If you
7633 *** really care for shared libraries, you may want to modify your PATH
7634 *** so that a non-GNU linker is found, and then restart.
7641 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)'
7642 hardcode_libdir_flag_spec='-L$libdir'
7643 hardcode_minus_L=yes
7645 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7646 # that the semantics of dynamic libraries on AmigaOS, at least up
7647 # to version 4, is to share data among multiple programs linked
7648 # with the same dynamic library. Since this doesn't match the
7649 # behavior of shared libraries on other platforms, we can't use
7655 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7656 allow_undefined_flag=unsupported
7657 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7658 # support --undefined. This deserves some investigation. FIXME
7659 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7665 cygwin* | mingw* | pw32*)
7666 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7667 # as there is no search path for DLLs.
7668 hardcode_libdir_flag_spec='-L$libdir'
7669 allow_undefined_flag=unsupported
7670 always_export_symbols=no
7671 enable_shared_with_static_runtimes=yes
7672 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7674 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7675 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7676 # If the export-symbols file already is a .def file (1st line
7677 # is EXPORTS), use it as is; otherwise, prepend...
7678 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7679 cp $export_symbols $output_objdir/$soname.def;
7681 echo EXPORTS > $output_objdir/$soname.def;
7682 cat $export_symbols >> $output_objdir/$soname.def;
7684 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7692 hardcode_shlibpath_var=no
7693 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7694 export_dynamic_flag_spec='${wl}-E'
7695 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7696 # Instead, shared libraries are loaded at an image base (0x10000000 by
7697 # default) and relocated if they conflict, which is a slow very memory
7698 # consuming and fragmenting process. To avoid this, we pick a random,
7699 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7700 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7701 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7702 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'
7705 gnu* | linux* | k*bsd*-gnu)
7706 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7708 case $cc_basename,$host_cpu in
7709 pgcc*) # Portland Group C compiler
7710 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'
7711 tmp_addflag=' $pic_flag'
7713 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7714 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'
7715 tmp_addflag=' $pic_flag -Mnomain' ;;
7716 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7717 tmp_addflag=' -i_dynamic' ;;
7718 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7719 tmp_addflag=' -i_dynamic -nofor_main' ;;
7720 ifc* | ifort*) # Intel Fortran compiler
7721 tmp_addflag=' -nofor_main' ;;
7723 case `$CC -V 2>&1 | sed 5q` in
7724 *Sun\ C*) # Sun C 5.9
7725 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7726 tmp_sharedflag='-G' ;;
7727 *Sun\ F*) # Sun Fortran 8.3
7728 tmp_sharedflag='-G' ;;
7730 tmp_sharedflag='-shared' ;;
7732 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7734 if test $supports_anon_versioning = yes; then
7735 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7736 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7737 $echo "local: *; };" >> $output_objdir/$libname.ver~
7738 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7746 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7747 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7750 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7751 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7756 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7760 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7761 *** create shared libraries on Solaris systems. Therefore, libtool
7762 *** is disabling shared libraries support. We urge you to upgrade GNU
7763 *** binutils to release 2.9.1 or newer. Another option is to modify
7764 *** your PATH or compiler configuration so that the native linker is
7765 *** used, and then restart.
7768 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7769 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7770 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7776 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7777 case `$LD -v 2>&1` in
7778 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7782 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7783 *** reliably create shared libraries on SCO systems. Therefore, libtool
7784 *** is disabling shared libraries support. We urge you to upgrade GNU
7785 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7786 *** your PATH or compiler configuration so that the native linker is
7787 *** used, and then restart.
7792 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7793 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7794 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7795 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7804 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7807 hardcode_shlibpath_var=no
7811 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7812 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7813 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7820 if test "$ld_shlibs" = no; then
7822 hardcode_libdir_flag_spec=
7823 export_dynamic_flag_spec=
7824 whole_archive_flag_spec=
7827 # PORTME fill in a description of your system's linker (not GNU ld)
7830 allow_undefined_flag=unsupported
7831 always_export_symbols=yes
7832 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'
7833 # Note: this linker hardcodes the directories in LIBPATH if there
7834 # are no directories specified by -L.
7835 hardcode_minus_L=yes
7836 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7837 # Neither direct hardcoding nor static linking is supported with a
7839 hardcode_direct=unsupported
7844 if test "$host_cpu" = ia64; then
7845 # On IA64, the linker does run time linking by default, so we don't
7846 # have to do anything special.
7847 aix_use_runtimelinking=no
7848 exp_sym_flag='-Bexport'
7851 # If we're using GNU nm, then we don't want the "-C" option.
7852 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7853 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7854 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'
7856 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'
7858 aix_use_runtimelinking=no
7860 # Test if we are trying to use run time linking or normal
7861 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7862 # need to do runtime linking.
7863 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7864 for ld_flag in $LDFLAGS; do
7865 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7866 aix_use_runtimelinking=yes
7873 exp_sym_flag='-bexport'
7874 no_entry_flag='-bnoentry'
7877 # When large executables or shared objects are built, AIX ld can
7878 # have problems creating the table of contents. If linking a library
7879 # or program results in "error TOC overflow" add -mminimal-toc to
7880 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7881 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7885 hardcode_libdir_separator=':'
7886 link_all_deplibs=yes
7888 if test "$GCC" = yes; then
7889 case $host_os in aix4.[012]|aix4.[012].*)
7890 # We only want to do this on AIX 4.2 and lower, the check
7891 # below for broken collect2 doesn't work under 4.3+
7892 collect2name=`${CC} -print-prog-name=collect2`
7893 if test -f "$collect2name" && \
7894 strings "$collect2name" | grep resolve_lib_name >/dev/null
7896 # We have reworked collect2
7899 # We have old collect2
7900 hardcode_direct=unsupported
7901 # It fails to find uninstalled libraries when the uninstalled
7902 # path is not listed in the libpath. Setting hardcode_minus_L
7903 # to unsupported forces relinking
7904 hardcode_minus_L=yes
7905 hardcode_libdir_flag_spec='-L$libdir'
7906 hardcode_libdir_separator=
7910 shared_flag='-shared'
7911 if test "$aix_use_runtimelinking" = yes; then
7912 shared_flag="$shared_flag "'${wl}-G'
7916 if test "$host_cpu" = ia64; then
7917 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7918 # chokes on -Wl,-G. The following line is correct:
7921 if test "$aix_use_runtimelinking" = yes; then
7922 shared_flag='${wl}-G'
7924 shared_flag='${wl}-bM:SRE'
7929 # It seems that -bexpall does not export symbols beginning with
7930 # underscore (_), so it is better to generate a list of symbols to export.
7931 always_export_symbols=yes
7932 if test "$aix_use_runtimelinking" = yes; then
7933 # Warning - without using the other runtime loading flags (-brtl),
7934 # -berok will link without error, but may produce a broken library.
7935 allow_undefined_flag='-berok'
7936 # Determine the default libpath from the value encoded in an empty executable.
7937 cat >conftest.$ac_ext <<_ACEOF
7940 cat confdefs.h >>conftest.$ac_ext
7941 cat >>conftest.$ac_ext <<_ACEOF
7942 /* end confdefs.h. */
7952 rm -f conftest.$ac_objext conftest$ac_exeext
7953 if { (ac_try="$ac_link"
7955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7956 *) ac_try_echo=$ac_try;;
7958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7959 $as_echo "$ac_try_echo") >&5
7960 (eval "$ac_link") 2>conftest.er1
7962 grep -v '^ *+' conftest.er1 >conftest.err
7964 cat conftest.err >&5
7965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966 (exit $ac_status); } && {
7967 test -z "$ac_c_werror_flag" ||
7968 test ! -s conftest.err
7969 } && test -s conftest$ac_exeext && {
7970 test "$cross_compiling" = yes ||
7971 $as_test_x conftest$ac_exeext
7974 lt_aix_libpath_sed='
7975 /Import File Strings/,/^$/ {
7981 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7982 # Check for a 64-bit object if we didn't find anything.
7983 if test -z "$aix_libpath"; then
7984 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7987 $as_echo "$as_me: failed program was:" >&5
7988 sed 's/^/| /' conftest.$ac_ext >&5
7993 rm -rf conftest.dSYM
7994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7995 conftest$ac_exeext conftest.$ac_ext
7996 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7998 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7999 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"
8001 if test "$host_cpu" = ia64; then
8002 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8003 allow_undefined_flag="-z nodefs"
8004 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"
8006 # Determine the default libpath from the value encoded in an empty executable.
8007 cat >conftest.$ac_ext <<_ACEOF
8010 cat confdefs.h >>conftest.$ac_ext
8011 cat >>conftest.$ac_ext <<_ACEOF
8012 /* end confdefs.h. */
8022 rm -f conftest.$ac_objext conftest$ac_exeext
8023 if { (ac_try="$ac_link"
8025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8026 *) ac_try_echo=$ac_try;;
8028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8029 $as_echo "$ac_try_echo") >&5
8030 (eval "$ac_link") 2>conftest.er1
8032 grep -v '^ *+' conftest.er1 >conftest.err
8034 cat conftest.err >&5
8035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036 (exit $ac_status); } && {
8037 test -z "$ac_c_werror_flag" ||
8038 test ! -s conftest.err
8039 } && test -s conftest$ac_exeext && {
8040 test "$cross_compiling" = yes ||
8041 $as_test_x conftest$ac_exeext
8044 lt_aix_libpath_sed='
8045 /Import File Strings/,/^$/ {
8051 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8052 # Check for a 64-bit object if we didn't find anything.
8053 if test -z "$aix_libpath"; then
8054 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8057 $as_echo "$as_me: failed program was:" >&5
8058 sed 's/^/| /' conftest.$ac_ext >&5
8063 rm -rf conftest.dSYM
8064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8065 conftest$ac_exeext conftest.$ac_ext
8066 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8068 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8069 # Warning - without using the other run time loading flags,
8070 # -berok will link without error, but may produce a broken library.
8071 no_undefined_flag=' ${wl}-bernotok'
8072 allow_undefined_flag=' ${wl}-berok'
8073 # Exported symbols can be pulled into shared objects from archives
8074 whole_archive_flag_spec='$convenience'
8075 archive_cmds_need_lc=yes
8076 # This is similar to how AIX traditionally builds its shared libraries.
8077 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'
8083 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)'
8084 hardcode_libdir_flag_spec='-L$libdir'
8085 hardcode_minus_L=yes
8086 # see comment about different semantics on the GNU ld section
8091 export_dynamic_flag_spec=-rdynamic
8094 cygwin* | mingw* | pw32*)
8095 # When not using gcc, we currently assume that we are using
8096 # Microsoft Visual C++.
8097 # hardcode_libdir_flag_spec is actually meaningless, as there is
8098 # no search path for DLLs.
8099 hardcode_libdir_flag_spec=' '
8100 allow_undefined_flag=unsupported
8101 # Tell ltmain to make .lib files, not .a files.
8103 # Tell ltmain to make .dll files, not .so files.
8105 # FIXME: Setting linknames here is a bad hack.
8106 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8107 # The linker will automatically build a .lib file if we build a DLL.
8108 old_archive_From_new_cmds='true'
8109 # FIXME: Should let the user specify the lib program.
8110 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8111 fix_srcfile_path='`cygpath -w "$srcfile"`'
8112 enable_shared_with_static_runtimes=yes
8115 darwin* | rhapsody*)
8117 rhapsody* | darwin1.[012])
8118 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8121 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8122 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8124 case ${MACOSX_DEPLOYMENT_TARGET} in
8126 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8129 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8135 archive_cmds_need_lc=no
8137 hardcode_automatic=yes
8138 hardcode_shlibpath_var=unsupported
8139 whole_archive_flag_spec=''
8140 link_all_deplibs=yes
8141 if test "$GCC" = yes ; then
8142 output_verbose_link_cmd='echo'
8143 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8144 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8145 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8146 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8148 case $cc_basename in
8150 output_verbose_link_cmd='echo'
8151 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8152 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8153 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8154 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8155 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}'
8165 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8166 hardcode_libdir_flag_spec='-L$libdir'
8167 hardcode_shlibpath_var=no
8174 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8175 # support. Future versions do this automatically, but an explicit c++rt0.o
8176 # does not break anything, and helps significantly (at the cost of a little
8179 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8180 hardcode_libdir_flag_spec='-R$libdir'
8182 hardcode_shlibpath_var=no
8185 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8187 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8189 hardcode_minus_L=yes
8190 hardcode_shlibpath_var=no
8193 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8194 freebsd* | dragonfly*)
8195 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8196 hardcode_libdir_flag_spec='-R$libdir'
8198 hardcode_shlibpath_var=no
8202 if test "$GCC" = yes; then
8203 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'
8205 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'
8207 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8208 hardcode_libdir_separator=:
8211 # hardcode_minus_L: Not really in the search PATH,
8212 # but as the default location of the library.
8213 hardcode_minus_L=yes
8214 export_dynamic_flag_spec='${wl}-E'
8218 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8219 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8221 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8223 if test "$with_gnu_ld" = no; then
8224 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8225 hardcode_libdir_separator=:
8228 export_dynamic_flag_spec='${wl}-E'
8230 # hardcode_minus_L: Not really in the search PATH,
8231 # but as the default location of the library.
8232 hardcode_minus_L=yes
8237 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8240 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8243 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8246 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8252 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8255 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8258 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8262 if test "$with_gnu_ld" = no; then
8263 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8264 hardcode_libdir_separator=:
8268 hardcode_libdir_flag_spec_ld='+b $libdir'
8270 hardcode_shlibpath_var=no
8274 export_dynamic_flag_spec='${wl}-E'
8276 # hardcode_minus_L: Not really in the search PATH,
8277 # but as the default location of the library.
8278 hardcode_minus_L=yes
8284 irix5* | irix6* | nonstopux*)
8285 if test "$GCC" = yes; then
8286 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'
8288 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'
8289 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8291 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8292 hardcode_libdir_separator=:
8293 link_all_deplibs=yes
8297 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8298 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8300 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8302 hardcode_libdir_flag_spec='-R$libdir'
8304 hardcode_shlibpath_var=no
8308 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8310 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8311 hardcode_libdir_separator=:
8312 hardcode_shlibpath_var=no
8316 if test -f /usr/libexec/ld.so; then
8318 hardcode_shlibpath_var=no
8319 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8320 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8321 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8322 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8323 export_dynamic_flag_spec='${wl}-E'
8326 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8327 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8328 hardcode_libdir_flag_spec='-R$libdir'
8331 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8332 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8342 hardcode_libdir_flag_spec='-L$libdir'
8343 hardcode_minus_L=yes
8344 allow_undefined_flag=unsupported
8345 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'
8346 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8350 if test "$GCC" = yes; then
8351 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8352 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'
8354 allow_undefined_flag=' -expect_unresolved \*'
8355 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'
8357 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8358 hardcode_libdir_separator=:
8361 osf4* | osf5*) # as osf3* with the addition of -msym flag
8362 if test "$GCC" = yes; then
8363 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8364 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'
8365 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8367 allow_undefined_flag=' -expect_unresolved \*'
8368 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'
8369 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8370 $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'
8372 # Both c and cxx compiler support -rpath directly
8373 hardcode_libdir_flag_spec='-rpath $libdir'
8375 hardcode_libdir_separator=:
8379 no_undefined_flag=' -z text'
8380 if test "$GCC" = yes; then
8382 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8383 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8384 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8387 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8388 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8389 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8391 hardcode_libdir_flag_spec='-R$libdir'
8392 hardcode_shlibpath_var=no
8394 solaris2.[0-5] | solaris2.[0-5].*) ;;
8396 # The compiler driver will combine and reorder linker options,
8397 # but understands `-z linker_flag'. GCC discards it without `$wl',
8398 # but is careful enough not to reorder.
8399 # Supported since Solaris 2.6 (maybe 2.5.1?)
8400 if test "$GCC" = yes; then
8401 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8403 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8407 link_all_deplibs=yes
8411 if test "x$host_vendor" = xsequent; then
8412 # Use $CC to link under sequent, because it throws in some extra .o
8413 # files that make .init and .fini sections work.
8414 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8416 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8418 hardcode_libdir_flag_spec='-L$libdir'
8420 hardcode_minus_L=yes
8421 hardcode_shlibpath_var=no
8425 case $host_vendor in
8427 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8428 hardcode_direct=yes # is this really true???
8431 ## LD is ld it makes a PLAMLIB
8432 ## CC just makes a GrossModule.
8433 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8434 reload_cmds='$CC -r -o $output$reload_objs'
8438 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8439 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8442 runpath_var='LD_RUN_PATH'
8443 hardcode_shlibpath_var=no
8447 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8448 hardcode_shlibpath_var=no
8449 export_dynamic_flag_spec='-Bexport'
8453 if test -d /usr/nec; then
8454 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8455 hardcode_shlibpath_var=no
8456 runpath_var=LD_RUN_PATH
8457 hardcode_runpath_var=yes
8462 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8463 no_undefined_flag='${wl}-z,text'
8464 archive_cmds_need_lc=no
8465 hardcode_shlibpath_var=no
8466 runpath_var='LD_RUN_PATH'
8468 if test "$GCC" = yes; then
8469 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8470 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8472 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8473 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8477 sysv5* | sco3.2v5* | sco5v6*)
8478 # Note: We can NOT use -z defs as we might desire, because we do not
8479 # link with -lc, and that would cause any symbols used from libc to
8480 # always be unresolved, which means just about no library would
8481 # ever link correctly. If we're not using GNU ld we use -z text
8482 # though, which does catch some bad symbols but isn't as heavy-handed
8484 no_undefined_flag='${wl}-z,text'
8485 allow_undefined_flag='${wl}-z,nodefs'
8486 archive_cmds_need_lc=no
8487 hardcode_shlibpath_var=no
8488 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8489 hardcode_libdir_separator=':'
8490 link_all_deplibs=yes
8491 export_dynamic_flag_spec='${wl}-Bexport'
8492 runpath_var='LD_RUN_PATH'
8494 if test "$GCC" = yes; then
8495 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8496 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8498 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8499 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8504 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8505 hardcode_libdir_flag_spec='-L$libdir'
8506 hardcode_shlibpath_var=no
8515 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8516 $as_echo "$ld_shlibs" >&6; }
8517 test "$ld_shlibs" = no && can_build_shared=no
8520 # Do we need to explicitly link libc?
8522 case "x$archive_cmds_need_lc" in
8524 # Assume -lc should be added
8525 archive_cmds_need_lc=yes
8527 if test "$enable_shared" = yes && test "$GCC" = yes; then
8528 case $archive_cmds in
8530 # FIXME: we may have to deal with multi-command sequences.
8533 # Test whether the compiler implicitly links with -lc since on some
8534 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8535 # to ld, don't add -lc before -lgcc.
8536 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8537 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8539 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8542 (eval $ac_compile) 2>&5
8544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); } 2>conftest.err; then
8548 libobjs=conftest.$ac_objext
8550 wl=$lt_prog_compiler_wl
8551 pic_flag=$lt_prog_compiler_pic
8557 lt_save_allow_undefined_flag=$allow_undefined_flag
8558 allow_undefined_flag=
8559 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8560 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 (exit $ac_status); }
8565 archive_cmds_need_lc=no
8567 archive_cmds_need_lc=yes
8569 allow_undefined_flag=$lt_save_allow_undefined_flag
8571 cat conftest.err 1>&5
8574 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8575 $as_echo "$archive_cmds_need_lc" >&6; }
8582 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8583 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8585 libname_spec='lib$name'
8593 shlibpath_overrides_runpath=unknown
8595 dynamic_linker="$host_os ld.so"
8596 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8598 if test "$GCC" = yes; then
8600 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8601 *) lt_awk_arg="/^libraries:/" ;;
8603 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8604 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8605 # if the path contains ";" then we assume it to be the separator
8606 # otherwise default to the standard path separator (i.e. ":") - it is
8607 # assumed that no part of a normal pathname contains ";" but that should
8608 # okay in the real world where ";" in dirpaths is itself problematic.
8609 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8611 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8613 # Ok, now we have the path, separated by spaces, we can step through it
8614 # and add multilib dir if necessary.
8615 lt_tmp_lt_search_path_spec=
8616 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8617 for lt_sys_path in $lt_search_path_spec; do
8618 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8619 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8621 test -d "$lt_sys_path" && \
8622 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8625 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8626 BEGIN {RS=" "; FS="/|\n";} {
8629 for (lt_i = NF; lt_i > 0; lt_i--) {
8630 if ($lt_i != "" && $lt_i != ".") {
8631 if ($lt_i == "..") {
8634 if (lt_count == 0) {
8635 lt_foo="/" $lt_i lt_foo;
8642 if (lt_foo != "") { lt_freq[lt_foo]++; }
8643 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8645 sys_lib_search_path_spec=`echo $lt_search_path_spec`
8647 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8649 need_lib_prefix=unknown
8650 hardcode_into_libs=no
8652 # when you set need_version to no, make sure it does not cause -set_version
8653 # flags to be left without arguments
8654 need_version=unknown
8659 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8660 shlibpath_var=LIBPATH
8662 # AIX 3 has no versioning support, so we append a major version to the name.
8663 soname_spec='${libname}${release}${shared_ext}$major'
8670 hardcode_into_libs=yes
8671 if test "$host_cpu" = ia64; then
8672 # AIX 5 supports IA64
8673 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8674 shlibpath_var=LD_LIBRARY_PATH
8676 # With GCC up to 2.95.x, collect2 would create an import file
8677 # for dependence libraries. The import file would start with
8678 # the line `#! .'. This would cause the generated library to
8679 # depend on `.', always an invalid library. This was fixed in
8680 # development snapshots of GCC prior to 3.0.
8682 aix4 | aix4.[01] | aix4.[01].*)
8683 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8685 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8692 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8693 # soname into executable. Probably we can add versioning support to
8694 # collect2, so additional links can be useful in future.
8695 if test "$aix_use_runtimelinking" = yes; then
8696 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8697 # instead of lib<name>.a to let people know that these are not
8698 # typical AIX shared libraries.
8699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8701 # We preserve .a as extension for shared libraries through AIX4.2
8702 # and later when we are not doing run time linking.
8703 library_names_spec='${libname}${release}.a $libname.a'
8704 soname_spec='${libname}${release}${shared_ext}$major'
8706 shlibpath_var=LIBPATH
8711 library_names_spec='$libname.ixlibrary $libname.a'
8712 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8713 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'
8717 library_names_spec='${libname}${shared_ext}'
8718 dynamic_linker="$host_os ld.so"
8719 shlibpath_var=LIBRARY_PATH
8725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8726 soname_spec='${libname}${release}${shared_ext}$major'
8727 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8728 shlibpath_var=LD_LIBRARY_PATH
8729 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8730 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8731 # the default ld.so.conf also contains /usr/contrib/lib and
8732 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8733 # libtool to hard-code these into programs
8736 cygwin* | mingw* | pw32*)
8737 version_type=windows
8742 case $GCC,$host_os in
8743 yes,cygwin* | yes,mingw* | yes,pw32*)
8744 library_names_spec='$libname.dll.a'
8745 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8746 postinstall_cmds='base_file=`basename \${file}`~
8747 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8748 dldir=$destdir/`dirname \$dlpath`~
8749 test -d \$dldir || mkdir -p \$dldir~
8750 $install_prog $dir/$dlname \$dldir/$dlname~
8751 chmod a+x \$dldir/$dlname'
8752 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8753 dlpath=$dir/\$dldll~
8755 shlibpath_overrides_runpath=yes
8759 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8760 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8761 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8764 # MinGW DLLs use traditional 'lib' prefix
8765 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8766 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8767 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8768 # It is most probably a Windows format PATH printed by
8769 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8770 # path with ; separators, and with drive letters. We can handle the
8771 # drive letters (cygwin fileutils understands them), so leave them,
8772 # especially as we might pass files found there to a mingw objdump,
8773 # which wouldn't understand a cygwinified path. Ahh.
8774 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8776 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8780 # pw32 DLLs use 'pw' prefix rather than 'lib'
8781 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8787 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8790 dynamic_linker='Win32 ld.exe'
8791 # FIXME: first we should search . and the directory the executable is in
8795 darwin* | rhapsody*)
8796 dynamic_linker="$host_os dyld"
8800 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8801 soname_spec='${libname}${release}${major}$shared_ext'
8802 shlibpath_overrides_runpath=yes
8803 shlibpath_var=DYLD_LIBRARY_PATH
8804 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8806 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8807 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8815 soname_spec='${libname}${release}${shared_ext}$major'
8816 shlibpath_var=LD_LIBRARY_PATH
8823 freebsd* | dragonfly*)
8824 # DragonFly does not have aout. When/if they implement a new
8825 # versioning mechanism, adjust this.
8826 if test -x /usr/bin/objformat; then
8827 objformat=`/usr/bin/objformat`
8830 freebsd[123]*) objformat=aout ;;
8834 version_type=freebsd-$objformat
8835 case $version_type in
8837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8842 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8846 shlibpath_var=LD_LIBRARY_PATH
8849 shlibpath_overrides_runpath=yes
8851 freebsd3.[01]* | freebsdelf3.[01]*)
8852 shlibpath_overrides_runpath=yes
8853 hardcode_into_libs=yes
8855 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8856 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8857 shlibpath_overrides_runpath=no
8858 hardcode_into_libs=yes
8860 *) # from 4.6 on, and DragonFly
8861 shlibpath_overrides_runpath=yes
8862 hardcode_into_libs=yes
8871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8872 soname_spec='${libname}${release}${shared_ext}$major'
8873 shlibpath_var=LD_LIBRARY_PATH
8874 hardcode_into_libs=yes
8877 hpux9* | hpux10* | hpux11*)
8878 # Give a soname corresponding to the major version so that dld.sl refuses to
8879 # link against other versions.
8886 hardcode_into_libs=yes
8887 dynamic_linker="$host_os dld.so"
8888 shlibpath_var=LD_LIBRARY_PATH
8889 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8891 soname_spec='${libname}${release}${shared_ext}$major'
8892 if test "X$HPUX_IA64_MODE" = X32; then
8893 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8895 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8897 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8901 hardcode_into_libs=yes
8902 dynamic_linker="$host_os dld.sl"
8903 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8904 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8906 soname_spec='${libname}${release}${shared_ext}$major'
8907 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8908 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8912 dynamic_linker="$host_os dld.sl"
8913 shlibpath_var=SHLIB_PATH
8914 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8916 soname_spec='${libname}${release}${shared_ext}$major'
8919 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8920 postinstall_cmds='chmod 555 $lib'
8927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8928 soname_spec='${libname}${release}${shared_ext}$major'
8929 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8930 shlibpath_var=LD_LIBRARY_PATH
8931 shlibpath_overrides_runpath=no
8932 hardcode_into_libs=yes
8935 irix5* | irix6* | nonstopux*)
8937 nonstopux*) version_type=nonstopux ;;
8939 if test "$lt_cv_prog_gnu_ld" = yes; then
8947 soname_spec='${libname}${release}${shared_ext}$major'
8948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8950 irix5* | nonstopux*)
8954 case $LD in # libtool.m4 will add one of these switches to LD
8955 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8956 libsuff= shlibsuff= libmagic=32-bit;;
8957 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8958 libsuff=32 shlibsuff=N32 libmagic=N32;;
8959 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8960 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8961 *) libsuff= shlibsuff= libmagic=never-match;;
8965 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8966 shlibpath_overrides_runpath=no
8967 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8968 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8969 hardcode_into_libs=yes
8972 # No shared lib support for Linux oldld, aout, or coff.
8973 linux*oldld* | linux*aout* | linux*coff*)
8977 # This must be Linux ELF.
8978 linux* | k*bsd*-gnu)
8982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8983 soname_spec='${libname}${release}${shared_ext}$major'
8984 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8985 shlibpath_var=LD_LIBRARY_PATH
8986 shlibpath_overrides_runpath=no
8987 # This implies no fast_install, which is unacceptable.
8988 # Some rework will be needed to allow for fast_install
8989 # before this can be enabled.
8990 hardcode_into_libs=yes
8991 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8992 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8994 # Append ld.so.conf contents to the search path
8995 if test -f /etc/ld.so.conf; then
8996 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8997 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9000 # We used to test for /lib/ld.so.1 and disable shared libraries on
9001 # powerpc, because MkLinux only supported shared libraries with the
9002 # GNU dynamic linker. Since this was broken with cross compilers,
9003 # most powerpc-linux boxes support dynamic linking these days and
9004 # people can always --disable-shared, the test was removed, and we
9005 # assume the GNU/Linux dynamic linker is in use.
9006 dynamic_linker='GNU/Linux ld.so'
9013 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9015 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9016 dynamic_linker='NetBSD (a.out) ld.so'
9018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9019 soname_spec='${libname}${release}${shared_ext}$major'
9020 dynamic_linker='NetBSD ld.elf_so'
9022 shlibpath_var=LD_LIBRARY_PATH
9023 shlibpath_overrides_runpath=yes
9024 hardcode_into_libs=yes
9029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9030 shlibpath_var=LD_LIBRARY_PATH
9031 shlibpath_overrides_runpath=yes
9038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9039 soname_spec='${libname}${release}${shared_ext}$major'
9040 shlibpath_var=LD_LIBRARY_PATH
9041 shlibpath_overrides_runpath=yes
9046 sys_lib_dlsearch_path_spec="/usr/lib"
9048 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9050 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9051 *) need_version=no ;;
9053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9054 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9055 shlibpath_var=LD_LIBRARY_PATH
9056 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9058 openbsd2.[89] | openbsd2.[89].*)
9059 shlibpath_overrides_runpath=no
9062 shlibpath_overrides_runpath=yes
9066 shlibpath_overrides_runpath=yes
9071 libname_spec='$name'
9074 library_names_spec='$libname${shared_ext} $libname.a'
9075 dynamic_linker='OS/2 ld.exe'
9076 shlibpath_var=LIBPATH
9079 osf3* | osf4* | osf5*)
9083 soname_spec='${libname}${release}${shared_ext}$major'
9084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9085 shlibpath_var=LD_LIBRARY_PATH
9086 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9087 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9099 soname_spec='${libname}${release}${shared_ext}$major'
9100 shlibpath_var=LD_LIBRARY_PATH
9101 shlibpath_overrides_runpath=yes
9102 hardcode_into_libs=yes
9103 # ldd complains unless libraries are executable
9104 postinstall_cmds='chmod +x $lib'
9109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9110 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9111 shlibpath_var=LD_LIBRARY_PATH
9112 shlibpath_overrides_runpath=yes
9113 if test "$with_gnu_ld" = yes; then
9121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9122 soname_spec='${libname}${release}${shared_ext}$major'
9123 shlibpath_var=LD_LIBRARY_PATH
9124 case $host_vendor in
9126 shlibpath_overrides_runpath=no
9128 export_dynamic_flag_spec='${wl}-Blargedynsym'
9129 runpath_var=LD_RUN_PATH
9137 shlibpath_overrides_runpath=no
9138 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9144 if test -d /usr/nec ;then
9146 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9147 soname_spec='$libname${shared_ext}.$major'
9148 shlibpath_var=LD_LIBRARY_PATH
9152 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9153 version_type=freebsd-elf
9156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9157 soname_spec='${libname}${release}${shared_ext}$major'
9158 shlibpath_var=LD_LIBRARY_PATH
9159 hardcode_into_libs=yes
9160 if test "$with_gnu_ld" = yes; then
9161 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9162 shlibpath_overrides_runpath=no
9164 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9165 shlibpath_overrides_runpath=yes
9168 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9172 sys_lib_dlsearch_path_spec='/usr/lib'
9177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9178 soname_spec='${libname}${release}${shared_ext}$major'
9179 shlibpath_var=LD_LIBRARY_PATH
9186 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9187 $as_echo "$dynamic_linker" >&6; }
9188 test "$dynamic_linker" = no && can_build_shared=no
9190 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9191 $as_echo_n "(cached) " >&6
9193 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9196 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9197 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9198 $as_echo_n "(cached) " >&6
9200 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9203 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9205 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9206 if test "$GCC" = yes; then
9207 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9210 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9211 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9213 if test -n "$hardcode_libdir_flag_spec" || \
9214 test -n "$runpath_var" || \
9215 test "X$hardcode_automatic" = "Xyes" ; then
9217 # We can hardcode non-existant directories.
9218 if test "$hardcode_direct" != no &&
9219 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9220 # have to relink, otherwise we might link with an installed library
9221 # when we should be linking with a yet-to-be-installed one
9222 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9223 test "$hardcode_minus_L" != no; then
9224 # Linking always hardcodes the temporary library directory.
9225 hardcode_action=relink
9227 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9228 hardcode_action=immediate
9231 # We cannot hardcode anything, or else we can only hardcode existing
9233 hardcode_action=unsupported
9235 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9236 $as_echo "$hardcode_action" >&6; }
9238 if test "$hardcode_action" = relink; then
9239 # Fast installation is not supported
9240 enable_fast_install=no
9241 elif test "$shlibpath_overrides_runpath" = yes ||
9242 test "$enable_shared" = no; then
9243 # Fast installation is not necessary
9244 enable_fast_install=needless
9249 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9250 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9251 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9252 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9253 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9254 { $as_echo "$as_me:$LINENO: result: yes" >&5
9255 $as_echo "yes" >&6; }
9257 # FIXME - insert some real tests, host_os isn't really good enough
9260 if test -n "$STRIP" ; then
9261 striplib="$STRIP -x"
9262 old_striplib="$STRIP -S"
9263 { $as_echo "$as_me:$LINENO: result: yes" >&5
9264 $as_echo "yes" >&6; }
9266 { $as_echo "$as_me:$LINENO: result: no" >&5
9267 $as_echo "no" >&6; }
9271 { $as_echo "$as_me:$LINENO: result: no" >&5
9272 $as_echo "no" >&6; }
9277 if test "x$enable_dlopen" != xyes; then
9278 enable_dlopen=unknown
9279 enable_dlopen_self=unknown
9280 enable_dlopen_self_static=unknown
9287 lt_cv_dlopen="load_add_on"
9289 lt_cv_dlopen_self=yes
9293 lt_cv_dlopen="LoadLibrary"
9298 lt_cv_dlopen="dlopen"
9303 # if libdl is installed we need to link against it
9304 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9305 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9306 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9307 $as_echo_n "(cached) " >&6
9309 ac_check_lib_save_LIBS=$LIBS
9311 cat >conftest.$ac_ext <<_ACEOF
9314 cat confdefs.h >>conftest.$ac_ext
9315 cat >>conftest.$ac_ext <<_ACEOF
9316 /* end confdefs.h. */
9318 /* Override any GCC internal prototype to avoid an error.
9319 Use char because int might match the return type of a GCC
9320 builtin and then its argument prototype would still apply. */
9333 rm -f conftest.$ac_objext conftest$ac_exeext
9334 if { (ac_try="$ac_link"
9336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9337 *) ac_try_echo=$ac_try;;
9339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9340 $as_echo "$ac_try_echo") >&5
9341 (eval "$ac_link") 2>conftest.er1
9343 grep -v '^ *+' conftest.er1 >conftest.err
9345 cat conftest.err >&5
9346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 (exit $ac_status); } && {
9348 test -z "$ac_c_werror_flag" ||
9349 test ! -s conftest.err
9350 } && test -s conftest$ac_exeext && {
9351 test "$cross_compiling" = yes ||
9352 $as_test_x conftest$ac_exeext
9354 ac_cv_lib_dl_dlopen=yes
9356 $as_echo "$as_me: failed program was:" >&5
9357 sed 's/^/| /' conftest.$ac_ext >&5
9359 ac_cv_lib_dl_dlopen=no
9362 rm -rf conftest.dSYM
9363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9364 conftest$ac_exeext conftest.$ac_ext
9365 LIBS=$ac_check_lib_save_LIBS
9367 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9368 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9369 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9370 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9375 lt_cv_dlopen_self=yes
9382 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9383 $as_echo_n "checking for shl_load... " >&6; }
9384 if test "${ac_cv_func_shl_load+set}" = set; then
9385 $as_echo_n "(cached) " >&6
9387 cat >conftest.$ac_ext <<_ACEOF
9390 cat confdefs.h >>conftest.$ac_ext
9391 cat >>conftest.$ac_ext <<_ACEOF
9392 /* end confdefs.h. */
9393 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9394 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9395 #define shl_load innocuous_shl_load
9397 /* System header to define __stub macros and hopefully few prototypes,
9398 which can conflict with char shl_load (); below.
9399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9400 <limits.h> exists even on freestanding compilers. */
9403 # include <limits.h>
9405 # include <assert.h>
9410 /* Override any GCC internal prototype to avoid an error.
9411 Use char because int might match the return type of a GCC
9412 builtin and then its argument prototype would still apply. */
9417 /* The GNU C library defines this for functions which it implements
9418 to always fail with ENOSYS. Some functions are actually named
9419 something starting with __ and the normal name is an alias. */
9420 #if defined __stub_shl_load || defined __stub___shl_load
9432 rm -f conftest.$ac_objext conftest$ac_exeext
9433 if { (ac_try="$ac_link"
9435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9436 *) ac_try_echo=$ac_try;;
9438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9439 $as_echo "$ac_try_echo") >&5
9440 (eval "$ac_link") 2>conftest.er1
9442 grep -v '^ *+' conftest.er1 >conftest.err
9444 cat conftest.err >&5
9445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446 (exit $ac_status); } && {
9447 test -z "$ac_c_werror_flag" ||
9448 test ! -s conftest.err
9449 } && test -s conftest$ac_exeext && {
9450 test "$cross_compiling" = yes ||
9451 $as_test_x conftest$ac_exeext
9453 ac_cv_func_shl_load=yes
9455 $as_echo "$as_me: failed program was:" >&5
9456 sed 's/^/| /' conftest.$ac_ext >&5
9458 ac_cv_func_shl_load=no
9461 rm -rf conftest.dSYM
9462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9463 conftest$ac_exeext conftest.$ac_ext
9465 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9466 $as_echo "$ac_cv_func_shl_load" >&6; }
9467 if test "x$ac_cv_func_shl_load" = x""yes; then
9468 lt_cv_dlopen="shl_load"
9470 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9471 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9472 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9473 $as_echo_n "(cached) " >&6
9475 ac_check_lib_save_LIBS=$LIBS
9477 cat >conftest.$ac_ext <<_ACEOF
9480 cat confdefs.h >>conftest.$ac_ext
9481 cat >>conftest.$ac_ext <<_ACEOF
9482 /* end confdefs.h. */
9484 /* Override any GCC internal prototype to avoid an error.
9485 Use char because int might match the return type of a GCC
9486 builtin and then its argument prototype would still apply. */
9499 rm -f conftest.$ac_objext conftest$ac_exeext
9500 if { (ac_try="$ac_link"
9502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9503 *) ac_try_echo=$ac_try;;
9505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9506 $as_echo "$ac_try_echo") >&5
9507 (eval "$ac_link") 2>conftest.er1
9509 grep -v '^ *+' conftest.er1 >conftest.err
9511 cat conftest.err >&5
9512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513 (exit $ac_status); } && {
9514 test -z "$ac_c_werror_flag" ||
9515 test ! -s conftest.err
9516 } && test -s conftest$ac_exeext && {
9517 test "$cross_compiling" = yes ||
9518 $as_test_x conftest$ac_exeext
9520 ac_cv_lib_dld_shl_load=yes
9522 $as_echo "$as_me: failed program was:" >&5
9523 sed 's/^/| /' conftest.$ac_ext >&5
9525 ac_cv_lib_dld_shl_load=no
9528 rm -rf conftest.dSYM
9529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9530 conftest$ac_exeext conftest.$ac_ext
9531 LIBS=$ac_check_lib_save_LIBS
9533 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9534 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9535 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
9536 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9538 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
9539 $as_echo_n "checking for dlopen... " >&6; }
9540 if test "${ac_cv_func_dlopen+set}" = set; then
9541 $as_echo_n "(cached) " >&6
9543 cat >conftest.$ac_ext <<_ACEOF
9546 cat confdefs.h >>conftest.$ac_ext
9547 cat >>conftest.$ac_ext <<_ACEOF
9548 /* end confdefs.h. */
9549 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9550 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9551 #define dlopen innocuous_dlopen
9553 /* System header to define __stub macros and hopefully few prototypes,
9554 which can conflict with char dlopen (); below.
9555 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9556 <limits.h> exists even on freestanding compilers. */
9559 # include <limits.h>
9561 # include <assert.h>
9566 /* Override any GCC internal prototype to avoid an error.
9567 Use char because int might match the return type of a GCC
9568 builtin and then its argument prototype would still apply. */
9573 /* The GNU C library defines this for functions which it implements
9574 to always fail with ENOSYS. Some functions are actually named
9575 something starting with __ and the normal name is an alias. */
9576 #if defined __stub_dlopen || defined __stub___dlopen
9588 rm -f conftest.$ac_objext conftest$ac_exeext
9589 if { (ac_try="$ac_link"
9591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9592 *) ac_try_echo=$ac_try;;
9594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9595 $as_echo "$ac_try_echo") >&5
9596 (eval "$ac_link") 2>conftest.er1
9598 grep -v '^ *+' conftest.er1 >conftest.err
9600 cat conftest.err >&5
9601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602 (exit $ac_status); } && {
9603 test -z "$ac_c_werror_flag" ||
9604 test ! -s conftest.err
9605 } && test -s conftest$ac_exeext && {
9606 test "$cross_compiling" = yes ||
9607 $as_test_x conftest$ac_exeext
9609 ac_cv_func_dlopen=yes
9611 $as_echo "$as_me: failed program was:" >&5
9612 sed 's/^/| /' conftest.$ac_ext >&5
9614 ac_cv_func_dlopen=no
9617 rm -rf conftest.dSYM
9618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9619 conftest$ac_exeext conftest.$ac_ext
9621 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9622 $as_echo "$ac_cv_func_dlopen" >&6; }
9623 if test "x$ac_cv_func_dlopen" = x""yes; then
9624 lt_cv_dlopen="dlopen"
9626 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9627 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9628 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9629 $as_echo_n "(cached) " >&6
9631 ac_check_lib_save_LIBS=$LIBS
9633 cat >conftest.$ac_ext <<_ACEOF
9636 cat confdefs.h >>conftest.$ac_ext
9637 cat >>conftest.$ac_ext <<_ACEOF
9638 /* end confdefs.h. */
9640 /* Override any GCC internal prototype to avoid an error.
9641 Use char because int might match the return type of a GCC
9642 builtin and then its argument prototype would still apply. */
9655 rm -f conftest.$ac_objext conftest$ac_exeext
9656 if { (ac_try="$ac_link"
9658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9659 *) ac_try_echo=$ac_try;;
9661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9662 $as_echo "$ac_try_echo") >&5
9663 (eval "$ac_link") 2>conftest.er1
9665 grep -v '^ *+' conftest.er1 >conftest.err
9667 cat conftest.err >&5
9668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); } && {
9670 test -z "$ac_c_werror_flag" ||
9671 test ! -s conftest.err
9672 } && test -s conftest$ac_exeext && {
9673 test "$cross_compiling" = yes ||
9674 $as_test_x conftest$ac_exeext
9676 ac_cv_lib_dl_dlopen=yes
9678 $as_echo "$as_me: failed program was:" >&5
9679 sed 's/^/| /' conftest.$ac_ext >&5
9681 ac_cv_lib_dl_dlopen=no
9684 rm -rf conftest.dSYM
9685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9686 conftest$ac_exeext conftest.$ac_ext
9687 LIBS=$ac_check_lib_save_LIBS
9689 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9690 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9691 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9692 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9694 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9695 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9696 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9697 $as_echo_n "(cached) " >&6
9699 ac_check_lib_save_LIBS=$LIBS
9701 cat >conftest.$ac_ext <<_ACEOF
9704 cat confdefs.h >>conftest.$ac_ext
9705 cat >>conftest.$ac_ext <<_ACEOF
9706 /* end confdefs.h. */
9708 /* Override any GCC internal prototype to avoid an error.
9709 Use char because int might match the return type of a GCC
9710 builtin and then its argument prototype would still apply. */
9723 rm -f conftest.$ac_objext conftest$ac_exeext
9724 if { (ac_try="$ac_link"
9726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9727 *) ac_try_echo=$ac_try;;
9729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9730 $as_echo "$ac_try_echo") >&5
9731 (eval "$ac_link") 2>conftest.er1
9733 grep -v '^ *+' conftest.er1 >conftest.err
9735 cat conftest.err >&5
9736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737 (exit $ac_status); } && {
9738 test -z "$ac_c_werror_flag" ||
9739 test ! -s conftest.err
9740 } && test -s conftest$ac_exeext && {
9741 test "$cross_compiling" = yes ||
9742 $as_test_x conftest$ac_exeext
9744 ac_cv_lib_svld_dlopen=yes
9746 $as_echo "$as_me: failed program was:" >&5
9747 sed 's/^/| /' conftest.$ac_ext >&5
9749 ac_cv_lib_svld_dlopen=no
9752 rm -rf conftest.dSYM
9753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9754 conftest$ac_exeext conftest.$ac_ext
9755 LIBS=$ac_check_lib_save_LIBS
9757 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9758 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9759 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
9760 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9762 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9763 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9764 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9765 $as_echo_n "(cached) " >&6
9767 ac_check_lib_save_LIBS=$LIBS
9769 cat >conftest.$ac_ext <<_ACEOF
9772 cat confdefs.h >>conftest.$ac_ext
9773 cat >>conftest.$ac_ext <<_ACEOF
9774 /* end confdefs.h. */
9776 /* Override any GCC internal prototype to avoid an error.
9777 Use char because int might match the return type of a GCC
9778 builtin and then its argument prototype would still apply. */
9791 rm -f conftest.$ac_objext conftest$ac_exeext
9792 if { (ac_try="$ac_link"
9794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9795 *) ac_try_echo=$ac_try;;
9797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9798 $as_echo "$ac_try_echo") >&5
9799 (eval "$ac_link") 2>conftest.er1
9801 grep -v '^ *+' conftest.er1 >conftest.err
9803 cat conftest.err >&5
9804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805 (exit $ac_status); } && {
9806 test -z "$ac_c_werror_flag" ||
9807 test ! -s conftest.err
9808 } && test -s conftest$ac_exeext && {
9809 test "$cross_compiling" = yes ||
9810 $as_test_x conftest$ac_exeext
9812 ac_cv_lib_dld_dld_link=yes
9814 $as_echo "$as_me: failed program was:" >&5
9815 sed 's/^/| /' conftest.$ac_ext >&5
9817 ac_cv_lib_dld_dld_link=no
9820 rm -rf conftest.dSYM
9821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9822 conftest$ac_exeext conftest.$ac_ext
9823 LIBS=$ac_check_lib_save_LIBS
9825 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9826 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9827 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
9828 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9849 if test "x$lt_cv_dlopen" != xno; then
9855 case $lt_cv_dlopen in
9857 save_CPPFLAGS="$CPPFLAGS"
9858 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9860 save_LDFLAGS="$LDFLAGS"
9861 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9864 LIBS="$lt_cv_dlopen_libs $LIBS"
9866 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9867 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
9868 if test "${lt_cv_dlopen_self+set}" = set; then
9869 $as_echo_n "(cached) " >&6
9871 if test "$cross_compiling" = yes; then :
9872 lt_cv_dlopen_self=cross
9874 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9875 lt_status=$lt_dlunknown
9876 cat > conftest.$ac_ext <<EOF
9877 #line 9877 "configure"
9878 #include "confdefs.h"
9887 # define LT_DLGLOBAL RTLD_GLOBAL
9890 # define LT_DLGLOBAL DL_GLOBAL
9892 # define LT_DLGLOBAL 0
9896 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9897 find out it does not work in some platform. */
9898 #ifndef LT_DLLAZY_OR_NOW
9900 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9903 # define LT_DLLAZY_OR_NOW DL_LAZY
9906 # define LT_DLLAZY_OR_NOW RTLD_NOW
9909 # define LT_DLLAZY_OR_NOW DL_NOW
9911 # define LT_DLLAZY_OR_NOW 0
9919 extern "C" void exit (int);
9922 void fnord() { int i=42;}
9925 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9926 int status = $lt_dlunknown;
9930 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9931 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9932 /* dlclose (self); */
9940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9941 (eval $ac_link) 2>&5
9943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9945 (./conftest; exit; ) >&5 2>/dev/null
9948 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9949 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9950 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9953 # compilation failed
9954 lt_cv_dlopen_self=no
9961 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9962 $as_echo "$lt_cv_dlopen_self" >&6; }
9964 if test "x$lt_cv_dlopen_self" = xyes; then
9965 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9966 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9967 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9968 if test "${lt_cv_dlopen_self_static+set}" = set; then
9969 $as_echo_n "(cached) " >&6
9971 if test "$cross_compiling" = yes; then :
9972 lt_cv_dlopen_self_static=cross
9974 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9975 lt_status=$lt_dlunknown
9976 cat > conftest.$ac_ext <<EOF
9977 #line 9977 "configure"
9978 #include "confdefs.h"
9987 # define LT_DLGLOBAL RTLD_GLOBAL
9990 # define LT_DLGLOBAL DL_GLOBAL
9992 # define LT_DLGLOBAL 0
9996 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9997 find out it does not work in some platform. */
9998 #ifndef LT_DLLAZY_OR_NOW
10000 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10003 # define LT_DLLAZY_OR_NOW DL_LAZY
10006 # define LT_DLLAZY_OR_NOW RTLD_NOW
10009 # define LT_DLLAZY_OR_NOW DL_NOW
10011 # define LT_DLLAZY_OR_NOW 0
10019 extern "C" void exit (int);
10022 void fnord() { int i=42;}
10025 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10026 int status = $lt_dlunknown;
10030 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10031 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10032 /* dlclose (self); */
10040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10041 (eval $ac_link) 2>&5
10043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10045 (./conftest; exit; ) >&5 2>/dev/null
10047 case x$lt_status in
10048 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10049 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10050 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10053 # compilation failed
10054 lt_cv_dlopen_self_static=no
10061 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10062 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10065 CPPFLAGS="$save_CPPFLAGS"
10066 LDFLAGS="$save_LDFLAGS"
10071 case $lt_cv_dlopen_self in
10072 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10073 *) enable_dlopen_self=unknown ;;
10076 case $lt_cv_dlopen_self_static in
10077 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10078 *) enable_dlopen_self_static=unknown ;;
10083 # Report which library types will actually be built
10084 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10085 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10086 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10087 $as_echo "$can_build_shared" >&6; }
10089 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10090 $as_echo_n "checking whether to build shared libraries... " >&6; }
10091 test "$can_build_shared" = "no" && enable_shared=no
10093 # On AIX, shared libraries and static libraries use the same namespace, and
10094 # are all built from PIC.
10097 test "$enable_shared" = yes && enable_static=no
10098 if test -n "$RANLIB"; then
10099 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10100 postinstall_cmds='$RANLIB $lib'
10105 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10106 test "$enable_shared" = yes && enable_static=no
10110 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10111 $as_echo "$enable_shared" >&6; }
10113 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10114 $as_echo_n "checking whether to build static libraries... " >&6; }
10115 # Make sure either enable_shared or enable_static is yes.
10116 test "$enable_shared" = yes || enable_static=yes
10117 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10118 $as_echo "$enable_static" >&6; }
10120 # The else clause should only fire when bootstrapping the
10121 # libtool distribution, otherwise you forgot to ship ltmain.sh
10122 # with your package, and you will get complaints that there are
10123 # no rules to generate ltmain.sh.
10124 if test -f "$ltmain"; then
10125 # See if we are running on zsh, and set the options which allow our commands through
10126 # without removal of \ escapes.
10127 if test -n "${ZSH_VERSION+set}" ; then
10128 setopt NO_GLOB_SUBST
10130 # Now quote all the things that may contain metacharacters while being
10131 # careful not to overquote the AC_SUBSTed values. We take copies of the
10132 # variables and quote the copies for generation of the libtool script.
10133 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10135 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10136 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10137 deplibs_check_method reload_flag reload_cmds need_locks \
10138 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10139 lt_cv_sys_global_symbol_to_c_name_address \
10140 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10141 old_postinstall_cmds old_postuninstall_cmds \
10145 lt_prog_compiler_wl \
10146 lt_prog_compiler_pic \
10147 lt_prog_compiler_static \
10148 lt_prog_compiler_no_builtin_flag \
10149 export_dynamic_flag_spec \
10150 thread_safe_flag_spec \
10151 whole_archive_flag_spec \
10152 enable_shared_with_static_runtimes \
10154 old_archive_from_new_cmds \
10159 compiler_lib_search_path \
10160 compiler_lib_search_dirs \
10162 archive_expsym_cmds \
10164 postuninstall_cmds \
10165 old_archive_from_expsyms_cmds \
10166 allow_undefined_flag \
10167 no_undefined_flag \
10168 export_symbols_cmds \
10169 hardcode_libdir_flag_spec \
10170 hardcode_libdir_flag_spec_ld \
10171 hardcode_libdir_separator \
10172 hardcode_automatic \
10174 module_expsym_cmds \
10175 lt_cv_prog_compiler_c_o \
10178 include_expsyms; do
10181 old_archive_cmds | \
10182 old_archive_from_new_cmds | \
10184 archive_expsym_cmds | \
10186 module_expsym_cmds | \
10187 old_archive_from_expsyms_cmds | \
10188 export_symbols_cmds | \
10189 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10190 postinstall_cmds | postuninstall_cmds | \
10191 old_postinstall_cmds | old_postuninstall_cmds | \
10192 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10193 # Double-quote double-evaled strings.
10194 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10197 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10203 *'\$0 --fallback-echo"')
10204 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10208 cfgfile="${ofile}T"
10209 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10211 { $as_echo "$as_me:$LINENO: creating $ofile" >&5
10212 $as_echo "$as_me: creating $ofile" >&6;}
10214 cat <<__EOF__ >> "$cfgfile"
10217 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10218 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10219 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10221 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10222 # Free Software Foundation, Inc.
10224 # This file is part of GNU Libtool:
10225 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10227 # This program is free software; you can redistribute it and/or modify
10228 # it under the terms of the GNU General Public License as published by
10229 # the Free Software Foundation; either version 2 of the License, or
10230 # (at your option) any later version.
10232 # This program is distributed in the hope that it will be useful, but
10233 # WITHOUT ANY WARRANTY; without even the implied warranty of
10234 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10235 # General Public License for more details.
10237 # You should have received a copy of the GNU General Public License
10238 # along with this program; if not, write to the Free Software
10239 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10241 # As a special exception to the GNU General Public License, if you
10242 # distribute this file as part of a program that contains a
10243 # configuration script generated by Autoconf, you may include it under
10244 # the same distribution terms that you use for the rest of that program.
10246 # A sed program that does not truncate output.
10249 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10250 Xsed="$SED -e 1s/^X//"
10252 # The HP-UX ksh and POSIX shell print the target directory to stdout
10253 # if CDPATH is set.
10254 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10256 # The names of the tagged configurations supported by this script.
10259 # ### BEGIN LIBTOOL CONFIG
10261 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10263 # Shell to use when invoking shell scripts.
10266 # Whether or not to build shared libraries.
10267 build_libtool_libs=$enable_shared
10269 # Whether or not to build static libraries.
10270 build_old_libs=$enable_static
10272 # Whether or not to add -lc for building shared libraries.
10273 build_libtool_need_lc=$archive_cmds_need_lc
10275 # Whether or not to disallow shared libs when runtime libs are static
10276 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10278 # Whether or not to optimize for fast installation.
10279 fast_install=$enable_fast_install
10282 host_alias=$host_alias
10286 # The build system.
10287 build_alias=$build_alias
10291 # An echo program that does not interpret backslashes.
10296 AR_FLAGS=$lt_AR_FLAGS
10301 # LTCC compiler flags.
10302 LTCFLAGS=$lt_LTCFLAGS
10304 # A language-specific compiler.
10307 # Is the compiler the GNU C compiler?
10313 # The linker used to build libraries.
10316 # Whether we need hard or soft links.
10319 # A BSD-compatible nm program.
10322 # A symbol stripping program
10325 # Used to examine libraries when file_magic_cmd begins "file"
10326 MAGIC_CMD=$MAGIC_CMD
10328 # Used on cygwin: DLL creation program.
10331 # Used on cygwin: object dumper.
10334 # Used on cygwin: assembler.
10337 # The name of the directory that contains temporary libtool files.
10340 # How to create reloadable object files.
10341 reload_flag=$lt_reload_flag
10342 reload_cmds=$lt_reload_cmds
10344 # How to pass a linker flag through the compiler.
10345 wl=$lt_lt_prog_compiler_wl
10347 # Object file suffix (normally "o").
10348 objext="$ac_objext"
10350 # Old archive suffix (normally "a").
10353 # Shared library suffix (normally ".so").
10354 shrext_cmds='$shrext_cmds'
10356 # Executable file suffix (normally "").
10359 # Additional compiler flags for building library objects.
10360 pic_flag=$lt_lt_prog_compiler_pic
10363 # What is the maximum length of a command?
10364 max_cmd_len=$lt_cv_sys_max_cmd_len
10366 # Does compiler simultaneously support -c and -o options?
10367 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10369 # Must we lock files when doing compilation?
10370 need_locks=$lt_need_locks
10372 # Do we need the lib prefix for modules?
10373 need_lib_prefix=$need_lib_prefix
10375 # Do we need a version for libraries?
10376 need_version=$need_version
10378 # Whether dlopen is supported.
10379 dlopen_support=$enable_dlopen
10381 # Whether dlopen of programs is supported.
10382 dlopen_self=$enable_dlopen_self
10384 # Whether dlopen of statically linked programs is supported.
10385 dlopen_self_static=$enable_dlopen_self_static
10387 # Compiler flag to prevent dynamic linking.
10388 link_static_flag=$lt_lt_prog_compiler_static
10390 # Compiler flag to turn off builtin functions.
10391 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10393 # Compiler flag to allow reflexive dlopens.
10394 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10396 # Compiler flag to generate shared objects directly from archives.
10397 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10399 # Compiler flag to generate thread-safe objects.
10400 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10402 # Library versioning type.
10403 version_type=$version_type
10405 # Format of library name prefix.
10406 libname_spec=$lt_libname_spec
10408 # List of archive names. First name is the real one, the rest are links.
10409 # The last name is the one that the linker finds with -lNAME.
10410 library_names_spec=$lt_library_names_spec
10412 # The coded name of the library, if different from the real name.
10413 soname_spec=$lt_soname_spec
10415 # Commands used to build and install an old-style archive.
10417 old_archive_cmds=$lt_old_archive_cmds
10418 old_postinstall_cmds=$lt_old_postinstall_cmds
10419 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10421 # Create an old-style archive from a shared archive.
10422 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10424 # Create a temporary old-style archive to link instead of a shared archive.
10425 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10427 # Commands used to build and install a shared archive.
10428 archive_cmds=$lt_archive_cmds
10429 archive_expsym_cmds=$lt_archive_expsym_cmds
10430 postinstall_cmds=$lt_postinstall_cmds
10431 postuninstall_cmds=$lt_postuninstall_cmds
10433 # Commands used to build a loadable module (assumed same as above if empty)
10434 module_cmds=$lt_module_cmds
10435 module_expsym_cmds=$lt_module_expsym_cmds
10437 # Commands to strip libraries.
10438 old_striplib=$lt_old_striplib
10439 striplib=$lt_striplib
10441 # Dependencies to place before the objects being linked to create a
10443 predep_objects=$lt_predep_objects
10445 # Dependencies to place after the objects being linked to create a
10447 postdep_objects=$lt_postdep_objects
10449 # Dependencies to place before the objects being linked to create a
10451 predeps=$lt_predeps
10453 # Dependencies to place after the objects being linked to create a
10455 postdeps=$lt_postdeps
10457 # The directories searched by this compiler when creating a shared
10459 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10461 # The library search path used internally by the compiler when linking
10462 # a shared library.
10463 compiler_lib_search_path=$lt_compiler_lib_search_path
10465 # Method to check whether dependent libraries are shared objects.
10466 deplibs_check_method=$lt_deplibs_check_method
10468 # Command to use when deplibs_check_method == file_magic.
10469 file_magic_cmd=$lt_file_magic_cmd
10471 # Flag that allows shared libraries with undefined symbols to be built.
10472 allow_undefined_flag=$lt_allow_undefined_flag
10474 # Flag that forces no undefined symbols.
10475 no_undefined_flag=$lt_no_undefined_flag
10477 # Commands used to finish a libtool library installation in a directory.
10478 finish_cmds=$lt_finish_cmds
10480 # Same as above, but a single script fragment to be evaled but not shown.
10481 finish_eval=$lt_finish_eval
10483 # Take the output of nm and produce a listing of raw symbols and C names.
10484 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10486 # Transform the output of nm in a proper C declaration
10487 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10489 # Transform the output of nm in a C name address pair
10490 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10492 # This is the shared library runtime path variable.
10493 runpath_var=$runpath_var
10495 # This is the shared library path variable.
10496 shlibpath_var=$shlibpath_var
10498 # Is shlibpath searched before the hard-coded library search path?
10499 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10501 # How to hardcode a shared library path into an executable.
10502 hardcode_action=$hardcode_action
10504 # Whether we should hardcode library paths into libraries.
10505 hardcode_into_libs=$hardcode_into_libs
10507 # Flag to hardcode \$libdir into a binary during linking.
10508 # This must work even if \$libdir does not exist.
10509 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10511 # If ld is used when linking, flag to hardcode \$libdir into
10512 # a binary during linking. This must work even if \$libdir does
10514 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10516 # Whether we need a single -rpath flag with a separated argument.
10517 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10519 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10520 # resulting binary.
10521 hardcode_direct=$hardcode_direct
10523 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10524 # resulting binary.
10525 hardcode_minus_L=$hardcode_minus_L
10527 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10528 # the resulting binary.
10529 hardcode_shlibpath_var=$hardcode_shlibpath_var
10531 # Set to yes if building a shared library automatically hardcodes DIR into the library
10532 # and all subsequent libraries and executables linked against it.
10533 hardcode_automatic=$hardcode_automatic
10535 # Variables whose values should be saved in libtool wrapper scripts and
10536 # restored at relink time.
10537 variables_saved_for_relink="$variables_saved_for_relink"
10539 # Whether libtool must link a program against all its dependency libraries.
10540 link_all_deplibs=$link_all_deplibs
10542 # Compile-time system search path for libraries
10543 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10545 # Run-time system search path for libraries
10546 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10548 # Fix the shell variable \$srcfile for the compiler.
10549 fix_srcfile_path=$lt_fix_srcfile_path
10551 # Set to yes if exported symbols are required.
10552 always_export_symbols=$always_export_symbols
10554 # The commands to list exported symbols.
10555 export_symbols_cmds=$lt_export_symbols_cmds
10557 # The commands to extract the exported symbol list from a shared archive.
10558 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10560 # Symbols that should not be listed in the preloaded symbols.
10561 exclude_expsyms=$lt_exclude_expsyms
10563 # Symbols that must always be exported.
10564 include_expsyms=$lt_include_expsyms
10566 # ### END LIBTOOL CONFIG
10573 cat <<\EOF >> "$cfgfile"
10575 # AIX sometimes has problems with the GCC collect2 program. For some
10576 # reason, if we set the COLLECT_NAMES environment variable, the problems
10577 # vanish in a puff of smoke.
10578 if test "X${COLLECT_NAMES+set}" != Xset; then
10580 export COLLECT_NAMES
10586 # We use sed instead of cat because bash on DJGPP gets confused if
10587 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10588 # text mode, it properly converts lines to CR/LF. This bash problem
10589 # is reportedly fixed, but why not run on old versions too?
10590 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10592 mv -f "$cfgfile" "$ofile" || \
10593 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10597 # If there is no Makefile yet, we rely on a make rule to execute
10598 # `config.status --recheck' to rerun these tests and create the
10599 # libtool script then.
10600 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10601 if test -f "$ltmain_in"; then
10602 test -f Makefile && make "$ltmain"
10608 ac_cpp='$CPP $CPPFLAGS'
10609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10616 # Check whether --with-tags was given.
10617 if test "${with_tags+set}" = set; then
10618 withval=$with_tags; tagnames="$withval"
10622 if test -f "$ltmain" && test -n "$tagnames"; then
10623 if test ! -f "${ofile}"; then
10624 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10625 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10628 if test -z "$LTCC"; then
10629 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10630 if test -z "$LTCC"; then
10631 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10632 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10634 { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10635 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10638 if test -z "$LTCFLAGS"; then
10639 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10642 # Extract list of available tagged configurations in $ofile.
10643 # Note that this assumes the entire list is on one line.
10644 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10646 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10647 for tagname in $tagnames; do
10649 # Check whether tagname contains only valid characters
10650 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10652 *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10653 $as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
10654 { (exit 1); exit 1; }; }
10658 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10660 { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10661 $as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10662 { (exit 1); exit 1; }; }
10665 # Update the list of available tags.
10666 if test -n "$tagname"; then
10667 echo appending configuration tag \"$tagname\" to $ofile
10671 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10672 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10673 (test "X$CXX" != "Xg++"))) ; then
10675 ac_cpp='$CXXCPP $CPPFLAGS'
10676 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10677 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10678 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10683 archive_cmds_need_lc_CXX=no
10684 allow_undefined_flag_CXX=
10685 always_export_symbols_CXX=no
10686 archive_expsym_cmds_CXX=
10687 export_dynamic_flag_spec_CXX=
10688 hardcode_direct_CXX=no
10689 hardcode_libdir_flag_spec_CXX=
10690 hardcode_libdir_flag_spec_ld_CXX=
10691 hardcode_libdir_separator_CXX=
10692 hardcode_minus_L_CXX=no
10693 hardcode_shlibpath_var_CXX=unsupported
10694 hardcode_automatic_CXX=no
10696 module_expsym_cmds_CXX=
10697 link_all_deplibs_CXX=unknown
10698 old_archive_cmds_CXX=$old_archive_cmds
10699 no_undefined_flag_CXX=
10700 whole_archive_flag_spec_CXX=
10701 enable_shared_with_static_runtimes_CXX=no
10703 # Dependencies to place before and after the object being linked:
10704 predep_objects_CXX=
10705 postdep_objects_CXX=
10708 compiler_lib_search_path_CXX=
10709 compiler_lib_search_dirs_CXX=
10711 # Source file extension for C++ test sources.
10714 # Object file extension for compiled C++ test sources.
10718 # Code to be used in simple compile tests
10719 lt_simple_compile_test_code="int some_variable = 0;"
10721 # Code to be used in simple link tests
10722 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10724 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10726 # If no C compiler was specified, use CC.
10729 # If no C compiler flags were specified, use CFLAGS.
10730 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10732 # Allow CC to be a program name with arguments.
10736 # save warnings/boilerplate of simple test code
10737 ac_outfile=conftest.$ac_objext
10738 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10739 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10740 _lt_compiler_boilerplate=`cat conftest.err`
10743 ac_outfile=conftest.$ac_objext
10744 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10745 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10746 _lt_linker_boilerplate=`cat conftest.err`
10750 # Allow CC to be a program name with arguments.
10755 lt_save_with_gnu_ld=$with_gnu_ld
10756 lt_save_path_LD=$lt_cv_path_LD
10757 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10758 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10760 $as_unset lt_cv_prog_gnu_ld
10762 if test -n "${lt_cv_path_LDCXX+set}"; then
10763 lt_cv_path_LD=$lt_cv_path_LDCXX
10765 $as_unset lt_cv_path_LD
10767 test -z "${LDCXX+set}" || LD=$LDCXX
10771 for cc_temp in $compiler""; do
10773 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10774 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10779 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10782 # We don't want -fno-exception wen compiling C++ code, so set the
10783 # no_builtin_flag separately
10784 if test "$GXX" = yes; then
10785 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10787 lt_prog_compiler_no_builtin_flag_CXX=
10790 if test "$GXX" = yes; then
10791 # Set up default GNU C++ configuration
10794 # Check whether --with-gnu-ld was given.
10795 if test "${with_gnu_ld+set}" = set; then
10796 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10802 if test "$GCC" = yes; then
10803 # Check if gcc -print-prog-name=ld gives a path.
10804 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10805 $as_echo_n "checking for ld used by $CC... " >&6; }
10808 # gcc leaves a trailing carriage return which upsets mingw
10809 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10811 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10814 # Accept absolute paths.
10816 re_direlt='/[^/][^/]*/\.\./'
10817 # Canonicalize the pathname of ld
10818 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10819 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10820 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10822 test -z "$LD" && LD="$ac_prog"
10825 # If it fails, then pretend we aren't using GCC.
10829 # If it is relative, then search for the first ld in PATH.
10830 with_gnu_ld=unknown
10833 elif test "$with_gnu_ld" = yes; then
10834 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
10835 $as_echo_n "checking for GNU ld... " >&6; }
10837 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10838 $as_echo_n "checking for non-GNU ld... " >&6; }
10840 if test "${lt_cv_path_LD+set}" = set; then
10841 $as_echo_n "(cached) " >&6
10843 if test -z "$LD"; then
10844 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10845 for ac_dir in $PATH; do
10847 test -z "$ac_dir" && ac_dir=.
10848 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10849 lt_cv_path_LD="$ac_dir/$ac_prog"
10850 # Check to see if the program is GNU ld. I'd rather use --version,
10851 # but apparently some variants of GNU ld only accept -v.
10852 # Break only if it was the GNU/non-GNU ld that we prefer.
10853 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10854 *GNU* | *'with BFD'*)
10855 test "$with_gnu_ld" != no && break
10858 test "$with_gnu_ld" != yes && break
10865 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10869 LD="$lt_cv_path_LD"
10870 if test -n "$LD"; then
10871 { $as_echo "$as_me:$LINENO: result: $LD" >&5
10872 $as_echo "$LD" >&6; }
10874 { $as_echo "$as_me:$LINENO: result: no" >&5
10875 $as_echo "no" >&6; }
10877 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10878 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10879 { (exit 1); exit 1; }; }
10880 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10881 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10882 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10883 $as_echo_n "(cached) " >&6
10885 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10886 case `$LD -v 2>&1 </dev/null` in
10887 *GNU* | *'with BFD'*)
10888 lt_cv_prog_gnu_ld=yes
10891 lt_cv_prog_gnu_ld=no
10895 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10896 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
10897 with_gnu_ld=$lt_cv_prog_gnu_ld
10901 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10902 # archiving commands below assume that GNU ld is being used.
10903 if test "$with_gnu_ld" = yes; then
10904 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10905 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'
10907 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10908 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10910 # If archive_cmds runs LD, not CC, wlarc should be empty
10911 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10912 # investigate it a little bit more. (MM)
10915 # ancient GNU ld didn't support --whole-archive et. al.
10916 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10917 grep 'no-whole-archive' > /dev/null; then
10918 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10920 whole_archive_flag_spec_CXX=
10926 # A generic and very simple default shared library creation
10927 # command for GNU C++ for the case where it uses the native
10928 # linker, instead of GNU ld. If possible, this setting should
10929 # overridden to take advantage of the native linker features on
10930 # the platform it is being used on.
10931 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10934 # Commands to make compiler produce verbose output that lists
10935 # what "hidden" libraries, object files and flags are used when
10936 # linking a shared library.
10937 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10945 # PORTME: fill in a description of your system's C++ link characteristics
10946 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10947 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10951 # FIXME: insert proper C++ library support
10955 if test "$host_cpu" = ia64; then
10956 # On IA64, the linker does run time linking by default, so we don't
10957 # have to do anything special.
10958 aix_use_runtimelinking=no
10959 exp_sym_flag='-Bexport'
10962 aix_use_runtimelinking=no
10964 # Test if we are trying to use run time linking or normal
10965 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10966 # need to do runtime linking.
10967 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10968 for ld_flag in $LDFLAGS; do
10971 aix_use_runtimelinking=yes
10979 exp_sym_flag='-bexport'
10980 no_entry_flag='-bnoentry'
10983 # When large executables or shared objects are built, AIX ld can
10984 # have problems creating the table of contents. If linking a library
10985 # or program results in "error TOC overflow" add -mminimal-toc to
10986 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10987 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10989 archive_cmds_CXX=''
10990 hardcode_direct_CXX=yes
10991 hardcode_libdir_separator_CXX=':'
10992 link_all_deplibs_CXX=yes
10994 if test "$GXX" = yes; then
10995 case $host_os in aix4.[012]|aix4.[012].*)
10996 # We only want to do this on AIX 4.2 and lower, the check
10997 # below for broken collect2 doesn't work under 4.3+
10998 collect2name=`${CC} -print-prog-name=collect2`
10999 if test -f "$collect2name" && \
11000 strings "$collect2name" | grep resolve_lib_name >/dev/null
11002 # We have reworked collect2
11005 # We have old collect2
11006 hardcode_direct_CXX=unsupported
11007 # It fails to find uninstalled libraries when the uninstalled
11008 # path is not listed in the libpath. Setting hardcode_minus_L
11009 # to unsupported forces relinking
11010 hardcode_minus_L_CXX=yes
11011 hardcode_libdir_flag_spec_CXX='-L$libdir'
11012 hardcode_libdir_separator_CXX=
11016 shared_flag='-shared'
11017 if test "$aix_use_runtimelinking" = yes; then
11018 shared_flag="$shared_flag "'${wl}-G'
11022 if test "$host_cpu" = ia64; then
11023 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11024 # chokes on -Wl,-G. The following line is correct:
11027 if test "$aix_use_runtimelinking" = yes; then
11028 shared_flag='${wl}-G'
11030 shared_flag='${wl}-bM:SRE'
11035 # It seems that -bexpall does not export symbols beginning with
11036 # underscore (_), so it is better to generate a list of symbols to export.
11037 always_export_symbols_CXX=yes
11038 if test "$aix_use_runtimelinking" = yes; then
11039 # Warning - without using the other runtime loading flags (-brtl),
11040 # -berok will link without error, but may produce a broken library.
11041 allow_undefined_flag_CXX='-berok'
11042 # Determine the default libpath from the value encoded in an empty executable.
11043 cat >conftest.$ac_ext <<_ACEOF
11046 cat confdefs.h >>conftest.$ac_ext
11047 cat >>conftest.$ac_ext <<_ACEOF
11048 /* end confdefs.h. */
11058 rm -f conftest.$ac_objext conftest$ac_exeext
11059 if { (ac_try="$ac_link"
11060 case "(($ac_try" in
11061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11062 *) ac_try_echo=$ac_try;;
11064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11065 $as_echo "$ac_try_echo") >&5
11066 (eval "$ac_link") 2>conftest.er1
11068 grep -v '^ *+' conftest.er1 >conftest.err
11070 cat conftest.err >&5
11071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072 (exit $ac_status); } && {
11073 test -z "$ac_cxx_werror_flag" ||
11074 test ! -s conftest.err
11075 } && test -s conftest$ac_exeext && {
11076 test "$cross_compiling" = yes ||
11077 $as_test_x conftest$ac_exeext
11080 lt_aix_libpath_sed='
11081 /Import File Strings/,/^$/ {
11087 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11088 # Check for a 64-bit object if we didn't find anything.
11089 if test -z "$aix_libpath"; then
11090 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11093 $as_echo "$as_me: failed program was:" >&5
11094 sed 's/^/| /' conftest.$ac_ext >&5
11099 rm -rf conftest.dSYM
11100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11101 conftest$ac_exeext conftest.$ac_ext
11102 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11104 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11106 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"
11108 if test "$host_cpu" = ia64; then
11109 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11110 allow_undefined_flag_CXX="-z nodefs"
11111 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"
11113 # Determine the default libpath from the value encoded in an empty executable.
11114 cat >conftest.$ac_ext <<_ACEOF
11117 cat confdefs.h >>conftest.$ac_ext
11118 cat >>conftest.$ac_ext <<_ACEOF
11119 /* end confdefs.h. */
11129 rm -f conftest.$ac_objext conftest$ac_exeext
11130 if { (ac_try="$ac_link"
11131 case "(($ac_try" in
11132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11133 *) ac_try_echo=$ac_try;;
11135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11136 $as_echo "$ac_try_echo") >&5
11137 (eval "$ac_link") 2>conftest.er1
11139 grep -v '^ *+' conftest.er1 >conftest.err
11141 cat conftest.err >&5
11142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143 (exit $ac_status); } && {
11144 test -z "$ac_cxx_werror_flag" ||
11145 test ! -s conftest.err
11146 } && test -s conftest$ac_exeext && {
11147 test "$cross_compiling" = yes ||
11148 $as_test_x conftest$ac_exeext
11151 lt_aix_libpath_sed='
11152 /Import File Strings/,/^$/ {
11158 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11159 # Check for a 64-bit object if we didn't find anything.
11160 if test -z "$aix_libpath"; then
11161 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11164 $as_echo "$as_me: failed program was:" >&5
11165 sed 's/^/| /' conftest.$ac_ext >&5
11170 rm -rf conftest.dSYM
11171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11172 conftest$ac_exeext conftest.$ac_ext
11173 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11175 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11176 # Warning - without using the other run time loading flags,
11177 # -berok will link without error, but may produce a broken library.
11178 no_undefined_flag_CXX=' ${wl}-bernotok'
11179 allow_undefined_flag_CXX=' ${wl}-berok'
11180 # Exported symbols can be pulled into shared objects from archives
11181 whole_archive_flag_spec_CXX='$convenience'
11182 archive_cmds_need_lc_CXX=yes
11183 # This is similar to how AIX traditionally builds its shared libraries.
11184 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'
11190 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11191 allow_undefined_flag_CXX=unsupported
11192 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11193 # support --undefined. This deserves some investigation. FIXME
11194 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11201 case $cc_basename in
11203 # FIXME: insert proper C++ library support
11209 cygwin* | mingw* | pw32*)
11210 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11211 # as there is no search path for DLLs.
11212 hardcode_libdir_flag_spec_CXX='-L$libdir'
11213 allow_undefined_flag_CXX=unsupported
11214 always_export_symbols_CXX=no
11215 enable_shared_with_static_runtimes_CXX=yes
11217 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11218 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'
11219 # If the export-symbols file already is a .def file (1st line
11220 # is EXPORTS), use it as is; otherwise, prepend...
11221 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11222 cp $export_symbols $output_objdir/$soname.def;
11224 echo EXPORTS > $output_objdir/$soname.def;
11225 cat $export_symbols >> $output_objdir/$soname.def;
11227 $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'
11232 darwin* | rhapsody*)
11233 archive_cmds_need_lc_CXX=no
11234 hardcode_direct_CXX=no
11235 hardcode_automatic_CXX=yes
11236 hardcode_shlibpath_var_CXX=unsupported
11237 whole_archive_flag_spec_CXX=''
11238 link_all_deplibs_CXX=yes
11239 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11240 if test "$GXX" = yes ; then
11241 output_verbose_link_cmd='echo'
11242 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11243 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11244 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11245 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11246 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11247 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
11248 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
11251 case $cc_basename in
11253 output_verbose_link_cmd='echo'
11254 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11255 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11256 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11257 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11258 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}'
11268 case $cc_basename in
11270 # FIXME: insert proper C++ library support
11274 # Green Hills C++ Compiler
11275 # FIXME: insert proper C++ library support
11279 # FIXME: insert proper C++ library support
11285 # C++ shared libraries reported to be fairly broken before switch to ELF
11289 archive_cmds_need_lc_CXX=no
11291 freebsd* | dragonfly*)
11292 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11299 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11300 hardcode_libdir_separator_CXX=:
11301 export_dynamic_flag_spec_CXX='${wl}-E'
11302 hardcode_direct_CXX=yes
11303 hardcode_minus_L_CXX=yes # Not in the search PATH,
11304 # but as the default
11305 # location of the library.
11307 case $cc_basename in
11309 # FIXME: insert proper C++ library support
11313 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'
11314 # Commands to make compiler produce verbose output that lists
11315 # what "hidden" libraries, object files and flags are used when
11316 # linking a shared library.
11318 # There doesn't appear to be a way to prevent this compiler from
11319 # explicitly linking system object files so we need to strip them
11320 # from the output so that they don't get included in the library
11322 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'
11325 if test "$GXX" = yes; then
11326 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'
11328 # FIXME: insert proper C++ library support
11335 if test $with_gnu_ld = no; then
11336 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11337 hardcode_libdir_separator_CXX=:
11342 export_dynamic_flag_spec_CXX='${wl}-E'
11348 hardcode_direct_CXX=no
11349 hardcode_shlibpath_var_CXX=no
11352 hardcode_direct_CXX=yes
11353 hardcode_minus_L_CXX=yes # Not in the search PATH,
11354 # but as the default
11355 # location of the library.
11359 case $cc_basename in
11361 # FIXME: insert proper C++ library support
11367 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11370 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11373 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11376 # Commands to make compiler produce verbose output that lists
11377 # what "hidden" libraries, object files and flags are used when
11378 # linking a shared library.
11380 # There doesn't appear to be a way to prevent this compiler from
11381 # explicitly linking system object files so we need to strip them
11382 # from the output so that they don't get included in the library
11384 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'
11387 if test "$GXX" = yes; then
11388 if test $with_gnu_ld = no; then
11391 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11394 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11397 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'
11402 # FIXME: insert proper C++ library support
11409 hardcode_direct_CXX=no
11410 hardcode_shlibpath_var_CXX=no
11411 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11412 export_dynamic_flag_spec_CXX='${wl}-E'
11413 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11414 # Instead, shared libraries are loaded at an image base (0x10000000 by
11415 # default) and relocated if they conflict, which is a slow very memory
11416 # consuming and fragmenting process. To avoid this, we pick a random,
11417 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11418 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11419 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'
11420 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'
11423 case $cc_basename in
11426 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'
11428 # Archives containing C++ object files must be created using
11429 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11430 # necessary to make sure instantiated templates are included
11432 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11435 if test "$GXX" = yes; then
11436 if test "$with_gnu_ld" = no; then
11437 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'
11439 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'
11442 link_all_deplibs_CXX=yes
11445 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11446 hardcode_libdir_separator_CXX=:
11448 linux* | k*bsd*-gnu)
11449 case $cc_basename in
11451 # Kuck and Associates, Inc. (KAI) C++ Compiler
11453 # KCC will only create a shared library if the output file
11454 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11455 # to its proper name (with version) after linking.
11456 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'
11457 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'
11458 # Commands to make compiler produce verbose output that lists
11459 # what "hidden" libraries, object files and flags are used when
11460 # linking a shared library.
11462 # There doesn't appear to be a way to prevent this compiler from
11463 # explicitly linking system object files so we need to strip them
11464 # from the output so that they don't get included in the library
11466 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'
11468 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11469 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11471 # Archives containing C++ object files must be created using
11472 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11473 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11478 # version 8.0 and above of icpc choke on multiply defined symbols
11479 # if we add $predep_objects and $postdep_objects, however 7.1 and
11480 # earlier do not add the objects themselves.
11481 case `$CC -V 2>&1` in
11483 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11484 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'
11486 *) # Version 8.0 or newer
11489 ia64*) tmp_idyn=' -i_dynamic';;
11491 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11492 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'
11495 archive_cmds_need_lc_CXX=no
11496 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11497 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11498 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11501 # Portland Group C++ compiler
11502 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11503 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'
11505 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11506 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11507 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'
11511 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11512 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'
11514 runpath_var=LD_RUN_PATH
11515 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11516 hardcode_libdir_separator_CXX=:
11518 # Commands to make compiler produce verbose output that lists
11519 # what "hidden" libraries, object files and flags are used when
11520 # linking a shared library.
11522 # There doesn't appear to be a way to prevent this compiler from
11523 # explicitly linking system object files so we need to strip them
11524 # from the output so that they don't get included in the library
11526 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'
11529 case `$CC -V 2>&1 | sed 5q` in
11532 no_undefined_flag_CXX=' -zdefs'
11533 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11534 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11535 hardcode_libdir_flag_spec_CXX='-R$libdir'
11536 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11538 # Not sure whether something based on
11539 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11541 output_verbose_link_cmd='echo'
11543 # Archives containing C++ object files must be created using
11544 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11545 # necessary to make sure instantiated templates are included
11547 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11554 # FIXME: insert proper C++ library support
11558 # FIXME: insert proper C++ library support
11562 case $cc_basename in
11564 # FIXME: insert proper C++ library support
11568 # FIXME: insert proper C++ library support
11574 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11575 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11577 hardcode_libdir_flag_spec_CXX='-R$libdir'
11578 hardcode_direct_CXX=yes
11579 hardcode_shlibpath_var_CXX=no
11581 # Workaround some broken pre-1.5 toolchains
11582 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11585 # C++ shared libraries are fairly broken
11589 if test -f /usr/libexec/ld.so; then
11590 hardcode_direct_CXX=yes
11591 hardcode_shlibpath_var_CXX=no
11592 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11593 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11594 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11595 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11596 export_dynamic_flag_spec_CXX='${wl}-E'
11597 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11599 output_verbose_link_cmd='echo'
11605 case $cc_basename in
11607 # Kuck and Associates, Inc. (KAI) C++ Compiler
11609 # KCC will only create a shared library if the output file
11610 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11611 # to its proper name (with version) after linking.
11612 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'
11614 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11615 hardcode_libdir_separator_CXX=:
11617 # Archives containing C++ object files must be created using
11618 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11619 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11623 # Rational C++ 2.4.1
11624 # FIXME: insert proper C++ library support
11628 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11629 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'
11631 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11632 hardcode_libdir_separator_CXX=:
11634 # Commands to make compiler produce verbose output that lists
11635 # what "hidden" libraries, object files and flags are used when
11636 # linking a shared library.
11638 # There doesn't appear to be a way to prevent this compiler from
11639 # explicitly linking system object files so we need to strip them
11640 # from the output so that they don't get included in the library
11642 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'
11645 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11646 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11647 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'
11649 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11650 hardcode_libdir_separator_CXX=:
11652 # Commands to make compiler produce verbose output that lists
11653 # what "hidden" libraries, object files and flags are used when
11654 # linking a shared library.
11655 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11658 # FIXME: insert proper C++ library support
11665 case $cc_basename in
11667 # Kuck and Associates, Inc. (KAI) C++ Compiler
11669 # KCC will only create a shared library if the output file
11670 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11671 # to its proper name (with version) after linking.
11672 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'
11674 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11675 hardcode_libdir_separator_CXX=:
11677 # Archives containing C++ object files must be created using
11678 # the KAI C++ compiler.
11679 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11682 # Rational C++ 2.4.1
11683 # FIXME: insert proper C++ library support
11687 allow_undefined_flag_CXX=' -expect_unresolved \*'
11688 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'
11689 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11690 echo "-hidden">> $lib.exp~
11691 $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~
11694 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11695 hardcode_libdir_separator_CXX=:
11697 # Commands to make compiler produce verbose output that lists
11698 # what "hidden" libraries, object files and flags are used when
11699 # linking a shared library.
11701 # There doesn't appear to be a way to prevent this compiler from
11702 # explicitly linking system object files so we need to strip them
11703 # from the output so that they don't get included in the library
11705 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'
11708 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11709 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11710 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'
11712 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11713 hardcode_libdir_separator_CXX=:
11715 # Commands to make compiler produce verbose output that lists
11716 # what "hidden" libraries, object files and flags are used when
11717 # linking a shared library.
11718 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11721 # FIXME: insert proper C++ library support
11728 # FIXME: insert proper C++ library support
11732 case $cc_basename in
11735 # FIXME: insert proper C++ library support
11740 # FIXME: insert proper C++ library support
11744 # FIXME: insert proper C++ library support
11750 case $cc_basename in
11752 # Sun C++ 4.2, 5.x and Centerline C++
11753 archive_cmds_need_lc_CXX=yes
11754 no_undefined_flag_CXX=' -zdefs'
11755 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11756 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11757 $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'
11759 hardcode_libdir_flag_spec_CXX='-R$libdir'
11760 hardcode_shlibpath_var_CXX=no
11762 solaris2.[0-5] | solaris2.[0-5].*) ;;
11764 # The compiler driver will combine and reorder linker options,
11765 # but understands `-z linker_flag'.
11766 # Supported since Solaris 2.6 (maybe 2.5.1?)
11767 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11770 link_all_deplibs_CXX=yes
11772 output_verbose_link_cmd='echo'
11774 # Archives containing C++ object files must be created using
11775 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11776 # necessary to make sure instantiated templates are included
11778 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11781 # Green Hills C++ Compiler
11782 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11784 # The C++ compiler must be used to create the archive.
11785 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11788 # GNU C++ compiler with Solaris linker
11789 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11790 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11791 if $CC --version | grep -v '^2\.7' > /dev/null; then
11792 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11793 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11794 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11796 # Commands to make compiler produce verbose output that lists
11797 # what "hidden" libraries, object files and flags are used when
11798 # linking a shared library.
11799 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11801 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11803 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11804 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11805 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11807 # Commands to make compiler produce verbose output that lists
11808 # what "hidden" libraries, object files and flags are used when
11809 # linking a shared library.
11810 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11813 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11815 solaris2.[0-5] | solaris2.[0-5].*) ;;
11817 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11824 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11825 no_undefined_flag_CXX='${wl}-z,text'
11826 archive_cmds_need_lc_CXX=no
11827 hardcode_shlibpath_var_CXX=no
11828 runpath_var='LD_RUN_PATH'
11830 case $cc_basename in
11832 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11833 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11836 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11837 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11841 sysv5* | sco3.2v5* | sco5v6*)
11842 # Note: We can NOT use -z defs as we might desire, because we do not
11843 # link with -lc, and that would cause any symbols used from libc to
11844 # always be unresolved, which means just about no library would
11845 # ever link correctly. If we're not using GNU ld we use -z text
11846 # though, which does catch some bad symbols but isn't as heavy-handed
11848 # For security reasons, it is highly recommended that you always
11849 # use absolute paths for naming shared libraries, and exclude the
11850 # DT_RUNPATH tag from executables and libraries. But doing so
11851 # requires that you compile everything twice, which is a pain.
11852 # So that behaviour is only enabled if SCOABSPATH is set to a
11853 # non-empty value in the environment. Most likely only useful for
11854 # creating official distributions of packages.
11855 # This is a hack until libtool officially supports absolute path
11856 # names for shared libraries.
11857 no_undefined_flag_CXX='${wl}-z,text'
11858 allow_undefined_flag_CXX='${wl}-z,nodefs'
11859 archive_cmds_need_lc_CXX=no
11860 hardcode_shlibpath_var_CXX=no
11861 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11862 hardcode_libdir_separator_CXX=':'
11863 link_all_deplibs_CXX=yes
11864 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11865 runpath_var='LD_RUN_PATH'
11867 case $cc_basename in
11869 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11870 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11873 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11874 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11879 case $cc_basename in
11881 # NonStop-UX NCC 3.20
11882 # FIXME: insert proper C++ library support
11886 # FIXME: insert proper C++ library support
11892 # FIXME: insert proper C++ library support
11896 # FIXME: insert proper C++ library support
11900 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11901 $as_echo "$ld_shlibs_CXX" >&6; }
11902 test "$ld_shlibs_CXX" = no && can_build_shared=no
11908 ## There is no encapsulation within the following macros, do not change
11909 ## the running order or otherwise move them around unless you know exactly
11910 ## what you are doing...
11911 cat > conftest.$ac_ext <<EOF
11915 Foo (void) { a = 0; }
11921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11922 (eval $ac_compile) 2>&5
11924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); }; then
11926 # Parse the compiler output and extract the necessary
11927 # objects, libraries and library flags.
11929 # Sentinel used to keep track of whether or not we are before
11930 # the conftest object file.
11931 pre_test_object_deps_done=no
11933 # The `*' in the case matches for architectures that use `case' in
11934 # $output_verbose_cmd can trigger glob expansion during the loop
11935 # eval without this substitution.
11936 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11938 for p in `eval $output_verbose_link_cmd`; do
11942 # Some compilers place space between "-{L,R}" and the path.
11943 # Remove the space.
11944 if test $p = "-L" \
11945 || test $p = "-R"; then
11952 if test "$pre_test_object_deps_done" = no; then
11955 # Internal compiler library paths should come after those
11956 # provided the user. The postdeps already come after the
11957 # user supplied libs so there is no need to process them.
11958 if test -z "$compiler_lib_search_path_CXX"; then
11959 compiler_lib_search_path_CXX="${prev}${p}"
11961 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11964 # The "-l" case would never come before the object being
11965 # linked, so don't bother handling this case.
11968 if test -z "$postdeps_CXX"; then
11969 postdeps_CXX="${prev}${p}"
11971 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11977 # This assumes that the test object file only shows up
11978 # once in the compiler output.
11979 if test "$p" = "conftest.$objext"; then
11980 pre_test_object_deps_done=yes
11984 if test "$pre_test_object_deps_done" = no; then
11985 if test -z "$predep_objects_CXX"; then
11986 predep_objects_CXX="$p"
11988 predep_objects_CXX="$predep_objects_CXX $p"
11991 if test -z "$postdep_objects_CXX"; then
11992 postdep_objects_CXX="$p"
11994 postdep_objects_CXX="$postdep_objects_CXX $p"
11999 *) ;; # Ignore the rest.
12007 echo "libtool.m4: error: problem compiling CXX test program"
12010 $rm -f confest.$objext
12012 compiler_lib_search_dirs_CXX=
12013 if test -n "$compiler_lib_search_path_CXX"; then
12014 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12017 # PORTME: override above test on systems where it is broken
12020 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12021 # hack all around it, let's just trust "g++" to DTRT.
12022 predep_objects_CXX=
12023 postdep_objects_CXX=
12028 case `$CC -V 2>&1 | sed 5q` in
12032 # The more standards-conforming stlport4 library is
12033 # incompatible with the Cstd library. Avoid specifying
12034 # it if it's in CXXFLAGS. Ignore libCrun as
12035 # -library=stlport4 depends on it.
12036 case " $CXX $CXXFLAGS " in
12037 *" -library=stlport4 "*)
12038 solaris_use_stlport4=yes
12041 if test "$solaris_use_stlport4" != yes; then
12042 postdeps_CXX='-library=Cstd -library=Crun'
12049 case $cc_basename in
12051 # The more standards-conforming stlport4 library is
12052 # incompatible with the Cstd library. Avoid specifying
12053 # it if it's in CXXFLAGS. Ignore libCrun as
12054 # -library=stlport4 depends on it.
12055 case " $CXX $CXXFLAGS " in
12056 *" -library=stlport4 "*)
12057 solaris_use_stlport4=yes
12061 # Adding this requires a known-good setup of shared libraries for
12062 # Sun compiler versions before 5.6, else PIC objects from an old
12063 # archive will be linked into the output, leading to subtle bugs.
12064 if test "$solaris_use_stlport4" != yes; then
12065 postdeps_CXX='-library=Cstd -library=Crun'
12072 case " $postdeps_CXX " in
12073 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12076 lt_prog_compiler_wl_CXX=
12077 lt_prog_compiler_pic_CXX=
12078 lt_prog_compiler_static_CXX=
12080 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12081 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12083 # C++ specific cases for pic, static, wl, etc.
12084 if test "$GXX" = yes; then
12085 lt_prog_compiler_wl_CXX='-Wl,'
12086 lt_prog_compiler_static_CXX='-static'
12090 # All AIX code is PIC.
12091 if test "$host_cpu" = ia64; then
12092 # AIX 5 now supports IA64 processor
12093 lt_prog_compiler_static_CXX='-Bstatic'
12097 # FIXME: we need at least 68020 code to build shared libraries, but
12098 # adding the `-m68020' flag to GCC prevents building anything better,
12100 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12102 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12103 # PIC is the default for these OSes.
12105 mingw* | cygwin* | os2* | pw32*)
12106 # This hack is so that the source file can tell whether it is being
12107 # built for inclusion in a dll (and should export symbols for example).
12108 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12109 # (--disable-auto-import) libraries
12110 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12112 darwin* | rhapsody*)
12113 # PIC is the default on this platform
12114 # Common symbols not allowed in MH_DYLIB files
12115 lt_prog_compiler_pic_CXX='-fno-common'
12118 # DJGPP does not support shared libraries at all
12119 lt_prog_compiler_pic_CXX=
12122 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12123 # Instead, we relocate shared libraries at runtime.
12126 if test -d /usr/nec; then
12127 lt_prog_compiler_pic_CXX=-Kconform_pic
12131 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12132 # not for PA HP-UX.
12137 lt_prog_compiler_pic_CXX='-fPIC'
12142 lt_prog_compiler_pic_CXX='-fPIC'
12148 # All AIX code is PIC.
12149 if test "$host_cpu" = ia64; then
12150 # AIX 5 now supports IA64 processor
12151 lt_prog_compiler_static_CXX='-Bstatic'
12153 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12157 case $cc_basename in
12159 # Green Hills C++ Compiler
12160 # _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"
12165 # PIC is the default on this platform
12166 # Common symbols not allowed in MH_DYLIB files
12167 case $cc_basename in
12169 lt_prog_compiler_pic_CXX='-qnocommon'
12170 lt_prog_compiler_wl_CXX='-Wl,'
12175 case $cc_basename in
12177 lt_prog_compiler_pic_CXX='-KPIC'
12180 # Green Hills C++ Compiler
12181 lt_prog_compiler_pic_CXX='-pic'
12187 freebsd* | dragonfly*)
12188 # FreeBSD uses GNU C++
12190 hpux9* | hpux10* | hpux11*)
12191 case $cc_basename in
12193 lt_prog_compiler_wl_CXX='-Wl,'
12194 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12195 if test "$host_cpu" != ia64; then
12196 lt_prog_compiler_pic_CXX='+Z'
12200 lt_prog_compiler_wl_CXX='-Wl,'
12201 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12207 lt_prog_compiler_pic_CXX='+Z'
12216 # This is c89, which is MS Visual C++ (no shared libs)
12217 # Anyone wants to do a port?
12219 irix5* | irix6* | nonstopux*)
12220 case $cc_basename in
12222 lt_prog_compiler_wl_CXX='-Wl,'
12223 lt_prog_compiler_static_CXX='-non_shared'
12224 # CC pic flag -KPIC is the default.
12230 linux* | k*bsd*-gnu)
12231 case $cc_basename in
12234 lt_prog_compiler_wl_CXX='--backend -Wl,'
12235 lt_prog_compiler_pic_CXX='-fPIC'
12239 lt_prog_compiler_wl_CXX='-Wl,'
12240 lt_prog_compiler_pic_CXX='-KPIC'
12241 lt_prog_compiler_static_CXX='-static'
12244 # Portland Group C++ compiler.
12245 lt_prog_compiler_wl_CXX='-Wl,'
12246 lt_prog_compiler_pic_CXX='-fpic'
12247 lt_prog_compiler_static_CXX='-Bstatic'
12251 # Make sure the PIC flag is empty. It appears that all Alpha
12252 # Linux and Compaq Tru64 Unix objects are PIC.
12253 lt_prog_compiler_pic_CXX=
12254 lt_prog_compiler_static_CXX='-non_shared'
12257 case `$CC -V 2>&1 | sed 5q` in
12260 lt_prog_compiler_pic_CXX='-KPIC'
12261 lt_prog_compiler_static_CXX='-Bstatic'
12262 lt_prog_compiler_wl_CXX='-Qoption ld '
12273 case $cc_basename in
12275 lt_prog_compiler_pic_CXX='-W c,exportall'
12283 osf3* | osf4* | osf5*)
12284 case $cc_basename in
12286 lt_prog_compiler_wl_CXX='--backend -Wl,'
12289 # Rational C++ 2.4.1
12290 lt_prog_compiler_pic_CXX='-pic'
12293 # Digital/Compaq C++
12294 lt_prog_compiler_wl_CXX='-Wl,'
12295 # Make sure the PIC flag is empty. It appears that all Alpha
12296 # Linux and Compaq Tru64 Unix objects are PIC.
12297 lt_prog_compiler_pic_CXX=
12298 lt_prog_compiler_static_CXX='-non_shared'
12307 case $cc_basename in
12309 # Sun C++ 4.2, 5.x and Centerline C++
12310 lt_prog_compiler_pic_CXX='-KPIC'
12311 lt_prog_compiler_static_CXX='-Bstatic'
12312 lt_prog_compiler_wl_CXX='-Qoption ld '
12315 # Green Hills C++ Compiler
12316 lt_prog_compiler_pic_CXX='-PIC'
12323 case $cc_basename in
12326 lt_prog_compiler_pic_CXX='-pic'
12327 lt_prog_compiler_static_CXX='-Bstatic'
12331 lt_prog_compiler_pic_CXX='-pic'
12338 case $cc_basename in
12340 # NonStop-UX NCC 3.20
12341 lt_prog_compiler_pic_CXX='-KPIC'
12347 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12348 case $cc_basename in
12350 lt_prog_compiler_wl_CXX='-Wl,'
12351 lt_prog_compiler_pic_CXX='-KPIC'
12352 lt_prog_compiler_static_CXX='-Bstatic'
12359 lt_prog_compiler_can_build_shared_CXX=no
12364 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12365 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12368 # Check to make sure the PIC flag actually works.
12370 if test -n "$lt_prog_compiler_pic_CXX"; then
12372 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12373 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12374 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12375 $as_echo_n "(cached) " >&6
12377 lt_cv_prog_compiler_pic_works_CXX=no
12378 ac_outfile=conftest.$ac_objext
12379 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12380 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12381 # Insert the option either (1) after the last *FLAGS variable, or
12382 # (2) before a word containing "conftest.", or (3) at the end.
12383 # Note that $ac_compile itself does not contain backslashes and begins
12384 # with a dollar sign (not a hyphen), so the echo should work correctly.
12385 # The option is referenced via a variable to avoid confusing sed.
12386 lt_compile=`echo "$ac_compile" | $SED \
12387 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12388 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12389 -e 's:$: $lt_compiler_flag:'`
12390 (eval echo "\"\$as_me:12390: $lt_compile\"" >&5)
12391 (eval "$lt_compile" 2>conftest.err)
12393 cat conftest.err >&5
12394 echo "$as_me:12394: \$? = $ac_status" >&5
12395 if (exit $ac_status) && test -s "$ac_outfile"; then
12396 # The compiler can only warn and ignore the option if not recognized
12397 # So say no if there are warnings other than the usual output.
12398 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12399 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12400 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12401 lt_cv_prog_compiler_pic_works_CXX=yes
12407 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12408 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12410 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12411 case $lt_prog_compiler_pic_CXX in
12413 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12416 lt_prog_compiler_pic_CXX=
12417 lt_prog_compiler_can_build_shared_CXX=no
12422 # For platforms which do not support PIC, -DPIC is meaningless:
12424 lt_prog_compiler_pic_CXX=
12427 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12432 # Check to make sure the static flag actually works.
12434 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12435 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12436 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12437 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12438 $as_echo_n "(cached) " >&6
12440 lt_cv_prog_compiler_static_works_CXX=no
12441 save_LDFLAGS="$LDFLAGS"
12442 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12443 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12444 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12445 # The linker can only warn and ignore the option if not recognized
12446 # So say no if there are warnings
12447 if test -s conftest.err; then
12448 # Append any errors to the config.log.
12449 cat conftest.err 1>&5
12450 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12451 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12452 if diff conftest.exp conftest.er2 >/dev/null; then
12453 lt_cv_prog_compiler_static_works_CXX=yes
12456 lt_cv_prog_compiler_static_works_CXX=yes
12460 LDFLAGS="$save_LDFLAGS"
12463 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12464 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12466 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12469 lt_prog_compiler_static_CXX=
12473 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12474 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12475 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12476 $as_echo_n "(cached) " >&6
12478 lt_cv_prog_compiler_c_o_CXX=no
12479 $rm -r conftest 2>/dev/null
12483 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12485 lt_compiler_flag="-o out/conftest2.$ac_objext"
12486 # Insert the option either (1) after the last *FLAGS variable, or
12487 # (2) before a word containing "conftest.", or (3) at the end.
12488 # Note that $ac_compile itself does not contain backslashes and begins
12489 # with a dollar sign (not a hyphen), so the echo should work correctly.
12490 lt_compile=`echo "$ac_compile" | $SED \
12491 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12492 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12493 -e 's:$: $lt_compiler_flag:'`
12494 (eval echo "\"\$as_me:12494: $lt_compile\"" >&5)
12495 (eval "$lt_compile" 2>out/conftest.err)
12497 cat out/conftest.err >&5
12498 echo "$as_me:12498: \$? = $ac_status" >&5
12499 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12501 # The compiler can only warn and ignore the option if not recognized
12502 # So say no if there are warnings
12503 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12504 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12505 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12506 lt_cv_prog_compiler_c_o_CXX=yes
12511 # SGI C++ compiler will create directory out/ii_files/ for
12512 # template instantiation
12513 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12514 $rm out/* && rmdir out
12520 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12521 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12524 hard_links="nottested"
12525 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12526 # do not overwrite the value of need_locks provided by the user
12527 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12528 $as_echo_n "checking if we can lock with hard links... " >&6; }
12531 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12533 ln conftest.a conftest.b 2>&5 || hard_links=no
12534 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12535 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
12536 $as_echo "$hard_links" >&6; }
12537 if test "$hard_links" = no; then
12538 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12539 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12546 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12547 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12549 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12552 # If we're using GNU nm, then we don't want the "-C" option.
12553 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12554 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12555 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'
12557 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'
12561 export_symbols_cmds_CXX="$ltdll_cmds"
12564 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'
12567 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12570 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12572 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12573 $as_echo "$ld_shlibs_CXX" >&6; }
12574 test "$ld_shlibs_CXX" = no && can_build_shared=no
12577 # Do we need to explicitly link libc?
12579 case "x$archive_cmds_need_lc_CXX" in
12581 # Assume -lc should be added
12582 archive_cmds_need_lc_CXX=yes
12584 if test "$enable_shared" = yes && test "$GCC" = yes; then
12585 case $archive_cmds_CXX in
12587 # FIXME: we may have to deal with multi-command sequences.
12590 # Test whether the compiler implicitly links with -lc since on some
12591 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12592 # to ld, don't add -lc before -lgcc.
12593 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12594 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12596 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12599 (eval $ac_compile) 2>&5
12601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602 (exit $ac_status); } 2>conftest.err; then
12605 libobjs=conftest.$ac_objext
12607 wl=$lt_prog_compiler_wl_CXX
12608 pic_flag=$lt_prog_compiler_pic_CXX
12614 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12615 allow_undefined_flag_CXX=
12616 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12617 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); }
12622 archive_cmds_need_lc_CXX=no
12624 archive_cmds_need_lc_CXX=yes
12626 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12628 cat conftest.err 1>&5
12631 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12632 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
12639 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12640 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12641 library_names_spec=
12642 libname_spec='lib$name'
12646 postuninstall_cmds=
12650 shlibpath_overrides_runpath=unknown
12652 dynamic_linker="$host_os ld.so"
12653 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12655 need_lib_prefix=unknown
12656 hardcode_into_libs=no
12658 # when you set need_version to no, make sure it does not cause -set_version
12659 # flags to be left without arguments
12660 need_version=unknown
12665 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12666 shlibpath_var=LIBPATH
12668 # AIX 3 has no versioning support, so we append a major version to the name.
12669 soname_spec='${libname}${release}${shared_ext}$major'
12676 hardcode_into_libs=yes
12677 if test "$host_cpu" = ia64; then
12678 # AIX 5 supports IA64
12679 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12680 shlibpath_var=LD_LIBRARY_PATH
12682 # With GCC up to 2.95.x, collect2 would create an import file
12683 # for dependence libraries. The import file would start with
12684 # the line `#! .'. This would cause the generated library to
12685 # depend on `.', always an invalid library. This was fixed in
12686 # development snapshots of GCC prior to 3.0.
12688 aix4 | aix4.[01] | aix4.[01].*)
12689 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12691 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12694 can_build_shared=no
12698 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12699 # soname into executable. Probably we can add versioning support to
12700 # collect2, so additional links can be useful in future.
12701 if test "$aix_use_runtimelinking" = yes; then
12702 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12703 # instead of lib<name>.a to let people know that these are not
12704 # typical AIX shared libraries.
12705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12707 # We preserve .a as extension for shared libraries through AIX4.2
12708 # and later when we are not doing run time linking.
12709 library_names_spec='${libname}${release}.a $libname.a'
12710 soname_spec='${libname}${release}${shared_ext}$major'
12712 shlibpath_var=LIBPATH
12717 library_names_spec='$libname.ixlibrary $libname.a'
12718 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12719 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'
12723 library_names_spec='${libname}${shared_ext}'
12724 dynamic_linker="$host_os ld.so"
12725 shlibpath_var=LIBRARY_PATH
12731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12732 soname_spec='${libname}${release}${shared_ext}$major'
12733 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12734 shlibpath_var=LD_LIBRARY_PATH
12735 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12736 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12737 # the default ld.so.conf also contains /usr/contrib/lib and
12738 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12739 # libtool to hard-code these into programs
12742 cygwin* | mingw* | pw32*)
12743 version_type=windows
12748 case $GCC,$host_os in
12749 yes,cygwin* | yes,mingw* | yes,pw32*)
12750 library_names_spec='$libname.dll.a'
12751 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12752 postinstall_cmds='base_file=`basename \${file}`~
12753 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12754 dldir=$destdir/`dirname \$dlpath`~
12755 test -d \$dldir || mkdir -p \$dldir~
12756 $install_prog $dir/$dlname \$dldir/$dlname~
12757 chmod a+x \$dldir/$dlname'
12758 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12759 dlpath=$dir/\$dldll~
12761 shlibpath_overrides_runpath=yes
12765 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12766 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12767 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12770 # MinGW DLLs use traditional 'lib' prefix
12771 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12772 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12773 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12774 # It is most probably a Windows format PATH printed by
12775 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12776 # path with ; separators, and with drive letters. We can handle the
12777 # drive letters (cygwin fileutils understands them), so leave them,
12778 # especially as we might pass files found there to a mingw objdump,
12779 # which wouldn't understand a cygwinified path. Ahh.
12780 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12782 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12786 # pw32 DLLs use 'pw' prefix rather than 'lib'
12787 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12793 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12796 dynamic_linker='Win32 ld.exe'
12797 # FIXME: first we should search . and the directory the executable is in
12801 darwin* | rhapsody*)
12802 dynamic_linker="$host_os dyld"
12803 version_type=darwin
12806 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12807 soname_spec='${libname}${release}${major}$shared_ext'
12808 shlibpath_overrides_runpath=yes
12809 shlibpath_var=DYLD_LIBRARY_PATH
12810 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12812 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12820 soname_spec='${libname}${release}${shared_ext}$major'
12821 shlibpath_var=LD_LIBRARY_PATH
12828 freebsd* | dragonfly*)
12829 # DragonFly does not have aout. When/if they implement a new
12830 # versioning mechanism, adjust this.
12831 if test -x /usr/bin/objformat; then
12832 objformat=`/usr/bin/objformat`
12835 freebsd[123]*) objformat=aout ;;
12836 *) objformat=elf ;;
12839 version_type=freebsd-$objformat
12840 case $version_type in
12842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12847 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12851 shlibpath_var=LD_LIBRARY_PATH
12854 shlibpath_overrides_runpath=yes
12856 freebsd3.[01]* | freebsdelf3.[01]*)
12857 shlibpath_overrides_runpath=yes
12858 hardcode_into_libs=yes
12860 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12861 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12862 shlibpath_overrides_runpath=no
12863 hardcode_into_libs=yes
12865 *) # from 4.6 on, and DragonFly
12866 shlibpath_overrides_runpath=yes
12867 hardcode_into_libs=yes
12876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12877 soname_spec='${libname}${release}${shared_ext}$major'
12878 shlibpath_var=LD_LIBRARY_PATH
12879 hardcode_into_libs=yes
12882 hpux9* | hpux10* | hpux11*)
12883 # Give a soname corresponding to the major version so that dld.sl refuses to
12884 # link against other versions.
12891 hardcode_into_libs=yes
12892 dynamic_linker="$host_os dld.so"
12893 shlibpath_var=LD_LIBRARY_PATH
12894 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12896 soname_spec='${libname}${release}${shared_ext}$major'
12897 if test "X$HPUX_IA64_MODE" = X32; then
12898 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12900 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12902 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12906 hardcode_into_libs=yes
12907 dynamic_linker="$host_os dld.sl"
12908 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12909 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12911 soname_spec='${libname}${release}${shared_ext}$major'
12912 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12913 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12917 dynamic_linker="$host_os dld.sl"
12918 shlibpath_var=SHLIB_PATH
12919 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12921 soname_spec='${libname}${release}${shared_ext}$major'
12924 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12925 postinstall_cmds='chmod 555 $lib'
12932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12933 soname_spec='${libname}${release}${shared_ext}$major'
12934 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12935 shlibpath_var=LD_LIBRARY_PATH
12936 shlibpath_overrides_runpath=no
12937 hardcode_into_libs=yes
12940 irix5* | irix6* | nonstopux*)
12942 nonstopux*) version_type=nonstopux ;;
12944 if test "$lt_cv_prog_gnu_ld" = yes; then
12952 soname_spec='${libname}${release}${shared_ext}$major'
12953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12955 irix5* | nonstopux*)
12956 libsuff= shlibsuff=
12959 case $LD in # libtool.m4 will add one of these switches to LD
12960 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12961 libsuff= shlibsuff= libmagic=32-bit;;
12962 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12963 libsuff=32 shlibsuff=N32 libmagic=N32;;
12964 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12965 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12966 *) libsuff= shlibsuff= libmagic=never-match;;
12970 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12971 shlibpath_overrides_runpath=no
12972 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12973 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12974 hardcode_into_libs=yes
12977 # No shared lib support for Linux oldld, aout, or coff.
12978 linux*oldld* | linux*aout* | linux*coff*)
12982 # This must be Linux ELF.
12983 linux* | k*bsd*-gnu)
12987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12988 soname_spec='${libname}${release}${shared_ext}$major'
12989 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12990 shlibpath_var=LD_LIBRARY_PATH
12991 shlibpath_overrides_runpath=no
12992 # This implies no fast_install, which is unacceptable.
12993 # Some rework will be needed to allow for fast_install
12994 # before this can be enabled.
12995 hardcode_into_libs=yes
12996 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12997 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12999 # Append ld.so.conf contents to the search path
13000 if test -f /etc/ld.so.conf; then
13001 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13002 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13005 # We used to test for /lib/ld.so.1 and disable shared libraries on
13006 # powerpc, because MkLinux only supported shared libraries with the
13007 # GNU dynamic linker. Since this was broken with cross compilers,
13008 # most powerpc-linux boxes support dynamic linking these days and
13009 # people can always --disable-shared, the test was removed, and we
13010 # assume the GNU/Linux dynamic linker is in use.
13011 dynamic_linker='GNU/Linux ld.so'
13018 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13020 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13021 dynamic_linker='NetBSD (a.out) ld.so'
13023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13024 soname_spec='${libname}${release}${shared_ext}$major'
13025 dynamic_linker='NetBSD ld.elf_so'
13027 shlibpath_var=LD_LIBRARY_PATH
13028 shlibpath_overrides_runpath=yes
13029 hardcode_into_libs=yes
13034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13035 shlibpath_var=LD_LIBRARY_PATH
13036 shlibpath_overrides_runpath=yes
13043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13044 soname_spec='${libname}${release}${shared_ext}$major'
13045 shlibpath_var=LD_LIBRARY_PATH
13046 shlibpath_overrides_runpath=yes
13051 sys_lib_dlsearch_path_spec="/usr/lib"
13053 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13055 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13056 *) need_version=no ;;
13058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13059 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13060 shlibpath_var=LD_LIBRARY_PATH
13061 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13063 openbsd2.[89] | openbsd2.[89].*)
13064 shlibpath_overrides_runpath=no
13067 shlibpath_overrides_runpath=yes
13071 shlibpath_overrides_runpath=yes
13076 libname_spec='$name'
13079 library_names_spec='$libname${shared_ext} $libname.a'
13080 dynamic_linker='OS/2 ld.exe'
13081 shlibpath_var=LIBPATH
13084 osf3* | osf4* | osf5*)
13088 soname_spec='${libname}${release}${shared_ext}$major'
13089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13090 shlibpath_var=LD_LIBRARY_PATH
13091 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13092 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13104 soname_spec='${libname}${release}${shared_ext}$major'
13105 shlibpath_var=LD_LIBRARY_PATH
13106 shlibpath_overrides_runpath=yes
13107 hardcode_into_libs=yes
13108 # ldd complains unless libraries are executable
13109 postinstall_cmds='chmod +x $lib'
13114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13115 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13116 shlibpath_var=LD_LIBRARY_PATH
13117 shlibpath_overrides_runpath=yes
13118 if test "$with_gnu_ld" = yes; then
13126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13127 soname_spec='${libname}${release}${shared_ext}$major'
13128 shlibpath_var=LD_LIBRARY_PATH
13129 case $host_vendor in
13131 shlibpath_overrides_runpath=no
13133 export_dynamic_flag_spec='${wl}-Blargedynsym'
13134 runpath_var=LD_RUN_PATH
13142 shlibpath_overrides_runpath=no
13143 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13149 if test -d /usr/nec ;then
13151 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13152 soname_spec='$libname${shared_ext}.$major'
13153 shlibpath_var=LD_LIBRARY_PATH
13157 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13158 version_type=freebsd-elf
13161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13162 soname_spec='${libname}${release}${shared_ext}$major'
13163 shlibpath_var=LD_LIBRARY_PATH
13164 hardcode_into_libs=yes
13165 if test "$with_gnu_ld" = yes; then
13166 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13167 shlibpath_overrides_runpath=no
13169 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13170 shlibpath_overrides_runpath=yes
13173 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13177 sys_lib_dlsearch_path_spec='/usr/lib'
13182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13183 soname_spec='${libname}${release}${shared_ext}$major'
13184 shlibpath_var=LD_LIBRARY_PATH
13191 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13192 $as_echo "$dynamic_linker" >&6; }
13193 test "$dynamic_linker" = no && can_build_shared=no
13195 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13196 $as_echo_n "(cached) " >&6
13198 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13201 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13202 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13203 $as_echo_n "(cached) " >&6
13205 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13208 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13210 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13211 if test "$GCC" = yes; then
13212 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13215 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13216 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13217 hardcode_action_CXX=
13218 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13219 test -n "$runpath_var_CXX" || \
13220 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13222 # We can hardcode non-existant directories.
13223 if test "$hardcode_direct_CXX" != no &&
13224 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13225 # have to relink, otherwise we might link with an installed library
13226 # when we should be linking with a yet-to-be-installed one
13227 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13228 test "$hardcode_minus_L_CXX" != no; then
13229 # Linking always hardcodes the temporary library directory.
13230 hardcode_action_CXX=relink
13232 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13233 hardcode_action_CXX=immediate
13236 # We cannot hardcode anything, or else we can only hardcode existing
13238 hardcode_action_CXX=unsupported
13240 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13241 $as_echo "$hardcode_action_CXX" >&6; }
13243 if test "$hardcode_action_CXX" = relink; then
13244 # Fast installation is not supported
13245 enable_fast_install=no
13246 elif test "$shlibpath_overrides_runpath" = yes ||
13247 test "$enable_shared" = no; then
13248 # Fast installation is not necessary
13249 enable_fast_install=needless
13253 # The else clause should only fire when bootstrapping the
13254 # libtool distribution, otherwise you forgot to ship ltmain.sh
13255 # with your package, and you will get complaints that there are
13256 # no rules to generate ltmain.sh.
13257 if test -f "$ltmain"; then
13258 # See if we are running on zsh, and set the options which allow our commands through
13259 # without removal of \ escapes.
13260 if test -n "${ZSH_VERSION+set}" ; then
13261 setopt NO_GLOB_SUBST
13263 # Now quote all the things that may contain metacharacters while being
13264 # careful not to overquote the AC_SUBSTed values. We take copies of the
13265 # variables and quote the copies for generation of the libtool script.
13266 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13268 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13269 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13270 deplibs_check_method reload_flag reload_cmds need_locks \
13271 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13272 lt_cv_sys_global_symbol_to_c_name_address \
13273 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13274 old_postinstall_cmds old_postuninstall_cmds \
13278 lt_prog_compiler_wl_CXX \
13279 lt_prog_compiler_pic_CXX \
13280 lt_prog_compiler_static_CXX \
13281 lt_prog_compiler_no_builtin_flag_CXX \
13282 export_dynamic_flag_spec_CXX \
13283 thread_safe_flag_spec_CXX \
13284 whole_archive_flag_spec_CXX \
13285 enable_shared_with_static_runtimes_CXX \
13286 old_archive_cmds_CXX \
13287 old_archive_from_new_cmds_CXX \
13288 predep_objects_CXX \
13289 postdep_objects_CXX \
13292 compiler_lib_search_path_CXX \
13293 compiler_lib_search_dirs_CXX \
13295 archive_expsym_cmds_CXX \
13296 postinstall_cmds_CXX \
13297 postuninstall_cmds_CXX \
13298 old_archive_from_expsyms_cmds_CXX \
13299 allow_undefined_flag_CXX \
13300 no_undefined_flag_CXX \
13301 export_symbols_cmds_CXX \
13302 hardcode_libdir_flag_spec_CXX \
13303 hardcode_libdir_flag_spec_ld_CXX \
13304 hardcode_libdir_separator_CXX \
13305 hardcode_automatic_CXX \
13307 module_expsym_cmds_CXX \
13308 lt_cv_prog_compiler_c_o_CXX \
13309 fix_srcfile_path_CXX \
13310 exclude_expsyms_CXX \
13311 include_expsyms_CXX; do
13314 old_archive_cmds_CXX | \
13315 old_archive_from_new_cmds_CXX | \
13316 archive_cmds_CXX | \
13317 archive_expsym_cmds_CXX | \
13318 module_cmds_CXX | \
13319 module_expsym_cmds_CXX | \
13320 old_archive_from_expsyms_cmds_CXX | \
13321 export_symbols_cmds_CXX | \
13322 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13323 postinstall_cmds | postuninstall_cmds | \
13324 old_postinstall_cmds | old_postuninstall_cmds | \
13325 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13326 # Double-quote double-evaled strings.
13327 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13330 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13336 *'\$0 --fallback-echo"')
13337 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13343 cat <<__EOF__ >> "$cfgfile"
13344 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13346 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13348 # Shell to use when invoking shell scripts.
13351 # Whether or not to build shared libraries.
13352 build_libtool_libs=$enable_shared
13354 # Whether or not to build static libraries.
13355 build_old_libs=$enable_static
13357 # Whether or not to add -lc for building shared libraries.
13358 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13360 # Whether or not to disallow shared libs when runtime libs are static
13361 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13363 # Whether or not to optimize for fast installation.
13364 fast_install=$enable_fast_install
13367 host_alias=$host_alias
13371 # The build system.
13372 build_alias=$build_alias
13376 # An echo program that does not interpret backslashes.
13381 AR_FLAGS=$lt_AR_FLAGS
13386 # LTCC compiler flags.
13387 LTCFLAGS=$lt_LTCFLAGS
13389 # A language-specific compiler.
13390 CC=$lt_compiler_CXX
13392 # Is the compiler the GNU C compiler?
13398 # The linker used to build libraries.
13401 # Whether we need hard or soft links.
13404 # A BSD-compatible nm program.
13407 # A symbol stripping program
13410 # Used to examine libraries when file_magic_cmd begins "file"
13411 MAGIC_CMD=$MAGIC_CMD
13413 # Used on cygwin: DLL creation program.
13416 # Used on cygwin: object dumper.
13419 # Used on cygwin: assembler.
13422 # The name of the directory that contains temporary libtool files.
13425 # How to create reloadable object files.
13426 reload_flag=$lt_reload_flag
13427 reload_cmds=$lt_reload_cmds
13429 # How to pass a linker flag through the compiler.
13430 wl=$lt_lt_prog_compiler_wl_CXX
13432 # Object file suffix (normally "o").
13433 objext="$ac_objext"
13435 # Old archive suffix (normally "a").
13438 # Shared library suffix (normally ".so").
13439 shrext_cmds='$shrext_cmds'
13441 # Executable file suffix (normally "").
13444 # Additional compiler flags for building library objects.
13445 pic_flag=$lt_lt_prog_compiler_pic_CXX
13448 # What is the maximum length of a command?
13449 max_cmd_len=$lt_cv_sys_max_cmd_len
13451 # Does compiler simultaneously support -c and -o options?
13452 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13454 # Must we lock files when doing compilation?
13455 need_locks=$lt_need_locks
13457 # Do we need the lib prefix for modules?
13458 need_lib_prefix=$need_lib_prefix
13460 # Do we need a version for libraries?
13461 need_version=$need_version
13463 # Whether dlopen is supported.
13464 dlopen_support=$enable_dlopen
13466 # Whether dlopen of programs is supported.
13467 dlopen_self=$enable_dlopen_self
13469 # Whether dlopen of statically linked programs is supported.
13470 dlopen_self_static=$enable_dlopen_self_static
13472 # Compiler flag to prevent dynamic linking.
13473 link_static_flag=$lt_lt_prog_compiler_static_CXX
13475 # Compiler flag to turn off builtin functions.
13476 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13478 # Compiler flag to allow reflexive dlopens.
13479 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13481 # Compiler flag to generate shared objects directly from archives.
13482 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13484 # Compiler flag to generate thread-safe objects.
13485 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13487 # Library versioning type.
13488 version_type=$version_type
13490 # Format of library name prefix.
13491 libname_spec=$lt_libname_spec
13493 # List of archive names. First name is the real one, the rest are links.
13494 # The last name is the one that the linker finds with -lNAME.
13495 library_names_spec=$lt_library_names_spec
13497 # The coded name of the library, if different from the real name.
13498 soname_spec=$lt_soname_spec
13500 # Commands used to build and install an old-style archive.
13502 old_archive_cmds=$lt_old_archive_cmds_CXX
13503 old_postinstall_cmds=$lt_old_postinstall_cmds
13504 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13506 # Create an old-style archive from a shared archive.
13507 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13509 # Create a temporary old-style archive to link instead of a shared archive.
13510 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13512 # Commands used to build and install a shared archive.
13513 archive_cmds=$lt_archive_cmds_CXX
13514 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13515 postinstall_cmds=$lt_postinstall_cmds
13516 postuninstall_cmds=$lt_postuninstall_cmds
13518 # Commands used to build a loadable module (assumed same as above if empty)
13519 module_cmds=$lt_module_cmds_CXX
13520 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13522 # Commands to strip libraries.
13523 old_striplib=$lt_old_striplib
13524 striplib=$lt_striplib
13526 # Dependencies to place before the objects being linked to create a
13528 predep_objects=$lt_predep_objects_CXX
13530 # Dependencies to place after the objects being linked to create a
13532 postdep_objects=$lt_postdep_objects_CXX
13534 # Dependencies to place before the objects being linked to create a
13536 predeps=$lt_predeps_CXX
13538 # Dependencies to place after the objects being linked to create a
13540 postdeps=$lt_postdeps_CXX
13542 # The directories searched by this compiler when creating a shared
13544 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13546 # The library search path used internally by the compiler when linking
13547 # a shared library.
13548 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13550 # Method to check whether dependent libraries are shared objects.
13551 deplibs_check_method=$lt_deplibs_check_method
13553 # Command to use when deplibs_check_method == file_magic.
13554 file_magic_cmd=$lt_file_magic_cmd
13556 # Flag that allows shared libraries with undefined symbols to be built.
13557 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13559 # Flag that forces no undefined symbols.
13560 no_undefined_flag=$lt_no_undefined_flag_CXX
13562 # Commands used to finish a libtool library installation in a directory.
13563 finish_cmds=$lt_finish_cmds
13565 # Same as above, but a single script fragment to be evaled but not shown.
13566 finish_eval=$lt_finish_eval
13568 # Take the output of nm and produce a listing of raw symbols and C names.
13569 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13571 # Transform the output of nm in a proper C declaration
13572 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13574 # Transform the output of nm in a C name address pair
13575 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13577 # This is the shared library runtime path variable.
13578 runpath_var=$runpath_var
13580 # This is the shared library path variable.
13581 shlibpath_var=$shlibpath_var
13583 # Is shlibpath searched before the hard-coded library search path?
13584 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13586 # How to hardcode a shared library path into an executable.
13587 hardcode_action=$hardcode_action_CXX
13589 # Whether we should hardcode library paths into libraries.
13590 hardcode_into_libs=$hardcode_into_libs
13592 # Flag to hardcode \$libdir into a binary during linking.
13593 # This must work even if \$libdir does not exist.
13594 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13596 # If ld is used when linking, flag to hardcode \$libdir into
13597 # a binary during linking. This must work even if \$libdir does
13599 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13601 # Whether we need a single -rpath flag with a separated argument.
13602 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13604 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13605 # resulting binary.
13606 hardcode_direct=$hardcode_direct_CXX
13608 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13609 # resulting binary.
13610 hardcode_minus_L=$hardcode_minus_L_CXX
13612 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13613 # the resulting binary.
13614 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13616 # Set to yes if building a shared library automatically hardcodes DIR into the library
13617 # and all subsequent libraries and executables linked against it.
13618 hardcode_automatic=$hardcode_automatic_CXX
13620 # Variables whose values should be saved in libtool wrapper scripts and
13621 # restored at relink time.
13622 variables_saved_for_relink="$variables_saved_for_relink"
13624 # Whether libtool must link a program against all its dependency libraries.
13625 link_all_deplibs=$link_all_deplibs_CXX
13627 # Compile-time system search path for libraries
13628 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13630 # Run-time system search path for libraries
13631 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13633 # Fix the shell variable \$srcfile for the compiler.
13634 fix_srcfile_path=$lt_fix_srcfile_path
13636 # Set to yes if exported symbols are required.
13637 always_export_symbols=$always_export_symbols_CXX
13639 # The commands to list exported symbols.
13640 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13642 # The commands to extract the exported symbol list from a shared archive.
13643 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13645 # Symbols that should not be listed in the preloaded symbols.
13646 exclude_expsyms=$lt_exclude_expsyms_CXX
13648 # Symbols that must always be exported.
13649 include_expsyms=$lt_include_expsyms_CXX
13651 # ### END LIBTOOL TAG CONFIG: $tagname
13657 # If there is no Makefile yet, we rely on a make rule to execute
13658 # `config.status --recheck' to rerun these tests and create the
13659 # libtool script then.
13660 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13661 if test -f "$ltmain_in"; then
13662 test -f Makefile && make "$ltmain"
13668 ac_cpp='$CPP $CPPFLAGS'
13669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13677 with_gnu_ldcxx=$with_gnu_ld
13678 with_gnu_ld=$lt_save_with_gnu_ld
13679 lt_cv_path_LDCXX=$lt_cv_path_LD
13680 lt_cv_path_LD=$lt_save_path_LD
13681 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13682 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13690 if test -n "$F77" && test "X$F77" != "Xno"; then
13693 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13694 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13695 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13698 archive_cmds_need_lc_F77=no
13699 allow_undefined_flag_F77=
13700 always_export_symbols_F77=no
13701 archive_expsym_cmds_F77=
13702 export_dynamic_flag_spec_F77=
13703 hardcode_direct_F77=no
13704 hardcode_libdir_flag_spec_F77=
13705 hardcode_libdir_flag_spec_ld_F77=
13706 hardcode_libdir_separator_F77=
13707 hardcode_minus_L_F77=no
13708 hardcode_automatic_F77=no
13710 module_expsym_cmds_F77=
13711 link_all_deplibs_F77=unknown
13712 old_archive_cmds_F77=$old_archive_cmds
13713 no_undefined_flag_F77=
13714 whole_archive_flag_spec_F77=
13715 enable_shared_with_static_runtimes_F77=no
13717 # Source file extension for f77 test sources.
13720 # Object file extension for compiled f77 test sources.
13724 # Code to be used in simple compile tests
13725 lt_simple_compile_test_code="\
13731 # Code to be used in simple link tests
13732 lt_simple_link_test_code="\
13737 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13739 # If no C compiler was specified, use CC.
13742 # If no C compiler flags were specified, use CFLAGS.
13743 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13745 # Allow CC to be a program name with arguments.
13749 # save warnings/boilerplate of simple test code
13750 ac_outfile=conftest.$ac_objext
13751 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13752 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13753 _lt_compiler_boilerplate=`cat conftest.err`
13756 ac_outfile=conftest.$ac_objext
13757 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13758 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13759 _lt_linker_boilerplate=`cat conftest.err`
13763 # Allow CC to be a program name with arguments.
13768 for cc_temp in $compiler""; do
13770 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13771 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13776 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13779 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13780 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13781 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
13782 $as_echo "$can_build_shared" >&6; }
13784 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13785 $as_echo_n "checking whether to build shared libraries... " >&6; }
13786 test "$can_build_shared" = "no" && enable_shared=no
13788 # On AIX, shared libraries and static libraries use the same namespace, and
13789 # are all built from PIC.
13792 test "$enable_shared" = yes && enable_static=no
13793 if test -n "$RANLIB"; then
13794 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13795 postinstall_cmds='$RANLIB $lib'
13799 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13800 test "$enable_shared" = yes && enable_static=no
13804 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
13805 $as_echo "$enable_shared" >&6; }
13807 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13808 $as_echo_n "checking whether to build static libraries... " >&6; }
13809 # Make sure either enable_shared or enable_static is yes.
13810 test "$enable_shared" = yes || enable_static=yes
13811 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
13812 $as_echo "$enable_static" >&6; }
13817 lt_prog_compiler_wl_F77=
13818 lt_prog_compiler_pic_F77=
13819 lt_prog_compiler_static_F77=
13821 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13822 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13824 if test "$GCC" = yes; then
13825 lt_prog_compiler_wl_F77='-Wl,'
13826 lt_prog_compiler_static_F77='-static'
13830 # All AIX code is PIC.
13831 if test "$host_cpu" = ia64; then
13832 # AIX 5 now supports IA64 processor
13833 lt_prog_compiler_static_F77='-Bstatic'
13838 # FIXME: we need at least 68020 code to build shared libraries, but
13839 # adding the `-m68020' flag to GCC prevents building anything better,
13841 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13844 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13845 # PIC is the default for these OSes.
13848 mingw* | cygwin* | pw32* | os2*)
13849 # This hack is so that the source file can tell whether it is being
13850 # built for inclusion in a dll (and should export symbols for example).
13851 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13852 # (--disable-auto-import) libraries
13853 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13856 darwin* | rhapsody*)
13857 # PIC is the default on this platform
13858 # Common symbols not allowed in MH_DYLIB files
13859 lt_prog_compiler_pic_F77='-fno-common'
13863 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13864 # Instead, we relocate shared libraries at runtime.
13868 # Just because we use GCC doesn't mean we suddenly get shared libraries
13869 # on systems that don't support them.
13870 lt_prog_compiler_can_build_shared_F77=no
13875 if test -d /usr/nec; then
13876 lt_prog_compiler_pic_F77=-Kconform_pic
13881 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13882 # not for PA HP-UX.
13888 lt_prog_compiler_pic_F77='-fPIC'
13894 lt_prog_compiler_pic_F77='-fPIC'
13898 # PORTME Check for flag to pass linker flags through the system compiler.
13901 lt_prog_compiler_wl_F77='-Wl,'
13902 if test "$host_cpu" = ia64; then
13903 # AIX 5 now supports IA64 processor
13904 lt_prog_compiler_static_F77='-Bstatic'
13906 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13910 # PIC is the default on this platform
13911 # Common symbols not allowed in MH_DYLIB files
13912 case $cc_basename in
13914 lt_prog_compiler_pic_F77='-qnocommon'
13915 lt_prog_compiler_wl_F77='-Wl,'
13920 mingw* | cygwin* | pw32* | os2*)
13921 # This hack is so that the source file can tell whether it is being
13922 # built for inclusion in a dll (and should export symbols for example).
13923 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13926 hpux9* | hpux10* | hpux11*)
13927 lt_prog_compiler_wl_F77='-Wl,'
13928 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13929 # not for PA HP-UX.
13935 lt_prog_compiler_pic_F77='+Z'
13938 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13939 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13942 irix5* | irix6* | nonstopux*)
13943 lt_prog_compiler_wl_F77='-Wl,'
13944 # PIC (with -KPIC) is the default.
13945 lt_prog_compiler_static_F77='-non_shared'
13949 lt_prog_compiler_pic_F77='-KPIC'
13950 lt_prog_compiler_static_F77='-Bstatic'
13953 linux* | k*bsd*-gnu)
13954 case $cc_basename in
13956 lt_prog_compiler_wl_F77='-Wl,'
13957 lt_prog_compiler_pic_F77='-KPIC'
13958 lt_prog_compiler_static_F77='-static'
13960 pgcc* | pgf77* | pgf90* | pgf95*)
13961 # Portland Group compilers (*not* the Pentium gcc compiler,
13962 # which looks to be a dead project)
13963 lt_prog_compiler_wl_F77='-Wl,'
13964 lt_prog_compiler_pic_F77='-fpic'
13965 lt_prog_compiler_static_F77='-Bstatic'
13968 lt_prog_compiler_wl_F77='-Wl,'
13969 # All Alpha code is PIC.
13970 lt_prog_compiler_static_F77='-non_shared'
13973 case `$CC -V 2>&1 | sed 5q` in
13976 lt_prog_compiler_pic_F77='-KPIC'
13977 lt_prog_compiler_static_F77='-Bstatic'
13978 lt_prog_compiler_wl_F77='-Wl,'
13981 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13982 lt_prog_compiler_pic_F77='-KPIC'
13983 lt_prog_compiler_static_F77='-Bstatic'
13984 lt_prog_compiler_wl_F77=''
13991 osf3* | osf4* | osf5*)
13992 lt_prog_compiler_wl_F77='-Wl,'
13993 # All OSF/1 code is PIC.
13994 lt_prog_compiler_static_F77='-non_shared'
13998 lt_prog_compiler_static_F77='-non_shared'
14002 lt_prog_compiler_pic_F77='-KPIC'
14003 lt_prog_compiler_static_F77='-Bstatic'
14004 case $cc_basename in
14005 f77* | f90* | f95*)
14006 lt_prog_compiler_wl_F77='-Qoption ld ';;
14008 lt_prog_compiler_wl_F77='-Wl,';;
14013 lt_prog_compiler_wl_F77='-Qoption ld '
14014 lt_prog_compiler_pic_F77='-PIC'
14015 lt_prog_compiler_static_F77='-Bstatic'
14018 sysv4 | sysv4.2uw2* | sysv4.3*)
14019 lt_prog_compiler_wl_F77='-Wl,'
14020 lt_prog_compiler_pic_F77='-KPIC'
14021 lt_prog_compiler_static_F77='-Bstatic'
14025 if test -d /usr/nec ;then
14026 lt_prog_compiler_pic_F77='-Kconform_pic'
14027 lt_prog_compiler_static_F77='-Bstatic'
14031 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14032 lt_prog_compiler_wl_F77='-Wl,'
14033 lt_prog_compiler_pic_F77='-KPIC'
14034 lt_prog_compiler_static_F77='-Bstatic'
14038 lt_prog_compiler_wl_F77='-Wl,'
14039 lt_prog_compiler_can_build_shared_F77=no
14043 lt_prog_compiler_pic_F77='-pic'
14044 lt_prog_compiler_static_F77='-Bstatic'
14048 lt_prog_compiler_can_build_shared_F77=no
14053 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14054 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
14057 # Check to make sure the PIC flag actually works.
14059 if test -n "$lt_prog_compiler_pic_F77"; then
14061 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14062 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14063 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14064 $as_echo_n "(cached) " >&6
14066 lt_cv_prog_compiler_pic_works_F77=no
14067 ac_outfile=conftest.$ac_objext
14068 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14069 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14070 # Insert the option either (1) after the last *FLAGS variable, or
14071 # (2) before a word containing "conftest.", or (3) at the end.
14072 # Note that $ac_compile itself does not contain backslashes and begins
14073 # with a dollar sign (not a hyphen), so the echo should work correctly.
14074 # The option is referenced via a variable to avoid confusing sed.
14075 lt_compile=`echo "$ac_compile" | $SED \
14076 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14077 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14078 -e 's:$: $lt_compiler_flag:'`
14079 (eval echo "\"\$as_me:14079: $lt_compile\"" >&5)
14080 (eval "$lt_compile" 2>conftest.err)
14082 cat conftest.err >&5
14083 echo "$as_me:14083: \$? = $ac_status" >&5
14084 if (exit $ac_status) && test -s "$ac_outfile"; then
14085 # The compiler can only warn and ignore the option if not recognized
14086 # So say no if there are warnings other than the usual output.
14087 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14088 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14089 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14090 lt_cv_prog_compiler_pic_works_F77=yes
14096 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14097 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14099 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14100 case $lt_prog_compiler_pic_F77 in
14102 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14105 lt_prog_compiler_pic_F77=
14106 lt_prog_compiler_can_build_shared_F77=no
14111 # For platforms which do not support PIC, -DPIC is meaningless:
14113 lt_prog_compiler_pic_F77=
14116 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14121 # Check to make sure the static flag actually works.
14123 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14124 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14125 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14126 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14127 $as_echo_n "(cached) " >&6
14129 lt_cv_prog_compiler_static_works_F77=no
14130 save_LDFLAGS="$LDFLAGS"
14131 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14132 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14133 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14134 # The linker can only warn and ignore the option if not recognized
14135 # So say no if there are warnings
14136 if test -s conftest.err; then
14137 # Append any errors to the config.log.
14138 cat conftest.err 1>&5
14139 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14140 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14141 if diff conftest.exp conftest.er2 >/dev/null; then
14142 lt_cv_prog_compiler_static_works_F77=yes
14145 lt_cv_prog_compiler_static_works_F77=yes
14149 LDFLAGS="$save_LDFLAGS"
14152 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14153 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14155 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14158 lt_prog_compiler_static_F77=
14162 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14163 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14164 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14165 $as_echo_n "(cached) " >&6
14167 lt_cv_prog_compiler_c_o_F77=no
14168 $rm -r conftest 2>/dev/null
14172 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14174 lt_compiler_flag="-o out/conftest2.$ac_objext"
14175 # Insert the option either (1) after the last *FLAGS variable, or
14176 # (2) before a word containing "conftest.", or (3) at the end.
14177 # Note that $ac_compile itself does not contain backslashes and begins
14178 # with a dollar sign (not a hyphen), so the echo should work correctly.
14179 lt_compile=`echo "$ac_compile" | $SED \
14180 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14181 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14182 -e 's:$: $lt_compiler_flag:'`
14183 (eval echo "\"\$as_me:14183: $lt_compile\"" >&5)
14184 (eval "$lt_compile" 2>out/conftest.err)
14186 cat out/conftest.err >&5
14187 echo "$as_me:14187: \$? = $ac_status" >&5
14188 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14190 # The compiler can only warn and ignore the option if not recognized
14191 # So say no if there are warnings
14192 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14193 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14194 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14195 lt_cv_prog_compiler_c_o_F77=yes
14200 # SGI C++ compiler will create directory out/ii_files/ for
14201 # template instantiation
14202 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14203 $rm out/* && rmdir out
14209 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14210 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14213 hard_links="nottested"
14214 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14215 # do not overwrite the value of need_locks provided by the user
14216 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14217 $as_echo_n "checking if we can lock with hard links... " >&6; }
14220 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14222 ln conftest.a conftest.b 2>&5 || hard_links=no
14223 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14224 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14225 $as_echo "$hard_links" >&6; }
14226 if test "$hard_links" = no; then
14227 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14228 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14235 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14236 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14239 allow_undefined_flag_F77=
14240 enable_shared_with_static_runtimes_F77=no
14242 archive_expsym_cmds_F77=
14243 old_archive_From_new_cmds_F77=
14244 old_archive_from_expsyms_cmds_F77=
14245 export_dynamic_flag_spec_F77=
14246 whole_archive_flag_spec_F77=
14247 thread_safe_flag_spec_F77=
14248 hardcode_libdir_flag_spec_F77=
14249 hardcode_libdir_flag_spec_ld_F77=
14250 hardcode_libdir_separator_F77=
14251 hardcode_direct_F77=no
14252 hardcode_minus_L_F77=no
14253 hardcode_shlibpath_var_F77=unsupported
14254 link_all_deplibs_F77=unknown
14255 hardcode_automatic_F77=no
14257 module_expsym_cmds_F77=
14258 always_export_symbols_F77=no
14259 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14260 # include_expsyms should be a list of space-separated symbols to be *always*
14261 # included in the symbol list
14262 include_expsyms_F77=
14263 # exclude_expsyms can be an extended regexp of symbols to exclude
14264 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14265 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14266 # as well as any symbol that contains `d'.
14267 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14268 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14269 # platforms (ab)use it in PIC code, but their linkers get confused if
14270 # the symbol is explicitly referenced. Since portable code cannot
14271 # rely on this symbol name, it's probably fine to never include it in
14272 # preloaded symbol tables.
14273 # Exclude shared library initialization/finalization symbols.
14274 extract_expsyms_cmds=
14275 # Just being paranoid about ensuring that cc_basename is set.
14276 for cc_temp in $compiler""; do
14278 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14279 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14284 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14287 cygwin* | mingw* | pw32*)
14288 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14289 # When not using gcc, we currently assume that we are using
14290 # Microsoft Visual C++.
14291 if test "$GCC" != yes; then
14296 # we just hope/assume this is gcc and not c89 (= MSVC++)
14305 if test "$with_gnu_ld" = yes; then
14306 # If archive_cmds runs LD, not CC, wlarc should be empty
14309 # Set some defaults for GNU ld with shared library support. These
14310 # are reset later if shared libraries are not supported. Putting them
14311 # here allows them to be overridden if necessary.
14312 runpath_var=LD_RUN_PATH
14313 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14314 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14315 # ancient GNU ld didn't support --whole-archive et. al.
14316 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14317 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14319 whole_archive_flag_spec_F77=
14321 supports_anon_versioning=no
14322 case `$LD -v 2>/dev/null` in
14323 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14324 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14325 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14326 *\ 2.11.*) ;; # other 2.11 versions
14327 *) supports_anon_versioning=yes ;;
14330 # See if GNU ld supports shared libraries.
14333 # On AIX/PPC, the GNU linker is very broken
14334 if test "$host_cpu" != ia64; then
14338 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14339 *** to be unable to reliably create shared libraries on AIX.
14340 *** Therefore, libtool is disabling shared libraries support. If you
14341 *** really care for shared libraries, you may want to modify your PATH
14342 *** so that a non-GNU linker is found, and then restart.
14349 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)'
14350 hardcode_libdir_flag_spec_F77='-L$libdir'
14351 hardcode_minus_L_F77=yes
14353 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14354 # that the semantics of dynamic libraries on AmigaOS, at least up
14355 # to version 4, is to share data among multiple programs linked
14356 # with the same dynamic library. Since this doesn't match the
14357 # behavior of shared libraries on other platforms, we can't use
14363 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14364 allow_undefined_flag_F77=unsupported
14365 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14366 # support --undefined. This deserves some investigation. FIXME
14367 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14373 cygwin* | mingw* | pw32*)
14374 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14375 # as there is no search path for DLLs.
14376 hardcode_libdir_flag_spec_F77='-L$libdir'
14377 allow_undefined_flag_F77=unsupported
14378 always_export_symbols_F77=no
14379 enable_shared_with_static_runtimes_F77=yes
14380 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14382 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14383 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14384 # If the export-symbols file already is a .def file (1st line
14385 # is EXPORTS), use it as is; otherwise, prepend...
14386 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14387 cp $export_symbols $output_objdir/$soname.def;
14389 echo EXPORTS > $output_objdir/$soname.def;
14390 cat $export_symbols >> $output_objdir/$soname.def;
14392 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14399 hardcode_direct_F77=no
14400 hardcode_shlibpath_var_F77=no
14401 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14402 export_dynamic_flag_spec_F77='${wl}-E'
14403 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14404 # Instead, shared libraries are loaded at an image base (0x10000000 by
14405 # default) and relocated if they conflict, which is a slow very memory
14406 # consuming and fragmenting process. To avoid this, we pick a random,
14407 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14408 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14409 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'
14410 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'
14413 gnu* | linux* | k*bsd*-gnu)
14414 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14416 case $cc_basename,$host_cpu in
14417 pgcc*) # Portland Group C compiler
14418 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'
14419 tmp_addflag=' $pic_flag'
14421 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14422 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'
14423 tmp_addflag=' $pic_flag -Mnomain' ;;
14424 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14425 tmp_addflag=' -i_dynamic' ;;
14426 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14427 tmp_addflag=' -i_dynamic -nofor_main' ;;
14428 ifc* | ifort*) # Intel Fortran compiler
14429 tmp_addflag=' -nofor_main' ;;
14431 case `$CC -V 2>&1 | sed 5q` in
14432 *Sun\ C*) # Sun C 5.9
14433 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14434 tmp_sharedflag='-G' ;;
14435 *Sun\ F*) # Sun Fortran 8.3
14436 tmp_sharedflag='-G' ;;
14438 tmp_sharedflag='-shared' ;;
14440 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14442 if test $supports_anon_versioning = yes; then
14443 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14444 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14445 $echo "local: *; };" >> $output_objdir/$libname.ver~
14446 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14454 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14455 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14458 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14459 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14464 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14468 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14469 *** create shared libraries on Solaris systems. Therefore, libtool
14470 *** is disabling shared libraries support. We urge you to upgrade GNU
14471 *** binutils to release 2.9.1 or newer. Another option is to modify
14472 *** your PATH or compiler configuration so that the native linker is
14473 *** used, and then restart.
14476 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14477 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14478 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14484 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14485 case `$LD -v 2>&1` in
14486 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14490 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14491 *** reliably create shared libraries on SCO systems. Therefore, libtool
14492 *** is disabling shared libraries support. We urge you to upgrade GNU
14493 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14494 *** your PATH or compiler configuration so that the native linker is
14495 *** used, and then restart.
14500 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14501 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14502 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14503 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14512 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14514 hardcode_direct_F77=yes
14515 hardcode_shlibpath_var_F77=no
14519 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14520 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14521 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14528 if test "$ld_shlibs_F77" = no; then
14530 hardcode_libdir_flag_spec_F77=
14531 export_dynamic_flag_spec_F77=
14532 whole_archive_flag_spec_F77=
14535 # PORTME fill in a description of your system's linker (not GNU ld)
14538 allow_undefined_flag_F77=unsupported
14539 always_export_symbols_F77=yes
14540 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'
14541 # Note: this linker hardcodes the directories in LIBPATH if there
14542 # are no directories specified by -L.
14543 hardcode_minus_L_F77=yes
14544 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14545 # Neither direct hardcoding nor static linking is supported with a
14547 hardcode_direct_F77=unsupported
14552 if test "$host_cpu" = ia64; then
14553 # On IA64, the linker does run time linking by default, so we don't
14554 # have to do anything special.
14555 aix_use_runtimelinking=no
14556 exp_sym_flag='-Bexport'
14559 # If we're using GNU nm, then we don't want the "-C" option.
14560 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14561 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14562 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'
14564 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'
14566 aix_use_runtimelinking=no
14568 # Test if we are trying to use run time linking or normal
14569 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14570 # need to do runtime linking.
14571 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14572 for ld_flag in $LDFLAGS; do
14573 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14574 aix_use_runtimelinking=yes
14581 exp_sym_flag='-bexport'
14582 no_entry_flag='-bnoentry'
14585 # When large executables or shared objects are built, AIX ld can
14586 # have problems creating the table of contents. If linking a library
14587 # or program results in "error TOC overflow" add -mminimal-toc to
14588 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14589 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14591 archive_cmds_F77=''
14592 hardcode_direct_F77=yes
14593 hardcode_libdir_separator_F77=':'
14594 link_all_deplibs_F77=yes
14596 if test "$GCC" = yes; then
14597 case $host_os in aix4.[012]|aix4.[012].*)
14598 # We only want to do this on AIX 4.2 and lower, the check
14599 # below for broken collect2 doesn't work under 4.3+
14600 collect2name=`${CC} -print-prog-name=collect2`
14601 if test -f "$collect2name" && \
14602 strings "$collect2name" | grep resolve_lib_name >/dev/null
14604 # We have reworked collect2
14607 # We have old collect2
14608 hardcode_direct_F77=unsupported
14609 # It fails to find uninstalled libraries when the uninstalled
14610 # path is not listed in the libpath. Setting hardcode_minus_L
14611 # to unsupported forces relinking
14612 hardcode_minus_L_F77=yes
14613 hardcode_libdir_flag_spec_F77='-L$libdir'
14614 hardcode_libdir_separator_F77=
14618 shared_flag='-shared'
14619 if test "$aix_use_runtimelinking" = yes; then
14620 shared_flag="$shared_flag "'${wl}-G'
14624 if test "$host_cpu" = ia64; then
14625 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14626 # chokes on -Wl,-G. The following line is correct:
14629 if test "$aix_use_runtimelinking" = yes; then
14630 shared_flag='${wl}-G'
14632 shared_flag='${wl}-bM:SRE'
14637 # It seems that -bexpall does not export symbols beginning with
14638 # underscore (_), so it is better to generate a list of symbols to export.
14639 always_export_symbols_F77=yes
14640 if test "$aix_use_runtimelinking" = yes; then
14641 # Warning - without using the other runtime loading flags (-brtl),
14642 # -berok will link without error, but may produce a broken library.
14643 allow_undefined_flag_F77='-berok'
14644 # Determine the default libpath from the value encoded in an empty executable.
14645 cat >conftest.$ac_ext <<_ACEOF
14650 rm -f conftest.$ac_objext conftest$ac_exeext
14651 if { (ac_try="$ac_link"
14652 case "(($ac_try" in
14653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14654 *) ac_try_echo=$ac_try;;
14656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14657 $as_echo "$ac_try_echo") >&5
14658 (eval "$ac_link") 2>conftest.er1
14660 grep -v '^ *+' conftest.er1 >conftest.err
14662 cat conftest.err >&5
14663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664 (exit $ac_status); } && {
14665 test -z "$ac_f77_werror_flag" ||
14666 test ! -s conftest.err
14667 } && test -s conftest$ac_exeext && {
14668 test "$cross_compiling" = yes ||
14669 $as_test_x conftest$ac_exeext
14672 lt_aix_libpath_sed='
14673 /Import File Strings/,/^$/ {
14679 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14680 # Check for a 64-bit object if we didn't find anything.
14681 if test -z "$aix_libpath"; then
14682 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14685 $as_echo "$as_me: failed program was:" >&5
14686 sed 's/^/| /' conftest.$ac_ext >&5
14691 rm -rf conftest.dSYM
14692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14693 conftest$ac_exeext conftest.$ac_ext
14694 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14696 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14697 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"
14699 if test "$host_cpu" = ia64; then
14700 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14701 allow_undefined_flag_F77="-z nodefs"
14702 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"
14704 # Determine the default libpath from the value encoded in an empty executable.
14705 cat >conftest.$ac_ext <<_ACEOF
14710 rm -f conftest.$ac_objext conftest$ac_exeext
14711 if { (ac_try="$ac_link"
14712 case "(($ac_try" in
14713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14714 *) ac_try_echo=$ac_try;;
14716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14717 $as_echo "$ac_try_echo") >&5
14718 (eval "$ac_link") 2>conftest.er1
14720 grep -v '^ *+' conftest.er1 >conftest.err
14722 cat conftest.err >&5
14723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724 (exit $ac_status); } && {
14725 test -z "$ac_f77_werror_flag" ||
14726 test ! -s conftest.err
14727 } && test -s conftest$ac_exeext && {
14728 test "$cross_compiling" = yes ||
14729 $as_test_x conftest$ac_exeext
14732 lt_aix_libpath_sed='
14733 /Import File Strings/,/^$/ {
14739 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14740 # Check for a 64-bit object if we didn't find anything.
14741 if test -z "$aix_libpath"; then
14742 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14745 $as_echo "$as_me: failed program was:" >&5
14746 sed 's/^/| /' conftest.$ac_ext >&5
14751 rm -rf conftest.dSYM
14752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14753 conftest$ac_exeext conftest.$ac_ext
14754 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14756 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14757 # Warning - without using the other run time loading flags,
14758 # -berok will link without error, but may produce a broken library.
14759 no_undefined_flag_F77=' ${wl}-bernotok'
14760 allow_undefined_flag_F77=' ${wl}-berok'
14761 # Exported symbols can be pulled into shared objects from archives
14762 whole_archive_flag_spec_F77='$convenience'
14763 archive_cmds_need_lc_F77=yes
14764 # This is similar to how AIX traditionally builds its shared libraries.
14765 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'
14771 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)'
14772 hardcode_libdir_flag_spec_F77='-L$libdir'
14773 hardcode_minus_L_F77=yes
14774 # see comment about different semantics on the GNU ld section
14779 export_dynamic_flag_spec_F77=-rdynamic
14782 cygwin* | mingw* | pw32*)
14783 # When not using gcc, we currently assume that we are using
14784 # Microsoft Visual C++.
14785 # hardcode_libdir_flag_spec is actually meaningless, as there is
14786 # no search path for DLLs.
14787 hardcode_libdir_flag_spec_F77=' '
14788 allow_undefined_flag_F77=unsupported
14789 # Tell ltmain to make .lib files, not .a files.
14791 # Tell ltmain to make .dll files, not .so files.
14793 # FIXME: Setting linknames here is a bad hack.
14794 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14795 # The linker will automatically build a .lib file if we build a DLL.
14796 old_archive_From_new_cmds_F77='true'
14797 # FIXME: Should let the user specify the lib program.
14798 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14799 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14800 enable_shared_with_static_runtimes_F77=yes
14803 darwin* | rhapsody*)
14805 rhapsody* | darwin1.[012])
14806 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14809 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14810 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14812 case ${MACOSX_DEPLOYMENT_TARGET} in
14814 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14817 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14823 archive_cmds_need_lc_F77=no
14824 hardcode_direct_F77=no
14825 hardcode_automatic_F77=yes
14826 hardcode_shlibpath_var_F77=unsupported
14827 whole_archive_flag_spec_F77=''
14828 link_all_deplibs_F77=yes
14829 if test "$GCC" = yes ; then
14830 output_verbose_link_cmd='echo'
14831 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14832 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14833 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
14834 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
14836 case $cc_basename in
14838 output_verbose_link_cmd='echo'
14839 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14840 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14841 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14842 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14843 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}'
14853 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14854 hardcode_libdir_flag_spec_F77='-L$libdir'
14855 hardcode_shlibpath_var_F77=no
14862 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14863 # support. Future versions do this automatically, but an explicit c++rt0.o
14864 # does not break anything, and helps significantly (at the cost of a little
14867 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14868 hardcode_libdir_flag_spec_F77='-R$libdir'
14869 hardcode_direct_F77=yes
14870 hardcode_shlibpath_var_F77=no
14873 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14875 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14876 hardcode_direct_F77=yes
14877 hardcode_minus_L_F77=yes
14878 hardcode_shlibpath_var_F77=no
14881 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14882 freebsd* | dragonfly*)
14883 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14884 hardcode_libdir_flag_spec_F77='-R$libdir'
14885 hardcode_direct_F77=yes
14886 hardcode_shlibpath_var_F77=no
14890 if test "$GCC" = yes; then
14891 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'
14893 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'
14895 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14896 hardcode_libdir_separator_F77=:
14897 hardcode_direct_F77=yes
14899 # hardcode_minus_L: Not really in the search PATH,
14900 # but as the default location of the library.
14901 hardcode_minus_L_F77=yes
14902 export_dynamic_flag_spec_F77='${wl}-E'
14906 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14907 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14909 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14911 if test "$with_gnu_ld" = no; then
14912 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14913 hardcode_libdir_separator_F77=:
14915 hardcode_direct_F77=yes
14916 export_dynamic_flag_spec_F77='${wl}-E'
14918 # hardcode_minus_L: Not really in the search PATH,
14919 # but as the default location of the library.
14920 hardcode_minus_L_F77=yes
14925 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14928 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14931 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14934 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14940 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14943 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14946 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14950 if test "$with_gnu_ld" = no; then
14951 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14952 hardcode_libdir_separator_F77=:
14956 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14957 hardcode_direct_F77=no
14958 hardcode_shlibpath_var_F77=no
14961 hardcode_direct_F77=yes
14962 export_dynamic_flag_spec_F77='${wl}-E'
14964 # hardcode_minus_L: Not really in the search PATH,
14965 # but as the default location of the library.
14966 hardcode_minus_L_F77=yes
14972 irix5* | irix6* | nonstopux*)
14973 if test "$GCC" = yes; then
14974 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'
14976 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'
14977 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14979 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14980 hardcode_libdir_separator_F77=:
14981 link_all_deplibs_F77=yes
14985 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14986 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14988 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14990 hardcode_libdir_flag_spec_F77='-R$libdir'
14991 hardcode_direct_F77=yes
14992 hardcode_shlibpath_var_F77=no
14996 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14997 hardcode_direct_F77=yes
14998 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14999 hardcode_libdir_separator_F77=:
15000 hardcode_shlibpath_var_F77=no
15004 if test -f /usr/libexec/ld.so; then
15005 hardcode_direct_F77=yes
15006 hardcode_shlibpath_var_F77=no
15007 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15008 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15009 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15010 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15011 export_dynamic_flag_spec_F77='${wl}-E'
15014 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15015 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15016 hardcode_libdir_flag_spec_F77='-R$libdir'
15019 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15020 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15030 hardcode_libdir_flag_spec_F77='-L$libdir'
15031 hardcode_minus_L_F77=yes
15032 allow_undefined_flag_F77=unsupported
15033 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'
15034 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15038 if test "$GCC" = yes; then
15039 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15040 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'
15042 allow_undefined_flag_F77=' -expect_unresolved \*'
15043 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'
15045 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15046 hardcode_libdir_separator_F77=:
15049 osf4* | osf5*) # as osf3* with the addition of -msym flag
15050 if test "$GCC" = yes; then
15051 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15052 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'
15053 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15055 allow_undefined_flag_F77=' -expect_unresolved \*'
15056 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'
15057 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~
15058 $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'
15060 # Both c and cxx compiler support -rpath directly
15061 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15063 hardcode_libdir_separator_F77=:
15067 no_undefined_flag_F77=' -z text'
15068 if test "$GCC" = yes; then
15070 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15071 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15072 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15075 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15076 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15077 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15079 hardcode_libdir_flag_spec_F77='-R$libdir'
15080 hardcode_shlibpath_var_F77=no
15082 solaris2.[0-5] | solaris2.[0-5].*) ;;
15084 # The compiler driver will combine and reorder linker options,
15085 # but understands `-z linker_flag'. GCC discards it without `$wl',
15086 # but is careful enough not to reorder.
15087 # Supported since Solaris 2.6 (maybe 2.5.1?)
15088 if test "$GCC" = yes; then
15089 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15091 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15095 link_all_deplibs_F77=yes
15099 if test "x$host_vendor" = xsequent; then
15100 # Use $CC to link under sequent, because it throws in some extra .o
15101 # files that make .init and .fini sections work.
15102 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15104 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15106 hardcode_libdir_flag_spec_F77='-L$libdir'
15107 hardcode_direct_F77=yes
15108 hardcode_minus_L_F77=yes
15109 hardcode_shlibpath_var_F77=no
15113 case $host_vendor in
15115 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15116 hardcode_direct_F77=yes # is this really true???
15119 ## LD is ld it makes a PLAMLIB
15120 ## CC just makes a GrossModule.
15121 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15122 reload_cmds_F77='$CC -r -o $output$reload_objs'
15123 hardcode_direct_F77=no
15126 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15127 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15130 runpath_var='LD_RUN_PATH'
15131 hardcode_shlibpath_var_F77=no
15135 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15136 hardcode_shlibpath_var_F77=no
15137 export_dynamic_flag_spec_F77='-Bexport'
15141 if test -d /usr/nec; then
15142 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15143 hardcode_shlibpath_var_F77=no
15144 runpath_var=LD_RUN_PATH
15145 hardcode_runpath_var=yes
15150 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15151 no_undefined_flag_F77='${wl}-z,text'
15152 archive_cmds_need_lc_F77=no
15153 hardcode_shlibpath_var_F77=no
15154 runpath_var='LD_RUN_PATH'
15156 if test "$GCC" = yes; then
15157 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15158 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15160 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15161 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15165 sysv5* | sco3.2v5* | sco5v6*)
15166 # Note: We can NOT use -z defs as we might desire, because we do not
15167 # link with -lc, and that would cause any symbols used from libc to
15168 # always be unresolved, which means just about no library would
15169 # ever link correctly. If we're not using GNU ld we use -z text
15170 # though, which does catch some bad symbols but isn't as heavy-handed
15172 no_undefined_flag_F77='${wl}-z,text'
15173 allow_undefined_flag_F77='${wl}-z,nodefs'
15174 archive_cmds_need_lc_F77=no
15175 hardcode_shlibpath_var_F77=no
15176 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15177 hardcode_libdir_separator_F77=':'
15178 link_all_deplibs_F77=yes
15179 export_dynamic_flag_spec_F77='${wl}-Bexport'
15180 runpath_var='LD_RUN_PATH'
15182 if test "$GCC" = yes; then
15183 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15184 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15186 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15187 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15192 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15193 hardcode_libdir_flag_spec_F77='-L$libdir'
15194 hardcode_shlibpath_var_F77=no
15203 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15204 $as_echo "$ld_shlibs_F77" >&6; }
15205 test "$ld_shlibs_F77" = no && can_build_shared=no
15208 # Do we need to explicitly link libc?
15210 case "x$archive_cmds_need_lc_F77" in
15212 # Assume -lc should be added
15213 archive_cmds_need_lc_F77=yes
15215 if test "$enable_shared" = yes && test "$GCC" = yes; then
15216 case $archive_cmds_F77 in
15218 # FIXME: we may have to deal with multi-command sequences.
15221 # Test whether the compiler implicitly links with -lc since on some
15222 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15223 # to ld, don't add -lc before -lgcc.
15224 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15225 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15227 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15230 (eval $ac_compile) 2>&5
15232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233 (exit $ac_status); } 2>conftest.err; then
15236 libobjs=conftest.$ac_objext
15238 wl=$lt_prog_compiler_wl_F77
15239 pic_flag=$lt_prog_compiler_pic_F77
15245 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15246 allow_undefined_flag_F77=
15247 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15248 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251 (exit $ac_status); }
15253 archive_cmds_need_lc_F77=no
15255 archive_cmds_need_lc_F77=yes
15257 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15259 cat conftest.err 1>&5
15262 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15263 $as_echo "$archive_cmds_need_lc_F77" >&6; }
15270 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15271 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15272 library_names_spec=
15273 libname_spec='lib$name'
15277 postuninstall_cmds=
15281 shlibpath_overrides_runpath=unknown
15283 dynamic_linker="$host_os ld.so"
15284 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15286 need_lib_prefix=unknown
15287 hardcode_into_libs=no
15289 # when you set need_version to no, make sure it does not cause -set_version
15290 # flags to be left without arguments
15291 need_version=unknown
15296 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15297 shlibpath_var=LIBPATH
15299 # AIX 3 has no versioning support, so we append a major version to the name.
15300 soname_spec='${libname}${release}${shared_ext}$major'
15307 hardcode_into_libs=yes
15308 if test "$host_cpu" = ia64; then
15309 # AIX 5 supports IA64
15310 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15311 shlibpath_var=LD_LIBRARY_PATH
15313 # With GCC up to 2.95.x, collect2 would create an import file
15314 # for dependence libraries. The import file would start with
15315 # the line `#! .'. This would cause the generated library to
15316 # depend on `.', always an invalid library. This was fixed in
15317 # development snapshots of GCC prior to 3.0.
15319 aix4 | aix4.[01] | aix4.[01].*)
15320 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15322 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15325 can_build_shared=no
15329 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15330 # soname into executable. Probably we can add versioning support to
15331 # collect2, so additional links can be useful in future.
15332 if test "$aix_use_runtimelinking" = yes; then
15333 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15334 # instead of lib<name>.a to let people know that these are not
15335 # typical AIX shared libraries.
15336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15338 # We preserve .a as extension for shared libraries through AIX4.2
15339 # and later when we are not doing run time linking.
15340 library_names_spec='${libname}${release}.a $libname.a'
15341 soname_spec='${libname}${release}${shared_ext}$major'
15343 shlibpath_var=LIBPATH
15348 library_names_spec='$libname.ixlibrary $libname.a'
15349 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15350 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'
15354 library_names_spec='${libname}${shared_ext}'
15355 dynamic_linker="$host_os ld.so"
15356 shlibpath_var=LIBRARY_PATH
15362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15363 soname_spec='${libname}${release}${shared_ext}$major'
15364 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15365 shlibpath_var=LD_LIBRARY_PATH
15366 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15367 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15368 # the default ld.so.conf also contains /usr/contrib/lib and
15369 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15370 # libtool to hard-code these into programs
15373 cygwin* | mingw* | pw32*)
15374 version_type=windows
15379 case $GCC,$host_os in
15380 yes,cygwin* | yes,mingw* | yes,pw32*)
15381 library_names_spec='$libname.dll.a'
15382 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15383 postinstall_cmds='base_file=`basename \${file}`~
15384 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15385 dldir=$destdir/`dirname \$dlpath`~
15386 test -d \$dldir || mkdir -p \$dldir~
15387 $install_prog $dir/$dlname \$dldir/$dlname~
15388 chmod a+x \$dldir/$dlname'
15389 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15390 dlpath=$dir/\$dldll~
15392 shlibpath_overrides_runpath=yes
15396 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15397 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15398 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15401 # MinGW DLLs use traditional 'lib' prefix
15402 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15403 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15404 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15405 # It is most probably a Windows format PATH printed by
15406 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15407 # path with ; separators, and with drive letters. We can handle the
15408 # drive letters (cygwin fileutils understands them), so leave them,
15409 # especially as we might pass files found there to a mingw objdump,
15410 # which wouldn't understand a cygwinified path. Ahh.
15411 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15413 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15417 # pw32 DLLs use 'pw' prefix rather than 'lib'
15418 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15424 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15427 dynamic_linker='Win32 ld.exe'
15428 # FIXME: first we should search . and the directory the executable is in
15432 darwin* | rhapsody*)
15433 dynamic_linker="$host_os dyld"
15434 version_type=darwin
15437 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15438 soname_spec='${libname}${release}${major}$shared_ext'
15439 shlibpath_overrides_runpath=yes
15440 shlibpath_var=DYLD_LIBRARY_PATH
15441 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15443 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15451 soname_spec='${libname}${release}${shared_ext}$major'
15452 shlibpath_var=LD_LIBRARY_PATH
15459 freebsd* | dragonfly*)
15460 # DragonFly does not have aout. When/if they implement a new
15461 # versioning mechanism, adjust this.
15462 if test -x /usr/bin/objformat; then
15463 objformat=`/usr/bin/objformat`
15466 freebsd[123]*) objformat=aout ;;
15467 *) objformat=elf ;;
15470 version_type=freebsd-$objformat
15471 case $version_type in
15473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15478 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15482 shlibpath_var=LD_LIBRARY_PATH
15485 shlibpath_overrides_runpath=yes
15487 freebsd3.[01]* | freebsdelf3.[01]*)
15488 shlibpath_overrides_runpath=yes
15489 hardcode_into_libs=yes
15491 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15492 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15493 shlibpath_overrides_runpath=no
15494 hardcode_into_libs=yes
15496 *) # from 4.6 on, and DragonFly
15497 shlibpath_overrides_runpath=yes
15498 hardcode_into_libs=yes
15507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15508 soname_spec='${libname}${release}${shared_ext}$major'
15509 shlibpath_var=LD_LIBRARY_PATH
15510 hardcode_into_libs=yes
15513 hpux9* | hpux10* | hpux11*)
15514 # Give a soname corresponding to the major version so that dld.sl refuses to
15515 # link against other versions.
15522 hardcode_into_libs=yes
15523 dynamic_linker="$host_os dld.so"
15524 shlibpath_var=LD_LIBRARY_PATH
15525 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15527 soname_spec='${libname}${release}${shared_ext}$major'
15528 if test "X$HPUX_IA64_MODE" = X32; then
15529 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15531 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15533 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15537 hardcode_into_libs=yes
15538 dynamic_linker="$host_os dld.sl"
15539 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15540 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15542 soname_spec='${libname}${release}${shared_ext}$major'
15543 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15544 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15548 dynamic_linker="$host_os dld.sl"
15549 shlibpath_var=SHLIB_PATH
15550 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15552 soname_spec='${libname}${release}${shared_ext}$major'
15555 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15556 postinstall_cmds='chmod 555 $lib'
15563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15564 soname_spec='${libname}${release}${shared_ext}$major'
15565 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15566 shlibpath_var=LD_LIBRARY_PATH
15567 shlibpath_overrides_runpath=no
15568 hardcode_into_libs=yes
15571 irix5* | irix6* | nonstopux*)
15573 nonstopux*) version_type=nonstopux ;;
15575 if test "$lt_cv_prog_gnu_ld" = yes; then
15583 soname_spec='${libname}${release}${shared_ext}$major'
15584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15586 irix5* | nonstopux*)
15587 libsuff= shlibsuff=
15590 case $LD in # libtool.m4 will add one of these switches to LD
15591 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15592 libsuff= shlibsuff= libmagic=32-bit;;
15593 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15594 libsuff=32 shlibsuff=N32 libmagic=N32;;
15595 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15596 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15597 *) libsuff= shlibsuff= libmagic=never-match;;
15601 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15602 shlibpath_overrides_runpath=no
15603 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15604 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15605 hardcode_into_libs=yes
15608 # No shared lib support for Linux oldld, aout, or coff.
15609 linux*oldld* | linux*aout* | linux*coff*)
15613 # This must be Linux ELF.
15614 linux* | k*bsd*-gnu)
15618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15619 soname_spec='${libname}${release}${shared_ext}$major'
15620 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15621 shlibpath_var=LD_LIBRARY_PATH
15622 shlibpath_overrides_runpath=no
15623 # This implies no fast_install, which is unacceptable.
15624 # Some rework will be needed to allow for fast_install
15625 # before this can be enabled.
15626 hardcode_into_libs=yes
15627 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15628 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15630 # Append ld.so.conf contents to the search path
15631 if test -f /etc/ld.so.conf; then
15632 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15633 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15636 # We used to test for /lib/ld.so.1 and disable shared libraries on
15637 # powerpc, because MkLinux only supported shared libraries with the
15638 # GNU dynamic linker. Since this was broken with cross compilers,
15639 # most powerpc-linux boxes support dynamic linking these days and
15640 # people can always --disable-shared, the test was removed, and we
15641 # assume the GNU/Linux dynamic linker is in use.
15642 dynamic_linker='GNU/Linux ld.so'
15649 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15651 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15652 dynamic_linker='NetBSD (a.out) ld.so'
15654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15655 soname_spec='${libname}${release}${shared_ext}$major'
15656 dynamic_linker='NetBSD ld.elf_so'
15658 shlibpath_var=LD_LIBRARY_PATH
15659 shlibpath_overrides_runpath=yes
15660 hardcode_into_libs=yes
15665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15666 shlibpath_var=LD_LIBRARY_PATH
15667 shlibpath_overrides_runpath=yes
15674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15675 soname_spec='${libname}${release}${shared_ext}$major'
15676 shlibpath_var=LD_LIBRARY_PATH
15677 shlibpath_overrides_runpath=yes
15682 sys_lib_dlsearch_path_spec="/usr/lib"
15684 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15686 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15687 *) need_version=no ;;
15689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15690 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15691 shlibpath_var=LD_LIBRARY_PATH
15692 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15694 openbsd2.[89] | openbsd2.[89].*)
15695 shlibpath_overrides_runpath=no
15698 shlibpath_overrides_runpath=yes
15702 shlibpath_overrides_runpath=yes
15707 libname_spec='$name'
15710 library_names_spec='$libname${shared_ext} $libname.a'
15711 dynamic_linker='OS/2 ld.exe'
15712 shlibpath_var=LIBPATH
15715 osf3* | osf4* | osf5*)
15719 soname_spec='${libname}${release}${shared_ext}$major'
15720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15721 shlibpath_var=LD_LIBRARY_PATH
15722 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15723 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15735 soname_spec='${libname}${release}${shared_ext}$major'
15736 shlibpath_var=LD_LIBRARY_PATH
15737 shlibpath_overrides_runpath=yes
15738 hardcode_into_libs=yes
15739 # ldd complains unless libraries are executable
15740 postinstall_cmds='chmod +x $lib'
15745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15746 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15747 shlibpath_var=LD_LIBRARY_PATH
15748 shlibpath_overrides_runpath=yes
15749 if test "$with_gnu_ld" = yes; then
15757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15758 soname_spec='${libname}${release}${shared_ext}$major'
15759 shlibpath_var=LD_LIBRARY_PATH
15760 case $host_vendor in
15762 shlibpath_overrides_runpath=no
15764 export_dynamic_flag_spec='${wl}-Blargedynsym'
15765 runpath_var=LD_RUN_PATH
15773 shlibpath_overrides_runpath=no
15774 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15780 if test -d /usr/nec ;then
15782 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15783 soname_spec='$libname${shared_ext}.$major'
15784 shlibpath_var=LD_LIBRARY_PATH
15788 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15789 version_type=freebsd-elf
15792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15793 soname_spec='${libname}${release}${shared_ext}$major'
15794 shlibpath_var=LD_LIBRARY_PATH
15795 hardcode_into_libs=yes
15796 if test "$with_gnu_ld" = yes; then
15797 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15798 shlibpath_overrides_runpath=no
15800 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15801 shlibpath_overrides_runpath=yes
15804 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15808 sys_lib_dlsearch_path_spec='/usr/lib'
15813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15814 soname_spec='${libname}${release}${shared_ext}$major'
15815 shlibpath_var=LD_LIBRARY_PATH
15822 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15823 $as_echo "$dynamic_linker" >&6; }
15824 test "$dynamic_linker" = no && can_build_shared=no
15826 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15827 $as_echo_n "(cached) " >&6
15829 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
15832 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15833 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15834 $as_echo_n "(cached) " >&6
15836 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
15839 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15841 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15842 if test "$GCC" = yes; then
15843 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15846 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15847 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15848 hardcode_action_F77=
15849 if test -n "$hardcode_libdir_flag_spec_F77" || \
15850 test -n "$runpath_var_F77" || \
15851 test "X$hardcode_automatic_F77" = "Xyes" ; then
15853 # We can hardcode non-existant directories.
15854 if test "$hardcode_direct_F77" != no &&
15855 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15856 # have to relink, otherwise we might link with an installed library
15857 # when we should be linking with a yet-to-be-installed one
15858 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15859 test "$hardcode_minus_L_F77" != no; then
15860 # Linking always hardcodes the temporary library directory.
15861 hardcode_action_F77=relink
15863 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15864 hardcode_action_F77=immediate
15867 # We cannot hardcode anything, or else we can only hardcode existing
15869 hardcode_action_F77=unsupported
15871 { $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15872 $as_echo "$hardcode_action_F77" >&6; }
15874 if test "$hardcode_action_F77" = relink; then
15875 # Fast installation is not supported
15876 enable_fast_install=no
15877 elif test "$shlibpath_overrides_runpath" = yes ||
15878 test "$enable_shared" = no; then
15879 # Fast installation is not necessary
15880 enable_fast_install=needless
15884 # The else clause should only fire when bootstrapping the
15885 # libtool distribution, otherwise you forgot to ship ltmain.sh
15886 # with your package, and you will get complaints that there are
15887 # no rules to generate ltmain.sh.
15888 if test -f "$ltmain"; then
15889 # See if we are running on zsh, and set the options which allow our commands through
15890 # without removal of \ escapes.
15891 if test -n "${ZSH_VERSION+set}" ; then
15892 setopt NO_GLOB_SUBST
15894 # Now quote all the things that may contain metacharacters while being
15895 # careful not to overquote the AC_SUBSTed values. We take copies of the
15896 # variables and quote the copies for generation of the libtool script.
15897 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15899 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15900 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15901 deplibs_check_method reload_flag reload_cmds need_locks \
15902 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15903 lt_cv_sys_global_symbol_to_c_name_address \
15904 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15905 old_postinstall_cmds old_postuninstall_cmds \
15909 lt_prog_compiler_wl_F77 \
15910 lt_prog_compiler_pic_F77 \
15911 lt_prog_compiler_static_F77 \
15912 lt_prog_compiler_no_builtin_flag_F77 \
15913 export_dynamic_flag_spec_F77 \
15914 thread_safe_flag_spec_F77 \
15915 whole_archive_flag_spec_F77 \
15916 enable_shared_with_static_runtimes_F77 \
15917 old_archive_cmds_F77 \
15918 old_archive_from_new_cmds_F77 \
15919 predep_objects_F77 \
15920 postdep_objects_F77 \
15923 compiler_lib_search_path_F77 \
15924 compiler_lib_search_dirs_F77 \
15926 archive_expsym_cmds_F77 \
15927 postinstall_cmds_F77 \
15928 postuninstall_cmds_F77 \
15929 old_archive_from_expsyms_cmds_F77 \
15930 allow_undefined_flag_F77 \
15931 no_undefined_flag_F77 \
15932 export_symbols_cmds_F77 \
15933 hardcode_libdir_flag_spec_F77 \
15934 hardcode_libdir_flag_spec_ld_F77 \
15935 hardcode_libdir_separator_F77 \
15936 hardcode_automatic_F77 \
15938 module_expsym_cmds_F77 \
15939 lt_cv_prog_compiler_c_o_F77 \
15940 fix_srcfile_path_F77 \
15941 exclude_expsyms_F77 \
15942 include_expsyms_F77; do
15945 old_archive_cmds_F77 | \
15946 old_archive_from_new_cmds_F77 | \
15947 archive_cmds_F77 | \
15948 archive_expsym_cmds_F77 | \
15949 module_cmds_F77 | \
15950 module_expsym_cmds_F77 | \
15951 old_archive_from_expsyms_cmds_F77 | \
15952 export_symbols_cmds_F77 | \
15953 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15954 postinstall_cmds | postuninstall_cmds | \
15955 old_postinstall_cmds | old_postuninstall_cmds | \
15956 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15957 # Double-quote double-evaled strings.
15958 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15961 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15967 *'\$0 --fallback-echo"')
15968 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15974 cat <<__EOF__ >> "$cfgfile"
15975 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15977 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15979 # Shell to use when invoking shell scripts.
15982 # Whether or not to build shared libraries.
15983 build_libtool_libs=$enable_shared
15985 # Whether or not to build static libraries.
15986 build_old_libs=$enable_static
15988 # Whether or not to add -lc for building shared libraries.
15989 build_libtool_need_lc=$archive_cmds_need_lc_F77
15991 # Whether or not to disallow shared libs when runtime libs are static
15992 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15994 # Whether or not to optimize for fast installation.
15995 fast_install=$enable_fast_install
15998 host_alias=$host_alias
16002 # The build system.
16003 build_alias=$build_alias
16007 # An echo program that does not interpret backslashes.
16012 AR_FLAGS=$lt_AR_FLAGS
16017 # LTCC compiler flags.
16018 LTCFLAGS=$lt_LTCFLAGS
16020 # A language-specific compiler.
16021 CC=$lt_compiler_F77
16023 # Is the compiler the GNU C compiler?
16029 # The linker used to build libraries.
16032 # Whether we need hard or soft links.
16035 # A BSD-compatible nm program.
16038 # A symbol stripping program
16041 # Used to examine libraries when file_magic_cmd begins "file"
16042 MAGIC_CMD=$MAGIC_CMD
16044 # Used on cygwin: DLL creation program.
16047 # Used on cygwin: object dumper.
16050 # Used on cygwin: assembler.
16053 # The name of the directory that contains temporary libtool files.
16056 # How to create reloadable object files.
16057 reload_flag=$lt_reload_flag
16058 reload_cmds=$lt_reload_cmds
16060 # How to pass a linker flag through the compiler.
16061 wl=$lt_lt_prog_compiler_wl_F77
16063 # Object file suffix (normally "o").
16064 objext="$ac_objext"
16066 # Old archive suffix (normally "a").
16069 # Shared library suffix (normally ".so").
16070 shrext_cmds='$shrext_cmds'
16072 # Executable file suffix (normally "").
16075 # Additional compiler flags for building library objects.
16076 pic_flag=$lt_lt_prog_compiler_pic_F77
16079 # What is the maximum length of a command?
16080 max_cmd_len=$lt_cv_sys_max_cmd_len
16082 # Does compiler simultaneously support -c and -o options?
16083 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16085 # Must we lock files when doing compilation?
16086 need_locks=$lt_need_locks
16088 # Do we need the lib prefix for modules?
16089 need_lib_prefix=$need_lib_prefix
16091 # Do we need a version for libraries?
16092 need_version=$need_version
16094 # Whether dlopen is supported.
16095 dlopen_support=$enable_dlopen
16097 # Whether dlopen of programs is supported.
16098 dlopen_self=$enable_dlopen_self
16100 # Whether dlopen of statically linked programs is supported.
16101 dlopen_self_static=$enable_dlopen_self_static
16103 # Compiler flag to prevent dynamic linking.
16104 link_static_flag=$lt_lt_prog_compiler_static_F77
16106 # Compiler flag to turn off builtin functions.
16107 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16109 # Compiler flag to allow reflexive dlopens.
16110 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16112 # Compiler flag to generate shared objects directly from archives.
16113 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16115 # Compiler flag to generate thread-safe objects.
16116 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16118 # Library versioning type.
16119 version_type=$version_type
16121 # Format of library name prefix.
16122 libname_spec=$lt_libname_spec
16124 # List of archive names. First name is the real one, the rest are links.
16125 # The last name is the one that the linker finds with -lNAME.
16126 library_names_spec=$lt_library_names_spec
16128 # The coded name of the library, if different from the real name.
16129 soname_spec=$lt_soname_spec
16131 # Commands used to build and install an old-style archive.
16133 old_archive_cmds=$lt_old_archive_cmds_F77
16134 old_postinstall_cmds=$lt_old_postinstall_cmds
16135 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16137 # Create an old-style archive from a shared archive.
16138 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16140 # Create a temporary old-style archive to link instead of a shared archive.
16141 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16143 # Commands used to build and install a shared archive.
16144 archive_cmds=$lt_archive_cmds_F77
16145 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16146 postinstall_cmds=$lt_postinstall_cmds
16147 postuninstall_cmds=$lt_postuninstall_cmds
16149 # Commands used to build a loadable module (assumed same as above if empty)
16150 module_cmds=$lt_module_cmds_F77
16151 module_expsym_cmds=$lt_module_expsym_cmds_F77
16153 # Commands to strip libraries.
16154 old_striplib=$lt_old_striplib
16155 striplib=$lt_striplib
16157 # Dependencies to place before the objects being linked to create a
16159 predep_objects=$lt_predep_objects_F77
16161 # Dependencies to place after the objects being linked to create a
16163 postdep_objects=$lt_postdep_objects_F77
16165 # Dependencies to place before the objects being linked to create a
16167 predeps=$lt_predeps_F77
16169 # Dependencies to place after the objects being linked to create a
16171 postdeps=$lt_postdeps_F77
16173 # The directories searched by this compiler when creating a shared
16175 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16177 # The library search path used internally by the compiler when linking
16178 # a shared library.
16179 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16181 # Method to check whether dependent libraries are shared objects.
16182 deplibs_check_method=$lt_deplibs_check_method
16184 # Command to use when deplibs_check_method == file_magic.
16185 file_magic_cmd=$lt_file_magic_cmd
16187 # Flag that allows shared libraries with undefined symbols to be built.
16188 allow_undefined_flag=$lt_allow_undefined_flag_F77
16190 # Flag that forces no undefined symbols.
16191 no_undefined_flag=$lt_no_undefined_flag_F77
16193 # Commands used to finish a libtool library installation in a directory.
16194 finish_cmds=$lt_finish_cmds
16196 # Same as above, but a single script fragment to be evaled but not shown.
16197 finish_eval=$lt_finish_eval
16199 # Take the output of nm and produce a listing of raw symbols and C names.
16200 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16202 # Transform the output of nm in a proper C declaration
16203 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16205 # Transform the output of nm in a C name address pair
16206 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16208 # This is the shared library runtime path variable.
16209 runpath_var=$runpath_var
16211 # This is the shared library path variable.
16212 shlibpath_var=$shlibpath_var
16214 # Is shlibpath searched before the hard-coded library search path?
16215 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16217 # How to hardcode a shared library path into an executable.
16218 hardcode_action=$hardcode_action_F77
16220 # Whether we should hardcode library paths into libraries.
16221 hardcode_into_libs=$hardcode_into_libs
16223 # Flag to hardcode \$libdir into a binary during linking.
16224 # This must work even if \$libdir does not exist.
16225 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16227 # If ld is used when linking, flag to hardcode \$libdir into
16228 # a binary during linking. This must work even if \$libdir does
16230 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16232 # Whether we need a single -rpath flag with a separated argument.
16233 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16235 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16236 # resulting binary.
16237 hardcode_direct=$hardcode_direct_F77
16239 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16240 # resulting binary.
16241 hardcode_minus_L=$hardcode_minus_L_F77
16243 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16244 # the resulting binary.
16245 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16247 # Set to yes if building a shared library automatically hardcodes DIR into the library
16248 # and all subsequent libraries and executables linked against it.
16249 hardcode_automatic=$hardcode_automatic_F77
16251 # Variables whose values should be saved in libtool wrapper scripts and
16252 # restored at relink time.
16253 variables_saved_for_relink="$variables_saved_for_relink"
16255 # Whether libtool must link a program against all its dependency libraries.
16256 link_all_deplibs=$link_all_deplibs_F77
16258 # Compile-time system search path for libraries
16259 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16261 # Run-time system search path for libraries
16262 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16264 # Fix the shell variable \$srcfile for the compiler.
16265 fix_srcfile_path=$lt_fix_srcfile_path
16267 # Set to yes if exported symbols are required.
16268 always_export_symbols=$always_export_symbols_F77
16270 # The commands to list exported symbols.
16271 export_symbols_cmds=$lt_export_symbols_cmds_F77
16273 # The commands to extract the exported symbol list from a shared archive.
16274 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16276 # Symbols that should not be listed in the preloaded symbols.
16277 exclude_expsyms=$lt_exclude_expsyms_F77
16279 # Symbols that must always be exported.
16280 include_expsyms=$lt_include_expsyms_F77
16282 # ### END LIBTOOL TAG CONFIG: $tagname
16288 # If there is no Makefile yet, we rely on a make rule to execute
16289 # `config.status --recheck' to rerun these tests and create the
16290 # libtool script then.
16291 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16292 if test -f "$ltmain_in"; then
16293 test -f Makefile && make "$ltmain"
16299 ac_cpp='$CPP $CPPFLAGS'
16300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16312 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16315 # Source file extension for Java test sources.
16318 # Object file extension for compiled Java test sources.
16322 # Code to be used in simple compile tests
16323 lt_simple_compile_test_code="class foo {}"
16325 # Code to be used in simple link tests
16326 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16328 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16330 # If no C compiler was specified, use CC.
16333 # If no C compiler flags were specified, use CFLAGS.
16334 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16336 # Allow CC to be a program name with arguments.
16340 # save warnings/boilerplate of simple test code
16341 ac_outfile=conftest.$ac_objext
16342 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16343 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16344 _lt_compiler_boilerplate=`cat conftest.err`
16347 ac_outfile=conftest.$ac_objext
16348 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16349 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16350 _lt_linker_boilerplate=`cat conftest.err`
16354 # Allow CC to be a program name with arguments.
16359 for cc_temp in $compiler""; do
16361 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16362 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16367 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16370 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16371 archive_cmds_need_lc_GCJ=no
16373 old_archive_cmds_GCJ=$old_archive_cmds
16376 ## There is no encapsulation within the following macros, do not change
16377 ## the running order or otherwise move them around unless you know exactly
16378 ## what you are doing...
16380 lt_prog_compiler_no_builtin_flag_GCJ=
16382 if test "$GCC" = yes; then
16383 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16386 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16387 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16388 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16389 $as_echo_n "(cached) " >&6
16391 lt_cv_prog_compiler_rtti_exceptions=no
16392 ac_outfile=conftest.$ac_objext
16393 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16394 lt_compiler_flag="-fno-rtti -fno-exceptions"
16395 # Insert the option either (1) after the last *FLAGS variable, or
16396 # (2) before a word containing "conftest.", or (3) at the end.
16397 # Note that $ac_compile itself does not contain backslashes and begins
16398 # with a dollar sign (not a hyphen), so the echo should work correctly.
16399 # The option is referenced via a variable to avoid confusing sed.
16400 lt_compile=`echo "$ac_compile" | $SED \
16401 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16402 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16403 -e 's:$: $lt_compiler_flag:'`
16404 (eval echo "\"\$as_me:16404: $lt_compile\"" >&5)
16405 (eval "$lt_compile" 2>conftest.err)
16407 cat conftest.err >&5
16408 echo "$as_me:16408: \$? = $ac_status" >&5
16409 if (exit $ac_status) && test -s "$ac_outfile"; then
16410 # The compiler can only warn and ignore the option if not recognized
16411 # So say no if there are warnings other than the usual output.
16412 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16413 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16414 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16415 lt_cv_prog_compiler_rtti_exceptions=yes
16421 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16422 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16424 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16425 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16432 lt_prog_compiler_wl_GCJ=
16433 lt_prog_compiler_pic_GCJ=
16434 lt_prog_compiler_static_GCJ=
16436 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16437 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16439 if test "$GCC" = yes; then
16440 lt_prog_compiler_wl_GCJ='-Wl,'
16441 lt_prog_compiler_static_GCJ='-static'
16445 # All AIX code is PIC.
16446 if test "$host_cpu" = ia64; then
16447 # AIX 5 now supports IA64 processor
16448 lt_prog_compiler_static_GCJ='-Bstatic'
16453 # FIXME: we need at least 68020 code to build shared libraries, but
16454 # adding the `-m68020' flag to GCC prevents building anything better,
16456 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16459 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16460 # PIC is the default for these OSes.
16463 mingw* | cygwin* | pw32* | os2*)
16464 # This hack is so that the source file can tell whether it is being
16465 # built for inclusion in a dll (and should export symbols for example).
16466 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16467 # (--disable-auto-import) libraries
16471 darwin* | rhapsody*)
16472 # PIC is the default on this platform
16473 # Common symbols not allowed in MH_DYLIB files
16474 lt_prog_compiler_pic_GCJ='-fno-common'
16478 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16479 # Instead, we relocate shared libraries at runtime.
16483 # Just because we use GCC doesn't mean we suddenly get shared libraries
16484 # on systems that don't support them.
16485 lt_prog_compiler_can_build_shared_GCJ=no
16490 if test -d /usr/nec; then
16491 lt_prog_compiler_pic_GCJ=-Kconform_pic
16496 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16497 # not for PA HP-UX.
16503 lt_prog_compiler_pic_GCJ='-fPIC'
16509 lt_prog_compiler_pic_GCJ='-fPIC'
16513 # PORTME Check for flag to pass linker flags through the system compiler.
16516 lt_prog_compiler_wl_GCJ='-Wl,'
16517 if test "$host_cpu" = ia64; then
16518 # AIX 5 now supports IA64 processor
16519 lt_prog_compiler_static_GCJ='-Bstatic'
16521 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16525 # PIC is the default on this platform
16526 # Common symbols not allowed in MH_DYLIB files
16527 case $cc_basename in
16529 lt_prog_compiler_pic_GCJ='-qnocommon'
16530 lt_prog_compiler_wl_GCJ='-Wl,'
16535 mingw* | cygwin* | pw32* | os2*)
16536 # This hack is so that the source file can tell whether it is being
16537 # built for inclusion in a dll (and should export symbols for example).
16541 hpux9* | hpux10* | hpux11*)
16542 lt_prog_compiler_wl_GCJ='-Wl,'
16543 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16544 # not for PA HP-UX.
16550 lt_prog_compiler_pic_GCJ='+Z'
16553 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16554 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16557 irix5* | irix6* | nonstopux*)
16558 lt_prog_compiler_wl_GCJ='-Wl,'
16559 # PIC (with -KPIC) is the default.
16560 lt_prog_compiler_static_GCJ='-non_shared'
16564 lt_prog_compiler_pic_GCJ='-KPIC'
16565 lt_prog_compiler_static_GCJ='-Bstatic'
16568 linux* | k*bsd*-gnu)
16569 case $cc_basename in
16571 lt_prog_compiler_wl_GCJ='-Wl,'
16572 lt_prog_compiler_pic_GCJ='-KPIC'
16573 lt_prog_compiler_static_GCJ='-static'
16575 pgcc* | pgf77* | pgf90* | pgf95*)
16576 # Portland Group compilers (*not* the Pentium gcc compiler,
16577 # which looks to be a dead project)
16578 lt_prog_compiler_wl_GCJ='-Wl,'
16579 lt_prog_compiler_pic_GCJ='-fpic'
16580 lt_prog_compiler_static_GCJ='-Bstatic'
16583 lt_prog_compiler_wl_GCJ='-Wl,'
16584 # All Alpha code is PIC.
16585 lt_prog_compiler_static_GCJ='-non_shared'
16588 case `$CC -V 2>&1 | sed 5q` in
16591 lt_prog_compiler_pic_GCJ='-KPIC'
16592 lt_prog_compiler_static_GCJ='-Bstatic'
16593 lt_prog_compiler_wl_GCJ='-Wl,'
16596 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16597 lt_prog_compiler_pic_GCJ='-KPIC'
16598 lt_prog_compiler_static_GCJ='-Bstatic'
16599 lt_prog_compiler_wl_GCJ=''
16606 osf3* | osf4* | osf5*)
16607 lt_prog_compiler_wl_GCJ='-Wl,'
16608 # All OSF/1 code is PIC.
16609 lt_prog_compiler_static_GCJ='-non_shared'
16613 lt_prog_compiler_static_GCJ='-non_shared'
16617 lt_prog_compiler_pic_GCJ='-KPIC'
16618 lt_prog_compiler_static_GCJ='-Bstatic'
16619 case $cc_basename in
16620 f77* | f90* | f95*)
16621 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16623 lt_prog_compiler_wl_GCJ='-Wl,';;
16628 lt_prog_compiler_wl_GCJ='-Qoption ld '
16629 lt_prog_compiler_pic_GCJ='-PIC'
16630 lt_prog_compiler_static_GCJ='-Bstatic'
16633 sysv4 | sysv4.2uw2* | sysv4.3*)
16634 lt_prog_compiler_wl_GCJ='-Wl,'
16635 lt_prog_compiler_pic_GCJ='-KPIC'
16636 lt_prog_compiler_static_GCJ='-Bstatic'
16640 if test -d /usr/nec ;then
16641 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16642 lt_prog_compiler_static_GCJ='-Bstatic'
16646 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16647 lt_prog_compiler_wl_GCJ='-Wl,'
16648 lt_prog_compiler_pic_GCJ='-KPIC'
16649 lt_prog_compiler_static_GCJ='-Bstatic'
16653 lt_prog_compiler_wl_GCJ='-Wl,'
16654 lt_prog_compiler_can_build_shared_GCJ=no
16658 lt_prog_compiler_pic_GCJ='-pic'
16659 lt_prog_compiler_static_GCJ='-Bstatic'
16663 lt_prog_compiler_can_build_shared_GCJ=no
16668 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16669 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
16672 # Check to make sure the PIC flag actually works.
16674 if test -n "$lt_prog_compiler_pic_GCJ"; then
16676 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16677 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
16678 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
16679 $as_echo_n "(cached) " >&6
16681 lt_cv_prog_compiler_pic_works_GCJ=no
16682 ac_outfile=conftest.$ac_objext
16683 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16684 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16685 # Insert the option either (1) after the last *FLAGS variable, or
16686 # (2) before a word containing "conftest.", or (3) at the end.
16687 # Note that $ac_compile itself does not contain backslashes and begins
16688 # with a dollar sign (not a hyphen), so the echo should work correctly.
16689 # The option is referenced via a variable to avoid confusing sed.
16690 lt_compile=`echo "$ac_compile" | $SED \
16691 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16692 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16693 -e 's:$: $lt_compiler_flag:'`
16694 (eval echo "\"\$as_me:16694: $lt_compile\"" >&5)
16695 (eval "$lt_compile" 2>conftest.err)
16697 cat conftest.err >&5
16698 echo "$as_me:16698: \$? = $ac_status" >&5
16699 if (exit $ac_status) && test -s "$ac_outfile"; then
16700 # The compiler can only warn and ignore the option if not recognized
16701 # So say no if there are warnings other than the usual output.
16702 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16703 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16704 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16705 lt_cv_prog_compiler_pic_works_GCJ=yes
16711 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
16712 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
16714 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
16715 case $lt_prog_compiler_pic_GCJ in
16717 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16720 lt_prog_compiler_pic_GCJ=
16721 lt_prog_compiler_can_build_shared_GCJ=no
16726 # For platforms which do not support PIC, -DPIC is meaningless:
16728 lt_prog_compiler_pic_GCJ=
16731 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16736 # Check to make sure the static flag actually works.
16738 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16739 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16740 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16741 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
16742 $as_echo_n "(cached) " >&6
16744 lt_cv_prog_compiler_static_works_GCJ=no
16745 save_LDFLAGS="$LDFLAGS"
16746 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16747 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16748 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16749 # The linker can only warn and ignore the option if not recognized
16750 # So say no if there are warnings
16751 if test -s conftest.err; then
16752 # Append any errors to the config.log.
16753 cat conftest.err 1>&5
16754 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16755 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16756 if diff conftest.exp conftest.er2 >/dev/null; then
16757 lt_cv_prog_compiler_static_works_GCJ=yes
16760 lt_cv_prog_compiler_static_works_GCJ=yes
16764 LDFLAGS="$save_LDFLAGS"
16767 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
16768 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
16770 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
16773 lt_prog_compiler_static_GCJ=
16777 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16778 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16779 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16780 $as_echo_n "(cached) " >&6
16782 lt_cv_prog_compiler_c_o_GCJ=no
16783 $rm -r conftest 2>/dev/null
16787 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16789 lt_compiler_flag="-o out/conftest2.$ac_objext"
16790 # Insert the option either (1) after the last *FLAGS variable, or
16791 # (2) before a word containing "conftest.", or (3) at the end.
16792 # Note that $ac_compile itself does not contain backslashes and begins
16793 # with a dollar sign (not a hyphen), so the echo should work correctly.
16794 lt_compile=`echo "$ac_compile" | $SED \
16795 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16796 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16797 -e 's:$: $lt_compiler_flag:'`
16798 (eval echo "\"\$as_me:16798: $lt_compile\"" >&5)
16799 (eval "$lt_compile" 2>out/conftest.err)
16801 cat out/conftest.err >&5
16802 echo "$as_me:16802: \$? = $ac_status" >&5
16803 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16805 # The compiler can only warn and ignore the option if not recognized
16806 # So say no if there are warnings
16807 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16808 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16809 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16810 lt_cv_prog_compiler_c_o_GCJ=yes
16815 # SGI C++ compiler will create directory out/ii_files/ for
16816 # template instantiation
16817 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16818 $rm out/* && rmdir out
16824 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16825 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16828 hard_links="nottested"
16829 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16830 # do not overwrite the value of need_locks provided by the user
16831 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16832 $as_echo_n "checking if we can lock with hard links... " >&6; }
16835 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16837 ln conftest.a conftest.b 2>&5 || hard_links=no
16838 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16839 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
16840 $as_echo "$hard_links" >&6; }
16841 if test "$hard_links" = no; then
16842 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16843 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16850 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16851 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16854 allow_undefined_flag_GCJ=
16855 enable_shared_with_static_runtimes_GCJ=no
16857 archive_expsym_cmds_GCJ=
16858 old_archive_From_new_cmds_GCJ=
16859 old_archive_from_expsyms_cmds_GCJ=
16860 export_dynamic_flag_spec_GCJ=
16861 whole_archive_flag_spec_GCJ=
16862 thread_safe_flag_spec_GCJ=
16863 hardcode_libdir_flag_spec_GCJ=
16864 hardcode_libdir_flag_spec_ld_GCJ=
16865 hardcode_libdir_separator_GCJ=
16866 hardcode_direct_GCJ=no
16867 hardcode_minus_L_GCJ=no
16868 hardcode_shlibpath_var_GCJ=unsupported
16869 link_all_deplibs_GCJ=unknown
16870 hardcode_automatic_GCJ=no
16872 module_expsym_cmds_GCJ=
16873 always_export_symbols_GCJ=no
16874 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16875 # include_expsyms should be a list of space-separated symbols to be *always*
16876 # included in the symbol list
16877 include_expsyms_GCJ=
16878 # exclude_expsyms can be an extended regexp of symbols to exclude
16879 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16880 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16881 # as well as any symbol that contains `d'.
16882 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16883 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16884 # platforms (ab)use it in PIC code, but their linkers get confused if
16885 # the symbol is explicitly referenced. Since portable code cannot
16886 # rely on this symbol name, it's probably fine to never include it in
16887 # preloaded symbol tables.
16888 # Exclude shared library initialization/finalization symbols.
16889 extract_expsyms_cmds=
16890 # Just being paranoid about ensuring that cc_basename is set.
16891 for cc_temp in $compiler""; do
16893 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16894 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16899 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16902 cygwin* | mingw* | pw32*)
16903 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16904 # When not using gcc, we currently assume that we are using
16905 # Microsoft Visual C++.
16906 if test "$GCC" != yes; then
16911 # we just hope/assume this is gcc and not c89 (= MSVC++)
16920 if test "$with_gnu_ld" = yes; then
16921 # If archive_cmds runs LD, not CC, wlarc should be empty
16924 # Set some defaults for GNU ld with shared library support. These
16925 # are reset later if shared libraries are not supported. Putting them
16926 # here allows them to be overridden if necessary.
16927 runpath_var=LD_RUN_PATH
16928 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16929 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16930 # ancient GNU ld didn't support --whole-archive et. al.
16931 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16932 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16934 whole_archive_flag_spec_GCJ=
16936 supports_anon_versioning=no
16937 case `$LD -v 2>/dev/null` in
16938 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16939 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16940 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16941 *\ 2.11.*) ;; # other 2.11 versions
16942 *) supports_anon_versioning=yes ;;
16945 # See if GNU ld supports shared libraries.
16948 # On AIX/PPC, the GNU linker is very broken
16949 if test "$host_cpu" != ia64; then
16953 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16954 *** to be unable to reliably create shared libraries on AIX.
16955 *** Therefore, libtool is disabling shared libraries support. If you
16956 *** really care for shared libraries, you may want to modify your PATH
16957 *** so that a non-GNU linker is found, and then restart.
16964 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)'
16965 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16966 hardcode_minus_L_GCJ=yes
16968 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16969 # that the semantics of dynamic libraries on AmigaOS, at least up
16970 # to version 4, is to share data among multiple programs linked
16971 # with the same dynamic library. Since this doesn't match the
16972 # behavior of shared libraries on other platforms, we can't use
16978 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16979 allow_undefined_flag_GCJ=unsupported
16980 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16981 # support --undefined. This deserves some investigation. FIXME
16982 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16988 cygwin* | mingw* | pw32*)
16989 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16990 # as there is no search path for DLLs.
16991 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16992 allow_undefined_flag_GCJ=unsupported
16993 always_export_symbols_GCJ=no
16994 enable_shared_with_static_runtimes_GCJ=yes
16995 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16997 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16998 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16999 # If the export-symbols file already is a .def file (1st line
17000 # is EXPORTS), use it as is; otherwise, prepend...
17001 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17002 cp $export_symbols $output_objdir/$soname.def;
17004 echo EXPORTS > $output_objdir/$soname.def;
17005 cat $export_symbols >> $output_objdir/$soname.def;
17007 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17014 hardcode_direct_GCJ=no
17015 hardcode_shlibpath_var_GCJ=no
17016 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17017 export_dynamic_flag_spec_GCJ='${wl}-E'
17018 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17019 # Instead, shared libraries are loaded at an image base (0x10000000 by
17020 # default) and relocated if they conflict, which is a slow very memory
17021 # consuming and fragmenting process. To avoid this, we pick a random,
17022 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17023 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17024 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'
17025 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'
17028 gnu* | linux* | k*bsd*-gnu)
17029 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17031 case $cc_basename,$host_cpu in
17032 pgcc*) # Portland Group C compiler
17033 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'
17034 tmp_addflag=' $pic_flag'
17036 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17037 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'
17038 tmp_addflag=' $pic_flag -Mnomain' ;;
17039 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17040 tmp_addflag=' -i_dynamic' ;;
17041 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17042 tmp_addflag=' -i_dynamic -nofor_main' ;;
17043 ifc* | ifort*) # Intel Fortran compiler
17044 tmp_addflag=' -nofor_main' ;;
17046 case `$CC -V 2>&1 | sed 5q` in
17047 *Sun\ C*) # Sun C 5.9
17048 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17049 tmp_sharedflag='-G' ;;
17050 *Sun\ F*) # Sun Fortran 8.3
17051 tmp_sharedflag='-G' ;;
17053 tmp_sharedflag='-shared' ;;
17055 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17057 if test $supports_anon_versioning = yes; then
17058 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17059 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17060 $echo "local: *; };" >> $output_objdir/$libname.ver~
17061 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17069 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17070 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17073 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17074 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17079 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17083 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17084 *** create shared libraries on Solaris systems. Therefore, libtool
17085 *** is disabling shared libraries support. We urge you to upgrade GNU
17086 *** binutils to release 2.9.1 or newer. Another option is to modify
17087 *** your PATH or compiler configuration so that the native linker is
17088 *** used, and then restart.
17091 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17092 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17093 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17099 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17100 case `$LD -v 2>&1` in
17101 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17105 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17106 *** reliably create shared libraries on SCO systems. Therefore, libtool
17107 *** is disabling shared libraries support. We urge you to upgrade GNU
17108 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17109 *** your PATH or compiler configuration so that the native linker is
17110 *** used, and then restart.
17115 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17116 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17117 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17118 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17127 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17129 hardcode_direct_GCJ=yes
17130 hardcode_shlibpath_var_GCJ=no
17134 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17135 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17136 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17143 if test "$ld_shlibs_GCJ" = no; then
17145 hardcode_libdir_flag_spec_GCJ=
17146 export_dynamic_flag_spec_GCJ=
17147 whole_archive_flag_spec_GCJ=
17150 # PORTME fill in a description of your system's linker (not GNU ld)
17153 allow_undefined_flag_GCJ=unsupported
17154 always_export_symbols_GCJ=yes
17155 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'
17156 # Note: this linker hardcodes the directories in LIBPATH if there
17157 # are no directories specified by -L.
17158 hardcode_minus_L_GCJ=yes
17159 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17160 # Neither direct hardcoding nor static linking is supported with a
17162 hardcode_direct_GCJ=unsupported
17167 if test "$host_cpu" = ia64; then
17168 # On IA64, the linker does run time linking by default, so we don't
17169 # have to do anything special.
17170 aix_use_runtimelinking=no
17171 exp_sym_flag='-Bexport'
17174 # If we're using GNU nm, then we don't want the "-C" option.
17175 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17176 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17177 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'
17179 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'
17181 aix_use_runtimelinking=no
17183 # Test if we are trying to use run time linking or normal
17184 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17185 # need to do runtime linking.
17186 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17187 for ld_flag in $LDFLAGS; do
17188 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17189 aix_use_runtimelinking=yes
17196 exp_sym_flag='-bexport'
17197 no_entry_flag='-bnoentry'
17200 # When large executables or shared objects are built, AIX ld can
17201 # have problems creating the table of contents. If linking a library
17202 # or program results in "error TOC overflow" add -mminimal-toc to
17203 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17204 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17206 archive_cmds_GCJ=''
17207 hardcode_direct_GCJ=yes
17208 hardcode_libdir_separator_GCJ=':'
17209 link_all_deplibs_GCJ=yes
17211 if test "$GCC" = yes; then
17212 case $host_os in aix4.[012]|aix4.[012].*)
17213 # We only want to do this on AIX 4.2 and lower, the check
17214 # below for broken collect2 doesn't work under 4.3+
17215 collect2name=`${CC} -print-prog-name=collect2`
17216 if test -f "$collect2name" && \
17217 strings "$collect2name" | grep resolve_lib_name >/dev/null
17219 # We have reworked collect2
17222 # We have old collect2
17223 hardcode_direct_GCJ=unsupported
17224 # It fails to find uninstalled libraries when the uninstalled
17225 # path is not listed in the libpath. Setting hardcode_minus_L
17226 # to unsupported forces relinking
17227 hardcode_minus_L_GCJ=yes
17228 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17229 hardcode_libdir_separator_GCJ=
17233 shared_flag='-shared'
17234 if test "$aix_use_runtimelinking" = yes; then
17235 shared_flag="$shared_flag "'${wl}-G'
17239 if test "$host_cpu" = ia64; then
17240 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17241 # chokes on -Wl,-G. The following line is correct:
17244 if test "$aix_use_runtimelinking" = yes; then
17245 shared_flag='${wl}-G'
17247 shared_flag='${wl}-bM:SRE'
17252 # It seems that -bexpall does not export symbols beginning with
17253 # underscore (_), so it is better to generate a list of symbols to export.
17254 always_export_symbols_GCJ=yes
17255 if test "$aix_use_runtimelinking" = yes; then
17256 # Warning - without using the other runtime loading flags (-brtl),
17257 # -berok will link without error, but may produce a broken library.
17258 allow_undefined_flag_GCJ='-berok'
17259 # Determine the default libpath from the value encoded in an empty executable.
17260 cat >conftest.$ac_ext <<_ACEOF
17263 cat confdefs.h >>conftest.$ac_ext
17264 cat >>conftest.$ac_ext <<_ACEOF
17265 /* end confdefs.h. */
17275 rm -f conftest.$ac_objext conftest$ac_exeext
17276 if { (ac_try="$ac_link"
17277 case "(($ac_try" in
17278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17279 *) ac_try_echo=$ac_try;;
17281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17282 $as_echo "$ac_try_echo") >&5
17283 (eval "$ac_link") 2>conftest.er1
17285 grep -v '^ *+' conftest.er1 >conftest.err
17287 cat conftest.err >&5
17288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17289 (exit $ac_status); } && {
17290 test -z "$ac_c_werror_flag" ||
17291 test ! -s conftest.err
17292 } && test -s conftest$ac_exeext && {
17293 test "$cross_compiling" = yes ||
17294 $as_test_x conftest$ac_exeext
17297 lt_aix_libpath_sed='
17298 /Import File Strings/,/^$/ {
17304 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17305 # Check for a 64-bit object if we didn't find anything.
17306 if test -z "$aix_libpath"; then
17307 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17310 $as_echo "$as_me: failed program was:" >&5
17311 sed 's/^/| /' conftest.$ac_ext >&5
17316 rm -rf conftest.dSYM
17317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17318 conftest$ac_exeext conftest.$ac_ext
17319 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17321 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17322 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"
17324 if test "$host_cpu" = ia64; then
17325 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17326 allow_undefined_flag_GCJ="-z nodefs"
17327 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"
17329 # Determine the default libpath from the value encoded in an empty executable.
17330 cat >conftest.$ac_ext <<_ACEOF
17333 cat confdefs.h >>conftest.$ac_ext
17334 cat >>conftest.$ac_ext <<_ACEOF
17335 /* end confdefs.h. */
17345 rm -f conftest.$ac_objext conftest$ac_exeext
17346 if { (ac_try="$ac_link"
17347 case "(($ac_try" in
17348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17349 *) ac_try_echo=$ac_try;;
17351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17352 $as_echo "$ac_try_echo") >&5
17353 (eval "$ac_link") 2>conftest.er1
17355 grep -v '^ *+' conftest.er1 >conftest.err
17357 cat conftest.err >&5
17358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17359 (exit $ac_status); } && {
17360 test -z "$ac_c_werror_flag" ||
17361 test ! -s conftest.err
17362 } && test -s conftest$ac_exeext && {
17363 test "$cross_compiling" = yes ||
17364 $as_test_x conftest$ac_exeext
17367 lt_aix_libpath_sed='
17368 /Import File Strings/,/^$/ {
17374 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17375 # Check for a 64-bit object if we didn't find anything.
17376 if test -z "$aix_libpath"; then
17377 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17380 $as_echo "$as_me: failed program was:" >&5
17381 sed 's/^/| /' conftest.$ac_ext >&5
17386 rm -rf conftest.dSYM
17387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17388 conftest$ac_exeext conftest.$ac_ext
17389 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17391 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17392 # Warning - without using the other run time loading flags,
17393 # -berok will link without error, but may produce a broken library.
17394 no_undefined_flag_GCJ=' ${wl}-bernotok'
17395 allow_undefined_flag_GCJ=' ${wl}-berok'
17396 # Exported symbols can be pulled into shared objects from archives
17397 whole_archive_flag_spec_GCJ='$convenience'
17398 archive_cmds_need_lc_GCJ=yes
17399 # This is similar to how AIX traditionally builds its shared libraries.
17400 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'
17406 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)'
17407 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17408 hardcode_minus_L_GCJ=yes
17409 # see comment about different semantics on the GNU ld section
17414 export_dynamic_flag_spec_GCJ=-rdynamic
17417 cygwin* | mingw* | pw32*)
17418 # When not using gcc, we currently assume that we are using
17419 # Microsoft Visual C++.
17420 # hardcode_libdir_flag_spec is actually meaningless, as there is
17421 # no search path for DLLs.
17422 hardcode_libdir_flag_spec_GCJ=' '
17423 allow_undefined_flag_GCJ=unsupported
17424 # Tell ltmain to make .lib files, not .a files.
17426 # Tell ltmain to make .dll files, not .so files.
17428 # FIXME: Setting linknames here is a bad hack.
17429 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17430 # The linker will automatically build a .lib file if we build a DLL.
17431 old_archive_From_new_cmds_GCJ='true'
17432 # FIXME: Should let the user specify the lib program.
17433 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17434 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17435 enable_shared_with_static_runtimes_GCJ=yes
17438 darwin* | rhapsody*)
17440 rhapsody* | darwin1.[012])
17441 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17444 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17445 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17447 case ${MACOSX_DEPLOYMENT_TARGET} in
17449 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17452 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17458 archive_cmds_need_lc_GCJ=no
17459 hardcode_direct_GCJ=no
17460 hardcode_automatic_GCJ=yes
17461 hardcode_shlibpath_var_GCJ=unsupported
17462 whole_archive_flag_spec_GCJ=''
17463 link_all_deplibs_GCJ=yes
17464 if test "$GCC" = yes ; then
17465 output_verbose_link_cmd='echo'
17466 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17467 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17468 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17469 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17471 case $cc_basename in
17473 output_verbose_link_cmd='echo'
17474 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17475 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17476 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17477 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17478 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}'
17488 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17489 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17490 hardcode_shlibpath_var_GCJ=no
17497 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17498 # support. Future versions do this automatically, but an explicit c++rt0.o
17499 # does not break anything, and helps significantly (at the cost of a little
17502 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17503 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17504 hardcode_direct_GCJ=yes
17505 hardcode_shlibpath_var_GCJ=no
17508 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17510 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17511 hardcode_direct_GCJ=yes
17512 hardcode_minus_L_GCJ=yes
17513 hardcode_shlibpath_var_GCJ=no
17516 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17517 freebsd* | dragonfly*)
17518 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17519 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17520 hardcode_direct_GCJ=yes
17521 hardcode_shlibpath_var_GCJ=no
17525 if test "$GCC" = yes; then
17526 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'
17528 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'
17530 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17531 hardcode_libdir_separator_GCJ=:
17532 hardcode_direct_GCJ=yes
17534 # hardcode_minus_L: Not really in the search PATH,
17535 # but as the default location of the library.
17536 hardcode_minus_L_GCJ=yes
17537 export_dynamic_flag_spec_GCJ='${wl}-E'
17541 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17542 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17544 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17546 if test "$with_gnu_ld" = no; then
17547 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17548 hardcode_libdir_separator_GCJ=:
17550 hardcode_direct_GCJ=yes
17551 export_dynamic_flag_spec_GCJ='${wl}-E'
17553 # hardcode_minus_L: Not really in the search PATH,
17554 # but as the default location of the library.
17555 hardcode_minus_L_GCJ=yes
17560 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17563 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17566 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17569 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17575 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17578 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17581 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17585 if test "$with_gnu_ld" = no; then
17586 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17587 hardcode_libdir_separator_GCJ=:
17591 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17592 hardcode_direct_GCJ=no
17593 hardcode_shlibpath_var_GCJ=no
17596 hardcode_direct_GCJ=yes
17597 export_dynamic_flag_spec_GCJ='${wl}-E'
17599 # hardcode_minus_L: Not really in the search PATH,
17600 # but as the default location of the library.
17601 hardcode_minus_L_GCJ=yes
17607 irix5* | irix6* | nonstopux*)
17608 if test "$GCC" = yes; then
17609 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'
17611 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'
17612 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17614 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17615 hardcode_libdir_separator_GCJ=:
17616 link_all_deplibs_GCJ=yes
17620 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17621 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17623 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17625 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17626 hardcode_direct_GCJ=yes
17627 hardcode_shlibpath_var_GCJ=no
17631 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17632 hardcode_direct_GCJ=yes
17633 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17634 hardcode_libdir_separator_GCJ=:
17635 hardcode_shlibpath_var_GCJ=no
17639 if test -f /usr/libexec/ld.so; then
17640 hardcode_direct_GCJ=yes
17641 hardcode_shlibpath_var_GCJ=no
17642 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17643 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17644 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17645 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17646 export_dynamic_flag_spec_GCJ='${wl}-E'
17649 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17650 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17651 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17654 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17655 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17665 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17666 hardcode_minus_L_GCJ=yes
17667 allow_undefined_flag_GCJ=unsupported
17668 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'
17669 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17673 if test "$GCC" = yes; then
17674 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17675 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'
17677 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17678 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'
17680 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17681 hardcode_libdir_separator_GCJ=:
17684 osf4* | osf5*) # as osf3* with the addition of -msym flag
17685 if test "$GCC" = yes; then
17686 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17687 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'
17688 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17690 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17691 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'
17692 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~
17693 $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'
17695 # Both c and cxx compiler support -rpath directly
17696 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17698 hardcode_libdir_separator_GCJ=:
17702 no_undefined_flag_GCJ=' -z text'
17703 if test "$GCC" = yes; then
17705 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17706 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17707 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17710 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17711 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17712 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17714 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17715 hardcode_shlibpath_var_GCJ=no
17717 solaris2.[0-5] | solaris2.[0-5].*) ;;
17719 # The compiler driver will combine and reorder linker options,
17720 # but understands `-z linker_flag'. GCC discards it without `$wl',
17721 # but is careful enough not to reorder.
17722 # Supported since Solaris 2.6 (maybe 2.5.1?)
17723 if test "$GCC" = yes; then
17724 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17726 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17730 link_all_deplibs_GCJ=yes
17734 if test "x$host_vendor" = xsequent; then
17735 # Use $CC to link under sequent, because it throws in some extra .o
17736 # files that make .init and .fini sections work.
17737 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17739 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17741 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17742 hardcode_direct_GCJ=yes
17743 hardcode_minus_L_GCJ=yes
17744 hardcode_shlibpath_var_GCJ=no
17748 case $host_vendor in
17750 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17751 hardcode_direct_GCJ=yes # is this really true???
17754 ## LD is ld it makes a PLAMLIB
17755 ## CC just makes a GrossModule.
17756 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17757 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17758 hardcode_direct_GCJ=no
17761 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17762 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17765 runpath_var='LD_RUN_PATH'
17766 hardcode_shlibpath_var_GCJ=no
17770 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17771 hardcode_shlibpath_var_GCJ=no
17772 export_dynamic_flag_spec_GCJ='-Bexport'
17776 if test -d /usr/nec; then
17777 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17778 hardcode_shlibpath_var_GCJ=no
17779 runpath_var=LD_RUN_PATH
17780 hardcode_runpath_var=yes
17785 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17786 no_undefined_flag_GCJ='${wl}-z,text'
17787 archive_cmds_need_lc_GCJ=no
17788 hardcode_shlibpath_var_GCJ=no
17789 runpath_var='LD_RUN_PATH'
17791 if test "$GCC" = yes; then
17792 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17793 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17795 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17796 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17800 sysv5* | sco3.2v5* | sco5v6*)
17801 # Note: We can NOT use -z defs as we might desire, because we do not
17802 # link with -lc, and that would cause any symbols used from libc to
17803 # always be unresolved, which means just about no library would
17804 # ever link correctly. If we're not using GNU ld we use -z text
17805 # though, which does catch some bad symbols but isn't as heavy-handed
17807 no_undefined_flag_GCJ='${wl}-z,text'
17808 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17809 archive_cmds_need_lc_GCJ=no
17810 hardcode_shlibpath_var_GCJ=no
17811 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17812 hardcode_libdir_separator_GCJ=':'
17813 link_all_deplibs_GCJ=yes
17814 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17815 runpath_var='LD_RUN_PATH'
17817 if test "$GCC" = yes; then
17818 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17819 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17821 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17822 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17827 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17828 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17829 hardcode_shlibpath_var_GCJ=no
17838 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17839 $as_echo "$ld_shlibs_GCJ" >&6; }
17840 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17843 # Do we need to explicitly link libc?
17845 case "x$archive_cmds_need_lc_GCJ" in
17847 # Assume -lc should be added
17848 archive_cmds_need_lc_GCJ=yes
17850 if test "$enable_shared" = yes && test "$GCC" = yes; then
17851 case $archive_cmds_GCJ in
17853 # FIXME: we may have to deal with multi-command sequences.
17856 # Test whether the compiler implicitly links with -lc since on some
17857 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17858 # to ld, don't add -lc before -lgcc.
17859 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17860 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17862 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17865 (eval $ac_compile) 2>&5
17867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868 (exit $ac_status); } 2>conftest.err; then
17871 libobjs=conftest.$ac_objext
17873 wl=$lt_prog_compiler_wl_GCJ
17874 pic_flag=$lt_prog_compiler_pic_GCJ
17880 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17881 allow_undefined_flag_GCJ=
17882 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17883 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886 (exit $ac_status); }
17888 archive_cmds_need_lc_GCJ=no
17890 archive_cmds_need_lc_GCJ=yes
17892 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17894 cat conftest.err 1>&5
17897 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17898 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
17905 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17906 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17907 library_names_spec=
17908 libname_spec='lib$name'
17912 postuninstall_cmds=
17916 shlibpath_overrides_runpath=unknown
17918 dynamic_linker="$host_os ld.so"
17919 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17921 need_lib_prefix=unknown
17922 hardcode_into_libs=no
17924 # when you set need_version to no, make sure it does not cause -set_version
17925 # flags to be left without arguments
17926 need_version=unknown
17931 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17932 shlibpath_var=LIBPATH
17934 # AIX 3 has no versioning support, so we append a major version to the name.
17935 soname_spec='${libname}${release}${shared_ext}$major'
17942 hardcode_into_libs=yes
17943 if test "$host_cpu" = ia64; then
17944 # AIX 5 supports IA64
17945 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17946 shlibpath_var=LD_LIBRARY_PATH
17948 # With GCC up to 2.95.x, collect2 would create an import file
17949 # for dependence libraries. The import file would start with
17950 # the line `#! .'. This would cause the generated library to
17951 # depend on `.', always an invalid library. This was fixed in
17952 # development snapshots of GCC prior to 3.0.
17954 aix4 | aix4.[01] | aix4.[01].*)
17955 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17957 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17960 can_build_shared=no
17964 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17965 # soname into executable. Probably we can add versioning support to
17966 # collect2, so additional links can be useful in future.
17967 if test "$aix_use_runtimelinking" = yes; then
17968 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17969 # instead of lib<name>.a to let people know that these are not
17970 # typical AIX shared libraries.
17971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17973 # We preserve .a as extension for shared libraries through AIX4.2
17974 # and later when we are not doing run time linking.
17975 library_names_spec='${libname}${release}.a $libname.a'
17976 soname_spec='${libname}${release}${shared_ext}$major'
17978 shlibpath_var=LIBPATH
17983 library_names_spec='$libname.ixlibrary $libname.a'
17984 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17985 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'
17989 library_names_spec='${libname}${shared_ext}'
17990 dynamic_linker="$host_os ld.so"
17991 shlibpath_var=LIBRARY_PATH
17997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17998 soname_spec='${libname}${release}${shared_ext}$major'
17999 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18000 shlibpath_var=LD_LIBRARY_PATH
18001 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18002 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18003 # the default ld.so.conf also contains /usr/contrib/lib and
18004 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18005 # libtool to hard-code these into programs
18008 cygwin* | mingw* | pw32*)
18009 version_type=windows
18014 case $GCC,$host_os in
18015 yes,cygwin* | yes,mingw* | yes,pw32*)
18016 library_names_spec='$libname.dll.a'
18017 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18018 postinstall_cmds='base_file=`basename \${file}`~
18019 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18020 dldir=$destdir/`dirname \$dlpath`~
18021 test -d \$dldir || mkdir -p \$dldir~
18022 $install_prog $dir/$dlname \$dldir/$dlname~
18023 chmod a+x \$dldir/$dlname'
18024 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18025 dlpath=$dir/\$dldll~
18027 shlibpath_overrides_runpath=yes
18031 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18032 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18033 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18036 # MinGW DLLs use traditional 'lib' prefix
18037 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18038 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18039 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18040 # It is most probably a Windows format PATH printed by
18041 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18042 # path with ; separators, and with drive letters. We can handle the
18043 # drive letters (cygwin fileutils understands them), so leave them,
18044 # especially as we might pass files found there to a mingw objdump,
18045 # which wouldn't understand a cygwinified path. Ahh.
18046 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18048 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18052 # pw32 DLLs use 'pw' prefix rather than 'lib'
18053 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18059 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18062 dynamic_linker='Win32 ld.exe'
18063 # FIXME: first we should search . and the directory the executable is in
18067 darwin* | rhapsody*)
18068 dynamic_linker="$host_os dyld"
18069 version_type=darwin
18072 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18073 soname_spec='${libname}${release}${major}$shared_ext'
18074 shlibpath_overrides_runpath=yes
18075 shlibpath_var=DYLD_LIBRARY_PATH
18076 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18078 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18086 soname_spec='${libname}${release}${shared_ext}$major'
18087 shlibpath_var=LD_LIBRARY_PATH
18094 freebsd* | dragonfly*)
18095 # DragonFly does not have aout. When/if they implement a new
18096 # versioning mechanism, adjust this.
18097 if test -x /usr/bin/objformat; then
18098 objformat=`/usr/bin/objformat`
18101 freebsd[123]*) objformat=aout ;;
18102 *) objformat=elf ;;
18105 version_type=freebsd-$objformat
18106 case $version_type in
18108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18113 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18117 shlibpath_var=LD_LIBRARY_PATH
18120 shlibpath_overrides_runpath=yes
18122 freebsd3.[01]* | freebsdelf3.[01]*)
18123 shlibpath_overrides_runpath=yes
18124 hardcode_into_libs=yes
18126 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18127 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18128 shlibpath_overrides_runpath=no
18129 hardcode_into_libs=yes
18131 *) # from 4.6 on, and DragonFly
18132 shlibpath_overrides_runpath=yes
18133 hardcode_into_libs=yes
18142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18143 soname_spec='${libname}${release}${shared_ext}$major'
18144 shlibpath_var=LD_LIBRARY_PATH
18145 hardcode_into_libs=yes
18148 hpux9* | hpux10* | hpux11*)
18149 # Give a soname corresponding to the major version so that dld.sl refuses to
18150 # link against other versions.
18157 hardcode_into_libs=yes
18158 dynamic_linker="$host_os dld.so"
18159 shlibpath_var=LD_LIBRARY_PATH
18160 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18162 soname_spec='${libname}${release}${shared_ext}$major'
18163 if test "X$HPUX_IA64_MODE" = X32; then
18164 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18166 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18168 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18172 hardcode_into_libs=yes
18173 dynamic_linker="$host_os dld.sl"
18174 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18175 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18177 soname_spec='${libname}${release}${shared_ext}$major'
18178 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18179 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18183 dynamic_linker="$host_os dld.sl"
18184 shlibpath_var=SHLIB_PATH
18185 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18187 soname_spec='${libname}${release}${shared_ext}$major'
18190 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18191 postinstall_cmds='chmod 555 $lib'
18198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18199 soname_spec='${libname}${release}${shared_ext}$major'
18200 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18201 shlibpath_var=LD_LIBRARY_PATH
18202 shlibpath_overrides_runpath=no
18203 hardcode_into_libs=yes
18206 irix5* | irix6* | nonstopux*)
18208 nonstopux*) version_type=nonstopux ;;
18210 if test "$lt_cv_prog_gnu_ld" = yes; then
18218 soname_spec='${libname}${release}${shared_ext}$major'
18219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18221 irix5* | nonstopux*)
18222 libsuff= shlibsuff=
18225 case $LD in # libtool.m4 will add one of these switches to LD
18226 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18227 libsuff= shlibsuff= libmagic=32-bit;;
18228 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18229 libsuff=32 shlibsuff=N32 libmagic=N32;;
18230 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18231 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18232 *) libsuff= shlibsuff= libmagic=never-match;;
18236 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18237 shlibpath_overrides_runpath=no
18238 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18239 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18240 hardcode_into_libs=yes
18243 # No shared lib support for Linux oldld, aout, or coff.
18244 linux*oldld* | linux*aout* | linux*coff*)
18248 # This must be Linux ELF.
18249 linux* | k*bsd*-gnu)
18253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18254 soname_spec='${libname}${release}${shared_ext}$major'
18255 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18256 shlibpath_var=LD_LIBRARY_PATH
18257 shlibpath_overrides_runpath=no
18258 # This implies no fast_install, which is unacceptable.
18259 # Some rework will be needed to allow for fast_install
18260 # before this can be enabled.
18261 hardcode_into_libs=yes
18262 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18263 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18265 # Append ld.so.conf contents to the search path
18266 if test -f /etc/ld.so.conf; then
18267 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18268 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18271 # We used to test for /lib/ld.so.1 and disable shared libraries on
18272 # powerpc, because MkLinux only supported shared libraries with the
18273 # GNU dynamic linker. Since this was broken with cross compilers,
18274 # most powerpc-linux boxes support dynamic linking these days and
18275 # people can always --disable-shared, the test was removed, and we
18276 # assume the GNU/Linux dynamic linker is in use.
18277 dynamic_linker='GNU/Linux ld.so'
18284 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18286 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18287 dynamic_linker='NetBSD (a.out) ld.so'
18289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18290 soname_spec='${libname}${release}${shared_ext}$major'
18291 dynamic_linker='NetBSD ld.elf_so'
18293 shlibpath_var=LD_LIBRARY_PATH
18294 shlibpath_overrides_runpath=yes
18295 hardcode_into_libs=yes
18300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18301 shlibpath_var=LD_LIBRARY_PATH
18302 shlibpath_overrides_runpath=yes
18309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18310 soname_spec='${libname}${release}${shared_ext}$major'
18311 shlibpath_var=LD_LIBRARY_PATH
18312 shlibpath_overrides_runpath=yes
18317 sys_lib_dlsearch_path_spec="/usr/lib"
18319 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18321 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18322 *) need_version=no ;;
18324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18325 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18326 shlibpath_var=LD_LIBRARY_PATH
18327 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18329 openbsd2.[89] | openbsd2.[89].*)
18330 shlibpath_overrides_runpath=no
18333 shlibpath_overrides_runpath=yes
18337 shlibpath_overrides_runpath=yes
18342 libname_spec='$name'
18345 library_names_spec='$libname${shared_ext} $libname.a'
18346 dynamic_linker='OS/2 ld.exe'
18347 shlibpath_var=LIBPATH
18350 osf3* | osf4* | osf5*)
18354 soname_spec='${libname}${release}${shared_ext}$major'
18355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18356 shlibpath_var=LD_LIBRARY_PATH
18357 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18358 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18370 soname_spec='${libname}${release}${shared_ext}$major'
18371 shlibpath_var=LD_LIBRARY_PATH
18372 shlibpath_overrides_runpath=yes
18373 hardcode_into_libs=yes
18374 # ldd complains unless libraries are executable
18375 postinstall_cmds='chmod +x $lib'
18380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18381 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18382 shlibpath_var=LD_LIBRARY_PATH
18383 shlibpath_overrides_runpath=yes
18384 if test "$with_gnu_ld" = yes; then
18392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18393 soname_spec='${libname}${release}${shared_ext}$major'
18394 shlibpath_var=LD_LIBRARY_PATH
18395 case $host_vendor in
18397 shlibpath_overrides_runpath=no
18399 export_dynamic_flag_spec='${wl}-Blargedynsym'
18400 runpath_var=LD_RUN_PATH
18408 shlibpath_overrides_runpath=no
18409 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18415 if test -d /usr/nec ;then
18417 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18418 soname_spec='$libname${shared_ext}.$major'
18419 shlibpath_var=LD_LIBRARY_PATH
18423 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18424 version_type=freebsd-elf
18427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18428 soname_spec='${libname}${release}${shared_ext}$major'
18429 shlibpath_var=LD_LIBRARY_PATH
18430 hardcode_into_libs=yes
18431 if test "$with_gnu_ld" = yes; then
18432 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18433 shlibpath_overrides_runpath=no
18435 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18436 shlibpath_overrides_runpath=yes
18439 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18443 sys_lib_dlsearch_path_spec='/usr/lib'
18448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18449 soname_spec='${libname}${release}${shared_ext}$major'
18450 shlibpath_var=LD_LIBRARY_PATH
18457 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18458 $as_echo "$dynamic_linker" >&6; }
18459 test "$dynamic_linker" = no && can_build_shared=no
18461 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18462 $as_echo_n "(cached) " >&6
18464 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18467 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18468 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18469 $as_echo_n "(cached) " >&6
18471 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18474 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18476 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18477 if test "$GCC" = yes; then
18478 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18481 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18482 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18483 hardcode_action_GCJ=
18484 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18485 test -n "$runpath_var_GCJ" || \
18486 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18488 # We can hardcode non-existant directories.
18489 if test "$hardcode_direct_GCJ" != no &&
18490 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18491 # have to relink, otherwise we might link with an installed library
18492 # when we should be linking with a yet-to-be-installed one
18493 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18494 test "$hardcode_minus_L_GCJ" != no; then
18495 # Linking always hardcodes the temporary library directory.
18496 hardcode_action_GCJ=relink
18498 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18499 hardcode_action_GCJ=immediate
18502 # We cannot hardcode anything, or else we can only hardcode existing
18504 hardcode_action_GCJ=unsupported
18506 { $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18507 $as_echo "$hardcode_action_GCJ" >&6; }
18509 if test "$hardcode_action_GCJ" = relink; then
18510 # Fast installation is not supported
18511 enable_fast_install=no
18512 elif test "$shlibpath_overrides_runpath" = yes ||
18513 test "$enable_shared" = no; then
18514 # Fast installation is not necessary
18515 enable_fast_install=needless
18519 # The else clause should only fire when bootstrapping the
18520 # libtool distribution, otherwise you forgot to ship ltmain.sh
18521 # with your package, and you will get complaints that there are
18522 # no rules to generate ltmain.sh.
18523 if test -f "$ltmain"; then
18524 # See if we are running on zsh, and set the options which allow our commands through
18525 # without removal of \ escapes.
18526 if test -n "${ZSH_VERSION+set}" ; then
18527 setopt NO_GLOB_SUBST
18529 # Now quote all the things that may contain metacharacters while being
18530 # careful not to overquote the AC_SUBSTed values. We take copies of the
18531 # variables and quote the copies for generation of the libtool script.
18532 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18534 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18535 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18536 deplibs_check_method reload_flag reload_cmds need_locks \
18537 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18538 lt_cv_sys_global_symbol_to_c_name_address \
18539 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18540 old_postinstall_cmds old_postuninstall_cmds \
18544 lt_prog_compiler_wl_GCJ \
18545 lt_prog_compiler_pic_GCJ \
18546 lt_prog_compiler_static_GCJ \
18547 lt_prog_compiler_no_builtin_flag_GCJ \
18548 export_dynamic_flag_spec_GCJ \
18549 thread_safe_flag_spec_GCJ \
18550 whole_archive_flag_spec_GCJ \
18551 enable_shared_with_static_runtimes_GCJ \
18552 old_archive_cmds_GCJ \
18553 old_archive_from_new_cmds_GCJ \
18554 predep_objects_GCJ \
18555 postdep_objects_GCJ \
18558 compiler_lib_search_path_GCJ \
18559 compiler_lib_search_dirs_GCJ \
18561 archive_expsym_cmds_GCJ \
18562 postinstall_cmds_GCJ \
18563 postuninstall_cmds_GCJ \
18564 old_archive_from_expsyms_cmds_GCJ \
18565 allow_undefined_flag_GCJ \
18566 no_undefined_flag_GCJ \
18567 export_symbols_cmds_GCJ \
18568 hardcode_libdir_flag_spec_GCJ \
18569 hardcode_libdir_flag_spec_ld_GCJ \
18570 hardcode_libdir_separator_GCJ \
18571 hardcode_automatic_GCJ \
18573 module_expsym_cmds_GCJ \
18574 lt_cv_prog_compiler_c_o_GCJ \
18575 fix_srcfile_path_GCJ \
18576 exclude_expsyms_GCJ \
18577 include_expsyms_GCJ; do
18580 old_archive_cmds_GCJ | \
18581 old_archive_from_new_cmds_GCJ | \
18582 archive_cmds_GCJ | \
18583 archive_expsym_cmds_GCJ | \
18584 module_cmds_GCJ | \
18585 module_expsym_cmds_GCJ | \
18586 old_archive_from_expsyms_cmds_GCJ | \
18587 export_symbols_cmds_GCJ | \
18588 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18589 postinstall_cmds | postuninstall_cmds | \
18590 old_postinstall_cmds | old_postuninstall_cmds | \
18591 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18592 # Double-quote double-evaled strings.
18593 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18596 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18602 *'\$0 --fallback-echo"')
18603 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18609 cat <<__EOF__ >> "$cfgfile"
18610 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18612 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18614 # Shell to use when invoking shell scripts.
18617 # Whether or not to build shared libraries.
18618 build_libtool_libs=$enable_shared
18620 # Whether or not to build static libraries.
18621 build_old_libs=$enable_static
18623 # Whether or not to add -lc for building shared libraries.
18624 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18626 # Whether or not to disallow shared libs when runtime libs are static
18627 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18629 # Whether or not to optimize for fast installation.
18630 fast_install=$enable_fast_install
18633 host_alias=$host_alias
18637 # The build system.
18638 build_alias=$build_alias
18642 # An echo program that does not interpret backslashes.
18647 AR_FLAGS=$lt_AR_FLAGS
18652 # LTCC compiler flags.
18653 LTCFLAGS=$lt_LTCFLAGS
18655 # A language-specific compiler.
18656 CC=$lt_compiler_GCJ
18658 # Is the compiler the GNU C compiler?
18664 # The linker used to build libraries.
18667 # Whether we need hard or soft links.
18670 # A BSD-compatible nm program.
18673 # A symbol stripping program
18676 # Used to examine libraries when file_magic_cmd begins "file"
18677 MAGIC_CMD=$MAGIC_CMD
18679 # Used on cygwin: DLL creation program.
18682 # Used on cygwin: object dumper.
18685 # Used on cygwin: assembler.
18688 # The name of the directory that contains temporary libtool files.
18691 # How to create reloadable object files.
18692 reload_flag=$lt_reload_flag
18693 reload_cmds=$lt_reload_cmds
18695 # How to pass a linker flag through the compiler.
18696 wl=$lt_lt_prog_compiler_wl_GCJ
18698 # Object file suffix (normally "o").
18699 objext="$ac_objext"
18701 # Old archive suffix (normally "a").
18704 # Shared library suffix (normally ".so").
18705 shrext_cmds='$shrext_cmds'
18707 # Executable file suffix (normally "").
18710 # Additional compiler flags for building library objects.
18711 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18714 # What is the maximum length of a command?
18715 max_cmd_len=$lt_cv_sys_max_cmd_len
18717 # Does compiler simultaneously support -c and -o options?
18718 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18720 # Must we lock files when doing compilation?
18721 need_locks=$lt_need_locks
18723 # Do we need the lib prefix for modules?
18724 need_lib_prefix=$need_lib_prefix
18726 # Do we need a version for libraries?
18727 need_version=$need_version
18729 # Whether dlopen is supported.
18730 dlopen_support=$enable_dlopen
18732 # Whether dlopen of programs is supported.
18733 dlopen_self=$enable_dlopen_self
18735 # Whether dlopen of statically linked programs is supported.
18736 dlopen_self_static=$enable_dlopen_self_static
18738 # Compiler flag to prevent dynamic linking.
18739 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18741 # Compiler flag to turn off builtin functions.
18742 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18744 # Compiler flag to allow reflexive dlopens.
18745 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18747 # Compiler flag to generate shared objects directly from archives.
18748 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18750 # Compiler flag to generate thread-safe objects.
18751 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18753 # Library versioning type.
18754 version_type=$version_type
18756 # Format of library name prefix.
18757 libname_spec=$lt_libname_spec
18759 # List of archive names. First name is the real one, the rest are links.
18760 # The last name is the one that the linker finds with -lNAME.
18761 library_names_spec=$lt_library_names_spec
18763 # The coded name of the library, if different from the real name.
18764 soname_spec=$lt_soname_spec
18766 # Commands used to build and install an old-style archive.
18768 old_archive_cmds=$lt_old_archive_cmds_GCJ
18769 old_postinstall_cmds=$lt_old_postinstall_cmds
18770 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18772 # Create an old-style archive from a shared archive.
18773 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18775 # Create a temporary old-style archive to link instead of a shared archive.
18776 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18778 # Commands used to build and install a shared archive.
18779 archive_cmds=$lt_archive_cmds_GCJ
18780 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18781 postinstall_cmds=$lt_postinstall_cmds
18782 postuninstall_cmds=$lt_postuninstall_cmds
18784 # Commands used to build a loadable module (assumed same as above if empty)
18785 module_cmds=$lt_module_cmds_GCJ
18786 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18788 # Commands to strip libraries.
18789 old_striplib=$lt_old_striplib
18790 striplib=$lt_striplib
18792 # Dependencies to place before the objects being linked to create a
18794 predep_objects=$lt_predep_objects_GCJ
18796 # Dependencies to place after the objects being linked to create a
18798 postdep_objects=$lt_postdep_objects_GCJ
18800 # Dependencies to place before the objects being linked to create a
18802 predeps=$lt_predeps_GCJ
18804 # Dependencies to place after the objects being linked to create a
18806 postdeps=$lt_postdeps_GCJ
18808 # The directories searched by this compiler when creating a shared
18810 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
18812 # The library search path used internally by the compiler when linking
18813 # a shared library.
18814 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18816 # Method to check whether dependent libraries are shared objects.
18817 deplibs_check_method=$lt_deplibs_check_method
18819 # Command to use when deplibs_check_method == file_magic.
18820 file_magic_cmd=$lt_file_magic_cmd
18822 # Flag that allows shared libraries with undefined symbols to be built.
18823 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18825 # Flag that forces no undefined symbols.
18826 no_undefined_flag=$lt_no_undefined_flag_GCJ
18828 # Commands used to finish a libtool library installation in a directory.
18829 finish_cmds=$lt_finish_cmds
18831 # Same as above, but a single script fragment to be evaled but not shown.
18832 finish_eval=$lt_finish_eval
18834 # Take the output of nm and produce a listing of raw symbols and C names.
18835 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18837 # Transform the output of nm in a proper C declaration
18838 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18840 # Transform the output of nm in a C name address pair
18841 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18843 # This is the shared library runtime path variable.
18844 runpath_var=$runpath_var
18846 # This is the shared library path variable.
18847 shlibpath_var=$shlibpath_var
18849 # Is shlibpath searched before the hard-coded library search path?
18850 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18852 # How to hardcode a shared library path into an executable.
18853 hardcode_action=$hardcode_action_GCJ
18855 # Whether we should hardcode library paths into libraries.
18856 hardcode_into_libs=$hardcode_into_libs
18858 # Flag to hardcode \$libdir into a binary during linking.
18859 # This must work even if \$libdir does not exist.
18860 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18862 # If ld is used when linking, flag to hardcode \$libdir into
18863 # a binary during linking. This must work even if \$libdir does
18865 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18867 # Whether we need a single -rpath flag with a separated argument.
18868 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18870 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18871 # resulting binary.
18872 hardcode_direct=$hardcode_direct_GCJ
18874 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18875 # resulting binary.
18876 hardcode_minus_L=$hardcode_minus_L_GCJ
18878 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18879 # the resulting binary.
18880 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18882 # Set to yes if building a shared library automatically hardcodes DIR into the library
18883 # and all subsequent libraries and executables linked against it.
18884 hardcode_automatic=$hardcode_automatic_GCJ
18886 # Variables whose values should be saved in libtool wrapper scripts and
18887 # restored at relink time.
18888 variables_saved_for_relink="$variables_saved_for_relink"
18890 # Whether libtool must link a program against all its dependency libraries.
18891 link_all_deplibs=$link_all_deplibs_GCJ
18893 # Compile-time system search path for libraries
18894 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18896 # Run-time system search path for libraries
18897 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18899 # Fix the shell variable \$srcfile for the compiler.
18900 fix_srcfile_path=$lt_fix_srcfile_path
18902 # Set to yes if exported symbols are required.
18903 always_export_symbols=$always_export_symbols_GCJ
18905 # The commands to list exported symbols.
18906 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18908 # The commands to extract the exported symbol list from a shared archive.
18909 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18911 # Symbols that should not be listed in the preloaded symbols.
18912 exclude_expsyms=$lt_exclude_expsyms_GCJ
18914 # Symbols that must always be exported.
18915 include_expsyms=$lt_include_expsyms_GCJ
18917 # ### END LIBTOOL TAG CONFIG: $tagname
18923 # If there is no Makefile yet, we rely on a make rule to execute
18924 # `config.status --recheck' to rerun these tests and create the
18925 # libtool script then.
18926 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18927 if test -f "$ltmain_in"; then
18928 test -f Makefile && make "$ltmain"
18934 ac_cpp='$CPP $CPPFLAGS'
18935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18949 # Source file extension for RC test sources.
18952 # Object file extension for compiled RC test sources.
18956 # Code to be used in simple compile tests
18957 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18959 # Code to be used in simple link tests
18960 lt_simple_link_test_code="$lt_simple_compile_test_code"
18962 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18964 # If no C compiler was specified, use CC.
18967 # If no C compiler flags were specified, use CFLAGS.
18968 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18970 # Allow CC to be a program name with arguments.
18974 # save warnings/boilerplate of simple test code
18975 ac_outfile=conftest.$ac_objext
18976 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18977 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18978 _lt_compiler_boilerplate=`cat conftest.err`
18981 ac_outfile=conftest.$ac_objext
18982 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18983 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18984 _lt_linker_boilerplate=`cat conftest.err`
18988 # Allow CC to be a program name with arguments.
18993 for cc_temp in $compiler""; do
18995 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18996 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19001 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19003 lt_cv_prog_compiler_c_o_RC=yes
19005 # The else clause should only fire when bootstrapping the
19006 # libtool distribution, otherwise you forgot to ship ltmain.sh
19007 # with your package, and you will get complaints that there are
19008 # no rules to generate ltmain.sh.
19009 if test -f "$ltmain"; then
19010 # See if we are running on zsh, and set the options which allow our commands through
19011 # without removal of \ escapes.
19012 if test -n "${ZSH_VERSION+set}" ; then
19013 setopt NO_GLOB_SUBST
19015 # Now quote all the things that may contain metacharacters while being
19016 # careful not to overquote the AC_SUBSTed values. We take copies of the
19017 # variables and quote the copies for generation of the libtool script.
19018 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19020 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19021 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19022 deplibs_check_method reload_flag reload_cmds need_locks \
19023 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19024 lt_cv_sys_global_symbol_to_c_name_address \
19025 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19026 old_postinstall_cmds old_postuninstall_cmds \
19030 lt_prog_compiler_wl_RC \
19031 lt_prog_compiler_pic_RC \
19032 lt_prog_compiler_static_RC \
19033 lt_prog_compiler_no_builtin_flag_RC \
19034 export_dynamic_flag_spec_RC \
19035 thread_safe_flag_spec_RC \
19036 whole_archive_flag_spec_RC \
19037 enable_shared_with_static_runtimes_RC \
19038 old_archive_cmds_RC \
19039 old_archive_from_new_cmds_RC \
19040 predep_objects_RC \
19041 postdep_objects_RC \
19044 compiler_lib_search_path_RC \
19045 compiler_lib_search_dirs_RC \
19047 archive_expsym_cmds_RC \
19048 postinstall_cmds_RC \
19049 postuninstall_cmds_RC \
19050 old_archive_from_expsyms_cmds_RC \
19051 allow_undefined_flag_RC \
19052 no_undefined_flag_RC \
19053 export_symbols_cmds_RC \
19054 hardcode_libdir_flag_spec_RC \
19055 hardcode_libdir_flag_spec_ld_RC \
19056 hardcode_libdir_separator_RC \
19057 hardcode_automatic_RC \
19059 module_expsym_cmds_RC \
19060 lt_cv_prog_compiler_c_o_RC \
19061 fix_srcfile_path_RC \
19062 exclude_expsyms_RC \
19063 include_expsyms_RC; do
19066 old_archive_cmds_RC | \
19067 old_archive_from_new_cmds_RC | \
19068 archive_cmds_RC | \
19069 archive_expsym_cmds_RC | \
19071 module_expsym_cmds_RC | \
19072 old_archive_from_expsyms_cmds_RC | \
19073 export_symbols_cmds_RC | \
19074 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19075 postinstall_cmds | postuninstall_cmds | \
19076 old_postinstall_cmds | old_postuninstall_cmds | \
19077 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19078 # Double-quote double-evaled strings.
19079 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19082 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19088 *'\$0 --fallback-echo"')
19089 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19095 cat <<__EOF__ >> "$cfgfile"
19096 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19098 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19100 # Shell to use when invoking shell scripts.
19103 # Whether or not to build shared libraries.
19104 build_libtool_libs=$enable_shared
19106 # Whether or not to build static libraries.
19107 build_old_libs=$enable_static
19109 # Whether or not to add -lc for building shared libraries.
19110 build_libtool_need_lc=$archive_cmds_need_lc_RC
19112 # Whether or not to disallow shared libs when runtime libs are static
19113 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19115 # Whether or not to optimize for fast installation.
19116 fast_install=$enable_fast_install
19119 host_alias=$host_alias
19123 # The build system.
19124 build_alias=$build_alias
19128 # An echo program that does not interpret backslashes.
19133 AR_FLAGS=$lt_AR_FLAGS
19138 # LTCC compiler flags.
19139 LTCFLAGS=$lt_LTCFLAGS
19141 # A language-specific compiler.
19144 # Is the compiler the GNU C compiler?
19150 # The linker used to build libraries.
19153 # Whether we need hard or soft links.
19156 # A BSD-compatible nm program.
19159 # A symbol stripping program
19162 # Used to examine libraries when file_magic_cmd begins "file"
19163 MAGIC_CMD=$MAGIC_CMD
19165 # Used on cygwin: DLL creation program.
19168 # Used on cygwin: object dumper.
19171 # Used on cygwin: assembler.
19174 # The name of the directory that contains temporary libtool files.
19177 # How to create reloadable object files.
19178 reload_flag=$lt_reload_flag
19179 reload_cmds=$lt_reload_cmds
19181 # How to pass a linker flag through the compiler.
19182 wl=$lt_lt_prog_compiler_wl_RC
19184 # Object file suffix (normally "o").
19185 objext="$ac_objext"
19187 # Old archive suffix (normally "a").
19190 # Shared library suffix (normally ".so").
19191 shrext_cmds='$shrext_cmds'
19193 # Executable file suffix (normally "").
19196 # Additional compiler flags for building library objects.
19197 pic_flag=$lt_lt_prog_compiler_pic_RC
19200 # What is the maximum length of a command?
19201 max_cmd_len=$lt_cv_sys_max_cmd_len
19203 # Does compiler simultaneously support -c and -o options?
19204 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19206 # Must we lock files when doing compilation?
19207 need_locks=$lt_need_locks
19209 # Do we need the lib prefix for modules?
19210 need_lib_prefix=$need_lib_prefix
19212 # Do we need a version for libraries?
19213 need_version=$need_version
19215 # Whether dlopen is supported.
19216 dlopen_support=$enable_dlopen
19218 # Whether dlopen of programs is supported.
19219 dlopen_self=$enable_dlopen_self
19221 # Whether dlopen of statically linked programs is supported.
19222 dlopen_self_static=$enable_dlopen_self_static
19224 # Compiler flag to prevent dynamic linking.
19225 link_static_flag=$lt_lt_prog_compiler_static_RC
19227 # Compiler flag to turn off builtin functions.
19228 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19230 # Compiler flag to allow reflexive dlopens.
19231 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19233 # Compiler flag to generate shared objects directly from archives.
19234 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19236 # Compiler flag to generate thread-safe objects.
19237 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19239 # Library versioning type.
19240 version_type=$version_type
19242 # Format of library name prefix.
19243 libname_spec=$lt_libname_spec
19245 # List of archive names. First name is the real one, the rest are links.
19246 # The last name is the one that the linker finds with -lNAME.
19247 library_names_spec=$lt_library_names_spec
19249 # The coded name of the library, if different from the real name.
19250 soname_spec=$lt_soname_spec
19252 # Commands used to build and install an old-style archive.
19254 old_archive_cmds=$lt_old_archive_cmds_RC
19255 old_postinstall_cmds=$lt_old_postinstall_cmds
19256 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19258 # Create an old-style archive from a shared archive.
19259 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19261 # Create a temporary old-style archive to link instead of a shared archive.
19262 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19264 # Commands used to build and install a shared archive.
19265 archive_cmds=$lt_archive_cmds_RC
19266 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19267 postinstall_cmds=$lt_postinstall_cmds
19268 postuninstall_cmds=$lt_postuninstall_cmds
19270 # Commands used to build a loadable module (assumed same as above if empty)
19271 module_cmds=$lt_module_cmds_RC
19272 module_expsym_cmds=$lt_module_expsym_cmds_RC
19274 # Commands to strip libraries.
19275 old_striplib=$lt_old_striplib
19276 striplib=$lt_striplib
19278 # Dependencies to place before the objects being linked to create a
19280 predep_objects=$lt_predep_objects_RC
19282 # Dependencies to place after the objects being linked to create a
19284 postdep_objects=$lt_postdep_objects_RC
19286 # Dependencies to place before the objects being linked to create a
19288 predeps=$lt_predeps_RC
19290 # Dependencies to place after the objects being linked to create a
19292 postdeps=$lt_postdeps_RC
19294 # The directories searched by this compiler when creating a shared
19296 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19298 # The library search path used internally by the compiler when linking
19299 # a shared library.
19300 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19302 # Method to check whether dependent libraries are shared objects.
19303 deplibs_check_method=$lt_deplibs_check_method
19305 # Command to use when deplibs_check_method == file_magic.
19306 file_magic_cmd=$lt_file_magic_cmd
19308 # Flag that allows shared libraries with undefined symbols to be built.
19309 allow_undefined_flag=$lt_allow_undefined_flag_RC
19311 # Flag that forces no undefined symbols.
19312 no_undefined_flag=$lt_no_undefined_flag_RC
19314 # Commands used to finish a libtool library installation in a directory.
19315 finish_cmds=$lt_finish_cmds
19317 # Same as above, but a single script fragment to be evaled but not shown.
19318 finish_eval=$lt_finish_eval
19320 # Take the output of nm and produce a listing of raw symbols and C names.
19321 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19323 # Transform the output of nm in a proper C declaration
19324 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19326 # Transform the output of nm in a C name address pair
19327 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19329 # This is the shared library runtime path variable.
19330 runpath_var=$runpath_var
19332 # This is the shared library path variable.
19333 shlibpath_var=$shlibpath_var
19335 # Is shlibpath searched before the hard-coded library search path?
19336 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19338 # How to hardcode a shared library path into an executable.
19339 hardcode_action=$hardcode_action_RC
19341 # Whether we should hardcode library paths into libraries.
19342 hardcode_into_libs=$hardcode_into_libs
19344 # Flag to hardcode \$libdir into a binary during linking.
19345 # This must work even if \$libdir does not exist.
19346 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19348 # If ld is used when linking, flag to hardcode \$libdir into
19349 # a binary during linking. This must work even if \$libdir does
19351 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19353 # Whether we need a single -rpath flag with a separated argument.
19354 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19356 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19357 # resulting binary.
19358 hardcode_direct=$hardcode_direct_RC
19360 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19361 # resulting binary.
19362 hardcode_minus_L=$hardcode_minus_L_RC
19364 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19365 # the resulting binary.
19366 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19368 # Set to yes if building a shared library automatically hardcodes DIR into the library
19369 # and all subsequent libraries and executables linked against it.
19370 hardcode_automatic=$hardcode_automatic_RC
19372 # Variables whose values should be saved in libtool wrapper scripts and
19373 # restored at relink time.
19374 variables_saved_for_relink="$variables_saved_for_relink"
19376 # Whether libtool must link a program against all its dependency libraries.
19377 link_all_deplibs=$link_all_deplibs_RC
19379 # Compile-time system search path for libraries
19380 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19382 # Run-time system search path for libraries
19383 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19385 # Fix the shell variable \$srcfile for the compiler.
19386 fix_srcfile_path=$lt_fix_srcfile_path
19388 # Set to yes if exported symbols are required.
19389 always_export_symbols=$always_export_symbols_RC
19391 # The commands to list exported symbols.
19392 export_symbols_cmds=$lt_export_symbols_cmds_RC
19394 # The commands to extract the exported symbol list from a shared archive.
19395 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19397 # Symbols that should not be listed in the preloaded symbols.
19398 exclude_expsyms=$lt_exclude_expsyms_RC
19400 # Symbols that must always be exported.
19401 include_expsyms=$lt_include_expsyms_RC
19403 # ### END LIBTOOL TAG CONFIG: $tagname
19409 # If there is no Makefile yet, we rely on a make rule to execute
19410 # `config.status --recheck' to rerun these tests and create the
19411 # libtool script then.
19412 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19413 if test -f "$ltmain_in"; then
19414 test -f Makefile && make "$ltmain"
19420 ac_cpp='$CPP $CPPFLAGS'
19421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19430 { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19431 $as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19432 { (exit 1); exit 1; }; }
19436 # Append the new tag name to the list of available tags.
19437 if test -n "$tagname" ; then
19438 available_tags="$available_tags $tagname"
19444 # Now substitute the updated list of available tags.
19445 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19446 mv "${ofile}T" "$ofile"
19450 { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19451 $as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19452 { (exit 1); exit 1; }; }
19458 # This can be used to rebuild libtool when needed
19459 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19461 # Always use our own libtool.
19462 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19464 # Prevent multiple expansion
19493 ac_cpp='$CPP $CPPFLAGS'
19494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19497 if test -n "$ac_tool_prefix"; then
19498 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19499 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19500 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19501 $as_echo_n "checking for $ac_word... " >&6; }
19502 if test "${ac_cv_prog_CC+set}" = set; then
19503 $as_echo_n "(cached) " >&6
19505 if test -n "$CC"; then
19506 ac_cv_prog_CC="$CC" # Let the user override the test.
19508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19509 for as_dir in $PATH
19512 test -z "$as_dir" && as_dir=.
19513 for ac_exec_ext in '' $ac_executable_extensions; do
19514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19515 ac_cv_prog_CC="${ac_tool_prefix}gcc"
19516 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19526 if test -n "$CC"; then
19527 { $as_echo "$as_me:$LINENO: result: $CC" >&5
19528 $as_echo "$CC" >&6; }
19530 { $as_echo "$as_me:$LINENO: result: no" >&5
19531 $as_echo "no" >&6; }
19536 if test -z "$ac_cv_prog_CC"; then
19538 # Extract the first word of "gcc", so it can be a program name with args.
19539 set dummy gcc; ac_word=$2
19540 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19541 $as_echo_n "checking for $ac_word... " >&6; }
19542 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19543 $as_echo_n "(cached) " >&6
19545 if test -n "$ac_ct_CC"; then
19546 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19549 for as_dir in $PATH
19552 test -z "$as_dir" && as_dir=.
19553 for ac_exec_ext in '' $ac_executable_extensions; do
19554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19555 ac_cv_prog_ac_ct_CC="gcc"
19556 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19565 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19566 if test -n "$ac_ct_CC"; then
19567 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19568 $as_echo "$ac_ct_CC" >&6; }
19570 { $as_echo "$as_me:$LINENO: result: no" >&5
19571 $as_echo "no" >&6; }
19574 if test "x$ac_ct_CC" = x; then
19577 case $cross_compiling:$ac_tool_warned in
19579 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
19580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19581 ac_tool_warned=yes ;;
19586 CC="$ac_cv_prog_CC"
19589 if test -z "$CC"; then
19590 if test -n "$ac_tool_prefix"; then
19591 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19592 set dummy ${ac_tool_prefix}cc; ac_word=$2
19593 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19594 $as_echo_n "checking for $ac_word... " >&6; }
19595 if test "${ac_cv_prog_CC+set}" = set; then
19596 $as_echo_n "(cached) " >&6
19598 if test -n "$CC"; then
19599 ac_cv_prog_CC="$CC" # Let the user override the test.
19601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19602 for as_dir in $PATH
19605 test -z "$as_dir" && as_dir=.
19606 for ac_exec_ext in '' $ac_executable_extensions; do
19607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19608 ac_cv_prog_CC="${ac_tool_prefix}cc"
19609 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19619 if test -n "$CC"; then
19620 { $as_echo "$as_me:$LINENO: result: $CC" >&5
19621 $as_echo "$CC" >&6; }
19623 { $as_echo "$as_me:$LINENO: result: no" >&5
19624 $as_echo "no" >&6; }
19630 if test -z "$CC"; then
19631 # Extract the first word of "cc", so it can be a program name with args.
19632 set dummy cc; ac_word=$2
19633 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19634 $as_echo_n "checking for $ac_word... " >&6; }
19635 if test "${ac_cv_prog_CC+set}" = set; then
19636 $as_echo_n "(cached) " >&6
19638 if test -n "$CC"; then
19639 ac_cv_prog_CC="$CC" # Let the user override the test.
19641 ac_prog_rejected=no
19642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19643 for as_dir in $PATH
19646 test -z "$as_dir" && as_dir=.
19647 for ac_exec_ext in '' $ac_executable_extensions; do
19648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19649 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19650 ac_prog_rejected=yes
19654 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19661 if test $ac_prog_rejected = yes; then
19662 # We found a bogon in the path, so make sure we never use it.
19663 set dummy $ac_cv_prog_CC
19665 if test $# != 0; then
19666 # We chose a different compiler from the bogus one.
19667 # However, it has the same basename, so the bogon will be chosen
19668 # first if we set CC to just the basename; use the full file name.
19670 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19676 if test -n "$CC"; then
19677 { $as_echo "$as_me:$LINENO: result: $CC" >&5
19678 $as_echo "$CC" >&6; }
19680 { $as_echo "$as_me:$LINENO: result: no" >&5
19681 $as_echo "no" >&6; }
19686 if test -z "$CC"; then
19687 if test -n "$ac_tool_prefix"; then
19688 for ac_prog in cl.exe
19690 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19691 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19692 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19693 $as_echo_n "checking for $ac_word... " >&6; }
19694 if test "${ac_cv_prog_CC+set}" = set; then
19695 $as_echo_n "(cached) " >&6
19697 if test -n "$CC"; then
19698 ac_cv_prog_CC="$CC" # Let the user override the test.
19700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19701 for as_dir in $PATH
19704 test -z "$as_dir" && as_dir=.
19705 for ac_exec_ext in '' $ac_executable_extensions; do
19706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19707 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19708 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19718 if test -n "$CC"; then
19719 { $as_echo "$as_me:$LINENO: result: $CC" >&5
19720 $as_echo "$CC" >&6; }
19722 { $as_echo "$as_me:$LINENO: result: no" >&5
19723 $as_echo "no" >&6; }
19727 test -n "$CC" && break
19730 if test -z "$CC"; then
19732 for ac_prog in cl.exe
19734 # Extract the first word of "$ac_prog", so it can be a program name with args.
19735 set dummy $ac_prog; ac_word=$2
19736 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19737 $as_echo_n "checking for $ac_word... " >&6; }
19738 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19739 $as_echo_n "(cached) " >&6
19741 if test -n "$ac_ct_CC"; then
19742 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19745 for as_dir in $PATH
19748 test -z "$as_dir" && as_dir=.
19749 for ac_exec_ext in '' $ac_executable_extensions; do
19750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19751 ac_cv_prog_ac_ct_CC="$ac_prog"
19752 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19761 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19762 if test -n "$ac_ct_CC"; then
19763 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19764 $as_echo "$ac_ct_CC" >&6; }
19766 { $as_echo "$as_me:$LINENO: result: no" >&5
19767 $as_echo "no" >&6; }
19771 test -n "$ac_ct_CC" && break
19774 if test "x$ac_ct_CC" = x; then
19777 case $cross_compiling:$ac_tool_warned in
19779 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
19780 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19781 ac_tool_warned=yes ;;
19790 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19791 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19792 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19793 See \`config.log' for more details." >&5
19794 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
19795 See \`config.log' for more details." >&2;}
19796 { (exit 1); exit 1; }; }; }
19798 # Provide some information about the compiler.
19799 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
19802 { (ac_try="$ac_compiler --version >&5"
19803 case "(($ac_try" in
19804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19805 *) ac_try_echo=$ac_try;;
19807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19808 $as_echo "$ac_try_echo") >&5
19809 (eval "$ac_compiler --version >&5") 2>&5
19811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812 (exit $ac_status); }
19813 { (ac_try="$ac_compiler -v >&5"
19814 case "(($ac_try" in
19815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19816 *) ac_try_echo=$ac_try;;
19818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19819 $as_echo "$ac_try_echo") >&5
19820 (eval "$ac_compiler -v >&5") 2>&5
19822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823 (exit $ac_status); }
19824 { (ac_try="$ac_compiler -V >&5"
19825 case "(($ac_try" in
19826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19827 *) ac_try_echo=$ac_try;;
19829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19830 $as_echo "$ac_try_echo") >&5
19831 (eval "$ac_compiler -V >&5") 2>&5
19833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19834 (exit $ac_status); }
19836 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19837 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
19838 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19839 $as_echo_n "(cached) " >&6
19841 cat >conftest.$ac_ext <<_ACEOF
19844 cat confdefs.h >>conftest.$ac_ext
19845 cat >>conftest.$ac_ext <<_ACEOF
19846 /* end confdefs.h. */
19859 rm -f conftest.$ac_objext
19860 if { (ac_try="$ac_compile"
19861 case "(($ac_try" in
19862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19863 *) ac_try_echo=$ac_try;;
19865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19866 $as_echo "$ac_try_echo") >&5
19867 (eval "$ac_compile") 2>conftest.er1
19869 grep -v '^ *+' conftest.er1 >conftest.err
19871 cat conftest.err >&5
19872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873 (exit $ac_status); } && {
19874 test -z "$ac_c_werror_flag" ||
19875 test ! -s conftest.err
19876 } && test -s conftest.$ac_objext; then
19877 ac_compiler_gnu=yes
19879 $as_echo "$as_me: failed program was:" >&5
19880 sed 's/^/| /' conftest.$ac_ext >&5
19885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19886 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19889 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19890 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
19891 if test $ac_compiler_gnu = yes; then
19896 ac_test_CFLAGS=${CFLAGS+set}
19897 ac_save_CFLAGS=$CFLAGS
19898 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19899 $as_echo_n "checking whether $CC accepts -g... " >&6; }
19900 if test "${ac_cv_prog_cc_g+set}" = set; then
19901 $as_echo_n "(cached) " >&6
19903 ac_save_c_werror_flag=$ac_c_werror_flag
19904 ac_c_werror_flag=yes
19907 cat >conftest.$ac_ext <<_ACEOF
19910 cat confdefs.h >>conftest.$ac_ext
19911 cat >>conftest.$ac_ext <<_ACEOF
19912 /* end confdefs.h. */
19922 rm -f conftest.$ac_objext
19923 if { (ac_try="$ac_compile"
19924 case "(($ac_try" in
19925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19926 *) ac_try_echo=$ac_try;;
19928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19929 $as_echo "$ac_try_echo") >&5
19930 (eval "$ac_compile") 2>conftest.er1
19932 grep -v '^ *+' conftest.er1 >conftest.err
19934 cat conftest.err >&5
19935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19936 (exit $ac_status); } && {
19937 test -z "$ac_c_werror_flag" ||
19938 test ! -s conftest.err
19939 } && test -s conftest.$ac_objext; then
19940 ac_cv_prog_cc_g=yes
19942 $as_echo "$as_me: failed program was:" >&5
19943 sed 's/^/| /' conftest.$ac_ext >&5
19946 cat >conftest.$ac_ext <<_ACEOF
19949 cat confdefs.h >>conftest.$ac_ext
19950 cat >>conftest.$ac_ext <<_ACEOF
19951 /* end confdefs.h. */
19961 rm -f conftest.$ac_objext
19962 if { (ac_try="$ac_compile"
19963 case "(($ac_try" in
19964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19965 *) ac_try_echo=$ac_try;;
19967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19968 $as_echo "$ac_try_echo") >&5
19969 (eval "$ac_compile") 2>conftest.er1
19971 grep -v '^ *+' conftest.er1 >conftest.err
19973 cat conftest.err >&5
19974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19975 (exit $ac_status); } && {
19976 test -z "$ac_c_werror_flag" ||
19977 test ! -s conftest.err
19978 } && test -s conftest.$ac_objext; then
19981 $as_echo "$as_me: failed program was:" >&5
19982 sed 's/^/| /' conftest.$ac_ext >&5
19984 ac_c_werror_flag=$ac_save_c_werror_flag
19986 cat >conftest.$ac_ext <<_ACEOF
19989 cat confdefs.h >>conftest.$ac_ext
19990 cat >>conftest.$ac_ext <<_ACEOF
19991 /* end confdefs.h. */
20001 rm -f conftest.$ac_objext
20002 if { (ac_try="$ac_compile"
20003 case "(($ac_try" in
20004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20005 *) ac_try_echo=$ac_try;;
20007 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20008 $as_echo "$ac_try_echo") >&5
20009 (eval "$ac_compile") 2>conftest.er1
20011 grep -v '^ *+' conftest.er1 >conftest.err
20013 cat conftest.err >&5
20014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015 (exit $ac_status); } && {
20016 test -z "$ac_c_werror_flag" ||
20017 test ! -s conftest.err
20018 } && test -s conftest.$ac_objext; then
20019 ac_cv_prog_cc_g=yes
20021 $as_echo "$as_me: failed program was:" >&5
20022 sed 's/^/| /' conftest.$ac_ext >&5
20027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20034 ac_c_werror_flag=$ac_save_c_werror_flag
20036 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20037 $as_echo "$ac_cv_prog_cc_g" >&6; }
20038 if test "$ac_test_CFLAGS" = set; then
20039 CFLAGS=$ac_save_CFLAGS
20040 elif test $ac_cv_prog_cc_g = yes; then
20041 if test "$GCC" = yes; then
20047 if test "$GCC" = yes; then
20053 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20054 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
20055 if test "${ac_cv_prog_cc_c89+set}" = set; then
20056 $as_echo_n "(cached) " >&6
20058 ac_cv_prog_cc_c89=no
20060 cat >conftest.$ac_ext <<_ACEOF
20063 cat confdefs.h >>conftest.$ac_ext
20064 cat >>conftest.$ac_ext <<_ACEOF
20065 /* end confdefs.h. */
20066 #include <stdarg.h>
20068 #include <sys/types.h>
20069 #include <sys/stat.h>
20070 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
20071 struct buf { int x; };
20072 FILE * (*rcsopen) (struct buf *, struct stat *, int);
20073 static char *e (p, i)
20079 static char *f (char * (*g) (char **, int), char **p, ...)
20084 s = g (p, va_arg (v,int));
20089 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
20090 function prototypes and stuff, but not '\xHH' hex character constants.
20091 These don't provoke an error unfortunately, instead are silently treated
20092 as 'x'. The following induces an error, until -std is added to get
20093 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
20094 array size at least. It's necessary to write '\x00'==0 to get something
20095 that's true only with -std. */
20096 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20098 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20099 inside strings and character constants. */
20101 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20103 int test (int i, double x);
20104 struct s1 {int (*f) (int a);};
20105 struct s2 {int (*f) (double a);};
20106 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20112 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
20117 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20118 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20120 CC="$ac_save_CC $ac_arg"
20121 rm -f conftest.$ac_objext
20122 if { (ac_try="$ac_compile"
20123 case "(($ac_try" in
20124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20125 *) ac_try_echo=$ac_try;;
20127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20128 $as_echo "$ac_try_echo") >&5
20129 (eval "$ac_compile") 2>conftest.er1
20131 grep -v '^ *+' conftest.er1 >conftest.err
20133 cat conftest.err >&5
20134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20135 (exit $ac_status); } && {
20136 test -z "$ac_c_werror_flag" ||
20137 test ! -s conftest.err
20138 } && test -s conftest.$ac_objext; then
20139 ac_cv_prog_cc_c89=$ac_arg
20141 $as_echo "$as_me: failed program was:" >&5
20142 sed 's/^/| /' conftest.$ac_ext >&5
20147 rm -f core conftest.err conftest.$ac_objext
20148 test "x$ac_cv_prog_cc_c89" != "xno" && break
20150 rm -f conftest.$ac_ext
20155 case "x$ac_cv_prog_cc_c89" in
20157 { $as_echo "$as_me:$LINENO: result: none needed" >&5
20158 $as_echo "none needed" >&6; } ;;
20160 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
20161 $as_echo "unsupported" >&6; } ;;
20163 CC="$CC $ac_cv_prog_cc_c89"
20164 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20165 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
20170 ac_cpp='$CPP $CPPFLAGS'
20171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20175 # Find a good install program. We prefer a C program (faster),
20176 # so one script is as good as another. But avoid the broken or
20177 # incompatible versions:
20178 # SysV /etc/install, /usr/sbin/install
20179 # SunOS /usr/etc/install
20180 # IRIX /sbin/install
20182 # AmigaOS /C/install, which installs bootblocks on floppy discs
20183 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
20184 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
20185 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
20186 # OS/2's system install, which has a completely different semantic
20187 # ./install, which can be erroneously created by make from ./install.sh.
20188 # Reject install programs that cannot install multiple files.
20189 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
20190 $as_echo_n "checking for a BSD-compatible install... " >&6; }
20191 if test -z "$INSTALL"; then
20192 if test "${ac_cv_path_install+set}" = set; then
20193 $as_echo_n "(cached) " >&6
20195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20196 for as_dir in $PATH
20199 test -z "$as_dir" && as_dir=.
20200 # Account for people who put trailing slashes in PATH elements.
20202 ./ | .// | /cC/* | \
20203 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
20204 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
20207 # OSF1 and SCO ODT 3.0 have their own names for install.
20208 # Don't use installbsd from OSF since it installs stuff as root
20210 for ac_prog in ginstall scoinst install; do
20211 for ac_exec_ext in '' $ac_executable_extensions; do
20212 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
20213 if test $ac_prog = install &&
20214 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20215 # AIX install. It has an incompatible calling convention.
20217 elif test $ac_prog = install &&
20218 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20219 # program-specific install script used by HP pwplus--don't use.
20222 rm -rf conftest.one conftest.two conftest.dir
20223 echo one > conftest.one
20224 echo two > conftest.two
20226 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
20227 test -s conftest.one && test -s conftest.two &&
20228 test -s conftest.dir/conftest.one &&
20229 test -s conftest.dir/conftest.two
20231 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
20244 rm -rf conftest.one conftest.two conftest.dir
20247 if test "${ac_cv_path_install+set}" = set; then
20248 INSTALL=$ac_cv_path_install
20250 # As a last resort, use the slow shell script. Don't cache a
20251 # value for INSTALL within a source directory, because that will
20252 # break other packages using the cache if that directory is
20253 # removed, or if the value is a relative name.
20254 INSTALL=$ac_install_sh
20257 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
20258 $as_echo "$INSTALL" >&6; }
20260 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
20261 # It thinks the first close brace ends the variable substitution.
20262 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
20264 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
20266 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
20269 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20270 $as_echo_n "checking for ANSI C header files... " >&6; }
20271 if test "${ac_cv_header_stdc+set}" = set; then
20272 $as_echo_n "(cached) " >&6
20274 cat >conftest.$ac_ext <<_ACEOF
20277 cat confdefs.h >>conftest.$ac_ext
20278 cat >>conftest.$ac_ext <<_ACEOF
20279 /* end confdefs.h. */
20280 #include <stdlib.h>
20281 #include <stdarg.h>
20282 #include <string.h>
20293 rm -f conftest.$ac_objext
20294 if { (ac_try="$ac_compile"
20295 case "(($ac_try" in
20296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20297 *) ac_try_echo=$ac_try;;
20299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20300 $as_echo "$ac_try_echo") >&5
20301 (eval "$ac_compile") 2>conftest.er1
20303 grep -v '^ *+' conftest.er1 >conftest.err
20305 cat conftest.err >&5
20306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307 (exit $ac_status); } && {
20308 test -z "$ac_c_werror_flag" ||
20309 test ! -s conftest.err
20310 } && test -s conftest.$ac_objext; then
20311 ac_cv_header_stdc=yes
20313 $as_echo "$as_me: failed program was:" >&5
20314 sed 's/^/| /' conftest.$ac_ext >&5
20316 ac_cv_header_stdc=no
20319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20321 if test $ac_cv_header_stdc = yes; then
20322 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20323 cat >conftest.$ac_ext <<_ACEOF
20326 cat confdefs.h >>conftest.$ac_ext
20327 cat >>conftest.$ac_ext <<_ACEOF
20328 /* end confdefs.h. */
20329 #include <string.h>
20332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20333 $EGREP "memchr" >/dev/null 2>&1; then
20336 ac_cv_header_stdc=no
20342 if test $ac_cv_header_stdc = yes; then
20343 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20344 cat >conftest.$ac_ext <<_ACEOF
20347 cat confdefs.h >>conftest.$ac_ext
20348 cat >>conftest.$ac_ext <<_ACEOF
20349 /* end confdefs.h. */
20350 #include <stdlib.h>
20353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20354 $EGREP "free" >/dev/null 2>&1; then
20357 ac_cv_header_stdc=no
20363 if test $ac_cv_header_stdc = yes; then
20364 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20365 if test "$cross_compiling" = yes; then
20368 cat >conftest.$ac_ext <<_ACEOF
20371 cat confdefs.h >>conftest.$ac_ext
20372 cat >>conftest.$ac_ext <<_ACEOF
20373 /* end confdefs.h. */
20375 #include <stdlib.h>
20376 #if ((' ' & 0x0FF) == 0x020)
20377 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20378 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20380 # define ISLOWER(c) \
20381 (('a' <= (c) && (c) <= 'i') \
20382 || ('j' <= (c) && (c) <= 'r') \
20383 || ('s' <= (c) && (c) <= 'z'))
20384 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20387 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20392 for (i = 0; i < 256; i++)
20393 if (XOR (islower (i), ISLOWER (i))
20394 || toupper (i) != TOUPPER (i))
20399 rm -f conftest$ac_exeext
20400 if { (ac_try="$ac_link"
20401 case "(($ac_try" in
20402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20403 *) ac_try_echo=$ac_try;;
20405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20406 $as_echo "$ac_try_echo") >&5
20407 (eval "$ac_link") 2>&5
20409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20411 { (case "(($ac_try" in
20412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20413 *) ac_try_echo=$ac_try;;
20415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20416 $as_echo "$ac_try_echo") >&5
20417 (eval "$ac_try") 2>&5
20419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20420 (exit $ac_status); }; }; then
20423 $as_echo "$as_me: program exited with status $ac_status" >&5
20424 $as_echo "$as_me: failed program was:" >&5
20425 sed 's/^/| /' conftest.$ac_ext >&5
20427 ( exit $ac_status )
20428 ac_cv_header_stdc=no
20430 rm -rf conftest.dSYM
20431 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20437 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20438 $as_echo "$ac_cv_header_stdc" >&6; }
20439 if test $ac_cv_header_stdc = yes; then
20441 cat >>confdefs.h <<\_ACEOF
20442 #define STDC_HEADERS 1
20448 if test "$cross_compiling" = "no"; then
20450 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20451 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
20452 if test "${ac_cv_c_bigendian+set}" = set; then
20453 $as_echo_n "(cached) " >&6
20455 ac_cv_c_bigendian=unknown
20456 # See if we're dealing with a universal compiler.
20457 cat >conftest.$ac_ext <<_ACEOF
20460 cat confdefs.h >>conftest.$ac_ext
20461 cat >>conftest.$ac_ext <<_ACEOF
20462 /* end confdefs.h. */
20463 #ifndef __APPLE_CC__
20464 not a universal capable compiler
20469 rm -f conftest.$ac_objext
20470 if { (ac_try="$ac_compile"
20471 case "(($ac_try" in
20472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20473 *) ac_try_echo=$ac_try;;
20475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20476 $as_echo "$ac_try_echo") >&5
20477 (eval "$ac_compile") 2>conftest.er1
20479 grep -v '^ *+' conftest.er1 >conftest.err
20481 cat conftest.err >&5
20482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20483 (exit $ac_status); } && {
20484 test -z "$ac_c_werror_flag" ||
20485 test ! -s conftest.err
20486 } && test -s conftest.$ac_objext; then
20488 # Check for potential -arch flags. It is not universal unless
20489 # there are some -arch flags. Note that *ppc* also matches
20490 # ppc64. This check is also rather less than ideal.
20491 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
20492 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
20495 $as_echo "$as_me: failed program was:" >&5
20496 sed 's/^/| /' conftest.$ac_ext >&5
20501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20502 if test $ac_cv_c_bigendian = unknown; then
20503 # See if sys/param.h defines the BYTE_ORDER macro.
20504 cat >conftest.$ac_ext <<_ACEOF
20507 cat confdefs.h >>conftest.$ac_ext
20508 cat >>conftest.$ac_ext <<_ACEOF
20509 /* end confdefs.h. */
20510 #include <sys/types.h>
20511 #include <sys/param.h>
20516 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
20517 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
20519 bogus endian macros
20526 rm -f conftest.$ac_objext
20527 if { (ac_try="$ac_compile"
20528 case "(($ac_try" in
20529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20530 *) ac_try_echo=$ac_try;;
20532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20533 $as_echo "$ac_try_echo") >&5
20534 (eval "$ac_compile") 2>conftest.er1
20536 grep -v '^ *+' conftest.er1 >conftest.err
20538 cat conftest.err >&5
20539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20540 (exit $ac_status); } && {
20541 test -z "$ac_c_werror_flag" ||
20542 test ! -s conftest.err
20543 } && test -s conftest.$ac_objext; then
20544 # It does; now see whether it defined to BIG_ENDIAN or not.
20545 cat >conftest.$ac_ext <<_ACEOF
20548 cat confdefs.h >>conftest.$ac_ext
20549 cat >>conftest.$ac_ext <<_ACEOF
20550 /* end confdefs.h. */
20551 #include <sys/types.h>
20552 #include <sys/param.h>
20557 #if BYTE_ORDER != BIG_ENDIAN
20565 rm -f conftest.$ac_objext
20566 if { (ac_try="$ac_compile"
20567 case "(($ac_try" in
20568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20569 *) ac_try_echo=$ac_try;;
20571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20572 $as_echo "$ac_try_echo") >&5
20573 (eval "$ac_compile") 2>conftest.er1
20575 grep -v '^ *+' conftest.er1 >conftest.err
20577 cat conftest.err >&5
20578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20579 (exit $ac_status); } && {
20580 test -z "$ac_c_werror_flag" ||
20581 test ! -s conftest.err
20582 } && test -s conftest.$ac_objext; then
20583 ac_cv_c_bigendian=yes
20585 $as_echo "$as_me: failed program was:" >&5
20586 sed 's/^/| /' conftest.$ac_ext >&5
20588 ac_cv_c_bigendian=no
20591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20593 $as_echo "$as_me: failed program was:" >&5
20594 sed 's/^/| /' conftest.$ac_ext >&5
20599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20601 if test $ac_cv_c_bigendian = unknown; then
20602 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
20603 cat >conftest.$ac_ext <<_ACEOF
20606 cat confdefs.h >>conftest.$ac_ext
20607 cat >>conftest.$ac_ext <<_ACEOF
20608 /* end confdefs.h. */
20609 #include <limits.h>
20614 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
20615 bogus endian macros
20622 rm -f conftest.$ac_objext
20623 if { (ac_try="$ac_compile"
20624 case "(($ac_try" in
20625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20626 *) ac_try_echo=$ac_try;;
20628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20629 $as_echo "$ac_try_echo") >&5
20630 (eval "$ac_compile") 2>conftest.er1
20632 grep -v '^ *+' conftest.er1 >conftest.err
20634 cat conftest.err >&5
20635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636 (exit $ac_status); } && {
20637 test -z "$ac_c_werror_flag" ||
20638 test ! -s conftest.err
20639 } && test -s conftest.$ac_objext; then
20640 # It does; now see whether it defined to _BIG_ENDIAN or not.
20641 cat >conftest.$ac_ext <<_ACEOF
20644 cat confdefs.h >>conftest.$ac_ext
20645 cat >>conftest.$ac_ext <<_ACEOF
20646 /* end confdefs.h. */
20647 #include <limits.h>
20652 #ifndef _BIG_ENDIAN
20660 rm -f conftest.$ac_objext
20661 if { (ac_try="$ac_compile"
20662 case "(($ac_try" in
20663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20664 *) ac_try_echo=$ac_try;;
20666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20667 $as_echo "$ac_try_echo") >&5
20668 (eval "$ac_compile") 2>conftest.er1
20670 grep -v '^ *+' conftest.er1 >conftest.err
20672 cat conftest.err >&5
20673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674 (exit $ac_status); } && {
20675 test -z "$ac_c_werror_flag" ||
20676 test ! -s conftest.err
20677 } && test -s conftest.$ac_objext; then
20678 ac_cv_c_bigendian=yes
20680 $as_echo "$as_me: failed program was:" >&5
20681 sed 's/^/| /' conftest.$ac_ext >&5
20683 ac_cv_c_bigendian=no
20686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20688 $as_echo "$as_me: failed program was:" >&5
20689 sed 's/^/| /' conftest.$ac_ext >&5
20694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20696 if test $ac_cv_c_bigendian = unknown; then
20697 # Compile a test program.
20698 if test "$cross_compiling" = yes; then
20699 # Try to guess by grepping values from an object file.
20700 cat >conftest.$ac_ext <<_ACEOF
20703 cat confdefs.h >>conftest.$ac_ext
20704 cat >>conftest.$ac_ext <<_ACEOF
20705 /* end confdefs.h. */
20706 short int ascii_mm[] =
20707 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20708 short int ascii_ii[] =
20709 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20710 int use_ascii (int i) {
20711 return ascii_mm[i] + ascii_ii[i];
20713 short int ebcdic_ii[] =
20714 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20715 short int ebcdic_mm[] =
20716 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20717 int use_ebcdic (int i) {
20718 return ebcdic_mm[i] + ebcdic_ii[i];
20725 return use_ascii (foo) == use_ebcdic (foo);
20730 rm -f conftest.$ac_objext
20731 if { (ac_try="$ac_compile"
20732 case "(($ac_try" in
20733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20734 *) ac_try_echo=$ac_try;;
20736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20737 $as_echo "$ac_try_echo") >&5
20738 (eval "$ac_compile") 2>conftest.er1
20740 grep -v '^ *+' conftest.er1 >conftest.err
20742 cat conftest.err >&5
20743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20744 (exit $ac_status); } && {
20745 test -z "$ac_c_werror_flag" ||
20746 test ! -s conftest.err
20747 } && test -s conftest.$ac_objext; then
20748 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
20749 ac_cv_c_bigendian=yes
20751 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20752 if test "$ac_cv_c_bigendian" = unknown; then
20753 ac_cv_c_bigendian=no
20755 # finding both strings is unlikely to happen, but who knows?
20756 ac_cv_c_bigendian=unknown
20760 $as_echo "$as_me: failed program was:" >&5
20761 sed 's/^/| /' conftest.$ac_ext >&5
20766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20768 cat >conftest.$ac_ext <<_ACEOF
20771 cat confdefs.h >>conftest.$ac_ext
20772 cat >>conftest.$ac_ext <<_ACEOF
20773 /* end confdefs.h. */
20774 $ac_includes_default
20779 /* Are we little or big endian? From Harbison&Steele. */
20783 char c[sizeof (long int)];
20786 return u.c[sizeof (long int) - 1] == 1;
20792 rm -f conftest$ac_exeext
20793 if { (ac_try="$ac_link"
20794 case "(($ac_try" in
20795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20796 *) ac_try_echo=$ac_try;;
20798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20799 $as_echo "$ac_try_echo") >&5
20800 (eval "$ac_link") 2>&5
20802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20804 { (case "(($ac_try" in
20805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20806 *) ac_try_echo=$ac_try;;
20808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20809 $as_echo "$ac_try_echo") >&5
20810 (eval "$ac_try") 2>&5
20812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813 (exit $ac_status); }; }; then
20814 ac_cv_c_bigendian=no
20816 $as_echo "$as_me: program exited with status $ac_status" >&5
20817 $as_echo "$as_me: failed program was:" >&5
20818 sed 's/^/| /' conftest.$ac_ext >&5
20820 ( exit $ac_status )
20821 ac_cv_c_bigendian=yes
20823 rm -rf conftest.dSYM
20824 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20830 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20831 $as_echo "$ac_cv_c_bigendian" >&6; }
20832 case $ac_cv_c_bigendian in #(
20834 cat >>confdefs.h <<\_ACEOF
20835 #define WORDS_BIGENDIAN 1
20842 cat >>confdefs.h <<\_ACEOF
20843 #define AC_APPLE_UNIVERSAL_BUILD 1
20848 { { $as_echo "$as_me:$LINENO: error: unknown endianness
20849 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20850 $as_echo "$as_me: error: unknown endianness
20851 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20852 { (exit 1); exit 1; }; } ;;
20857 cat >>confdefs.h <<\_ACEOF
20858 #define AP_UNKNOWN_BYTE_ORDER 1
20862 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20863 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20864 if test "${ac_cv_c_const+set}" = set; then
20865 $as_echo_n "(cached) " >&6
20867 cat >conftest.$ac_ext <<_ACEOF
20870 cat confdefs.h >>conftest.$ac_ext
20871 cat >>conftest.$ac_ext <<_ACEOF
20872 /* end confdefs.h. */
20877 /* FIXME: Include the comments suggested by Paul. */
20878 #ifndef __cplusplus
20879 /* Ultrix mips cc rejects this. */
20880 typedef int charset[2];
20882 /* SunOS 4.1.1 cc rejects this. */
20883 char const *const *pcpcc;
20885 /* NEC SVR4.0.2 mips cc rejects this. */
20886 struct point {int x, y;};
20887 static struct point const zero = {0,0};
20888 /* AIX XL C 1.02.0.0 rejects this.
20889 It does not let you subtract one const X* pointer from another in
20890 an arm of an if-expression whose if-part is not a constant
20892 const char *g = "string";
20893 pcpcc = &g + (g ? g-g : 0);
20894 /* HPUX 7.0 cc rejects these. */
20896 ppc = (char**) pcpcc;
20897 pcpcc = (char const *const *) ppc;
20898 { /* SCO 3.2v4 cc rejects this. */
20900 char const *s = 0 ? (char *) 0 : (char const *) 0;
20905 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20906 int x[] = {25, 17};
20907 const int *foo = &x[0];
20910 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20911 typedef const int *iptr;
20915 { /* AIX XL C 1.02.0.0 rejects this saying
20916 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20917 struct s { int j; const int *ap[3]; };
20918 struct s *b; b->j = 5;
20920 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20921 const int foo = 10;
20922 if (!foo) return 0;
20924 return !cs[0] && !zero.x;
20931 rm -f conftest.$ac_objext
20932 if { (ac_try="$ac_compile"
20933 case "(($ac_try" in
20934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20935 *) ac_try_echo=$ac_try;;
20937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20938 $as_echo "$ac_try_echo") >&5
20939 (eval "$ac_compile") 2>conftest.er1
20941 grep -v '^ *+' conftest.er1 >conftest.err
20943 cat conftest.err >&5
20944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945 (exit $ac_status); } && {
20946 test -z "$ac_c_werror_flag" ||
20947 test ! -s conftest.err
20948 } && test -s conftest.$ac_objext; then
20951 $as_echo "$as_me: failed program was:" >&5
20952 sed 's/^/| /' conftest.$ac_ext >&5
20957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20959 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20960 $as_echo "$ac_cv_c_const" >&6; }
20961 if test $ac_cv_c_const = no; then
20963 cat >>confdefs.h <<\_ACEOF
20969 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
20970 $as_echo_n "checking for size_t... " >&6; }
20971 if test "${ac_cv_type_size_t+set}" = set; then
20972 $as_echo_n "(cached) " >&6
20974 ac_cv_type_size_t=no
20975 cat >conftest.$ac_ext <<_ACEOF
20978 cat confdefs.h >>conftest.$ac_ext
20979 cat >>conftest.$ac_ext <<_ACEOF
20980 /* end confdefs.h. */
20981 $ac_includes_default
20985 if (sizeof (size_t))
20991 rm -f conftest.$ac_objext
20992 if { (ac_try="$ac_compile"
20993 case "(($ac_try" in
20994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20995 *) ac_try_echo=$ac_try;;
20997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20998 $as_echo "$ac_try_echo") >&5
20999 (eval "$ac_compile") 2>conftest.er1
21001 grep -v '^ *+' conftest.er1 >conftest.err
21003 cat conftest.err >&5
21004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21005 (exit $ac_status); } && {
21006 test -z "$ac_c_werror_flag" ||
21007 test ! -s conftest.err
21008 } && test -s conftest.$ac_objext; then
21009 cat >conftest.$ac_ext <<_ACEOF
21012 cat confdefs.h >>conftest.$ac_ext
21013 cat >>conftest.$ac_ext <<_ACEOF
21014 /* end confdefs.h. */
21015 $ac_includes_default
21019 if (sizeof ((size_t)))
21025 rm -f conftest.$ac_objext
21026 if { (ac_try="$ac_compile"
21027 case "(($ac_try" in
21028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21029 *) ac_try_echo=$ac_try;;
21031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21032 $as_echo "$ac_try_echo") >&5
21033 (eval "$ac_compile") 2>conftest.er1
21035 grep -v '^ *+' conftest.er1 >conftest.err
21037 cat conftest.err >&5
21038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21039 (exit $ac_status); } && {
21040 test -z "$ac_c_werror_flag" ||
21041 test ! -s conftest.err
21042 } && test -s conftest.$ac_objext; then
21045 $as_echo "$as_me: failed program was:" >&5
21046 sed 's/^/| /' conftest.$ac_ext >&5
21048 ac_cv_type_size_t=yes
21051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21053 $as_echo "$as_me: failed program was:" >&5
21054 sed 's/^/| /' conftest.$ac_ext >&5
21059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21061 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21062 $as_echo "$ac_cv_type_size_t" >&6; }
21063 if test "x$ac_cv_type_size_t" = x""yes; then
21067 cat >>confdefs.h <<_ACEOF
21068 #define size_t unsigned int
21075 for ac_func in memmove bcopy
21077 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21078 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21079 $as_echo_n "checking for $ac_func... " >&6; }
21080 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21081 $as_echo_n "(cached) " >&6
21083 cat >conftest.$ac_ext <<_ACEOF
21086 cat confdefs.h >>conftest.$ac_ext
21087 cat >>conftest.$ac_ext <<_ACEOF
21088 /* end confdefs.h. */
21089 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21091 #define $ac_func innocuous_$ac_func
21093 /* System header to define __stub macros and hopefully few prototypes,
21094 which can conflict with char $ac_func (); below.
21095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21096 <limits.h> exists even on freestanding compilers. */
21099 # include <limits.h>
21101 # include <assert.h>
21106 /* Override any GCC internal prototype to avoid an error.
21107 Use char because int might match the return type of a GCC
21108 builtin and then its argument prototype would still apply. */
21113 /* The GNU C library defines this for functions which it implements
21114 to always fail with ENOSYS. Some functions are actually named
21115 something starting with __ and the normal name is an alias. */
21116 #if defined __stub_$ac_func || defined __stub___$ac_func
21123 return $ac_func ();
21128 rm -f conftest.$ac_objext conftest$ac_exeext
21129 if { (ac_try="$ac_link"
21130 case "(($ac_try" in
21131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21132 *) ac_try_echo=$ac_try;;
21134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21135 $as_echo "$ac_try_echo") >&5
21136 (eval "$ac_link") 2>conftest.er1
21138 grep -v '^ *+' conftest.er1 >conftest.err
21140 cat conftest.err >&5
21141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21142 (exit $ac_status); } && {
21143 test -z "$ac_c_werror_flag" ||
21144 test ! -s conftest.err
21145 } && test -s conftest$ac_exeext && {
21146 test "$cross_compiling" = yes ||
21147 $as_test_x conftest$ac_exeext
21149 eval "$as_ac_var=yes"
21151 $as_echo "$as_me: failed program was:" >&5
21152 sed 's/^/| /' conftest.$ac_ext >&5
21154 eval "$as_ac_var=no"
21157 rm -rf conftest.dSYM
21158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21159 conftest$ac_exeext conftest.$ac_ext
21161 ac_res=`eval 'as_val=${'$as_ac_var'}
21162 $as_echo "$as_val"'`
21163 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21164 $as_echo "$ac_res" >&6; }
21165 as_val=`eval 'as_val=${'$as_ac_var'}
21166 $as_echo "$as_val"'`
21167 if test "x$as_val" = x""yes; then
21168 cat >>confdefs.h <<_ACEOF
21169 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21177 for ac_header in check.h
21179 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21181 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21182 $as_echo_n "checking for $ac_header... " >&6; }
21183 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21184 $as_echo_n "(cached) " >&6
21186 ac_res=`eval 'as_val=${'$as_ac_Header'}
21187 $as_echo "$as_val"'`
21188 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21189 $as_echo "$ac_res" >&6; }
21191 # Is the header compilable?
21192 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21193 $as_echo_n "checking $ac_header usability... " >&6; }
21194 cat >conftest.$ac_ext <<_ACEOF
21197 cat confdefs.h >>conftest.$ac_ext
21198 cat >>conftest.$ac_ext <<_ACEOF
21199 /* end confdefs.h. */
21200 $ac_includes_default
21201 #include <$ac_header>
21203 rm -f conftest.$ac_objext
21204 if { (ac_try="$ac_compile"
21205 case "(($ac_try" in
21206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21207 *) ac_try_echo=$ac_try;;
21209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21210 $as_echo "$ac_try_echo") >&5
21211 (eval "$ac_compile") 2>conftest.er1
21213 grep -v '^ *+' conftest.er1 >conftest.err
21215 cat conftest.err >&5
21216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21217 (exit $ac_status); } && {
21218 test -z "$ac_c_werror_flag" ||
21219 test ! -s conftest.err
21220 } && test -s conftest.$ac_objext; then
21221 ac_header_compiler=yes
21223 $as_echo "$as_me: failed program was:" >&5
21224 sed 's/^/| /' conftest.$ac_ext >&5
21226 ac_header_compiler=no
21229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21230 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21231 $as_echo "$ac_header_compiler" >&6; }
21233 # Is the header present?
21234 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21235 $as_echo_n "checking $ac_header presence... " >&6; }
21236 cat >conftest.$ac_ext <<_ACEOF
21239 cat confdefs.h >>conftest.$ac_ext
21240 cat >>conftest.$ac_ext <<_ACEOF
21241 /* end confdefs.h. */
21242 #include <$ac_header>
21244 if { (ac_try="$ac_cpp conftest.$ac_ext"
21245 case "(($ac_try" in
21246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21247 *) ac_try_echo=$ac_try;;
21249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21250 $as_echo "$ac_try_echo") >&5
21251 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21253 grep -v '^ *+' conftest.er1 >conftest.err
21255 cat conftest.err >&5
21256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21257 (exit $ac_status); } >/dev/null && {
21258 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21259 test ! -s conftest.err
21261 ac_header_preproc=yes
21263 $as_echo "$as_me: failed program was:" >&5
21264 sed 's/^/| /' conftest.$ac_ext >&5
21266 ac_header_preproc=no
21269 rm -f conftest.err conftest.$ac_ext
21270 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21271 $as_echo "$ac_header_preproc" >&6; }
21273 # So? What about this header?
21274 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21276 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21277 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21278 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21279 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21280 ac_header_preproc=yes
21283 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21284 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21285 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21286 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21287 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21288 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21289 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21290 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21291 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21292 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21293 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21294 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21296 ## ------------------------------------------- ##
21297 ## Report this to expat-bugs@mail.libexpat.org ##
21298 ## ------------------------------------------- ##
21300 ) | sed "s/^/$as_me: WARNING: /" >&2
21303 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21304 $as_echo_n "checking for $ac_header... " >&6; }
21305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21306 $as_echo_n "(cached) " >&6
21308 eval "$as_ac_Header=\$ac_header_preproc"
21310 ac_res=`eval 'as_val=${'$as_ac_Header'}
21311 $as_echo "$as_val"'`
21312 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21313 $as_echo "$ac_res" >&6; }
21316 as_val=`eval 'as_val=${'$as_ac_Header'}
21317 $as_echo "$as_val"'`
21318 if test "x$as_val" = x""yes; then
21319 cat >>confdefs.h <<_ACEOF
21320 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21329 cat >>confdefs.h <<\_ACEOF
21334 cat >>confdefs.h <<\_ACEOF
21339 cat >>confdefs.h <<\_ACEOF
21340 #define XML_CONTEXT_BYTES 1024
21344 ac_config_files="$ac_config_files Makefile"
21346 cat >confcache <<\_ACEOF
21347 # This file is a shell script that caches the results of configure
21348 # tests run on this system so they can be shared between configure
21349 # scripts and configure runs, see configure's option --config-cache.
21350 # It is not useful on other systems. If it contains results you don't
21351 # want to keep, you may remove or edit it.
21353 # config.status only pays attention to the cache file if you give it
21354 # the --recheck option to rerun configure.
21356 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21357 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21358 # following values.
21362 # The following way of writing the cache mishandles newlines in values,
21363 # but we know of no workaround that is simple, portable, and efficient.
21364 # So, we kill variables containing newlines.
21365 # Ultrix sh set writes to stderr and can't be redirected directly,
21366 # and sets the high bit in the cache file unless we assign to the vars.
21368 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21369 eval ac_val=\$$ac_var
21373 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
21374 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21377 _ | IFS | as_nl) ;; #(
21378 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21379 *) $as_unset $ac_var ;;
21385 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21386 *${as_nl}ac_space=\ *)
21387 # `set' does not quote correctly, so add quotes (double-quote
21388 # substitution turns \\\\ into \\, and sed turns \\ into \).
21391 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21394 # `set' quotes correctly as required by POSIX, so do not add quotes.
21395 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21404 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21406 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21408 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21409 if test -w "$cache_file"; then
21410 test "x$cache_file" != "x/dev/null" &&
21411 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
21412 $as_echo "$as_me: updating cache $cache_file" >&6;}
21413 cat confcache >$cache_file
21415 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21416 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21421 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21422 # Let make expand exec_prefix.
21423 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21425 DEFS=-DHAVE_CONFIG_H
21429 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21430 # 1. Remove the extension, and $U if already installed.
21431 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21432 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21433 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21434 # will be set to the directory where LIBOBJS objects are built.
21435 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21436 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21438 LIBOBJS=$ac_libobjs
21440 LTLIBOBJS=$ac_ltlibobjs
21445 : ${CONFIG_STATUS=./config.status}
21447 ac_clean_files_save=$ac_clean_files
21448 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21449 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21450 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21451 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21453 # Generated by $as_me.
21454 # Run this file to recreate the current configuration.
21455 # Compiler output produced by configure, useful for debugging
21456 # configure, is in config.log if it exists.
21459 ac_cs_recheck=false
21461 SHELL=\${CONFIG_SHELL-$SHELL}
21464 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21465 ## --------------------- ##
21466 ## M4sh Initialization. ##
21467 ## --------------------- ##
21469 # Be more Bourne compatible
21470 DUALCASE=1; export DUALCASE # for MKS sh
21471 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21474 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21475 # is contrary to our usage. Disable this feature.
21476 alias -g '${1+"$@"}'='"$@"'
21477 setopt NO_GLOB_SUBST
21479 case `(set -o) 2>/dev/null` in
21480 *posix*) set -o posix ;;
21489 # Avoid depending upon Character Ranges.
21490 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21491 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21492 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21493 as_cr_digits='0123456789'
21494 as_cr_alnum=$as_cr_Letters$as_cr_digits
21499 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21500 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21501 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21502 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21503 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21504 as_echo='printf %s\n'
21505 as_echo_n='printf %s'
21507 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21508 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21509 as_echo_n='/usr/ucb/echo -n'
21511 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21512 as_echo_n_body='eval
21516 expr "X$arg" : "X\\(.*\\)$as_nl";
21517 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21519 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21521 export as_echo_n_body
21522 as_echo_n='sh -c $as_echo_n_body as_echo'
21524 export as_echo_body
21525 as_echo='sh -c $as_echo_body as_echo'
21528 # The user is always right.
21529 if test "${PATH_SEPARATOR+set}" != set; then
21531 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21532 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21537 # Support unset when possible.
21538 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21546 # We need space, tab and new line, in precisely that order. Quoting is
21547 # there to prevent editors from complaining about space-tab.
21548 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21549 # splitting by setting IFS to empty value.)
21552 # Find who we are. Look in the path if we contain no directory separator.
21554 *[\\/]* ) as_myself=$0 ;;
21555 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21556 for as_dir in $PATH
21559 test -z "$as_dir" && as_dir=.
21560 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21566 # We did not find ourselves, most probably we were run as `sh COMMAND'
21567 # in which case we are not to be found in the path.
21568 if test "x$as_myself" = x; then
21571 if test ! -f "$as_myself"; then
21572 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21573 { (exit 1); exit 1; }
21576 # Work around bugs in pre-3.0 UWIN ksh.
21577 for as_var in ENV MAIL MAILPATH
21578 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21590 # Required to use basename.
21591 if expr a : '\(a\)' >/dev/null 2>&1 &&
21592 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21598 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21599 as_basename=basename
21605 # Name of the executable.
21606 as_me=`$as_basename -- "$0" ||
21607 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21608 X"$0" : 'X\(//\)$' \| \
21609 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21611 sed '/^.*\/\([^/][^/]*\)\/*$/{
21630 as_lineno_1=$LINENO
21631 as_lineno_2=$LINENO
21632 test "x$as_lineno_1" != "x$as_lineno_2" &&
21633 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21635 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21636 # uniformly replaced by the line number. The first 'sed' inserts a
21637 # line-number line after each line using $LINENO; the second 'sed'
21638 # does the real work. The second script uses 'N' to pair each
21639 # line-number line with the line containing $LINENO, and appends
21640 # trailing '-' during substitution so that $LINENO is not a special
21641 # case at line end.
21642 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21643 # scripts with optimization help from Paolo Bonzini. Blame Lee
21644 # E. McMahon (1931-1989) for sed's syntax. :-)
21656 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21659 ' >$as_me.lineno &&
21660 chmod +x "$as_me.lineno" ||
21661 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21662 { (exit 1); exit 1; }; }
21664 # Don't try to exec as it changes $[0], causing all sort of problems
21665 # (the dirname of $[0] is not the place where we might find the
21666 # original and so on. Autoconf is especially sensitive to this).
21667 . "./$as_me.lineno"
21668 # Exit status is that of the last command.
21673 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21679 ECHO_C= ECHO_N= ECHO_T=
21680 case `echo -n x` in
21682 case `echo 'x\c'` in
21683 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21689 if expr a : '\(a\)' >/dev/null 2>&1 &&
21690 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21696 rm -f conf$$ conf$$.exe conf$$.file
21697 if test -d conf$$.dir; then
21698 rm -f conf$$.dir/conf$$.file
21701 mkdir conf$$.dir 2>/dev/null
21703 if (echo >conf$$.file) 2>/dev/null; then
21704 if ln -s conf$$.file conf$$ 2>/dev/null; then
21706 # ... but there are two gotchas:
21707 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21708 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21709 # In both cases, we have to default to `cp -p'.
21710 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21712 elif ln conf$$.file conf$$ 2>/dev/null; then
21720 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21721 rmdir conf$$.dir 2>/dev/null
21723 if mkdir -p . 2>/dev/null; then
21726 test -d ./-p && rmdir ./-p
21730 if test -x / >/dev/null 2>&1; then
21731 as_test_x='test -x'
21733 if ls -dL / >/dev/null 2>&1; then
21740 if test -d "$1"; then
21746 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21747 ???[sx]*):;;*)false;;esac;fi
21751 as_executable_p=$as_test_x
21753 # Sed expression to map a string onto a valid CPP name.
21754 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21756 # Sed expression to map a string onto a valid variable name.
21757 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21762 # Save the log message, to keep $[0] and so on meaningful, and to
21763 # report actual input values of CONFIG_FILES etc. instead of their
21764 # values after options handling.
21766 This file was extended by expat $as_me 1.95.7, which was
21767 generated by GNU Autoconf 2.63. Invocation command line was
21769 CONFIG_FILES = $CONFIG_FILES
21770 CONFIG_HEADERS = $CONFIG_HEADERS
21771 CONFIG_LINKS = $CONFIG_LINKS
21772 CONFIG_COMMANDS = $CONFIG_COMMANDS
21775 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21780 case $ac_config_files in *"
21781 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21784 case $ac_config_headers in *"
21785 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21789 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21790 # Files that config.status was made for.
21791 config_files="$ac_config_files"
21792 config_headers="$ac_config_headers"
21796 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21798 \`$as_me' instantiates files from templates according to the
21799 current configuration.
21801 Usage: $0 [OPTION]... [FILE]...
21803 -h, --help print this help, then exit
21804 -V, --version print version number and configuration settings, then exit
21805 -q, --quiet, --silent
21806 do not print progress messages
21807 -d, --debug don't remove temporary files
21808 --recheck update $as_me by reconfiguring in the same conditions
21809 --file=FILE[:TEMPLATE]
21810 instantiate the configuration file FILE
21811 --header=FILE[:TEMPLATE]
21812 instantiate the configuration header FILE
21814 Configuration files:
21817 Configuration headers:
21820 Report bugs to <bug-autoconf@gnu.org>."
21823 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21825 expat config.status 1.95.7
21826 configured by $0, generated by GNU Autoconf 2.63,
21827 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21829 Copyright (C) 2008 Free Software Foundation, Inc.
21830 This config.status script is free software; the Free Software Foundation
21831 gives unlimited permission to copy, distribute and modify it."
21836 test -n "\$AWK" || AWK=awk
21839 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21840 # The default lists apply if the user does not specify any file.
21846 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21847 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21858 # Handling of the options.
21859 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21861 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21862 $as_echo "$ac_cs_version"; exit ;;
21863 --debug | --debu | --deb | --de | --d | -d )
21865 --file | --fil | --fi | --f )
21868 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21870 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
21871 ac_need_defaults=false;;
21872 --header | --heade | --head | --hea )
21875 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21877 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
21878 ac_need_defaults=false;;
21880 # Conflict between --help and --header
21881 { $as_echo "$as_me: error: ambiguous option: $1
21882 Try \`$0 --help' for more information." >&2
21883 { (exit 1); exit 1; }; };;
21884 --help | --hel | -h )
21885 $as_echo "$ac_cs_usage"; exit ;;
21886 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21887 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21890 # This is an error.
21891 -*) { $as_echo "$as_me: error: unrecognized option: $1
21892 Try \`$0 --help' for more information." >&2
21893 { (exit 1); exit 1; }; } ;;
21895 *) ac_config_targets="$ac_config_targets $1"
21896 ac_need_defaults=false ;;
21902 ac_configure_extra_args=
21904 if $ac_cs_silent; then
21906 ac_configure_extra_args="$ac_configure_extra_args --silent"
21910 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21911 if \$ac_cs_recheck; then
21912 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21914 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21915 CONFIG_SHELL='$SHELL'
21916 export CONFIG_SHELL
21921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21925 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21926 ## Running $as_me. ##
21932 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21935 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21937 # Handling of arguments.
21938 for ac_config_target in $ac_config_targets
21940 case $ac_config_target in
21941 "expat_config.h") CONFIG_HEADERS="$CONFIG_HEADERS expat_config.h" ;;
21942 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21944 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21945 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21946 { (exit 1); exit 1; }; };;
21951 # If the user did not use the arguments to specify the items to instantiate,
21952 # then the envvar interface is used. Set only those that are not.
21953 # We use the long form for the default assignment because of an extremely
21954 # bizarre bug on SunOS 4.1.3.
21955 if $ac_need_defaults; then
21956 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21957 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21960 # Have a temporary directory for convenience. Make it in the build tree
21961 # simply because there is no reason against having it here, and in addition,
21962 # creating and moving files from /tmp can sometimes cause problems.
21963 # Hook for its removal unless debugging.
21964 # Note that there is a small window in which the directory will not be cleaned:
21965 # after its creation but before its name has been assigned to `$tmp'.
21969 trap 'exit_status=$?
21970 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21972 trap '{ (exit 1); exit 1; }' 1 2 13 15
21974 # Create a (secure) tmp directory for tmp files.
21977 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21978 test -n "$tmp" && test -d "$tmp"
21981 tmp=./conf$$-$RANDOM
21982 (umask 077 && mkdir "$tmp")
21985 $as_echo "$as_me: cannot create a temporary directory in ." >&2
21986 { (exit 1); exit 1; }
21989 # Set up the scripts for CONFIG_FILES section.
21990 # No need to generate them if there are no CONFIG_FILES.
21991 # This happens for instance with `./config.status config.h'.
21992 if test -n "$CONFIG_FILES"; then
21996 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21997 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22000 ac_cs_awk_cr=$ac_cr
22003 echo 'BEGIN {' >"$tmp/subs1.awk" &&
22008 echo "cat >conf$$subs.awk <<_ACEOF" &&
22009 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22011 } >conf$$subs.sh ||
22012 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22013 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22014 { (exit 1); exit 1; }; }
22015 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
22017 for ac_last_try in false false false false false :; do
22018 . ./conf$$subs.sh ||
22019 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22020 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22021 { (exit 1); exit 1; }; }
22023 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22024 if test $ac_delim_n = $ac_delim_num; then
22026 elif $ac_last_try; then
22027 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22028 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22029 { (exit 1); exit 1; }; }
22031 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22034 rm -f conf$$subs.sh
22036 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22037 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
22041 s/^/S["/; s/!.*/"]=/
22051 s/\(.\{148\}\).*/\1/
22053 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22058 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22065 s/\(.\{148\}\).*/\1/
22067 s/["\\]/\\&/g; s/^/"/; s/$/"/
22071 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22076 ' <conf$$subs.awk | sed '
22081 ' >>$CONFIG_STATUS || ac_write_fail=1
22082 rm -f conf$$subs.awk
22083 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22085 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
22086 for (key in S) S_is_set[key] = 1
22092 nfields = split(line, field, "@")
22094 len = length(field[1])
22095 for (i = 2; i < nfields; i++) {
22097 keylen = length(key)
22098 if (S_is_set[key]) {
22100 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22101 len += length(value) + length(field[++i])
22112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22113 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22114 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22117 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
22118 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
22119 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
22120 { (exit 1); exit 1; }; }
22123 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22124 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22125 # trailing colons and then remove the whole line if VPATH becomes empty
22126 # (actually we leave an empty line to preserve line numbers).
22127 if test "x$srcdir" = x.; then
22128 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22129 s/:*\$(srcdir):*/:/
22130 s/:*\${srcdir}:*/:/
22132 s/^\([^=]*=[ ]*\):*/\1/
22138 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22139 fi # test -n "$CONFIG_FILES"
22141 # Set up the scripts for CONFIG_HEADERS section.
22142 # No need to generate them if there are no CONFIG_HEADERS.
22143 # This happens for instance with `./config.status Makefile'.
22144 if test -n "$CONFIG_HEADERS"; then
22145 cat >"$tmp/defines.awk" <<\_ACAWK ||
22149 # Transform confdefs.h into an awk script `defines.awk', embedded as
22150 # here-document in config.status, that substitutes the proper values into
22151 # config.h.in to produce config.h.
22153 # Create a delimiter string that does not exist in confdefs.h, to ease
22154 # handling of long lines.
22156 for ac_last_try in false false :; do
22157 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
22158 if test -z "$ac_t"; then
22160 elif $ac_last_try; then
22161 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
22162 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
22163 { (exit 1); exit 1; }; }
22165 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22169 # For the awk script, D is an array of macro values keyed by name,
22170 # likewise P contains macro parameters if any. Preserve backslash
22171 # newline sequences.
22173 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22175 s/.\{148\}/&'"$ac_delim"'/g
22178 s/^[ ]*#[ ]*define[ ][ ]*/ /
22185 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22187 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22191 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22192 D["\1"]=" \3\\\\\\n"\\/p
22194 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22199 s/.\{148\}/&'"$ac_delim"'/g
22204 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22207 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22209 ' <confdefs.h | sed '
22210 s/'"$ac_delim"'/"\\\
22211 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22213 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22214 for (key in D) D_is_set[key] = 1
22217 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22219 split(line, arg, " ")
22220 if (arg[1] == "#") {
22224 defundef = substr(arg[1], 2)
22227 split(mac1, mac2, "(") #)
22229 prefix = substr(line, 1, index(line, defundef) - 1)
22230 if (D_is_set[macro]) {
22231 # Preserve the white space surrounding the "#".
22232 print prefix "define", macro P[macro] D[macro]
22235 # Replace #undef with comments. This is necessary, for example,
22236 # in the case of _POSIX_SOURCE, which is predefined and required
22237 # on some systems where configure will not decide to define it.
22238 if (defundef == "undef") {
22239 print "/*", prefix defundef, macro, "*/"
22247 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22248 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
22249 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
22250 { (exit 1); exit 1; }; }
22251 fi # test -n "$CONFIG_HEADERS"
22254 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
22259 :[FHLC]) ac_mode=$ac_tag; continue;;
22261 case $ac_mode$ac_tag in
22263 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
22264 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
22265 { (exit 1); exit 1; }; };;
22266 :[FH]-) ac_tag=-:-;;
22267 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22284 -) ac_f="$tmp/stdin";;
22285 *) # Look for the file first in the build tree, then in the source tree
22286 # (if the path is not absolute). The absolute path cannot be DOS-style,
22287 # because $ac_f cannot contain `:'.
22291 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22293 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22294 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22295 { (exit 1); exit 1; }; };;
22297 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22298 ac_file_inputs="$ac_file_inputs '$ac_f'"
22301 # Let's still pretend it is `configure' which instantiates (i.e., don't
22302 # use $as_me), people would be surprised to read:
22303 # /* config.h. Generated by config.status. */
22304 configure_input='Generated from '`
22305 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22307 if test x"$ac_file" != x-; then
22308 configure_input="$ac_file. $configure_input"
22309 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
22310 $as_echo "$as_me: creating $ac_file" >&6;}
22312 # Neutralize special characters interpreted by sed in replacement strings.
22313 case $configure_input in #(
22314 *\&* | *\|* | *\\* )
22315 ac_sed_conf_input=`$as_echo "$configure_input" |
22316 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22317 *) ac_sed_conf_input=$configure_input;;
22321 *:-:* | *:-) cat >"$tmp/stdin" \
22322 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22323 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22324 { (exit 1); exit 1; }; } ;;
22329 ac_dir=`$as_dirname -- "$ac_file" ||
22330 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22331 X"$ac_file" : 'X\(//\)[^/]' \| \
22332 X"$ac_file" : 'X\(//\)$' \| \
22333 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22334 $as_echo X"$ac_file" |
22335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22339 /^X\(\/\/\)[^/].*/{
22354 -*) as_dir=./$as_dir;;
22356 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22360 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22361 *) as_qdir=$as_dir;;
22363 as_dirs="'$as_qdir' $as_dirs"
22364 as_dir=`$as_dirname -- "$as_dir" ||
22365 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22366 X"$as_dir" : 'X\(//\)[^/]' \| \
22367 X"$as_dir" : 'X\(//\)$' \| \
22368 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22369 $as_echo X"$as_dir" |
22370 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22374 /^X\(\/\/\)[^/].*/{
22387 test -d "$as_dir" && break
22389 test -z "$as_dirs" || eval "mkdir $as_dirs"
22390 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22391 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22392 { (exit 1); exit 1; }; }; }
22396 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22398 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22399 # A ".." for each directory in $ac_dir_suffix.
22400 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22401 case $ac_top_builddir_sub in
22402 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22403 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22406 ac_abs_top_builddir=$ac_pwd
22407 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22408 # for backward compatibility:
22409 ac_top_builddir=$ac_top_build_prefix
22412 .) # We are building in place.
22414 ac_top_srcdir=$ac_top_builddir_sub
22415 ac_abs_top_srcdir=$ac_pwd ;;
22416 [\\/]* | ?:[\\/]* ) # Absolute name.
22417 ac_srcdir=$srcdir$ac_dir_suffix;
22418 ac_top_srcdir=$srcdir
22419 ac_abs_top_srcdir=$srcdir ;;
22420 *) # Relative name.
22421 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22422 ac_top_srcdir=$ac_top_build_prefix$srcdir
22423 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22425 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22435 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22436 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22440 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22441 # If the template does not know about datarootdir, expand it.
22442 # FIXME: This hack should be removed a few years after 2.60.
22443 ac_datarootdir_hack=; ac_datarootdir_seen=
22456 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22457 *datarootdir*) ac_datarootdir_seen=yes;;
22458 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22459 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22460 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22462 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22463 ac_datarootdir_hack='
22464 s&@datadir@&$datadir&g
22465 s&@docdir@&$docdir&g
22466 s&@infodir@&$infodir&g
22467 s&@localedir@&$localedir&g
22468 s&@mandir@&$mandir&g
22469 s&\\\${datarootdir}&$datarootdir&g' ;;
22473 # Neutralize VPATH when `$srcdir' = `.'.
22474 # Shell code in configure.ac might set extrasub.
22475 # FIXME: do we really want to maintain this feature?
22476 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22477 ac_sed_extra="$ac_vpsub
22480 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22482 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22483 s|@configure_input@|$ac_sed_conf_input|;t t
22484 s&@top_builddir@&$ac_top_builddir_sub&;t t
22485 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22486 s&@srcdir@&$ac_srcdir&;t t
22487 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22488 s&@top_srcdir@&$ac_top_srcdir&;t t
22489 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22490 s&@builddir@&$ac_builddir&;t t
22491 s&@abs_builddir@&$ac_abs_builddir&;t t
22492 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22493 s&@INSTALL@&$ac_INSTALL&;t t
22494 $ac_datarootdir_hack
22496 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
22497 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22498 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22499 { (exit 1); exit 1; }; }
22501 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22502 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22503 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22504 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22505 which seems to be undefined. Please make sure it is defined." >&5
22506 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22507 which seems to be undefined. Please make sure it is defined." >&2;}
22511 -) cat "$tmp/out" && rm -f "$tmp/out";;
22512 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
22514 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22515 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22516 { (exit 1); exit 1; }; }
22522 if test x"$ac_file" != x-; then
22524 $as_echo "/* $configure_input */" \
22525 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
22526 } >"$tmp/config.h" \
22527 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22528 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22529 { (exit 1); exit 1; }; }
22530 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
22531 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22532 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22535 mv "$tmp/config.h" "$ac_file" \
22536 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22537 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22538 { (exit 1); exit 1; }; }
22541 $as_echo "/* $configure_input */" \
22542 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
22543 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
22544 $as_echo "$as_me: error: could not create -" >&2;}
22545 { (exit 1); exit 1; }; }
22555 { (exit 0); exit 0; }
22557 chmod +x $CONFIG_STATUS
22558 ac_clean_files=$ac_clean_files_save
22560 test $ac_write_fail = 0 ||
22561 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
22562 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
22563 { (exit 1); exit 1; }; }
22566 # configure is writing to config.log, and then calls config.status.
22567 # config.status does its own redirection, appending to config.log.
22568 # Unfortunately, on DOS this fails, as config.log is still kept open
22569 # by configure, so config.status won't be able to write to it; its
22570 # output is simply discarded. So we exec the FD to /dev/null,
22571 # effectively closing config.log, so it can be properly (re)opened and
22572 # appended to by config.status. When coming back to configure, we
22573 # need to make the FD available again.
22574 if test "$no_create" != yes; then
22576 ac_config_status_args=
22577 test "$silent" = yes &&
22578 ac_config_status_args="$ac_config_status_args --quiet"
22580 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22582 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22583 # would make configure fail if this is the last instruction.
22584 $ac_cs_success || { (exit 1); exit 1; }
22586 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22587 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22588 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22592 abs_srcdir="`cd $srcdir && pwd`"
22593 abs_builddir="`pwd`"
22594 if test "$abs_srcdir" != "$abs_builddir"; then