2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for iec16022 0.2.3.
5 # Report bugs to <stefan@datenfreihafen.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 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 # Zsh 3.x and 4.x performs 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
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
72 # Find who we are. Look in the path if we contain no directory separator.
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
163 if test $as_have_required = yes && (eval ":
173 as_func_ret_success () {
176 as_func_ret_failure () {
181 if as_func_success; then
185 echo as_func_success failed.
188 if as_func_failure; then
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 test -z "$as_dir" && as_dir=.
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
260 CONFIG_SHELL=$as_shell
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
288 as_func_ret_success () {
291 as_func_ret_failure () {
296 if as_func_success; then
300 echo as_func_success failed.
303 if as_func_failure; then
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
377 as_func_ret_success () {
380 as_func_ret_failure () {
385 if as_func_success; then
389 echo as_func_success failed.
392 if as_func_failure; then
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413 echo positional parameters were not saved.
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
463 # Exit status is that of the last command.
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
474 ECHO_C= ECHO_N= ECHO_T=
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 elif ln conf$$.file conf$$ 2>/dev/null; then
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
516 if mkdir -p . 2>/dev/null; then
519 test -d ./-p && rmdir ./-p
523 if test -x / >/dev/null 2>&1; then
526 if ls -dL / >/dev/null 2>&1; then
533 if test -d "$1"; then
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
544 as_executable_p=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
566 if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
569 elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
580 if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599 echo_test_string=`eval $cmd` &&
600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
612 # The Solaris, AIX, and Digital Unix default echo programs unquote
613 # backslashes. This makes it impossible to quote backslashes using
614 # echo "$something" | sed 's/\\/\\\\/g'
616 # So, first we look for a working echo in the user's PATH.
618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619 for dir in $PATH /usr/ucb; do
621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
631 if test "X$echo" = Xecho; then
632 # We didn't find a better echo, so look for alternatives.
633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # This shell has a builtin print -r that does the trick.
638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639 test "X$CONFIG_SHELL" != X/bin/ksh; then
640 # If we have ksh, try running configure again with it.
641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642 export ORIGINAL_CONFIG_SHELL
643 CONFIG_SHELL=/bin/ksh
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655 test "X$echo_testing_string" = 'X\t' &&
656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
660 SHELL="$CONFIG_SHELL"
662 echo="$CONFIG_SHELL $0 --fallback-echo"
663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664 test "X$echo_testing_string" = 'X\t' &&
665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666 test "X$echo_testing_string" = "X$echo_test_string"; then
667 echo="$CONFIG_SHELL $0 --fallback-echo"
669 # maybe with a smaller string...
672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
680 if test "$prev" != 'sed 50q "$0"'; then
681 echo_test_string=`eval $prev`
682 export echo_test_string
683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
685 # Oops. We lost completely, so just stick with echo.
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
704 tagnames=${tagnames+${tagnames},}CXX
706 tagnames=${tagnames+${tagnames},}F77
708 exec 7<&0 </dev/null 6>&1
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
718 ac_default_prefix=/usr/local
720 ac_config_libobj_dir=.
726 SHELL=${CONFIG_SHELL-/bin/sh}
728 # Identity of this package.
729 PACKAGE_NAME='iec16022'
730 PACKAGE_TARNAME='iec16022'
731 PACKAGE_VERSION='0.2.3'
732 PACKAGE_STRING='iec16022 0.2.3'
733 PACKAGE_BUGREPORT='stefan@datenfreihafen.org'
735 # Factoring default headers for most tests.
736 ac_includes_default="\
738 #ifdef HAVE_SYS_TYPES_H
739 # include <sys/types.h>
741 #ifdef HAVE_SYS_STAT_H
742 # include <sys/stat.h>
748 # ifdef HAVE_STDLIB_H
753 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
758 #ifdef HAVE_STRINGS_H
759 # include <strings.h>
761 #ifdef HAVE_INTTYPES_H
762 # include <inttypes.h>
780 program_transform_name
821 INSTALL_STRIP_PROGRAM
830 MAINTAINER_MODE_FALSE
880 ac_precious_vars='build_alias
897 # Initialize some variables set by options.
899 ac_init_version=false
900 # The variables have the same names as the options, with
901 # dashes changed to underlines.
909 program_transform_name=s,x,x,
917 # Installation directory options.
918 # These are left unexpanded so users can "make install exec_prefix=/foo"
919 # and all the variables that are supposed to be based on exec_prefix
920 # by default will actually change.
921 # Use braces instead of parens because sh, perl, etc. also accept them.
922 # (The list follows the same order as the GNU Coding Standards.)
923 bindir='${exec_prefix}/bin'
924 sbindir='${exec_prefix}/sbin'
925 libexecdir='${exec_prefix}/libexec'
926 datarootdir='${prefix}/share'
927 datadir='${datarootdir}'
928 sysconfdir='${prefix}/etc'
929 sharedstatedir='${prefix}/com'
930 localstatedir='${prefix}/var'
931 includedir='${prefix}/include'
932 oldincludedir='/usr/include'
933 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
934 infodir='${datarootdir}/info'
939 libdir='${exec_prefix}/lib'
940 localedir='${datarootdir}/locale'
941 mandir='${datarootdir}/man'
947 # If the previous option needs an argument, assign it.
948 if test -n "$ac_prev"; then
949 eval $ac_prev=\$ac_option
955 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
959 # Accept the important Cygnus configure options, so we can diagnose typos.
961 case $ac_dashdash$ac_option in
965 -bindir | --bindir | --bindi | --bind | --bin | --bi)
967 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
970 -build | --build | --buil | --bui | --bu)
971 ac_prev=build_alias ;;
972 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
973 build_alias=$ac_optarg ;;
975 -cache-file | --cache-file | --cache-fil | --cache-fi \
976 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
977 ac_prev=cache_file ;;
978 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
979 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
980 cache_file=$ac_optarg ;;
983 cache_file=config.cache ;;
985 -datadir | --datadir | --datadi | --datad)
987 -datadir=* | --datadir=* | --datadi=* | --datad=*)
988 datadir=$ac_optarg ;;
990 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
991 | --dataroo | --dataro | --datar)
992 ac_prev=datarootdir ;;
993 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
994 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
995 datarootdir=$ac_optarg ;;
997 -disable-* | --disable-*)
998 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
999 # Reject names that are not valid shell variable names.
1000 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1001 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1002 { (exit 1); exit 1; }; }
1003 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1004 eval enable_$ac_feature=no ;;
1006 -docdir | --docdir | --docdi | --doc | --do)
1008 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1009 docdir=$ac_optarg ;;
1011 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1013 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1014 dvidir=$ac_optarg ;;
1016 -enable-* | --enable-*)
1017 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1018 # Reject names that are not valid shell variable names.
1019 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1020 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1021 { (exit 1); exit 1; }; }
1022 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1023 eval enable_$ac_feature=\$ac_optarg ;;
1025 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1026 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1027 | --exec | --exe | --ex)
1028 ac_prev=exec_prefix ;;
1029 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1030 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1031 | --exec=* | --exe=* | --ex=*)
1032 exec_prefix=$ac_optarg ;;
1034 -gas | --gas | --ga | --g)
1035 # Obsolete; use --with-gas.
1038 -help | --help | --hel | --he | -h)
1039 ac_init_help=long ;;
1040 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1041 ac_init_help=recursive ;;
1042 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1043 ac_init_help=short ;;
1045 -host | --host | --hos | --ho)
1046 ac_prev=host_alias ;;
1047 -host=* | --host=* | --hos=* | --ho=*)
1048 host_alias=$ac_optarg ;;
1050 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1052 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1054 htmldir=$ac_optarg ;;
1056 -includedir | --includedir | --includedi | --included | --include \
1057 | --includ | --inclu | --incl | --inc)
1058 ac_prev=includedir ;;
1059 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1060 | --includ=* | --inclu=* | --incl=* | --inc=*)
1061 includedir=$ac_optarg ;;
1063 -infodir | --infodir | --infodi | --infod | --info | --inf)
1065 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1066 infodir=$ac_optarg ;;
1068 -libdir | --libdir | --libdi | --libd)
1070 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1071 libdir=$ac_optarg ;;
1073 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1074 | --libexe | --libex | --libe)
1075 ac_prev=libexecdir ;;
1076 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1077 | --libexe=* | --libex=* | --libe=*)
1078 libexecdir=$ac_optarg ;;
1080 -localedir | --localedir | --localedi | --localed | --locale)
1081 ac_prev=localedir ;;
1082 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1083 localedir=$ac_optarg ;;
1085 -localstatedir | --localstatedir | --localstatedi | --localstated \
1086 | --localstate | --localstat | --localsta | --localst | --locals)
1087 ac_prev=localstatedir ;;
1088 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1089 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1090 localstatedir=$ac_optarg ;;
1092 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1094 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1095 mandir=$ac_optarg ;;
1097 -nfp | --nfp | --nf)
1098 # Obsolete; use --without-fp.
1101 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1102 | --no-cr | --no-c | -n)
1105 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1106 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1109 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1110 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1111 | --oldin | --oldi | --old | --ol | --o)
1112 ac_prev=oldincludedir ;;
1113 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1114 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1115 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1116 oldincludedir=$ac_optarg ;;
1118 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1120 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1121 prefix=$ac_optarg ;;
1123 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1124 | --program-pre | --program-pr | --program-p)
1125 ac_prev=program_prefix ;;
1126 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1127 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1128 program_prefix=$ac_optarg ;;
1130 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1131 | --program-suf | --program-su | --program-s)
1132 ac_prev=program_suffix ;;
1133 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1134 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1135 program_suffix=$ac_optarg ;;
1137 -program-transform-name | --program-transform-name \
1138 | --program-transform-nam | --program-transform-na \
1139 | --program-transform-n | --program-transform- \
1140 | --program-transform | --program-transfor \
1141 | --program-transfo | --program-transf \
1142 | --program-trans | --program-tran \
1143 | --progr-tra | --program-tr | --program-t)
1144 ac_prev=program_transform_name ;;
1145 -program-transform-name=* | --program-transform-name=* \
1146 | --program-transform-nam=* | --program-transform-na=* \
1147 | --program-transform-n=* | --program-transform-=* \
1148 | --program-transform=* | --program-transfor=* \
1149 | --program-transfo=* | --program-transf=* \
1150 | --program-trans=* | --program-tran=* \
1151 | --progr-tra=* | --program-tr=* | --program-t=*)
1152 program_transform_name=$ac_optarg ;;
1154 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1156 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1157 pdfdir=$ac_optarg ;;
1159 -psdir | --psdir | --psdi | --psd | --ps)
1161 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1164 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1165 | -silent | --silent | --silen | --sile | --sil)
1168 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1170 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1172 sbindir=$ac_optarg ;;
1174 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1175 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1176 | --sharedst | --shareds | --shared | --share | --shar \
1178 ac_prev=sharedstatedir ;;
1179 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1180 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1181 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1183 sharedstatedir=$ac_optarg ;;
1185 -site | --site | --sit)
1187 -site=* | --site=* | --sit=*)
1190 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1192 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1193 srcdir=$ac_optarg ;;
1195 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1196 | --syscon | --sysco | --sysc | --sys | --sy)
1197 ac_prev=sysconfdir ;;
1198 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1199 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1200 sysconfdir=$ac_optarg ;;
1202 -target | --target | --targe | --targ | --tar | --ta | --t)
1203 ac_prev=target_alias ;;
1204 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1205 target_alias=$ac_optarg ;;
1207 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1210 -version | --version | --versio | --versi | --vers | -V)
1211 ac_init_version=: ;;
1214 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1215 # Reject names that are not valid shell variable names.
1216 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1217 { echo "$as_me: error: invalid package name: $ac_package" >&2
1218 { (exit 1); exit 1; }; }
1219 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1220 eval with_$ac_package=\$ac_optarg ;;
1222 -without-* | --without-*)
1223 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1224 # Reject names that are not valid shell variable names.
1225 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1226 { echo "$as_me: error: invalid package name: $ac_package" >&2
1227 { (exit 1); exit 1; }; }
1228 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1229 eval with_$ac_package=no ;;
1232 # Obsolete; use --with-x.
1235 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1236 | --x-incl | --x-inc | --x-in | --x-i)
1237 ac_prev=x_includes ;;
1238 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1239 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1240 x_includes=$ac_optarg ;;
1242 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1243 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1244 ac_prev=x_libraries ;;
1245 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1246 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1247 x_libraries=$ac_optarg ;;
1249 -*) { echo "$as_me: error: unrecognized option: $ac_option
1250 Try \`$0 --help' for more information." >&2
1251 { (exit 1); exit 1; }; }
1255 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1256 # Reject names that are not valid shell variable names.
1257 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1258 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1259 { (exit 1); exit 1; }; }
1260 eval $ac_envvar=\$ac_optarg
1261 export $ac_envvar ;;
1264 # FIXME: should be removed in autoconf 3.0.
1265 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1266 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1267 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1268 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1274 if test -n "$ac_prev"; then
1275 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1276 { echo "$as_me: error: missing argument to $ac_option" >&2
1277 { (exit 1); exit 1; }; }
1280 # Be sure to have absolute directory names.
1281 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1282 datadir sysconfdir sharedstatedir localstatedir includedir \
1283 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1284 libdir localedir mandir
1286 eval ac_val=\$$ac_var
1288 [\\/$]* | ?:[\\/]* ) continue;;
1289 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1291 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1292 { (exit 1); exit 1; }; }
1295 # There might be people who depend on the old broken behavior: `$host'
1296 # used to hold the argument of --host etc.
1297 # FIXME: To remove some day.
1300 target=$target_alias
1302 # FIXME: To remove some day.
1303 if test "x$host_alias" != x; then
1304 if test "x$build_alias" = x; then
1305 cross_compiling=maybe
1306 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1307 If a cross compiler is detected then cross compile mode will be used." >&2
1308 elif test "x$build_alias" != "x$host_alias"; then
1314 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1316 test "$silent" = yes && exec 6>/dev/null
1319 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1320 ac_ls_di=`ls -di .` &&
1321 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1322 { echo "$as_me: error: Working directory cannot be determined" >&2
1323 { (exit 1); exit 1; }; }
1324 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1325 { echo "$as_me: error: pwd does not report name of working directory" >&2
1326 { (exit 1); exit 1; }; }
1329 # Find the source files, if location was not specified.
1330 if test -z "$srcdir"; then
1331 ac_srcdir_defaulted=yes
1332 # Try the directory containing this script, then the parent directory.
1333 ac_confdir=`$as_dirname -- "$0" ||
1334 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1335 X"$0" : 'X\(//\)[^/]' \| \
1336 X"$0" : 'X\(//\)$' \| \
1337 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1357 if test ! -r "$srcdir/$ac_unique_file"; then
1361 ac_srcdir_defaulted=no
1363 if test ! -r "$srcdir/$ac_unique_file"; then
1364 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1365 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1366 { (exit 1); exit 1; }; }
1368 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1370 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1371 { (exit 1); exit 1; }; }
1373 # When building in place, set srcdir=.
1374 if test "$ac_abs_confdir" = "$ac_pwd"; then
1377 # Remove unnecessary trailing slashes from srcdir.
1378 # Double slashes in file names in object file debugging info
1379 # mess up M-x gdb in Emacs.
1381 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1383 for ac_var in $ac_precious_vars; do
1384 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_env_${ac_var}_value=\$${ac_var}
1386 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1387 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1391 # Report the --help message.
1393 if test "$ac_init_help" = "long"; then
1394 # Omit some internal or obsolete options to make the list less imposing.
1395 # This message is too long to be a string in the A/UX 3.1 sh.
1397 \`configure' configures iec16022 0.2.3 to adapt to many kinds of systems.
1399 Usage: $0 [OPTION]... [VAR=VALUE]...
1401 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1402 VAR=VALUE. See below for descriptions of some of the useful variables.
1404 Defaults for the options are specified in brackets.
1407 -h, --help display this help and exit
1408 --help=short display options specific to this package
1409 --help=recursive display the short help of all the included packages
1410 -V, --version display version information and exit
1411 -q, --quiet, --silent do not print \`checking...' messages
1412 --cache-file=FILE cache test results in FILE [disabled]
1413 -C, --config-cache alias for \`--cache-file=config.cache'
1414 -n, --no-create do not create output files
1415 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1417 Installation directories:
1418 --prefix=PREFIX install architecture-independent files in PREFIX
1419 [$ac_default_prefix]
1420 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1423 By default, \`make install' will install all the files in
1424 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1425 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1426 for instance \`--prefix=\$HOME'.
1428 For better control, use the options below.
1430 Fine tuning of the installation directories:
1431 --bindir=DIR user executables [EPREFIX/bin]
1432 --sbindir=DIR system admin executables [EPREFIX/sbin]
1433 --libexecdir=DIR program executables [EPREFIX/libexec]
1434 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1435 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1436 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1437 --libdir=DIR object code libraries [EPREFIX/lib]
1438 --includedir=DIR C header files [PREFIX/include]
1439 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1440 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1441 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1442 --infodir=DIR info documentation [DATAROOTDIR/info]
1443 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1444 --mandir=DIR man documentation [DATAROOTDIR/man]
1445 --docdir=DIR documentation root [DATAROOTDIR/doc/iec16022]
1446 --htmldir=DIR html documentation [DOCDIR]
1447 --dvidir=DIR dvi documentation [DOCDIR]
1448 --pdfdir=DIR pdf documentation [DOCDIR]
1449 --psdir=DIR ps documentation [DOCDIR]
1455 --program-prefix=PREFIX prepend PREFIX to installed program names
1456 --program-suffix=SUFFIX append SUFFIX to installed program names
1457 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1460 --build=BUILD configure for building on BUILD [guessed]
1461 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1465 if test -n "$ac_init_help"; then
1466 case $ac_init_help in
1467 short | recursive ) echo "Configuration of iec16022 0.2.3:";;
1472 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1473 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1474 --enable-maintainer-mode enable make rules and dependencies not useful
1475 (and sometimes confusing) to the casual installer
1476 --disable-dependency-tracking speeds up one-time build
1477 --enable-dependency-tracking do not reject slow dependency extractors
1478 --enable-shared[=PKGS] build shared libraries [default=yes]
1479 --enable-static[=PKGS] build static libraries [default=yes]
1480 --enable-fast-install[=PKGS]
1481 optimize for fast installation [default=yes]
1482 --disable-libtool-lock avoid locking (might break parallel builds)
1485 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1486 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1487 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1488 --with-pic try to use only PIC/non-PIC objects [default=use
1490 --with-tags[=TAGS] include additional configurations [automatic]
1492 Some influential environment variables:
1493 CC C compiler command
1494 CFLAGS C compiler flags
1495 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1496 nonstandard directory <lib dir>
1497 LIBS libraries to pass to the linker, e.g. -l<library>
1498 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1499 you have headers in a nonstandard directory <include dir>
1501 CXX C++ compiler command
1502 CXXFLAGS C++ compiler flags
1503 CXXCPP C++ preprocessor
1504 F77 Fortran 77 compiler command
1505 FFLAGS Fortran 77 compiler flags
1507 Use these variables to override the choices made by `configure' or to help
1508 it to find libraries and programs with nonstandard names/locations.
1510 Report bugs to <stefan@datenfreihafen.org>.
1515 if test "$ac_init_help" = "recursive"; then
1516 # If there are subdirs, report their specific --help.
1517 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1518 test -d "$ac_dir" || continue
1522 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1524 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1525 # A ".." for each directory in $ac_dir_suffix.
1526 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1527 case $ac_top_builddir_sub in
1528 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1529 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1532 ac_abs_top_builddir=$ac_pwd
1533 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1534 # for backward compatibility:
1535 ac_top_builddir=$ac_top_build_prefix
1538 .) # We are building in place.
1540 ac_top_srcdir=$ac_top_builddir_sub
1541 ac_abs_top_srcdir=$ac_pwd ;;
1542 [\\/]* | ?:[\\/]* ) # Absolute name.
1543 ac_srcdir=$srcdir$ac_dir_suffix;
1544 ac_top_srcdir=$srcdir
1545 ac_abs_top_srcdir=$srcdir ;;
1547 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1548 ac_top_srcdir=$ac_top_build_prefix$srcdir
1549 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1551 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1553 cd "$ac_dir" || { ac_status=$?; continue; }
1554 # Check for guested configure.
1555 if test -f "$ac_srcdir/configure.gnu"; then
1557 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1558 elif test -f "$ac_srcdir/configure"; then
1560 $SHELL "$ac_srcdir/configure" --help=recursive
1562 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1564 cd "$ac_pwd" || { ac_status=$?; break; }
1568 test -n "$ac_init_help" && exit $ac_status
1569 if $ac_init_version; then
1571 iec16022 configure 0.2.3
1572 generated by GNU Autoconf 2.61
1574 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1575 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1576 This configure script is free software; the Free Software Foundation
1577 gives unlimited permission to copy, distribute and modify it.
1581 cat >config.log <<_ACEOF
1582 This file contains any messages produced by compilers while
1583 running configure, to aid debugging if configure makes a mistake.
1585 It was created by iec16022 $as_me 0.2.3, which was
1586 generated by GNU Autoconf 2.61. Invocation command line was
1598 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1599 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1600 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1601 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1602 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1604 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1605 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1607 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1608 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1609 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1610 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1611 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1612 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1613 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1621 test -z "$as_dir" && as_dir=.
1622 echo "PATH: $as_dir"
1638 # Keep a trace of the command line.
1639 # Strip out --no-create and --no-recursion so they do not pile up.
1640 # Strip out --silent because we don't want to record it for future runs.
1641 # Also quote any args containing shell meta-characters.
1642 # Make two passes to allow for proper duplicate-argument suppression.
1646 ac_must_keep_next=false
1652 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1653 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1654 | -silent | --silent | --silen | --sile | --sil)
1657 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1660 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1662 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1663 if test $ac_must_keep_next = true; then
1664 ac_must_keep_next=false # Got value, back to normal.
1667 *=* | --config-cache | -C | -disable-* | --disable-* \
1668 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1669 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1670 | -with-* | --with-* | -without-* | --without-* | --x)
1671 case "$ac_configure_args0 " in
1672 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1675 -* ) ac_must_keep_next=true ;;
1678 ac_configure_args="$ac_configure_args '$ac_arg'"
1683 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1684 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1686 # When interrupted or exit'd, cleanup temporary files, and complete
1687 # config.log. We remove comments because anyway the quotes in there
1688 # would cause problems or look ugly.
1689 # WARNING: Use '\'' to represent an apostrophe within the trap.
1690 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1691 trap 'exit_status=$?
1692 # Save into config.log some information that might help in debugging.
1697 ## ---------------- ##
1698 ## Cache variables. ##
1699 ## ---------------- ##
1702 # The following way of writing the cache mishandles newlines in values,
1704 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1705 eval ac_val=\$$ac_var
1709 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1710 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1713 _ | IFS | as_nl) ;; #(
1714 *) $as_unset $ac_var ;;
1719 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1720 *${as_nl}ac_space=\ *)
1722 "s/'\''/'\''\\\\'\'''\''/g;
1723 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1726 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1734 ## ----------------- ##
1735 ## Output variables. ##
1736 ## ----------------- ##
1739 for ac_var in $ac_subst_vars
1741 eval ac_val=\$$ac_var
1743 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1745 echo "$ac_var='\''$ac_val'\''"
1749 if test -n "$ac_subst_files"; then
1751 ## ------------------- ##
1752 ## File substitutions. ##
1753 ## ------------------- ##
1756 for ac_var in $ac_subst_files
1758 eval ac_val=\$$ac_var
1760 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1762 echo "$ac_var='\''$ac_val'\''"
1767 if test -s confdefs.h; then
1777 test "$ac_signal" != 0 &&
1778 echo "$as_me: caught signal $ac_signal"
1779 echo "$as_me: exit $exit_status"
1781 rm -f core *.core core.conftest.* &&
1782 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1785 for ac_signal in 1 2 13 15; do
1786 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1790 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1791 rm -f -r conftest* confdefs.h
1793 # Predefined preprocessor variables.
1795 cat >>confdefs.h <<_ACEOF
1796 #define PACKAGE_NAME "$PACKAGE_NAME"
1800 cat >>confdefs.h <<_ACEOF
1801 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1805 cat >>confdefs.h <<_ACEOF
1806 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE_STRING "$PACKAGE_STRING"
1815 cat >>confdefs.h <<_ACEOF
1816 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1820 # Let the site file select an alternate cache file if it wants to.
1821 # Prefer explicitly selected file to automatically selected ones.
1822 if test -n "$CONFIG_SITE"; then
1823 set x "$CONFIG_SITE"
1824 elif test "x$prefix" != xNONE; then
1825 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1827 set x "$ac_default_prefix/share/config.site" \
1828 "$ac_default_prefix/etc/config.site"
1833 if test -r "$ac_site_file"; then
1834 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1835 echo "$as_me: loading site script $ac_site_file" >&6;}
1836 sed 's/^/| /' "$ac_site_file" >&5
1841 if test -r "$cache_file"; then
1842 # Some versions of bash will fail to source /dev/null (special
1843 # files actually), so we avoid doing that.
1844 if test -f "$cache_file"; then
1845 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1846 echo "$as_me: loading cache $cache_file" >&6;}
1848 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1849 *) . "./$cache_file";;
1853 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1854 echo "$as_me: creating cache $cache_file" >&6;}
1858 # Check that the precious variables saved in the cache have kept the same
1860 ac_cache_corrupted=false
1861 for ac_var in $ac_precious_vars; do
1862 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1863 eval ac_new_set=\$ac_env_${ac_var}_set
1864 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1865 eval ac_new_val=\$ac_env_${ac_var}_value
1866 case $ac_old_set,$ac_new_set in
1868 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1869 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1870 ac_cache_corrupted=: ;;
1872 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1873 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1874 ac_cache_corrupted=: ;;
1877 if test "x$ac_old_val" != "x$ac_new_val"; then
1878 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1879 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1880 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1881 echo "$as_me: former value: $ac_old_val" >&2;}
1882 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1883 echo "$as_me: current value: $ac_new_val" >&2;}
1884 ac_cache_corrupted=:
1887 # Pass precious variables to config.status.
1888 if test "$ac_new_set" = set; then
1890 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1891 *) ac_arg=$ac_var=$ac_new_val ;;
1893 case " $ac_configure_args " in
1894 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1895 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1899 if $ac_cache_corrupted; then
1900 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1901 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1902 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1903 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1904 { (exit 1); exit 1; }; }
1932 ac_cpp='$CPP $CPPFLAGS'
1933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1938 am__api_version="1.9"
1940 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1941 if test -f "$ac_dir/install-sh"; then
1943 ac_install_sh="$ac_aux_dir/install-sh -c"
1945 elif test -f "$ac_dir/install.sh"; then
1947 ac_install_sh="$ac_aux_dir/install.sh -c"
1949 elif test -f "$ac_dir/shtool"; then
1951 ac_install_sh="$ac_aux_dir/shtool install -c"
1955 if test -z "$ac_aux_dir"; then
1956 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1957 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1958 { (exit 1); exit 1; }; }
1961 # These three variables are undocumented and unsupported,
1962 # and are intended to be withdrawn in a future Autoconf release.
1963 # They can cause serious problems if a builder's source tree is in a directory
1964 # whose full name contains unusual characters.
1965 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1966 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1967 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1970 # Find a good install program. We prefer a C program (faster),
1971 # so one script is as good as another. But avoid the broken or
1972 # incompatible versions:
1973 # SysV /etc/install, /usr/sbin/install
1974 # SunOS /usr/etc/install
1975 # IRIX /sbin/install
1977 # AmigaOS /C/install, which installs bootblocks on floppy discs
1978 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1979 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1980 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1981 # OS/2's system install, which has a completely different semantic
1982 # ./install, which can be erroneously created by make from ./install.sh.
1983 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1984 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1985 if test -z "$INSTALL"; then
1986 if test "${ac_cv_path_install+set}" = set; then
1987 echo $ECHO_N "(cached) $ECHO_C" >&6
1989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1993 test -z "$as_dir" && as_dir=.
1994 # Account for people who put trailing slashes in PATH elements.
1996 ./ | .// | /cC/* | \
1997 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1998 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2001 # OSF1 and SCO ODT 3.0 have their own names for install.
2002 # Don't use installbsd from OSF since it installs stuff as root
2004 for ac_prog in ginstall scoinst install; do
2005 for ac_exec_ext in '' $ac_executable_extensions; do
2006 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2007 if test $ac_prog = install &&
2008 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2009 # AIX install. It has an incompatible calling convention.
2011 elif test $ac_prog = install &&
2012 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2013 # program-specific install script used by HP pwplus--don't use.
2016 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2029 if test "${ac_cv_path_install+set}" = set; then
2030 INSTALL=$ac_cv_path_install
2032 # As a last resort, use the slow shell script. Don't cache a
2033 # value for INSTALL within a source directory, because that will
2034 # break other packages using the cache if that directory is
2035 # removed, or if the value is a relative name.
2036 INSTALL=$ac_install_sh
2039 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2040 echo "${ECHO_T}$INSTALL" >&6; }
2042 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2043 # It thinks the first close brace ends the variable substitution.
2044 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2046 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2048 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2050 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2051 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2054 echo timestamp > conftest.file
2055 # Do `set' in a subshell so we don't clobber the current shell's
2056 # arguments. Must try -L first in case configure is actually a
2057 # symlink; some systems play weird games with the mod time of symlinks
2058 # (eg FreeBSD returns the mod time of the symlink's containing
2061 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2062 if test "$*" = "X"; then
2064 set X `ls -t $srcdir/configure conftest.file`
2067 if test "$*" != "X $srcdir/configure conftest.file" \
2068 && test "$*" != "X conftest.file $srcdir/configure"; then
2070 # If neither matched, then we have a broken ls. This can happen
2071 # if, for instance, CONFIG_SHELL is bash and it inherits a
2072 # broken ls alias from the environment. This has actually
2073 # happened. Such a system could not be considered "sane".
2074 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2075 alias in your environment" >&5
2076 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2077 alias in your environment" >&2;}
2078 { (exit 1); exit 1; }; }
2081 test "$2" = conftest.file
2087 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2088 Check your system clock" >&5
2089 echo "$as_me: error: newly created file is older than distributed files!
2090 Check your system clock" >&2;}
2091 { (exit 1); exit 1; }; }
2093 { echo "$as_me:$LINENO: result: yes" >&5
2094 echo "${ECHO_T}yes" >&6; }
2095 test "$program_prefix" != NONE &&
2096 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2097 # Use a double $ so make ignores it.
2098 test "$program_suffix" != NONE &&
2099 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2100 # Double any \ or $. echo might interpret backslashes.
2101 # By default was `s,x,x', remove it if useless.
2102 cat <<\_ACEOF >conftest.sed
2103 s/[\\$]/&&/g;s/;s,x,x,$//
2105 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2108 # expand $ac_aux_dir to an absolute path
2109 am_aux_dir=`cd $ac_aux_dir && pwd`
2111 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2112 # Use eval to expand $SHELL
2113 if eval "$MISSING --run true"; then
2114 am_missing_run="$MISSING --run "
2117 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2118 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2121 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2122 # We used to keeping the `.' as first argument, in order to
2123 # allow $(mkdir_p) to be used without argument. As in
2124 # $(mkdir_p) $(somedir)
2125 # where $(somedir) is conditionally defined. However this is wrong
2127 # 1. if the package is installed by a user who cannot write `.'
2128 # make install will fail,
2129 # 2. the above comment should most certainly read
2130 # $(mkdir_p) $(DESTDIR)$(somedir)
2131 # so it does not work when $(somedir) is undefined and
2132 # $(DESTDIR) is not.
2133 # To support the latter case, we have to write
2134 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2135 # so the `.' trick is pointless.
2136 mkdir_p='mkdir -p --'
2138 # On NextStep and OpenStep, the `mkdir' command does not
2139 # recognize any option. It will interpret all options as
2140 # directories to create, and then abort because `.' already
2142 for d in ./-p ./--version;
2144 test -d $d && rmdir $d
2146 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2147 if test -f "$ac_aux_dir/mkinstalldirs"; then
2148 mkdir_p='$(mkinstalldirs)'
2150 mkdir_p='$(install_sh) -d'
2154 for ac_prog in gawk mawk nawk awk
2156 # Extract the first word of "$ac_prog", so it can be a program name with args.
2157 set dummy $ac_prog; ac_word=$2
2158 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2160 if test "${ac_cv_prog_AWK+set}" = set; then
2161 echo $ECHO_N "(cached) $ECHO_C" >&6
2163 if test -n "$AWK"; then
2164 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2170 test -z "$as_dir" && as_dir=.
2171 for ac_exec_ext in '' $ac_executable_extensions; do
2172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2173 ac_cv_prog_AWK="$ac_prog"
2174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2184 if test -n "$AWK"; then
2185 { echo "$as_me:$LINENO: result: $AWK" >&5
2186 echo "${ECHO_T}$AWK" >&6; }
2188 { echo "$as_me:$LINENO: result: no" >&5
2189 echo "${ECHO_T}no" >&6; }
2193 test -n "$AWK" && break
2196 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2197 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2198 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2199 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2200 echo $ECHO_N "(cached) $ECHO_C" >&6
2202 cat >conftest.make <<\_ACEOF
2205 @echo '@@@%%%=$(MAKE)=@@@%%%'
2207 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2208 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2210 eval ac_cv_prog_make_${ac_make}_set=yes;;
2212 eval ac_cv_prog_make_${ac_make}_set=no;;
2216 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2217 { echo "$as_me:$LINENO: result: yes" >&5
2218 echo "${ECHO_T}yes" >&6; }
2221 { echo "$as_me:$LINENO: result: no" >&5
2222 echo "${ECHO_T}no" >&6; }
2223 SET_MAKE="MAKE=${MAKE-make}"
2226 rm -rf .tst 2>/dev/null
2227 mkdir .tst 2>/dev/null
2228 if test -d .tst; then
2233 rmdir .tst 2>/dev/null
2235 # test to see if srcdir already configured
2236 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2237 test -f $srcdir/config.status; then
2238 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2239 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2240 { (exit 1); exit 1; }; }
2243 # test whether we have cygpath
2244 if test -z "$CYGPATH_W"; then
2245 if (cygpath --version) >/dev/null 2>/dev/null; then
2246 CYGPATH_W='cygpath -w'
2253 # Define the identity of the package.
2258 cat >>confdefs.h <<_ACEOF
2259 #define PACKAGE "$PACKAGE"
2263 cat >>confdefs.h <<_ACEOF
2264 #define VERSION "$VERSION"
2267 # Some tools Automake needs.
2269 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2272 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2275 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2278 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2281 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2283 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2285 # Installed binaries are usually stripped using `strip' when the user
2286 # run `make install-strip'. However `strip' might not be the right
2287 # tool to use in cross-compilation environments, therefore Automake
2288 # will honor the `STRIP' environment variable to overrule this program.
2289 if test "$cross_compiling" != no; then
2290 if test -n "$ac_tool_prefix"; then
2291 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2292 set dummy ${ac_tool_prefix}strip; ac_word=$2
2293 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2295 if test "${ac_cv_prog_STRIP+set}" = set; then
2296 echo $ECHO_N "(cached) $ECHO_C" >&6
2298 if test -n "$STRIP"; then
2299 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2305 test -z "$as_dir" && as_dir=.
2306 for ac_exec_ext in '' $ac_executable_extensions; do
2307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2308 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2318 STRIP=$ac_cv_prog_STRIP
2319 if test -n "$STRIP"; then
2320 { echo "$as_me:$LINENO: result: $STRIP" >&5
2321 echo "${ECHO_T}$STRIP" >&6; }
2323 { echo "$as_me:$LINENO: result: no" >&5
2324 echo "${ECHO_T}no" >&6; }
2329 if test -z "$ac_cv_prog_STRIP"; then
2331 # Extract the first word of "strip", so it can be a program name with args.
2332 set dummy strip; ac_word=$2
2333 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2335 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2336 echo $ECHO_N "(cached) $ECHO_C" >&6
2338 if test -n "$ac_ct_STRIP"; then
2339 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2345 test -z "$as_dir" && as_dir=.
2346 for ac_exec_ext in '' $ac_executable_extensions; do
2347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2348 ac_cv_prog_ac_ct_STRIP="strip"
2349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2358 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2359 if test -n "$ac_ct_STRIP"; then
2360 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2361 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2363 { echo "$as_me:$LINENO: result: no" >&5
2364 echo "${ECHO_T}no" >&6; }
2367 if test "x$ac_ct_STRIP" = x; then
2370 case $cross_compiling:$ac_tool_warned in
2372 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2373 whose name does not start with the host triplet. If you think this
2374 configuration is useful to you, please write to autoconf@gnu.org." >&5
2375 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2376 whose name does not start with the host triplet. If you think this
2377 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2378 ac_tool_warned=yes ;;
2383 STRIP="$ac_cv_prog_STRIP"
2387 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2389 # We need awk for the "check" target. The system "awk" is bad on
2391 # Always define AMTAR for backward compatibility.
2393 AMTAR=${AMTAR-"${am_missing_run}tar"}
2395 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2401 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2402 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2403 # Check whether --enable-maintainer-mode was given.
2404 if test "${enable_maintainer_mode+set}" = set; then
2405 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2407 USE_MAINTAINER_MODE=no
2410 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2411 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2414 if test $USE_MAINTAINER_MODE = yes; then
2415 MAINTAINER_MODE_TRUE=
2416 MAINTAINER_MODE_FALSE='#'
2418 MAINTAINER_MODE_TRUE='#'
2419 MAINTAINER_MODE_FALSE=
2422 MAINT=$MAINTAINER_MODE_TRUE
2426 ac_config_headers="$ac_config_headers config.h"
2430 ac_cpp='$CPP $CPPFLAGS'
2431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2434 if test -n "$ac_tool_prefix"; then
2435 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2436 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2439 if test "${ac_cv_prog_CC+set}" = set; then
2440 echo $ECHO_N "(cached) $ECHO_C" >&6
2442 if test -n "$CC"; then
2443 ac_cv_prog_CC="$CC" # Let the user override the test.
2445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449 test -z "$as_dir" && as_dir=.
2450 for ac_exec_ext in '' $ac_executable_extensions; do
2451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2452 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2463 if test -n "$CC"; then
2464 { echo "$as_me:$LINENO: result: $CC" >&5
2465 echo "${ECHO_T}$CC" >&6; }
2467 { echo "$as_me:$LINENO: result: no" >&5
2468 echo "${ECHO_T}no" >&6; }
2473 if test -z "$ac_cv_prog_CC"; then
2475 # Extract the first word of "gcc", so it can be a program name with args.
2476 set dummy gcc; ac_word=$2
2477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2479 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2480 echo $ECHO_N "(cached) $ECHO_C" >&6
2482 if test -n "$ac_ct_CC"; then
2483 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489 test -z "$as_dir" && as_dir=.
2490 for ac_exec_ext in '' $ac_executable_extensions; do
2491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2492 ac_cv_prog_ac_ct_CC="gcc"
2493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2502 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2503 if test -n "$ac_ct_CC"; then
2504 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2505 echo "${ECHO_T}$ac_ct_CC" >&6; }
2507 { echo "$as_me:$LINENO: result: no" >&5
2508 echo "${ECHO_T}no" >&6; }
2511 if test "x$ac_ct_CC" = x; then
2514 case $cross_compiling:$ac_tool_warned in
2516 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2517 whose name does not start with the host triplet. If you think this
2518 configuration is useful to you, please write to autoconf@gnu.org." >&5
2519 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2520 whose name does not start with the host triplet. If you think this
2521 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2522 ac_tool_warned=yes ;;
2530 if test -z "$CC"; then
2531 if test -n "$ac_tool_prefix"; then
2532 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2533 set dummy ${ac_tool_prefix}cc; ac_word=$2
2534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2536 if test "${ac_cv_prog_CC+set}" = set; then
2537 echo $ECHO_N "(cached) $ECHO_C" >&6
2539 if test -n "$CC"; then
2540 ac_cv_prog_CC="$CC" # Let the user override the test.
2542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546 test -z "$as_dir" && as_dir=.
2547 for ac_exec_ext in '' $ac_executable_extensions; do
2548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2549 ac_cv_prog_CC="${ac_tool_prefix}cc"
2550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2560 if test -n "$CC"; then
2561 { echo "$as_me:$LINENO: result: $CC" >&5
2562 echo "${ECHO_T}$CC" >&6; }
2564 { echo "$as_me:$LINENO: result: no" >&5
2565 echo "${ECHO_T}no" >&6; }
2571 if test -z "$CC"; then
2572 # Extract the first word of "cc", so it can be a program name with args.
2573 set dummy cc; ac_word=$2
2574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2576 if test "${ac_cv_prog_CC+set}" = set; then
2577 echo $ECHO_N "(cached) $ECHO_C" >&6
2579 if test -n "$CC"; then
2580 ac_cv_prog_CC="$CC" # Let the user override the test.
2583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587 test -z "$as_dir" && as_dir=.
2588 for ac_exec_ext in '' $ac_executable_extensions; do
2589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2590 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2591 ac_prog_rejected=yes
2595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2602 if test $ac_prog_rejected = yes; then
2603 # We found a bogon in the path, so make sure we never use it.
2604 set dummy $ac_cv_prog_CC
2606 if test $# != 0; then
2607 # We chose a different compiler from the bogus one.
2608 # However, it has the same basename, so the bogon will be chosen
2609 # first if we set CC to just the basename; use the full file name.
2611 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2617 if test -n "$CC"; then
2618 { echo "$as_me:$LINENO: result: $CC" >&5
2619 echo "${ECHO_T}$CC" >&6; }
2621 { echo "$as_me:$LINENO: result: no" >&5
2622 echo "${ECHO_T}no" >&6; }
2627 if test -z "$CC"; then
2628 if test -n "$ac_tool_prefix"; then
2629 for ac_prog in cl.exe
2631 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2632 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2635 if test "${ac_cv_prog_CC+set}" = set; then
2636 echo $ECHO_N "(cached) $ECHO_C" >&6
2638 if test -n "$CC"; then
2639 ac_cv_prog_CC="$CC" # Let the user override the test.
2641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645 test -z "$as_dir" && as_dir=.
2646 for ac_exec_ext in '' $ac_executable_extensions; do
2647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2648 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2659 if test -n "$CC"; then
2660 { echo "$as_me:$LINENO: result: $CC" >&5
2661 echo "${ECHO_T}$CC" >&6; }
2663 { echo "$as_me:$LINENO: result: no" >&5
2664 echo "${ECHO_T}no" >&6; }
2668 test -n "$CC" && break
2671 if test -z "$CC"; then
2673 for ac_prog in cl.exe
2675 # Extract the first word of "$ac_prog", so it can be a program name with args.
2676 set dummy $ac_prog; ac_word=$2
2677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2679 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2680 echo $ECHO_N "(cached) $ECHO_C" >&6
2682 if test -n "$ac_ct_CC"; then
2683 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689 test -z "$as_dir" && as_dir=.
2690 for ac_exec_ext in '' $ac_executable_extensions; do
2691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2692 ac_cv_prog_ac_ct_CC="$ac_prog"
2693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2702 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2703 if test -n "$ac_ct_CC"; then
2704 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2705 echo "${ECHO_T}$ac_ct_CC" >&6; }
2707 { echo "$as_me:$LINENO: result: no" >&5
2708 echo "${ECHO_T}no" >&6; }
2712 test -n "$ac_ct_CC" && break
2715 if test "x$ac_ct_CC" = x; then
2718 case $cross_compiling:$ac_tool_warned in
2720 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2721 whose name does not start with the host triplet. If you think this
2722 configuration is useful to you, please write to autoconf@gnu.org." >&5
2723 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2724 whose name does not start with the host triplet. If you think this
2725 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2726 ac_tool_warned=yes ;;
2735 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2736 See \`config.log' for more details." >&5
2737 echo "$as_me: error: no acceptable C compiler found in \$PATH
2738 See \`config.log' for more details." >&2;}
2739 { (exit 1); exit 1; }; }
2741 # Provide some information about the compiler.
2742 echo "$as_me:$LINENO: checking for C compiler version" >&5
2743 ac_compiler=`set X $ac_compile; echo $2`
2744 { (ac_try="$ac_compiler --version >&5"
2746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2747 *) ac_try_echo=$ac_try;;
2749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2750 (eval "$ac_compiler --version >&5") 2>&5
2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); }
2754 { (ac_try="$ac_compiler -v >&5"
2756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2757 *) ac_try_echo=$ac_try;;
2759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2760 (eval "$ac_compiler -v >&5") 2>&5
2762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763 (exit $ac_status); }
2764 { (ac_try="$ac_compiler -V >&5"
2766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2767 *) ac_try_echo=$ac_try;;
2769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2770 (eval "$ac_compiler -V >&5") 2>&5
2772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773 (exit $ac_status); }
2775 cat >conftest.$ac_ext <<_ACEOF
2778 cat confdefs.h >>conftest.$ac_ext
2779 cat >>conftest.$ac_ext <<_ACEOF
2780 /* end confdefs.h. */
2790 ac_clean_files_save=$ac_clean_files
2791 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2792 # Try to create an executable without -o first, disregard a.out.
2793 # It will help us diagnose broken compilers, and finding out an intuition
2795 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2796 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2797 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2799 # List of possible output files, starting from the most likely.
2800 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2801 # only as a last resort. b.out is created by i960 compilers.
2802 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2804 # The IRIX 6 linker writes into existing files which may not be
2805 # executable, retaining their permissions. Remove them first so a
2806 # subsequent execution test works.
2808 for ac_file in $ac_files
2811 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2812 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2817 if { (ac_try="$ac_link_default"
2819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2820 *) ac_try_echo=$ac_try;;
2822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2823 (eval "$ac_link_default") 2>&5
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); }; then
2827 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2828 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2829 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2830 # so that the user can short-circuit this test for compilers unknown to
2832 for ac_file in $ac_files ''
2834 test -f "$ac_file" || continue
2836 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2839 # We found the default executable, but exeext='' is most
2843 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2845 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2847 # We set ac_cv_exeext here because the later test for it is not
2848 # safe: cross compilers may not add the suffix if given an `-o'
2849 # argument, so we may need to know it at that point already.
2850 # Even if this section looks crufty: it has the advantage of
2857 test "$ac_cv_exeext" = no && ac_cv_exeext=
2863 { echo "$as_me:$LINENO: result: $ac_file" >&5
2864 echo "${ECHO_T}$ac_file" >&6; }
2865 if test -z "$ac_file"; then
2866 echo "$as_me: failed program was:" >&5
2867 sed 's/^/| /' conftest.$ac_ext >&5
2869 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2870 See \`config.log' for more details." >&5
2871 echo "$as_me: error: C compiler cannot create executables
2872 See \`config.log' for more details." >&2;}
2873 { (exit 77); exit 77; }; }
2876 ac_exeext=$ac_cv_exeext
2878 # Check that the compiler produces executables we can run. If not, either
2879 # the compiler is broken, or we cross compile.
2880 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2881 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2882 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2883 # If not cross compiling, check that we can run a simple program.
2884 if test "$cross_compiling" != yes; then
2885 if { ac_try='./$ac_file'
2886 { (case "(($ac_try" in
2887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2888 *) ac_try_echo=$ac_try;;
2890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2891 (eval "$ac_try") 2>&5
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); }; }; then
2897 if test "$cross_compiling" = maybe; then
2900 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2901 If you meant to cross compile, use \`--host'.
2902 See \`config.log' for more details." >&5
2903 echo "$as_me: error: cannot run C compiled programs.
2904 If you meant to cross compile, use \`--host'.
2905 See \`config.log' for more details." >&2;}
2906 { (exit 1); exit 1; }; }
2910 { echo "$as_me:$LINENO: result: yes" >&5
2911 echo "${ECHO_T}yes" >&6; }
2913 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2914 ac_clean_files=$ac_clean_files_save
2915 # Check that the compiler produces executables we can run. If not, either
2916 # the compiler is broken, or we cross compile.
2917 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2918 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2919 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2920 echo "${ECHO_T}$cross_compiling" >&6; }
2922 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2923 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2924 if { (ac_try="$ac_link"
2926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2927 *) ac_try_echo=$ac_try;;
2929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2930 (eval "$ac_link") 2>&5
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); }; then
2934 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2935 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2936 # work properly (i.e., refer to `conftest.exe'), while it won't with
2938 for ac_file in conftest.exe conftest conftest.*; do
2939 test -f "$ac_file" || continue
2941 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2942 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2948 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2949 See \`config.log' for more details." >&5
2950 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2951 See \`config.log' for more details." >&2;}
2952 { (exit 1); exit 1; }; }
2955 rm -f conftest$ac_cv_exeext
2956 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2957 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2959 rm -f conftest.$ac_ext
2960 EXEEXT=$ac_cv_exeext
2962 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2963 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2964 if test "${ac_cv_objext+set}" = set; then
2965 echo $ECHO_N "(cached) $ECHO_C" >&6
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.o conftest.obj
2983 if { (ac_try="$ac_compile"
2985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986 *) ac_try_echo=$ac_try;;
2988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2989 (eval "$ac_compile") 2>&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); }; then
2993 for ac_file in conftest.o conftest.obj conftest.*; do
2994 test -f "$ac_file" || continue;
2996 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2997 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3002 echo "$as_me: failed program was:" >&5
3003 sed 's/^/| /' conftest.$ac_ext >&5
3005 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3006 See \`config.log' for more details." >&5
3007 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3008 See \`config.log' for more details." >&2;}
3009 { (exit 1); exit 1; }; }
3012 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3014 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3015 echo "${ECHO_T}$ac_cv_objext" >&6; }
3016 OBJEXT=$ac_cv_objext
3018 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3019 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3020 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3021 echo $ECHO_N "(cached) $ECHO_C" >&6
3023 cat >conftest.$ac_ext <<_ACEOF
3026 cat confdefs.h >>conftest.$ac_ext
3027 cat >>conftest.$ac_ext <<_ACEOF
3028 /* end confdefs.h. */
3041 rm -f conftest.$ac_objext
3042 if { (ac_try="$ac_compile"
3044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045 *) ac_try_echo=$ac_try;;
3047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3048 (eval "$ac_compile") 2>conftest.er1
3050 grep -v '^ *+' conftest.er1 >conftest.err
3052 cat conftest.err >&5
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); } && {
3055 test -z "$ac_c_werror_flag" ||
3056 test ! -s conftest.err
3057 } && test -s conftest.$ac_objext; then
3060 echo "$as_me: failed program was:" >&5
3061 sed 's/^/| /' conftest.$ac_ext >&5
3066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3067 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3070 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3071 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3072 GCC=`test $ac_compiler_gnu = yes && echo yes`
3073 ac_test_CFLAGS=${CFLAGS+set}
3074 ac_save_CFLAGS=$CFLAGS
3075 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3076 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3077 if test "${ac_cv_prog_cc_g+set}" = set; then
3078 echo $ECHO_N "(cached) $ECHO_C" >&6
3080 ac_save_c_werror_flag=$ac_c_werror_flag
3081 ac_c_werror_flag=yes
3084 cat >conftest.$ac_ext <<_ACEOF
3087 cat confdefs.h >>conftest.$ac_ext
3088 cat >>conftest.$ac_ext <<_ACEOF
3089 /* end confdefs.h. */
3099 rm -f conftest.$ac_objext
3100 if { (ac_try="$ac_compile"
3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106 (eval "$ac_compile") 2>conftest.er1
3108 grep -v '^ *+' conftest.er1 >conftest.err
3110 cat conftest.err >&5
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); } && {
3113 test -z "$ac_c_werror_flag" ||
3114 test ! -s conftest.err
3115 } && test -s conftest.$ac_objext; then
3118 echo "$as_me: failed program was:" >&5
3119 sed 's/^/| /' conftest.$ac_ext >&5
3122 cat >conftest.$ac_ext <<_ACEOF
3125 cat confdefs.h >>conftest.$ac_ext
3126 cat >>conftest.$ac_ext <<_ACEOF
3127 /* end confdefs.h. */
3137 rm -f conftest.$ac_objext
3138 if { (ac_try="$ac_compile"
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3144 (eval "$ac_compile") 2>conftest.er1
3146 grep -v '^ *+' conftest.er1 >conftest.err
3148 cat conftest.err >&5
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); } && {
3151 test -z "$ac_c_werror_flag" ||
3152 test ! -s conftest.err
3153 } && test -s conftest.$ac_objext; then
3156 echo "$as_me: failed program was:" >&5
3157 sed 's/^/| /' conftest.$ac_ext >&5
3159 ac_c_werror_flag=$ac_save_c_werror_flag
3161 cat >conftest.$ac_ext <<_ACEOF
3164 cat confdefs.h >>conftest.$ac_ext
3165 cat >>conftest.$ac_ext <<_ACEOF
3166 /* end confdefs.h. */
3176 rm -f conftest.$ac_objext
3177 if { (ac_try="$ac_compile"
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183 (eval "$ac_compile") 2>conftest.er1
3185 grep -v '^ *+' conftest.er1 >conftest.err
3187 cat conftest.err >&5
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); } && {
3190 test -z "$ac_c_werror_flag" ||
3191 test ! -s conftest.err
3192 } && test -s conftest.$ac_objext; then
3195 echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.$ac_ext >&5
3201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3208 ac_c_werror_flag=$ac_save_c_werror_flag
3210 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3211 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3212 if test "$ac_test_CFLAGS" = set; then
3213 CFLAGS=$ac_save_CFLAGS
3214 elif test $ac_cv_prog_cc_g = yes; then
3215 if test "$GCC" = yes; then
3221 if test "$GCC" = yes; then
3227 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3228 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3229 if test "${ac_cv_prog_cc_c89+set}" = set; then
3230 echo $ECHO_N "(cached) $ECHO_C" >&6
3232 ac_cv_prog_cc_c89=no
3234 cat >conftest.$ac_ext <<_ACEOF
3237 cat confdefs.h >>conftest.$ac_ext
3238 cat >>conftest.$ac_ext <<_ACEOF
3239 /* end confdefs.h. */
3242 #include <sys/types.h>
3243 #include <sys/stat.h>
3244 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3245 struct buf { int x; };
3246 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3247 static char *e (p, i)
3253 static char *f (char * (*g) (char **, int), char **p, ...)
3258 s = g (p, va_arg (v,int));
3263 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3264 function prototypes and stuff, but not '\xHH' hex character constants.
3265 These don't provoke an error unfortunately, instead are silently treated
3266 as 'x'. The following induces an error, until -std is added to get
3267 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3268 array size at least. It's necessary to write '\x00'==0 to get something
3269 that's true only with -std. */
3270 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3272 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3273 inside strings and character constants. */
3275 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3277 int test (int i, double x);
3278 struct s1 {int (*f) (int a);};
3279 struct s2 {int (*f) (double a);};
3280 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3286 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3291 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3292 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3294 CC="$ac_save_CC $ac_arg"
3295 rm -f conftest.$ac_objext
3296 if { (ac_try="$ac_compile"
3298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299 *) ac_try_echo=$ac_try;;
3301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3302 (eval "$ac_compile") 2>conftest.er1
3304 grep -v '^ *+' conftest.er1 >conftest.err
3306 cat conftest.err >&5
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); } && {
3309 test -z "$ac_c_werror_flag" ||
3310 test ! -s conftest.err
3311 } && test -s conftest.$ac_objext; then
3312 ac_cv_prog_cc_c89=$ac_arg
3314 echo "$as_me: failed program was:" >&5
3315 sed 's/^/| /' conftest.$ac_ext >&5
3320 rm -f core conftest.err conftest.$ac_objext
3321 test "x$ac_cv_prog_cc_c89" != "xno" && break
3323 rm -f conftest.$ac_ext
3328 case "x$ac_cv_prog_cc_c89" in
3330 { echo "$as_me:$LINENO: result: none needed" >&5
3331 echo "${ECHO_T}none needed" >&6; } ;;
3333 { echo "$as_me:$LINENO: result: unsupported" >&5
3334 echo "${ECHO_T}unsupported" >&6; } ;;
3336 CC="$CC $ac_cv_prog_cc_c89"
3337 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3338 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3343 ac_cpp='$CPP $CPPFLAGS'
3344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3347 DEPDIR="${am__leading_dot}deps"
3349 ac_config_commands="$ac_config_commands depfiles"
3352 am_make=${MAKE-make}
3353 cat > confinc << 'END'
3358 # If we don't find an include directive, just comment out the code.
3359 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3360 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3364 # First try GNU make style include.
3365 echo "include confinc" > confmf
3366 # We grep out `Entering directory' and `Leaving directory'
3367 # messages which can occur if `w' ends up in MAKEFLAGS.
3368 # In particular we don't look at `^make:' because GNU make might
3369 # be invoked under some other name (usually "gmake"), in which
3370 # case it prints its new name instead of `make'.
3371 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3376 # Now try BSD make style include.
3377 if test "$am__include" = "#"; then
3378 echo '.include "confinc"' > confmf
3379 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3380 am__include=.include
3387 { echo "$as_me:$LINENO: result: $_am_result" >&5
3388 echo "${ECHO_T}$_am_result" >&6; }
3389 rm -f confinc confmf
3391 # Check whether --enable-dependency-tracking was given.
3392 if test "${enable_dependency_tracking+set}" = set; then
3393 enableval=$enable_dependency_tracking;
3396 if test "x$enable_dependency_tracking" != xno; then
3397 am_depcomp="$ac_aux_dir/depcomp"
3402 if test "x$enable_dependency_tracking" != xno; then
3413 depcc="$CC" am_compiler_list=
3415 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3416 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3417 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3418 echo $ECHO_N "(cached) $ECHO_C" >&6
3420 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3421 # We make a subdir and do the tests there. Otherwise we can end up
3422 # making bogus files that we don't know about and never remove. For
3423 # instance it was reported that on HP-UX the gcc test will end up
3424 # making a dummy file named `D' -- because `-MD' means `put the output
3427 # Copy depcomp to subdir because otherwise we won't find it if we're
3428 # using a relative directory.
3429 cp "$am_depcomp" conftest.dir
3431 # We will build objects and dependencies in a subdirectory because
3432 # it helps to detect inapplicable dependency modes. For instance
3433 # both Tru64's cc and ICC support -MD to output dependencies as a
3434 # side effect of compilation, but ICC will put the dependencies in
3435 # the current directory while Tru64 will put them in the object
3439 am_cv_CC_dependencies_compiler_type=none
3440 if test "$am_compiler_list" = ""; then
3441 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3443 for depmode in $am_compiler_list; do
3444 # Setup a source with many dependencies, because some compilers
3445 # like to wrap large dependency lists on column 80 (with \), and
3446 # we should not choose a depcomp mode which is confused by this.
3448 # We need to recreate these files for each test, as the compiler may
3449 # overwrite some of them when testing with obscure command lines.
3450 # This happens at least with the AIX C compiler.
3452 for i in 1 2 3 4 5 6; do
3453 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3454 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3455 # Solaris 8's {/usr,}/bin/sh.
3456 touch sub/conftst$i.h
3458 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3462 # after this tag, mechanisms are not by side-effect, so they'll
3463 # only be used when explicitly requested
3464 if test "x$enable_dependency_tracking" = xyes; then
3472 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3473 # mode. It turns out that the SunPro C++ compiler does not properly
3474 # handle `-M -o', and we need to detect this.
3475 if depmode=$depmode \
3476 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3477 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3478 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3479 >/dev/null 2>conftest.err &&
3480 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3481 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3482 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3483 # icc doesn't choke on unknown options, it will just issue warnings
3484 # or remarks (even with -Werror). So we grep stderr for any message
3485 # that says an option was ignored or not supported.
3486 # When given -MP, icc 7.0 and 7.1 complain thusly:
3487 # icc: Command line warning: ignoring option '-M'; no argument required
3488 # The diagnosis changed in icc 8.0:
3489 # icc: Command line remark: option '-MP' not supported
3490 if (grep 'ignoring option' conftest.err ||
3491 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3492 am_cv_CC_dependencies_compiler_type=$depmode
3501 am_cv_CC_dependencies_compiler_type=none
3505 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3506 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3507 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3512 test "x$enable_dependency_tracking" != xno \
3513 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3515 am__fastdepCC_FALSE='#'
3517 am__fastdepCC_TRUE='#'
3518 am__fastdepCC_FALSE=
3522 if test "x$CC" != xcc; then
3523 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3524 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3526 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3527 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3529 set dummy $CC; ac_cc=`echo $2 |
3530 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3531 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3532 echo $ECHO_N "(cached) $ECHO_C" >&6
3534 cat >conftest.$ac_ext <<_ACEOF
3537 cat confdefs.h >>conftest.$ac_ext
3538 cat >>conftest.$ac_ext <<_ACEOF
3539 /* end confdefs.h. */
3549 # Make sure it works both with $CC and with simple cc.
3550 # We do the test twice because some compilers refuse to overwrite an
3551 # existing .o file with -o, though they will create one.
3552 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3554 if { (case "(($ac_try" in
3555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3556 *) ac_try_echo=$ac_try;;
3558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3559 (eval "$ac_try") 2>&5
3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); } &&
3563 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565 *) ac_try_echo=$ac_try;;
3567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3568 (eval "$ac_try") 2>&5
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); };
3573 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3574 if test "x$CC" != xcc; then
3575 # Test first that cc exists at all.
3576 if { ac_try='cc -c conftest.$ac_ext >&5'
3577 { (case "(($ac_try" in
3578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3579 *) ac_try_echo=$ac_try;;
3581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3582 (eval "$ac_try") 2>&5
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); }; }; then
3586 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3588 if { (case "(($ac_try" in
3589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3590 *) ac_try_echo=$ac_try;;
3592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3593 (eval "$ac_try") 2>&5
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); } &&
3597 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599 *) ac_try_echo=$ac_try;;
3601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3602 (eval "$ac_try") 2>&5
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); };
3610 # cc exists but doesn't like -o.
3611 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3616 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3618 rm -f core conftest*
3621 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3622 { echo "$as_me:$LINENO: result: yes" >&5
3623 echo "${ECHO_T}yes" >&6; }
3625 { echo "$as_me:$LINENO: result: no" >&5
3626 echo "${ECHO_T}no" >&6; }
3628 cat >>confdefs.h <<\_ACEOF
3629 #define NO_MINUS_C_MINUS_O 1
3634 # FIXME: we rely on the cache variable name because
3635 # there is no other way.
3637 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3638 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3639 # Losing compiler, so override with the script.
3640 # FIXME: It is wrong to rewrite CC.
3641 # But if we don't then we get into trouble of one sort or another.
3642 # A longer-term fix would be to have automake use am__CC in this case,
3643 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3644 CC="$am_aux_dir/compile $CC"
3647 # Find a good install program. We prefer a C program (faster),
3648 # so one script is as good as another. But avoid the broken or
3649 # incompatible versions:
3650 # SysV /etc/install, /usr/sbin/install
3651 # SunOS /usr/etc/install
3652 # IRIX /sbin/install
3654 # AmigaOS /C/install, which installs bootblocks on floppy discs
3655 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3656 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3657 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3658 # OS/2's system install, which has a completely different semantic
3659 # ./install, which can be erroneously created by make from ./install.sh.
3660 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3661 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3662 if test -z "$INSTALL"; then
3663 if test "${ac_cv_path_install+set}" = set; then
3664 echo $ECHO_N "(cached) $ECHO_C" >&6
3666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3670 test -z "$as_dir" && as_dir=.
3671 # Account for people who put trailing slashes in PATH elements.
3673 ./ | .// | /cC/* | \
3674 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3675 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3678 # OSF1 and SCO ODT 3.0 have their own names for install.
3679 # Don't use installbsd from OSF since it installs stuff as root
3681 for ac_prog in ginstall scoinst install; do
3682 for ac_exec_ext in '' $ac_executable_extensions; do
3683 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3684 if test $ac_prog = install &&
3685 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3686 # AIX install. It has an incompatible calling convention.
3688 elif test $ac_prog = install &&
3689 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3690 # program-specific install script used by HP pwplus--don't use.
3693 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3706 if test "${ac_cv_path_install+set}" = set; then
3707 INSTALL=$ac_cv_path_install
3709 # As a last resort, use the slow shell script. Don't cache a
3710 # value for INSTALL within a source directory, because that will
3711 # break other packages using the cache if that directory is
3712 # removed, or if the value is a relative name.
3713 INSTALL=$ac_install_sh
3716 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3717 echo "${ECHO_T}$INSTALL" >&6; }
3719 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3720 # It thinks the first close brace ends the variable substitution.
3721 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3723 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3725 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3727 # Check whether --enable-shared was given.
3728 if test "${enable_shared+set}" = set; then
3729 enableval=$enable_shared; p=${PACKAGE-default}
3731 yes) enable_shared=yes ;;
3732 no) enable_shared=no ;;
3735 # Look at the argument we got. We use all the common list separators.
3736 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3737 for pkg in $enableval; do
3739 if test "X$pkg" = "X$p"; then
3751 # Check whether --enable-static was given.
3752 if test "${enable_static+set}" = set; then
3753 enableval=$enable_static; p=${PACKAGE-default}
3755 yes) enable_static=yes ;;
3756 no) enable_static=no ;;
3759 # Look at the argument we got. We use all the common list separators.
3760 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3761 for pkg in $enableval; do
3763 if test "X$pkg" = "X$p"; then
3775 # Check whether --enable-fast-install was given.
3776 if test "${enable_fast_install+set}" = set; then
3777 enableval=$enable_fast_install; p=${PACKAGE-default}
3779 yes) enable_fast_install=yes ;;
3780 no) enable_fast_install=no ;;
3782 enable_fast_install=no
3783 # Look at the argument we got. We use all the common list separators.
3784 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3785 for pkg in $enableval; do
3787 if test "X$pkg" = "X$p"; then
3788 enable_fast_install=yes
3795 enable_fast_install=yes
3799 # Make sure we can run config.sub.
3800 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3801 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3802 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3803 { (exit 1); exit 1; }; }
3805 { echo "$as_me:$LINENO: checking build system type" >&5
3806 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3807 if test "${ac_cv_build+set}" = set; then
3808 echo $ECHO_N "(cached) $ECHO_C" >&6
3810 ac_build_alias=$build_alias
3811 test "x$ac_build_alias" = x &&
3812 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3813 test "x$ac_build_alias" = x &&
3814 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3815 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3816 { (exit 1); exit 1; }; }
3817 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3818 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3819 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3820 { (exit 1); exit 1; }; }
3823 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3824 echo "${ECHO_T}$ac_cv_build" >&6; }
3825 case $ac_cv_build in
3827 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3828 echo "$as_me: error: invalid value of canonical build" >&2;}
3829 { (exit 1); exit 1; }; };;
3832 ac_save_IFS=$IFS; IFS='-'
3838 # Remember, the first character of IFS is used to create $*,
3839 # except with old shells:
3842 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3845 { echo "$as_me:$LINENO: checking host system type" >&5
3846 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3847 if test "${ac_cv_host+set}" = set; then
3848 echo $ECHO_N "(cached) $ECHO_C" >&6
3850 if test "x$host_alias" = x; then
3851 ac_cv_host=$ac_cv_build
3853 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3854 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3855 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3856 { (exit 1); exit 1; }; }
3860 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3861 echo "${ECHO_T}$ac_cv_host" >&6; }
3864 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3865 echo "$as_me: error: invalid value of canonical host" >&2;}
3866 { (exit 1); exit 1; }; };;
3869 ac_save_IFS=$IFS; IFS='-'
3875 # Remember, the first character of IFS is used to create $*,
3876 # except with old shells:
3879 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3882 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3883 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3884 if test "${lt_cv_path_SED+set}" = set; then
3885 echo $ECHO_N "(cached) $ECHO_C" >&6
3887 # Loop through the user's path and test for sed and gsed.
3888 # Then use that list of sed's as ones to test for truncation.
3889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893 test -z "$as_dir" && as_dir=.
3894 for lt_ac_prog in sed gsed; do
3895 for ac_exec_ext in '' $ac_executable_extensions; do
3896 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3897 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3905 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3906 # along with /bin/sed that truncates output.
3907 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3908 test ! -f $lt_ac_sed && continue
3909 cat /dev/null > conftest.in
3911 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3912 # Check for GNU sed and select it if it is found.
3913 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3914 lt_cv_path_SED=$lt_ac_sed
3918 cat conftest.in conftest.in >conftest.tmp
3919 mv conftest.tmp conftest.in
3920 cp conftest.in conftest.nl
3922 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3923 cmp -s conftest.out conftest.nl || break
3924 # 10000 chars as input seems more than enough
3925 test $lt_ac_count -gt 10 && break
3926 lt_ac_count=`expr $lt_ac_count + 1`
3927 if test $lt_ac_count -gt $lt_ac_max; then
3928 lt_ac_max=$lt_ac_count
3929 lt_cv_path_SED=$lt_ac_sed
3938 { echo "$as_me:$LINENO: result: $SED" >&5
3939 echo "${ECHO_T}$SED" >&6; }
3941 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3942 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3943 if test "${ac_cv_path_GREP+set}" = set; then
3944 echo $ECHO_N "(cached) $ECHO_C" >&6
3946 # Extract the first word of "grep ggrep" to use in msg output
3947 if test -z "$GREP"; then
3948 set dummy grep ggrep; ac_prog_name=$2
3949 if test "${ac_cv_path_GREP+set}" = set; then
3950 echo $ECHO_N "(cached) $ECHO_C" >&6
3952 ac_path_GREP_found=false
3953 # Loop through the user's path and test for each of PROGNAME-LIST
3954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3955 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3958 test -z "$as_dir" && as_dir=.
3959 for ac_prog in grep ggrep; do
3960 for ac_exec_ext in '' $ac_executable_extensions; do
3961 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3962 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3963 # Check for GNU ac_path_GREP and select it if it is found.
3964 # Check for GNU $ac_path_GREP
3965 case `"$ac_path_GREP" --version 2>&1` in
3967 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3970 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3973 cat "conftest.in" "conftest.in" >"conftest.tmp"
3974 mv "conftest.tmp" "conftest.in"
3975 cp "conftest.in" "conftest.nl"
3976 echo 'GREP' >> "conftest.nl"
3977 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3978 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3979 ac_count=`expr $ac_count + 1`
3980 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3981 # Best one so far, save it but keep looking for a better one
3982 ac_cv_path_GREP="$ac_path_GREP"
3983 ac_path_GREP_max=$ac_count
3985 # 10*(2^10) chars as input seems more than enough
3986 test $ac_count -gt 10 && break
3988 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3992 $ac_path_GREP_found && break 3
4002 GREP="$ac_cv_path_GREP"
4003 if test -z "$GREP"; then
4004 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4005 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4006 { (exit 1); exit 1; }; }
4010 ac_cv_path_GREP=$GREP
4015 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4016 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4017 GREP="$ac_cv_path_GREP"
4020 { echo "$as_me:$LINENO: checking for egrep" >&5
4021 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4022 if test "${ac_cv_path_EGREP+set}" = set; then
4023 echo $ECHO_N "(cached) $ECHO_C" >&6
4025 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4026 then ac_cv_path_EGREP="$GREP -E"
4028 # Extract the first word of "egrep" to use in msg output
4029 if test -z "$EGREP"; then
4030 set dummy egrep; ac_prog_name=$2
4031 if test "${ac_cv_path_EGREP+set}" = set; then
4032 echo $ECHO_N "(cached) $ECHO_C" >&6
4034 ac_path_EGREP_found=false
4035 # Loop through the user's path and test for each of PROGNAME-LIST
4036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4037 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4040 test -z "$as_dir" && as_dir=.
4041 for ac_prog in egrep; do
4042 for ac_exec_ext in '' $ac_executable_extensions; do
4043 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4044 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4045 # Check for GNU ac_path_EGREP and select it if it is found.
4046 # Check for GNU $ac_path_EGREP
4047 case `"$ac_path_EGREP" --version 2>&1` in
4049 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4052 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4055 cat "conftest.in" "conftest.in" >"conftest.tmp"
4056 mv "conftest.tmp" "conftest.in"
4057 cp "conftest.in" "conftest.nl"
4058 echo 'EGREP' >> "conftest.nl"
4059 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4060 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4061 ac_count=`expr $ac_count + 1`
4062 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4063 # Best one so far, save it but keep looking for a better one
4064 ac_cv_path_EGREP="$ac_path_EGREP"
4065 ac_path_EGREP_max=$ac_count
4067 # 10*(2^10) chars as input seems more than enough
4068 test $ac_count -gt 10 && break
4070 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4074 $ac_path_EGREP_found && break 3
4084 EGREP="$ac_cv_path_EGREP"
4085 if test -z "$EGREP"; then
4086 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4087 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4088 { (exit 1); exit 1; }; }
4092 ac_cv_path_EGREP=$EGREP
4098 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4099 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4100 EGREP="$ac_cv_path_EGREP"
4104 # Check whether --with-gnu-ld was given.
4105 if test "${with_gnu_ld+set}" = set; then
4106 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4112 if test "$GCC" = yes; then
4113 # Check if gcc -print-prog-name=ld gives a path.
4114 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4115 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4118 # gcc leaves a trailing carriage return which upsets mingw
4119 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4121 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4124 # Accept absolute paths.
4126 re_direlt='/[^/][^/]*/\.\./'
4127 # Canonicalize the pathname of ld
4128 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4129 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4130 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4132 test -z "$LD" && LD="$ac_prog"
4135 # If it fails, then pretend we aren't using GCC.
4139 # If it is relative, then search for the first ld in PATH.
4143 elif test "$with_gnu_ld" = yes; then
4144 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4145 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4147 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4148 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4150 if test "${lt_cv_path_LD+set}" = set; then
4151 echo $ECHO_N "(cached) $ECHO_C" >&6
4153 if test -z "$LD"; then
4154 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4155 for ac_dir in $PATH; do
4157 test -z "$ac_dir" && ac_dir=.
4158 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4159 lt_cv_path_LD="$ac_dir/$ac_prog"
4160 # Check to see if the program is GNU ld. I'd rather use --version,
4161 # but apparently some variants of GNU ld only accept -v.
4162 # Break only if it was the GNU/non-GNU ld that we prefer.
4163 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4164 *GNU* | *'with BFD'*)
4165 test "$with_gnu_ld" != no && break
4168 test "$with_gnu_ld" != yes && break
4175 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4180 if test -n "$LD"; then
4181 { echo "$as_me:$LINENO: result: $LD" >&5
4182 echo "${ECHO_T}$LD" >&6; }
4184 { echo "$as_me:$LINENO: result: no" >&5
4185 echo "${ECHO_T}no" >&6; }
4187 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4188 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4189 { (exit 1); exit 1; }; }
4190 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4191 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4192 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4193 echo $ECHO_N "(cached) $ECHO_C" >&6
4195 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4196 case `$LD -v 2>&1 </dev/null` in
4197 *GNU* | *'with BFD'*)
4198 lt_cv_prog_gnu_ld=yes
4201 lt_cv_prog_gnu_ld=no
4205 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4206 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4207 with_gnu_ld=$lt_cv_prog_gnu_ld
4210 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4211 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4212 if test "${lt_cv_ld_reload_flag+set}" = set; then
4213 echo $ECHO_N "(cached) $ECHO_C" >&6
4215 lt_cv_ld_reload_flag='-r'
4217 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4218 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4219 reload_flag=$lt_cv_ld_reload_flag
4220 case $reload_flag in
4222 *) reload_flag=" $reload_flag" ;;
4224 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4227 if test "$GCC" = yes; then
4228 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4230 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4235 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4236 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4237 if test "${lt_cv_path_NM+set}" = set; then
4238 echo $ECHO_N "(cached) $ECHO_C" >&6
4240 if test -n "$NM"; then
4241 # Let the user override the test.
4244 lt_nm_to_check="${ac_tool_prefix}nm"
4245 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4246 lt_nm_to_check="$lt_nm_to_check nm"
4248 for lt_tmp_nm in $lt_nm_to_check; do
4249 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4250 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4252 test -z "$ac_dir" && ac_dir=.
4253 tmp_nm="$ac_dir/$lt_tmp_nm"
4254 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4255 # Check to see if the nm accepts a BSD-compat flag.
4256 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4257 # nm: unknown option "B" ignored
4258 # Tru64's nm complains that /dev/null is an invalid object file
4259 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4260 */dev/null* | *'Invalid file or object type'*)
4261 lt_cv_path_NM="$tmp_nm -B"
4265 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4267 lt_cv_path_NM="$tmp_nm -p"
4271 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4272 continue # so that we can try to find one that supports BSD flags
4281 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4284 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4285 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4288 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4289 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4291 if test "$LN_S" = "ln -s"; then
4292 { echo "$as_me:$LINENO: result: yes" >&5
4293 echo "${ECHO_T}yes" >&6; }
4295 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4296 echo "${ECHO_T}no, using $LN_S" >&6; }
4299 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4300 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4301 if test "${lt_cv_deplibs_check_method+set}" = set; then
4302 echo $ECHO_N "(cached) $ECHO_C" >&6
4304 lt_cv_file_magic_cmd='$MAGIC_CMD'
4305 lt_cv_file_magic_test_file=
4306 lt_cv_deplibs_check_method='unknown'
4307 # Need to set the preceding variable on all platforms that support
4308 # interlibrary dependencies.
4309 # 'none' -- dependencies not supported.
4310 # `unknown' -- same as none, but documents that we really don't know.
4311 # 'pass_all' -- all dependencies passed with no checks.
4312 # 'test_compile' -- check by making test program.
4313 # 'file_magic [[regex]]' -- check by looking for files in library path
4314 # which responds to the $file_magic_cmd with a given extended regex.
4315 # If you have `file' or equivalent on your system and you're not sure
4316 # whether `pass_all' will *always* work, you probably want this one.
4320 lt_cv_deplibs_check_method=pass_all
4324 lt_cv_deplibs_check_method=pass_all
4328 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4329 lt_cv_file_magic_cmd='/usr/bin/file -L'
4330 lt_cv_file_magic_test_file=/shlib/libc.so
4334 # func_win32_libid is a shell function defined in ltmain.sh
4335 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4336 lt_cv_file_magic_cmd='func_win32_libid'
4340 # Base MSYS/MinGW do not provide the 'file' command needed by
4341 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4342 # unless we find 'file', for example because we are cross-compiling.
4343 if ( file / ) >/dev/null 2>&1; then
4344 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4345 lt_cv_file_magic_cmd='func_win32_libid'
4347 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4348 lt_cv_file_magic_cmd='$OBJDUMP -f'
4352 darwin* | rhapsody*)
4353 lt_cv_deplibs_check_method=pass_all
4356 freebsd* | dragonfly*)
4357 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4360 # Not sure whether the presence of OpenBSD here was a mistake.
4361 # Let's accept both of them until this is cleared up.
4362 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4363 lt_cv_file_magic_cmd=/usr/bin/file
4364 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4368 lt_cv_deplibs_check_method=pass_all
4373 lt_cv_deplibs_check_method=pass_all
4376 hpux10.20* | hpux11*)
4377 lt_cv_file_magic_cmd=/usr/bin/file
4380 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4381 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4384 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]'
4385 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4388 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4389 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4395 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4396 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4399 irix5* | irix6* | nonstopux*)
4401 *-32|*"-32 ") libmagic=32-bit;;
4402 *-n32|*"-n32 ") libmagic=N32;;
4403 *-64|*"-64 ") libmagic=64-bit;;
4404 *) libmagic=never-match;;
4406 lt_cv_deplibs_check_method=pass_all
4409 # This must be Linux ELF.
4410 linux* | k*bsd*-gnu)
4411 lt_cv_deplibs_check_method=pass_all
4414 netbsd* | netbsdelf*-gnu)
4415 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4416 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4418 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4423 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4424 lt_cv_file_magic_cmd=/usr/bin/file
4425 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4429 lt_cv_deplibs_check_method=unknown
4433 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4434 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4436 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4440 osf3* | osf4* | osf5*)
4441 lt_cv_deplibs_check_method=pass_all
4445 lt_cv_deplibs_check_method=pass_all
4449 lt_cv_deplibs_check_method=pass_all
4453 case $host_vendor in
4455 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]'
4456 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4459 lt_cv_deplibs_check_method=pass_all
4462 lt_cv_file_magic_cmd='/bin/file'
4463 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4466 lt_cv_file_magic_cmd='/bin/file'
4467 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4468 lt_cv_file_magic_test_file=/lib/libc.so
4471 lt_cv_deplibs_check_method=pass_all
4474 lt_cv_deplibs_check_method=pass_all
4479 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4480 lt_cv_deplibs_check_method=pass_all
4485 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4486 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4487 file_magic_cmd=$lt_cv_file_magic_cmd
4488 deplibs_check_method=$lt_cv_deplibs_check_method
4489 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4494 # If no C compiler was specified, use CC.
4497 # If no C compiler flags were specified, use CFLAGS.
4498 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4500 # Allow CC to be a program name with arguments.
4504 # Check whether --enable-libtool-lock was given.
4505 if test "${enable_libtool_lock+set}" = set; then
4506 enableval=$enable_libtool_lock;
4509 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4511 # Some flags need to be propagated to the compiler or linker for good
4515 # Find out which ABI we are using.
4516 echo 'int i;' > conftest.$ac_ext
4517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4518 (eval $ac_compile) 2>&5
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); }; then
4522 case `/usr/bin/file conftest.$ac_objext` in
4534 # Find out which ABI we are using.
4535 echo '#line 4535 "configure"' > conftest.$ac_ext
4536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4537 (eval $ac_compile) 2>&5
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); }; then
4541 if test "$lt_cv_prog_gnu_ld" = yes; then
4542 case `/usr/bin/file conftest.$ac_objext` in
4544 LD="${LD-ld} -melf32bsmip"
4547 LD="${LD-ld} -melf32bmipn32"
4550 LD="${LD-ld} -melf64bmip"
4554 case `/usr/bin/file conftest.$ac_objext` in
4570 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4571 s390*-*linux*|sparc*-*linux*)
4572 # Find out which ABI we are using.
4573 echo 'int i;' > conftest.$ac_ext
4574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4575 (eval $ac_compile) 2>&5
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); }; then
4579 case `/usr/bin/file conftest.o` in
4582 x86_64-*kfreebsd*-gnu)
4583 LD="${LD-ld} -m elf_i386_fbsd"
4586 LD="${LD-ld} -m elf_i386"
4588 ppc64-*linux*|powerpc64-*linux*)
4589 LD="${LD-ld} -m elf32ppclinux"
4592 LD="${LD-ld} -m elf_s390"
4595 LD="${LD-ld} -m elf32_sparc"
4601 x86_64-*kfreebsd*-gnu)
4602 LD="${LD-ld} -m elf_x86_64_fbsd"
4605 LD="${LD-ld} -m elf_x86_64"
4607 ppc*-*linux*|powerpc*-*linux*)
4608 LD="${LD-ld} -m elf64ppc"
4611 LD="${LD-ld} -m elf64_s390"
4614 LD="${LD-ld} -m elf64_sparc"
4624 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4625 SAVE_CFLAGS="$CFLAGS"
4626 CFLAGS="$CFLAGS -belf"
4627 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4628 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4629 if test "${lt_cv_cc_needs_belf+set}" = set; then
4630 echo $ECHO_N "(cached) $ECHO_C" >&6
4633 ac_cpp='$CPP $CPPFLAGS'
4634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4638 cat >conftest.$ac_ext <<_ACEOF
4641 cat confdefs.h >>conftest.$ac_ext
4642 cat >>conftest.$ac_ext <<_ACEOF
4643 /* end confdefs.h. */
4653 rm -f conftest.$ac_objext conftest$ac_exeext
4654 if { (ac_try="$ac_link"
4656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4657 *) ac_try_echo=$ac_try;;
4659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4660 (eval "$ac_link") 2>conftest.er1
4662 grep -v '^ *+' conftest.er1 >conftest.err
4664 cat conftest.err >&5
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); } && {
4667 test -z "$ac_c_werror_flag" ||
4668 test ! -s conftest.err
4669 } && test -s conftest$ac_exeext &&
4670 $as_test_x conftest$ac_exeext; then
4671 lt_cv_cc_needs_belf=yes
4673 echo "$as_me: failed program was:" >&5
4674 sed 's/^/| /' conftest.$ac_ext >&5
4676 lt_cv_cc_needs_belf=no
4679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4680 conftest$ac_exeext conftest.$ac_ext
4682 ac_cpp='$CPP $CPPFLAGS'
4683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4688 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4689 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4690 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4691 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4692 CFLAGS="$SAVE_CFLAGS"
4696 # Find out which ABI we are using.
4697 echo 'int i;' > conftest.$ac_ext
4698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4699 (eval $ac_compile) 2>&5
4701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702 (exit $ac_status); }; then
4703 case `/usr/bin/file conftest.o` in
4705 case $lt_cv_prog_gnu_ld in
4706 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4708 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4722 need_locks="$enable_libtool_lock"
4726 ac_cpp='$CPP $CPPFLAGS'
4727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4730 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4731 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4732 # On Suns, sometimes $CPP names a directory.
4733 if test -n "$CPP" && test -d "$CPP"; then
4736 if test -z "$CPP"; then
4737 if test "${ac_cv_prog_CPP+set}" = set; then
4738 echo $ECHO_N "(cached) $ECHO_C" >&6
4740 # Double quotes because CPP needs to be expanded
4741 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4744 for ac_c_preproc_warn_flag in '' yes
4746 # Use a header file that comes with gcc, so configuring glibc
4747 # with a fresh cross-compiler works.
4748 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4749 # <limits.h> exists even on freestanding compilers.
4750 # On the NeXT, cc -E runs the code through the compiler's parser,
4751 # not just through cpp. "Syntax error" is here to catch this case.
4752 cat >conftest.$ac_ext <<_ACEOF
4755 cat confdefs.h >>conftest.$ac_ext
4756 cat >>conftest.$ac_ext <<_ACEOF
4757 /* end confdefs.h. */
4759 # include <limits.h>
4761 # include <assert.h>
4765 if { (ac_try="$ac_cpp conftest.$ac_ext"
4767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4768 *) ac_try_echo=$ac_try;;
4770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4773 grep -v '^ *+' conftest.er1 >conftest.err
4775 cat conftest.err >&5
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); } >/dev/null && {
4778 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4779 test ! -s conftest.err
4783 echo "$as_me: failed program was:" >&5
4784 sed 's/^/| /' conftest.$ac_ext >&5
4786 # Broken: fails on valid input.
4790 rm -f conftest.err conftest.$ac_ext
4792 # OK, works on sane cases. Now check whether nonexistent headers
4793 # can be detected and how.
4794 cat >conftest.$ac_ext <<_ACEOF
4797 cat confdefs.h >>conftest.$ac_ext
4798 cat >>conftest.$ac_ext <<_ACEOF
4799 /* end confdefs.h. */
4800 #include <ac_nonexistent.h>
4802 if { (ac_try="$ac_cpp conftest.$ac_ext"
4804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4805 *) ac_try_echo=$ac_try;;
4807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4810 grep -v '^ *+' conftest.er1 >conftest.err
4812 cat conftest.err >&5
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); } >/dev/null && {
4815 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4816 test ! -s conftest.err
4818 # Broken: success on invalid input.
4821 echo "$as_me: failed program was:" >&5
4822 sed 's/^/| /' conftest.$ac_ext >&5
4824 # Passes both tests.
4829 rm -f conftest.err conftest.$ac_ext
4832 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4833 rm -f conftest.err conftest.$ac_ext
4834 if $ac_preproc_ok; then
4846 { echo "$as_me:$LINENO: result: $CPP" >&5
4847 echo "${ECHO_T}$CPP" >&6; }
4849 for ac_c_preproc_warn_flag in '' yes
4851 # Use a header file that comes with gcc, so configuring glibc
4852 # with a fresh cross-compiler works.
4853 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4854 # <limits.h> exists even on freestanding compilers.
4855 # On the NeXT, cc -E runs the code through the compiler's parser,
4856 # not just through cpp. "Syntax error" is here to catch this case.
4857 cat >conftest.$ac_ext <<_ACEOF
4860 cat confdefs.h >>conftest.$ac_ext
4861 cat >>conftest.$ac_ext <<_ACEOF
4862 /* end confdefs.h. */
4864 # include <limits.h>
4866 # include <assert.h>
4870 if { (ac_try="$ac_cpp conftest.$ac_ext"
4872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4873 *) ac_try_echo=$ac_try;;
4875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4878 grep -v '^ *+' conftest.er1 >conftest.err
4880 cat conftest.err >&5
4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); } >/dev/null && {
4883 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4884 test ! -s conftest.err
4888 echo "$as_me: failed program was:" >&5
4889 sed 's/^/| /' conftest.$ac_ext >&5
4891 # Broken: fails on valid input.
4895 rm -f conftest.err conftest.$ac_ext
4897 # OK, works on sane cases. Now check whether nonexistent headers
4898 # can be detected and how.
4899 cat >conftest.$ac_ext <<_ACEOF
4902 cat confdefs.h >>conftest.$ac_ext
4903 cat >>conftest.$ac_ext <<_ACEOF
4904 /* end confdefs.h. */
4905 #include <ac_nonexistent.h>
4907 if { (ac_try="$ac_cpp conftest.$ac_ext"
4909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4910 *) ac_try_echo=$ac_try;;
4912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4915 grep -v '^ *+' conftest.er1 >conftest.err
4917 cat conftest.err >&5
4918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919 (exit $ac_status); } >/dev/null && {
4920 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4921 test ! -s conftest.err
4923 # Broken: success on invalid input.
4926 echo "$as_me: failed program was:" >&5
4927 sed 's/^/| /' conftest.$ac_ext >&5
4929 # Passes both tests.
4934 rm -f conftest.err conftest.$ac_ext
4937 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4938 rm -f conftest.err conftest.$ac_ext
4939 if $ac_preproc_ok; then
4942 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4943 See \`config.log' for more details." >&5
4944 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4945 See \`config.log' for more details." >&2;}
4946 { (exit 1); exit 1; }; }
4950 ac_cpp='$CPP $CPPFLAGS'
4951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4956 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4957 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4958 if test "${ac_cv_header_stdc+set}" = set; then
4959 echo $ECHO_N "(cached) $ECHO_C" >&6
4961 cat >conftest.$ac_ext <<_ACEOF
4964 cat confdefs.h >>conftest.$ac_ext
4965 cat >>conftest.$ac_ext <<_ACEOF
4966 /* end confdefs.h. */
4980 rm -f conftest.$ac_objext
4981 if { (ac_try="$ac_compile"
4983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4984 *) ac_try_echo=$ac_try;;
4986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4987 (eval "$ac_compile") 2>conftest.er1
4989 grep -v '^ *+' conftest.er1 >conftest.err
4991 cat conftest.err >&5
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); } && {
4994 test -z "$ac_c_werror_flag" ||
4995 test ! -s conftest.err
4996 } && test -s conftest.$ac_objext; then
4997 ac_cv_header_stdc=yes
4999 echo "$as_me: failed program was:" >&5
5000 sed 's/^/| /' conftest.$ac_ext >&5
5002 ac_cv_header_stdc=no
5005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5007 if test $ac_cv_header_stdc = yes; then
5008 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5009 cat >conftest.$ac_ext <<_ACEOF
5012 cat confdefs.h >>conftest.$ac_ext
5013 cat >>conftest.$ac_ext <<_ACEOF
5014 /* end confdefs.h. */
5018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5019 $EGREP "memchr" >/dev/null 2>&1; then
5022 ac_cv_header_stdc=no
5028 if test $ac_cv_header_stdc = yes; then
5029 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5030 cat >conftest.$ac_ext <<_ACEOF
5033 cat confdefs.h >>conftest.$ac_ext
5034 cat >>conftest.$ac_ext <<_ACEOF
5035 /* end confdefs.h. */
5039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5040 $EGREP "free" >/dev/null 2>&1; then
5043 ac_cv_header_stdc=no
5049 if test $ac_cv_header_stdc = yes; then
5050 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5051 if test "$cross_compiling" = yes; then
5054 cat >conftest.$ac_ext <<_ACEOF
5057 cat confdefs.h >>conftest.$ac_ext
5058 cat >>conftest.$ac_ext <<_ACEOF
5059 /* end confdefs.h. */
5062 #if ((' ' & 0x0FF) == 0x020)
5063 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5064 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5066 # define ISLOWER(c) \
5067 (('a' <= (c) && (c) <= 'i') \
5068 || ('j' <= (c) && (c) <= 'r') \
5069 || ('s' <= (c) && (c) <= 'z'))
5070 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5073 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5078 for (i = 0; i < 256; i++)
5079 if (XOR (islower (i), ISLOWER (i))
5080 || toupper (i) != TOUPPER (i))
5085 rm -f conftest$ac_exeext
5086 if { (ac_try="$ac_link"
5088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5089 *) ac_try_echo=$ac_try;;
5091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5092 (eval "$ac_link") 2>&5
5094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5096 { (case "(($ac_try" in
5097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5098 *) ac_try_echo=$ac_try;;
5100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5101 (eval "$ac_try") 2>&5
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); }; }; then
5107 echo "$as_me: program exited with status $ac_status" >&5
5108 echo "$as_me: failed program was:" >&5
5109 sed 's/^/| /' conftest.$ac_ext >&5
5112 ac_cv_header_stdc=no
5114 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5120 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5121 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5122 if test $ac_cv_header_stdc = yes; then
5124 cat >>confdefs.h <<\_ACEOF
5125 #define STDC_HEADERS 1
5130 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5140 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5141 inttypes.h stdint.h unistd.h
5143 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5144 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5147 echo $ECHO_N "(cached) $ECHO_C" >&6
5149 cat >conftest.$ac_ext <<_ACEOF
5152 cat confdefs.h >>conftest.$ac_ext
5153 cat >>conftest.$ac_ext <<_ACEOF
5154 /* end confdefs.h. */
5155 $ac_includes_default
5157 #include <$ac_header>
5159 rm -f conftest.$ac_objext
5160 if { (ac_try="$ac_compile"
5162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5163 *) ac_try_echo=$ac_try;;
5165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5166 (eval "$ac_compile") 2>conftest.er1
5168 grep -v '^ *+' conftest.er1 >conftest.err
5170 cat conftest.err >&5
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); } && {
5173 test -z "$ac_c_werror_flag" ||
5174 test ! -s conftest.err
5175 } && test -s conftest.$ac_objext; then
5176 eval "$as_ac_Header=yes"
5178 echo "$as_me: failed program was:" >&5
5179 sed 's/^/| /' conftest.$ac_ext >&5
5181 eval "$as_ac_Header=no"
5184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5186 ac_res=`eval echo '${'$as_ac_Header'}'`
5187 { echo "$as_me:$LINENO: result: $ac_res" >&5
5188 echo "${ECHO_T}$ac_res" >&6; }
5189 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5190 cat >>confdefs.h <<_ACEOF
5191 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5200 for ac_header in dlfcn.h
5202 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5203 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5204 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5206 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5207 echo $ECHO_N "(cached) $ECHO_C" >&6
5209 ac_res=`eval echo '${'$as_ac_Header'}'`
5210 { echo "$as_me:$LINENO: result: $ac_res" >&5
5211 echo "${ECHO_T}$ac_res" >&6; }
5213 # Is the header compilable?
5214 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5215 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5216 cat >conftest.$ac_ext <<_ACEOF
5219 cat confdefs.h >>conftest.$ac_ext
5220 cat >>conftest.$ac_ext <<_ACEOF
5221 /* end confdefs.h. */
5222 $ac_includes_default
5223 #include <$ac_header>
5225 rm -f conftest.$ac_objext
5226 if { (ac_try="$ac_compile"
5228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5229 *) ac_try_echo=$ac_try;;
5231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5232 (eval "$ac_compile") 2>conftest.er1
5234 grep -v '^ *+' conftest.er1 >conftest.err
5236 cat conftest.err >&5
5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); } && {
5239 test -z "$ac_c_werror_flag" ||
5240 test ! -s conftest.err
5241 } && test -s conftest.$ac_objext; then
5242 ac_header_compiler=yes
5244 echo "$as_me: failed program was:" >&5
5245 sed 's/^/| /' conftest.$ac_ext >&5
5247 ac_header_compiler=no
5250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5251 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5252 echo "${ECHO_T}$ac_header_compiler" >&6; }
5254 # Is the header present?
5255 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5256 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5257 cat >conftest.$ac_ext <<_ACEOF
5260 cat confdefs.h >>conftest.$ac_ext
5261 cat >>conftest.$ac_ext <<_ACEOF
5262 /* end confdefs.h. */
5263 #include <$ac_header>
5265 if { (ac_try="$ac_cpp conftest.$ac_ext"
5267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5268 *) ac_try_echo=$ac_try;;
5270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5271 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5273 grep -v '^ *+' conftest.er1 >conftest.err
5275 cat conftest.err >&5
5276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277 (exit $ac_status); } >/dev/null && {
5278 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5279 test ! -s conftest.err
5281 ac_header_preproc=yes
5283 echo "$as_me: failed program was:" >&5
5284 sed 's/^/| /' conftest.$ac_ext >&5
5286 ac_header_preproc=no
5289 rm -f conftest.err conftest.$ac_ext
5290 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5291 echo "${ECHO_T}$ac_header_preproc" >&6; }
5293 # So? What about this header?
5294 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5296 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5297 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5298 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5299 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5300 ac_header_preproc=yes
5303 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5304 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5305 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5306 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5307 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5308 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5309 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5310 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5311 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5312 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5313 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5314 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5316 ## ---------------------------------------- ##
5317 ## Report this to stefan@datenfreihafen.org ##
5318 ## ---------------------------------------- ##
5320 ) | sed "s/^/$as_me: WARNING: /" >&2
5323 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5326 echo $ECHO_N "(cached) $ECHO_C" >&6
5328 eval "$as_ac_Header=\$ac_header_preproc"
5330 ac_res=`eval echo '${'$as_ac_Header'}'`
5331 { echo "$as_me:$LINENO: result: $ac_res" >&5
5332 echo "${ECHO_T}$ac_res" >&6; }
5335 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5336 cat >>confdefs.h <<_ACEOF
5337 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5345 ac_cpp='$CXXCPP $CPPFLAGS'
5346 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5347 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5348 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5349 if test -z "$CXX"; then
5350 if test -n "$CCC"; then
5353 if test -n "$ac_tool_prefix"; then
5354 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5356 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5357 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5360 if test "${ac_cv_prog_CXX+set}" = set; then
5361 echo $ECHO_N "(cached) $ECHO_C" >&6
5363 if test -n "$CXX"; then
5364 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5370 test -z "$as_dir" && as_dir=.
5371 for ac_exec_ext in '' $ac_executable_extensions; do
5372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5373 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5384 if test -n "$CXX"; then
5385 { echo "$as_me:$LINENO: result: $CXX" >&5
5386 echo "${ECHO_T}$CXX" >&6; }
5388 { echo "$as_me:$LINENO: result: no" >&5
5389 echo "${ECHO_T}no" >&6; }
5393 test -n "$CXX" && break
5396 if test -z "$CXX"; then
5398 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5400 # Extract the first word of "$ac_prog", so it can be a program name with args.
5401 set dummy $ac_prog; ac_word=$2
5402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5404 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5405 echo $ECHO_N "(cached) $ECHO_C" >&6
5407 if test -n "$ac_ct_CXX"; then
5408 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5414 test -z "$as_dir" && as_dir=.
5415 for ac_exec_ext in '' $ac_executable_extensions; do
5416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5417 ac_cv_prog_ac_ct_CXX="$ac_prog"
5418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5427 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5428 if test -n "$ac_ct_CXX"; then
5429 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5430 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5432 { echo "$as_me:$LINENO: result: no" >&5
5433 echo "${ECHO_T}no" >&6; }
5437 test -n "$ac_ct_CXX" && break
5440 if test "x$ac_ct_CXX" = x; then
5443 case $cross_compiling:$ac_tool_warned in
5445 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5446 whose name does not start with the host triplet. If you think this
5447 configuration is useful to you, please write to autoconf@gnu.org." >&5
5448 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5449 whose name does not start with the host triplet. If you think this
5450 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5451 ac_tool_warned=yes ;;
5459 # Provide some information about the compiler.
5460 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5461 ac_compiler=`set X $ac_compile; echo $2`
5462 { (ac_try="$ac_compiler --version >&5"
5464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5465 *) ac_try_echo=$ac_try;;
5467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5468 (eval "$ac_compiler --version >&5") 2>&5
5470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471 (exit $ac_status); }
5472 { (ac_try="$ac_compiler -v >&5"
5474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5475 *) ac_try_echo=$ac_try;;
5477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5478 (eval "$ac_compiler -v >&5") 2>&5
5480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481 (exit $ac_status); }
5482 { (ac_try="$ac_compiler -V >&5"
5484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5485 *) ac_try_echo=$ac_try;;
5487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5488 (eval "$ac_compiler -V >&5") 2>&5
5490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491 (exit $ac_status); }
5493 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5494 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5495 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5496 echo $ECHO_N "(cached) $ECHO_C" >&6
5498 cat >conftest.$ac_ext <<_ACEOF
5501 cat confdefs.h >>conftest.$ac_ext
5502 cat >>conftest.$ac_ext <<_ACEOF
5503 /* end confdefs.h. */
5516 rm -f conftest.$ac_objext
5517 if { (ac_try="$ac_compile"
5519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5520 *) ac_try_echo=$ac_try;;
5522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5523 (eval "$ac_compile") 2>conftest.er1
5525 grep -v '^ *+' conftest.er1 >conftest.err
5527 cat conftest.err >&5
5528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529 (exit $ac_status); } && {
5530 test -z "$ac_cxx_werror_flag" ||
5531 test ! -s conftest.err
5532 } && test -s conftest.$ac_objext; then
5535 echo "$as_me: failed program was:" >&5
5536 sed 's/^/| /' conftest.$ac_ext >&5
5541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5542 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5545 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5546 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5547 GXX=`test $ac_compiler_gnu = yes && echo yes`
5548 ac_test_CXXFLAGS=${CXXFLAGS+set}
5549 ac_save_CXXFLAGS=$CXXFLAGS
5550 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5551 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5552 if test "${ac_cv_prog_cxx_g+set}" = set; then
5553 echo $ECHO_N "(cached) $ECHO_C" >&6
5555 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5556 ac_cxx_werror_flag=yes
5559 cat >conftest.$ac_ext <<_ACEOF
5562 cat confdefs.h >>conftest.$ac_ext
5563 cat >>conftest.$ac_ext <<_ACEOF
5564 /* end confdefs.h. */
5574 rm -f conftest.$ac_objext
5575 if { (ac_try="$ac_compile"
5577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5578 *) ac_try_echo=$ac_try;;
5580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5581 (eval "$ac_compile") 2>conftest.er1
5583 grep -v '^ *+' conftest.er1 >conftest.err
5585 cat conftest.err >&5
5586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587 (exit $ac_status); } && {
5588 test -z "$ac_cxx_werror_flag" ||
5589 test ! -s conftest.err
5590 } && test -s conftest.$ac_objext; then
5591 ac_cv_prog_cxx_g=yes
5593 echo "$as_me: failed program was:" >&5
5594 sed 's/^/| /' conftest.$ac_ext >&5
5597 cat >conftest.$ac_ext <<_ACEOF
5600 cat confdefs.h >>conftest.$ac_ext
5601 cat >>conftest.$ac_ext <<_ACEOF
5602 /* end confdefs.h. */
5612 rm -f conftest.$ac_objext
5613 if { (ac_try="$ac_compile"
5615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5616 *) ac_try_echo=$ac_try;;
5618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5619 (eval "$ac_compile") 2>conftest.er1
5621 grep -v '^ *+' conftest.er1 >conftest.err
5623 cat conftest.err >&5
5624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625 (exit $ac_status); } && {
5626 test -z "$ac_cxx_werror_flag" ||
5627 test ! -s conftest.err
5628 } && test -s conftest.$ac_objext; then
5631 echo "$as_me: failed program was:" >&5
5632 sed 's/^/| /' conftest.$ac_ext >&5
5634 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5636 cat >conftest.$ac_ext <<_ACEOF
5639 cat confdefs.h >>conftest.$ac_ext
5640 cat >>conftest.$ac_ext <<_ACEOF
5641 /* end confdefs.h. */
5651 rm -f conftest.$ac_objext
5652 if { (ac_try="$ac_compile"
5654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5655 *) ac_try_echo=$ac_try;;
5657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5658 (eval "$ac_compile") 2>conftest.er1
5660 grep -v '^ *+' conftest.er1 >conftest.err
5662 cat conftest.err >&5
5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); } && {
5665 test -z "$ac_cxx_werror_flag" ||
5666 test ! -s conftest.err
5667 } && test -s conftest.$ac_objext; then
5668 ac_cv_prog_cxx_g=yes
5670 echo "$as_me: failed program was:" >&5
5671 sed 's/^/| /' conftest.$ac_ext >&5
5676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5683 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5685 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5686 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5687 if test "$ac_test_CXXFLAGS" = set; then
5688 CXXFLAGS=$ac_save_CXXFLAGS
5689 elif test $ac_cv_prog_cxx_g = yes; then
5690 if test "$GXX" = yes; then
5696 if test "$GXX" = yes; then
5703 ac_cpp='$CXXCPP $CPPFLAGS'
5704 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5705 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5706 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5708 depcc="$CXX" am_compiler_list=
5710 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5711 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5712 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5713 echo $ECHO_N "(cached) $ECHO_C" >&6
5715 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5716 # We make a subdir and do the tests there. Otherwise we can end up
5717 # making bogus files that we don't know about and never remove. For
5718 # instance it was reported that on HP-UX the gcc test will end up
5719 # making a dummy file named `D' -- because `-MD' means `put the output
5722 # Copy depcomp to subdir because otherwise we won't find it if we're
5723 # using a relative directory.
5724 cp "$am_depcomp" conftest.dir
5726 # We will build objects and dependencies in a subdirectory because
5727 # it helps to detect inapplicable dependency modes. For instance
5728 # both Tru64's cc and ICC support -MD to output dependencies as a
5729 # side effect of compilation, but ICC will put the dependencies in
5730 # the current directory while Tru64 will put them in the object
5734 am_cv_CXX_dependencies_compiler_type=none
5735 if test "$am_compiler_list" = ""; then
5736 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5738 for depmode in $am_compiler_list; do
5739 # Setup a source with many dependencies, because some compilers
5740 # like to wrap large dependency lists on column 80 (with \), and
5741 # we should not choose a depcomp mode which is confused by this.
5743 # We need to recreate these files for each test, as the compiler may
5744 # overwrite some of them when testing with obscure command lines.
5745 # This happens at least with the AIX C compiler.
5747 for i in 1 2 3 4 5 6; do
5748 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5749 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5750 # Solaris 8's {/usr,}/bin/sh.
5751 touch sub/conftst$i.h
5753 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5757 # after this tag, mechanisms are not by side-effect, so they'll
5758 # only be used when explicitly requested
5759 if test "x$enable_dependency_tracking" = xyes; then
5767 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5768 # mode. It turns out that the SunPro C++ compiler does not properly
5769 # handle `-M -o', and we need to detect this.
5770 if depmode=$depmode \
5771 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5772 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5773 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5774 >/dev/null 2>conftest.err &&
5775 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5776 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5777 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5778 # icc doesn't choke on unknown options, it will just issue warnings
5779 # or remarks (even with -Werror). So we grep stderr for any message
5780 # that says an option was ignored or not supported.
5781 # When given -MP, icc 7.0 and 7.1 complain thusly:
5782 # icc: Command line warning: ignoring option '-M'; no argument required
5783 # The diagnosis changed in icc 8.0:
5784 # icc: Command line remark: option '-MP' not supported
5785 if (grep 'ignoring option' conftest.err ||
5786 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5787 am_cv_CXX_dependencies_compiler_type=$depmode
5796 am_cv_CXX_dependencies_compiler_type=none
5800 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5801 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5802 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5807 test "x$enable_dependency_tracking" != xno \
5808 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5809 am__fastdepCXX_TRUE=
5810 am__fastdepCXX_FALSE='#'
5812 am__fastdepCXX_TRUE='#'
5813 am__fastdepCXX_FALSE=
5819 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5820 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5821 (test "X$CXX" != "Xg++"))) ; then
5823 ac_cpp='$CXXCPP $CPPFLAGS'
5824 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5825 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5826 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5827 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5828 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5829 if test -z "$CXXCPP"; then
5830 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5831 echo $ECHO_N "(cached) $ECHO_C" >&6
5833 # Double quotes because CXXCPP needs to be expanded
5834 for CXXCPP in "$CXX -E" "/lib/cpp"
5837 for ac_cxx_preproc_warn_flag in '' yes
5839 # Use a header file that comes with gcc, so configuring glibc
5840 # with a fresh cross-compiler works.
5841 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5842 # <limits.h> exists even on freestanding compilers.
5843 # On the NeXT, cc -E runs the code through the compiler's parser,
5844 # not just through cpp. "Syntax error" is here to catch this case.
5845 cat >conftest.$ac_ext <<_ACEOF
5848 cat confdefs.h >>conftest.$ac_ext
5849 cat >>conftest.$ac_ext <<_ACEOF
5850 /* end confdefs.h. */
5852 # include <limits.h>
5854 # include <assert.h>
5858 if { (ac_try="$ac_cpp conftest.$ac_ext"
5860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5861 *) ac_try_echo=$ac_try;;
5863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5866 grep -v '^ *+' conftest.er1 >conftest.err
5868 cat conftest.err >&5
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); } >/dev/null && {
5871 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5872 test ! -s conftest.err
5876 echo "$as_me: failed program was:" >&5
5877 sed 's/^/| /' conftest.$ac_ext >&5
5879 # Broken: fails on valid input.
5883 rm -f conftest.err conftest.$ac_ext
5885 # OK, works on sane cases. Now check whether nonexistent headers
5886 # can be detected and how.
5887 cat >conftest.$ac_ext <<_ACEOF
5890 cat confdefs.h >>conftest.$ac_ext
5891 cat >>conftest.$ac_ext <<_ACEOF
5892 /* end confdefs.h. */
5893 #include <ac_nonexistent.h>
5895 if { (ac_try="$ac_cpp conftest.$ac_ext"
5897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5898 *) ac_try_echo=$ac_try;;
5900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5901 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5903 grep -v '^ *+' conftest.er1 >conftest.err
5905 cat conftest.err >&5
5906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907 (exit $ac_status); } >/dev/null && {
5908 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5909 test ! -s conftest.err
5911 # Broken: success on invalid input.
5914 echo "$as_me: failed program was:" >&5
5915 sed 's/^/| /' conftest.$ac_ext >&5
5917 # Passes both tests.
5922 rm -f conftest.err conftest.$ac_ext
5925 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5926 rm -f conftest.err conftest.$ac_ext
5927 if $ac_preproc_ok; then
5932 ac_cv_prog_CXXCPP=$CXXCPP
5935 CXXCPP=$ac_cv_prog_CXXCPP
5937 ac_cv_prog_CXXCPP=$CXXCPP
5939 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5940 echo "${ECHO_T}$CXXCPP" >&6; }
5942 for ac_cxx_preproc_warn_flag in '' yes
5944 # Use a header file that comes with gcc, so configuring glibc
5945 # with a fresh cross-compiler works.
5946 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5947 # <limits.h> exists even on freestanding compilers.
5948 # On the NeXT, cc -E runs the code through the compiler's parser,
5949 # not just through cpp. "Syntax error" is here to catch this case.
5950 cat >conftest.$ac_ext <<_ACEOF
5953 cat confdefs.h >>conftest.$ac_ext
5954 cat >>conftest.$ac_ext <<_ACEOF
5955 /* end confdefs.h. */
5957 # include <limits.h>
5959 # include <assert.h>
5963 if { (ac_try="$ac_cpp conftest.$ac_ext"
5965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5966 *) ac_try_echo=$ac_try;;
5968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5969 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5971 grep -v '^ *+' conftest.er1 >conftest.err
5973 cat conftest.err >&5
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); } >/dev/null && {
5976 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5977 test ! -s conftest.err
5981 echo "$as_me: failed program was:" >&5
5982 sed 's/^/| /' conftest.$ac_ext >&5
5984 # Broken: fails on valid input.
5988 rm -f conftest.err conftest.$ac_ext
5990 # OK, works on sane cases. Now check whether nonexistent headers
5991 # can be detected and how.
5992 cat >conftest.$ac_ext <<_ACEOF
5995 cat confdefs.h >>conftest.$ac_ext
5996 cat >>conftest.$ac_ext <<_ACEOF
5997 /* end confdefs.h. */
5998 #include <ac_nonexistent.h>
6000 if { (ac_try="$ac_cpp conftest.$ac_ext"
6002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6003 *) ac_try_echo=$ac_try;;
6005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6006 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6008 grep -v '^ *+' conftest.er1 >conftest.err
6010 cat conftest.err >&5
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); } >/dev/null && {
6013 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6014 test ! -s conftest.err
6016 # Broken: success on invalid input.
6019 echo "$as_me: failed program was:" >&5
6020 sed 's/^/| /' conftest.$ac_ext >&5
6022 # Passes both tests.
6027 rm -f conftest.err conftest.$ac_ext
6030 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6031 rm -f conftest.err conftest.$ac_ext
6032 if $ac_preproc_ok; then
6035 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6036 See \`config.log' for more details." >&5
6037 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6038 See \`config.log' for more details." >&2;}
6039 { (exit 1); exit 1; }; }
6043 ac_cpp='$CXXCPP $CPPFLAGS'
6044 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6045 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6046 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6052 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6053 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6054 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6055 if test -n "$ac_tool_prefix"; then
6056 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
6058 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6059 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6062 if test "${ac_cv_prog_F77+set}" = set; then
6063 echo $ECHO_N "(cached) $ECHO_C" >&6
6065 if test -n "$F77"; then
6066 ac_cv_prog_F77="$F77" # Let the user override the test.
6068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6072 test -z "$as_dir" && as_dir=.
6073 for ac_exec_ext in '' $ac_executable_extensions; do
6074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6075 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6086 if test -n "$F77"; then
6087 { echo "$as_me:$LINENO: result: $F77" >&5
6088 echo "${ECHO_T}$F77" >&6; }
6090 { echo "$as_me:$LINENO: result: no" >&5
6091 echo "${ECHO_T}no" >&6; }
6095 test -n "$F77" && break
6098 if test -z "$F77"; then
6100 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
6102 # Extract the first word of "$ac_prog", so it can be a program name with args.
6103 set dummy $ac_prog; ac_word=$2
6104 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6106 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6107 echo $ECHO_N "(cached) $ECHO_C" >&6
6109 if test -n "$ac_ct_F77"; then
6110 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6116 test -z "$as_dir" && as_dir=.
6117 for ac_exec_ext in '' $ac_executable_extensions; do
6118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6119 ac_cv_prog_ac_ct_F77="$ac_prog"
6120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6129 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6130 if test -n "$ac_ct_F77"; then
6131 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6132 echo "${ECHO_T}$ac_ct_F77" >&6; }
6134 { echo "$as_me:$LINENO: result: no" >&5
6135 echo "${ECHO_T}no" >&6; }
6139 test -n "$ac_ct_F77" && break
6142 if test "x$ac_ct_F77" = x; then
6145 case $cross_compiling:$ac_tool_warned in
6147 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6148 whose name does not start with the host triplet. If you think this
6149 configuration is useful to you, please write to autoconf@gnu.org." >&5
6150 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6151 whose name does not start with the host triplet. If you think this
6152 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6153 ac_tool_warned=yes ;;
6160 # Provide some information about the compiler.
6161 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6162 ac_compiler=`set X $ac_compile; echo $2`
6163 { (ac_try="$ac_compiler --version >&5"
6165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6166 *) ac_try_echo=$ac_try;;
6168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6169 (eval "$ac_compiler --version >&5") 2>&5
6171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); }
6173 { (ac_try="$ac_compiler -v >&5"
6175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6176 *) ac_try_echo=$ac_try;;
6178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6179 (eval "$ac_compiler -v >&5") 2>&5
6181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182 (exit $ac_status); }
6183 { (ac_try="$ac_compiler -V >&5"
6185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6186 *) ac_try_echo=$ac_try;;
6188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6189 (eval "$ac_compiler -V >&5") 2>&5
6191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192 (exit $ac_status); }
6195 # If we don't use `.F' as extension, the preprocessor is not run on the
6196 # input file. (Note that this only needs to work for GNU compilers.)
6199 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6200 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6201 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6202 echo $ECHO_N "(cached) $ECHO_C" >&6
6204 cat >conftest.$ac_ext <<_ACEOF
6212 rm -f conftest.$ac_objext
6213 if { (ac_try="$ac_compile"
6215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6216 *) ac_try_echo=$ac_try;;
6218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6219 (eval "$ac_compile") 2>conftest.er1
6221 grep -v '^ *+' conftest.er1 >conftest.err
6223 cat conftest.err >&5
6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); } && {
6226 test -z "$ac_f77_werror_flag" ||
6227 test ! -s conftest.err
6228 } && test -s conftest.$ac_objext; then
6231 echo "$as_me: failed program was:" >&5
6232 sed 's/^/| /' conftest.$ac_ext >&5
6237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6238 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6241 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6242 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6244 ac_test_FFLAGS=${FFLAGS+set}
6245 ac_save_FFLAGS=$FFLAGS
6247 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6248 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6249 if test "${ac_cv_prog_f77_g+set}" = set; then
6250 echo $ECHO_N "(cached) $ECHO_C" >&6
6253 cat >conftest.$ac_ext <<_ACEOF
6258 rm -f conftest.$ac_objext
6259 if { (ac_try="$ac_compile"
6261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6262 *) ac_try_echo=$ac_try;;
6264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6265 (eval "$ac_compile") 2>conftest.er1
6267 grep -v '^ *+' conftest.er1 >conftest.err
6269 cat conftest.err >&5
6270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271 (exit $ac_status); } && {
6272 test -z "$ac_f77_werror_flag" ||
6273 test ! -s conftest.err
6274 } && test -s conftest.$ac_objext; then
6275 ac_cv_prog_f77_g=yes
6277 echo "$as_me: failed program was:" >&5
6278 sed 's/^/| /' conftest.$ac_ext >&5
6283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6286 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6287 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6288 if test "$ac_test_FFLAGS" = set; then
6289 FFLAGS=$ac_save_FFLAGS
6290 elif test $ac_cv_prog_f77_g = yes; then
6291 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6297 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6304 G77=`test $ac_compiler_gnu = yes && echo yes`
6306 ac_cpp='$CPP $CPPFLAGS'
6307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6313 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6314 # find the maximum length of command line arguments
6315 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6316 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6317 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6318 echo $ECHO_N "(cached) $ECHO_C" >&6
6325 # On DJGPP, this test can blow up pretty badly due to problems in libc
6326 # (any single argument exceeding 2000 bytes causes a buffer overrun
6327 # during glob expansion). Even if it were fixed, the result of this
6328 # check would be larger than it should be.
6329 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6333 # Under GNU Hurd, this test is not required because there is
6334 # no limit to the length of command line arguments.
6335 # Libtool will interpret -1 as no limit whatsoever
6336 lt_cv_sys_max_cmd_len=-1;
6340 # On Win9x/ME, this test blows up -- it succeeds, but takes
6341 # about 5 minutes as the teststring grows exponentially.
6342 # Worse, since 9x/ME are not pre-emptively multitasking,
6343 # you end up with a "frozen" computer, even though with patience
6344 # the test eventually succeeds (with a max line length of 256k).
6345 # Instead, let's just punt: use the minimum linelength reported by
6346 # all of the supported platforms: 8192 (on NT/2K/XP).
6347 lt_cv_sys_max_cmd_len=8192;
6351 # On AmigaOS with pdksh, this test takes hours, literally.
6352 # So we just punt and use a minimum line length of 8192.
6353 lt_cv_sys_max_cmd_len=8192;
6356 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6357 # This has been around since 386BSD, at least. Likely further.
6358 if test -x /sbin/sysctl; then
6359 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6360 elif test -x /usr/sbin/sysctl; then
6361 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6363 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6365 # And add a safety zone
6366 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6367 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6371 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6372 lt_cv_sys_max_cmd_len=196608
6376 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6377 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6378 # nice to cause kernel panics so lets avoid the loop below.
6379 # First set a reasonable default.
6380 lt_cv_sys_max_cmd_len=16384
6382 if test -x /sbin/sysconfig; then
6383 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6384 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6389 lt_cv_sys_max_cmd_len=102400
6391 sysv5* | sco5v6* | sysv4.2uw2*)
6392 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6393 if test -n "$kargmax"; then
6394 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6396 lt_cv_sys_max_cmd_len=32768
6400 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6401 if test -n "$lt_cv_sys_max_cmd_len"; then
6402 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6403 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6405 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6406 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6407 = "XX$teststring") >/dev/null 2>&1 &&
6408 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6409 lt_cv_sys_max_cmd_len=$new_result &&
6410 test $i != 17 # 1/2 MB should be enough
6413 teststring=$teststring$teststring
6416 # Add a significant safety factor because C++ compilers can tack on massive
6417 # amounts of additional arguments before passing them to the linker.
6418 # It appears as though 1/2 is a usable value.
6419 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6426 if test -n $lt_cv_sys_max_cmd_len ; then
6427 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6428 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6430 { echo "$as_me:$LINENO: result: none" >&5
6431 echo "${ECHO_T}none" >&6; }
6438 # Check for command to grab the raw symbol name followed by C symbol from nm.
6439 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6440 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6441 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6442 echo $ECHO_N "(cached) $ECHO_C" >&6
6445 # These are sane defaults that work on at least a few old systems.
6446 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6448 # Character class describing NM global symbol codes.
6449 symcode='[BCDEGRST]'
6451 # Regexp to match symbols that can be accessed directly from C.
6452 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6454 # Transform an extracted symbol line into a proper C declaration
6455 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6457 # Transform an extracted symbol line into symbol name and symbol address
6458 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'"
6460 # Define system-specific variables.
6465 cygwin* | mingw* | pw32*)
6466 symcode='[ABCDGISTW]'
6468 hpux*) # Its linker distinguishes data from code symbols
6469 if test "$host_cpu" = ia64; then
6470 symcode='[ABCDEGRST]'
6472 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6473 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'"
6475 linux* | k*bsd*-gnu)
6476 if test "$host_cpu" = ia64; then
6477 symcode='[ABCDGIRSTW]'
6478 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6479 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'"
6483 symcode='[BCDEGRST]'
6486 symcode='[BCDEGQRST]'
6497 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6505 # Handle CRLF in mingw tool chain
6509 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6513 # If we're using GNU nm, then use its standard symbol codes.
6514 case `$NM -V 2>&1` in
6515 *GNU* | *'with BFD'*)
6516 symcode='[ABCDGIRSTW]' ;;
6519 # Try without a prefix undercore, then with it.
6520 for ac_symprfx in "" "_"; do
6522 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6523 symxfrm="\\1 $ac_symprfx\\2 \\2"
6525 # Write the raw and C identifiers.
6526 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6528 # Check to see that the pipe works correctly.
6532 cat > conftest.$ac_ext <<EOF
6537 void nm_test_func(){}
6541 int main(){nm_test_var='a';nm_test_func();return(0);}
6544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6545 (eval $ac_compile) 2>&5
6547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548 (exit $ac_status); }; then
6549 # Now try to grab the symbols.
6551 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6552 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555 (exit $ac_status); } && test -s "$nlist"; then
6556 # Try sorting and uniquifying the output.
6557 if sort "$nlist" | uniq > "$nlist"T; then
6558 mv -f "$nlist"T "$nlist"
6563 # Make sure that we snagged all the symbols we need.
6564 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6565 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6566 cat <<EOF > conftest.$ac_ext
6572 # Now generate the symbol file.
6573 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6575 cat <<EOF >> conftest.$ac_ext
6576 #if defined (__STDC__) && __STDC__
6577 # define lt_ptr_t void *
6579 # define lt_ptr_t char *
6583 /* The mapping between symbol names and symbols. */
6588 lt_preloaded_symbols[] =
6591 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6592 cat <<\EOF >> conftest.$ac_ext
6600 # Now try linking the two files.
6601 mv conftest.$ac_objext conftstm.$ac_objext
6602 lt_save_LIBS="$LIBS"
6603 lt_save_CFLAGS="$CFLAGS"
6604 LIBS="conftstm.$ac_objext"
6605 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6607 (eval $ac_link) 2>&5
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6613 LIBS="$lt_save_LIBS"
6614 CFLAGS="$lt_save_CFLAGS"
6616 echo "cannot find nm_test_func in $nlist" >&5
6619 echo "cannot find nm_test_var in $nlist" >&5
6622 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6625 echo "$progname: failed program was:" >&5
6626 cat conftest.$ac_ext >&5
6628 rm -rf conftest* conftst*
6630 # Do not use the global_symbol_pipe unless it works.
6631 if test "$pipe_works" = yes; then
6634 lt_cv_sys_global_symbol_pipe=
6640 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6641 lt_cv_sys_global_symbol_to_cdecl=
6643 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6644 { echo "$as_me:$LINENO: result: failed" >&5
6645 echo "${ECHO_T}failed" >&6; }
6647 { echo "$as_me:$LINENO: result: ok" >&5
6648 echo "${ECHO_T}ok" >&6; }
6651 { echo "$as_me:$LINENO: checking for objdir" >&5
6652 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6653 if test "${lt_cv_objdir+set}" = set; then
6654 echo $ECHO_N "(cached) $ECHO_C" >&6
6656 rm -f .libs 2>/dev/null
6657 mkdir .libs 2>/dev/null
6658 if test -d .libs; then
6661 # MS-DOS does not allow filenames that begin with a dot.
6664 rmdir .libs 2>/dev/null
6666 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6667 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6668 objdir=$lt_cv_objdir
6676 # AIX sometimes has problems with the GCC collect2 program. For some
6677 # reason, if we set the COLLECT_NAMES environment variable, the problems
6678 # vanish in a puff of smoke.
6679 if test "X${COLLECT_NAMES+set}" != Xset; then
6681 export COLLECT_NAMES
6686 # Sed substitution that helps us do robust quoting. It backslashifies
6687 # metacharacters that are still active within double-quoted strings.
6688 Xsed='sed -e 1s/^X//'
6689 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6691 # Same as above, but do not quote variable references.
6692 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6694 # Sed substitution to delay expansion of an escaped shell variable in a
6695 # double_quote_subst'ed string.
6696 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6698 # Sed substitution to avoid accidental globbing in evaled expressions
6699 no_glob_subst='s/\*/\\\*/g'
6705 default_ofile=libtool
6706 can_build_shared=yes
6708 # All known linkers require a `.a' archive for static linking (except MSVC,
6709 # which needs '.lib').
6711 ltmain="$ac_aux_dir/ltmain.sh"
6712 ofile="$default_ofile"
6713 with_gnu_ld="$lt_cv_prog_gnu_ld"
6715 if test -n "$ac_tool_prefix"; then
6716 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6717 set dummy ${ac_tool_prefix}ar; ac_word=$2
6718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6720 if test "${ac_cv_prog_AR+set}" = set; then
6721 echo $ECHO_N "(cached) $ECHO_C" >&6
6723 if test -n "$AR"; then
6724 ac_cv_prog_AR="$AR" # Let the user override the test.
6726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730 test -z "$as_dir" && as_dir=.
6731 for ac_exec_ext in '' $ac_executable_extensions; do
6732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6733 ac_cv_prog_AR="${ac_tool_prefix}ar"
6734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6744 if test -n "$AR"; then
6745 { echo "$as_me:$LINENO: result: $AR" >&5
6746 echo "${ECHO_T}$AR" >&6; }
6748 { echo "$as_me:$LINENO: result: no" >&5
6749 echo "${ECHO_T}no" >&6; }
6754 if test -z "$ac_cv_prog_AR"; then
6756 # Extract the first word of "ar", so it can be a program name with args.
6757 set dummy ar; ac_word=$2
6758 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6760 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6761 echo $ECHO_N "(cached) $ECHO_C" >&6
6763 if test -n "$ac_ct_AR"; then
6764 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770 test -z "$as_dir" && as_dir=.
6771 for ac_exec_ext in '' $ac_executable_extensions; do
6772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6773 ac_cv_prog_ac_ct_AR="ar"
6774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6783 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6784 if test -n "$ac_ct_AR"; then
6785 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6786 echo "${ECHO_T}$ac_ct_AR" >&6; }
6788 { echo "$as_me:$LINENO: result: no" >&5
6789 echo "${ECHO_T}no" >&6; }
6792 if test "x$ac_ct_AR" = x; then
6795 case $cross_compiling:$ac_tool_warned in
6797 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6798 whose name does not start with the host triplet. If you think this
6799 configuration is useful to you, please write to autoconf@gnu.org." >&5
6800 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6801 whose name does not start with the host triplet. If you think this
6802 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6803 ac_tool_warned=yes ;;
6811 if test -n "$ac_tool_prefix"; then
6812 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6813 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6816 if test "${ac_cv_prog_RANLIB+set}" = set; then
6817 echo $ECHO_N "(cached) $ECHO_C" >&6
6819 if test -n "$RANLIB"; then
6820 ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="${ac_tool_prefix}ranlib"
6830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6839 RANLIB=$ac_cv_prog_RANLIB
6840 if test -n "$RANLIB"; then
6841 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6842 echo "${ECHO_T}$RANLIB" >&6; }
6844 { echo "$as_me:$LINENO: result: no" >&5
6845 echo "${ECHO_T}no" >&6; }
6850 if test -z "$ac_cv_prog_RANLIB"; then
6851 ac_ct_RANLIB=$RANLIB
6852 # Extract the first word of "ranlib", so it can be a program name with args.
6853 set dummy ranlib; ac_word=$2
6854 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6856 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6857 echo $ECHO_N "(cached) $ECHO_C" >&6
6859 if test -n "$ac_ct_RANLIB"; then
6860 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6866 test -z "$as_dir" && as_dir=.
6867 for ac_exec_ext in '' $ac_executable_extensions; do
6868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6869 ac_cv_prog_ac_ct_RANLIB="ranlib"
6870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6879 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6880 if test -n "$ac_ct_RANLIB"; then
6881 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6882 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6884 { echo "$as_me:$LINENO: result: no" >&5
6885 echo "${ECHO_T}no" >&6; }
6888 if test "x$ac_ct_RANLIB" = x; then
6891 case $cross_compiling:$ac_tool_warned in
6893 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6894 whose name does not start with the host triplet. If you think this
6895 configuration is useful to you, please write to autoconf@gnu.org." >&5
6896 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6897 whose name does not start with the host triplet. If you think this
6898 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6899 ac_tool_warned=yes ;;
6901 RANLIB=$ac_ct_RANLIB
6904 RANLIB="$ac_cv_prog_RANLIB"
6907 if test -n "$ac_tool_prefix"; then
6908 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6909 set dummy ${ac_tool_prefix}strip; ac_word=$2
6910 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6912 if test "${ac_cv_prog_STRIP+set}" = set; then
6913 echo $ECHO_N "(cached) $ECHO_C" >&6
6915 if test -n "$STRIP"; then
6916 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6922 test -z "$as_dir" && as_dir=.
6923 for ac_exec_ext in '' $ac_executable_extensions; do
6924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6925 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6935 STRIP=$ac_cv_prog_STRIP
6936 if test -n "$STRIP"; then
6937 { echo "$as_me:$LINENO: result: $STRIP" >&5
6938 echo "${ECHO_T}$STRIP" >&6; }
6940 { echo "$as_me:$LINENO: result: no" >&5
6941 echo "${ECHO_T}no" >&6; }
6946 if test -z "$ac_cv_prog_STRIP"; then
6948 # Extract the first word of "strip", so it can be a program name with args.
6949 set dummy strip; ac_word=$2
6950 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6952 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6953 echo $ECHO_N "(cached) $ECHO_C" >&6
6955 if test -n "$ac_ct_STRIP"; then
6956 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6962 test -z "$as_dir" && as_dir=.
6963 for ac_exec_ext in '' $ac_executable_extensions; do
6964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6965 ac_cv_prog_ac_ct_STRIP="strip"
6966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6975 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6976 if test -n "$ac_ct_STRIP"; then
6977 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6978 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6980 { echo "$as_me:$LINENO: result: no" >&5
6981 echo "${ECHO_T}no" >&6; }
6984 if test "x$ac_ct_STRIP" = x; then
6987 case $cross_compiling:$ac_tool_warned in
6989 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6990 whose name does not start with the host triplet. If you think this
6991 configuration is useful to you, please write to autoconf@gnu.org." >&5
6992 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6993 whose name does not start with the host triplet. If you think this
6994 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6995 ac_tool_warned=yes ;;
7000 STRIP="$ac_cv_prog_STRIP"
7005 old_CFLAGS="$CFLAGS"
7007 # Set sane defaults for various variables
7008 test -z "$AR" && AR=ar
7009 test -z "$AR_FLAGS" && AR_FLAGS=cru
7010 test -z "$AS" && AS=as
7011 test -z "$CC" && CC=cc
7012 test -z "$LTCC" && LTCC=$CC
7013 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7014 test -z "$DLLTOOL" && DLLTOOL=dlltool
7015 test -z "$LD" && LD=ld
7016 test -z "$LN_S" && LN_S="ln -s"
7017 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7018 test -z "$NM" && NM=nm
7019 test -z "$SED" && SED=sed
7020 test -z "$OBJDUMP" && OBJDUMP=objdump
7021 test -z "$RANLIB" && RANLIB=:
7022 test -z "$STRIP" && STRIP=:
7023 test -z "$ac_objext" && ac_objext=o
7025 # Determine commands to create old-style static archives.
7026 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7027 old_postinstall_cmds='chmod 644 $oldlib'
7028 old_postuninstall_cmds=
7030 if test -n "$RANLIB"; then
7033 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7036 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7039 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7042 for cc_temp in $compiler""; do
7044 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7045 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7050 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7053 # Only perform the check for file, if the check method requires it
7054 case $deplibs_check_method in
7056 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7057 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7058 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7059 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7060 echo $ECHO_N "(cached) $ECHO_C" >&6
7064 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7067 lt_save_MAGIC_CMD="$MAGIC_CMD"
7068 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7069 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7070 for ac_dir in $ac_dummy; do
7072 test -z "$ac_dir" && ac_dir=.
7073 if test -f $ac_dir/${ac_tool_prefix}file; then
7074 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7075 if test -n "$file_magic_test_file"; then
7076 case $deplibs_check_method in
7078 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7079 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7080 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7081 $EGREP "$file_magic_regex" > /dev/null; then
7086 *** Warning: the command libtool uses to detect shared libraries,
7087 *** $file_magic_cmd, produces output that libtool cannot recognize.
7088 *** The result is that libtool may fail to recognize shared libraries
7089 *** as such. This will affect the creation of libtool libraries that
7090 *** depend on shared libraries, but programs linked with such libtool
7091 *** libraries will work regardless of this problem. Nevertheless, you
7092 *** may want to report the problem to your system manager and/or to
7093 *** bug-libtool@gnu.org
7103 MAGIC_CMD="$lt_save_MAGIC_CMD"
7108 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7109 if test -n "$MAGIC_CMD"; then
7110 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7111 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7113 { echo "$as_me:$LINENO: result: no" >&5
7114 echo "${ECHO_T}no" >&6; }
7117 if test -z "$lt_cv_path_MAGIC_CMD"; then
7118 if test -n "$ac_tool_prefix"; then
7119 { echo "$as_me:$LINENO: checking for file" >&5
7120 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7121 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7122 echo $ECHO_N "(cached) $ECHO_C" >&6
7126 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7129 lt_save_MAGIC_CMD="$MAGIC_CMD"
7130 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7131 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7132 for ac_dir in $ac_dummy; do
7134 test -z "$ac_dir" && ac_dir=.
7135 if test -f $ac_dir/file; then
7136 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7137 if test -n "$file_magic_test_file"; then
7138 case $deplibs_check_method in
7140 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7141 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7142 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7143 $EGREP "$file_magic_regex" > /dev/null; then
7148 *** Warning: the command libtool uses to detect shared libraries,
7149 *** $file_magic_cmd, produces output that libtool cannot recognize.
7150 *** The result is that libtool may fail to recognize shared libraries
7151 *** as such. This will affect the creation of libtool libraries that
7152 *** depend on shared libraries, but programs linked with such libtool
7153 *** libraries will work regardless of this problem. Nevertheless, you
7154 *** may want to report the problem to your system manager and/or to
7155 *** bug-libtool@gnu.org
7165 MAGIC_CMD="$lt_save_MAGIC_CMD"
7170 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7171 if test -n "$MAGIC_CMD"; then
7172 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7173 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7175 { echo "$as_me:$LINENO: result: no" >&5
7176 echo "${ECHO_T}no" >&6; }
7190 rhapsody* | darwin*)
7191 if test -n "$ac_tool_prefix"; then
7192 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7193 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7194 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7196 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7197 echo $ECHO_N "(cached) $ECHO_C" >&6
7199 if test -n "$DSYMUTIL"; then
7200 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7206 test -z "$as_dir" && as_dir=.
7207 for ac_exec_ext in '' $ac_executable_extensions; do
7208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7209 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7219 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7220 if test -n "$DSYMUTIL"; then
7221 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7222 echo "${ECHO_T}$DSYMUTIL" >&6; }
7224 { echo "$as_me:$LINENO: result: no" >&5
7225 echo "${ECHO_T}no" >&6; }
7230 if test -z "$ac_cv_prog_DSYMUTIL"; then
7231 ac_ct_DSYMUTIL=$DSYMUTIL
7232 # Extract the first word of "dsymutil", so it can be a program name with args.
7233 set dummy dsymutil; ac_word=$2
7234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7236 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7237 echo $ECHO_N "(cached) $ECHO_C" >&6
7239 if test -n "$ac_ct_DSYMUTIL"; then
7240 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7246 test -z "$as_dir" && as_dir=.
7247 for ac_exec_ext in '' $ac_executable_extensions; do
7248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7249 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7259 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7260 if test -n "$ac_ct_DSYMUTIL"; then
7261 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7262 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7264 { echo "$as_me:$LINENO: result: no" >&5
7265 echo "${ECHO_T}no" >&6; }
7268 if test "x$ac_ct_DSYMUTIL" = x; then
7271 case $cross_compiling:$ac_tool_warned in
7273 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7274 whose name does not start with the host triplet. If you think this
7275 configuration is useful to you, please write to autoconf@gnu.org." >&5
7276 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7277 whose name does not start with the host triplet. If you think this
7278 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7279 ac_tool_warned=yes ;;
7281 DSYMUTIL=$ac_ct_DSYMUTIL
7284 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7287 if test -n "$ac_tool_prefix"; then
7288 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7289 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7290 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7292 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7293 echo $ECHO_N "(cached) $ECHO_C" >&6
7295 if test -n "$NMEDIT"; then
7296 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7302 test -z "$as_dir" && as_dir=.
7303 for ac_exec_ext in '' $ac_executable_extensions; do
7304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7305 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7315 NMEDIT=$ac_cv_prog_NMEDIT
7316 if test -n "$NMEDIT"; then
7317 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7318 echo "${ECHO_T}$NMEDIT" >&6; }
7320 { echo "$as_me:$LINENO: result: no" >&5
7321 echo "${ECHO_T}no" >&6; }
7326 if test -z "$ac_cv_prog_NMEDIT"; then
7327 ac_ct_NMEDIT=$NMEDIT
7328 # Extract the first word of "nmedit", so it can be a program name with args.
7329 set dummy nmedit; ac_word=$2
7330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7332 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7333 echo $ECHO_N "(cached) $ECHO_C" >&6
7335 if test -n "$ac_ct_NMEDIT"; then
7336 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7342 test -z "$as_dir" && as_dir=.
7343 for ac_exec_ext in '' $ac_executable_extensions; do
7344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7345 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7355 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7356 if test -n "$ac_ct_NMEDIT"; then
7357 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7358 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7360 { echo "$as_me:$LINENO: result: no" >&5
7361 echo "${ECHO_T}no" >&6; }
7364 if test "x$ac_ct_NMEDIT" = x; then
7367 case $cross_compiling:$ac_tool_warned in
7369 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7370 whose name does not start with the host triplet. If you think this
7371 configuration is useful to you, please write to autoconf@gnu.org." >&5
7372 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7373 whose name does not start with the host triplet. If you think this
7374 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7375 ac_tool_warned=yes ;;
7377 NMEDIT=$ac_ct_NMEDIT
7380 NMEDIT="$ac_cv_prog_NMEDIT"
7384 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7385 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7386 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7387 echo $ECHO_N "(cached) $ECHO_C" >&6
7389 lt_cv_apple_cc_single_mod=no
7390 if test -z "${LT_MULTI_MODULE}"; then
7391 # By default we will add the -single_module flag. You can override
7392 # by either setting the environment variable LT_MULTI_MODULE
7393 # non-empty at configure time, or by adding -multi_module to the
7395 echo "int foo(void){return 1;}" > conftest.c
7396 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7397 -dynamiclib ${wl}-single_module conftest.c
7398 if test -f libconftest.dylib; then
7399 lt_cv_apple_cc_single_mod=yes
7400 rm -rf libconftest.dylib*
7405 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7406 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7407 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7408 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7409 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7410 echo $ECHO_N "(cached) $ECHO_C" >&6
7412 lt_cv_ld_exported_symbols_list=no
7413 save_LDFLAGS=$LDFLAGS
7414 echo "_main" > conftest.sym
7415 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7416 cat >conftest.$ac_ext <<_ACEOF
7419 cat confdefs.h >>conftest.$ac_ext
7420 cat >>conftest.$ac_ext <<_ACEOF
7421 /* end confdefs.h. */
7431 rm -f conftest.$ac_objext conftest$ac_exeext
7432 if { (ac_try="$ac_link"
7434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7435 *) ac_try_echo=$ac_try;;
7437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7438 (eval "$ac_link") 2>conftest.er1
7440 grep -v '^ *+' conftest.er1 >conftest.err
7442 cat conftest.err >&5
7443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444 (exit $ac_status); } && {
7445 test -z "$ac_c_werror_flag" ||
7446 test ! -s conftest.err
7447 } && test -s conftest$ac_exeext &&
7448 $as_test_x conftest$ac_exeext; then
7449 lt_cv_ld_exported_symbols_list=yes
7451 echo "$as_me: failed program was:" >&5
7452 sed 's/^/| /' conftest.$ac_ext >&5
7454 lt_cv_ld_exported_symbols_list=no
7457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7458 conftest$ac_exeext conftest.$ac_ext
7459 LDFLAGS="$save_LDFLAGS"
7462 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7463 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7465 rhapsody* | darwin1.[0123])
7466 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7468 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7470 # if running on 10.5 or later, the deployment target defaults
7471 # to the OS version, if on x86, and 10.4, the deployment
7472 # target defaults to 10.4. Don't you love it?
7473 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7474 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7475 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7477 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7479 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7483 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7484 _lt_dar_single_mod='$single_module'
7486 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7487 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7489 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7491 if test "$DSYMUTIL" != ":"; then
7492 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7503 # Check whether --enable-libtool-lock was given.
7504 if test "${enable_libtool_lock+set}" = set; then
7505 enableval=$enable_libtool_lock;
7508 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7511 # Check whether --with-pic was given.
7512 if test "${with_pic+set}" = set; then
7513 withval=$with_pic; pic_mode="$withval"
7518 test -z "$pic_mode" && pic_mode=default
7520 # Use C for the default configuration in the libtool script
7524 ac_cpp='$CPP $CPPFLAGS'
7525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7530 # Source file extension for C test sources.
7533 # Object file extension for compiled C test sources.
7537 # Code to be used in simple compile tests
7538 lt_simple_compile_test_code="int some_variable = 0;"
7540 # Code to be used in simple link tests
7541 lt_simple_link_test_code='int main(){return(0);}'
7544 # If no C compiler was specified, use CC.
7547 # If no C compiler flags were specified, use CFLAGS.
7548 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7550 # Allow CC to be a program name with arguments.
7554 # save warnings/boilerplate of simple test code
7555 ac_outfile=conftest.$ac_objext
7556 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7557 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7558 _lt_compiler_boilerplate=`cat conftest.err`
7561 ac_outfile=conftest.$ac_objext
7562 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7563 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7564 _lt_linker_boilerplate=`cat conftest.err`
7569 lt_prog_compiler_no_builtin_flag=
7571 if test "$GCC" = yes; then
7572 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7575 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7576 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7577 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7578 echo $ECHO_N "(cached) $ECHO_C" >&6
7580 lt_cv_prog_compiler_rtti_exceptions=no
7581 ac_outfile=conftest.$ac_objext
7582 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7583 lt_compiler_flag="-fno-rtti -fno-exceptions"
7584 # Insert the option either (1) after the last *FLAGS variable, or
7585 # (2) before a word containing "conftest.", or (3) at the end.
7586 # Note that $ac_compile itself does not contain backslashes and begins
7587 # with a dollar sign (not a hyphen), so the echo should work correctly.
7588 # The option is referenced via a variable to avoid confusing sed.
7589 lt_compile=`echo "$ac_compile" | $SED \
7590 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7591 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7592 -e 's:$: $lt_compiler_flag:'`
7593 (eval echo "\"\$as_me:7593: $lt_compile\"" >&5)
7594 (eval "$lt_compile" 2>conftest.err)
7596 cat conftest.err >&5
7597 echo "$as_me:7597: \$? = $ac_status" >&5
7598 if (exit $ac_status) && test -s "$ac_outfile"; then
7599 # The compiler can only warn and ignore the option if not recognized
7600 # So say no if there are warnings other than the usual output.
7601 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7602 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7603 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7604 lt_cv_prog_compiler_rtti_exceptions=yes
7610 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7611 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7613 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7614 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7621 lt_prog_compiler_wl=
7622 lt_prog_compiler_pic=
7623 lt_prog_compiler_static=
7625 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7626 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7628 if test "$GCC" = yes; then
7629 lt_prog_compiler_wl='-Wl,'
7630 lt_prog_compiler_static='-static'
7634 # All AIX code is PIC.
7635 if test "$host_cpu" = ia64; then
7636 # AIX 5 now supports IA64 processor
7637 lt_prog_compiler_static='-Bstatic'
7642 # FIXME: we need at least 68020 code to build shared libraries, but
7643 # adding the `-m68020' flag to GCC prevents building anything better,
7645 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7648 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7649 # PIC is the default for these OSes.
7652 mingw* | cygwin* | pw32* | os2*)
7653 # This hack is so that the source file can tell whether it is being
7654 # built for inclusion in a dll (and should export symbols for example).
7655 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7656 # (--disable-auto-import) libraries
7657 lt_prog_compiler_pic='-DDLL_EXPORT'
7660 darwin* | rhapsody*)
7661 # PIC is the default on this platform
7662 # Common symbols not allowed in MH_DYLIB files
7663 lt_prog_compiler_pic='-fno-common'
7667 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7668 # Instead, we relocate shared libraries at runtime.
7672 # Just because we use GCC doesn't mean we suddenly get shared libraries
7673 # on systems that don't support them.
7674 lt_prog_compiler_can_build_shared=no
7679 if test -d /usr/nec; then
7680 lt_prog_compiler_pic=-Kconform_pic
7685 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7692 lt_prog_compiler_pic='-fPIC'
7698 lt_prog_compiler_pic='-fPIC'
7702 # PORTME Check for flag to pass linker flags through the system compiler.
7705 lt_prog_compiler_wl='-Wl,'
7706 if test "$host_cpu" = ia64; then
7707 # AIX 5 now supports IA64 processor
7708 lt_prog_compiler_static='-Bstatic'
7710 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7714 # PIC is the default on this platform
7715 # Common symbols not allowed in MH_DYLIB files
7716 case $cc_basename in
7718 lt_prog_compiler_pic='-qnocommon'
7719 lt_prog_compiler_wl='-Wl,'
7724 mingw* | cygwin* | pw32* | os2*)
7725 # This hack is so that the source file can tell whether it is being
7726 # built for inclusion in a dll (and should export symbols for example).
7727 lt_prog_compiler_pic='-DDLL_EXPORT'
7730 hpux9* | hpux10* | hpux11*)
7731 lt_prog_compiler_wl='-Wl,'
7732 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7739 lt_prog_compiler_pic='+Z'
7742 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7743 lt_prog_compiler_static='${wl}-a ${wl}archive'
7746 irix5* | irix6* | nonstopux*)
7747 lt_prog_compiler_wl='-Wl,'
7748 # PIC (with -KPIC) is the default.
7749 lt_prog_compiler_static='-non_shared'
7753 lt_prog_compiler_pic='-KPIC'
7754 lt_prog_compiler_static='-Bstatic'
7757 linux* | k*bsd*-gnu)
7758 case $cc_basename in
7760 lt_prog_compiler_wl='-Wl,'
7761 lt_prog_compiler_pic='-KPIC'
7762 lt_prog_compiler_static='-static'
7764 pgcc* | pgf77* | pgf90* | pgf95*)
7765 # Portland Group compilers (*not* the Pentium gcc compiler,
7766 # which looks to be a dead project)
7767 lt_prog_compiler_wl='-Wl,'
7768 lt_prog_compiler_pic='-fpic'
7769 lt_prog_compiler_static='-Bstatic'
7772 lt_prog_compiler_wl='-Wl,'
7773 # All Alpha code is PIC.
7774 lt_prog_compiler_static='-non_shared'
7777 case `$CC -V 2>&1 | sed 5q` in
7780 lt_prog_compiler_pic='-KPIC'
7781 lt_prog_compiler_static='-Bstatic'
7782 lt_prog_compiler_wl='-Wl,'
7785 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7786 lt_prog_compiler_pic='-KPIC'
7787 lt_prog_compiler_static='-Bstatic'
7788 lt_prog_compiler_wl=''
7795 osf3* | osf4* | osf5*)
7796 lt_prog_compiler_wl='-Wl,'
7797 # All OSF/1 code is PIC.
7798 lt_prog_compiler_static='-non_shared'
7802 lt_prog_compiler_static='-non_shared'
7806 lt_prog_compiler_pic='-KPIC'
7807 lt_prog_compiler_static='-Bstatic'
7808 case $cc_basename in
7810 lt_prog_compiler_wl='-Qoption ld ';;
7812 lt_prog_compiler_wl='-Wl,';;
7817 lt_prog_compiler_wl='-Qoption ld '
7818 lt_prog_compiler_pic='-PIC'
7819 lt_prog_compiler_static='-Bstatic'
7822 sysv4 | sysv4.2uw2* | sysv4.3*)
7823 lt_prog_compiler_wl='-Wl,'
7824 lt_prog_compiler_pic='-KPIC'
7825 lt_prog_compiler_static='-Bstatic'
7829 if test -d /usr/nec ;then
7830 lt_prog_compiler_pic='-Kconform_pic'
7831 lt_prog_compiler_static='-Bstatic'
7835 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7836 lt_prog_compiler_wl='-Wl,'
7837 lt_prog_compiler_pic='-KPIC'
7838 lt_prog_compiler_static='-Bstatic'
7842 lt_prog_compiler_wl='-Wl,'
7843 lt_prog_compiler_can_build_shared=no
7847 lt_prog_compiler_pic='-pic'
7848 lt_prog_compiler_static='-Bstatic'
7852 lt_prog_compiler_can_build_shared=no
7857 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7858 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7861 # Check to make sure the PIC flag actually works.
7863 if test -n "$lt_prog_compiler_pic"; then
7865 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7866 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7867 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7868 echo $ECHO_N "(cached) $ECHO_C" >&6
7870 lt_cv_prog_compiler_pic_works=no
7871 ac_outfile=conftest.$ac_objext
7872 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7873 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7874 # Insert the option either (1) after the last *FLAGS variable, or
7875 # (2) before a word containing "conftest.", or (3) at the end.
7876 # Note that $ac_compile itself does not contain backslashes and begins
7877 # with a dollar sign (not a hyphen), so the echo should work correctly.
7878 # The option is referenced via a variable to avoid confusing sed.
7879 lt_compile=`echo "$ac_compile" | $SED \
7880 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7881 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7882 -e 's:$: $lt_compiler_flag:'`
7883 (eval echo "\"\$as_me:7883: $lt_compile\"" >&5)
7884 (eval "$lt_compile" 2>conftest.err)
7886 cat conftest.err >&5
7887 echo "$as_me:7887: \$? = $ac_status" >&5
7888 if (exit $ac_status) && test -s "$ac_outfile"; then
7889 # The compiler can only warn and ignore the option if not recognized
7890 # So say no if there are warnings other than the usual output.
7891 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7892 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7893 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7894 lt_cv_prog_compiler_pic_works=yes
7900 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7901 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7903 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7904 case $lt_prog_compiler_pic in
7906 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7909 lt_prog_compiler_pic=
7910 lt_prog_compiler_can_build_shared=no
7915 # For platforms which do not support PIC, -DPIC is meaningless:
7917 lt_prog_compiler_pic=
7920 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7925 # Check to make sure the static flag actually works.
7927 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7928 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7929 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7930 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7931 echo $ECHO_N "(cached) $ECHO_C" >&6
7933 lt_cv_prog_compiler_static_works=no
7934 save_LDFLAGS="$LDFLAGS"
7935 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7936 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7937 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7938 # The linker can only warn and ignore the option if not recognized
7939 # So say no if there are warnings
7940 if test -s conftest.err; then
7941 # Append any errors to the config.log.
7942 cat conftest.err 1>&5
7943 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7944 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7945 if diff conftest.exp conftest.er2 >/dev/null; then
7946 lt_cv_prog_compiler_static_works=yes
7949 lt_cv_prog_compiler_static_works=yes
7953 LDFLAGS="$save_LDFLAGS"
7956 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7957 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7959 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7962 lt_prog_compiler_static=
7966 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7967 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7968 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7969 echo $ECHO_N "(cached) $ECHO_C" >&6
7971 lt_cv_prog_compiler_c_o=no
7972 $rm -r conftest 2>/dev/null
7976 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7978 lt_compiler_flag="-o out/conftest2.$ac_objext"
7979 # Insert the option either (1) after the last *FLAGS variable, or
7980 # (2) before a word containing "conftest.", or (3) at the end.
7981 # Note that $ac_compile itself does not contain backslashes and begins
7982 # with a dollar sign (not a hyphen), so the echo should work correctly.
7983 lt_compile=`echo "$ac_compile" | $SED \
7984 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7985 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7986 -e 's:$: $lt_compiler_flag:'`
7987 (eval echo "\"\$as_me:7987: $lt_compile\"" >&5)
7988 (eval "$lt_compile" 2>out/conftest.err)
7990 cat out/conftest.err >&5
7991 echo "$as_me:7991: \$? = $ac_status" >&5
7992 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7994 # The compiler can only warn and ignore the option if not recognized
7995 # So say no if there are warnings
7996 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7997 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7998 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7999 lt_cv_prog_compiler_c_o=yes
8004 # SGI C++ compiler will create directory out/ii_files/ for
8005 # template instantiation
8006 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8007 $rm out/* && rmdir out
8013 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8014 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8017 hard_links="nottested"
8018 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8019 # do not overwrite the value of need_locks provided by the user
8020 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8021 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8024 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8026 ln conftest.a conftest.b 2>&5 || hard_links=no
8027 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8028 { echo "$as_me:$LINENO: result: $hard_links" >&5
8029 echo "${ECHO_T}$hard_links" >&6; }
8030 if test "$hard_links" = no; then
8031 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8032 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8039 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8040 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8043 allow_undefined_flag=
8044 enable_shared_with_static_runtimes=no
8046 archive_expsym_cmds=
8047 old_archive_From_new_cmds=
8048 old_archive_from_expsyms_cmds=
8049 export_dynamic_flag_spec=
8050 whole_archive_flag_spec=
8051 thread_safe_flag_spec=
8052 hardcode_libdir_flag_spec=
8053 hardcode_libdir_flag_spec_ld=
8054 hardcode_libdir_separator=
8057 hardcode_shlibpath_var=unsupported
8058 link_all_deplibs=unknown
8059 hardcode_automatic=no
8062 always_export_symbols=no
8063 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8064 # include_expsyms should be a list of space-separated symbols to be *always*
8065 # included in the symbol list
8067 # exclude_expsyms can be an extended regexp of symbols to exclude
8068 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8069 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8070 # as well as any symbol that contains `d'.
8071 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8072 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8073 # platforms (ab)use it in PIC code, but their linkers get confused if
8074 # the symbol is explicitly referenced. Since portable code cannot
8075 # rely on this symbol name, it's probably fine to never include it in
8076 # preloaded symbol tables.
8077 # Exclude shared library initialization/finalization symbols.
8078 extract_expsyms_cmds=
8079 # Just being paranoid about ensuring that cc_basename is set.
8080 for cc_temp in $compiler""; do
8082 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8083 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8088 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8091 cygwin* | mingw* | pw32*)
8092 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8093 # When not using gcc, we currently assume that we are using
8094 # Microsoft Visual C++.
8095 if test "$GCC" != yes; then
8100 # we just hope/assume this is gcc and not c89 (= MSVC++)
8109 if test "$with_gnu_ld" = yes; then
8110 # If archive_cmds runs LD, not CC, wlarc should be empty
8113 # Set some defaults for GNU ld with shared library support. These
8114 # are reset later if shared libraries are not supported. Putting them
8115 # here allows them to be overridden if necessary.
8116 runpath_var=LD_RUN_PATH
8117 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8118 export_dynamic_flag_spec='${wl}--export-dynamic'
8119 # ancient GNU ld didn't support --whole-archive et. al.
8120 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8121 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8123 whole_archive_flag_spec=
8125 supports_anon_versioning=no
8126 case `$LD -v 2>/dev/null` in
8127 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8128 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8129 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8130 *\ 2.11.*) ;; # other 2.11 versions
8131 *) supports_anon_versioning=yes ;;
8134 # See if GNU ld supports shared libraries.
8137 # On AIX/PPC, the GNU linker is very broken
8138 if test "$host_cpu" != ia64; then
8142 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8143 *** to be unable to reliably create shared libraries on AIX.
8144 *** Therefore, libtool is disabling shared libraries support. If you
8145 *** really care for shared libraries, you may want to modify your PATH
8146 *** so that a non-GNU linker is found, and then restart.
8153 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)'
8154 hardcode_libdir_flag_spec='-L$libdir'
8155 hardcode_minus_L=yes
8157 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8158 # that the semantics of dynamic libraries on AmigaOS, at least up
8159 # to version 4, is to share data among multiple programs linked
8160 # with the same dynamic library. Since this doesn't match the
8161 # behavior of shared libraries on other platforms, we can't use
8167 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8168 allow_undefined_flag=unsupported
8169 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8170 # support --undefined. This deserves some investigation. FIXME
8171 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8177 cygwin* | mingw* | pw32*)
8178 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8179 # as there is no search path for DLLs.
8180 hardcode_libdir_flag_spec='-L$libdir'
8181 allow_undefined_flag=unsupported
8182 always_export_symbols=no
8183 enable_shared_with_static_runtimes=yes
8184 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8186 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8187 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8188 # If the export-symbols file already is a .def file (1st line
8189 # is EXPORTS), use it as is; otherwise, prepend...
8190 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8191 cp $export_symbols $output_objdir/$soname.def;
8193 echo EXPORTS > $output_objdir/$soname.def;
8194 cat $export_symbols >> $output_objdir/$soname.def;
8196 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8204 hardcode_shlibpath_var=no
8205 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8206 export_dynamic_flag_spec='${wl}-E'
8207 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8208 # Instead, shared libraries are loaded at an image base (0x10000000 by
8209 # default) and relocated if they conflict, which is a slow very memory
8210 # consuming and fragmenting process. To avoid this, we pick a random,
8211 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8212 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8213 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8214 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'
8217 gnu* | linux* | k*bsd*-gnu)
8218 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8220 case $cc_basename,$host_cpu in
8221 pgcc*) # Portland Group C compiler
8222 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'
8223 tmp_addflag=' $pic_flag'
8225 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8226 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'
8227 tmp_addflag=' $pic_flag -Mnomain' ;;
8228 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8229 tmp_addflag=' -i_dynamic' ;;
8230 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8231 tmp_addflag=' -i_dynamic -nofor_main' ;;
8232 ifc* | ifort*) # Intel Fortran compiler
8233 tmp_addflag=' -nofor_main' ;;
8235 case `$CC -V 2>&1 | sed 5q` in
8236 *Sun\ C*) # Sun C 5.9
8237 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'
8238 tmp_sharedflag='-G' ;;
8239 *Sun\ F*) # Sun Fortran 8.3
8240 tmp_sharedflag='-G' ;;
8242 tmp_sharedflag='-shared' ;;
8244 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8246 if test $supports_anon_versioning = yes; then
8247 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8248 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8249 $echo "local: *; };" >> $output_objdir/$libname.ver~
8250 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8258 netbsd* | netbsdelf*-gnu)
8259 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8260 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8263 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8264 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8269 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8273 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8274 *** create shared libraries on Solaris systems. Therefore, libtool
8275 *** is disabling shared libraries support. We urge you to upgrade GNU
8276 *** binutils to release 2.9.1 or newer. Another option is to modify
8277 *** your PATH or compiler configuration so that the native linker is
8278 *** used, and then restart.
8281 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8282 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8283 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8289 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8290 case `$LD -v 2>&1` in
8291 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8295 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8296 *** reliably create shared libraries on SCO systems. Therefore, libtool
8297 *** is disabling shared libraries support. We urge you to upgrade GNU
8298 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8299 *** your PATH or compiler configuration so that the native linker is
8300 *** used, and then restart.
8305 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8306 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8307 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8308 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8317 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8320 hardcode_shlibpath_var=no
8324 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8325 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8326 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8333 if test "$ld_shlibs" = no; then
8335 hardcode_libdir_flag_spec=
8336 export_dynamic_flag_spec=
8337 whole_archive_flag_spec=
8340 # PORTME fill in a description of your system's linker (not GNU ld)
8343 allow_undefined_flag=unsupported
8344 always_export_symbols=yes
8345 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'
8346 # Note: this linker hardcodes the directories in LIBPATH if there
8347 # are no directories specified by -L.
8348 hardcode_minus_L=yes
8349 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8350 # Neither direct hardcoding nor static linking is supported with a
8352 hardcode_direct=unsupported
8357 if test "$host_cpu" = ia64; then
8358 # On IA64, the linker does run time linking by default, so we don't
8359 # have to do anything special.
8360 aix_use_runtimelinking=no
8361 exp_sym_flag='-Bexport'
8364 # If we're using GNU nm, then we don't want the "-C" option.
8365 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8366 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8367 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'
8369 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'
8371 aix_use_runtimelinking=no
8373 # Test if we are trying to use run time linking or normal
8374 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8375 # need to do runtime linking.
8376 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8377 for ld_flag in $LDFLAGS; do
8378 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8379 aix_use_runtimelinking=yes
8386 exp_sym_flag='-bexport'
8387 no_entry_flag='-bnoentry'
8390 # When large executables or shared objects are built, AIX ld can
8391 # have problems creating the table of contents. If linking a library
8392 # or program results in "error TOC overflow" add -mminimal-toc to
8393 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8394 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8398 hardcode_libdir_separator=':'
8399 link_all_deplibs=yes
8401 if test "$GCC" = yes; then
8402 case $host_os in aix4.[012]|aix4.[012].*)
8403 # We only want to do this on AIX 4.2 and lower, the check
8404 # below for broken collect2 doesn't work under 4.3+
8405 collect2name=`${CC} -print-prog-name=collect2`
8406 if test -f "$collect2name" && \
8407 strings "$collect2name" | grep resolve_lib_name >/dev/null
8409 # We have reworked collect2
8412 # We have old collect2
8413 hardcode_direct=unsupported
8414 # It fails to find uninstalled libraries when the uninstalled
8415 # path is not listed in the libpath. Setting hardcode_minus_L
8416 # to unsupported forces relinking
8417 hardcode_minus_L=yes
8418 hardcode_libdir_flag_spec='-L$libdir'
8419 hardcode_libdir_separator=
8423 shared_flag='-shared'
8424 if test "$aix_use_runtimelinking" = yes; then
8425 shared_flag="$shared_flag "'${wl}-G'
8429 if test "$host_cpu" = ia64; then
8430 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8431 # chokes on -Wl,-G. The following line is correct:
8434 if test "$aix_use_runtimelinking" = yes; then
8435 shared_flag='${wl}-G'
8437 shared_flag='${wl}-bM:SRE'
8442 # It seems that -bexpall does not export symbols beginning with
8443 # underscore (_), so it is better to generate a list of symbols to export.
8444 always_export_symbols=yes
8445 if test "$aix_use_runtimelinking" = yes; then
8446 # Warning - without using the other runtime loading flags (-brtl),
8447 # -berok will link without error, but may produce a broken library.
8448 allow_undefined_flag='-berok'
8449 # Determine the default libpath from the value encoded in an empty executable.
8450 cat >conftest.$ac_ext <<_ACEOF
8453 cat confdefs.h >>conftest.$ac_ext
8454 cat >>conftest.$ac_ext <<_ACEOF
8455 /* end confdefs.h. */
8465 rm -f conftest.$ac_objext conftest$ac_exeext
8466 if { (ac_try="$ac_link"
8468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8469 *) ac_try_echo=$ac_try;;
8471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8472 (eval "$ac_link") 2>conftest.er1
8474 grep -v '^ *+' conftest.er1 >conftest.err
8476 cat conftest.err >&5
8477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478 (exit $ac_status); } && {
8479 test -z "$ac_c_werror_flag" ||
8480 test ! -s conftest.err
8481 } && test -s conftest$ac_exeext &&
8482 $as_test_x conftest$ac_exeext; then
8484 lt_aix_libpath_sed='
8485 /Import File Strings/,/^$/ {
8491 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8492 # Check for a 64-bit object if we didn't find anything.
8493 if test -z "$aix_libpath"; then
8494 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8497 echo "$as_me: failed program was:" >&5
8498 sed 's/^/| /' conftest.$ac_ext >&5
8503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8504 conftest$ac_exeext conftest.$ac_ext
8505 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8507 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8508 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"
8510 if test "$host_cpu" = ia64; then
8511 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8512 allow_undefined_flag="-z nodefs"
8513 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"
8515 # Determine the default libpath from the value encoded in an empty executable.
8516 cat >conftest.$ac_ext <<_ACEOF
8519 cat confdefs.h >>conftest.$ac_ext
8520 cat >>conftest.$ac_ext <<_ACEOF
8521 /* end confdefs.h. */
8531 rm -f conftest.$ac_objext conftest$ac_exeext
8532 if { (ac_try="$ac_link"
8534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8535 *) ac_try_echo=$ac_try;;
8537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8538 (eval "$ac_link") 2>conftest.er1
8540 grep -v '^ *+' conftest.er1 >conftest.err
8542 cat conftest.err >&5
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); } && {
8545 test -z "$ac_c_werror_flag" ||
8546 test ! -s conftest.err
8547 } && test -s conftest$ac_exeext &&
8548 $as_test_x conftest$ac_exeext; then
8550 lt_aix_libpath_sed='
8551 /Import File Strings/,/^$/ {
8557 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8558 # Check for a 64-bit object if we didn't find anything.
8559 if test -z "$aix_libpath"; then
8560 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8563 echo "$as_me: failed program was:" >&5
8564 sed 's/^/| /' conftest.$ac_ext >&5
8569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8570 conftest$ac_exeext conftest.$ac_ext
8571 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8573 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8574 # Warning - without using the other run time loading flags,
8575 # -berok will link without error, but may produce a broken library.
8576 no_undefined_flag=' ${wl}-bernotok'
8577 allow_undefined_flag=' ${wl}-berok'
8578 # Exported symbols can be pulled into shared objects from archives
8579 whole_archive_flag_spec='$convenience'
8580 archive_cmds_need_lc=yes
8581 # This is similar to how AIX traditionally builds its shared libraries.
8582 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'
8588 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)'
8589 hardcode_libdir_flag_spec='-L$libdir'
8590 hardcode_minus_L=yes
8591 # see comment about different semantics on the GNU ld section
8596 export_dynamic_flag_spec=-rdynamic
8599 cygwin* | mingw* | pw32*)
8600 # When not using gcc, we currently assume that we are using
8601 # Microsoft Visual C++.
8602 # hardcode_libdir_flag_spec is actually meaningless, as there is
8603 # no search path for DLLs.
8604 hardcode_libdir_flag_spec=' '
8605 allow_undefined_flag=unsupported
8606 # Tell ltmain to make .lib files, not .a files.
8608 # Tell ltmain to make .dll files, not .so files.
8610 # FIXME: Setting linknames here is a bad hack.
8611 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8612 # The linker will automatically build a .lib file if we build a DLL.
8613 old_archive_From_new_cmds='true'
8614 # FIXME: Should let the user specify the lib program.
8615 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8616 fix_srcfile_path='`cygpath -w "$srcfile"`'
8617 enable_shared_with_static_runtimes=yes
8620 darwin* | rhapsody*)
8622 rhapsody* | darwin1.[012])
8623 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8626 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8627 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8629 case ${MACOSX_DEPLOYMENT_TARGET} in
8631 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8634 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8640 archive_cmds_need_lc=no
8642 hardcode_automatic=yes
8643 hardcode_shlibpath_var=unsupported
8644 whole_archive_flag_spec=''
8645 link_all_deplibs=yes
8646 if test "$GCC" = yes ; then
8647 output_verbose_link_cmd='echo'
8648 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8649 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8650 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}"
8651 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}"
8653 case $cc_basename in
8655 output_verbose_link_cmd='echo'
8656 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8657 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8658 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8659 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}'
8660 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}'
8670 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8671 hardcode_libdir_flag_spec='-L$libdir'
8672 hardcode_shlibpath_var=no
8679 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8680 # support. Future versions do this automatically, but an explicit c++rt0.o
8681 # does not break anything, and helps significantly (at the cost of a little
8684 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8685 hardcode_libdir_flag_spec='-R$libdir'
8687 hardcode_shlibpath_var=no
8690 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8692 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8694 hardcode_minus_L=yes
8695 hardcode_shlibpath_var=no
8698 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8699 freebsd* | dragonfly*)
8700 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8701 hardcode_libdir_flag_spec='-R$libdir'
8703 hardcode_shlibpath_var=no
8707 if test "$GCC" = yes; then
8708 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'
8710 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'
8712 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8713 hardcode_libdir_separator=:
8716 # hardcode_minus_L: Not really in the search PATH,
8717 # but as the default location of the library.
8718 hardcode_minus_L=yes
8719 export_dynamic_flag_spec='${wl}-E'
8723 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8724 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8726 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8728 if test "$with_gnu_ld" = no; then
8729 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8730 hardcode_libdir_separator=:
8733 export_dynamic_flag_spec='${wl}-E'
8735 # hardcode_minus_L: Not really in the search PATH,
8736 # but as the default location of the library.
8737 hardcode_minus_L=yes
8742 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8745 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8748 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8751 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8757 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8760 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8763 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8767 if test "$with_gnu_ld" = no; then
8768 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8769 hardcode_libdir_separator=:
8773 hardcode_libdir_flag_spec_ld='+b $libdir'
8775 hardcode_shlibpath_var=no
8779 export_dynamic_flag_spec='${wl}-E'
8781 # hardcode_minus_L: Not really in the search PATH,
8782 # but as the default location of the library.
8783 hardcode_minus_L=yes
8789 irix5* | irix6* | nonstopux*)
8790 if test "$GCC" = yes; then
8791 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'
8793 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'
8794 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8796 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8797 hardcode_libdir_separator=:
8798 link_all_deplibs=yes
8801 netbsd* | netbsdelf*-gnu)
8802 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8803 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8805 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8807 hardcode_libdir_flag_spec='-R$libdir'
8809 hardcode_shlibpath_var=no
8813 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8815 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8816 hardcode_libdir_separator=:
8817 hardcode_shlibpath_var=no
8821 if test -f /usr/libexec/ld.so; then
8823 hardcode_shlibpath_var=no
8824 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8825 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8826 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8827 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8828 export_dynamic_flag_spec='${wl}-E'
8831 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8832 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8833 hardcode_libdir_flag_spec='-R$libdir'
8836 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8837 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8847 hardcode_libdir_flag_spec='-L$libdir'
8848 hardcode_minus_L=yes
8849 allow_undefined_flag=unsupported
8850 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'
8851 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8855 if test "$GCC" = yes; then
8856 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8857 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'
8859 allow_undefined_flag=' -expect_unresolved \*'
8860 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'
8862 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8863 hardcode_libdir_separator=:
8866 osf4* | osf5*) # as osf3* with the addition of -msym flag
8867 if test "$GCC" = yes; then
8868 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8869 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'
8870 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8872 allow_undefined_flag=' -expect_unresolved \*'
8873 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'
8874 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8875 $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'
8877 # Both c and cxx compiler support -rpath directly
8878 hardcode_libdir_flag_spec='-rpath $libdir'
8880 hardcode_libdir_separator=:
8884 no_undefined_flag=' -z text'
8885 if test "$GCC" = yes; then
8887 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8888 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8889 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8892 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8893 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8894 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8896 hardcode_libdir_flag_spec='-R$libdir'
8897 hardcode_shlibpath_var=no
8899 solaris2.[0-5] | solaris2.[0-5].*) ;;
8901 # The compiler driver will combine and reorder linker options,
8902 # but understands `-z linker_flag'. GCC discards it without `$wl',
8903 # but is careful enough not to reorder.
8904 # Supported since Solaris 2.6 (maybe 2.5.1?)
8905 if test "$GCC" = yes; then
8906 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8908 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8912 link_all_deplibs=yes
8916 if test "x$host_vendor" = xsequent; then
8917 # Use $CC to link under sequent, because it throws in some extra .o
8918 # files that make .init and .fini sections work.
8919 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8921 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8923 hardcode_libdir_flag_spec='-L$libdir'
8925 hardcode_minus_L=yes
8926 hardcode_shlibpath_var=no
8930 case $host_vendor in
8932 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8933 hardcode_direct=yes # is this really true???
8936 ## LD is ld it makes a PLAMLIB
8937 ## CC just makes a GrossModule.
8938 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8939 reload_cmds='$CC -r -o $output$reload_objs'
8943 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8944 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8947 runpath_var='LD_RUN_PATH'
8948 hardcode_shlibpath_var=no
8952 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8953 hardcode_shlibpath_var=no
8954 export_dynamic_flag_spec='-Bexport'
8958 if test -d /usr/nec; then
8959 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8960 hardcode_shlibpath_var=no
8961 runpath_var=LD_RUN_PATH
8962 hardcode_runpath_var=yes
8967 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8968 no_undefined_flag='${wl}-z,text'
8969 archive_cmds_need_lc=no
8970 hardcode_shlibpath_var=no
8971 runpath_var='LD_RUN_PATH'
8973 if test "$GCC" = yes; then
8974 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8975 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8977 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8978 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8982 sysv5* | sco3.2v5* | sco5v6*)
8983 # Note: We can NOT use -z defs as we might desire, because we do not
8984 # link with -lc, and that would cause any symbols used from libc to
8985 # always be unresolved, which means just about no library would
8986 # ever link correctly. If we're not using GNU ld we use -z text
8987 # though, which does catch some bad symbols but isn't as heavy-handed
8989 no_undefined_flag='${wl}-z,text'
8990 allow_undefined_flag='${wl}-z,nodefs'
8991 archive_cmds_need_lc=no
8992 hardcode_shlibpath_var=no
8993 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8994 hardcode_libdir_separator=':'
8995 link_all_deplibs=yes
8996 export_dynamic_flag_spec='${wl}-Bexport'
8997 runpath_var='LD_RUN_PATH'
8999 if test "$GCC" = yes; then
9000 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9001 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9003 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9004 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9009 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9010 hardcode_libdir_flag_spec='-L$libdir'
9011 hardcode_shlibpath_var=no
9020 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9021 echo "${ECHO_T}$ld_shlibs" >&6; }
9022 test "$ld_shlibs" = no && can_build_shared=no
9025 # Do we need to explicitly link libc?
9027 case "x$archive_cmds_need_lc" in
9029 # Assume -lc should be added
9030 archive_cmds_need_lc=yes
9032 if test "$enable_shared" = yes && test "$GCC" = yes; then
9033 case $archive_cmds in
9035 # FIXME: we may have to deal with multi-command sequences.
9038 # Test whether the compiler implicitly links with -lc since on some
9039 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9040 # to ld, don't add -lc before -lgcc.
9041 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9042 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9044 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9047 (eval $ac_compile) 2>&5
9049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050 (exit $ac_status); } 2>conftest.err; then
9053 libobjs=conftest.$ac_objext
9055 wl=$lt_prog_compiler_wl
9056 pic_flag=$lt_prog_compiler_pic
9062 lt_save_allow_undefined_flag=$allow_undefined_flag
9063 allow_undefined_flag=
9064 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9065 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 (exit $ac_status); }
9070 archive_cmds_need_lc=no
9072 archive_cmds_need_lc=yes
9074 allow_undefined_flag=$lt_save_allow_undefined_flag
9076 cat conftest.err 1>&5
9079 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9080 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9087 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9088 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9090 libname_spec='lib$name'
9098 shlibpath_overrides_runpath=unknown
9100 dynamic_linker="$host_os ld.so"
9101 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9103 if test "$GCC" = yes; then
9105 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9106 *) lt_awk_arg="/^libraries:/" ;;
9108 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9109 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9110 # if the path contains ";" then we assume it to be the separator
9111 # otherwise default to the standard path separator (i.e. ":") - it is
9112 # assumed that no part of a normal pathname contains ";" but that should
9113 # okay in the real world where ";" in dirpaths is itself problematic.
9114 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9116 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9118 # Ok, now we have the path, separated by spaces, we can step through it
9119 # and add multilib dir if necessary.
9120 lt_tmp_lt_search_path_spec=
9121 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9122 for lt_sys_path in $lt_search_path_spec; do
9123 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9124 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9126 test -d "$lt_sys_path" && \
9127 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9130 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9131 BEGIN {RS=" "; FS="/|\n";} {
9134 for (lt_i = NF; lt_i > 0; lt_i--) {
9135 if ($lt_i != "" && $lt_i != ".") {
9136 if ($lt_i == "..") {
9139 if (lt_count == 0) {
9140 lt_foo="/" $lt_i lt_foo;
9147 if (lt_foo != "") { lt_freq[lt_foo]++; }
9148 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9150 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9152 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9154 need_lib_prefix=unknown
9155 hardcode_into_libs=no
9157 # when you set need_version to no, make sure it does not cause -set_version
9158 # flags to be left without arguments
9159 need_version=unknown
9164 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9165 shlibpath_var=LIBPATH
9167 # AIX 3 has no versioning support, so we append a major version to the name.
9168 soname_spec='${libname}${release}${shared_ext}$major'
9175 hardcode_into_libs=yes
9176 if test "$host_cpu" = ia64; then
9177 # AIX 5 supports IA64
9178 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9179 shlibpath_var=LD_LIBRARY_PATH
9181 # With GCC up to 2.95.x, collect2 would create an import file
9182 # for dependence libraries. The import file would start with
9183 # the line `#! .'. This would cause the generated library to
9184 # depend on `.', always an invalid library. This was fixed in
9185 # development snapshots of GCC prior to 3.0.
9187 aix4 | aix4.[01] | aix4.[01].*)
9188 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9190 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9197 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9198 # soname into executable. Probably we can add versioning support to
9199 # collect2, so additional links can be useful in future.
9200 if test "$aix_use_runtimelinking" = yes; then
9201 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9202 # instead of lib<name>.a to let people know that these are not
9203 # typical AIX shared libraries.
9204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9206 # We preserve .a as extension for shared libraries through AIX4.2
9207 # and later when we are not doing run time linking.
9208 library_names_spec='${libname}${release}.a $libname.a'
9209 soname_spec='${libname}${release}${shared_ext}$major'
9211 shlibpath_var=LIBPATH
9216 library_names_spec='$libname.ixlibrary $libname.a'
9217 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9218 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'
9222 library_names_spec='${libname}${shared_ext}'
9223 dynamic_linker="$host_os ld.so"
9224 shlibpath_var=LIBRARY_PATH
9230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9231 soname_spec='${libname}${release}${shared_ext}$major'
9232 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9233 shlibpath_var=LD_LIBRARY_PATH
9234 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9235 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9236 # the default ld.so.conf also contains /usr/contrib/lib and
9237 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9238 # libtool to hard-code these into programs
9241 cygwin* | mingw* | pw32*)
9242 version_type=windows
9247 case $GCC,$host_os in
9248 yes,cygwin* | yes,mingw* | yes,pw32*)
9249 library_names_spec='$libname.dll.a'
9250 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9251 postinstall_cmds='base_file=`basename \${file}`~
9252 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9253 dldir=$destdir/`dirname \$dlpath`~
9254 test -d \$dldir || mkdir -p \$dldir~
9255 $install_prog $dir/$dlname \$dldir/$dlname~
9256 chmod a+x \$dldir/$dlname'
9257 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9258 dlpath=$dir/\$dldll~
9260 shlibpath_overrides_runpath=yes
9264 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9265 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9266 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9269 # MinGW DLLs use traditional 'lib' prefix
9270 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9271 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9272 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9273 # It is most probably a Windows format PATH printed by
9274 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9275 # path with ; separators, and with drive letters. We can handle the
9276 # drive letters (cygwin fileutils understands them), so leave them,
9277 # especially as we might pass files found there to a mingw objdump,
9278 # which wouldn't understand a cygwinified path. Ahh.
9279 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9281 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9285 # pw32 DLLs use 'pw' prefix rather than 'lib'
9286 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9292 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9295 dynamic_linker='Win32 ld.exe'
9296 # FIXME: first we should search . and the directory the executable is in
9300 darwin* | rhapsody*)
9301 dynamic_linker="$host_os dyld"
9305 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9306 soname_spec='${libname}${release}${major}$shared_ext'
9307 shlibpath_overrides_runpath=yes
9308 shlibpath_var=DYLD_LIBRARY_PATH
9309 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9311 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9312 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9320 soname_spec='${libname}${release}${shared_ext}$major'
9321 shlibpath_var=LD_LIBRARY_PATH
9328 freebsd* | dragonfly*)
9329 # DragonFly does not have aout. When/if they implement a new
9330 # versioning mechanism, adjust this.
9331 if test -x /usr/bin/objformat; then
9332 objformat=`/usr/bin/objformat`
9335 freebsd[123]*) objformat=aout ;;
9339 version_type=freebsd-$objformat
9340 case $version_type in
9342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9347 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9351 shlibpath_var=LD_LIBRARY_PATH
9354 shlibpath_overrides_runpath=yes
9356 freebsd3.[01]* | freebsdelf3.[01]*)
9357 shlibpath_overrides_runpath=yes
9358 hardcode_into_libs=yes
9360 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9361 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9362 shlibpath_overrides_runpath=no
9363 hardcode_into_libs=yes
9365 *) # from 4.6 on, and DragonFly
9366 shlibpath_overrides_runpath=yes
9367 hardcode_into_libs=yes
9376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9377 soname_spec='${libname}${release}${shared_ext}$major'
9378 shlibpath_var=LD_LIBRARY_PATH
9379 hardcode_into_libs=yes
9382 hpux9* | hpux10* | hpux11*)
9383 # Give a soname corresponding to the major version so that dld.sl refuses to
9384 # link against other versions.
9391 hardcode_into_libs=yes
9392 dynamic_linker="$host_os dld.so"
9393 shlibpath_var=LD_LIBRARY_PATH
9394 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9396 soname_spec='${libname}${release}${shared_ext}$major'
9397 if test "X$HPUX_IA64_MODE" = X32; then
9398 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9400 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9402 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9406 hardcode_into_libs=yes
9407 dynamic_linker="$host_os dld.sl"
9408 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9409 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9411 soname_spec='${libname}${release}${shared_ext}$major'
9412 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9413 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9417 dynamic_linker="$host_os dld.sl"
9418 shlibpath_var=SHLIB_PATH
9419 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9421 soname_spec='${libname}${release}${shared_ext}$major'
9424 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9425 postinstall_cmds='chmod 555 $lib'
9432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9433 soname_spec='${libname}${release}${shared_ext}$major'
9434 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9435 shlibpath_var=LD_LIBRARY_PATH
9436 shlibpath_overrides_runpath=no
9437 hardcode_into_libs=yes
9440 irix5* | irix6* | nonstopux*)
9442 nonstopux*) version_type=nonstopux ;;
9444 if test "$lt_cv_prog_gnu_ld" = yes; then
9452 soname_spec='${libname}${release}${shared_ext}$major'
9453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9455 irix5* | nonstopux*)
9459 case $LD in # libtool.m4 will add one of these switches to LD
9460 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9461 libsuff= shlibsuff= libmagic=32-bit;;
9462 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9463 libsuff=32 shlibsuff=N32 libmagic=N32;;
9464 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9465 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9466 *) libsuff= shlibsuff= libmagic=never-match;;
9470 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9471 shlibpath_overrides_runpath=no
9472 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9473 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9474 hardcode_into_libs=yes
9477 # No shared lib support for Linux oldld, aout, or coff.
9478 linux*oldld* | linux*aout* | linux*coff*)
9482 # This must be Linux ELF.
9483 linux* | k*bsd*-gnu)
9487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9488 soname_spec='${libname}${release}${shared_ext}$major'
9489 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9490 shlibpath_var=LD_LIBRARY_PATH
9491 shlibpath_overrides_runpath=no
9492 # This implies no fast_install, which is unacceptable.
9493 # Some rework will be needed to allow for fast_install
9494 # before this can be enabled.
9495 hardcode_into_libs=yes
9497 # Append ld.so.conf contents to the search path
9498 if test -f /etc/ld.so.conf; then
9499 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' ' '`
9500 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9503 # We used to test for /lib/ld.so.1 and disable shared libraries on
9504 # powerpc, because MkLinux only supported shared libraries with the
9505 # GNU dynamic linker. Since this was broken with cross compilers,
9506 # most powerpc-linux boxes support dynamic linking these days and
9507 # people can always --disable-shared, the test was removed, and we
9508 # assume the GNU/Linux dynamic linker is in use.
9509 dynamic_linker='GNU/Linux ld.so'
9516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9517 soname_spec='${libname}${release}${shared_ext}$major'
9518 shlibpath_var=LD_LIBRARY_PATH
9519 shlibpath_overrides_runpath=no
9520 hardcode_into_libs=yes
9521 dynamic_linker='NetBSD ld.elf_so'
9528 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9530 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9531 dynamic_linker='NetBSD (a.out) ld.so'
9533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9534 soname_spec='${libname}${release}${shared_ext}$major'
9535 dynamic_linker='NetBSD ld.elf_so'
9537 shlibpath_var=LD_LIBRARY_PATH
9538 shlibpath_overrides_runpath=yes
9539 hardcode_into_libs=yes
9544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9545 shlibpath_var=LD_LIBRARY_PATH
9546 shlibpath_overrides_runpath=yes
9553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9554 soname_spec='${libname}${release}${shared_ext}$major'
9555 shlibpath_var=LD_LIBRARY_PATH
9556 shlibpath_overrides_runpath=yes
9561 sys_lib_dlsearch_path_spec="/usr/lib"
9563 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9565 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9566 *) need_version=no ;;
9568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9569 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9570 shlibpath_var=LD_LIBRARY_PATH
9571 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9573 openbsd2.[89] | openbsd2.[89].*)
9574 shlibpath_overrides_runpath=no
9577 shlibpath_overrides_runpath=yes
9581 shlibpath_overrides_runpath=yes
9586 libname_spec='$name'
9589 library_names_spec='$libname${shared_ext} $libname.a'
9590 dynamic_linker='OS/2 ld.exe'
9591 shlibpath_var=LIBPATH
9594 osf3* | osf4* | osf5*)
9598 soname_spec='${libname}${release}${shared_ext}$major'
9599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9600 shlibpath_var=LD_LIBRARY_PATH
9601 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9602 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9614 soname_spec='${libname}${release}${shared_ext}$major'
9615 shlibpath_var=LD_LIBRARY_PATH
9616 shlibpath_overrides_runpath=yes
9617 hardcode_into_libs=yes
9618 # ldd complains unless libraries are executable
9619 postinstall_cmds='chmod +x $lib'
9624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9625 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9626 shlibpath_var=LD_LIBRARY_PATH
9627 shlibpath_overrides_runpath=yes
9628 if test "$with_gnu_ld" = yes; then
9636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9637 soname_spec='${libname}${release}${shared_ext}$major'
9638 shlibpath_var=LD_LIBRARY_PATH
9639 case $host_vendor in
9641 shlibpath_overrides_runpath=no
9643 export_dynamic_flag_spec='${wl}-Blargedynsym'
9644 runpath_var=LD_RUN_PATH
9652 shlibpath_overrides_runpath=no
9653 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9659 if test -d /usr/nec ;then
9661 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9662 soname_spec='$libname${shared_ext}.$major'
9663 shlibpath_var=LD_LIBRARY_PATH
9667 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9668 version_type=freebsd-elf
9671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9672 soname_spec='${libname}${release}${shared_ext}$major'
9673 shlibpath_var=LD_LIBRARY_PATH
9674 hardcode_into_libs=yes
9675 if test "$with_gnu_ld" = yes; then
9676 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9677 shlibpath_overrides_runpath=no
9679 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9680 shlibpath_overrides_runpath=yes
9683 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9687 sys_lib_dlsearch_path_spec='/usr/lib'
9692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9693 soname_spec='${libname}${release}${shared_ext}$major'
9694 shlibpath_var=LD_LIBRARY_PATH
9701 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9702 echo "${ECHO_T}$dynamic_linker" >&6; }
9703 test "$dynamic_linker" = no && can_build_shared=no
9705 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9706 echo $ECHO_N "(cached) $ECHO_C" >&6
9708 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9711 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9712 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9713 echo $ECHO_N "(cached) $ECHO_C" >&6
9715 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9718 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9720 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9721 if test "$GCC" = yes; then
9722 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9725 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9726 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9728 if test -n "$hardcode_libdir_flag_spec" || \
9729 test -n "$runpath_var" || \
9730 test "X$hardcode_automatic" = "Xyes" ; then
9732 # We can hardcode non-existant directories.
9733 if test "$hardcode_direct" != no &&
9734 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9735 # have to relink, otherwise we might link with an installed library
9736 # when we should be linking with a yet-to-be-installed one
9737 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9738 test "$hardcode_minus_L" != no; then
9739 # Linking always hardcodes the temporary library directory.
9740 hardcode_action=relink
9742 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9743 hardcode_action=immediate
9746 # We cannot hardcode anything, or else we can only hardcode existing
9748 hardcode_action=unsupported
9750 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9751 echo "${ECHO_T}$hardcode_action" >&6; }
9753 if test "$hardcode_action" = relink; then
9754 # Fast installation is not supported
9755 enable_fast_install=no
9756 elif test "$shlibpath_overrides_runpath" = yes ||
9757 test "$enable_shared" = no; then
9758 # Fast installation is not necessary
9759 enable_fast_install=needless
9764 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9765 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9766 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9767 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9768 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9769 { echo "$as_me:$LINENO: result: yes" >&5
9770 echo "${ECHO_T}yes" >&6; }
9772 # FIXME - insert some real tests, host_os isn't really good enough
9775 if test -n "$STRIP" ; then
9776 striplib="$STRIP -x"
9777 old_striplib="$STRIP -S"
9778 { echo "$as_me:$LINENO: result: yes" >&5
9779 echo "${ECHO_T}yes" >&6; }
9781 { echo "$as_me:$LINENO: result: no" >&5
9782 echo "${ECHO_T}no" >&6; }
9786 { echo "$as_me:$LINENO: result: no" >&5
9787 echo "${ECHO_T}no" >&6; }
9792 if test "x$enable_dlopen" != xyes; then
9793 enable_dlopen=unknown
9794 enable_dlopen_self=unknown
9795 enable_dlopen_self_static=unknown
9802 lt_cv_dlopen="load_add_on"
9804 lt_cv_dlopen_self=yes
9808 lt_cv_dlopen="LoadLibrary"
9813 lt_cv_dlopen="dlopen"
9818 # if libdl is installed we need to link against it
9819 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9820 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9821 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9822 echo $ECHO_N "(cached) $ECHO_C" >&6
9824 ac_check_lib_save_LIBS=$LIBS
9826 cat >conftest.$ac_ext <<_ACEOF
9829 cat confdefs.h >>conftest.$ac_ext
9830 cat >>conftest.$ac_ext <<_ACEOF
9831 /* end confdefs.h. */
9833 /* Override any GCC internal prototype to avoid an error.
9834 Use char because int might match the return type of a GCC
9835 builtin and then its argument prototype would still apply. */
9848 rm -f conftest.$ac_objext conftest$ac_exeext
9849 if { (ac_try="$ac_link"
9851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9852 *) ac_try_echo=$ac_try;;
9854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9855 (eval "$ac_link") 2>conftest.er1
9857 grep -v '^ *+' conftest.er1 >conftest.err
9859 cat conftest.err >&5
9860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861 (exit $ac_status); } && {
9862 test -z "$ac_c_werror_flag" ||
9863 test ! -s conftest.err
9864 } && test -s conftest$ac_exeext &&
9865 $as_test_x conftest$ac_exeext; then
9866 ac_cv_lib_dl_dlopen=yes
9868 echo "$as_me: failed program was:" >&5
9869 sed 's/^/| /' conftest.$ac_ext >&5
9871 ac_cv_lib_dl_dlopen=no
9874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9875 conftest$ac_exeext conftest.$ac_ext
9876 LIBS=$ac_check_lib_save_LIBS
9878 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9879 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9880 if test $ac_cv_lib_dl_dlopen = yes; then
9881 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9886 lt_cv_dlopen_self=yes
9893 { echo "$as_me:$LINENO: checking for shl_load" >&5
9894 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9895 if test "${ac_cv_func_shl_load+set}" = set; then
9896 echo $ECHO_N "(cached) $ECHO_C" >&6
9898 cat >conftest.$ac_ext <<_ACEOF
9901 cat confdefs.h >>conftest.$ac_ext
9902 cat >>conftest.$ac_ext <<_ACEOF
9903 /* end confdefs.h. */
9904 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9906 #define shl_load innocuous_shl_load
9908 /* System header to define __stub macros and hopefully few prototypes,
9909 which can conflict with char shl_load (); below.
9910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9911 <limits.h> exists even on freestanding compilers. */
9914 # include <limits.h>
9916 # include <assert.h>
9921 /* Override any GCC internal prototype to avoid an error.
9922 Use char because int might match the return type of a GCC
9923 builtin and then its argument prototype would still apply. */
9928 /* The GNU C library defines this for functions which it implements
9929 to always fail with ENOSYS. Some functions are actually named
9930 something starting with __ and the normal name is an alias. */
9931 #if defined __stub_shl_load || defined __stub___shl_load
9943 rm -f conftest.$ac_objext conftest$ac_exeext
9944 if { (ac_try="$ac_link"
9946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9947 *) ac_try_echo=$ac_try;;
9949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9950 (eval "$ac_link") 2>conftest.er1
9952 grep -v '^ *+' conftest.er1 >conftest.err
9954 cat conftest.err >&5
9955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956 (exit $ac_status); } && {
9957 test -z "$ac_c_werror_flag" ||
9958 test ! -s conftest.err
9959 } && test -s conftest$ac_exeext &&
9960 $as_test_x conftest$ac_exeext; then
9961 ac_cv_func_shl_load=yes
9963 echo "$as_me: failed program was:" >&5
9964 sed 's/^/| /' conftest.$ac_ext >&5
9966 ac_cv_func_shl_load=no
9969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9970 conftest$ac_exeext conftest.$ac_ext
9972 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9973 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9974 if test $ac_cv_func_shl_load = yes; then
9975 lt_cv_dlopen="shl_load"
9977 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9978 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9979 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9980 echo $ECHO_N "(cached) $ECHO_C" >&6
9982 ac_check_lib_save_LIBS=$LIBS
9984 cat >conftest.$ac_ext <<_ACEOF
9987 cat confdefs.h >>conftest.$ac_ext
9988 cat >>conftest.$ac_ext <<_ACEOF
9989 /* end confdefs.h. */
9991 /* Override any GCC internal prototype to avoid an error.
9992 Use char because int might match the return type of a GCC
9993 builtin and then its argument prototype would still apply. */
10001 return shl_load ();
10006 rm -f conftest.$ac_objext conftest$ac_exeext
10007 if { (ac_try="$ac_link"
10008 case "(($ac_try" in
10009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10010 *) ac_try_echo=$ac_try;;
10012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10013 (eval "$ac_link") 2>conftest.er1
10015 grep -v '^ *+' conftest.er1 >conftest.err
10017 cat conftest.err >&5
10018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019 (exit $ac_status); } && {
10020 test -z "$ac_c_werror_flag" ||
10021 test ! -s conftest.err
10022 } && test -s conftest$ac_exeext &&
10023 $as_test_x conftest$ac_exeext; then
10024 ac_cv_lib_dld_shl_load=yes
10026 echo "$as_me: failed program was:" >&5
10027 sed 's/^/| /' conftest.$ac_ext >&5
10029 ac_cv_lib_dld_shl_load=no
10032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10033 conftest$ac_exeext conftest.$ac_ext
10034 LIBS=$ac_check_lib_save_LIBS
10036 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10037 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10038 if test $ac_cv_lib_dld_shl_load = yes; then
10039 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10041 { echo "$as_me:$LINENO: checking for dlopen" >&5
10042 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10043 if test "${ac_cv_func_dlopen+set}" = set; then
10044 echo $ECHO_N "(cached) $ECHO_C" >&6
10046 cat >conftest.$ac_ext <<_ACEOF
10049 cat confdefs.h >>conftest.$ac_ext
10050 cat >>conftest.$ac_ext <<_ACEOF
10051 /* end confdefs.h. */
10052 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10054 #define dlopen innocuous_dlopen
10056 /* System header to define __stub macros and hopefully few prototypes,
10057 which can conflict with char dlopen (); below.
10058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10059 <limits.h> exists even on freestanding compilers. */
10062 # include <limits.h>
10064 # include <assert.h>
10069 /* Override any GCC internal prototype to avoid an error.
10070 Use char because int might match the return type of a GCC
10071 builtin and then its argument prototype would still apply. */
10076 /* The GNU C library defines this for functions which it implements
10077 to always fail with ENOSYS. Some functions are actually named
10078 something starting with __ and the normal name is an alias. */
10079 #if defined __stub_dlopen || defined __stub___dlopen
10091 rm -f conftest.$ac_objext conftest$ac_exeext
10092 if { (ac_try="$ac_link"
10093 case "(($ac_try" in
10094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10095 *) ac_try_echo=$ac_try;;
10097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10098 (eval "$ac_link") 2>conftest.er1
10100 grep -v '^ *+' conftest.er1 >conftest.err
10102 cat conftest.err >&5
10103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104 (exit $ac_status); } && {
10105 test -z "$ac_c_werror_flag" ||
10106 test ! -s conftest.err
10107 } && test -s conftest$ac_exeext &&
10108 $as_test_x conftest$ac_exeext; then
10109 ac_cv_func_dlopen=yes
10111 echo "$as_me: failed program was:" >&5
10112 sed 's/^/| /' conftest.$ac_ext >&5
10114 ac_cv_func_dlopen=no
10117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10118 conftest$ac_exeext conftest.$ac_ext
10120 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10121 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10122 if test $ac_cv_func_dlopen = yes; then
10123 lt_cv_dlopen="dlopen"
10125 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10126 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10127 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10128 echo $ECHO_N "(cached) $ECHO_C" >&6
10130 ac_check_lib_save_LIBS=$LIBS
10132 cat >conftest.$ac_ext <<_ACEOF
10135 cat confdefs.h >>conftest.$ac_ext
10136 cat >>conftest.$ac_ext <<_ACEOF
10137 /* end confdefs.h. */
10139 /* Override any GCC internal prototype to avoid an error.
10140 Use char because int might match the return type of a GCC
10141 builtin and then its argument prototype would still apply. */
10154 rm -f conftest.$ac_objext conftest$ac_exeext
10155 if { (ac_try="$ac_link"
10156 case "(($ac_try" in
10157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10158 *) ac_try_echo=$ac_try;;
10160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10161 (eval "$ac_link") 2>conftest.er1
10163 grep -v '^ *+' conftest.er1 >conftest.err
10165 cat conftest.err >&5
10166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167 (exit $ac_status); } && {
10168 test -z "$ac_c_werror_flag" ||
10169 test ! -s conftest.err
10170 } && test -s conftest$ac_exeext &&
10171 $as_test_x conftest$ac_exeext; then
10172 ac_cv_lib_dl_dlopen=yes
10174 echo "$as_me: failed program was:" >&5
10175 sed 's/^/| /' conftest.$ac_ext >&5
10177 ac_cv_lib_dl_dlopen=no
10180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10181 conftest$ac_exeext conftest.$ac_ext
10182 LIBS=$ac_check_lib_save_LIBS
10184 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10185 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10186 if test $ac_cv_lib_dl_dlopen = yes; then
10187 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10189 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10190 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10191 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10192 echo $ECHO_N "(cached) $ECHO_C" >&6
10194 ac_check_lib_save_LIBS=$LIBS
10195 LIBS="-lsvld $LIBS"
10196 cat >conftest.$ac_ext <<_ACEOF
10199 cat confdefs.h >>conftest.$ac_ext
10200 cat >>conftest.$ac_ext <<_ACEOF
10201 /* end confdefs.h. */
10203 /* Override any GCC internal prototype to avoid an error.
10204 Use char because int might match the return type of a GCC
10205 builtin and then its argument prototype would still apply. */
10218 rm -f conftest.$ac_objext conftest$ac_exeext
10219 if { (ac_try="$ac_link"
10220 case "(($ac_try" in
10221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10222 *) ac_try_echo=$ac_try;;
10224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10225 (eval "$ac_link") 2>conftest.er1
10227 grep -v '^ *+' conftest.er1 >conftest.err
10229 cat conftest.err >&5
10230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231 (exit $ac_status); } && {
10232 test -z "$ac_c_werror_flag" ||
10233 test ! -s conftest.err
10234 } && test -s conftest$ac_exeext &&
10235 $as_test_x conftest$ac_exeext; then
10236 ac_cv_lib_svld_dlopen=yes
10238 echo "$as_me: failed program was:" >&5
10239 sed 's/^/| /' conftest.$ac_ext >&5
10241 ac_cv_lib_svld_dlopen=no
10244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10245 conftest$ac_exeext conftest.$ac_ext
10246 LIBS=$ac_check_lib_save_LIBS
10248 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10249 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10250 if test $ac_cv_lib_svld_dlopen = yes; then
10251 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10253 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10254 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10255 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10256 echo $ECHO_N "(cached) $ECHO_C" >&6
10258 ac_check_lib_save_LIBS=$LIBS
10260 cat >conftest.$ac_ext <<_ACEOF
10263 cat confdefs.h >>conftest.$ac_ext
10264 cat >>conftest.$ac_ext <<_ACEOF
10265 /* end confdefs.h. */
10267 /* Override any GCC internal prototype to avoid an error.
10268 Use char because int might match the return type of a GCC
10269 builtin and then its argument prototype would still apply. */
10277 return dld_link ();
10282 rm -f conftest.$ac_objext conftest$ac_exeext
10283 if { (ac_try="$ac_link"
10284 case "(($ac_try" in
10285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10286 *) ac_try_echo=$ac_try;;
10288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10289 (eval "$ac_link") 2>conftest.er1
10291 grep -v '^ *+' conftest.er1 >conftest.err
10293 cat conftest.err >&5
10294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295 (exit $ac_status); } && {
10296 test -z "$ac_c_werror_flag" ||
10297 test ! -s conftest.err
10298 } && test -s conftest$ac_exeext &&
10299 $as_test_x conftest$ac_exeext; then
10300 ac_cv_lib_dld_dld_link=yes
10302 echo "$as_me: failed program was:" >&5
10303 sed 's/^/| /' conftest.$ac_ext >&5
10305 ac_cv_lib_dld_dld_link=no
10308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10309 conftest$ac_exeext conftest.$ac_ext
10310 LIBS=$ac_check_lib_save_LIBS
10312 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10313 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10314 if test $ac_cv_lib_dld_dld_link = yes; then
10315 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10336 if test "x$lt_cv_dlopen" != xno; then
10342 case $lt_cv_dlopen in
10344 save_CPPFLAGS="$CPPFLAGS"
10345 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10347 save_LDFLAGS="$LDFLAGS"
10348 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10351 LIBS="$lt_cv_dlopen_libs $LIBS"
10353 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10354 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10355 if test "${lt_cv_dlopen_self+set}" = set; then
10356 echo $ECHO_N "(cached) $ECHO_C" >&6
10358 if test "$cross_compiling" = yes; then :
10359 lt_cv_dlopen_self=cross
10361 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10362 lt_status=$lt_dlunknown
10363 cat > conftest.$ac_ext <<EOF
10364 #line 10364 "configure"
10365 #include "confdefs.h"
10374 # define LT_DLGLOBAL RTLD_GLOBAL
10377 # define LT_DLGLOBAL DL_GLOBAL
10379 # define LT_DLGLOBAL 0
10383 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10384 find out it does not work in some platform. */
10385 #ifndef LT_DLLAZY_OR_NOW
10387 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10390 # define LT_DLLAZY_OR_NOW DL_LAZY
10393 # define LT_DLLAZY_OR_NOW RTLD_NOW
10396 # define LT_DLLAZY_OR_NOW DL_NOW
10398 # define LT_DLLAZY_OR_NOW 0
10406 extern "C" void exit (int);
10409 void fnord() { int i=42;}
10412 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10413 int status = $lt_dlunknown;
10417 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10418 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10419 /* dlclose (self); */
10427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10428 (eval $ac_link) 2>&5
10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10432 (./conftest; exit; ) >&5 2>/dev/null
10434 case x$lt_status in
10435 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10436 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10437 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10440 # compilation failed
10441 lt_cv_dlopen_self=no
10448 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10449 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10451 if test "x$lt_cv_dlopen_self" = xyes; then
10452 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10453 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10454 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10455 if test "${lt_cv_dlopen_self_static+set}" = set; then
10456 echo $ECHO_N "(cached) $ECHO_C" >&6
10458 if test "$cross_compiling" = yes; then :
10459 lt_cv_dlopen_self_static=cross
10461 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10462 lt_status=$lt_dlunknown
10463 cat > conftest.$ac_ext <<EOF
10464 #line 10464 "configure"
10465 #include "confdefs.h"
10474 # define LT_DLGLOBAL RTLD_GLOBAL
10477 # define LT_DLGLOBAL DL_GLOBAL
10479 # define LT_DLGLOBAL 0
10483 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10484 find out it does not work in some platform. */
10485 #ifndef LT_DLLAZY_OR_NOW
10487 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10490 # define LT_DLLAZY_OR_NOW DL_LAZY
10493 # define LT_DLLAZY_OR_NOW RTLD_NOW
10496 # define LT_DLLAZY_OR_NOW DL_NOW
10498 # define LT_DLLAZY_OR_NOW 0
10506 extern "C" void exit (int);
10509 void fnord() { int i=42;}
10512 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10513 int status = $lt_dlunknown;
10517 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10518 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10519 /* dlclose (self); */
10527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10528 (eval $ac_link) 2>&5
10530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10532 (./conftest; exit; ) >&5 2>/dev/null
10534 case x$lt_status in
10535 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10536 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10537 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10540 # compilation failed
10541 lt_cv_dlopen_self_static=no
10548 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10549 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10552 CPPFLAGS="$save_CPPFLAGS"
10553 LDFLAGS="$save_LDFLAGS"
10558 case $lt_cv_dlopen_self in
10559 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10560 *) enable_dlopen_self=unknown ;;
10563 case $lt_cv_dlopen_self_static in
10564 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10565 *) enable_dlopen_self_static=unknown ;;
10570 # Report which library types will actually be built
10571 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10572 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10573 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10574 echo "${ECHO_T}$can_build_shared" >&6; }
10576 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10577 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10578 test "$can_build_shared" = "no" && enable_shared=no
10580 # On AIX, shared libraries and static libraries use the same namespace, and
10581 # are all built from PIC.
10584 test "$enable_shared" = yes && enable_static=no
10585 if test -n "$RANLIB"; then
10586 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10587 postinstall_cmds='$RANLIB $lib'
10592 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10593 test "$enable_shared" = yes && enable_static=no
10597 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10598 echo "${ECHO_T}$enable_shared" >&6; }
10600 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10601 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10602 # Make sure either enable_shared or enable_static is yes.
10603 test "$enable_shared" = yes || enable_static=yes
10604 { echo "$as_me:$LINENO: result: $enable_static" >&5
10605 echo "${ECHO_T}$enable_static" >&6; }
10607 # The else clause should only fire when bootstrapping the
10608 # libtool distribution, otherwise you forgot to ship ltmain.sh
10609 # with your package, and you will get complaints that there are
10610 # no rules to generate ltmain.sh.
10611 if test -f "$ltmain"; then
10612 # See if we are running on zsh, and set the options which allow our commands through
10613 # without removal of \ escapes.
10614 if test -n "${ZSH_VERSION+set}" ; then
10615 setopt NO_GLOB_SUBST
10617 # Now quote all the things that may contain metacharacters while being
10618 # careful not to overquote the AC_SUBSTed values. We take copies of the
10619 # variables and quote the copies for generation of the libtool script.
10620 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10622 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10623 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10624 deplibs_check_method reload_flag reload_cmds need_locks \
10625 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10626 lt_cv_sys_global_symbol_to_c_name_address \
10627 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10628 old_postinstall_cmds old_postuninstall_cmds \
10632 lt_prog_compiler_wl \
10633 lt_prog_compiler_pic \
10634 lt_prog_compiler_static \
10635 lt_prog_compiler_no_builtin_flag \
10636 export_dynamic_flag_spec \
10637 thread_safe_flag_spec \
10638 whole_archive_flag_spec \
10639 enable_shared_with_static_runtimes \
10641 old_archive_from_new_cmds \
10646 compiler_lib_search_path \
10647 compiler_lib_search_dirs \
10649 archive_expsym_cmds \
10651 postuninstall_cmds \
10652 old_archive_from_expsyms_cmds \
10653 allow_undefined_flag \
10654 no_undefined_flag \
10655 export_symbols_cmds \
10656 hardcode_libdir_flag_spec \
10657 hardcode_libdir_flag_spec_ld \
10658 hardcode_libdir_separator \
10659 hardcode_automatic \
10661 module_expsym_cmds \
10662 lt_cv_prog_compiler_c_o \
10665 include_expsyms; do
10668 old_archive_cmds | \
10669 old_archive_from_new_cmds | \
10671 archive_expsym_cmds | \
10673 module_expsym_cmds | \
10674 old_archive_from_expsyms_cmds | \
10675 export_symbols_cmds | \
10676 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10677 postinstall_cmds | postuninstall_cmds | \
10678 old_postinstall_cmds | old_postuninstall_cmds | \
10679 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10680 # Double-quote double-evaled strings.
10681 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10684 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10690 *'\$0 --fallback-echo"')
10691 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10695 cfgfile="${ofile}T"
10696 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10698 { echo "$as_me:$LINENO: creating $ofile" >&5
10699 echo "$as_me: creating $ofile" >&6;}
10701 cat <<__EOF__ >> "$cfgfile"
10704 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10705 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10706 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10708 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10709 # Free Software Foundation, Inc.
10711 # This file is part of GNU Libtool:
10712 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10714 # This program is free software; you can redistribute it and/or modify
10715 # it under the terms of the GNU General Public License as published by
10716 # the Free Software Foundation; either version 2 of the License, or
10717 # (at your option) any later version.
10719 # This program is distributed in the hope that it will be useful, but
10720 # WITHOUT ANY WARRANTY; without even the implied warranty of
10721 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10722 # General Public License for more details.
10724 # You should have received a copy of the GNU General Public License
10725 # along with this program; if not, write to the Free Software
10726 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10728 # As a special exception to the GNU General Public License, if you
10729 # distribute this file as part of a program that contains a
10730 # configuration script generated by Autoconf, you may include it under
10731 # the same distribution terms that you use for the rest of that program.
10733 # A sed program that does not truncate output.
10736 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10737 Xsed="$SED -e 1s/^X//"
10739 # The HP-UX ksh and POSIX shell print the target directory to stdout
10740 # if CDPATH is set.
10741 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10743 # The names of the tagged configurations supported by this script.
10746 # ### BEGIN LIBTOOL CONFIG
10748 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10750 # Shell to use when invoking shell scripts.
10753 # Whether or not to build shared libraries.
10754 build_libtool_libs=$enable_shared
10756 # Whether or not to build static libraries.
10757 build_old_libs=$enable_static
10759 # Whether or not to add -lc for building shared libraries.
10760 build_libtool_need_lc=$archive_cmds_need_lc
10762 # Whether or not to disallow shared libs when runtime libs are static
10763 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10765 # Whether or not to optimize for fast installation.
10766 fast_install=$enable_fast_install
10769 host_alias=$host_alias
10773 # The build system.
10774 build_alias=$build_alias
10778 # An echo program that does not interpret backslashes.
10783 AR_FLAGS=$lt_AR_FLAGS
10788 # LTCC compiler flags.
10789 LTCFLAGS=$lt_LTCFLAGS
10791 # A language-specific compiler.
10794 # Is the compiler the GNU C compiler?
10800 # The linker used to build libraries.
10803 # Whether we need hard or soft links.
10806 # A BSD-compatible nm program.
10809 # A symbol stripping program
10812 # Used to examine libraries when file_magic_cmd begins "file"
10813 MAGIC_CMD=$MAGIC_CMD
10815 # Used on cygwin: DLL creation program.
10818 # Used on cygwin: object dumper.
10821 # Used on cygwin: assembler.
10824 # The name of the directory that contains temporary libtool files.
10827 # How to create reloadable object files.
10828 reload_flag=$lt_reload_flag
10829 reload_cmds=$lt_reload_cmds
10831 # How to pass a linker flag through the compiler.
10832 wl=$lt_lt_prog_compiler_wl
10834 # Object file suffix (normally "o").
10835 objext="$ac_objext"
10837 # Old archive suffix (normally "a").
10840 # Shared library suffix (normally ".so").
10841 shrext_cmds='$shrext_cmds'
10843 # Executable file suffix (normally "").
10846 # Additional compiler flags for building library objects.
10847 pic_flag=$lt_lt_prog_compiler_pic
10850 # What is the maximum length of a command?
10851 max_cmd_len=$lt_cv_sys_max_cmd_len
10853 # Does compiler simultaneously support -c and -o options?
10854 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10856 # Must we lock files when doing compilation?
10857 need_locks=$lt_need_locks
10859 # Do we need the lib prefix for modules?
10860 need_lib_prefix=$need_lib_prefix
10862 # Do we need a version for libraries?
10863 need_version=$need_version
10865 # Whether dlopen is supported.
10866 dlopen_support=$enable_dlopen
10868 # Whether dlopen of programs is supported.
10869 dlopen_self=$enable_dlopen_self
10871 # Whether dlopen of statically linked programs is supported.
10872 dlopen_self_static=$enable_dlopen_self_static
10874 # Compiler flag to prevent dynamic linking.
10875 link_static_flag=$lt_lt_prog_compiler_static
10877 # Compiler flag to turn off builtin functions.
10878 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10880 # Compiler flag to allow reflexive dlopens.
10881 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10883 # Compiler flag to generate shared objects directly from archives.
10884 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10886 # Compiler flag to generate thread-safe objects.
10887 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10889 # Library versioning type.
10890 version_type=$version_type
10892 # Format of library name prefix.
10893 libname_spec=$lt_libname_spec
10895 # List of archive names. First name is the real one, the rest are links.
10896 # The last name is the one that the linker finds with -lNAME.
10897 library_names_spec=$lt_library_names_spec
10899 # The coded name of the library, if different from the real name.
10900 soname_spec=$lt_soname_spec
10902 # Commands used to build and install an old-style archive.
10904 old_archive_cmds=$lt_old_archive_cmds
10905 old_postinstall_cmds=$lt_old_postinstall_cmds
10906 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10908 # Create an old-style archive from a shared archive.
10909 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10911 # Create a temporary old-style archive to link instead of a shared archive.
10912 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10914 # Commands used to build and install a shared archive.
10915 archive_cmds=$lt_archive_cmds
10916 archive_expsym_cmds=$lt_archive_expsym_cmds
10917 postinstall_cmds=$lt_postinstall_cmds
10918 postuninstall_cmds=$lt_postuninstall_cmds
10920 # Commands used to build a loadable module (assumed same as above if empty)
10921 module_cmds=$lt_module_cmds
10922 module_expsym_cmds=$lt_module_expsym_cmds
10924 # Commands to strip libraries.
10925 old_striplib=$lt_old_striplib
10926 striplib=$lt_striplib
10928 # Dependencies to place before the objects being linked to create a
10930 predep_objects=$lt_predep_objects
10932 # Dependencies to place after the objects being linked to create a
10934 postdep_objects=$lt_postdep_objects
10936 # Dependencies to place before the objects being linked to create a
10938 predeps=$lt_predeps
10940 # Dependencies to place after the objects being linked to create a
10942 postdeps=$lt_postdeps
10944 # The directories searched by this compiler when creating a shared
10946 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10948 # The library search path used internally by the compiler when linking
10949 # a shared library.
10950 compiler_lib_search_path=$lt_compiler_lib_search_path
10952 # Method to check whether dependent libraries are shared objects.
10953 deplibs_check_method=$lt_deplibs_check_method
10955 # Command to use when deplibs_check_method == file_magic.
10956 file_magic_cmd=$lt_file_magic_cmd
10958 # Flag that allows shared libraries with undefined symbols to be built.
10959 allow_undefined_flag=$lt_allow_undefined_flag
10961 # Flag that forces no undefined symbols.
10962 no_undefined_flag=$lt_no_undefined_flag
10964 # Commands used to finish a libtool library installation in a directory.
10965 finish_cmds=$lt_finish_cmds
10967 # Same as above, but a single script fragment to be evaled but not shown.
10968 finish_eval=$lt_finish_eval
10970 # Take the output of nm and produce a listing of raw symbols and C names.
10971 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10973 # Transform the output of nm in a proper C declaration
10974 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10976 # Transform the output of nm in a C name address pair
10977 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10979 # This is the shared library runtime path variable.
10980 runpath_var=$runpath_var
10982 # This is the shared library path variable.
10983 shlibpath_var=$shlibpath_var
10985 # Is shlibpath searched before the hard-coded library search path?
10986 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10988 # How to hardcode a shared library path into an executable.
10989 hardcode_action=$hardcode_action
10991 # Whether we should hardcode library paths into libraries.
10992 hardcode_into_libs=$hardcode_into_libs
10994 # Flag to hardcode \$libdir into a binary during linking.
10995 # This must work even if \$libdir does not exist.
10996 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10998 # If ld is used when linking, flag to hardcode \$libdir into
10999 # a binary during linking. This must work even if \$libdir does
11001 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11003 # Whether we need a single -rpath flag with a separated argument.
11004 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11006 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11007 # resulting binary.
11008 hardcode_direct=$hardcode_direct
11010 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11011 # resulting binary.
11012 hardcode_minus_L=$hardcode_minus_L
11014 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11015 # the resulting binary.
11016 hardcode_shlibpath_var=$hardcode_shlibpath_var
11018 # Set to yes if building a shared library automatically hardcodes DIR into the library
11019 # and all subsequent libraries and executables linked against it.
11020 hardcode_automatic=$hardcode_automatic
11022 # Variables whose values should be saved in libtool wrapper scripts and
11023 # restored at relink time.
11024 variables_saved_for_relink="$variables_saved_for_relink"
11026 # Whether libtool must link a program against all its dependency libraries.
11027 link_all_deplibs=$link_all_deplibs
11029 # Compile-time system search path for libraries
11030 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11032 # Run-time system search path for libraries
11033 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11035 # Fix the shell variable \$srcfile for the compiler.
11036 fix_srcfile_path=$lt_fix_srcfile_path
11038 # Set to yes if exported symbols are required.
11039 always_export_symbols=$always_export_symbols
11041 # The commands to list exported symbols.
11042 export_symbols_cmds=$lt_export_symbols_cmds
11044 # The commands to extract the exported symbol list from a shared archive.
11045 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11047 # Symbols that should not be listed in the preloaded symbols.
11048 exclude_expsyms=$lt_exclude_expsyms
11050 # Symbols that must always be exported.
11051 include_expsyms=$lt_include_expsyms
11053 # ### END LIBTOOL CONFIG
11060 cat <<\EOF >> "$cfgfile"
11062 # AIX sometimes has problems with the GCC collect2 program. For some
11063 # reason, if we set the COLLECT_NAMES environment variable, the problems
11064 # vanish in a puff of smoke.
11065 if test "X${COLLECT_NAMES+set}" != Xset; then
11067 export COLLECT_NAMES
11073 # We use sed instead of cat because bash on DJGPP gets confused if
11074 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11075 # text mode, it properly converts lines to CR/LF. This bash problem
11076 # is reportedly fixed, but why not run on old versions too?
11077 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11079 mv -f "$cfgfile" "$ofile" || \
11080 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11084 # If there is no Makefile yet, we rely on a make rule to execute
11085 # `config.status --recheck' to rerun these tests and create the
11086 # libtool script then.
11087 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11088 if test -f "$ltmain_in"; then
11089 test -f Makefile && make "$ltmain"
11095 ac_cpp='$CPP $CPPFLAGS'
11096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11103 # Check whether --with-tags was given.
11104 if test "${with_tags+set}" = set; then
11105 withval=$with_tags; tagnames="$withval"
11109 if test -f "$ltmain" && test -n "$tagnames"; then
11110 if test ! -f "${ofile}"; then
11111 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11112 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11115 if test -z "$LTCC"; then
11116 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11117 if test -z "$LTCC"; then
11118 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11119 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11121 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11122 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11125 if test -z "$LTCFLAGS"; then
11126 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11129 # Extract list of available tagged configurations in $ofile.
11130 # Note that this assumes the entire list is on one line.
11131 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11133 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11134 for tagname in $tagnames; do
11136 # Check whether tagname contains only valid characters
11137 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11139 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11140 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11141 { (exit 1); exit 1; }; }
11145 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11147 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11148 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11149 { (exit 1); exit 1; }; }
11152 # Update the list of available tags.
11153 if test -n "$tagname"; then
11154 echo appending configuration tag \"$tagname\" to $ofile
11158 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11159 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11160 (test "X$CXX" != "Xg++"))) ; then
11162 ac_cpp='$CXXCPP $CPPFLAGS'
11163 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11164 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11165 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11170 archive_cmds_need_lc_CXX=no
11171 allow_undefined_flag_CXX=
11172 always_export_symbols_CXX=no
11173 archive_expsym_cmds_CXX=
11174 export_dynamic_flag_spec_CXX=
11175 hardcode_direct_CXX=no
11176 hardcode_libdir_flag_spec_CXX=
11177 hardcode_libdir_flag_spec_ld_CXX=
11178 hardcode_libdir_separator_CXX=
11179 hardcode_minus_L_CXX=no
11180 hardcode_shlibpath_var_CXX=unsupported
11181 hardcode_automatic_CXX=no
11183 module_expsym_cmds_CXX=
11184 link_all_deplibs_CXX=unknown
11185 old_archive_cmds_CXX=$old_archive_cmds
11186 no_undefined_flag_CXX=
11187 whole_archive_flag_spec_CXX=
11188 enable_shared_with_static_runtimes_CXX=no
11190 # Dependencies to place before and after the object being linked:
11191 predep_objects_CXX=
11192 postdep_objects_CXX=
11195 compiler_lib_search_path_CXX=
11196 compiler_lib_search_dirs_CXX=
11198 # Source file extension for C++ test sources.
11201 # Object file extension for compiled C++ test sources.
11205 # Code to be used in simple compile tests
11206 lt_simple_compile_test_code="int some_variable = 0;"
11208 # Code to be used in simple link tests
11209 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11211 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11213 # If no C compiler was specified, use CC.
11216 # If no C compiler flags were specified, use CFLAGS.
11217 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11219 # Allow CC to be a program name with arguments.
11223 # save warnings/boilerplate of simple test code
11224 ac_outfile=conftest.$ac_objext
11225 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11226 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11227 _lt_compiler_boilerplate=`cat conftest.err`
11230 ac_outfile=conftest.$ac_objext
11231 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11232 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11233 _lt_linker_boilerplate=`cat conftest.err`
11237 # Allow CC to be a program name with arguments.
11242 lt_save_with_gnu_ld=$with_gnu_ld
11243 lt_save_path_LD=$lt_cv_path_LD
11244 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11245 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11247 $as_unset lt_cv_prog_gnu_ld
11249 if test -n "${lt_cv_path_LDCXX+set}"; then
11250 lt_cv_path_LD=$lt_cv_path_LDCXX
11252 $as_unset lt_cv_path_LD
11254 test -z "${LDCXX+set}" || LD=$LDCXX
11258 for cc_temp in $compiler""; do
11260 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11261 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11266 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11269 # We don't want -fno-exception wen compiling C++ code, so set the
11270 # no_builtin_flag separately
11271 if test "$GXX" = yes; then
11272 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11274 lt_prog_compiler_no_builtin_flag_CXX=
11277 if test "$GXX" = yes; then
11278 # Set up default GNU C++ configuration
11281 # Check whether --with-gnu-ld was given.
11282 if test "${with_gnu_ld+set}" = set; then
11283 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11289 if test "$GCC" = yes; then
11290 # Check if gcc -print-prog-name=ld gives a path.
11291 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11292 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11295 # gcc leaves a trailing carriage return which upsets mingw
11296 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11298 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11301 # Accept absolute paths.
11303 re_direlt='/[^/][^/]*/\.\./'
11304 # Canonicalize the pathname of ld
11305 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11306 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11307 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11309 test -z "$LD" && LD="$ac_prog"
11312 # If it fails, then pretend we aren't using GCC.
11316 # If it is relative, then search for the first ld in PATH.
11317 with_gnu_ld=unknown
11320 elif test "$with_gnu_ld" = yes; then
11321 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11322 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11324 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11325 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11327 if test "${lt_cv_path_LD+set}" = set; then
11328 echo $ECHO_N "(cached) $ECHO_C" >&6
11330 if test -z "$LD"; then
11331 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11332 for ac_dir in $PATH; do
11334 test -z "$ac_dir" && ac_dir=.
11335 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11336 lt_cv_path_LD="$ac_dir/$ac_prog"
11337 # Check to see if the program is GNU ld. I'd rather use --version,
11338 # but apparently some variants of GNU ld only accept -v.
11339 # Break only if it was the GNU/non-GNU ld that we prefer.
11340 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11341 *GNU* | *'with BFD'*)
11342 test "$with_gnu_ld" != no && break
11345 test "$with_gnu_ld" != yes && break
11352 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11356 LD="$lt_cv_path_LD"
11357 if test -n "$LD"; then
11358 { echo "$as_me:$LINENO: result: $LD" >&5
11359 echo "${ECHO_T}$LD" >&6; }
11361 { echo "$as_me:$LINENO: result: no" >&5
11362 echo "${ECHO_T}no" >&6; }
11364 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11365 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11366 { (exit 1); exit 1; }; }
11367 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11368 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11369 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11370 echo $ECHO_N "(cached) $ECHO_C" >&6
11372 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11373 case `$LD -v 2>&1 </dev/null` in
11374 *GNU* | *'with BFD'*)
11375 lt_cv_prog_gnu_ld=yes
11378 lt_cv_prog_gnu_ld=no
11382 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11383 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11384 with_gnu_ld=$lt_cv_prog_gnu_ld
11388 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11389 # archiving commands below assume that GNU ld is being used.
11390 if test "$with_gnu_ld" = yes; then
11391 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11392 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'
11394 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11395 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11397 # If archive_cmds runs LD, not CC, wlarc should be empty
11398 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11399 # investigate it a little bit more. (MM)
11402 # ancient GNU ld didn't support --whole-archive et. al.
11403 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11404 grep 'no-whole-archive' > /dev/null; then
11405 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11407 whole_archive_flag_spec_CXX=
11413 # A generic and very simple default shared library creation
11414 # command for GNU C++ for the case where it uses the native
11415 # linker, instead of GNU ld. If possible, this setting should
11416 # overridden to take advantage of the native linker features on
11417 # the platform it is being used on.
11418 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11421 # Commands to make compiler produce verbose output that lists
11422 # what "hidden" libraries, object files and flags are used when
11423 # linking a shared library.
11424 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11432 # PORTME: fill in a description of your system's C++ link characteristics
11433 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11434 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11438 # FIXME: insert proper C++ library support
11442 if test "$host_cpu" = ia64; then
11443 # On IA64, the linker does run time linking by default, so we don't
11444 # have to do anything special.
11445 aix_use_runtimelinking=no
11446 exp_sym_flag='-Bexport'
11449 aix_use_runtimelinking=no
11451 # Test if we are trying to use run time linking or normal
11452 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11453 # need to do runtime linking.
11454 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11455 for ld_flag in $LDFLAGS; do
11458 aix_use_runtimelinking=yes
11466 exp_sym_flag='-bexport'
11467 no_entry_flag='-bnoentry'
11470 # When large executables or shared objects are built, AIX ld can
11471 # have problems creating the table of contents. If linking a library
11472 # or program results in "error TOC overflow" add -mminimal-toc to
11473 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11474 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11476 archive_cmds_CXX=''
11477 hardcode_direct_CXX=yes
11478 hardcode_libdir_separator_CXX=':'
11479 link_all_deplibs_CXX=yes
11481 if test "$GXX" = yes; then
11482 case $host_os in aix4.[012]|aix4.[012].*)
11483 # We only want to do this on AIX 4.2 and lower, the check
11484 # below for broken collect2 doesn't work under 4.3+
11485 collect2name=`${CC} -print-prog-name=collect2`
11486 if test -f "$collect2name" && \
11487 strings "$collect2name" | grep resolve_lib_name >/dev/null
11489 # We have reworked collect2
11492 # We have old collect2
11493 hardcode_direct_CXX=unsupported
11494 # It fails to find uninstalled libraries when the uninstalled
11495 # path is not listed in the libpath. Setting hardcode_minus_L
11496 # to unsupported forces relinking
11497 hardcode_minus_L_CXX=yes
11498 hardcode_libdir_flag_spec_CXX='-L$libdir'
11499 hardcode_libdir_separator_CXX=
11503 shared_flag='-shared'
11504 if test "$aix_use_runtimelinking" = yes; then
11505 shared_flag="$shared_flag "'${wl}-G'
11509 if test "$host_cpu" = ia64; then
11510 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11511 # chokes on -Wl,-G. The following line is correct:
11514 if test "$aix_use_runtimelinking" = yes; then
11515 shared_flag='${wl}-G'
11517 shared_flag='${wl}-bM:SRE'
11522 # It seems that -bexpall does not export symbols beginning with
11523 # underscore (_), so it is better to generate a list of symbols to export.
11524 always_export_symbols_CXX=yes
11525 if test "$aix_use_runtimelinking" = yes; then
11526 # Warning - without using the other runtime loading flags (-brtl),
11527 # -berok will link without error, but may produce a broken library.
11528 allow_undefined_flag_CXX='-berok'
11529 # Determine the default libpath from the value encoded in an empty executable.
11530 cat >conftest.$ac_ext <<_ACEOF
11533 cat confdefs.h >>conftest.$ac_ext
11534 cat >>conftest.$ac_ext <<_ACEOF
11535 /* end confdefs.h. */
11545 rm -f conftest.$ac_objext conftest$ac_exeext
11546 if { (ac_try="$ac_link"
11547 case "(($ac_try" in
11548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11549 *) ac_try_echo=$ac_try;;
11551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11552 (eval "$ac_link") 2>conftest.er1
11554 grep -v '^ *+' conftest.er1 >conftest.err
11556 cat conftest.err >&5
11557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558 (exit $ac_status); } && {
11559 test -z "$ac_cxx_werror_flag" ||
11560 test ! -s conftest.err
11561 } && test -s conftest$ac_exeext &&
11562 $as_test_x conftest$ac_exeext; then
11564 lt_aix_libpath_sed='
11565 /Import File Strings/,/^$/ {
11571 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11572 # Check for a 64-bit object if we didn't find anything.
11573 if test -z "$aix_libpath"; then
11574 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11577 echo "$as_me: failed program was:" >&5
11578 sed 's/^/| /' conftest.$ac_ext >&5
11583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11584 conftest$ac_exeext conftest.$ac_ext
11585 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11587 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11589 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"
11591 if test "$host_cpu" = ia64; then
11592 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11593 allow_undefined_flag_CXX="-z nodefs"
11594 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"
11596 # Determine the default libpath from the value encoded in an empty executable.
11597 cat >conftest.$ac_ext <<_ACEOF
11600 cat confdefs.h >>conftest.$ac_ext
11601 cat >>conftest.$ac_ext <<_ACEOF
11602 /* end confdefs.h. */
11612 rm -f conftest.$ac_objext conftest$ac_exeext
11613 if { (ac_try="$ac_link"
11614 case "(($ac_try" in
11615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11616 *) ac_try_echo=$ac_try;;
11618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11619 (eval "$ac_link") 2>conftest.er1
11621 grep -v '^ *+' conftest.er1 >conftest.err
11623 cat conftest.err >&5
11624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625 (exit $ac_status); } && {
11626 test -z "$ac_cxx_werror_flag" ||
11627 test ! -s conftest.err
11628 } && test -s conftest$ac_exeext &&
11629 $as_test_x conftest$ac_exeext; then
11631 lt_aix_libpath_sed='
11632 /Import File Strings/,/^$/ {
11638 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11639 # Check for a 64-bit object if we didn't find anything.
11640 if test -z "$aix_libpath"; then
11641 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11644 echo "$as_me: failed program was:" >&5
11645 sed 's/^/| /' conftest.$ac_ext >&5
11650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11651 conftest$ac_exeext conftest.$ac_ext
11652 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11654 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11655 # Warning - without using the other run time loading flags,
11656 # -berok will link without error, but may produce a broken library.
11657 no_undefined_flag_CXX=' ${wl}-bernotok'
11658 allow_undefined_flag_CXX=' ${wl}-berok'
11659 # Exported symbols can be pulled into shared objects from archives
11660 whole_archive_flag_spec_CXX='$convenience'
11661 archive_cmds_need_lc_CXX=yes
11662 # This is similar to how AIX traditionally builds its shared libraries.
11663 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'
11669 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11670 allow_undefined_flag_CXX=unsupported
11671 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11672 # support --undefined. This deserves some investigation. FIXME
11673 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11680 case $cc_basename in
11682 # FIXME: insert proper C++ library support
11688 cygwin* | mingw* | pw32*)
11689 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11690 # as there is no search path for DLLs.
11691 hardcode_libdir_flag_spec_CXX='-L$libdir'
11692 allow_undefined_flag_CXX=unsupported
11693 always_export_symbols_CXX=no
11694 enable_shared_with_static_runtimes_CXX=yes
11696 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11697 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'
11698 # If the export-symbols file already is a .def file (1st line
11699 # is EXPORTS), use it as is; otherwise, prepend...
11700 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11701 cp $export_symbols $output_objdir/$soname.def;
11703 echo EXPORTS > $output_objdir/$soname.def;
11704 cat $export_symbols >> $output_objdir/$soname.def;
11706 $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'
11711 darwin* | rhapsody*)
11712 archive_cmds_need_lc_CXX=no
11713 hardcode_direct_CXX=no
11714 hardcode_automatic_CXX=yes
11715 hardcode_shlibpath_var_CXX=unsupported
11716 whole_archive_flag_spec_CXX=''
11717 link_all_deplibs_CXX=yes
11718 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11719 if test "$GXX" = yes ; then
11720 output_verbose_link_cmd='echo'
11721 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}"
11722 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11723 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}"
11724 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}"
11725 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11726 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}"
11727 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}"
11730 case $cc_basename in
11732 output_verbose_link_cmd='echo'
11733 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'
11734 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11735 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11736 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}'
11737 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}'
11747 case $cc_basename in
11749 # FIXME: insert proper C++ library support
11753 # Green Hills C++ Compiler
11754 # FIXME: insert proper C++ library support
11758 # FIXME: insert proper C++ library support
11764 # C++ shared libraries reported to be fairly broken before switch to ELF
11768 archive_cmds_need_lc_CXX=no
11770 freebsd* | dragonfly*)
11771 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11778 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11779 hardcode_libdir_separator_CXX=:
11780 export_dynamic_flag_spec_CXX='${wl}-E'
11781 hardcode_direct_CXX=yes
11782 hardcode_minus_L_CXX=yes # Not in the search PATH,
11783 # but as the default
11784 # location of the library.
11786 case $cc_basename in
11788 # FIXME: insert proper C++ library support
11792 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'
11793 # Commands to make compiler produce verbose output that lists
11794 # what "hidden" libraries, object files and flags are used when
11795 # linking a shared library.
11797 # There doesn't appear to be a way to prevent this compiler from
11798 # explicitly linking system object files so we need to strip them
11799 # from the output so that they don't get included in the library
11801 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'
11804 if test "$GXX" = yes; then
11805 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'
11807 # FIXME: insert proper C++ library support
11814 if test $with_gnu_ld = no; then
11815 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11816 hardcode_libdir_separator_CXX=:
11821 export_dynamic_flag_spec_CXX='${wl}-E'
11827 hardcode_direct_CXX=no
11828 hardcode_shlibpath_var_CXX=no
11831 hardcode_direct_CXX=yes
11832 hardcode_minus_L_CXX=yes # Not in the search PATH,
11833 # but as the default
11834 # location of the library.
11838 case $cc_basename in
11840 # FIXME: insert proper C++ library support
11846 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11849 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11852 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11855 # Commands to make compiler produce verbose output that lists
11856 # what "hidden" libraries, object files and flags are used when
11857 # linking a shared library.
11859 # There doesn't appear to be a way to prevent this compiler from
11860 # explicitly linking system object files so we need to strip them
11861 # from the output so that they don't get included in the library
11863 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'
11866 if test "$GXX" = yes; then
11867 if test $with_gnu_ld = no; then
11870 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11873 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11876 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'
11881 # FIXME: insert proper C++ library support
11888 hardcode_direct_CXX=no
11889 hardcode_shlibpath_var_CXX=no
11890 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11891 export_dynamic_flag_spec_CXX='${wl}-E'
11892 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11893 # Instead, shared libraries are loaded at an image base (0x10000000 by
11894 # default) and relocated if they conflict, which is a slow very memory
11895 # consuming and fragmenting process. To avoid this, we pick a random,
11896 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11897 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11898 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'
11899 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'
11902 case $cc_basename in
11905 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'
11907 # Archives containing C++ object files must be created using
11908 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11909 # necessary to make sure instantiated templates are included
11911 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11914 if test "$GXX" = yes; then
11915 if test "$with_gnu_ld" = no; then
11916 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'
11918 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'
11921 link_all_deplibs_CXX=yes
11924 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11925 hardcode_libdir_separator_CXX=:
11927 linux* | k*bsd*-gnu)
11928 case $cc_basename in
11930 # Kuck and Associates, Inc. (KAI) C++ Compiler
11932 # KCC will only create a shared library if the output file
11933 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11934 # to its proper name (with version) after linking.
11935 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'
11936 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'
11937 # Commands to make compiler produce verbose output that lists
11938 # what "hidden" libraries, object files and flags are used when
11939 # linking a shared library.
11941 # There doesn't appear to be a way to prevent this compiler from
11942 # explicitly linking system object files so we need to strip them
11943 # from the output so that they don't get included in the library
11945 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'
11947 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11948 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11950 # Archives containing C++ object files must be created using
11951 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11952 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11957 # version 8.0 and above of icpc choke on multiply defined symbols
11958 # if we add $predep_objects and $postdep_objects, however 7.1 and
11959 # earlier do not add the objects themselves.
11960 case `$CC -V 2>&1` in
11962 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11963 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'
11965 *) # Version 8.0 or newer
11968 ia64*) tmp_idyn=' -i_dynamic';;
11970 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11971 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'
11974 archive_cmds_need_lc_CXX=no
11975 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11976 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11977 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11980 # Portland Group C++ compiler
11981 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11982 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'
11984 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11985 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11986 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'
11990 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11991 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'
11993 runpath_var=LD_RUN_PATH
11994 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11995 hardcode_libdir_separator_CXX=:
11997 # Commands to make compiler produce verbose output that lists
11998 # what "hidden" libraries, object files and flags are used when
11999 # linking a shared library.
12001 # There doesn't appear to be a way to prevent this compiler from
12002 # explicitly linking system object files so we need to strip them
12003 # from the output so that they don't get included in the library
12005 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'
12008 case `$CC -V 2>&1 | sed 5q` in
12011 no_undefined_flag_CXX=' -zdefs'
12012 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12013 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'
12014 hardcode_libdir_flag_spec_CXX='-R$libdir'
12015 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'
12017 # Not sure whether something based on
12018 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12020 output_verbose_link_cmd='echo'
12022 # Archives containing C++ object files must be created using
12023 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12024 # necessary to make sure instantiated templates are included
12026 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12033 # FIXME: insert proper C++ library support
12037 # FIXME: insert proper C++ library support
12041 case $cc_basename in
12043 # FIXME: insert proper C++ library support
12047 # FIXME: insert proper C++ library support
12052 netbsd* | netbsdelf*-gnu)
12053 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12054 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12056 hardcode_libdir_flag_spec_CXX='-R$libdir'
12057 hardcode_direct_CXX=yes
12058 hardcode_shlibpath_var_CXX=no
12060 # Workaround some broken pre-1.5 toolchains
12061 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12064 # C++ shared libraries are fairly broken
12068 if test -f /usr/libexec/ld.so; then
12069 hardcode_direct_CXX=yes
12070 hardcode_shlibpath_var_CXX=no
12071 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12072 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12073 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12074 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12075 export_dynamic_flag_spec_CXX='${wl}-E'
12076 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12078 output_verbose_link_cmd='echo'
12084 case $cc_basename in
12086 # Kuck and Associates, Inc. (KAI) C++ Compiler
12088 # KCC will only create a shared library if the output file
12089 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12090 # to its proper name (with version) after linking.
12091 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'
12093 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12094 hardcode_libdir_separator_CXX=:
12096 # Archives containing C++ object files must be created using
12097 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12098 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12102 # Rational C++ 2.4.1
12103 # FIXME: insert proper C++ library support
12107 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12108 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'
12110 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12111 hardcode_libdir_separator_CXX=:
12113 # Commands to make compiler produce verbose output that lists
12114 # what "hidden" libraries, object files and flags are used when
12115 # linking a shared library.
12117 # There doesn't appear to be a way to prevent this compiler from
12118 # explicitly linking system object files so we need to strip them
12119 # from the output so that they don't get included in the library
12121 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'
12124 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12125 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12126 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'
12128 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12129 hardcode_libdir_separator_CXX=:
12131 # Commands to make compiler produce verbose output that lists
12132 # what "hidden" libraries, object files and flags are used when
12133 # linking a shared library.
12134 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12137 # FIXME: insert proper C++ library support
12144 case $cc_basename in
12146 # Kuck and Associates, Inc. (KAI) C++ Compiler
12148 # KCC will only create a shared library if the output file
12149 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12150 # to its proper name (with version) after linking.
12151 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'
12153 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12154 hardcode_libdir_separator_CXX=:
12156 # Archives containing C++ object files must be created using
12157 # the KAI C++ compiler.
12158 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12161 # Rational C++ 2.4.1
12162 # FIXME: insert proper C++ library support
12166 allow_undefined_flag_CXX=' -expect_unresolved \*'
12167 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'
12168 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12169 echo "-hidden">> $lib.exp~
12170 $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~
12173 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12174 hardcode_libdir_separator_CXX=:
12176 # Commands to make compiler produce verbose output that lists
12177 # what "hidden" libraries, object files and flags are used when
12178 # linking a shared library.
12180 # There doesn't appear to be a way to prevent this compiler from
12181 # explicitly linking system object files so we need to strip them
12182 # from the output so that they don't get included in the library
12184 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'
12187 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12188 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12189 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'
12191 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12192 hardcode_libdir_separator_CXX=:
12194 # Commands to make compiler produce verbose output that lists
12195 # what "hidden" libraries, object files and flags are used when
12196 # linking a shared library.
12197 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12200 # FIXME: insert proper C++ library support
12207 # FIXME: insert proper C++ library support
12211 case $cc_basename in
12214 # FIXME: insert proper C++ library support
12219 # FIXME: insert proper C++ library support
12223 # FIXME: insert proper C++ library support
12229 case $cc_basename in
12231 # Sun C++ 4.2, 5.x and Centerline C++
12232 archive_cmds_need_lc_CXX=yes
12233 no_undefined_flag_CXX=' -zdefs'
12234 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12235 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12236 $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'
12238 hardcode_libdir_flag_spec_CXX='-R$libdir'
12239 hardcode_shlibpath_var_CXX=no
12241 solaris2.[0-5] | solaris2.[0-5].*) ;;
12243 # The compiler driver will combine and reorder linker options,
12244 # but understands `-z linker_flag'.
12245 # Supported since Solaris 2.6 (maybe 2.5.1?)
12246 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12249 link_all_deplibs_CXX=yes
12251 output_verbose_link_cmd='echo'
12253 # Archives containing C++ object files must be created using
12254 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12255 # necessary to make sure instantiated templates are included
12257 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12260 # Green Hills C++ Compiler
12261 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12263 # The C++ compiler must be used to create the archive.
12264 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12267 # GNU C++ compiler with Solaris linker
12268 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12269 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12270 if $CC --version | grep -v '^2\.7' > /dev/null; then
12271 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12272 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12273 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12275 # Commands to make compiler produce verbose output that lists
12276 # what "hidden" libraries, object files and flags are used when
12277 # linking a shared library.
12278 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12280 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12282 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12283 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12284 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12286 # Commands to make compiler produce verbose output that lists
12287 # what "hidden" libraries, object files and flags are used when
12288 # linking a shared library.
12289 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12292 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12294 solaris2.[0-5] | solaris2.[0-5].*) ;;
12296 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12303 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12304 no_undefined_flag_CXX='${wl}-z,text'
12305 archive_cmds_need_lc_CXX=no
12306 hardcode_shlibpath_var_CXX=no
12307 runpath_var='LD_RUN_PATH'
12309 case $cc_basename in
12311 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12312 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12315 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12316 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12320 sysv5* | sco3.2v5* | sco5v6*)
12321 # Note: We can NOT use -z defs as we might desire, because we do not
12322 # link with -lc, and that would cause any symbols used from libc to
12323 # always be unresolved, which means just about no library would
12324 # ever link correctly. If we're not using GNU ld we use -z text
12325 # though, which does catch some bad symbols but isn't as heavy-handed
12327 # For security reasons, it is highly recommended that you always
12328 # use absolute paths for naming shared libraries, and exclude the
12329 # DT_RUNPATH tag from executables and libraries. But doing so
12330 # requires that you compile everything twice, which is a pain.
12331 # So that behaviour is only enabled if SCOABSPATH is set to a
12332 # non-empty value in the environment. Most likely only useful for
12333 # creating official distributions of packages.
12334 # This is a hack until libtool officially supports absolute path
12335 # names for shared libraries.
12336 no_undefined_flag_CXX='${wl}-z,text'
12337 allow_undefined_flag_CXX='${wl}-z,nodefs'
12338 archive_cmds_need_lc_CXX=no
12339 hardcode_shlibpath_var_CXX=no
12340 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12341 hardcode_libdir_separator_CXX=':'
12342 link_all_deplibs_CXX=yes
12343 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12344 runpath_var='LD_RUN_PATH'
12346 case $cc_basename in
12348 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12349 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12352 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12353 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12358 case $cc_basename in
12360 # NonStop-UX NCC 3.20
12361 # FIXME: insert proper C++ library support
12365 # FIXME: insert proper C++ library support
12371 # FIXME: insert proper C++ library support
12375 # FIXME: insert proper C++ library support
12379 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12380 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12381 test "$ld_shlibs_CXX" = no && can_build_shared=no
12386 cat > conftest.$ac_ext <<EOF
12390 Foo (void) { a = 0; }
12396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12397 (eval $ac_compile) 2>&5
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); }; then
12401 # Parse the compiler output and extract the necessary
12402 # objects, libraries and library flags.
12404 # Sentinel used to keep track of whether or not we are before
12405 # the conftest object file.
12406 pre_test_object_deps_done=no
12408 # The `*' in the case matches for architectures that use `case' in
12409 # $output_verbose_cmd can trigger glob expansion during the loop
12410 # eval without this substitution.
12411 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12413 for p in `eval $output_verbose_link_cmd`; do
12417 # Some compilers place space between "-{L,R}" and the path.
12418 # Remove the space.
12419 if test $p = "-L" \
12420 || test $p = "-R"; then
12427 if test "$pre_test_object_deps_done" = no; then
12430 # Internal compiler library paths should come after those
12431 # provided the user. The postdeps already come after the
12432 # user supplied libs so there is no need to process them.
12433 if test -z "$compiler_lib_search_path_CXX"; then
12434 compiler_lib_search_path_CXX="${prev}${p}"
12436 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12439 # The "-l" case would never come before the object being
12440 # linked, so don't bother handling this case.
12443 if test -z "$postdeps_CXX"; then
12444 postdeps_CXX="${prev}${p}"
12446 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12452 # This assumes that the test object file only shows up
12453 # once in the compiler output.
12454 if test "$p" = "conftest.$objext"; then
12455 pre_test_object_deps_done=yes
12459 if test "$pre_test_object_deps_done" = no; then
12460 if test -z "$predep_objects_CXX"; then
12461 predep_objects_CXX="$p"
12463 predep_objects_CXX="$predep_objects_CXX $p"
12466 if test -z "$postdep_objects_CXX"; then
12467 postdep_objects_CXX="$p"
12469 postdep_objects_CXX="$postdep_objects_CXX $p"
12474 *) ;; # Ignore the rest.
12482 echo "libtool.m4: error: problem compiling CXX test program"
12485 $rm -f confest.$objext
12487 compiler_lib_search_dirs_CXX=
12488 if test -n "$compiler_lib_search_path_CXX"; then
12489 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12492 # PORTME: override above test on systems where it is broken
12495 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12496 # hack all around it, let's just trust "g++" to DTRT.
12497 predep_objects_CXX=
12498 postdep_objects_CXX=
12503 case `$CC -V 2>&1 | sed 5q` in
12507 # The more standards-conforming stlport4 library is
12508 # incompatible with the Cstd library. Avoid specifying
12509 # it if it's in CXXFLAGS. Ignore libCrun as
12510 # -library=stlport4 depends on it.
12511 case " $CXX $CXXFLAGS " in
12512 *" -library=stlport4 "*)
12513 solaris_use_stlport4=yes
12516 if test "$solaris_use_stlport4" != yes; then
12517 postdeps_CXX='-library=Cstd -library=Crun'
12524 case $cc_basename in
12526 # The more standards-conforming stlport4 library is
12527 # incompatible with the Cstd library. Avoid specifying
12528 # it if it's in CXXFLAGS. Ignore libCrun as
12529 # -library=stlport4 depends on it.
12530 case " $CXX $CXXFLAGS " in
12531 *" -library=stlport4 "*)
12532 solaris_use_stlport4=yes
12536 # Adding this requires a known-good setup of shared libraries for
12537 # Sun compiler versions before 5.6, else PIC objects from an old
12538 # archive will be linked into the output, leading to subtle bugs.
12539 if test "$solaris_use_stlport4" != yes; then
12540 postdeps_CXX='-library=Cstd -library=Crun'
12547 case " $postdeps_CXX " in
12548 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12551 lt_prog_compiler_wl_CXX=
12552 lt_prog_compiler_pic_CXX=
12553 lt_prog_compiler_static_CXX=
12555 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12556 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12558 # C++ specific cases for pic, static, wl, etc.
12559 if test "$GXX" = yes; then
12560 lt_prog_compiler_wl_CXX='-Wl,'
12561 lt_prog_compiler_static_CXX='-static'
12565 # All AIX code is PIC.
12566 if test "$host_cpu" = ia64; then
12567 # AIX 5 now supports IA64 processor
12568 lt_prog_compiler_static_CXX='-Bstatic'
12572 # FIXME: we need at least 68020 code to build shared libraries, but
12573 # adding the `-m68020' flag to GCC prevents building anything better,
12575 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12577 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12578 # PIC is the default for these OSes.
12580 mingw* | cygwin* | os2* | pw32*)
12581 # This hack is so that the source file can tell whether it is being
12582 # built for inclusion in a dll (and should export symbols for example).
12583 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12584 # (--disable-auto-import) libraries
12585 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12587 darwin* | rhapsody*)
12588 # PIC is the default on this platform
12589 # Common symbols not allowed in MH_DYLIB files
12590 lt_prog_compiler_pic_CXX='-fno-common'
12593 # DJGPP does not support shared libraries at all
12594 lt_prog_compiler_pic_CXX=
12597 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12598 # Instead, we relocate shared libraries at runtime.
12601 if test -d /usr/nec; then
12602 lt_prog_compiler_pic_CXX=-Kconform_pic
12606 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12607 # not for PA HP-UX.
12612 lt_prog_compiler_pic_CXX='-fPIC'
12617 lt_prog_compiler_pic_CXX='-fPIC'
12623 # All AIX code is PIC.
12624 if test "$host_cpu" = ia64; then
12625 # AIX 5 now supports IA64 processor
12626 lt_prog_compiler_static_CXX='-Bstatic'
12628 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12632 case $cc_basename in
12634 # Green Hills C++ Compiler
12635 # _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"
12640 # PIC is the default on this platform
12641 # Common symbols not allowed in MH_DYLIB files
12642 case $cc_basename in
12644 lt_prog_compiler_pic_CXX='-qnocommon'
12645 lt_prog_compiler_wl_CXX='-Wl,'
12650 case $cc_basename in
12652 lt_prog_compiler_pic_CXX='-KPIC'
12655 # Green Hills C++ Compiler
12656 lt_prog_compiler_pic_CXX='-pic'
12662 freebsd* | dragonfly*)
12663 # FreeBSD uses GNU C++
12665 hpux9* | hpux10* | hpux11*)
12666 case $cc_basename in
12668 lt_prog_compiler_wl_CXX='-Wl,'
12669 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12670 if test "$host_cpu" != ia64; then
12671 lt_prog_compiler_pic_CXX='+Z'
12675 lt_prog_compiler_wl_CXX='-Wl,'
12676 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12682 lt_prog_compiler_pic_CXX='+Z'
12691 # This is c89, which is MS Visual C++ (no shared libs)
12692 # Anyone wants to do a port?
12694 irix5* | irix6* | nonstopux*)
12695 case $cc_basename in
12697 lt_prog_compiler_wl_CXX='-Wl,'
12698 lt_prog_compiler_static_CXX='-non_shared'
12699 # CC pic flag -KPIC is the default.
12705 linux* | k*bsd*-gnu)
12706 case $cc_basename in
12709 lt_prog_compiler_wl_CXX='--backend -Wl,'
12710 lt_prog_compiler_pic_CXX='-fPIC'
12714 lt_prog_compiler_wl_CXX='-Wl,'
12715 lt_prog_compiler_pic_CXX='-KPIC'
12716 lt_prog_compiler_static_CXX='-static'
12719 # Portland Group C++ compiler.
12720 lt_prog_compiler_wl_CXX='-Wl,'
12721 lt_prog_compiler_pic_CXX='-fpic'
12722 lt_prog_compiler_static_CXX='-Bstatic'
12726 # Make sure the PIC flag is empty. It appears that all Alpha
12727 # Linux and Compaq Tru64 Unix objects are PIC.
12728 lt_prog_compiler_pic_CXX=
12729 lt_prog_compiler_static_CXX='-non_shared'
12732 case `$CC -V 2>&1 | sed 5q` in
12735 lt_prog_compiler_pic_CXX='-KPIC'
12736 lt_prog_compiler_static_CXX='-Bstatic'
12737 lt_prog_compiler_wl_CXX='-Qoption ld '
12748 case $cc_basename in
12750 lt_prog_compiler_pic_CXX='-W c,exportall'
12756 netbsd* | netbsdelf*-gnu)
12758 osf3* | osf4* | osf5*)
12759 case $cc_basename in
12761 lt_prog_compiler_wl_CXX='--backend -Wl,'
12764 # Rational C++ 2.4.1
12765 lt_prog_compiler_pic_CXX='-pic'
12768 # Digital/Compaq C++
12769 lt_prog_compiler_wl_CXX='-Wl,'
12770 # Make sure the PIC flag is empty. It appears that all Alpha
12771 # Linux and Compaq Tru64 Unix objects are PIC.
12772 lt_prog_compiler_pic_CXX=
12773 lt_prog_compiler_static_CXX='-non_shared'
12782 case $cc_basename in
12784 # Sun C++ 4.2, 5.x and Centerline C++
12785 lt_prog_compiler_pic_CXX='-KPIC'
12786 lt_prog_compiler_static_CXX='-Bstatic'
12787 lt_prog_compiler_wl_CXX='-Qoption ld '
12790 # Green Hills C++ Compiler
12791 lt_prog_compiler_pic_CXX='-PIC'
12798 case $cc_basename in
12801 lt_prog_compiler_pic_CXX='-pic'
12802 lt_prog_compiler_static_CXX='-Bstatic'
12806 lt_prog_compiler_pic_CXX='-pic'
12813 case $cc_basename in
12815 # NonStop-UX NCC 3.20
12816 lt_prog_compiler_pic_CXX='-KPIC'
12822 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12823 case $cc_basename in
12825 lt_prog_compiler_wl_CXX='-Wl,'
12826 lt_prog_compiler_pic_CXX='-KPIC'
12827 lt_prog_compiler_static_CXX='-Bstatic'
12834 lt_prog_compiler_can_build_shared_CXX=no
12839 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12840 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12843 # Check to make sure the PIC flag actually works.
12845 if test -n "$lt_prog_compiler_pic_CXX"; then
12847 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12848 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12849 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12850 echo $ECHO_N "(cached) $ECHO_C" >&6
12852 lt_cv_prog_compiler_pic_works_CXX=no
12853 ac_outfile=conftest.$ac_objext
12854 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12855 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12856 # Insert the option either (1) after the last *FLAGS variable, or
12857 # (2) before a word containing "conftest.", or (3) at the end.
12858 # Note that $ac_compile itself does not contain backslashes and begins
12859 # with a dollar sign (not a hyphen), so the echo should work correctly.
12860 # The option is referenced via a variable to avoid confusing sed.
12861 lt_compile=`echo "$ac_compile" | $SED \
12862 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12863 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12864 -e 's:$: $lt_compiler_flag:'`
12865 (eval echo "\"\$as_me:12865: $lt_compile\"" >&5)
12866 (eval "$lt_compile" 2>conftest.err)
12868 cat conftest.err >&5
12869 echo "$as_me:12869: \$? = $ac_status" >&5
12870 if (exit $ac_status) && test -s "$ac_outfile"; then
12871 # The compiler can only warn and ignore the option if not recognized
12872 # So say no if there are warnings other than the usual output.
12873 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12874 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12875 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12876 lt_cv_prog_compiler_pic_works_CXX=yes
12882 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12883 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12885 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12886 case $lt_prog_compiler_pic_CXX in
12888 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12891 lt_prog_compiler_pic_CXX=
12892 lt_prog_compiler_can_build_shared_CXX=no
12897 # For platforms which do not support PIC, -DPIC is meaningless:
12899 lt_prog_compiler_pic_CXX=
12902 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12907 # Check to make sure the static flag actually works.
12909 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12910 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12911 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12912 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12913 echo $ECHO_N "(cached) $ECHO_C" >&6
12915 lt_cv_prog_compiler_static_works_CXX=no
12916 save_LDFLAGS="$LDFLAGS"
12917 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12918 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12919 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12920 # The linker can only warn and ignore the option if not recognized
12921 # So say no if there are warnings
12922 if test -s conftest.err; then
12923 # Append any errors to the config.log.
12924 cat conftest.err 1>&5
12925 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12926 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12927 if diff conftest.exp conftest.er2 >/dev/null; then
12928 lt_cv_prog_compiler_static_works_CXX=yes
12931 lt_cv_prog_compiler_static_works_CXX=yes
12935 LDFLAGS="$save_LDFLAGS"
12938 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12939 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12941 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12944 lt_prog_compiler_static_CXX=
12948 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12949 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12950 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12951 echo $ECHO_N "(cached) $ECHO_C" >&6
12953 lt_cv_prog_compiler_c_o_CXX=no
12954 $rm -r conftest 2>/dev/null
12958 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12960 lt_compiler_flag="-o out/conftest2.$ac_objext"
12961 # Insert the option either (1) after the last *FLAGS variable, or
12962 # (2) before a word containing "conftest.", or (3) at the end.
12963 # Note that $ac_compile itself does not contain backslashes and begins
12964 # with a dollar sign (not a hyphen), so the echo should work correctly.
12965 lt_compile=`echo "$ac_compile" | $SED \
12966 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12967 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12968 -e 's:$: $lt_compiler_flag:'`
12969 (eval echo "\"\$as_me:12969: $lt_compile\"" >&5)
12970 (eval "$lt_compile" 2>out/conftest.err)
12972 cat out/conftest.err >&5
12973 echo "$as_me:12973: \$? = $ac_status" >&5
12974 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12976 # The compiler can only warn and ignore the option if not recognized
12977 # So say no if there are warnings
12978 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12979 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12980 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12981 lt_cv_prog_compiler_c_o_CXX=yes
12986 # SGI C++ compiler will create directory out/ii_files/ for
12987 # template instantiation
12988 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12989 $rm out/* && rmdir out
12995 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12996 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12999 hard_links="nottested"
13000 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13001 # do not overwrite the value of need_locks provided by the user
13002 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13003 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13006 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13008 ln conftest.a conftest.b 2>&5 || hard_links=no
13009 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13010 { echo "$as_me:$LINENO: result: $hard_links" >&5
13011 echo "${ECHO_T}$hard_links" >&6; }
13012 if test "$hard_links" = no; then
13013 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13014 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13021 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13022 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13024 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13027 # If we're using GNU nm, then we don't want the "-C" option.
13028 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13029 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13030 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'
13032 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'
13036 export_symbols_cmds_CXX="$ltdll_cmds"
13039 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'
13041 linux* | k*bsd*-gnu)
13042 link_all_deplibs_CXX=no
13045 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13048 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13050 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13051 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13052 test "$ld_shlibs_CXX" = no && can_build_shared=no
13055 # Do we need to explicitly link libc?
13057 case "x$archive_cmds_need_lc_CXX" in
13059 # Assume -lc should be added
13060 archive_cmds_need_lc_CXX=yes
13062 if test "$enable_shared" = yes && test "$GCC" = yes; then
13063 case $archive_cmds_CXX in
13065 # FIXME: we may have to deal with multi-command sequences.
13068 # Test whether the compiler implicitly links with -lc since on some
13069 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13070 # to ld, don't add -lc before -lgcc.
13071 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13072 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13074 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13077 (eval $ac_compile) 2>&5
13079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080 (exit $ac_status); } 2>conftest.err; then
13083 libobjs=conftest.$ac_objext
13085 wl=$lt_prog_compiler_wl_CXX
13086 pic_flag=$lt_prog_compiler_pic_CXX
13092 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13093 allow_undefined_flag_CXX=
13094 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13095 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098 (exit $ac_status); }
13100 archive_cmds_need_lc_CXX=no
13102 archive_cmds_need_lc_CXX=yes
13104 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13106 cat conftest.err 1>&5
13109 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13110 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13117 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13118 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13119 library_names_spec=
13120 libname_spec='lib$name'
13124 postuninstall_cmds=
13128 shlibpath_overrides_runpath=unknown
13130 dynamic_linker="$host_os ld.so"
13131 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13133 need_lib_prefix=unknown
13134 hardcode_into_libs=no
13136 # when you set need_version to no, make sure it does not cause -set_version
13137 # flags to be left without arguments
13138 need_version=unknown
13143 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13144 shlibpath_var=LIBPATH
13146 # AIX 3 has no versioning support, so we append a major version to the name.
13147 soname_spec='${libname}${release}${shared_ext}$major'
13154 hardcode_into_libs=yes
13155 if test "$host_cpu" = ia64; then
13156 # AIX 5 supports IA64
13157 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13158 shlibpath_var=LD_LIBRARY_PATH
13160 # With GCC up to 2.95.x, collect2 would create an import file
13161 # for dependence libraries. The import file would start with
13162 # the line `#! .'. This would cause the generated library to
13163 # depend on `.', always an invalid library. This was fixed in
13164 # development snapshots of GCC prior to 3.0.
13166 aix4 | aix4.[01] | aix4.[01].*)
13167 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13169 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13172 can_build_shared=no
13176 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13177 # soname into executable. Probably we can add versioning support to
13178 # collect2, so additional links can be useful in future.
13179 if test "$aix_use_runtimelinking" = yes; then
13180 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13181 # instead of lib<name>.a to let people know that these are not
13182 # typical AIX shared libraries.
13183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13185 # We preserve .a as extension for shared libraries through AIX4.2
13186 # and later when we are not doing run time linking.
13187 library_names_spec='${libname}${release}.a $libname.a'
13188 soname_spec='${libname}${release}${shared_ext}$major'
13190 shlibpath_var=LIBPATH
13195 library_names_spec='$libname.ixlibrary $libname.a'
13196 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13197 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'
13201 library_names_spec='${libname}${shared_ext}'
13202 dynamic_linker="$host_os ld.so"
13203 shlibpath_var=LIBRARY_PATH
13209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13210 soname_spec='${libname}${release}${shared_ext}$major'
13211 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13212 shlibpath_var=LD_LIBRARY_PATH
13213 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13214 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13215 # the default ld.so.conf also contains /usr/contrib/lib and
13216 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13217 # libtool to hard-code these into programs
13220 cygwin* | mingw* | pw32*)
13221 version_type=windows
13226 case $GCC,$host_os in
13227 yes,cygwin* | yes,mingw* | yes,pw32*)
13228 library_names_spec='$libname.dll.a'
13229 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13230 postinstall_cmds='base_file=`basename \${file}`~
13231 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13232 dldir=$destdir/`dirname \$dlpath`~
13233 test -d \$dldir || mkdir -p \$dldir~
13234 $install_prog $dir/$dlname \$dldir/$dlname~
13235 chmod a+x \$dldir/$dlname'
13236 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13237 dlpath=$dir/\$dldll~
13239 shlibpath_overrides_runpath=yes
13243 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13244 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13245 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13248 # MinGW DLLs use traditional 'lib' prefix
13249 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13250 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13251 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13252 # It is most probably a Windows format PATH printed by
13253 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13254 # path with ; separators, and with drive letters. We can handle the
13255 # drive letters (cygwin fileutils understands them), so leave them,
13256 # especially as we might pass files found there to a mingw objdump,
13257 # which wouldn't understand a cygwinified path. Ahh.
13258 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13260 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13264 # pw32 DLLs use 'pw' prefix rather than 'lib'
13265 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13271 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13274 dynamic_linker='Win32 ld.exe'
13275 # FIXME: first we should search . and the directory the executable is in
13279 darwin* | rhapsody*)
13280 dynamic_linker="$host_os dyld"
13281 version_type=darwin
13284 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13285 soname_spec='${libname}${release}${major}$shared_ext'
13286 shlibpath_overrides_runpath=yes
13287 shlibpath_var=DYLD_LIBRARY_PATH
13288 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13290 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13298 soname_spec='${libname}${release}${shared_ext}$major'
13299 shlibpath_var=LD_LIBRARY_PATH
13306 freebsd* | dragonfly*)
13307 # DragonFly does not have aout. When/if they implement a new
13308 # versioning mechanism, adjust this.
13309 if test -x /usr/bin/objformat; then
13310 objformat=`/usr/bin/objformat`
13313 freebsd[123]*) objformat=aout ;;
13314 *) objformat=elf ;;
13317 version_type=freebsd-$objformat
13318 case $version_type in
13320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13325 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13329 shlibpath_var=LD_LIBRARY_PATH
13332 shlibpath_overrides_runpath=yes
13334 freebsd3.[01]* | freebsdelf3.[01]*)
13335 shlibpath_overrides_runpath=yes
13336 hardcode_into_libs=yes
13338 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13339 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13340 shlibpath_overrides_runpath=no
13341 hardcode_into_libs=yes
13343 *) # from 4.6 on, and DragonFly
13344 shlibpath_overrides_runpath=yes
13345 hardcode_into_libs=yes
13354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13355 soname_spec='${libname}${release}${shared_ext}$major'
13356 shlibpath_var=LD_LIBRARY_PATH
13357 hardcode_into_libs=yes
13360 hpux9* | hpux10* | hpux11*)
13361 # Give a soname corresponding to the major version so that dld.sl refuses to
13362 # link against other versions.
13369 hardcode_into_libs=yes
13370 dynamic_linker="$host_os dld.so"
13371 shlibpath_var=LD_LIBRARY_PATH
13372 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13374 soname_spec='${libname}${release}${shared_ext}$major'
13375 if test "X$HPUX_IA64_MODE" = X32; then
13376 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13378 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13380 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13384 hardcode_into_libs=yes
13385 dynamic_linker="$host_os dld.sl"
13386 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13387 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13389 soname_spec='${libname}${release}${shared_ext}$major'
13390 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13391 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13395 dynamic_linker="$host_os dld.sl"
13396 shlibpath_var=SHLIB_PATH
13397 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13399 soname_spec='${libname}${release}${shared_ext}$major'
13402 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13403 postinstall_cmds='chmod 555 $lib'
13410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13411 soname_spec='${libname}${release}${shared_ext}$major'
13412 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13413 shlibpath_var=LD_LIBRARY_PATH
13414 shlibpath_overrides_runpath=no
13415 hardcode_into_libs=yes
13418 irix5* | irix6* | nonstopux*)
13420 nonstopux*) version_type=nonstopux ;;
13422 if test "$lt_cv_prog_gnu_ld" = yes; then
13430 soname_spec='${libname}${release}${shared_ext}$major'
13431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13433 irix5* | nonstopux*)
13434 libsuff= shlibsuff=
13437 case $LD in # libtool.m4 will add one of these switches to LD
13438 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13439 libsuff= shlibsuff= libmagic=32-bit;;
13440 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13441 libsuff=32 shlibsuff=N32 libmagic=N32;;
13442 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13443 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13444 *) libsuff= shlibsuff= libmagic=never-match;;
13448 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13449 shlibpath_overrides_runpath=no
13450 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13451 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13452 hardcode_into_libs=yes
13455 # No shared lib support for Linux oldld, aout, or coff.
13456 linux*oldld* | linux*aout* | linux*coff*)
13460 # This must be Linux ELF.
13461 linux* | k*bsd*-gnu)
13465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13466 soname_spec='${libname}${release}${shared_ext}$major'
13467 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13468 shlibpath_var=LD_LIBRARY_PATH
13469 shlibpath_overrides_runpath=no
13470 # This implies no fast_install, which is unacceptable.
13471 # Some rework will be needed to allow for fast_install
13472 # before this can be enabled.
13473 hardcode_into_libs=yes
13475 # Append ld.so.conf contents to the search path
13476 if test -f /etc/ld.so.conf; then
13477 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' ' '`
13478 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13481 # We used to test for /lib/ld.so.1 and disable shared libraries on
13482 # powerpc, because MkLinux only supported shared libraries with the
13483 # GNU dynamic linker. Since this was broken with cross compilers,
13484 # most powerpc-linux boxes support dynamic linking these days and
13485 # people can always --disable-shared, the test was removed, and we
13486 # assume the GNU/Linux dynamic linker is in use.
13487 dynamic_linker='GNU/Linux ld.so'
13494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13495 soname_spec='${libname}${release}${shared_ext}$major'
13496 shlibpath_var=LD_LIBRARY_PATH
13497 shlibpath_overrides_runpath=no
13498 hardcode_into_libs=yes
13499 dynamic_linker='NetBSD ld.elf_so'
13506 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13508 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13509 dynamic_linker='NetBSD (a.out) ld.so'
13511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13512 soname_spec='${libname}${release}${shared_ext}$major'
13513 dynamic_linker='NetBSD ld.elf_so'
13515 shlibpath_var=LD_LIBRARY_PATH
13516 shlibpath_overrides_runpath=yes
13517 hardcode_into_libs=yes
13522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13523 shlibpath_var=LD_LIBRARY_PATH
13524 shlibpath_overrides_runpath=yes
13531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13532 soname_spec='${libname}${release}${shared_ext}$major'
13533 shlibpath_var=LD_LIBRARY_PATH
13534 shlibpath_overrides_runpath=yes
13539 sys_lib_dlsearch_path_spec="/usr/lib"
13541 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13543 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13544 *) need_version=no ;;
13546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13547 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13548 shlibpath_var=LD_LIBRARY_PATH
13549 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13551 openbsd2.[89] | openbsd2.[89].*)
13552 shlibpath_overrides_runpath=no
13555 shlibpath_overrides_runpath=yes
13559 shlibpath_overrides_runpath=yes
13564 libname_spec='$name'
13567 library_names_spec='$libname${shared_ext} $libname.a'
13568 dynamic_linker='OS/2 ld.exe'
13569 shlibpath_var=LIBPATH
13572 osf3* | osf4* | osf5*)
13576 soname_spec='${libname}${release}${shared_ext}$major'
13577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13578 shlibpath_var=LD_LIBRARY_PATH
13579 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13580 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13592 soname_spec='${libname}${release}${shared_ext}$major'
13593 shlibpath_var=LD_LIBRARY_PATH
13594 shlibpath_overrides_runpath=yes
13595 hardcode_into_libs=yes
13596 # ldd complains unless libraries are executable
13597 postinstall_cmds='chmod +x $lib'
13602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13603 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13604 shlibpath_var=LD_LIBRARY_PATH
13605 shlibpath_overrides_runpath=yes
13606 if test "$with_gnu_ld" = yes; then
13614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13615 soname_spec='${libname}${release}${shared_ext}$major'
13616 shlibpath_var=LD_LIBRARY_PATH
13617 case $host_vendor in
13619 shlibpath_overrides_runpath=no
13621 export_dynamic_flag_spec='${wl}-Blargedynsym'
13622 runpath_var=LD_RUN_PATH
13630 shlibpath_overrides_runpath=no
13631 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13637 if test -d /usr/nec ;then
13639 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13640 soname_spec='$libname${shared_ext}.$major'
13641 shlibpath_var=LD_LIBRARY_PATH
13645 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13646 version_type=freebsd-elf
13649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13650 soname_spec='${libname}${release}${shared_ext}$major'
13651 shlibpath_var=LD_LIBRARY_PATH
13652 hardcode_into_libs=yes
13653 if test "$with_gnu_ld" = yes; then
13654 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13655 shlibpath_overrides_runpath=no
13657 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13658 shlibpath_overrides_runpath=yes
13661 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13665 sys_lib_dlsearch_path_spec='/usr/lib'
13670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13671 soname_spec='${libname}${release}${shared_ext}$major'
13672 shlibpath_var=LD_LIBRARY_PATH
13679 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13680 echo "${ECHO_T}$dynamic_linker" >&6; }
13681 test "$dynamic_linker" = no && can_build_shared=no
13683 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13684 echo $ECHO_N "(cached) $ECHO_C" >&6
13686 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13689 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13690 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13691 echo $ECHO_N "(cached) $ECHO_C" >&6
13693 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13696 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13698 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13699 if test "$GCC" = yes; then
13700 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13703 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13704 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13705 hardcode_action_CXX=
13706 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13707 test -n "$runpath_var_CXX" || \
13708 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13710 # We can hardcode non-existant directories.
13711 if test "$hardcode_direct_CXX" != no &&
13712 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13713 # have to relink, otherwise we might link with an installed library
13714 # when we should be linking with a yet-to-be-installed one
13715 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13716 test "$hardcode_minus_L_CXX" != no; then
13717 # Linking always hardcodes the temporary library directory.
13718 hardcode_action_CXX=relink
13720 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13721 hardcode_action_CXX=immediate
13724 # We cannot hardcode anything, or else we can only hardcode existing
13726 hardcode_action_CXX=unsupported
13728 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13729 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13731 if test "$hardcode_action_CXX" = relink; then
13732 # Fast installation is not supported
13733 enable_fast_install=no
13734 elif test "$shlibpath_overrides_runpath" = yes ||
13735 test "$enable_shared" = no; then
13736 # Fast installation is not necessary
13737 enable_fast_install=needless
13741 # The else clause should only fire when bootstrapping the
13742 # libtool distribution, otherwise you forgot to ship ltmain.sh
13743 # with your package, and you will get complaints that there are
13744 # no rules to generate ltmain.sh.
13745 if test -f "$ltmain"; then
13746 # See if we are running on zsh, and set the options which allow our commands through
13747 # without removal of \ escapes.
13748 if test -n "${ZSH_VERSION+set}" ; then
13749 setopt NO_GLOB_SUBST
13751 # Now quote all the things that may contain metacharacters while being
13752 # careful not to overquote the AC_SUBSTed values. We take copies of the
13753 # variables and quote the copies for generation of the libtool script.
13754 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13756 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13757 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13758 deplibs_check_method reload_flag reload_cmds need_locks \
13759 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13760 lt_cv_sys_global_symbol_to_c_name_address \
13761 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13762 old_postinstall_cmds old_postuninstall_cmds \
13766 lt_prog_compiler_wl_CXX \
13767 lt_prog_compiler_pic_CXX \
13768 lt_prog_compiler_static_CXX \
13769 lt_prog_compiler_no_builtin_flag_CXX \
13770 export_dynamic_flag_spec_CXX \
13771 thread_safe_flag_spec_CXX \
13772 whole_archive_flag_spec_CXX \
13773 enable_shared_with_static_runtimes_CXX \
13774 old_archive_cmds_CXX \
13775 old_archive_from_new_cmds_CXX \
13776 predep_objects_CXX \
13777 postdep_objects_CXX \
13780 compiler_lib_search_path_CXX \
13781 compiler_lib_search_dirs_CXX \
13783 archive_expsym_cmds_CXX \
13784 postinstall_cmds_CXX \
13785 postuninstall_cmds_CXX \
13786 old_archive_from_expsyms_cmds_CXX \
13787 allow_undefined_flag_CXX \
13788 no_undefined_flag_CXX \
13789 export_symbols_cmds_CXX \
13790 hardcode_libdir_flag_spec_CXX \
13791 hardcode_libdir_flag_spec_ld_CXX \
13792 hardcode_libdir_separator_CXX \
13793 hardcode_automatic_CXX \
13795 module_expsym_cmds_CXX \
13796 lt_cv_prog_compiler_c_o_CXX \
13797 fix_srcfile_path_CXX \
13798 exclude_expsyms_CXX \
13799 include_expsyms_CXX; do
13802 old_archive_cmds_CXX | \
13803 old_archive_from_new_cmds_CXX | \
13804 archive_cmds_CXX | \
13805 archive_expsym_cmds_CXX | \
13806 module_cmds_CXX | \
13807 module_expsym_cmds_CXX | \
13808 old_archive_from_expsyms_cmds_CXX | \
13809 export_symbols_cmds_CXX | \
13810 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13811 postinstall_cmds | postuninstall_cmds | \
13812 old_postinstall_cmds | old_postuninstall_cmds | \
13813 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13814 # Double-quote double-evaled strings.
13815 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13818 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13824 *'\$0 --fallback-echo"')
13825 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13831 cat <<__EOF__ >> "$cfgfile"
13832 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13834 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13836 # Shell to use when invoking shell scripts.
13839 # Whether or not to build shared libraries.
13840 build_libtool_libs=$enable_shared
13842 # Whether or not to build static libraries.
13843 build_old_libs=$enable_static
13845 # Whether or not to add -lc for building shared libraries.
13846 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13848 # Whether or not to disallow shared libs when runtime libs are static
13849 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13851 # Whether or not to optimize for fast installation.
13852 fast_install=$enable_fast_install
13855 host_alias=$host_alias
13859 # The build system.
13860 build_alias=$build_alias
13864 # An echo program that does not interpret backslashes.
13869 AR_FLAGS=$lt_AR_FLAGS
13874 # LTCC compiler flags.
13875 LTCFLAGS=$lt_LTCFLAGS
13877 # A language-specific compiler.
13878 CC=$lt_compiler_CXX
13880 # Is the compiler the GNU C compiler?
13886 # The linker used to build libraries.
13889 # Whether we need hard or soft links.
13892 # A BSD-compatible nm program.
13895 # A symbol stripping program
13898 # Used to examine libraries when file_magic_cmd begins "file"
13899 MAGIC_CMD=$MAGIC_CMD
13901 # Used on cygwin: DLL creation program.
13904 # Used on cygwin: object dumper.
13907 # Used on cygwin: assembler.
13910 # The name of the directory that contains temporary libtool files.
13913 # How to create reloadable object files.
13914 reload_flag=$lt_reload_flag
13915 reload_cmds=$lt_reload_cmds
13917 # How to pass a linker flag through the compiler.
13918 wl=$lt_lt_prog_compiler_wl_CXX
13920 # Object file suffix (normally "o").
13921 objext="$ac_objext"
13923 # Old archive suffix (normally "a").
13926 # Shared library suffix (normally ".so").
13927 shrext_cmds='$shrext_cmds'
13929 # Executable file suffix (normally "").
13932 # Additional compiler flags for building library objects.
13933 pic_flag=$lt_lt_prog_compiler_pic_CXX
13936 # What is the maximum length of a command?
13937 max_cmd_len=$lt_cv_sys_max_cmd_len
13939 # Does compiler simultaneously support -c and -o options?
13940 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13942 # Must we lock files when doing compilation?
13943 need_locks=$lt_need_locks
13945 # Do we need the lib prefix for modules?
13946 need_lib_prefix=$need_lib_prefix
13948 # Do we need a version for libraries?
13949 need_version=$need_version
13951 # Whether dlopen is supported.
13952 dlopen_support=$enable_dlopen
13954 # Whether dlopen of programs is supported.
13955 dlopen_self=$enable_dlopen_self
13957 # Whether dlopen of statically linked programs is supported.
13958 dlopen_self_static=$enable_dlopen_self_static
13960 # Compiler flag to prevent dynamic linking.
13961 link_static_flag=$lt_lt_prog_compiler_static_CXX
13963 # Compiler flag to turn off builtin functions.
13964 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13966 # Compiler flag to allow reflexive dlopens.
13967 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13969 # Compiler flag to generate shared objects directly from archives.
13970 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13972 # Compiler flag to generate thread-safe objects.
13973 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13975 # Library versioning type.
13976 version_type=$version_type
13978 # Format of library name prefix.
13979 libname_spec=$lt_libname_spec
13981 # List of archive names. First name is the real one, the rest are links.
13982 # The last name is the one that the linker finds with -lNAME.
13983 library_names_spec=$lt_library_names_spec
13985 # The coded name of the library, if different from the real name.
13986 soname_spec=$lt_soname_spec
13988 # Commands used to build and install an old-style archive.
13990 old_archive_cmds=$lt_old_archive_cmds_CXX
13991 old_postinstall_cmds=$lt_old_postinstall_cmds
13992 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13994 # Create an old-style archive from a shared archive.
13995 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13997 # Create a temporary old-style archive to link instead of a shared archive.
13998 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14000 # Commands used to build and install a shared archive.
14001 archive_cmds=$lt_archive_cmds_CXX
14002 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14003 postinstall_cmds=$lt_postinstall_cmds
14004 postuninstall_cmds=$lt_postuninstall_cmds
14006 # Commands used to build a loadable module (assumed same as above if empty)
14007 module_cmds=$lt_module_cmds_CXX
14008 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14010 # Commands to strip libraries.
14011 old_striplib=$lt_old_striplib
14012 striplib=$lt_striplib
14014 # Dependencies to place before the objects being linked to create a
14016 predep_objects=$lt_predep_objects_CXX
14018 # Dependencies to place after the objects being linked to create a
14020 postdep_objects=$lt_postdep_objects_CXX
14022 # Dependencies to place before the objects being linked to create a
14024 predeps=$lt_predeps_CXX
14026 # Dependencies to place after the objects being linked to create a
14028 postdeps=$lt_postdeps_CXX
14030 # The directories searched by this compiler when creating a shared
14032 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14034 # The library search path used internally by the compiler when linking
14035 # a shared library.
14036 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14038 # Method to check whether dependent libraries are shared objects.
14039 deplibs_check_method=$lt_deplibs_check_method
14041 # Command to use when deplibs_check_method == file_magic.
14042 file_magic_cmd=$lt_file_magic_cmd
14044 # Flag that allows shared libraries with undefined symbols to be built.
14045 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14047 # Flag that forces no undefined symbols.
14048 no_undefined_flag=$lt_no_undefined_flag_CXX
14050 # Commands used to finish a libtool library installation in a directory.
14051 finish_cmds=$lt_finish_cmds
14053 # Same as above, but a single script fragment to be evaled but not shown.
14054 finish_eval=$lt_finish_eval
14056 # Take the output of nm and produce a listing of raw symbols and C names.
14057 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14059 # Transform the output of nm in a proper C declaration
14060 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14062 # Transform the output of nm in a C name address pair
14063 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14065 # This is the shared library runtime path variable.
14066 runpath_var=$runpath_var
14068 # This is the shared library path variable.
14069 shlibpath_var=$shlibpath_var
14071 # Is shlibpath searched before the hard-coded library search path?
14072 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14074 # How to hardcode a shared library path into an executable.
14075 hardcode_action=$hardcode_action_CXX
14077 # Whether we should hardcode library paths into libraries.
14078 hardcode_into_libs=$hardcode_into_libs
14080 # Flag to hardcode \$libdir into a binary during linking.
14081 # This must work even if \$libdir does not exist.
14082 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14084 # If ld is used when linking, flag to hardcode \$libdir into
14085 # a binary during linking. This must work even if \$libdir does
14087 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14089 # Whether we need a single -rpath flag with a separated argument.
14090 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14092 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14093 # resulting binary.
14094 hardcode_direct=$hardcode_direct_CXX
14096 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14097 # resulting binary.
14098 hardcode_minus_L=$hardcode_minus_L_CXX
14100 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14101 # the resulting binary.
14102 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14104 # Set to yes if building a shared library automatically hardcodes DIR into the library
14105 # and all subsequent libraries and executables linked against it.
14106 hardcode_automatic=$hardcode_automatic_CXX
14108 # Variables whose values should be saved in libtool wrapper scripts and
14109 # restored at relink time.
14110 variables_saved_for_relink="$variables_saved_for_relink"
14112 # Whether libtool must link a program against all its dependency libraries.
14113 link_all_deplibs=$link_all_deplibs_CXX
14115 # Compile-time system search path for libraries
14116 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14118 # Run-time system search path for libraries
14119 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14121 # Fix the shell variable \$srcfile for the compiler.
14122 fix_srcfile_path=$lt_fix_srcfile_path
14124 # Set to yes if exported symbols are required.
14125 always_export_symbols=$always_export_symbols_CXX
14127 # The commands to list exported symbols.
14128 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14130 # The commands to extract the exported symbol list from a shared archive.
14131 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14133 # Symbols that should not be listed in the preloaded symbols.
14134 exclude_expsyms=$lt_exclude_expsyms_CXX
14136 # Symbols that must always be exported.
14137 include_expsyms=$lt_include_expsyms_CXX
14139 # ### END LIBTOOL TAG CONFIG: $tagname
14145 # If there is no Makefile yet, we rely on a make rule to execute
14146 # `config.status --recheck' to rerun these tests and create the
14147 # libtool script then.
14148 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14149 if test -f "$ltmain_in"; then
14150 test -f Makefile && make "$ltmain"
14156 ac_cpp='$CPP $CPPFLAGS'
14157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14165 with_gnu_ldcxx=$with_gnu_ld
14166 with_gnu_ld=$lt_save_with_gnu_ld
14167 lt_cv_path_LDCXX=$lt_cv_path_LD
14168 lt_cv_path_LD=$lt_save_path_LD
14169 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14170 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14178 if test -n "$F77" && test "X$F77" != "Xno"; then
14181 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14182 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14183 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14186 archive_cmds_need_lc_F77=no
14187 allow_undefined_flag_F77=
14188 always_export_symbols_F77=no
14189 archive_expsym_cmds_F77=
14190 export_dynamic_flag_spec_F77=
14191 hardcode_direct_F77=no
14192 hardcode_libdir_flag_spec_F77=
14193 hardcode_libdir_flag_spec_ld_F77=
14194 hardcode_libdir_separator_F77=
14195 hardcode_minus_L_F77=no
14196 hardcode_automatic_F77=no
14198 module_expsym_cmds_F77=
14199 link_all_deplibs_F77=unknown
14200 old_archive_cmds_F77=$old_archive_cmds
14201 no_undefined_flag_F77=
14202 whole_archive_flag_spec_F77=
14203 enable_shared_with_static_runtimes_F77=no
14205 # Source file extension for f77 test sources.
14208 # Object file extension for compiled f77 test sources.
14212 # Code to be used in simple compile tests
14213 lt_simple_compile_test_code="\
14219 # Code to be used in simple link tests
14220 lt_simple_link_test_code="\
14225 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14227 # If no C compiler was specified, use CC.
14230 # If no C compiler flags were specified, use CFLAGS.
14231 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14233 # Allow CC to be a program name with arguments.
14237 # save warnings/boilerplate of simple test code
14238 ac_outfile=conftest.$ac_objext
14239 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14240 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14241 _lt_compiler_boilerplate=`cat conftest.err`
14244 ac_outfile=conftest.$ac_objext
14245 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14246 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14247 _lt_linker_boilerplate=`cat conftest.err`
14251 # Allow CC to be a program name with arguments.
14256 for cc_temp in $compiler""; do
14258 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14259 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14264 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14267 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14268 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14269 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14270 echo "${ECHO_T}$can_build_shared" >&6; }
14272 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14273 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14274 test "$can_build_shared" = "no" && enable_shared=no
14276 # On AIX, shared libraries and static libraries use the same namespace, and
14277 # are all built from PIC.
14280 test "$enable_shared" = yes && enable_static=no
14281 if test -n "$RANLIB"; then
14282 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14283 postinstall_cmds='$RANLIB $lib'
14287 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14288 test "$enable_shared" = yes && enable_static=no
14292 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14293 echo "${ECHO_T}$enable_shared" >&6; }
14295 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14296 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14297 # Make sure either enable_shared or enable_static is yes.
14298 test "$enable_shared" = yes || enable_static=yes
14299 { echo "$as_me:$LINENO: result: $enable_static" >&5
14300 echo "${ECHO_T}$enable_static" >&6; }
14305 lt_prog_compiler_wl_F77=
14306 lt_prog_compiler_pic_F77=
14307 lt_prog_compiler_static_F77=
14309 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14310 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14312 if test "$GCC" = yes; then
14313 lt_prog_compiler_wl_F77='-Wl,'
14314 lt_prog_compiler_static_F77='-static'
14318 # All AIX code is PIC.
14319 if test "$host_cpu" = ia64; then
14320 # AIX 5 now supports IA64 processor
14321 lt_prog_compiler_static_F77='-Bstatic'
14326 # FIXME: we need at least 68020 code to build shared libraries, but
14327 # adding the `-m68020' flag to GCC prevents building anything better,
14329 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14332 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14333 # PIC is the default for these OSes.
14336 mingw* | cygwin* | pw32* | os2*)
14337 # This hack is so that the source file can tell whether it is being
14338 # built for inclusion in a dll (and should export symbols for example).
14339 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14340 # (--disable-auto-import) libraries
14341 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14344 darwin* | rhapsody*)
14345 # PIC is the default on this platform
14346 # Common symbols not allowed in MH_DYLIB files
14347 lt_prog_compiler_pic_F77='-fno-common'
14351 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14352 # Instead, we relocate shared libraries at runtime.
14356 # Just because we use GCC doesn't mean we suddenly get shared libraries
14357 # on systems that don't support them.
14358 lt_prog_compiler_can_build_shared_F77=no
14363 if test -d /usr/nec; then
14364 lt_prog_compiler_pic_F77=-Kconform_pic
14369 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14370 # not for PA HP-UX.
14376 lt_prog_compiler_pic_F77='-fPIC'
14382 lt_prog_compiler_pic_F77='-fPIC'
14386 # PORTME Check for flag to pass linker flags through the system compiler.
14389 lt_prog_compiler_wl_F77='-Wl,'
14390 if test "$host_cpu" = ia64; then
14391 # AIX 5 now supports IA64 processor
14392 lt_prog_compiler_static_F77='-Bstatic'
14394 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14398 # PIC is the default on this platform
14399 # Common symbols not allowed in MH_DYLIB files
14400 case $cc_basename in
14402 lt_prog_compiler_pic_F77='-qnocommon'
14403 lt_prog_compiler_wl_F77='-Wl,'
14408 mingw* | cygwin* | pw32* | os2*)
14409 # This hack is so that the source file can tell whether it is being
14410 # built for inclusion in a dll (and should export symbols for example).
14411 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14414 hpux9* | hpux10* | hpux11*)
14415 lt_prog_compiler_wl_F77='-Wl,'
14416 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14417 # not for PA HP-UX.
14423 lt_prog_compiler_pic_F77='+Z'
14426 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14427 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14430 irix5* | irix6* | nonstopux*)
14431 lt_prog_compiler_wl_F77='-Wl,'
14432 # PIC (with -KPIC) is the default.
14433 lt_prog_compiler_static_F77='-non_shared'
14437 lt_prog_compiler_pic_F77='-KPIC'
14438 lt_prog_compiler_static_F77='-Bstatic'
14441 linux* | k*bsd*-gnu)
14442 case $cc_basename in
14444 lt_prog_compiler_wl_F77='-Wl,'
14445 lt_prog_compiler_pic_F77='-KPIC'
14446 lt_prog_compiler_static_F77='-static'
14448 pgcc* | pgf77* | pgf90* | pgf95*)
14449 # Portland Group compilers (*not* the Pentium gcc compiler,
14450 # which looks to be a dead project)
14451 lt_prog_compiler_wl_F77='-Wl,'
14452 lt_prog_compiler_pic_F77='-fpic'
14453 lt_prog_compiler_static_F77='-Bstatic'
14456 lt_prog_compiler_wl_F77='-Wl,'
14457 # All Alpha code is PIC.
14458 lt_prog_compiler_static_F77='-non_shared'
14461 case `$CC -V 2>&1 | sed 5q` in
14464 lt_prog_compiler_pic_F77='-KPIC'
14465 lt_prog_compiler_static_F77='-Bstatic'
14466 lt_prog_compiler_wl_F77='-Wl,'
14469 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14470 lt_prog_compiler_pic_F77='-KPIC'
14471 lt_prog_compiler_static_F77='-Bstatic'
14472 lt_prog_compiler_wl_F77=''
14479 osf3* | osf4* | osf5*)
14480 lt_prog_compiler_wl_F77='-Wl,'
14481 # All OSF/1 code is PIC.
14482 lt_prog_compiler_static_F77='-non_shared'
14486 lt_prog_compiler_static_F77='-non_shared'
14490 lt_prog_compiler_pic_F77='-KPIC'
14491 lt_prog_compiler_static_F77='-Bstatic'
14492 case $cc_basename in
14493 f77* | f90* | f95*)
14494 lt_prog_compiler_wl_F77='-Qoption ld ';;
14496 lt_prog_compiler_wl_F77='-Wl,';;
14501 lt_prog_compiler_wl_F77='-Qoption ld '
14502 lt_prog_compiler_pic_F77='-PIC'
14503 lt_prog_compiler_static_F77='-Bstatic'
14506 sysv4 | sysv4.2uw2* | sysv4.3*)
14507 lt_prog_compiler_wl_F77='-Wl,'
14508 lt_prog_compiler_pic_F77='-KPIC'
14509 lt_prog_compiler_static_F77='-Bstatic'
14513 if test -d /usr/nec ;then
14514 lt_prog_compiler_pic_F77='-Kconform_pic'
14515 lt_prog_compiler_static_F77='-Bstatic'
14519 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14520 lt_prog_compiler_wl_F77='-Wl,'
14521 lt_prog_compiler_pic_F77='-KPIC'
14522 lt_prog_compiler_static_F77='-Bstatic'
14526 lt_prog_compiler_wl_F77='-Wl,'
14527 lt_prog_compiler_can_build_shared_F77=no
14531 lt_prog_compiler_pic_F77='-pic'
14532 lt_prog_compiler_static_F77='-Bstatic'
14536 lt_prog_compiler_can_build_shared_F77=no
14541 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14542 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14545 # Check to make sure the PIC flag actually works.
14547 if test -n "$lt_prog_compiler_pic_F77"; then
14549 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14550 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14551 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14552 echo $ECHO_N "(cached) $ECHO_C" >&6
14554 lt_cv_prog_compiler_pic_works_F77=no
14555 ac_outfile=conftest.$ac_objext
14556 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14557 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14558 # Insert the option either (1) after the last *FLAGS variable, or
14559 # (2) before a word containing "conftest.", or (3) at the end.
14560 # Note that $ac_compile itself does not contain backslashes and begins
14561 # with a dollar sign (not a hyphen), so the echo should work correctly.
14562 # The option is referenced via a variable to avoid confusing sed.
14563 lt_compile=`echo "$ac_compile" | $SED \
14564 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14565 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14566 -e 's:$: $lt_compiler_flag:'`
14567 (eval echo "\"\$as_me:14567: $lt_compile\"" >&5)
14568 (eval "$lt_compile" 2>conftest.err)
14570 cat conftest.err >&5
14571 echo "$as_me:14571: \$? = $ac_status" >&5
14572 if (exit $ac_status) && test -s "$ac_outfile"; then
14573 # The compiler can only warn and ignore the option if not recognized
14574 # So say no if there are warnings other than the usual output.
14575 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14576 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14577 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14578 lt_cv_prog_compiler_pic_works_F77=yes
14584 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14585 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14587 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14588 case $lt_prog_compiler_pic_F77 in
14590 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14593 lt_prog_compiler_pic_F77=
14594 lt_prog_compiler_can_build_shared_F77=no
14599 # For platforms which do not support PIC, -DPIC is meaningless:
14601 lt_prog_compiler_pic_F77=
14604 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14609 # Check to make sure the static flag actually works.
14611 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14612 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14613 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14614 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14615 echo $ECHO_N "(cached) $ECHO_C" >&6
14617 lt_cv_prog_compiler_static_works_F77=no
14618 save_LDFLAGS="$LDFLAGS"
14619 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14620 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14621 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14622 # The linker can only warn and ignore the option if not recognized
14623 # So say no if there are warnings
14624 if test -s conftest.err; then
14625 # Append any errors to the config.log.
14626 cat conftest.err 1>&5
14627 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14628 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14629 if diff conftest.exp conftest.er2 >/dev/null; then
14630 lt_cv_prog_compiler_static_works_F77=yes
14633 lt_cv_prog_compiler_static_works_F77=yes
14637 LDFLAGS="$save_LDFLAGS"
14640 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14641 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14643 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14646 lt_prog_compiler_static_F77=
14650 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14651 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14652 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14653 echo $ECHO_N "(cached) $ECHO_C" >&6
14655 lt_cv_prog_compiler_c_o_F77=no
14656 $rm -r conftest 2>/dev/null
14660 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14662 lt_compiler_flag="-o out/conftest2.$ac_objext"
14663 # Insert the option either (1) after the last *FLAGS variable, or
14664 # (2) before a word containing "conftest.", or (3) at the end.
14665 # Note that $ac_compile itself does not contain backslashes and begins
14666 # with a dollar sign (not a hyphen), so the echo should work correctly.
14667 lt_compile=`echo "$ac_compile" | $SED \
14668 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14669 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14670 -e 's:$: $lt_compiler_flag:'`
14671 (eval echo "\"\$as_me:14671: $lt_compile\"" >&5)
14672 (eval "$lt_compile" 2>out/conftest.err)
14674 cat out/conftest.err >&5
14675 echo "$as_me:14675: \$? = $ac_status" >&5
14676 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14678 # The compiler can only warn and ignore the option if not recognized
14679 # So say no if there are warnings
14680 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14681 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14682 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14683 lt_cv_prog_compiler_c_o_F77=yes
14688 # SGI C++ compiler will create directory out/ii_files/ for
14689 # template instantiation
14690 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14691 $rm out/* && rmdir out
14697 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14698 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14701 hard_links="nottested"
14702 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14703 # do not overwrite the value of need_locks provided by the user
14704 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14705 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14708 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14710 ln conftest.a conftest.b 2>&5 || hard_links=no
14711 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14712 { echo "$as_me:$LINENO: result: $hard_links" >&5
14713 echo "${ECHO_T}$hard_links" >&6; }
14714 if test "$hard_links" = no; then
14715 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14716 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14723 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14724 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14727 allow_undefined_flag_F77=
14728 enable_shared_with_static_runtimes_F77=no
14730 archive_expsym_cmds_F77=
14731 old_archive_From_new_cmds_F77=
14732 old_archive_from_expsyms_cmds_F77=
14733 export_dynamic_flag_spec_F77=
14734 whole_archive_flag_spec_F77=
14735 thread_safe_flag_spec_F77=
14736 hardcode_libdir_flag_spec_F77=
14737 hardcode_libdir_flag_spec_ld_F77=
14738 hardcode_libdir_separator_F77=
14739 hardcode_direct_F77=no
14740 hardcode_minus_L_F77=no
14741 hardcode_shlibpath_var_F77=unsupported
14742 link_all_deplibs_F77=unknown
14743 hardcode_automatic_F77=no
14745 module_expsym_cmds_F77=
14746 always_export_symbols_F77=no
14747 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14748 # include_expsyms should be a list of space-separated symbols to be *always*
14749 # included in the symbol list
14750 include_expsyms_F77=
14751 # exclude_expsyms can be an extended regexp of symbols to exclude
14752 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14753 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14754 # as well as any symbol that contains `d'.
14755 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14756 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14757 # platforms (ab)use it in PIC code, but their linkers get confused if
14758 # the symbol is explicitly referenced. Since portable code cannot
14759 # rely on this symbol name, it's probably fine to never include it in
14760 # preloaded symbol tables.
14761 # Exclude shared library initialization/finalization symbols.
14762 extract_expsyms_cmds=
14763 # Just being paranoid about ensuring that cc_basename is set.
14764 for cc_temp in $compiler""; do
14766 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14767 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14772 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14775 cygwin* | mingw* | pw32*)
14776 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14777 # When not using gcc, we currently assume that we are using
14778 # Microsoft Visual C++.
14779 if test "$GCC" != yes; then
14784 # we just hope/assume this is gcc and not c89 (= MSVC++)
14793 if test "$with_gnu_ld" = yes; then
14794 # If archive_cmds runs LD, not CC, wlarc should be empty
14797 # Set some defaults for GNU ld with shared library support. These
14798 # are reset later if shared libraries are not supported. Putting them
14799 # here allows them to be overridden if necessary.
14800 runpath_var=LD_RUN_PATH
14801 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14802 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14803 # ancient GNU ld didn't support --whole-archive et. al.
14804 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14805 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14807 whole_archive_flag_spec_F77=
14809 supports_anon_versioning=no
14810 case `$LD -v 2>/dev/null` in
14811 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14812 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14813 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14814 *\ 2.11.*) ;; # other 2.11 versions
14815 *) supports_anon_versioning=yes ;;
14818 # See if GNU ld supports shared libraries.
14821 # On AIX/PPC, the GNU linker is very broken
14822 if test "$host_cpu" != ia64; then
14826 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14827 *** to be unable to reliably create shared libraries on AIX.
14828 *** Therefore, libtool is disabling shared libraries support. If you
14829 *** really care for shared libraries, you may want to modify your PATH
14830 *** so that a non-GNU linker is found, and then restart.
14837 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)'
14838 hardcode_libdir_flag_spec_F77='-L$libdir'
14839 hardcode_minus_L_F77=yes
14841 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14842 # that the semantics of dynamic libraries on AmigaOS, at least up
14843 # to version 4, is to share data among multiple programs linked
14844 # with the same dynamic library. Since this doesn't match the
14845 # behavior of shared libraries on other platforms, we can't use
14851 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14852 allow_undefined_flag_F77=unsupported
14853 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14854 # support --undefined. This deserves some investigation. FIXME
14855 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14861 cygwin* | mingw* | pw32*)
14862 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14863 # as there is no search path for DLLs.
14864 hardcode_libdir_flag_spec_F77='-L$libdir'
14865 allow_undefined_flag_F77=unsupported
14866 always_export_symbols_F77=no
14867 enable_shared_with_static_runtimes_F77=yes
14868 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14870 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14871 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14872 # If the export-symbols file already is a .def file (1st line
14873 # is EXPORTS), use it as is; otherwise, prepend...
14874 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14875 cp $export_symbols $output_objdir/$soname.def;
14877 echo EXPORTS > $output_objdir/$soname.def;
14878 cat $export_symbols >> $output_objdir/$soname.def;
14880 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14887 hardcode_direct_F77=no
14888 hardcode_shlibpath_var_F77=no
14889 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14890 export_dynamic_flag_spec_F77='${wl}-E'
14891 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14892 # Instead, shared libraries are loaded at an image base (0x10000000 by
14893 # default) and relocated if they conflict, which is a slow very memory
14894 # consuming and fragmenting process. To avoid this, we pick a random,
14895 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14896 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14897 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'
14898 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'
14901 gnu* | linux* | k*bsd*-gnu)
14902 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14904 case $cc_basename,$host_cpu in
14905 pgcc*) # Portland Group C compiler
14906 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'
14907 tmp_addflag=' $pic_flag'
14909 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14910 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'
14911 tmp_addflag=' $pic_flag -Mnomain' ;;
14912 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14913 tmp_addflag=' -i_dynamic' ;;
14914 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14915 tmp_addflag=' -i_dynamic -nofor_main' ;;
14916 ifc* | ifort*) # Intel Fortran compiler
14917 tmp_addflag=' -nofor_main' ;;
14919 case `$CC -V 2>&1 | sed 5q` in
14920 *Sun\ C*) # Sun C 5.9
14921 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'
14922 tmp_sharedflag='-G' ;;
14923 *Sun\ F*) # Sun Fortran 8.3
14924 tmp_sharedflag='-G' ;;
14926 tmp_sharedflag='-shared' ;;
14928 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14930 if test $supports_anon_versioning = yes; then
14931 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14932 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14933 $echo "local: *; };" >> $output_objdir/$libname.ver~
14934 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14936 link_all_deplibs_F77=no
14942 netbsd* | netbsdelf*-gnu)
14943 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14944 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14947 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14948 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14953 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14957 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14958 *** create shared libraries on Solaris systems. Therefore, libtool
14959 *** is disabling shared libraries support. We urge you to upgrade GNU
14960 *** binutils to release 2.9.1 or newer. Another option is to modify
14961 *** your PATH or compiler configuration so that the native linker is
14962 *** used, and then restart.
14965 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14966 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14967 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14973 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14974 case `$LD -v 2>&1` in
14975 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14979 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14980 *** reliably create shared libraries on SCO systems. Therefore, libtool
14981 *** is disabling shared libraries support. We urge you to upgrade GNU
14982 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14983 *** your PATH or compiler configuration so that the native linker is
14984 *** used, and then restart.
14989 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14990 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14991 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14992 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15001 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15003 hardcode_direct_F77=yes
15004 hardcode_shlibpath_var_F77=no
15008 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15009 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15010 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15017 if test "$ld_shlibs_F77" = no; then
15019 hardcode_libdir_flag_spec_F77=
15020 export_dynamic_flag_spec_F77=
15021 whole_archive_flag_spec_F77=
15024 # PORTME fill in a description of your system's linker (not GNU ld)
15027 allow_undefined_flag_F77=unsupported
15028 always_export_symbols_F77=yes
15029 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'
15030 # Note: this linker hardcodes the directories in LIBPATH if there
15031 # are no directories specified by -L.
15032 hardcode_minus_L_F77=yes
15033 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15034 # Neither direct hardcoding nor static linking is supported with a
15036 hardcode_direct_F77=unsupported
15041 if test "$host_cpu" = ia64; then
15042 # On IA64, the linker does run time linking by default, so we don't
15043 # have to do anything special.
15044 aix_use_runtimelinking=no
15045 exp_sym_flag='-Bexport'
15048 # If we're using GNU nm, then we don't want the "-C" option.
15049 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15050 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15051 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'
15053 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'
15055 aix_use_runtimelinking=no
15057 # Test if we are trying to use run time linking or normal
15058 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15059 # need to do runtime linking.
15060 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15061 for ld_flag in $LDFLAGS; do
15062 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15063 aix_use_runtimelinking=yes
15070 exp_sym_flag='-bexport'
15071 no_entry_flag='-bnoentry'
15074 # When large executables or shared objects are built, AIX ld can
15075 # have problems creating the table of contents. If linking a library
15076 # or program results in "error TOC overflow" add -mminimal-toc to
15077 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15078 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15080 archive_cmds_F77=''
15081 hardcode_direct_F77=yes
15082 hardcode_libdir_separator_F77=':'
15083 link_all_deplibs_F77=yes
15085 if test "$GCC" = yes; then
15086 case $host_os in aix4.[012]|aix4.[012].*)
15087 # We only want to do this on AIX 4.2 and lower, the check
15088 # below for broken collect2 doesn't work under 4.3+
15089 collect2name=`${CC} -print-prog-name=collect2`
15090 if test -f "$collect2name" && \
15091 strings "$collect2name" | grep resolve_lib_name >/dev/null
15093 # We have reworked collect2
15096 # We have old collect2
15097 hardcode_direct_F77=unsupported
15098 # It fails to find uninstalled libraries when the uninstalled
15099 # path is not listed in the libpath. Setting hardcode_minus_L
15100 # to unsupported forces relinking
15101 hardcode_minus_L_F77=yes
15102 hardcode_libdir_flag_spec_F77='-L$libdir'
15103 hardcode_libdir_separator_F77=
15107 shared_flag='-shared'
15108 if test "$aix_use_runtimelinking" = yes; then
15109 shared_flag="$shared_flag "'${wl}-G'
15113 if test "$host_cpu" = ia64; then
15114 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15115 # chokes on -Wl,-G. The following line is correct:
15118 if test "$aix_use_runtimelinking" = yes; then
15119 shared_flag='${wl}-G'
15121 shared_flag='${wl}-bM:SRE'
15126 # It seems that -bexpall does not export symbols beginning with
15127 # underscore (_), so it is better to generate a list of symbols to export.
15128 always_export_symbols_F77=yes
15129 if test "$aix_use_runtimelinking" = yes; then
15130 # Warning - without using the other runtime loading flags (-brtl),
15131 # -berok will link without error, but may produce a broken library.
15132 allow_undefined_flag_F77='-berok'
15133 # Determine the default libpath from the value encoded in an empty executable.
15134 cat >conftest.$ac_ext <<_ACEOF
15139 rm -f conftest.$ac_objext conftest$ac_exeext
15140 if { (ac_try="$ac_link"
15141 case "(($ac_try" in
15142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15143 *) ac_try_echo=$ac_try;;
15145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15146 (eval "$ac_link") 2>conftest.er1
15148 grep -v '^ *+' conftest.er1 >conftest.err
15150 cat conftest.err >&5
15151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152 (exit $ac_status); } && {
15153 test -z "$ac_f77_werror_flag" ||
15154 test ! -s conftest.err
15155 } && test -s conftest$ac_exeext &&
15156 $as_test_x conftest$ac_exeext; then
15158 lt_aix_libpath_sed='
15159 /Import File Strings/,/^$/ {
15165 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15166 # Check for a 64-bit object if we didn't find anything.
15167 if test -z "$aix_libpath"; then
15168 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15171 echo "$as_me: failed program was:" >&5
15172 sed 's/^/| /' conftest.$ac_ext >&5
15177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15178 conftest$ac_exeext conftest.$ac_ext
15179 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15181 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15182 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"
15184 if test "$host_cpu" = ia64; then
15185 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15186 allow_undefined_flag_F77="-z nodefs"
15187 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"
15189 # Determine the default libpath from the value encoded in an empty executable.
15190 cat >conftest.$ac_ext <<_ACEOF
15195 rm -f conftest.$ac_objext conftest$ac_exeext
15196 if { (ac_try="$ac_link"
15197 case "(($ac_try" in
15198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15199 *) ac_try_echo=$ac_try;;
15201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15202 (eval "$ac_link") 2>conftest.er1
15204 grep -v '^ *+' conftest.er1 >conftest.err
15206 cat conftest.err >&5
15207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208 (exit $ac_status); } && {
15209 test -z "$ac_f77_werror_flag" ||
15210 test ! -s conftest.err
15211 } && test -s conftest$ac_exeext &&
15212 $as_test_x conftest$ac_exeext; then
15214 lt_aix_libpath_sed='
15215 /Import File Strings/,/^$/ {
15221 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15222 # Check for a 64-bit object if we didn't find anything.
15223 if test -z "$aix_libpath"; then
15224 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15227 echo "$as_me: failed program was:" >&5
15228 sed 's/^/| /' conftest.$ac_ext >&5
15233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15234 conftest$ac_exeext conftest.$ac_ext
15235 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15237 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15238 # Warning - without using the other run time loading flags,
15239 # -berok will link without error, but may produce a broken library.
15240 no_undefined_flag_F77=' ${wl}-bernotok'
15241 allow_undefined_flag_F77=' ${wl}-berok'
15242 # Exported symbols can be pulled into shared objects from archives
15243 whole_archive_flag_spec_F77='$convenience'
15244 archive_cmds_need_lc_F77=yes
15245 # This is similar to how AIX traditionally builds its shared libraries.
15246 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'
15252 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)'
15253 hardcode_libdir_flag_spec_F77='-L$libdir'
15254 hardcode_minus_L_F77=yes
15255 # see comment about different semantics on the GNU ld section
15260 export_dynamic_flag_spec_F77=-rdynamic
15263 cygwin* | mingw* | pw32*)
15264 # When not using gcc, we currently assume that we are using
15265 # Microsoft Visual C++.
15266 # hardcode_libdir_flag_spec is actually meaningless, as there is
15267 # no search path for DLLs.
15268 hardcode_libdir_flag_spec_F77=' '
15269 allow_undefined_flag_F77=unsupported
15270 # Tell ltmain to make .lib files, not .a files.
15272 # Tell ltmain to make .dll files, not .so files.
15274 # FIXME: Setting linknames here is a bad hack.
15275 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15276 # The linker will automatically build a .lib file if we build a DLL.
15277 old_archive_From_new_cmds_F77='true'
15278 # FIXME: Should let the user specify the lib program.
15279 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15280 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15281 enable_shared_with_static_runtimes_F77=yes
15284 darwin* | rhapsody*)
15286 rhapsody* | darwin1.[012])
15287 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15290 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15291 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15293 case ${MACOSX_DEPLOYMENT_TARGET} in
15295 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15298 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15304 archive_cmds_need_lc_F77=no
15305 hardcode_direct_F77=no
15306 hardcode_automatic_F77=yes
15307 hardcode_shlibpath_var_F77=unsupported
15308 whole_archive_flag_spec_F77=''
15309 link_all_deplibs_F77=yes
15310 if test "$GCC" = yes ; then
15311 output_verbose_link_cmd='echo'
15312 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}"
15313 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15314 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}"
15315 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}"
15317 case $cc_basename in
15319 output_verbose_link_cmd='echo'
15320 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15321 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15322 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15323 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}'
15324 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}'
15334 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15335 hardcode_libdir_flag_spec_F77='-L$libdir'
15336 hardcode_shlibpath_var_F77=no
15343 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15344 # support. Future versions do this automatically, but an explicit c++rt0.o
15345 # does not break anything, and helps significantly (at the cost of a little
15348 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15349 hardcode_libdir_flag_spec_F77='-R$libdir'
15350 hardcode_direct_F77=yes
15351 hardcode_shlibpath_var_F77=no
15354 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15356 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15357 hardcode_direct_F77=yes
15358 hardcode_minus_L_F77=yes
15359 hardcode_shlibpath_var_F77=no
15362 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15363 freebsd* | dragonfly*)
15364 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15365 hardcode_libdir_flag_spec_F77='-R$libdir'
15366 hardcode_direct_F77=yes
15367 hardcode_shlibpath_var_F77=no
15371 if test "$GCC" = yes; then
15372 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'
15374 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'
15376 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15377 hardcode_libdir_separator_F77=:
15378 hardcode_direct_F77=yes
15380 # hardcode_minus_L: Not really in the search PATH,
15381 # but as the default location of the library.
15382 hardcode_minus_L_F77=yes
15383 export_dynamic_flag_spec_F77='${wl}-E'
15387 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15388 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15390 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15392 if test "$with_gnu_ld" = no; then
15393 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15394 hardcode_libdir_separator_F77=:
15396 hardcode_direct_F77=yes
15397 export_dynamic_flag_spec_F77='${wl}-E'
15399 # hardcode_minus_L: Not really in the search PATH,
15400 # but as the default location of the library.
15401 hardcode_minus_L_F77=yes
15406 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15409 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15412 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15415 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15421 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15424 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15427 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15431 if test "$with_gnu_ld" = no; then
15432 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15433 hardcode_libdir_separator_F77=:
15437 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15438 hardcode_direct_F77=no
15439 hardcode_shlibpath_var_F77=no
15442 hardcode_direct_F77=yes
15443 export_dynamic_flag_spec_F77='${wl}-E'
15445 # hardcode_minus_L: Not really in the search PATH,
15446 # but as the default location of the library.
15447 hardcode_minus_L_F77=yes
15453 irix5* | irix6* | nonstopux*)
15454 if test "$GCC" = yes; then
15455 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'
15457 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'
15458 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15460 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15461 hardcode_libdir_separator_F77=:
15462 link_all_deplibs_F77=yes
15465 netbsd* | netbsdelf*-gnu)
15466 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15467 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15469 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15471 hardcode_libdir_flag_spec_F77='-R$libdir'
15472 hardcode_direct_F77=yes
15473 hardcode_shlibpath_var_F77=no
15477 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15478 hardcode_direct_F77=yes
15479 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15480 hardcode_libdir_separator_F77=:
15481 hardcode_shlibpath_var_F77=no
15485 if test -f /usr/libexec/ld.so; then
15486 hardcode_direct_F77=yes
15487 hardcode_shlibpath_var_F77=no
15488 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15489 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15490 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15491 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15492 export_dynamic_flag_spec_F77='${wl}-E'
15495 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15496 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15497 hardcode_libdir_flag_spec_F77='-R$libdir'
15500 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15501 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15511 hardcode_libdir_flag_spec_F77='-L$libdir'
15512 hardcode_minus_L_F77=yes
15513 allow_undefined_flag_F77=unsupported
15514 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'
15515 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15519 if test "$GCC" = yes; then
15520 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15521 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'
15523 allow_undefined_flag_F77=' -expect_unresolved \*'
15524 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'
15526 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15527 hardcode_libdir_separator_F77=:
15530 osf4* | osf5*) # as osf3* with the addition of -msym flag
15531 if test "$GCC" = yes; then
15532 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15533 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'
15534 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15536 allow_undefined_flag_F77=' -expect_unresolved \*'
15537 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'
15538 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~
15539 $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'
15541 # Both c and cxx compiler support -rpath directly
15542 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15544 hardcode_libdir_separator_F77=:
15548 no_undefined_flag_F77=' -z text'
15549 if test "$GCC" = yes; then
15551 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15552 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15553 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15556 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15557 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15558 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15560 hardcode_libdir_flag_spec_F77='-R$libdir'
15561 hardcode_shlibpath_var_F77=no
15563 solaris2.[0-5] | solaris2.[0-5].*) ;;
15565 # The compiler driver will combine and reorder linker options,
15566 # but understands `-z linker_flag'. GCC discards it without `$wl',
15567 # but is careful enough not to reorder.
15568 # Supported since Solaris 2.6 (maybe 2.5.1?)
15569 if test "$GCC" = yes; then
15570 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15572 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15576 link_all_deplibs_F77=yes
15580 if test "x$host_vendor" = xsequent; then
15581 # Use $CC to link under sequent, because it throws in some extra .o
15582 # files that make .init and .fini sections work.
15583 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15585 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15587 hardcode_libdir_flag_spec_F77='-L$libdir'
15588 hardcode_direct_F77=yes
15589 hardcode_minus_L_F77=yes
15590 hardcode_shlibpath_var_F77=no
15594 case $host_vendor in
15596 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15597 hardcode_direct_F77=yes # is this really true???
15600 ## LD is ld it makes a PLAMLIB
15601 ## CC just makes a GrossModule.
15602 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15603 reload_cmds_F77='$CC -r -o $output$reload_objs'
15604 hardcode_direct_F77=no
15607 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15608 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15611 runpath_var='LD_RUN_PATH'
15612 hardcode_shlibpath_var_F77=no
15616 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15617 hardcode_shlibpath_var_F77=no
15618 export_dynamic_flag_spec_F77='-Bexport'
15622 if test -d /usr/nec; then
15623 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15624 hardcode_shlibpath_var_F77=no
15625 runpath_var=LD_RUN_PATH
15626 hardcode_runpath_var=yes
15631 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15632 no_undefined_flag_F77='${wl}-z,text'
15633 archive_cmds_need_lc_F77=no
15634 hardcode_shlibpath_var_F77=no
15635 runpath_var='LD_RUN_PATH'
15637 if test "$GCC" = yes; then
15638 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15639 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15641 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15642 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15646 sysv5* | sco3.2v5* | sco5v6*)
15647 # Note: We can NOT use -z defs as we might desire, because we do not
15648 # link with -lc, and that would cause any symbols used from libc to
15649 # always be unresolved, which means just about no library would
15650 # ever link correctly. If we're not using GNU ld we use -z text
15651 # though, which does catch some bad symbols but isn't as heavy-handed
15653 no_undefined_flag_F77='${wl}-z,text'
15654 allow_undefined_flag_F77='${wl}-z,nodefs'
15655 archive_cmds_need_lc_F77=no
15656 hardcode_shlibpath_var_F77=no
15657 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15658 hardcode_libdir_separator_F77=':'
15659 link_all_deplibs_F77=yes
15660 export_dynamic_flag_spec_F77='${wl}-Bexport'
15661 runpath_var='LD_RUN_PATH'
15663 if test "$GCC" = yes; then
15664 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15665 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15667 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15668 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15673 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15674 hardcode_libdir_flag_spec_F77='-L$libdir'
15675 hardcode_shlibpath_var_F77=no
15684 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15685 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15686 test "$ld_shlibs_F77" = no && can_build_shared=no
15689 # Do we need to explicitly link libc?
15691 case "x$archive_cmds_need_lc_F77" in
15693 # Assume -lc should be added
15694 archive_cmds_need_lc_F77=yes
15696 if test "$enable_shared" = yes && test "$GCC" = yes; then
15697 case $archive_cmds_F77 in
15699 # FIXME: we may have to deal with multi-command sequences.
15702 # Test whether the compiler implicitly links with -lc since on some
15703 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15704 # to ld, don't add -lc before -lgcc.
15705 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15706 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15708 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15711 (eval $ac_compile) 2>&5
15713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714 (exit $ac_status); } 2>conftest.err; then
15717 libobjs=conftest.$ac_objext
15719 wl=$lt_prog_compiler_wl_F77
15720 pic_flag=$lt_prog_compiler_pic_F77
15726 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15727 allow_undefined_flag_F77=
15728 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15729 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732 (exit $ac_status); }
15734 archive_cmds_need_lc_F77=no
15736 archive_cmds_need_lc_F77=yes
15738 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15740 cat conftest.err 1>&5
15743 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15744 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15751 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15752 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15753 library_names_spec=
15754 libname_spec='lib$name'
15758 postuninstall_cmds=
15762 shlibpath_overrides_runpath=unknown
15764 dynamic_linker="$host_os ld.so"
15765 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15767 need_lib_prefix=unknown
15768 hardcode_into_libs=no
15770 # when you set need_version to no, make sure it does not cause -set_version
15771 # flags to be left without arguments
15772 need_version=unknown
15777 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15778 shlibpath_var=LIBPATH
15780 # AIX 3 has no versioning support, so we append a major version to the name.
15781 soname_spec='${libname}${release}${shared_ext}$major'
15788 hardcode_into_libs=yes
15789 if test "$host_cpu" = ia64; then
15790 # AIX 5 supports IA64
15791 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15792 shlibpath_var=LD_LIBRARY_PATH
15794 # With GCC up to 2.95.x, collect2 would create an import file
15795 # for dependence libraries. The import file would start with
15796 # the line `#! .'. This would cause the generated library to
15797 # depend on `.', always an invalid library. This was fixed in
15798 # development snapshots of GCC prior to 3.0.
15800 aix4 | aix4.[01] | aix4.[01].*)
15801 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15803 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15806 can_build_shared=no
15810 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15811 # soname into executable. Probably we can add versioning support to
15812 # collect2, so additional links can be useful in future.
15813 if test "$aix_use_runtimelinking" = yes; then
15814 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15815 # instead of lib<name>.a to let people know that these are not
15816 # typical AIX shared libraries.
15817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15819 # We preserve .a as extension for shared libraries through AIX4.2
15820 # and later when we are not doing run time linking.
15821 library_names_spec='${libname}${release}.a $libname.a'
15822 soname_spec='${libname}${release}${shared_ext}$major'
15824 shlibpath_var=LIBPATH
15829 library_names_spec='$libname.ixlibrary $libname.a'
15830 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15831 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'
15835 library_names_spec='${libname}${shared_ext}'
15836 dynamic_linker="$host_os ld.so"
15837 shlibpath_var=LIBRARY_PATH
15843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15844 soname_spec='${libname}${release}${shared_ext}$major'
15845 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15846 shlibpath_var=LD_LIBRARY_PATH
15847 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15848 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15849 # the default ld.so.conf also contains /usr/contrib/lib and
15850 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15851 # libtool to hard-code these into programs
15854 cygwin* | mingw* | pw32*)
15855 version_type=windows
15860 case $GCC,$host_os in
15861 yes,cygwin* | yes,mingw* | yes,pw32*)
15862 library_names_spec='$libname.dll.a'
15863 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15864 postinstall_cmds='base_file=`basename \${file}`~
15865 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15866 dldir=$destdir/`dirname \$dlpath`~
15867 test -d \$dldir || mkdir -p \$dldir~
15868 $install_prog $dir/$dlname \$dldir/$dlname~
15869 chmod a+x \$dldir/$dlname'
15870 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15871 dlpath=$dir/\$dldll~
15873 shlibpath_overrides_runpath=yes
15877 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15878 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15879 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15882 # MinGW DLLs use traditional 'lib' prefix
15883 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15884 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15885 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15886 # It is most probably a Windows format PATH printed by
15887 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15888 # path with ; separators, and with drive letters. We can handle the
15889 # drive letters (cygwin fileutils understands them), so leave them,
15890 # especially as we might pass files found there to a mingw objdump,
15891 # which wouldn't understand a cygwinified path. Ahh.
15892 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15894 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15898 # pw32 DLLs use 'pw' prefix rather than 'lib'
15899 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15905 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15908 dynamic_linker='Win32 ld.exe'
15909 # FIXME: first we should search . and the directory the executable is in
15913 darwin* | rhapsody*)
15914 dynamic_linker="$host_os dyld"
15915 version_type=darwin
15918 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15919 soname_spec='${libname}${release}${major}$shared_ext'
15920 shlibpath_overrides_runpath=yes
15921 shlibpath_var=DYLD_LIBRARY_PATH
15922 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15924 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15932 soname_spec='${libname}${release}${shared_ext}$major'
15933 shlibpath_var=LD_LIBRARY_PATH
15940 freebsd* | dragonfly*)
15941 # DragonFly does not have aout. When/if they implement a new
15942 # versioning mechanism, adjust this.
15943 if test -x /usr/bin/objformat; then
15944 objformat=`/usr/bin/objformat`
15947 freebsd[123]*) objformat=aout ;;
15948 *) objformat=elf ;;
15951 version_type=freebsd-$objformat
15952 case $version_type in
15954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15959 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15963 shlibpath_var=LD_LIBRARY_PATH
15966 shlibpath_overrides_runpath=yes
15968 freebsd3.[01]* | freebsdelf3.[01]*)
15969 shlibpath_overrides_runpath=yes
15970 hardcode_into_libs=yes
15972 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15973 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15974 shlibpath_overrides_runpath=no
15975 hardcode_into_libs=yes
15977 *) # from 4.6 on, and DragonFly
15978 shlibpath_overrides_runpath=yes
15979 hardcode_into_libs=yes
15988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15989 soname_spec='${libname}${release}${shared_ext}$major'
15990 shlibpath_var=LD_LIBRARY_PATH
15991 hardcode_into_libs=yes
15994 hpux9* | hpux10* | hpux11*)
15995 # Give a soname corresponding to the major version so that dld.sl refuses to
15996 # link against other versions.
16003 hardcode_into_libs=yes
16004 dynamic_linker="$host_os dld.so"
16005 shlibpath_var=LD_LIBRARY_PATH
16006 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16008 soname_spec='${libname}${release}${shared_ext}$major'
16009 if test "X$HPUX_IA64_MODE" = X32; then
16010 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16012 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16014 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16018 hardcode_into_libs=yes
16019 dynamic_linker="$host_os dld.sl"
16020 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16021 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16023 soname_spec='${libname}${release}${shared_ext}$major'
16024 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16025 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16029 dynamic_linker="$host_os dld.sl"
16030 shlibpath_var=SHLIB_PATH
16031 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16033 soname_spec='${libname}${release}${shared_ext}$major'
16036 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16037 postinstall_cmds='chmod 555 $lib'
16044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16045 soname_spec='${libname}${release}${shared_ext}$major'
16046 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16047 shlibpath_var=LD_LIBRARY_PATH
16048 shlibpath_overrides_runpath=no
16049 hardcode_into_libs=yes
16052 irix5* | irix6* | nonstopux*)
16054 nonstopux*) version_type=nonstopux ;;
16056 if test "$lt_cv_prog_gnu_ld" = yes; then
16064 soname_spec='${libname}${release}${shared_ext}$major'
16065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16067 irix5* | nonstopux*)
16068 libsuff= shlibsuff=
16071 case $LD in # libtool.m4 will add one of these switches to LD
16072 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16073 libsuff= shlibsuff= libmagic=32-bit;;
16074 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16075 libsuff=32 shlibsuff=N32 libmagic=N32;;
16076 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16077 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16078 *) libsuff= shlibsuff= libmagic=never-match;;
16082 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16083 shlibpath_overrides_runpath=no
16084 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16085 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16086 hardcode_into_libs=yes
16089 # No shared lib support for Linux oldld, aout, or coff.
16090 linux*oldld* | linux*aout* | linux*coff*)
16094 # This must be Linux ELF.
16095 linux* | k*bsd*-gnu)
16099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16100 soname_spec='${libname}${release}${shared_ext}$major'
16101 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16102 shlibpath_var=LD_LIBRARY_PATH
16103 shlibpath_overrides_runpath=no
16104 # This implies no fast_install, which is unacceptable.
16105 # Some rework will be needed to allow for fast_install
16106 # before this can be enabled.
16107 hardcode_into_libs=yes
16109 # Append ld.so.conf contents to the search path
16110 if test -f /etc/ld.so.conf; then
16111 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' ' '`
16112 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16115 # We used to test for /lib/ld.so.1 and disable shared libraries on
16116 # powerpc, because MkLinux only supported shared libraries with the
16117 # GNU dynamic linker. Since this was broken with cross compilers,
16118 # most powerpc-linux boxes support dynamic linking these days and
16119 # people can always --disable-shared, the test was removed, and we
16120 # assume the GNU/Linux dynamic linker is in use.
16121 dynamic_linker='GNU/Linux ld.so'
16128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16129 soname_spec='${libname}${release}${shared_ext}$major'
16130 shlibpath_var=LD_LIBRARY_PATH
16131 shlibpath_overrides_runpath=no
16132 hardcode_into_libs=yes
16133 dynamic_linker='NetBSD ld.elf_so'
16140 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16142 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16143 dynamic_linker='NetBSD (a.out) ld.so'
16145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16146 soname_spec='${libname}${release}${shared_ext}$major'
16147 dynamic_linker='NetBSD ld.elf_so'
16149 shlibpath_var=LD_LIBRARY_PATH
16150 shlibpath_overrides_runpath=yes
16151 hardcode_into_libs=yes
16156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16157 shlibpath_var=LD_LIBRARY_PATH
16158 shlibpath_overrides_runpath=yes
16165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16166 soname_spec='${libname}${release}${shared_ext}$major'
16167 shlibpath_var=LD_LIBRARY_PATH
16168 shlibpath_overrides_runpath=yes
16173 sys_lib_dlsearch_path_spec="/usr/lib"
16175 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16177 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16178 *) need_version=no ;;
16180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16181 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16182 shlibpath_var=LD_LIBRARY_PATH
16183 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16185 openbsd2.[89] | openbsd2.[89].*)
16186 shlibpath_overrides_runpath=no
16189 shlibpath_overrides_runpath=yes
16193 shlibpath_overrides_runpath=yes
16198 libname_spec='$name'
16201 library_names_spec='$libname${shared_ext} $libname.a'
16202 dynamic_linker='OS/2 ld.exe'
16203 shlibpath_var=LIBPATH
16206 osf3* | osf4* | osf5*)
16210 soname_spec='${libname}${release}${shared_ext}$major'
16211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16212 shlibpath_var=LD_LIBRARY_PATH
16213 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16214 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16226 soname_spec='${libname}${release}${shared_ext}$major'
16227 shlibpath_var=LD_LIBRARY_PATH
16228 shlibpath_overrides_runpath=yes
16229 hardcode_into_libs=yes
16230 # ldd complains unless libraries are executable
16231 postinstall_cmds='chmod +x $lib'
16236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16237 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16238 shlibpath_var=LD_LIBRARY_PATH
16239 shlibpath_overrides_runpath=yes
16240 if test "$with_gnu_ld" = yes; then
16248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16249 soname_spec='${libname}${release}${shared_ext}$major'
16250 shlibpath_var=LD_LIBRARY_PATH
16251 case $host_vendor in
16253 shlibpath_overrides_runpath=no
16255 export_dynamic_flag_spec='${wl}-Blargedynsym'
16256 runpath_var=LD_RUN_PATH
16264 shlibpath_overrides_runpath=no
16265 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16271 if test -d /usr/nec ;then
16273 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16274 soname_spec='$libname${shared_ext}.$major'
16275 shlibpath_var=LD_LIBRARY_PATH
16279 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16280 version_type=freebsd-elf
16283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16284 soname_spec='${libname}${release}${shared_ext}$major'
16285 shlibpath_var=LD_LIBRARY_PATH
16286 hardcode_into_libs=yes
16287 if test "$with_gnu_ld" = yes; then
16288 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16289 shlibpath_overrides_runpath=no
16291 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16292 shlibpath_overrides_runpath=yes
16295 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16299 sys_lib_dlsearch_path_spec='/usr/lib'
16304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16305 soname_spec='${libname}${release}${shared_ext}$major'
16306 shlibpath_var=LD_LIBRARY_PATH
16313 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16314 echo "${ECHO_T}$dynamic_linker" >&6; }
16315 test "$dynamic_linker" = no && can_build_shared=no
16317 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16318 echo $ECHO_N "(cached) $ECHO_C" >&6
16320 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16323 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16324 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16325 echo $ECHO_N "(cached) $ECHO_C" >&6
16327 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16330 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16332 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16333 if test "$GCC" = yes; then
16334 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16337 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16338 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16339 hardcode_action_F77=
16340 if test -n "$hardcode_libdir_flag_spec_F77" || \
16341 test -n "$runpath_var_F77" || \
16342 test "X$hardcode_automatic_F77" = "Xyes" ; then
16344 # We can hardcode non-existant directories.
16345 if test "$hardcode_direct_F77" != no &&
16346 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16347 # have to relink, otherwise we might link with an installed library
16348 # when we should be linking with a yet-to-be-installed one
16349 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16350 test "$hardcode_minus_L_F77" != no; then
16351 # Linking always hardcodes the temporary library directory.
16352 hardcode_action_F77=relink
16354 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16355 hardcode_action_F77=immediate
16358 # We cannot hardcode anything, or else we can only hardcode existing
16360 hardcode_action_F77=unsupported
16362 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16363 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16365 if test "$hardcode_action_F77" = relink; then
16366 # Fast installation is not supported
16367 enable_fast_install=no
16368 elif test "$shlibpath_overrides_runpath" = yes ||
16369 test "$enable_shared" = no; then
16370 # Fast installation is not necessary
16371 enable_fast_install=needless
16375 # The else clause should only fire when bootstrapping the
16376 # libtool distribution, otherwise you forgot to ship ltmain.sh
16377 # with your package, and you will get complaints that there are
16378 # no rules to generate ltmain.sh.
16379 if test -f "$ltmain"; then
16380 # See if we are running on zsh, and set the options which allow our commands through
16381 # without removal of \ escapes.
16382 if test -n "${ZSH_VERSION+set}" ; then
16383 setopt NO_GLOB_SUBST
16385 # Now quote all the things that may contain metacharacters while being
16386 # careful not to overquote the AC_SUBSTed values. We take copies of the
16387 # variables and quote the copies for generation of the libtool script.
16388 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16390 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16391 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16392 deplibs_check_method reload_flag reload_cmds need_locks \
16393 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16394 lt_cv_sys_global_symbol_to_c_name_address \
16395 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16396 old_postinstall_cmds old_postuninstall_cmds \
16400 lt_prog_compiler_wl_F77 \
16401 lt_prog_compiler_pic_F77 \
16402 lt_prog_compiler_static_F77 \
16403 lt_prog_compiler_no_builtin_flag_F77 \
16404 export_dynamic_flag_spec_F77 \
16405 thread_safe_flag_spec_F77 \
16406 whole_archive_flag_spec_F77 \
16407 enable_shared_with_static_runtimes_F77 \
16408 old_archive_cmds_F77 \
16409 old_archive_from_new_cmds_F77 \
16410 predep_objects_F77 \
16411 postdep_objects_F77 \
16414 compiler_lib_search_path_F77 \
16415 compiler_lib_search_dirs_F77 \
16417 archive_expsym_cmds_F77 \
16418 postinstall_cmds_F77 \
16419 postuninstall_cmds_F77 \
16420 old_archive_from_expsyms_cmds_F77 \
16421 allow_undefined_flag_F77 \
16422 no_undefined_flag_F77 \
16423 export_symbols_cmds_F77 \
16424 hardcode_libdir_flag_spec_F77 \
16425 hardcode_libdir_flag_spec_ld_F77 \
16426 hardcode_libdir_separator_F77 \
16427 hardcode_automatic_F77 \
16429 module_expsym_cmds_F77 \
16430 lt_cv_prog_compiler_c_o_F77 \
16431 fix_srcfile_path_F77 \
16432 exclude_expsyms_F77 \
16433 include_expsyms_F77; do
16436 old_archive_cmds_F77 | \
16437 old_archive_from_new_cmds_F77 | \
16438 archive_cmds_F77 | \
16439 archive_expsym_cmds_F77 | \
16440 module_cmds_F77 | \
16441 module_expsym_cmds_F77 | \
16442 old_archive_from_expsyms_cmds_F77 | \
16443 export_symbols_cmds_F77 | \
16444 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16445 postinstall_cmds | postuninstall_cmds | \
16446 old_postinstall_cmds | old_postuninstall_cmds | \
16447 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16448 # Double-quote double-evaled strings.
16449 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16452 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16458 *'\$0 --fallback-echo"')
16459 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16465 cat <<__EOF__ >> "$cfgfile"
16466 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16468 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16470 # Shell to use when invoking shell scripts.
16473 # Whether or not to build shared libraries.
16474 build_libtool_libs=$enable_shared
16476 # Whether or not to build static libraries.
16477 build_old_libs=$enable_static
16479 # Whether or not to add -lc for building shared libraries.
16480 build_libtool_need_lc=$archive_cmds_need_lc_F77
16482 # Whether or not to disallow shared libs when runtime libs are static
16483 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16485 # Whether or not to optimize for fast installation.
16486 fast_install=$enable_fast_install
16489 host_alias=$host_alias
16493 # The build system.
16494 build_alias=$build_alias
16498 # An echo program that does not interpret backslashes.
16503 AR_FLAGS=$lt_AR_FLAGS
16508 # LTCC compiler flags.
16509 LTCFLAGS=$lt_LTCFLAGS
16511 # A language-specific compiler.
16512 CC=$lt_compiler_F77
16514 # Is the compiler the GNU C compiler?
16520 # The linker used to build libraries.
16523 # Whether we need hard or soft links.
16526 # A BSD-compatible nm program.
16529 # A symbol stripping program
16532 # Used to examine libraries when file_magic_cmd begins "file"
16533 MAGIC_CMD=$MAGIC_CMD
16535 # Used on cygwin: DLL creation program.
16538 # Used on cygwin: object dumper.
16541 # Used on cygwin: assembler.
16544 # The name of the directory that contains temporary libtool files.
16547 # How to create reloadable object files.
16548 reload_flag=$lt_reload_flag
16549 reload_cmds=$lt_reload_cmds
16551 # How to pass a linker flag through the compiler.
16552 wl=$lt_lt_prog_compiler_wl_F77
16554 # Object file suffix (normally "o").
16555 objext="$ac_objext"
16557 # Old archive suffix (normally "a").
16560 # Shared library suffix (normally ".so").
16561 shrext_cmds='$shrext_cmds'
16563 # Executable file suffix (normally "").
16566 # Additional compiler flags for building library objects.
16567 pic_flag=$lt_lt_prog_compiler_pic_F77
16570 # What is the maximum length of a command?
16571 max_cmd_len=$lt_cv_sys_max_cmd_len
16573 # Does compiler simultaneously support -c and -o options?
16574 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16576 # Must we lock files when doing compilation?
16577 need_locks=$lt_need_locks
16579 # Do we need the lib prefix for modules?
16580 need_lib_prefix=$need_lib_prefix
16582 # Do we need a version for libraries?
16583 need_version=$need_version
16585 # Whether dlopen is supported.
16586 dlopen_support=$enable_dlopen
16588 # Whether dlopen of programs is supported.
16589 dlopen_self=$enable_dlopen_self
16591 # Whether dlopen of statically linked programs is supported.
16592 dlopen_self_static=$enable_dlopen_self_static
16594 # Compiler flag to prevent dynamic linking.
16595 link_static_flag=$lt_lt_prog_compiler_static_F77
16597 # Compiler flag to turn off builtin functions.
16598 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16600 # Compiler flag to allow reflexive dlopens.
16601 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16603 # Compiler flag to generate shared objects directly from archives.
16604 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16606 # Compiler flag to generate thread-safe objects.
16607 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16609 # Library versioning type.
16610 version_type=$version_type
16612 # Format of library name prefix.
16613 libname_spec=$lt_libname_spec
16615 # List of archive names. First name is the real one, the rest are links.
16616 # The last name is the one that the linker finds with -lNAME.
16617 library_names_spec=$lt_library_names_spec
16619 # The coded name of the library, if different from the real name.
16620 soname_spec=$lt_soname_spec
16622 # Commands used to build and install an old-style archive.
16624 old_archive_cmds=$lt_old_archive_cmds_F77
16625 old_postinstall_cmds=$lt_old_postinstall_cmds
16626 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16628 # Create an old-style archive from a shared archive.
16629 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16631 # Create a temporary old-style archive to link instead of a shared archive.
16632 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16634 # Commands used to build and install a shared archive.
16635 archive_cmds=$lt_archive_cmds_F77
16636 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16637 postinstall_cmds=$lt_postinstall_cmds
16638 postuninstall_cmds=$lt_postuninstall_cmds
16640 # Commands used to build a loadable module (assumed same as above if empty)
16641 module_cmds=$lt_module_cmds_F77
16642 module_expsym_cmds=$lt_module_expsym_cmds_F77
16644 # Commands to strip libraries.
16645 old_striplib=$lt_old_striplib
16646 striplib=$lt_striplib
16648 # Dependencies to place before the objects being linked to create a
16650 predep_objects=$lt_predep_objects_F77
16652 # Dependencies to place after the objects being linked to create a
16654 postdep_objects=$lt_postdep_objects_F77
16656 # Dependencies to place before the objects being linked to create a
16658 predeps=$lt_predeps_F77
16660 # Dependencies to place after the objects being linked to create a
16662 postdeps=$lt_postdeps_F77
16664 # The directories searched by this compiler when creating a shared
16666 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16668 # The library search path used internally by the compiler when linking
16669 # a shared library.
16670 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16672 # Method to check whether dependent libraries are shared objects.
16673 deplibs_check_method=$lt_deplibs_check_method
16675 # Command to use when deplibs_check_method == file_magic.
16676 file_magic_cmd=$lt_file_magic_cmd
16678 # Flag that allows shared libraries with undefined symbols to be built.
16679 allow_undefined_flag=$lt_allow_undefined_flag_F77
16681 # Flag that forces no undefined symbols.
16682 no_undefined_flag=$lt_no_undefined_flag_F77
16684 # Commands used to finish a libtool library installation in a directory.
16685 finish_cmds=$lt_finish_cmds
16687 # Same as above, but a single script fragment to be evaled but not shown.
16688 finish_eval=$lt_finish_eval
16690 # Take the output of nm and produce a listing of raw symbols and C names.
16691 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16693 # Transform the output of nm in a proper C declaration
16694 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16696 # Transform the output of nm in a C name address pair
16697 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16699 # This is the shared library runtime path variable.
16700 runpath_var=$runpath_var
16702 # This is the shared library path variable.
16703 shlibpath_var=$shlibpath_var
16705 # Is shlibpath searched before the hard-coded library search path?
16706 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16708 # How to hardcode a shared library path into an executable.
16709 hardcode_action=$hardcode_action_F77
16711 # Whether we should hardcode library paths into libraries.
16712 hardcode_into_libs=$hardcode_into_libs
16714 # Flag to hardcode \$libdir into a binary during linking.
16715 # This must work even if \$libdir does not exist.
16716 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16718 # If ld is used when linking, flag to hardcode \$libdir into
16719 # a binary during linking. This must work even if \$libdir does
16721 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16723 # Whether we need a single -rpath flag with a separated argument.
16724 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16726 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16727 # resulting binary.
16728 hardcode_direct=$hardcode_direct_F77
16730 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16731 # resulting binary.
16732 hardcode_minus_L=$hardcode_minus_L_F77
16734 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16735 # the resulting binary.
16736 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16738 # Set to yes if building a shared library automatically hardcodes DIR into the library
16739 # and all subsequent libraries and executables linked against it.
16740 hardcode_automatic=$hardcode_automatic_F77
16742 # Variables whose values should be saved in libtool wrapper scripts and
16743 # restored at relink time.
16744 variables_saved_for_relink="$variables_saved_for_relink"
16746 # Whether libtool must link a program against all its dependency libraries.
16747 link_all_deplibs=$link_all_deplibs_F77
16749 # Compile-time system search path for libraries
16750 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16752 # Run-time system search path for libraries
16753 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16755 # Fix the shell variable \$srcfile for the compiler.
16756 fix_srcfile_path=$lt_fix_srcfile_path
16758 # Set to yes if exported symbols are required.
16759 always_export_symbols=$always_export_symbols_F77
16761 # The commands to list exported symbols.
16762 export_symbols_cmds=$lt_export_symbols_cmds_F77
16764 # The commands to extract the exported symbol list from a shared archive.
16765 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16767 # Symbols that should not be listed in the preloaded symbols.
16768 exclude_expsyms=$lt_exclude_expsyms_F77
16770 # Symbols that must always be exported.
16771 include_expsyms=$lt_include_expsyms_F77
16773 # ### END LIBTOOL TAG CONFIG: $tagname
16779 # If there is no Makefile yet, we rely on a make rule to execute
16780 # `config.status --recheck' to rerun these tests and create the
16781 # libtool script then.
16782 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16783 if test -f "$ltmain_in"; then
16784 test -f Makefile && make "$ltmain"
16790 ac_cpp='$CPP $CPPFLAGS'
16791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16803 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16806 # Source file extension for Java test sources.
16809 # Object file extension for compiled Java test sources.
16813 # Code to be used in simple compile tests
16814 lt_simple_compile_test_code="class foo {}"
16816 # Code to be used in simple link tests
16817 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16819 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16821 # If no C compiler was specified, use CC.
16824 # If no C compiler flags were specified, use CFLAGS.
16825 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16827 # Allow CC to be a program name with arguments.
16831 # save warnings/boilerplate of simple test code
16832 ac_outfile=conftest.$ac_objext
16833 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16834 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16835 _lt_compiler_boilerplate=`cat conftest.err`
16838 ac_outfile=conftest.$ac_objext
16839 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16840 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16841 _lt_linker_boilerplate=`cat conftest.err`
16845 # Allow CC to be a program name with arguments.
16850 for cc_temp in $compiler""; do
16852 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16853 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16858 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16861 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16862 archive_cmds_need_lc_GCJ=no
16864 old_archive_cmds_GCJ=$old_archive_cmds
16867 lt_prog_compiler_no_builtin_flag_GCJ=
16869 if test "$GCC" = yes; then
16870 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16873 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16874 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16875 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16876 echo $ECHO_N "(cached) $ECHO_C" >&6
16878 lt_cv_prog_compiler_rtti_exceptions=no
16879 ac_outfile=conftest.$ac_objext
16880 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16881 lt_compiler_flag="-fno-rtti -fno-exceptions"
16882 # Insert the option either (1) after the last *FLAGS variable, or
16883 # (2) before a word containing "conftest.", or (3) at the end.
16884 # Note that $ac_compile itself does not contain backslashes and begins
16885 # with a dollar sign (not a hyphen), so the echo should work correctly.
16886 # The option is referenced via a variable to avoid confusing sed.
16887 lt_compile=`echo "$ac_compile" | $SED \
16888 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16889 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16890 -e 's:$: $lt_compiler_flag:'`
16891 (eval echo "\"\$as_me:16891: $lt_compile\"" >&5)
16892 (eval "$lt_compile" 2>conftest.err)
16894 cat conftest.err >&5
16895 echo "$as_me:16895: \$? = $ac_status" >&5
16896 if (exit $ac_status) && test -s "$ac_outfile"; then
16897 # The compiler can only warn and ignore the option if not recognized
16898 # So say no if there are warnings other than the usual output.
16899 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16900 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16901 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16902 lt_cv_prog_compiler_rtti_exceptions=yes
16908 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16909 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16911 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16912 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16919 lt_prog_compiler_wl_GCJ=
16920 lt_prog_compiler_pic_GCJ=
16921 lt_prog_compiler_static_GCJ=
16923 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16924 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16926 if test "$GCC" = yes; then
16927 lt_prog_compiler_wl_GCJ='-Wl,'
16928 lt_prog_compiler_static_GCJ='-static'
16932 # All AIX code is PIC.
16933 if test "$host_cpu" = ia64; then
16934 # AIX 5 now supports IA64 processor
16935 lt_prog_compiler_static_GCJ='-Bstatic'
16940 # FIXME: we need at least 68020 code to build shared libraries, but
16941 # adding the `-m68020' flag to GCC prevents building anything better,
16943 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16946 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16947 # PIC is the default for these OSes.
16950 mingw* | cygwin* | pw32* | os2*)
16951 # This hack is so that the source file can tell whether it is being
16952 # built for inclusion in a dll (and should export symbols for example).
16953 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16954 # (--disable-auto-import) libraries
16958 darwin* | rhapsody*)
16959 # PIC is the default on this platform
16960 # Common symbols not allowed in MH_DYLIB files
16961 lt_prog_compiler_pic_GCJ='-fno-common'
16965 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16966 # Instead, we relocate shared libraries at runtime.
16970 # Just because we use GCC doesn't mean we suddenly get shared libraries
16971 # on systems that don't support them.
16972 lt_prog_compiler_can_build_shared_GCJ=no
16977 if test -d /usr/nec; then
16978 lt_prog_compiler_pic_GCJ=-Kconform_pic
16983 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16984 # not for PA HP-UX.
16990 lt_prog_compiler_pic_GCJ='-fPIC'
16996 lt_prog_compiler_pic_GCJ='-fPIC'
17000 # PORTME Check for flag to pass linker flags through the system compiler.
17003 lt_prog_compiler_wl_GCJ='-Wl,'
17004 if test "$host_cpu" = ia64; then
17005 # AIX 5 now supports IA64 processor
17006 lt_prog_compiler_static_GCJ='-Bstatic'
17008 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17012 # PIC is the default on this platform
17013 # Common symbols not allowed in MH_DYLIB files
17014 case $cc_basename in
17016 lt_prog_compiler_pic_GCJ='-qnocommon'
17017 lt_prog_compiler_wl_GCJ='-Wl,'
17022 mingw* | cygwin* | pw32* | os2*)
17023 # This hack is so that the source file can tell whether it is being
17024 # built for inclusion in a dll (and should export symbols for example).
17028 hpux9* | hpux10* | hpux11*)
17029 lt_prog_compiler_wl_GCJ='-Wl,'
17030 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17031 # not for PA HP-UX.
17037 lt_prog_compiler_pic_GCJ='+Z'
17040 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17041 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17044 irix5* | irix6* | nonstopux*)
17045 lt_prog_compiler_wl_GCJ='-Wl,'
17046 # PIC (with -KPIC) is the default.
17047 lt_prog_compiler_static_GCJ='-non_shared'
17051 lt_prog_compiler_pic_GCJ='-KPIC'
17052 lt_prog_compiler_static_GCJ='-Bstatic'
17055 linux* | k*bsd*-gnu)
17056 case $cc_basename in
17058 lt_prog_compiler_wl_GCJ='-Wl,'
17059 lt_prog_compiler_pic_GCJ='-KPIC'
17060 lt_prog_compiler_static_GCJ='-static'
17062 pgcc* | pgf77* | pgf90* | pgf95*)
17063 # Portland Group compilers (*not* the Pentium gcc compiler,
17064 # which looks to be a dead project)
17065 lt_prog_compiler_wl_GCJ='-Wl,'
17066 lt_prog_compiler_pic_GCJ='-fpic'
17067 lt_prog_compiler_static_GCJ='-Bstatic'
17070 lt_prog_compiler_wl_GCJ='-Wl,'
17071 # All Alpha code is PIC.
17072 lt_prog_compiler_static_GCJ='-non_shared'
17075 case `$CC -V 2>&1 | sed 5q` in
17078 lt_prog_compiler_pic_GCJ='-KPIC'
17079 lt_prog_compiler_static_GCJ='-Bstatic'
17080 lt_prog_compiler_wl_GCJ='-Wl,'
17083 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17084 lt_prog_compiler_pic_GCJ='-KPIC'
17085 lt_prog_compiler_static_GCJ='-Bstatic'
17086 lt_prog_compiler_wl_GCJ=''
17093 osf3* | osf4* | osf5*)
17094 lt_prog_compiler_wl_GCJ='-Wl,'
17095 # All OSF/1 code is PIC.
17096 lt_prog_compiler_static_GCJ='-non_shared'
17100 lt_prog_compiler_static_GCJ='-non_shared'
17104 lt_prog_compiler_pic_GCJ='-KPIC'
17105 lt_prog_compiler_static_GCJ='-Bstatic'
17106 case $cc_basename in
17107 f77* | f90* | f95*)
17108 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17110 lt_prog_compiler_wl_GCJ='-Wl,';;
17115 lt_prog_compiler_wl_GCJ='-Qoption ld '
17116 lt_prog_compiler_pic_GCJ='-PIC'
17117 lt_prog_compiler_static_GCJ='-Bstatic'
17120 sysv4 | sysv4.2uw2* | sysv4.3*)
17121 lt_prog_compiler_wl_GCJ='-Wl,'
17122 lt_prog_compiler_pic_GCJ='-KPIC'
17123 lt_prog_compiler_static_GCJ='-Bstatic'
17127 if test -d /usr/nec ;then
17128 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17129 lt_prog_compiler_static_GCJ='-Bstatic'
17133 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17134 lt_prog_compiler_wl_GCJ='-Wl,'
17135 lt_prog_compiler_pic_GCJ='-KPIC'
17136 lt_prog_compiler_static_GCJ='-Bstatic'
17140 lt_prog_compiler_wl_GCJ='-Wl,'
17141 lt_prog_compiler_can_build_shared_GCJ=no
17145 lt_prog_compiler_pic_GCJ='-pic'
17146 lt_prog_compiler_static_GCJ='-Bstatic'
17150 lt_prog_compiler_can_build_shared_GCJ=no
17155 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17156 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17159 # Check to make sure the PIC flag actually works.
17161 if test -n "$lt_prog_compiler_pic_GCJ"; then
17163 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17164 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17165 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17166 echo $ECHO_N "(cached) $ECHO_C" >&6
17168 lt_cv_prog_compiler_pic_works_GCJ=no
17169 ac_outfile=conftest.$ac_objext
17170 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17171 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17172 # Insert the option either (1) after the last *FLAGS variable, or
17173 # (2) before a word containing "conftest.", or (3) at the end.
17174 # Note that $ac_compile itself does not contain backslashes and begins
17175 # with a dollar sign (not a hyphen), so the echo should work correctly.
17176 # The option is referenced via a variable to avoid confusing sed.
17177 lt_compile=`echo "$ac_compile" | $SED \
17178 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17179 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17180 -e 's:$: $lt_compiler_flag:'`
17181 (eval echo "\"\$as_me:17181: $lt_compile\"" >&5)
17182 (eval "$lt_compile" 2>conftest.err)
17184 cat conftest.err >&5
17185 echo "$as_me:17185: \$? = $ac_status" >&5
17186 if (exit $ac_status) && test -s "$ac_outfile"; then
17187 # The compiler can only warn and ignore the option if not recognized
17188 # So say no if there are warnings other than the usual output.
17189 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17190 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17191 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17192 lt_cv_prog_compiler_pic_works_GCJ=yes
17198 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17199 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17201 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17202 case $lt_prog_compiler_pic_GCJ in
17204 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17207 lt_prog_compiler_pic_GCJ=
17208 lt_prog_compiler_can_build_shared_GCJ=no
17213 # For platforms which do not support PIC, -DPIC is meaningless:
17215 lt_prog_compiler_pic_GCJ=
17218 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17223 # Check to make sure the static flag actually works.
17225 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17226 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17227 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17228 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17229 echo $ECHO_N "(cached) $ECHO_C" >&6
17231 lt_cv_prog_compiler_static_works_GCJ=no
17232 save_LDFLAGS="$LDFLAGS"
17233 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17234 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17235 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17236 # The linker can only warn and ignore the option if not recognized
17237 # So say no if there are warnings
17238 if test -s conftest.err; then
17239 # Append any errors to the config.log.
17240 cat conftest.err 1>&5
17241 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17242 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17243 if diff conftest.exp conftest.er2 >/dev/null; then
17244 lt_cv_prog_compiler_static_works_GCJ=yes
17247 lt_cv_prog_compiler_static_works_GCJ=yes
17251 LDFLAGS="$save_LDFLAGS"
17254 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17255 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17257 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17260 lt_prog_compiler_static_GCJ=
17264 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17265 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17266 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17267 echo $ECHO_N "(cached) $ECHO_C" >&6
17269 lt_cv_prog_compiler_c_o_GCJ=no
17270 $rm -r conftest 2>/dev/null
17274 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17276 lt_compiler_flag="-o out/conftest2.$ac_objext"
17277 # Insert the option either (1) after the last *FLAGS variable, or
17278 # (2) before a word containing "conftest.", or (3) at the end.
17279 # Note that $ac_compile itself does not contain backslashes and begins
17280 # with a dollar sign (not a hyphen), so the echo should work correctly.
17281 lt_compile=`echo "$ac_compile" | $SED \
17282 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17283 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17284 -e 's:$: $lt_compiler_flag:'`
17285 (eval echo "\"\$as_me:17285: $lt_compile\"" >&5)
17286 (eval "$lt_compile" 2>out/conftest.err)
17288 cat out/conftest.err >&5
17289 echo "$as_me:17289: \$? = $ac_status" >&5
17290 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17292 # The compiler can only warn and ignore the option if not recognized
17293 # So say no if there are warnings
17294 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17295 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17296 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17297 lt_cv_prog_compiler_c_o_GCJ=yes
17302 # SGI C++ compiler will create directory out/ii_files/ for
17303 # template instantiation
17304 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17305 $rm out/* && rmdir out
17311 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17312 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17315 hard_links="nottested"
17316 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17317 # do not overwrite the value of need_locks provided by the user
17318 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17319 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17322 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17324 ln conftest.a conftest.b 2>&5 || hard_links=no
17325 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17326 { echo "$as_me:$LINENO: result: $hard_links" >&5
17327 echo "${ECHO_T}$hard_links" >&6; }
17328 if test "$hard_links" = no; then
17329 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17330 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17337 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17338 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17341 allow_undefined_flag_GCJ=
17342 enable_shared_with_static_runtimes_GCJ=no
17344 archive_expsym_cmds_GCJ=
17345 old_archive_From_new_cmds_GCJ=
17346 old_archive_from_expsyms_cmds_GCJ=
17347 export_dynamic_flag_spec_GCJ=
17348 whole_archive_flag_spec_GCJ=
17349 thread_safe_flag_spec_GCJ=
17350 hardcode_libdir_flag_spec_GCJ=
17351 hardcode_libdir_flag_spec_ld_GCJ=
17352 hardcode_libdir_separator_GCJ=
17353 hardcode_direct_GCJ=no
17354 hardcode_minus_L_GCJ=no
17355 hardcode_shlibpath_var_GCJ=unsupported
17356 link_all_deplibs_GCJ=unknown
17357 hardcode_automatic_GCJ=no
17359 module_expsym_cmds_GCJ=
17360 always_export_symbols_GCJ=no
17361 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17362 # include_expsyms should be a list of space-separated symbols to be *always*
17363 # included in the symbol list
17364 include_expsyms_GCJ=
17365 # exclude_expsyms can be an extended regexp of symbols to exclude
17366 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17367 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17368 # as well as any symbol that contains `d'.
17369 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17370 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17371 # platforms (ab)use it in PIC code, but their linkers get confused if
17372 # the symbol is explicitly referenced. Since portable code cannot
17373 # rely on this symbol name, it's probably fine to never include it in
17374 # preloaded symbol tables.
17375 # Exclude shared library initialization/finalization symbols.
17376 extract_expsyms_cmds=
17377 # Just being paranoid about ensuring that cc_basename is set.
17378 for cc_temp in $compiler""; do
17380 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17381 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17386 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17389 cygwin* | mingw* | pw32*)
17390 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17391 # When not using gcc, we currently assume that we are using
17392 # Microsoft Visual C++.
17393 if test "$GCC" != yes; then
17398 # we just hope/assume this is gcc and not c89 (= MSVC++)
17407 if test "$with_gnu_ld" = yes; then
17408 # If archive_cmds runs LD, not CC, wlarc should be empty
17411 # Set some defaults for GNU ld with shared library support. These
17412 # are reset later if shared libraries are not supported. Putting them
17413 # here allows them to be overridden if necessary.
17414 runpath_var=LD_RUN_PATH
17415 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17416 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17417 # ancient GNU ld didn't support --whole-archive et. al.
17418 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17419 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17421 whole_archive_flag_spec_GCJ=
17423 supports_anon_versioning=no
17424 case `$LD -v 2>/dev/null` in
17425 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17426 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17427 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17428 *\ 2.11.*) ;; # other 2.11 versions
17429 *) supports_anon_versioning=yes ;;
17432 # See if GNU ld supports shared libraries.
17435 # On AIX/PPC, the GNU linker is very broken
17436 if test "$host_cpu" != ia64; then
17440 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17441 *** to be unable to reliably create shared libraries on AIX.
17442 *** Therefore, libtool is disabling shared libraries support. If you
17443 *** really care for shared libraries, you may want to modify your PATH
17444 *** so that a non-GNU linker is found, and then restart.
17451 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)'
17452 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17453 hardcode_minus_L_GCJ=yes
17455 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17456 # that the semantics of dynamic libraries on AmigaOS, at least up
17457 # to version 4, is to share data among multiple programs linked
17458 # with the same dynamic library. Since this doesn't match the
17459 # behavior of shared libraries on other platforms, we can't use
17465 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17466 allow_undefined_flag_GCJ=unsupported
17467 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17468 # support --undefined. This deserves some investigation. FIXME
17469 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17475 cygwin* | mingw* | pw32*)
17476 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17477 # as there is no search path for DLLs.
17478 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17479 allow_undefined_flag_GCJ=unsupported
17480 always_export_symbols_GCJ=no
17481 enable_shared_with_static_runtimes_GCJ=yes
17482 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17484 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17485 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17486 # If the export-symbols file already is a .def file (1st line
17487 # is EXPORTS), use it as is; otherwise, prepend...
17488 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17489 cp $export_symbols $output_objdir/$soname.def;
17491 echo EXPORTS > $output_objdir/$soname.def;
17492 cat $export_symbols >> $output_objdir/$soname.def;
17494 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17501 hardcode_direct_GCJ=no
17502 hardcode_shlibpath_var_GCJ=no
17503 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17504 export_dynamic_flag_spec_GCJ='${wl}-E'
17505 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17506 # Instead, shared libraries are loaded at an image base (0x10000000 by
17507 # default) and relocated if they conflict, which is a slow very memory
17508 # consuming and fragmenting process. To avoid this, we pick a random,
17509 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17510 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17511 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'
17512 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'
17515 gnu* | linux* | k*bsd*-gnu)
17516 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17518 case $cc_basename,$host_cpu in
17519 pgcc*) # Portland Group C compiler
17520 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'
17521 tmp_addflag=' $pic_flag'
17523 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17524 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'
17525 tmp_addflag=' $pic_flag -Mnomain' ;;
17526 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17527 tmp_addflag=' -i_dynamic' ;;
17528 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17529 tmp_addflag=' -i_dynamic -nofor_main' ;;
17530 ifc* | ifort*) # Intel Fortran compiler
17531 tmp_addflag=' -nofor_main' ;;
17533 case `$CC -V 2>&1 | sed 5q` in
17534 *Sun\ C*) # Sun C 5.9
17535 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'
17536 tmp_sharedflag='-G' ;;
17537 *Sun\ F*) # Sun Fortran 8.3
17538 tmp_sharedflag='-G' ;;
17540 tmp_sharedflag='-shared' ;;
17542 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17544 if test $supports_anon_versioning = yes; then
17545 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17546 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17547 $echo "local: *; };" >> $output_objdir/$libname.ver~
17548 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17550 link_all_deplibs_GCJ=no
17556 netbsd* | netbsdelf*-gnu)
17557 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17558 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17561 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17562 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17567 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17571 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17572 *** create shared libraries on Solaris systems. Therefore, libtool
17573 *** is disabling shared libraries support. We urge you to upgrade GNU
17574 *** binutils to release 2.9.1 or newer. Another option is to modify
17575 *** your PATH or compiler configuration so that the native linker is
17576 *** used, and then restart.
17579 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17580 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17581 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17587 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17588 case `$LD -v 2>&1` in
17589 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17593 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17594 *** reliably create shared libraries on SCO systems. Therefore, libtool
17595 *** is disabling shared libraries support. We urge you to upgrade GNU
17596 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17597 *** your PATH or compiler configuration so that the native linker is
17598 *** used, and then restart.
17603 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17604 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17605 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17606 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17615 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17617 hardcode_direct_GCJ=yes
17618 hardcode_shlibpath_var_GCJ=no
17622 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17623 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17624 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17631 if test "$ld_shlibs_GCJ" = no; then
17633 hardcode_libdir_flag_spec_GCJ=
17634 export_dynamic_flag_spec_GCJ=
17635 whole_archive_flag_spec_GCJ=
17638 # PORTME fill in a description of your system's linker (not GNU ld)
17641 allow_undefined_flag_GCJ=unsupported
17642 always_export_symbols_GCJ=yes
17643 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'
17644 # Note: this linker hardcodes the directories in LIBPATH if there
17645 # are no directories specified by -L.
17646 hardcode_minus_L_GCJ=yes
17647 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17648 # Neither direct hardcoding nor static linking is supported with a
17650 hardcode_direct_GCJ=unsupported
17655 if test "$host_cpu" = ia64; then
17656 # On IA64, the linker does run time linking by default, so we don't
17657 # have to do anything special.
17658 aix_use_runtimelinking=no
17659 exp_sym_flag='-Bexport'
17662 # If we're using GNU nm, then we don't want the "-C" option.
17663 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17664 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17665 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'
17667 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'
17669 aix_use_runtimelinking=no
17671 # Test if we are trying to use run time linking or normal
17672 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17673 # need to do runtime linking.
17674 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17675 for ld_flag in $LDFLAGS; do
17676 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17677 aix_use_runtimelinking=yes
17684 exp_sym_flag='-bexport'
17685 no_entry_flag='-bnoentry'
17688 # When large executables or shared objects are built, AIX ld can
17689 # have problems creating the table of contents. If linking a library
17690 # or program results in "error TOC overflow" add -mminimal-toc to
17691 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17692 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17694 archive_cmds_GCJ=''
17695 hardcode_direct_GCJ=yes
17696 hardcode_libdir_separator_GCJ=':'
17697 link_all_deplibs_GCJ=yes
17699 if test "$GCC" = yes; then
17700 case $host_os in aix4.[012]|aix4.[012].*)
17701 # We only want to do this on AIX 4.2 and lower, the check
17702 # below for broken collect2 doesn't work under 4.3+
17703 collect2name=`${CC} -print-prog-name=collect2`
17704 if test -f "$collect2name" && \
17705 strings "$collect2name" | grep resolve_lib_name >/dev/null
17707 # We have reworked collect2
17710 # We have old collect2
17711 hardcode_direct_GCJ=unsupported
17712 # It fails to find uninstalled libraries when the uninstalled
17713 # path is not listed in the libpath. Setting hardcode_minus_L
17714 # to unsupported forces relinking
17715 hardcode_minus_L_GCJ=yes
17716 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17717 hardcode_libdir_separator_GCJ=
17721 shared_flag='-shared'
17722 if test "$aix_use_runtimelinking" = yes; then
17723 shared_flag="$shared_flag "'${wl}-G'
17727 if test "$host_cpu" = ia64; then
17728 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17729 # chokes on -Wl,-G. The following line is correct:
17732 if test "$aix_use_runtimelinking" = yes; then
17733 shared_flag='${wl}-G'
17735 shared_flag='${wl}-bM:SRE'
17740 # It seems that -bexpall does not export symbols beginning with
17741 # underscore (_), so it is better to generate a list of symbols to export.
17742 always_export_symbols_GCJ=yes
17743 if test "$aix_use_runtimelinking" = yes; then
17744 # Warning - without using the other runtime loading flags (-brtl),
17745 # -berok will link without error, but may produce a broken library.
17746 allow_undefined_flag_GCJ='-berok'
17747 # Determine the default libpath from the value encoded in an empty executable.
17748 cat >conftest.$ac_ext <<_ACEOF
17751 cat confdefs.h >>conftest.$ac_ext
17752 cat >>conftest.$ac_ext <<_ACEOF
17753 /* end confdefs.h. */
17763 rm -f conftest.$ac_objext conftest$ac_exeext
17764 if { (ac_try="$ac_link"
17765 case "(($ac_try" in
17766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17767 *) ac_try_echo=$ac_try;;
17769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17770 (eval "$ac_link") 2>conftest.er1
17772 grep -v '^ *+' conftest.er1 >conftest.err
17774 cat conftest.err >&5
17775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776 (exit $ac_status); } && {
17777 test -z "$ac_c_werror_flag" ||
17778 test ! -s conftest.err
17779 } && test -s conftest$ac_exeext &&
17780 $as_test_x conftest$ac_exeext; then
17782 lt_aix_libpath_sed='
17783 /Import File Strings/,/^$/ {
17789 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17790 # Check for a 64-bit object if we didn't find anything.
17791 if test -z "$aix_libpath"; then
17792 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17795 echo "$as_me: failed program was:" >&5
17796 sed 's/^/| /' conftest.$ac_ext >&5
17801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17802 conftest$ac_exeext conftest.$ac_ext
17803 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17805 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17806 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"
17808 if test "$host_cpu" = ia64; then
17809 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17810 allow_undefined_flag_GCJ="-z nodefs"
17811 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"
17813 # Determine the default libpath from the value encoded in an empty executable.
17814 cat >conftest.$ac_ext <<_ACEOF
17817 cat confdefs.h >>conftest.$ac_ext
17818 cat >>conftest.$ac_ext <<_ACEOF
17819 /* end confdefs.h. */
17829 rm -f conftest.$ac_objext conftest$ac_exeext
17830 if { (ac_try="$ac_link"
17831 case "(($ac_try" in
17832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17833 *) ac_try_echo=$ac_try;;
17835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17836 (eval "$ac_link") 2>conftest.er1
17838 grep -v '^ *+' conftest.er1 >conftest.err
17840 cat conftest.err >&5
17841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842 (exit $ac_status); } && {
17843 test -z "$ac_c_werror_flag" ||
17844 test ! -s conftest.err
17845 } && test -s conftest$ac_exeext &&
17846 $as_test_x conftest$ac_exeext; then
17848 lt_aix_libpath_sed='
17849 /Import File Strings/,/^$/ {
17855 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17856 # Check for a 64-bit object if we didn't find anything.
17857 if test -z "$aix_libpath"; then
17858 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17861 echo "$as_me: failed program was:" >&5
17862 sed 's/^/| /' conftest.$ac_ext >&5
17867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17868 conftest$ac_exeext conftest.$ac_ext
17869 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17871 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17872 # Warning - without using the other run time loading flags,
17873 # -berok will link without error, but may produce a broken library.
17874 no_undefined_flag_GCJ=' ${wl}-bernotok'
17875 allow_undefined_flag_GCJ=' ${wl}-berok'
17876 # Exported symbols can be pulled into shared objects from archives
17877 whole_archive_flag_spec_GCJ='$convenience'
17878 archive_cmds_need_lc_GCJ=yes
17879 # This is similar to how AIX traditionally builds its shared libraries.
17880 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'
17886 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)'
17887 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17888 hardcode_minus_L_GCJ=yes
17889 # see comment about different semantics on the GNU ld section
17894 export_dynamic_flag_spec_GCJ=-rdynamic
17897 cygwin* | mingw* | pw32*)
17898 # When not using gcc, we currently assume that we are using
17899 # Microsoft Visual C++.
17900 # hardcode_libdir_flag_spec is actually meaningless, as there is
17901 # no search path for DLLs.
17902 hardcode_libdir_flag_spec_GCJ=' '
17903 allow_undefined_flag_GCJ=unsupported
17904 # Tell ltmain to make .lib files, not .a files.
17906 # Tell ltmain to make .dll files, not .so files.
17908 # FIXME: Setting linknames here is a bad hack.
17909 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17910 # The linker will automatically build a .lib file if we build a DLL.
17911 old_archive_From_new_cmds_GCJ='true'
17912 # FIXME: Should let the user specify the lib program.
17913 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17914 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17915 enable_shared_with_static_runtimes_GCJ=yes
17918 darwin* | rhapsody*)
17920 rhapsody* | darwin1.[012])
17921 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17924 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17925 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17927 case ${MACOSX_DEPLOYMENT_TARGET} in
17929 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17932 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17938 archive_cmds_need_lc_GCJ=no
17939 hardcode_direct_GCJ=no
17940 hardcode_automatic_GCJ=yes
17941 hardcode_shlibpath_var_GCJ=unsupported
17942 whole_archive_flag_spec_GCJ=''
17943 link_all_deplibs_GCJ=yes
17944 if test "$GCC" = yes ; then
17945 output_verbose_link_cmd='echo'
17946 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}"
17947 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17948 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}"
17949 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}"
17951 case $cc_basename in
17953 output_verbose_link_cmd='echo'
17954 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17955 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17956 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17957 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}'
17958 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}'
17968 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17969 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17970 hardcode_shlibpath_var_GCJ=no
17977 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17978 # support. Future versions do this automatically, but an explicit c++rt0.o
17979 # does not break anything, and helps significantly (at the cost of a little
17982 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17983 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17984 hardcode_direct_GCJ=yes
17985 hardcode_shlibpath_var_GCJ=no
17988 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17990 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17991 hardcode_direct_GCJ=yes
17992 hardcode_minus_L_GCJ=yes
17993 hardcode_shlibpath_var_GCJ=no
17996 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17997 freebsd* | dragonfly*)
17998 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17999 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18000 hardcode_direct_GCJ=yes
18001 hardcode_shlibpath_var_GCJ=no
18005 if test "$GCC" = yes; then
18006 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'
18008 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'
18010 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18011 hardcode_libdir_separator_GCJ=:
18012 hardcode_direct_GCJ=yes
18014 # hardcode_minus_L: Not really in the search PATH,
18015 # but as the default location of the library.
18016 hardcode_minus_L_GCJ=yes
18017 export_dynamic_flag_spec_GCJ='${wl}-E'
18021 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18022 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18024 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18026 if test "$with_gnu_ld" = no; then
18027 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18028 hardcode_libdir_separator_GCJ=:
18030 hardcode_direct_GCJ=yes
18031 export_dynamic_flag_spec_GCJ='${wl}-E'
18033 # hardcode_minus_L: Not really in the search PATH,
18034 # but as the default location of the library.
18035 hardcode_minus_L_GCJ=yes
18040 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18043 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18046 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18049 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18055 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18058 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18061 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18065 if test "$with_gnu_ld" = no; then
18066 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18067 hardcode_libdir_separator_GCJ=:
18071 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18072 hardcode_direct_GCJ=no
18073 hardcode_shlibpath_var_GCJ=no
18076 hardcode_direct_GCJ=yes
18077 export_dynamic_flag_spec_GCJ='${wl}-E'
18079 # hardcode_minus_L: Not really in the search PATH,
18080 # but as the default location of the library.
18081 hardcode_minus_L_GCJ=yes
18087 irix5* | irix6* | nonstopux*)
18088 if test "$GCC" = yes; then
18089 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'
18091 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'
18092 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18094 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18095 hardcode_libdir_separator_GCJ=:
18096 link_all_deplibs_GCJ=yes
18099 netbsd* | netbsdelf*-gnu)
18100 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18101 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18103 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18105 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18106 hardcode_direct_GCJ=yes
18107 hardcode_shlibpath_var_GCJ=no
18111 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18112 hardcode_direct_GCJ=yes
18113 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18114 hardcode_libdir_separator_GCJ=:
18115 hardcode_shlibpath_var_GCJ=no
18119 if test -f /usr/libexec/ld.so; then
18120 hardcode_direct_GCJ=yes
18121 hardcode_shlibpath_var_GCJ=no
18122 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18123 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18124 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18125 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18126 export_dynamic_flag_spec_GCJ='${wl}-E'
18129 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18130 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18131 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18134 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18135 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18145 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18146 hardcode_minus_L_GCJ=yes
18147 allow_undefined_flag_GCJ=unsupported
18148 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'
18149 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18153 if test "$GCC" = yes; then
18154 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18155 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'
18157 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18158 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'
18160 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18161 hardcode_libdir_separator_GCJ=:
18164 osf4* | osf5*) # as osf3* with the addition of -msym flag
18165 if test "$GCC" = yes; then
18166 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18167 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'
18168 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18170 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18171 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'
18172 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~
18173 $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'
18175 # Both c and cxx compiler support -rpath directly
18176 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18178 hardcode_libdir_separator_GCJ=:
18182 no_undefined_flag_GCJ=' -z text'
18183 if test "$GCC" = yes; then
18185 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18186 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18187 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18190 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18191 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18192 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18194 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18195 hardcode_shlibpath_var_GCJ=no
18197 solaris2.[0-5] | solaris2.[0-5].*) ;;
18199 # The compiler driver will combine and reorder linker options,
18200 # but understands `-z linker_flag'. GCC discards it without `$wl',
18201 # but is careful enough not to reorder.
18202 # Supported since Solaris 2.6 (maybe 2.5.1?)
18203 if test "$GCC" = yes; then
18204 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18206 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18210 link_all_deplibs_GCJ=yes
18214 if test "x$host_vendor" = xsequent; then
18215 # Use $CC to link under sequent, because it throws in some extra .o
18216 # files that make .init and .fini sections work.
18217 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18219 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18221 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18222 hardcode_direct_GCJ=yes
18223 hardcode_minus_L_GCJ=yes
18224 hardcode_shlibpath_var_GCJ=no
18228 case $host_vendor in
18230 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18231 hardcode_direct_GCJ=yes # is this really true???
18234 ## LD is ld it makes a PLAMLIB
18235 ## CC just makes a GrossModule.
18236 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18237 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18238 hardcode_direct_GCJ=no
18241 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18242 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18245 runpath_var='LD_RUN_PATH'
18246 hardcode_shlibpath_var_GCJ=no
18250 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18251 hardcode_shlibpath_var_GCJ=no
18252 export_dynamic_flag_spec_GCJ='-Bexport'
18256 if test -d /usr/nec; then
18257 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18258 hardcode_shlibpath_var_GCJ=no
18259 runpath_var=LD_RUN_PATH
18260 hardcode_runpath_var=yes
18265 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18266 no_undefined_flag_GCJ='${wl}-z,text'
18267 archive_cmds_need_lc_GCJ=no
18268 hardcode_shlibpath_var_GCJ=no
18269 runpath_var='LD_RUN_PATH'
18271 if test "$GCC" = yes; then
18272 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18273 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18275 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18276 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18280 sysv5* | sco3.2v5* | sco5v6*)
18281 # Note: We can NOT use -z defs as we might desire, because we do not
18282 # link with -lc, and that would cause any symbols used from libc to
18283 # always be unresolved, which means just about no library would
18284 # ever link correctly. If we're not using GNU ld we use -z text
18285 # though, which does catch some bad symbols but isn't as heavy-handed
18287 no_undefined_flag_GCJ='${wl}-z,text'
18288 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18289 archive_cmds_need_lc_GCJ=no
18290 hardcode_shlibpath_var_GCJ=no
18291 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18292 hardcode_libdir_separator_GCJ=':'
18293 link_all_deplibs_GCJ=yes
18294 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18295 runpath_var='LD_RUN_PATH'
18297 if test "$GCC" = yes; then
18298 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18299 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18301 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18302 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18307 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18308 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18309 hardcode_shlibpath_var_GCJ=no
18318 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18319 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18320 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18323 # Do we need to explicitly link libc?
18325 case "x$archive_cmds_need_lc_GCJ" in
18327 # Assume -lc should be added
18328 archive_cmds_need_lc_GCJ=yes
18330 if test "$enable_shared" = yes && test "$GCC" = yes; then
18331 case $archive_cmds_GCJ in
18333 # FIXME: we may have to deal with multi-command sequences.
18336 # Test whether the compiler implicitly links with -lc since on some
18337 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18338 # to ld, don't add -lc before -lgcc.
18339 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18340 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18342 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18345 (eval $ac_compile) 2>&5
18347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348 (exit $ac_status); } 2>conftest.err; then
18351 libobjs=conftest.$ac_objext
18353 wl=$lt_prog_compiler_wl_GCJ
18354 pic_flag=$lt_prog_compiler_pic_GCJ
18360 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18361 allow_undefined_flag_GCJ=
18362 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18363 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18366 (exit $ac_status); }
18368 archive_cmds_need_lc_GCJ=no
18370 archive_cmds_need_lc_GCJ=yes
18372 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18374 cat conftest.err 1>&5
18377 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18378 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18385 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18386 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18387 library_names_spec=
18388 libname_spec='lib$name'
18392 postuninstall_cmds=
18396 shlibpath_overrides_runpath=unknown
18398 dynamic_linker="$host_os ld.so"
18399 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18401 need_lib_prefix=unknown
18402 hardcode_into_libs=no
18404 # when you set need_version to no, make sure it does not cause -set_version
18405 # flags to be left without arguments
18406 need_version=unknown
18411 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18412 shlibpath_var=LIBPATH
18414 # AIX 3 has no versioning support, so we append a major version to the name.
18415 soname_spec='${libname}${release}${shared_ext}$major'
18422 hardcode_into_libs=yes
18423 if test "$host_cpu" = ia64; then
18424 # AIX 5 supports IA64
18425 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18426 shlibpath_var=LD_LIBRARY_PATH
18428 # With GCC up to 2.95.x, collect2 would create an import file
18429 # for dependence libraries. The import file would start with
18430 # the line `#! .'. This would cause the generated library to
18431 # depend on `.', always an invalid library. This was fixed in
18432 # development snapshots of GCC prior to 3.0.
18434 aix4 | aix4.[01] | aix4.[01].*)
18435 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18437 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18440 can_build_shared=no
18444 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18445 # soname into executable. Probably we can add versioning support to
18446 # collect2, so additional links can be useful in future.
18447 if test "$aix_use_runtimelinking" = yes; then
18448 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18449 # instead of lib<name>.a to let people know that these are not
18450 # typical AIX shared libraries.
18451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18453 # We preserve .a as extension for shared libraries through AIX4.2
18454 # and later when we are not doing run time linking.
18455 library_names_spec='${libname}${release}.a $libname.a'
18456 soname_spec='${libname}${release}${shared_ext}$major'
18458 shlibpath_var=LIBPATH
18463 library_names_spec='$libname.ixlibrary $libname.a'
18464 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18465 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'
18469 library_names_spec='${libname}${shared_ext}'
18470 dynamic_linker="$host_os ld.so"
18471 shlibpath_var=LIBRARY_PATH
18477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18478 soname_spec='${libname}${release}${shared_ext}$major'
18479 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18480 shlibpath_var=LD_LIBRARY_PATH
18481 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18482 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18483 # the default ld.so.conf also contains /usr/contrib/lib and
18484 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18485 # libtool to hard-code these into programs
18488 cygwin* | mingw* | pw32*)
18489 version_type=windows
18494 case $GCC,$host_os in
18495 yes,cygwin* | yes,mingw* | yes,pw32*)
18496 library_names_spec='$libname.dll.a'
18497 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18498 postinstall_cmds='base_file=`basename \${file}`~
18499 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18500 dldir=$destdir/`dirname \$dlpath`~
18501 test -d \$dldir || mkdir -p \$dldir~
18502 $install_prog $dir/$dlname \$dldir/$dlname~
18503 chmod a+x \$dldir/$dlname'
18504 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18505 dlpath=$dir/\$dldll~
18507 shlibpath_overrides_runpath=yes
18511 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18512 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18513 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18516 # MinGW DLLs use traditional 'lib' prefix
18517 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18518 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18519 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18520 # It is most probably a Windows format PATH printed by
18521 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18522 # path with ; separators, and with drive letters. We can handle the
18523 # drive letters (cygwin fileutils understands them), so leave them,
18524 # especially as we might pass files found there to a mingw objdump,
18525 # which wouldn't understand a cygwinified path. Ahh.
18526 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18528 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18532 # pw32 DLLs use 'pw' prefix rather than 'lib'
18533 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18539 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18542 dynamic_linker='Win32 ld.exe'
18543 # FIXME: first we should search . and the directory the executable is in
18547 darwin* | rhapsody*)
18548 dynamic_linker="$host_os dyld"
18549 version_type=darwin
18552 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18553 soname_spec='${libname}${release}${major}$shared_ext'
18554 shlibpath_overrides_runpath=yes
18555 shlibpath_var=DYLD_LIBRARY_PATH
18556 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18558 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18566 soname_spec='${libname}${release}${shared_ext}$major'
18567 shlibpath_var=LD_LIBRARY_PATH
18574 freebsd* | dragonfly*)
18575 # DragonFly does not have aout. When/if they implement a new
18576 # versioning mechanism, adjust this.
18577 if test -x /usr/bin/objformat; then
18578 objformat=`/usr/bin/objformat`
18581 freebsd[123]*) objformat=aout ;;
18582 *) objformat=elf ;;
18585 version_type=freebsd-$objformat
18586 case $version_type in
18588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18593 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18597 shlibpath_var=LD_LIBRARY_PATH
18600 shlibpath_overrides_runpath=yes
18602 freebsd3.[01]* | freebsdelf3.[01]*)
18603 shlibpath_overrides_runpath=yes
18604 hardcode_into_libs=yes
18606 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18607 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18608 shlibpath_overrides_runpath=no
18609 hardcode_into_libs=yes
18611 *) # from 4.6 on, and DragonFly
18612 shlibpath_overrides_runpath=yes
18613 hardcode_into_libs=yes
18622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18623 soname_spec='${libname}${release}${shared_ext}$major'
18624 shlibpath_var=LD_LIBRARY_PATH
18625 hardcode_into_libs=yes
18628 hpux9* | hpux10* | hpux11*)
18629 # Give a soname corresponding to the major version so that dld.sl refuses to
18630 # link against other versions.
18637 hardcode_into_libs=yes
18638 dynamic_linker="$host_os dld.so"
18639 shlibpath_var=LD_LIBRARY_PATH
18640 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18642 soname_spec='${libname}${release}${shared_ext}$major'
18643 if test "X$HPUX_IA64_MODE" = X32; then
18644 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18646 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18648 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18652 hardcode_into_libs=yes
18653 dynamic_linker="$host_os dld.sl"
18654 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18655 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18657 soname_spec='${libname}${release}${shared_ext}$major'
18658 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18659 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18663 dynamic_linker="$host_os dld.sl"
18664 shlibpath_var=SHLIB_PATH
18665 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18667 soname_spec='${libname}${release}${shared_ext}$major'
18670 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18671 postinstall_cmds='chmod 555 $lib'
18678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18679 soname_spec='${libname}${release}${shared_ext}$major'
18680 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18681 shlibpath_var=LD_LIBRARY_PATH
18682 shlibpath_overrides_runpath=no
18683 hardcode_into_libs=yes
18686 irix5* | irix6* | nonstopux*)
18688 nonstopux*) version_type=nonstopux ;;
18690 if test "$lt_cv_prog_gnu_ld" = yes; then
18698 soname_spec='${libname}${release}${shared_ext}$major'
18699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18701 irix5* | nonstopux*)
18702 libsuff= shlibsuff=
18705 case $LD in # libtool.m4 will add one of these switches to LD
18706 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18707 libsuff= shlibsuff= libmagic=32-bit;;
18708 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18709 libsuff=32 shlibsuff=N32 libmagic=N32;;
18710 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18711 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18712 *) libsuff= shlibsuff= libmagic=never-match;;
18716 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18717 shlibpath_overrides_runpath=no
18718 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18719 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18720 hardcode_into_libs=yes
18723 # No shared lib support for Linux oldld, aout, or coff.
18724 linux*oldld* | linux*aout* | linux*coff*)
18728 # This must be Linux ELF.
18729 linux* | k*bsd*-gnu)
18733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18734 soname_spec='${libname}${release}${shared_ext}$major'
18735 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18736 shlibpath_var=LD_LIBRARY_PATH
18737 shlibpath_overrides_runpath=no
18738 # This implies no fast_install, which is unacceptable.
18739 # Some rework will be needed to allow for fast_install
18740 # before this can be enabled.
18741 hardcode_into_libs=yes
18743 # Append ld.so.conf contents to the search path
18744 if test -f /etc/ld.so.conf; then
18745 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' ' '`
18746 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18749 # We used to test for /lib/ld.so.1 and disable shared libraries on
18750 # powerpc, because MkLinux only supported shared libraries with the
18751 # GNU dynamic linker. Since this was broken with cross compilers,
18752 # most powerpc-linux boxes support dynamic linking these days and
18753 # people can always --disable-shared, the test was removed, and we
18754 # assume the GNU/Linux dynamic linker is in use.
18755 dynamic_linker='GNU/Linux ld.so'
18762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18763 soname_spec='${libname}${release}${shared_ext}$major'
18764 shlibpath_var=LD_LIBRARY_PATH
18765 shlibpath_overrides_runpath=no
18766 hardcode_into_libs=yes
18767 dynamic_linker='NetBSD ld.elf_so'
18774 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18776 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18777 dynamic_linker='NetBSD (a.out) ld.so'
18779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18780 soname_spec='${libname}${release}${shared_ext}$major'
18781 dynamic_linker='NetBSD ld.elf_so'
18783 shlibpath_var=LD_LIBRARY_PATH
18784 shlibpath_overrides_runpath=yes
18785 hardcode_into_libs=yes
18790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18791 shlibpath_var=LD_LIBRARY_PATH
18792 shlibpath_overrides_runpath=yes
18799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18800 soname_spec='${libname}${release}${shared_ext}$major'
18801 shlibpath_var=LD_LIBRARY_PATH
18802 shlibpath_overrides_runpath=yes
18807 sys_lib_dlsearch_path_spec="/usr/lib"
18809 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18811 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18812 *) need_version=no ;;
18814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18815 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18816 shlibpath_var=LD_LIBRARY_PATH
18817 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18819 openbsd2.[89] | openbsd2.[89].*)
18820 shlibpath_overrides_runpath=no
18823 shlibpath_overrides_runpath=yes
18827 shlibpath_overrides_runpath=yes
18832 libname_spec='$name'
18835 library_names_spec='$libname${shared_ext} $libname.a'
18836 dynamic_linker='OS/2 ld.exe'
18837 shlibpath_var=LIBPATH
18840 osf3* | osf4* | osf5*)
18844 soname_spec='${libname}${release}${shared_ext}$major'
18845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18846 shlibpath_var=LD_LIBRARY_PATH
18847 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18848 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18860 soname_spec='${libname}${release}${shared_ext}$major'
18861 shlibpath_var=LD_LIBRARY_PATH
18862 shlibpath_overrides_runpath=yes
18863 hardcode_into_libs=yes
18864 # ldd complains unless libraries are executable
18865 postinstall_cmds='chmod +x $lib'
18870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18871 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18872 shlibpath_var=LD_LIBRARY_PATH
18873 shlibpath_overrides_runpath=yes
18874 if test "$with_gnu_ld" = yes; then
18882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18883 soname_spec='${libname}${release}${shared_ext}$major'
18884 shlibpath_var=LD_LIBRARY_PATH
18885 case $host_vendor in
18887 shlibpath_overrides_runpath=no
18889 export_dynamic_flag_spec='${wl}-Blargedynsym'
18890 runpath_var=LD_RUN_PATH
18898 shlibpath_overrides_runpath=no
18899 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18905 if test -d /usr/nec ;then
18907 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18908 soname_spec='$libname${shared_ext}.$major'
18909 shlibpath_var=LD_LIBRARY_PATH
18913 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18914 version_type=freebsd-elf
18917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18918 soname_spec='${libname}${release}${shared_ext}$major'
18919 shlibpath_var=LD_LIBRARY_PATH
18920 hardcode_into_libs=yes
18921 if test "$with_gnu_ld" = yes; then
18922 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18923 shlibpath_overrides_runpath=no
18925 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18926 shlibpath_overrides_runpath=yes
18929 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18933 sys_lib_dlsearch_path_spec='/usr/lib'
18938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18939 soname_spec='${libname}${release}${shared_ext}$major'
18940 shlibpath_var=LD_LIBRARY_PATH
18947 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18948 echo "${ECHO_T}$dynamic_linker" >&6; }
18949 test "$dynamic_linker" = no && can_build_shared=no
18951 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18952 echo $ECHO_N "(cached) $ECHO_C" >&6
18954 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18957 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18958 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18959 echo $ECHO_N "(cached) $ECHO_C" >&6
18961 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18964 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18966 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18967 if test "$GCC" = yes; then
18968 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18971 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18972 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18973 hardcode_action_GCJ=
18974 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18975 test -n "$runpath_var_GCJ" || \
18976 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18978 # We can hardcode non-existant directories.
18979 if test "$hardcode_direct_GCJ" != no &&
18980 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18981 # have to relink, otherwise we might link with an installed library
18982 # when we should be linking with a yet-to-be-installed one
18983 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18984 test "$hardcode_minus_L_GCJ" != no; then
18985 # Linking always hardcodes the temporary library directory.
18986 hardcode_action_GCJ=relink
18988 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18989 hardcode_action_GCJ=immediate
18992 # We cannot hardcode anything, or else we can only hardcode existing
18994 hardcode_action_GCJ=unsupported
18996 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18997 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18999 if test "$hardcode_action_GCJ" = relink; then
19000 # Fast installation is not supported
19001 enable_fast_install=no
19002 elif test "$shlibpath_overrides_runpath" = yes ||
19003 test "$enable_shared" = no; then
19004 # Fast installation is not necessary
19005 enable_fast_install=needless
19009 # The else clause should only fire when bootstrapping the
19010 # libtool distribution, otherwise you forgot to ship ltmain.sh
19011 # with your package, and you will get complaints that there are
19012 # no rules to generate ltmain.sh.
19013 if test -f "$ltmain"; then
19014 # See if we are running on zsh, and set the options which allow our commands through
19015 # without removal of \ escapes.
19016 if test -n "${ZSH_VERSION+set}" ; then
19017 setopt NO_GLOB_SUBST
19019 # Now quote all the things that may contain metacharacters while being
19020 # careful not to overquote the AC_SUBSTed values. We take copies of the
19021 # variables and quote the copies for generation of the libtool script.
19022 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19024 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19025 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19026 deplibs_check_method reload_flag reload_cmds need_locks \
19027 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19028 lt_cv_sys_global_symbol_to_c_name_address \
19029 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19030 old_postinstall_cmds old_postuninstall_cmds \
19034 lt_prog_compiler_wl_GCJ \
19035 lt_prog_compiler_pic_GCJ \
19036 lt_prog_compiler_static_GCJ \
19037 lt_prog_compiler_no_builtin_flag_GCJ \
19038 export_dynamic_flag_spec_GCJ \
19039 thread_safe_flag_spec_GCJ \
19040 whole_archive_flag_spec_GCJ \
19041 enable_shared_with_static_runtimes_GCJ \
19042 old_archive_cmds_GCJ \
19043 old_archive_from_new_cmds_GCJ \
19044 predep_objects_GCJ \
19045 postdep_objects_GCJ \
19048 compiler_lib_search_path_GCJ \
19049 compiler_lib_search_dirs_GCJ \
19051 archive_expsym_cmds_GCJ \
19052 postinstall_cmds_GCJ \
19053 postuninstall_cmds_GCJ \
19054 old_archive_from_expsyms_cmds_GCJ \
19055 allow_undefined_flag_GCJ \
19056 no_undefined_flag_GCJ \
19057 export_symbols_cmds_GCJ \
19058 hardcode_libdir_flag_spec_GCJ \
19059 hardcode_libdir_flag_spec_ld_GCJ \
19060 hardcode_libdir_separator_GCJ \
19061 hardcode_automatic_GCJ \
19063 module_expsym_cmds_GCJ \
19064 lt_cv_prog_compiler_c_o_GCJ \
19065 fix_srcfile_path_GCJ \
19066 exclude_expsyms_GCJ \
19067 include_expsyms_GCJ; do
19070 old_archive_cmds_GCJ | \
19071 old_archive_from_new_cmds_GCJ | \
19072 archive_cmds_GCJ | \
19073 archive_expsym_cmds_GCJ | \
19074 module_cmds_GCJ | \
19075 module_expsym_cmds_GCJ | \
19076 old_archive_from_expsyms_cmds_GCJ | \
19077 export_symbols_cmds_GCJ | \
19078 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19079 postinstall_cmds | postuninstall_cmds | \
19080 old_postinstall_cmds | old_postuninstall_cmds | \
19081 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19082 # Double-quote double-evaled strings.
19083 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19086 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19092 *'\$0 --fallback-echo"')
19093 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19099 cat <<__EOF__ >> "$cfgfile"
19100 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19102 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19104 # Shell to use when invoking shell scripts.
19107 # Whether or not to build shared libraries.
19108 build_libtool_libs=$enable_shared
19110 # Whether or not to build static libraries.
19111 build_old_libs=$enable_static
19113 # Whether or not to add -lc for building shared libraries.
19114 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19116 # Whether or not to disallow shared libs when runtime libs are static
19117 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19119 # Whether or not to optimize for fast installation.
19120 fast_install=$enable_fast_install
19123 host_alias=$host_alias
19127 # The build system.
19128 build_alias=$build_alias
19132 # An echo program that does not interpret backslashes.
19137 AR_FLAGS=$lt_AR_FLAGS
19142 # LTCC compiler flags.
19143 LTCFLAGS=$lt_LTCFLAGS
19145 # A language-specific compiler.
19146 CC=$lt_compiler_GCJ
19148 # Is the compiler the GNU C compiler?
19154 # The linker used to build libraries.
19157 # Whether we need hard or soft links.
19160 # A BSD-compatible nm program.
19163 # A symbol stripping program
19166 # Used to examine libraries when file_magic_cmd begins "file"
19167 MAGIC_CMD=$MAGIC_CMD
19169 # Used on cygwin: DLL creation program.
19172 # Used on cygwin: object dumper.
19175 # Used on cygwin: assembler.
19178 # The name of the directory that contains temporary libtool files.
19181 # How to create reloadable object files.
19182 reload_flag=$lt_reload_flag
19183 reload_cmds=$lt_reload_cmds
19185 # How to pass a linker flag through the compiler.
19186 wl=$lt_lt_prog_compiler_wl_GCJ
19188 # Object file suffix (normally "o").
19189 objext="$ac_objext"
19191 # Old archive suffix (normally "a").
19194 # Shared library suffix (normally ".so").
19195 shrext_cmds='$shrext_cmds'
19197 # Executable file suffix (normally "").
19200 # Additional compiler flags for building library objects.
19201 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19204 # What is the maximum length of a command?
19205 max_cmd_len=$lt_cv_sys_max_cmd_len
19207 # Does compiler simultaneously support -c and -o options?
19208 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19210 # Must we lock files when doing compilation?
19211 need_locks=$lt_need_locks
19213 # Do we need the lib prefix for modules?
19214 need_lib_prefix=$need_lib_prefix
19216 # Do we need a version for libraries?
19217 need_version=$need_version
19219 # Whether dlopen is supported.
19220 dlopen_support=$enable_dlopen
19222 # Whether dlopen of programs is supported.
19223 dlopen_self=$enable_dlopen_self
19225 # Whether dlopen of statically linked programs is supported.
19226 dlopen_self_static=$enable_dlopen_self_static
19228 # Compiler flag to prevent dynamic linking.
19229 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19231 # Compiler flag to turn off builtin functions.
19232 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19234 # Compiler flag to allow reflexive dlopens.
19235 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19237 # Compiler flag to generate shared objects directly from archives.
19238 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19240 # Compiler flag to generate thread-safe objects.
19241 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19243 # Library versioning type.
19244 version_type=$version_type
19246 # Format of library name prefix.
19247 libname_spec=$lt_libname_spec
19249 # List of archive names. First name is the real one, the rest are links.
19250 # The last name is the one that the linker finds with -lNAME.
19251 library_names_spec=$lt_library_names_spec
19253 # The coded name of the library, if different from the real name.
19254 soname_spec=$lt_soname_spec
19256 # Commands used to build and install an old-style archive.
19258 old_archive_cmds=$lt_old_archive_cmds_GCJ
19259 old_postinstall_cmds=$lt_old_postinstall_cmds
19260 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19262 # Create an old-style archive from a shared archive.
19263 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19265 # Create a temporary old-style archive to link instead of a shared archive.
19266 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19268 # Commands used to build and install a shared archive.
19269 archive_cmds=$lt_archive_cmds_GCJ
19270 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19271 postinstall_cmds=$lt_postinstall_cmds
19272 postuninstall_cmds=$lt_postuninstall_cmds
19274 # Commands used to build a loadable module (assumed same as above if empty)
19275 module_cmds=$lt_module_cmds_GCJ
19276 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19278 # Commands to strip libraries.
19279 old_striplib=$lt_old_striplib
19280 striplib=$lt_striplib
19282 # Dependencies to place before the objects being linked to create a
19284 predep_objects=$lt_predep_objects_GCJ
19286 # Dependencies to place after the objects being linked to create a
19288 postdep_objects=$lt_postdep_objects_GCJ
19290 # Dependencies to place before the objects being linked to create a
19292 predeps=$lt_predeps_GCJ
19294 # Dependencies to place after the objects being linked to create a
19296 postdeps=$lt_postdeps_GCJ
19298 # The directories searched by this compiler when creating a shared
19300 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19302 # The library search path used internally by the compiler when linking
19303 # a shared library.
19304 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19306 # Method to check whether dependent libraries are shared objects.
19307 deplibs_check_method=$lt_deplibs_check_method
19309 # Command to use when deplibs_check_method == file_magic.
19310 file_magic_cmd=$lt_file_magic_cmd
19312 # Flag that allows shared libraries with undefined symbols to be built.
19313 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19315 # Flag that forces no undefined symbols.
19316 no_undefined_flag=$lt_no_undefined_flag_GCJ
19318 # Commands used to finish a libtool library installation in a directory.
19319 finish_cmds=$lt_finish_cmds
19321 # Same as above, but a single script fragment to be evaled but not shown.
19322 finish_eval=$lt_finish_eval
19324 # Take the output of nm and produce a listing of raw symbols and C names.
19325 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19327 # Transform the output of nm in a proper C declaration
19328 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19330 # Transform the output of nm in a C name address pair
19331 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19333 # This is the shared library runtime path variable.
19334 runpath_var=$runpath_var
19336 # This is the shared library path variable.
19337 shlibpath_var=$shlibpath_var
19339 # Is shlibpath searched before the hard-coded library search path?
19340 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19342 # How to hardcode a shared library path into an executable.
19343 hardcode_action=$hardcode_action_GCJ
19345 # Whether we should hardcode library paths into libraries.
19346 hardcode_into_libs=$hardcode_into_libs
19348 # Flag to hardcode \$libdir into a binary during linking.
19349 # This must work even if \$libdir does not exist.
19350 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19352 # If ld is used when linking, flag to hardcode \$libdir into
19353 # a binary during linking. This must work even if \$libdir does
19355 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19357 # Whether we need a single -rpath flag with a separated argument.
19358 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19360 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19361 # resulting binary.
19362 hardcode_direct=$hardcode_direct_GCJ
19364 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19365 # resulting binary.
19366 hardcode_minus_L=$hardcode_minus_L_GCJ
19368 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19369 # the resulting binary.
19370 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19372 # Set to yes if building a shared library automatically hardcodes DIR into the library
19373 # and all subsequent libraries and executables linked against it.
19374 hardcode_automatic=$hardcode_automatic_GCJ
19376 # Variables whose values should be saved in libtool wrapper scripts and
19377 # restored at relink time.
19378 variables_saved_for_relink="$variables_saved_for_relink"
19380 # Whether libtool must link a program against all its dependency libraries.
19381 link_all_deplibs=$link_all_deplibs_GCJ
19383 # Compile-time system search path for libraries
19384 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19386 # Run-time system search path for libraries
19387 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19389 # Fix the shell variable \$srcfile for the compiler.
19390 fix_srcfile_path=$lt_fix_srcfile_path
19392 # Set to yes if exported symbols are required.
19393 always_export_symbols=$always_export_symbols_GCJ
19395 # The commands to list exported symbols.
19396 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19398 # The commands to extract the exported symbol list from a shared archive.
19399 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19401 # Symbols that should not be listed in the preloaded symbols.
19402 exclude_expsyms=$lt_exclude_expsyms_GCJ
19404 # Symbols that must always be exported.
19405 include_expsyms=$lt_include_expsyms_GCJ
19407 # ### END LIBTOOL TAG CONFIG: $tagname
19413 # If there is no Makefile yet, we rely on a make rule to execute
19414 # `config.status --recheck' to rerun these tests and create the
19415 # libtool script then.
19416 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19417 if test -f "$ltmain_in"; then
19418 test -f Makefile && make "$ltmain"
19424 ac_cpp='$CPP $CPPFLAGS'
19425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19439 # Source file extension for RC test sources.
19442 # Object file extension for compiled RC test sources.
19446 # Code to be used in simple compile tests
19447 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19449 # Code to be used in simple link tests
19450 lt_simple_link_test_code="$lt_simple_compile_test_code"
19452 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19454 # If no C compiler was specified, use CC.
19457 # If no C compiler flags were specified, use CFLAGS.
19458 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19460 # Allow CC to be a program name with arguments.
19464 # save warnings/boilerplate of simple test code
19465 ac_outfile=conftest.$ac_objext
19466 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19467 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19468 _lt_compiler_boilerplate=`cat conftest.err`
19471 ac_outfile=conftest.$ac_objext
19472 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19473 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19474 _lt_linker_boilerplate=`cat conftest.err`
19478 # Allow CC to be a program name with arguments.
19483 for cc_temp in $compiler""; do
19485 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19486 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19491 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19493 lt_cv_prog_compiler_c_o_RC=yes
19495 # The else clause should only fire when bootstrapping the
19496 # libtool distribution, otherwise you forgot to ship ltmain.sh
19497 # with your package, and you will get complaints that there are
19498 # no rules to generate ltmain.sh.
19499 if test -f "$ltmain"; then
19500 # See if we are running on zsh, and set the options which allow our commands through
19501 # without removal of \ escapes.
19502 if test -n "${ZSH_VERSION+set}" ; then
19503 setopt NO_GLOB_SUBST
19505 # Now quote all the things that may contain metacharacters while being
19506 # careful not to overquote the AC_SUBSTed values. We take copies of the
19507 # variables and quote the copies for generation of the libtool script.
19508 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19510 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19511 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19512 deplibs_check_method reload_flag reload_cmds need_locks \
19513 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19514 lt_cv_sys_global_symbol_to_c_name_address \
19515 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19516 old_postinstall_cmds old_postuninstall_cmds \
19520 lt_prog_compiler_wl_RC \
19521 lt_prog_compiler_pic_RC \
19522 lt_prog_compiler_static_RC \
19523 lt_prog_compiler_no_builtin_flag_RC \
19524 export_dynamic_flag_spec_RC \
19525 thread_safe_flag_spec_RC \
19526 whole_archive_flag_spec_RC \
19527 enable_shared_with_static_runtimes_RC \
19528 old_archive_cmds_RC \
19529 old_archive_from_new_cmds_RC \
19530 predep_objects_RC \
19531 postdep_objects_RC \
19534 compiler_lib_search_path_RC \
19535 compiler_lib_search_dirs_RC \
19537 archive_expsym_cmds_RC \
19538 postinstall_cmds_RC \
19539 postuninstall_cmds_RC \
19540 old_archive_from_expsyms_cmds_RC \
19541 allow_undefined_flag_RC \
19542 no_undefined_flag_RC \
19543 export_symbols_cmds_RC \
19544 hardcode_libdir_flag_spec_RC \
19545 hardcode_libdir_flag_spec_ld_RC \
19546 hardcode_libdir_separator_RC \
19547 hardcode_automatic_RC \
19549 module_expsym_cmds_RC \
19550 lt_cv_prog_compiler_c_o_RC \
19551 fix_srcfile_path_RC \
19552 exclude_expsyms_RC \
19553 include_expsyms_RC; do
19556 old_archive_cmds_RC | \
19557 old_archive_from_new_cmds_RC | \
19558 archive_cmds_RC | \
19559 archive_expsym_cmds_RC | \
19561 module_expsym_cmds_RC | \
19562 old_archive_from_expsyms_cmds_RC | \
19563 export_symbols_cmds_RC | \
19564 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19565 postinstall_cmds | postuninstall_cmds | \
19566 old_postinstall_cmds | old_postuninstall_cmds | \
19567 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19568 # Double-quote double-evaled strings.
19569 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19572 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19578 *'\$0 --fallback-echo"')
19579 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19585 cat <<__EOF__ >> "$cfgfile"
19586 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19588 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19590 # Shell to use when invoking shell scripts.
19593 # Whether or not to build shared libraries.
19594 build_libtool_libs=$enable_shared
19596 # Whether or not to build static libraries.
19597 build_old_libs=$enable_static
19599 # Whether or not to add -lc for building shared libraries.
19600 build_libtool_need_lc=$archive_cmds_need_lc_RC
19602 # Whether or not to disallow shared libs when runtime libs are static
19603 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19605 # Whether or not to optimize for fast installation.
19606 fast_install=$enable_fast_install
19609 host_alias=$host_alias
19613 # The build system.
19614 build_alias=$build_alias
19618 # An echo program that does not interpret backslashes.
19623 AR_FLAGS=$lt_AR_FLAGS
19628 # LTCC compiler flags.
19629 LTCFLAGS=$lt_LTCFLAGS
19631 # A language-specific compiler.
19634 # Is the compiler the GNU C compiler?
19640 # The linker used to build libraries.
19643 # Whether we need hard or soft links.
19646 # A BSD-compatible nm program.
19649 # A symbol stripping program
19652 # Used to examine libraries when file_magic_cmd begins "file"
19653 MAGIC_CMD=$MAGIC_CMD
19655 # Used on cygwin: DLL creation program.
19658 # Used on cygwin: object dumper.
19661 # Used on cygwin: assembler.
19664 # The name of the directory that contains temporary libtool files.
19667 # How to create reloadable object files.
19668 reload_flag=$lt_reload_flag
19669 reload_cmds=$lt_reload_cmds
19671 # How to pass a linker flag through the compiler.
19672 wl=$lt_lt_prog_compiler_wl_RC
19674 # Object file suffix (normally "o").
19675 objext="$ac_objext"
19677 # Old archive suffix (normally "a").
19680 # Shared library suffix (normally ".so").
19681 shrext_cmds='$shrext_cmds'
19683 # Executable file suffix (normally "").
19686 # Additional compiler flags for building library objects.
19687 pic_flag=$lt_lt_prog_compiler_pic_RC
19690 # What is the maximum length of a command?
19691 max_cmd_len=$lt_cv_sys_max_cmd_len
19693 # Does compiler simultaneously support -c and -o options?
19694 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19696 # Must we lock files when doing compilation?
19697 need_locks=$lt_need_locks
19699 # Do we need the lib prefix for modules?
19700 need_lib_prefix=$need_lib_prefix
19702 # Do we need a version for libraries?
19703 need_version=$need_version
19705 # Whether dlopen is supported.
19706 dlopen_support=$enable_dlopen
19708 # Whether dlopen of programs is supported.
19709 dlopen_self=$enable_dlopen_self
19711 # Whether dlopen of statically linked programs is supported.
19712 dlopen_self_static=$enable_dlopen_self_static
19714 # Compiler flag to prevent dynamic linking.
19715 link_static_flag=$lt_lt_prog_compiler_static_RC
19717 # Compiler flag to turn off builtin functions.
19718 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19720 # Compiler flag to allow reflexive dlopens.
19721 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19723 # Compiler flag to generate shared objects directly from archives.
19724 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19726 # Compiler flag to generate thread-safe objects.
19727 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19729 # Library versioning type.
19730 version_type=$version_type
19732 # Format of library name prefix.
19733 libname_spec=$lt_libname_spec
19735 # List of archive names. First name is the real one, the rest are links.
19736 # The last name is the one that the linker finds with -lNAME.
19737 library_names_spec=$lt_library_names_spec
19739 # The coded name of the library, if different from the real name.
19740 soname_spec=$lt_soname_spec
19742 # Commands used to build and install an old-style archive.
19744 old_archive_cmds=$lt_old_archive_cmds_RC
19745 old_postinstall_cmds=$lt_old_postinstall_cmds
19746 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19748 # Create an old-style archive from a shared archive.
19749 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19751 # Create a temporary old-style archive to link instead of a shared archive.
19752 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19754 # Commands used to build and install a shared archive.
19755 archive_cmds=$lt_archive_cmds_RC
19756 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19757 postinstall_cmds=$lt_postinstall_cmds
19758 postuninstall_cmds=$lt_postuninstall_cmds
19760 # Commands used to build a loadable module (assumed same as above if empty)
19761 module_cmds=$lt_module_cmds_RC
19762 module_expsym_cmds=$lt_module_expsym_cmds_RC
19764 # Commands to strip libraries.
19765 old_striplib=$lt_old_striplib
19766 striplib=$lt_striplib
19768 # Dependencies to place before the objects being linked to create a
19770 predep_objects=$lt_predep_objects_RC
19772 # Dependencies to place after the objects being linked to create a
19774 postdep_objects=$lt_postdep_objects_RC
19776 # Dependencies to place before the objects being linked to create a
19778 predeps=$lt_predeps_RC
19780 # Dependencies to place after the objects being linked to create a
19782 postdeps=$lt_postdeps_RC
19784 # The directories searched by this compiler when creating a shared
19786 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19788 # The library search path used internally by the compiler when linking
19789 # a shared library.
19790 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19792 # Method to check whether dependent libraries are shared objects.
19793 deplibs_check_method=$lt_deplibs_check_method
19795 # Command to use when deplibs_check_method == file_magic.
19796 file_magic_cmd=$lt_file_magic_cmd
19798 # Flag that allows shared libraries with undefined symbols to be built.
19799 allow_undefined_flag=$lt_allow_undefined_flag_RC
19801 # Flag that forces no undefined symbols.
19802 no_undefined_flag=$lt_no_undefined_flag_RC
19804 # Commands used to finish a libtool library installation in a directory.
19805 finish_cmds=$lt_finish_cmds
19807 # Same as above, but a single script fragment to be evaled but not shown.
19808 finish_eval=$lt_finish_eval
19810 # Take the output of nm and produce a listing of raw symbols and C names.
19811 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19813 # Transform the output of nm in a proper C declaration
19814 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19816 # Transform the output of nm in a C name address pair
19817 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19819 # This is the shared library runtime path variable.
19820 runpath_var=$runpath_var
19822 # This is the shared library path variable.
19823 shlibpath_var=$shlibpath_var
19825 # Is shlibpath searched before the hard-coded library search path?
19826 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19828 # How to hardcode a shared library path into an executable.
19829 hardcode_action=$hardcode_action_RC
19831 # Whether we should hardcode library paths into libraries.
19832 hardcode_into_libs=$hardcode_into_libs
19834 # Flag to hardcode \$libdir into a binary during linking.
19835 # This must work even if \$libdir does not exist.
19836 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19838 # If ld is used when linking, flag to hardcode \$libdir into
19839 # a binary during linking. This must work even if \$libdir does
19841 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19843 # Whether we need a single -rpath flag with a separated argument.
19844 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19846 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19847 # resulting binary.
19848 hardcode_direct=$hardcode_direct_RC
19850 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19851 # resulting binary.
19852 hardcode_minus_L=$hardcode_minus_L_RC
19854 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19855 # the resulting binary.
19856 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19858 # Set to yes if building a shared library automatically hardcodes DIR into the library
19859 # and all subsequent libraries and executables linked against it.
19860 hardcode_automatic=$hardcode_automatic_RC
19862 # Variables whose values should be saved in libtool wrapper scripts and
19863 # restored at relink time.
19864 variables_saved_for_relink="$variables_saved_for_relink"
19866 # Whether libtool must link a program against all its dependency libraries.
19867 link_all_deplibs=$link_all_deplibs_RC
19869 # Compile-time system search path for libraries
19870 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19872 # Run-time system search path for libraries
19873 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19875 # Fix the shell variable \$srcfile for the compiler.
19876 fix_srcfile_path=$lt_fix_srcfile_path
19878 # Set to yes if exported symbols are required.
19879 always_export_symbols=$always_export_symbols_RC
19881 # The commands to list exported symbols.
19882 export_symbols_cmds=$lt_export_symbols_cmds_RC
19884 # The commands to extract the exported symbol list from a shared archive.
19885 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19887 # Symbols that should not be listed in the preloaded symbols.
19888 exclude_expsyms=$lt_exclude_expsyms_RC
19890 # Symbols that must always be exported.
19891 include_expsyms=$lt_include_expsyms_RC
19893 # ### END LIBTOOL TAG CONFIG: $tagname
19899 # If there is no Makefile yet, we rely on a make rule to execute
19900 # `config.status --recheck' to rerun these tests and create the
19901 # libtool script then.
19902 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19903 if test -f "$ltmain_in"; then
19904 test -f Makefile && make "$ltmain"
19910 ac_cpp='$CPP $CPPFLAGS'
19911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19920 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19921 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19922 { (exit 1); exit 1; }; }
19926 # Append the new tag name to the list of available tags.
19927 if test -n "$tagname" ; then
19928 available_tags="$available_tags $tagname"
19934 # Now substitute the updated list of available tags.
19935 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19936 mv "${ofile}T" "$ofile"
19940 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19941 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19942 { (exit 1); exit 1; }; }
19948 # This can be used to rebuild libtool when needed
19949 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19951 # Always use our own libtool.
19952 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19954 # Prevent multiple expansion
19976 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19977 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19978 if test "${ac_cv_header_stdc+set}" = set; then
19979 echo $ECHO_N "(cached) $ECHO_C" >&6
19981 cat >conftest.$ac_ext <<_ACEOF
19984 cat confdefs.h >>conftest.$ac_ext
19985 cat >>conftest.$ac_ext <<_ACEOF
19986 /* end confdefs.h. */
19987 #include <stdlib.h>
19988 #include <stdarg.h>
19989 #include <string.h>
20000 rm -f conftest.$ac_objext
20001 if { (ac_try="$ac_compile"
20002 case "(($ac_try" in
20003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20004 *) ac_try_echo=$ac_try;;
20006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20007 (eval "$ac_compile") 2>conftest.er1
20009 grep -v '^ *+' conftest.er1 >conftest.err
20011 cat conftest.err >&5
20012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20013 (exit $ac_status); } && {
20014 test -z "$ac_c_werror_flag" ||
20015 test ! -s conftest.err
20016 } && test -s conftest.$ac_objext; then
20017 ac_cv_header_stdc=yes
20019 echo "$as_me: failed program was:" >&5
20020 sed 's/^/| /' conftest.$ac_ext >&5
20022 ac_cv_header_stdc=no
20025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20027 if test $ac_cv_header_stdc = yes; then
20028 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20029 cat >conftest.$ac_ext <<_ACEOF
20032 cat confdefs.h >>conftest.$ac_ext
20033 cat >>conftest.$ac_ext <<_ACEOF
20034 /* end confdefs.h. */
20035 #include <string.h>
20038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20039 $EGREP "memchr" >/dev/null 2>&1; then
20042 ac_cv_header_stdc=no
20048 if test $ac_cv_header_stdc = yes; then
20049 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20050 cat >conftest.$ac_ext <<_ACEOF
20053 cat confdefs.h >>conftest.$ac_ext
20054 cat >>conftest.$ac_ext <<_ACEOF
20055 /* end confdefs.h. */
20056 #include <stdlib.h>
20059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20060 $EGREP "free" >/dev/null 2>&1; then
20063 ac_cv_header_stdc=no
20069 if test $ac_cv_header_stdc = yes; then
20070 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20071 if test "$cross_compiling" = yes; then
20074 cat >conftest.$ac_ext <<_ACEOF
20077 cat confdefs.h >>conftest.$ac_ext
20078 cat >>conftest.$ac_ext <<_ACEOF
20079 /* end confdefs.h. */
20081 #include <stdlib.h>
20082 #if ((' ' & 0x0FF) == 0x020)
20083 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20084 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20086 # define ISLOWER(c) \
20087 (('a' <= (c) && (c) <= 'i') \
20088 || ('j' <= (c) && (c) <= 'r') \
20089 || ('s' <= (c) && (c) <= 'z'))
20090 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20093 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20098 for (i = 0; i < 256; i++)
20099 if (XOR (islower (i), ISLOWER (i))
20100 || toupper (i) != TOUPPER (i))
20105 rm -f conftest$ac_exeext
20106 if { (ac_try="$ac_link"
20107 case "(($ac_try" in
20108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20109 *) ac_try_echo=$ac_try;;
20111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20112 (eval "$ac_link") 2>&5
20114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20116 { (case "(($ac_try" in
20117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20118 *) ac_try_echo=$ac_try;;
20120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20121 (eval "$ac_try") 2>&5
20123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20124 (exit $ac_status); }; }; then
20127 echo "$as_me: program exited with status $ac_status" >&5
20128 echo "$as_me: failed program was:" >&5
20129 sed 's/^/| /' conftest.$ac_ext >&5
20131 ( exit $ac_status )
20132 ac_cv_header_stdc=no
20134 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20140 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20141 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20142 if test $ac_cv_header_stdc = yes; then
20144 cat >>confdefs.h <<\_ACEOF
20145 #define STDC_HEADERS 1
20151 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20152 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
20153 if test "${ac_cv_header_time+set}" = set; then
20154 echo $ECHO_N "(cached) $ECHO_C" >&6
20156 cat >conftest.$ac_ext <<_ACEOF
20159 cat confdefs.h >>conftest.$ac_ext
20160 cat >>conftest.$ac_ext <<_ACEOF
20161 /* end confdefs.h. */
20162 #include <sys/types.h>
20163 #include <sys/time.h>
20169 if ((struct tm *) 0)
20175 rm -f conftest.$ac_objext
20176 if { (ac_try="$ac_compile"
20177 case "(($ac_try" in
20178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20179 *) ac_try_echo=$ac_try;;
20181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20182 (eval "$ac_compile") 2>conftest.er1
20184 grep -v '^ *+' conftest.er1 >conftest.err
20186 cat conftest.err >&5
20187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188 (exit $ac_status); } && {
20189 test -z "$ac_c_werror_flag" ||
20190 test ! -s conftest.err
20191 } && test -s conftest.$ac_objext; then
20192 ac_cv_header_time=yes
20194 echo "$as_me: failed program was:" >&5
20195 sed 's/^/| /' conftest.$ac_ext >&5
20197 ac_cv_header_time=no
20200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20202 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20203 echo "${ECHO_T}$ac_cv_header_time" >&6; }
20204 if test $ac_cv_header_time = yes; then
20206 cat >>confdefs.h <<\_ACEOF
20207 #define TIME_WITH_SYS_TIME 1
20214 { echo "$as_me:$LINENO: checking for main in -lpopt" >&5
20215 echo $ECHO_N "checking for main in -lpopt... $ECHO_C" >&6; }
20216 if test "${ac_cv_lib_popt_main+set}" = set; then
20217 echo $ECHO_N "(cached) $ECHO_C" >&6
20219 ac_check_lib_save_LIBS=$LIBS
20220 LIBS="-lpopt $LIBS"
20221 cat >conftest.$ac_ext <<_ACEOF
20224 cat confdefs.h >>conftest.$ac_ext
20225 cat >>conftest.$ac_ext <<_ACEOF
20226 /* end confdefs.h. */
20237 rm -f conftest.$ac_objext conftest$ac_exeext
20238 if { (ac_try="$ac_link"
20239 case "(($ac_try" in
20240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20241 *) ac_try_echo=$ac_try;;
20243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20244 (eval "$ac_link") 2>conftest.er1
20246 grep -v '^ *+' conftest.er1 >conftest.err
20248 cat conftest.err >&5
20249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20250 (exit $ac_status); } && {
20251 test -z "$ac_c_werror_flag" ||
20252 test ! -s conftest.err
20253 } && test -s conftest$ac_exeext &&
20254 $as_test_x conftest$ac_exeext; then
20255 ac_cv_lib_popt_main=yes
20257 echo "$as_me: failed program was:" >&5
20258 sed 's/^/| /' conftest.$ac_ext >&5
20260 ac_cv_lib_popt_main=no
20263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20264 conftest$ac_exeext conftest.$ac_ext
20265 LIBS=$ac_check_lib_save_LIBS
20267 { echo "$as_me:$LINENO: result: $ac_cv_lib_popt_main" >&5
20268 echo "${ECHO_T}$ac_cv_lib_popt_main" >&6; }
20269 if test $ac_cv_lib_popt_main = yes; then
20270 cat >>confdefs.h <<_ACEOF
20271 #define HAVE_LIBPOPT 1
20274 LIBS="-lpopt $LIBS"
20279 { echo "$as_me:$LINENO: checking for main in -lz" >&5
20280 echo $ECHO_N "checking for main in -lz... $ECHO_C" >&6; }
20281 if test "${ac_cv_lib_z_main+set}" = set; then
20282 echo $ECHO_N "(cached) $ECHO_C" >&6
20284 ac_check_lib_save_LIBS=$LIBS
20286 cat >conftest.$ac_ext <<_ACEOF
20289 cat confdefs.h >>conftest.$ac_ext
20290 cat >>conftest.$ac_ext <<_ACEOF
20291 /* end confdefs.h. */
20302 rm -f conftest.$ac_objext conftest$ac_exeext
20303 if { (ac_try="$ac_link"
20304 case "(($ac_try" in
20305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20306 *) ac_try_echo=$ac_try;;
20308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20309 (eval "$ac_link") 2>conftest.er1
20311 grep -v '^ *+' conftest.er1 >conftest.err
20313 cat conftest.err >&5
20314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20315 (exit $ac_status); } && {
20316 test -z "$ac_c_werror_flag" ||
20317 test ! -s conftest.err
20318 } && test -s conftest$ac_exeext &&
20319 $as_test_x conftest$ac_exeext; then
20320 ac_cv_lib_z_main=yes
20322 echo "$as_me: failed program was:" >&5
20323 sed 's/^/| /' conftest.$ac_ext >&5
20325 ac_cv_lib_z_main=no
20328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20329 conftest$ac_exeext conftest.$ac_ext
20330 LIBS=$ac_check_lib_save_LIBS
20332 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_main" >&5
20333 echo "${ECHO_T}$ac_cv_lib_z_main" >&6; }
20334 if test $ac_cv_lib_z_main = yes; then
20335 cat >>confdefs.h <<_ACEOF
20336 #define HAVE_LIBZ 1
20344 ac_config_files="$ac_config_files Makefile test/Makefile"
20346 cat >confcache <<\_ACEOF
20347 # This file is a shell script that caches the results of configure
20348 # tests run on this system so they can be shared between configure
20349 # scripts and configure runs, see configure's option --config-cache.
20350 # It is not useful on other systems. If it contains results you don't
20351 # want to keep, you may remove or edit it.
20353 # config.status only pays attention to the cache file if you give it
20354 # the --recheck option to rerun configure.
20356 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20357 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20358 # following values.
20362 # The following way of writing the cache mishandles newlines in values,
20363 # but we know of no workaround that is simple, portable, and efficient.
20364 # So, we kill variables containing newlines.
20365 # Ultrix sh set writes to stderr and can't be redirected directly,
20366 # and sets the high bit in the cache file unless we assign to the vars.
20368 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20369 eval ac_val=\$$ac_var
20373 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20374 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20377 _ | IFS | as_nl) ;; #(
20378 *) $as_unset $ac_var ;;
20384 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20385 *${as_nl}ac_space=\ *)
20386 # `set' does not quote correctly, so add quotes (double-quote
20387 # substitution turns \\\\ into \\, and sed turns \\ into \).
20390 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20393 # `set' quotes correctly as required by POSIX, so do not add quotes.
20394 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20403 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20405 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20407 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20408 if test -w "$cache_file"; then
20409 test "x$cache_file" != "x/dev/null" &&
20410 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20411 echo "$as_me: updating cache $cache_file" >&6;}
20412 cat confcache >$cache_file
20414 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20415 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20420 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20421 # Let make expand exec_prefix.
20422 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20424 DEFS=-DHAVE_CONFIG_H
20428 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20429 # 1. Remove the extension, and $U if already installed.
20430 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20431 ac_i=`echo "$ac_i" | sed "$ac_script"`
20432 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20433 # will be set to the directory where LIBOBJS objects are built.
20434 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20435 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20437 LIBOBJS=$ac_libobjs
20439 LTLIBOBJS=$ac_ltlibobjs
20442 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20443 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20444 Usually this means the macro was only invoked conditionally." >&5
20445 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20446 Usually this means the macro was only invoked conditionally." >&2;}
20447 { (exit 1); exit 1; }; }
20449 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20450 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20451 Usually this means the macro was only invoked conditionally." >&5
20452 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20453 Usually this means the macro was only invoked conditionally." >&2;}
20454 { (exit 1); exit 1; }; }
20456 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20457 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20458 Usually this means the macro was only invoked conditionally." >&5
20459 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20460 Usually this means the macro was only invoked conditionally." >&2;}
20461 { (exit 1); exit 1; }; }
20463 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20464 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20465 Usually this means the macro was only invoked conditionally." >&5
20466 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20467 Usually this means the macro was only invoked conditionally." >&2;}
20468 { (exit 1); exit 1; }; }
20471 : ${CONFIG_STATUS=./config.status}
20472 ac_clean_files_save=$ac_clean_files
20473 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20474 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20475 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20476 cat >$CONFIG_STATUS <<_ACEOF
20478 # Generated by $as_me.
20479 # Run this file to recreate the current configuration.
20480 # Compiler output produced by configure, useful for debugging
20481 # configure, is in config.log if it exists.
20484 ac_cs_recheck=false
20486 SHELL=\${CONFIG_SHELL-$SHELL}
20489 cat >>$CONFIG_STATUS <<\_ACEOF
20490 ## --------------------- ##
20491 ## M4sh Initialization. ##
20492 ## --------------------- ##
20494 # Be more Bourne compatible
20495 DUALCASE=1; export DUALCASE # for MKS sh
20496 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20499 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20500 # is contrary to our usage. Disable this feature.
20501 alias -g '${1+"$@"}'='"$@"'
20502 setopt NO_GLOB_SUBST
20504 case `(set -o) 2>/dev/null` in
20505 *posix*) set -o posix ;;
20514 # Avoid depending upon Character Ranges.
20515 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20516 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20517 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20518 as_cr_digits='0123456789'
20519 as_cr_alnum=$as_cr_Letters$as_cr_digits
20521 # The user is always right.
20522 if test "${PATH_SEPARATOR+set}" != set; then
20523 echo "#! /bin/sh" >conf$$.sh
20524 echo "exit 0" >>conf$$.sh
20526 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20534 # Support unset when possible.
20535 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20543 # We need space, tab and new line, in precisely that order. Quoting is
20544 # there to prevent editors from complaining about space-tab.
20545 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20546 # splitting by setting IFS to empty value.)
20551 # Find who we are. Look in the path if we contain no directory separator.
20553 *[\\/]* ) as_myself=$0 ;;
20554 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20555 for as_dir in $PATH
20558 test -z "$as_dir" && as_dir=.
20559 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20565 # We did not find ourselves, most probably we were run as `sh COMMAND'
20566 # in which case we are not to be found in the path.
20567 if test "x$as_myself" = x; then
20570 if test ! -f "$as_myself"; then
20571 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20572 { (exit 1); exit 1; }
20575 # Work around bugs in pre-3.0 UWIN ksh.
20576 for as_var in ENV MAIL MAILPATH
20577 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20585 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20586 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20587 LC_TELEPHONE LC_TIME
20589 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20590 eval $as_var=C; export $as_var
20592 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20596 # Required to use basename.
20597 if expr a : '\(a\)' >/dev/null 2>&1 &&
20598 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20604 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20605 as_basename=basename
20611 # Name of the executable.
20612 as_me=`$as_basename -- "$0" ||
20613 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20614 X"$0" : 'X\(//\)$' \| \
20615 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20617 sed '/^.*\/\([^/][^/]*\)\/*$/{
20636 as_lineno_1=$LINENO
20637 as_lineno_2=$LINENO
20638 test "x$as_lineno_1" != "x$as_lineno_2" &&
20639 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20641 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20642 # uniformly replaced by the line number. The first 'sed' inserts a
20643 # line-number line after each line using $LINENO; the second 'sed'
20644 # does the real work. The second script uses 'N' to pair each
20645 # line-number line with the line containing $LINENO, and appends
20646 # trailing '-' during substitution so that $LINENO is not a special
20647 # case at line end.
20648 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20649 # scripts with optimization help from Paolo Bonzini. Blame Lee
20650 # E. McMahon (1931-1989) for sed's syntax. :-)
20662 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20665 ' >$as_me.lineno &&
20666 chmod +x "$as_me.lineno" ||
20667 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20668 { (exit 1); exit 1; }; }
20670 # Don't try to exec as it changes $[0], causing all sort of problems
20671 # (the dirname of $[0] is not the place where we might find the
20672 # original and so on. Autoconf is especially sensitive to this).
20673 . "./$as_me.lineno"
20674 # Exit status is that of the last command.
20679 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20685 ECHO_C= ECHO_N= ECHO_T=
20686 case `echo -n x` in
20688 case `echo 'x\c'` in
20689 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20696 if expr a : '\(a\)' >/dev/null 2>&1 &&
20697 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20703 rm -f conf$$ conf$$.exe conf$$.file
20704 if test -d conf$$.dir; then
20705 rm -f conf$$.dir/conf$$.file
20711 if ln -s conf$$.file conf$$ 2>/dev/null; then
20713 # ... but there are two gotchas:
20714 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20715 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20716 # In both cases, we have to default to `cp -p'.
20717 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20719 elif ln conf$$.file conf$$ 2>/dev/null; then
20724 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20725 rmdir conf$$.dir 2>/dev/null
20727 if mkdir -p . 2>/dev/null; then
20730 test -d ./-p && rmdir ./-p
20734 if test -x / >/dev/null 2>&1; then
20735 as_test_x='test -x'
20737 if ls -dL / >/dev/null 2>&1; then
20744 if test -d "$1"; then
20750 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20751 ???[sx]*):;;*)false;;esac;fi
20755 as_executable_p=$as_test_x
20757 # Sed expression to map a string onto a valid CPP name.
20758 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20760 # Sed expression to map a string onto a valid variable name.
20761 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20766 # Save the log message, to keep $[0] and so on meaningful, and to
20767 # report actual input values of CONFIG_FILES etc. instead of their
20768 # values after options handling.
20770 This file was extended by iec16022 $as_me 0.2.3, which was
20771 generated by GNU Autoconf 2.61. Invocation command line was
20773 CONFIG_FILES = $CONFIG_FILES
20774 CONFIG_HEADERS = $CONFIG_HEADERS
20775 CONFIG_LINKS = $CONFIG_LINKS
20776 CONFIG_COMMANDS = $CONFIG_COMMANDS
20779 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20784 cat >>$CONFIG_STATUS <<_ACEOF
20785 # Files that config.status was made for.
20786 config_files="$ac_config_files"
20787 config_headers="$ac_config_headers"
20788 config_commands="$ac_config_commands"
20792 cat >>$CONFIG_STATUS <<\_ACEOF
20794 \`$as_me' instantiates files from templates according to the
20795 current configuration.
20797 Usage: $0 [OPTIONS] [FILE]...
20799 -h, --help print this help, then exit
20800 -V, --version print version number and configuration settings, then exit
20801 -q, --quiet do not print progress messages
20802 -d, --debug don't remove temporary files
20803 --recheck update $as_me by reconfiguring in the same conditions
20804 --file=FILE[:TEMPLATE]
20805 instantiate the configuration file FILE
20806 --header=FILE[:TEMPLATE]
20807 instantiate the configuration header FILE
20809 Configuration files:
20812 Configuration headers:
20815 Configuration commands:
20818 Report bugs to <bug-autoconf@gnu.org>."
20821 cat >>$CONFIG_STATUS <<_ACEOF
20823 iec16022 config.status 0.2.3
20824 configured by $0, generated by GNU Autoconf 2.61,
20825 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20827 Copyright (C) 2006 Free Software Foundation, Inc.
20828 This config.status script is free software; the Free Software Foundation
20829 gives unlimited permission to copy, distribute and modify it."
20836 cat >>$CONFIG_STATUS <<\_ACEOF
20837 # If no file are specified by the user, then we need to provide default
20838 # value. By we need to know if files were specified by the user.
20844 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20845 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20856 # Handling of the options.
20857 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20859 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20860 echo "$ac_cs_version"; exit ;;
20861 --debug | --debu | --deb | --de | --d | -d )
20863 --file | --fil | --fi | --f )
20865 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20866 ac_need_defaults=false;;
20867 --header | --heade | --head | --hea )
20869 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20870 ac_need_defaults=false;;
20872 # Conflict between --help and --header
20873 { echo "$as_me: error: ambiguous option: $1
20874 Try \`$0 --help' for more information." >&2
20875 { (exit 1); exit 1; }; };;
20876 --help | --hel | -h )
20877 echo "$ac_cs_usage"; exit ;;
20878 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20879 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20882 # This is an error.
20883 -*) { echo "$as_me: error: unrecognized option: $1
20884 Try \`$0 --help' for more information." >&2
20885 { (exit 1); exit 1; }; } ;;
20887 *) ac_config_targets="$ac_config_targets $1"
20888 ac_need_defaults=false ;;
20894 ac_configure_extra_args=
20896 if $ac_cs_silent; then
20898 ac_configure_extra_args="$ac_configure_extra_args --silent"
20902 cat >>$CONFIG_STATUS <<_ACEOF
20903 if \$ac_cs_recheck; then
20904 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20905 CONFIG_SHELL=$SHELL
20906 export CONFIG_SHELL
20907 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20911 cat >>$CONFIG_STATUS <<\_ACEOF
20915 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20916 ## Running $as_me. ##
20922 cat >>$CONFIG_STATUS <<_ACEOF
20926 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20930 cat >>$CONFIG_STATUS <<\_ACEOF
20932 # Handling of arguments.
20933 for ac_config_target in $ac_config_targets
20935 case $ac_config_target in
20936 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20937 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20938 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20939 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
20941 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20942 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20943 { (exit 1); exit 1; }; };;
20948 # If the user did not use the arguments to specify the items to instantiate,
20949 # then the envvar interface is used. Set only those that are not.
20950 # We use the long form for the default assignment because of an extremely
20951 # bizarre bug on SunOS 4.1.3.
20952 if $ac_need_defaults; then
20953 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20954 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20955 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20958 # Have a temporary directory for convenience. Make it in the build tree
20959 # simply because there is no reason against having it here, and in addition,
20960 # creating and moving files from /tmp can sometimes cause problems.
20961 # Hook for its removal unless debugging.
20962 # Note that there is a small window in which the directory will not be cleaned:
20963 # after its creation but before its name has been assigned to `$tmp'.
20967 trap 'exit_status=$?
20968 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20970 trap '{ (exit 1); exit 1; }' 1 2 13 15
20972 # Create a (secure) tmp directory for tmp files.
20975 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20976 test -n "$tmp" && test -d "$tmp"
20979 tmp=./conf$$-$RANDOM
20980 (umask 077 && mkdir "$tmp")
20983 echo "$me: cannot create a temporary directory in ." >&2
20984 { (exit 1); exit 1; }
20988 # Set up the sed scripts for CONFIG_FILES section.
20991 # No need to generate the scripts if there are no CONFIG_FILES.
20992 # This happens for instance when ./config.status config.h
20993 if test -n "$CONFIG_FILES"; then
21000 for ac_last_try in false false false false false :; do
21001 cat >conf$$subs.sed <<_ACEOF
21002 SHELL!$SHELL$ac_delim
21003 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21004 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21005 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21006 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21007 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21008 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21009 exec_prefix!$exec_prefix$ac_delim
21010 prefix!$prefix$ac_delim
21011 program_transform_name!$program_transform_name$ac_delim
21012 bindir!$bindir$ac_delim
21013 sbindir!$sbindir$ac_delim
21014 libexecdir!$libexecdir$ac_delim
21015 datarootdir!$datarootdir$ac_delim
21016 datadir!$datadir$ac_delim
21017 sysconfdir!$sysconfdir$ac_delim
21018 sharedstatedir!$sharedstatedir$ac_delim
21019 localstatedir!$localstatedir$ac_delim
21020 includedir!$includedir$ac_delim
21021 oldincludedir!$oldincludedir$ac_delim
21022 docdir!$docdir$ac_delim
21023 infodir!$infodir$ac_delim
21024 htmldir!$htmldir$ac_delim
21025 dvidir!$dvidir$ac_delim
21026 pdfdir!$pdfdir$ac_delim
21027 psdir!$psdir$ac_delim
21028 libdir!$libdir$ac_delim
21029 localedir!$localedir$ac_delim
21030 mandir!$mandir$ac_delim
21031 DEFS!$DEFS$ac_delim
21032 ECHO_C!$ECHO_C$ac_delim
21033 ECHO_N!$ECHO_N$ac_delim
21034 ECHO_T!$ECHO_T$ac_delim
21035 LIBS!$LIBS$ac_delim
21036 build_alias!$build_alias$ac_delim
21037 host_alias!$host_alias$ac_delim
21038 target_alias!$target_alias$ac_delim
21039 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21040 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21041 INSTALL_DATA!$INSTALL_DATA$ac_delim
21042 CYGPATH_W!$CYGPATH_W$ac_delim
21043 PACKAGE!$PACKAGE$ac_delim
21044 VERSION!$VERSION$ac_delim
21045 ACLOCAL!$ACLOCAL$ac_delim
21046 AUTOCONF!$AUTOCONF$ac_delim
21047 AUTOMAKE!$AUTOMAKE$ac_delim
21048 AUTOHEADER!$AUTOHEADER$ac_delim
21049 MAKEINFO!$MAKEINFO$ac_delim
21050 install_sh!$install_sh$ac_delim
21051 STRIP!$STRIP$ac_delim
21052 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21053 mkdir_p!$mkdir_p$ac_delim
21055 SET_MAKE!$SET_MAKE$ac_delim
21056 am__leading_dot!$am__leading_dot$ac_delim
21057 AMTAR!$AMTAR$ac_delim
21058 am__tar!$am__tar$ac_delim
21059 am__untar!$am__untar$ac_delim
21060 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
21061 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
21062 MAINT!$MAINT$ac_delim
21064 CFLAGS!$CFLAGS$ac_delim
21065 LDFLAGS!$LDFLAGS$ac_delim
21066 CPPFLAGS!$CPPFLAGS$ac_delim
21067 ac_ct_CC!$ac_ct_CC$ac_delim
21068 EXEEXT!$EXEEXT$ac_delim
21069 OBJEXT!$OBJEXT$ac_delim
21070 DEPDIR!$DEPDIR$ac_delim
21071 am__include!$am__include$ac_delim
21072 am__quote!$am__quote$ac_delim
21073 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21074 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21075 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21076 CCDEPMODE!$CCDEPMODE$ac_delim
21077 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21078 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21079 build!$build$ac_delim
21080 build_cpu!$build_cpu$ac_delim
21081 build_vendor!$build_vendor$ac_delim
21082 build_os!$build_os$ac_delim
21083 host!$host$ac_delim
21084 host_cpu!$host_cpu$ac_delim
21085 host_vendor!$host_vendor$ac_delim
21086 host_os!$host_os$ac_delim
21088 GREP!$GREP$ac_delim
21089 EGREP!$EGREP$ac_delim
21090 LN_S!$LN_S$ac_delim
21091 ECHO!$ECHO$ac_delim
21093 RANLIB!$RANLIB$ac_delim
21094 DSYMUTIL!$DSYMUTIL$ac_delim
21095 NMEDIT!$NMEDIT$ac_delim
21098 CXXFLAGS!$CXXFLAGS$ac_delim
21101 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21103 elif $ac_last_try; then
21104 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21105 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21106 { (exit 1); exit 1; }; }
21108 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21112 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21113 if test -n "$ac_eof"; then
21114 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21115 ac_eof=`expr $ac_eof + 1`
21118 cat >>$CONFIG_STATUS <<_ACEOF
21119 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21120 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21123 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21124 s/^/s,@/; s/!/@,|#_!!_#|/
21127 s/'"$ac_delim"'$/,g/; t
21129 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21130 ' >>$CONFIG_STATUS <conf$$subs.sed
21131 rm -f conf$$subs.sed
21132 cat >>$CONFIG_STATUS <<_ACEOF
21138 for ac_last_try in false false false false false :; do
21139 cat >conf$$subs.sed <<_ACEOF
21140 ac_ct_CXX!$ac_ct_CXX$ac_delim
21141 CXXDEPMODE!$CXXDEPMODE$ac_delim
21142 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21143 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21144 CXXCPP!$CXXCPP$ac_delim
21146 FFLAGS!$FFLAGS$ac_delim
21147 ac_ct_F77!$ac_ct_F77$ac_delim
21148 LIBTOOL!$LIBTOOL$ac_delim
21149 LIBOBJS!$LIBOBJS$ac_delim
21150 LTLIBOBJS!$LTLIBOBJS$ac_delim
21153 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 11; then
21155 elif $ac_last_try; then
21156 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21157 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21158 { (exit 1); exit 1; }; }
21160 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21164 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21165 if test -n "$ac_eof"; then
21166 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21167 ac_eof=`expr $ac_eof + 1`
21170 cat >>$CONFIG_STATUS <<_ACEOF
21171 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21172 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21175 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21176 s/^/s,@/; s/!/@,|#_!!_#|/
21179 s/'"$ac_delim"'$/,g/; t
21181 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21182 ' >>$CONFIG_STATUS <conf$$subs.sed
21183 rm -f conf$$subs.sed
21184 cat >>$CONFIG_STATUS <<_ACEOF
21191 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21192 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21193 # trailing colons and then remove the whole line if VPATH becomes empty
21194 # (actually we leave an empty line to preserve line numbers).
21195 if test "x$srcdir" = x.; then
21196 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21197 s/:*\$(srcdir):*/:/
21198 s/:*\${srcdir}:*/:/
21200 s/^\([^=]*=[ ]*\):*/\1/
21206 cat >>$CONFIG_STATUS <<\_ACEOF
21207 fi # test -n "$CONFIG_FILES"
21210 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21213 :[FHLC]) ac_mode=$ac_tag; continue;;
21215 case $ac_mode$ac_tag in
21217 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21218 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21219 { (exit 1); exit 1; }; };;
21220 :[FH]-) ac_tag=-:-;;
21221 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21238 -) ac_f="$tmp/stdin";;
21239 *) # Look for the file first in the build tree, then in the source tree
21240 # (if the path is not absolute). The absolute path cannot be DOS-style,
21241 # because $ac_f cannot contain `:'.
21245 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21247 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21248 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21249 { (exit 1); exit 1; }; };;
21251 ac_file_inputs="$ac_file_inputs $ac_f"
21254 # Let's still pretend it is `configure' which instantiates (i.e., don't
21255 # use $as_me), people would be surprised to read:
21256 # /* config.h. Generated by config.status. */
21257 configure_input="Generated from "`IFS=:
21258 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21259 if test x"$ac_file" != x-; then
21260 configure_input="$ac_file. $configure_input"
21261 { echo "$as_me:$LINENO: creating $ac_file" >&5
21262 echo "$as_me: creating $ac_file" >&6;}
21266 *:-:* | *:-) cat >"$tmp/stdin";;
21271 ac_dir=`$as_dirname -- "$ac_file" ||
21272 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21273 X"$ac_file" : 'X\(//\)[^/]' \| \
21274 X"$ac_file" : 'X\(//\)$' \| \
21275 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21281 /^X\(\/\/\)[^/].*/{
21296 -*) as_dir=./$as_dir;;
21298 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21302 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21303 *) as_qdir=$as_dir;;
21305 as_dirs="'$as_qdir' $as_dirs"
21306 as_dir=`$as_dirname -- "$as_dir" ||
21307 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21308 X"$as_dir" : 'X\(//\)[^/]' \| \
21309 X"$as_dir" : 'X\(//\)$' \| \
21310 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21316 /^X\(\/\/\)[^/].*/{
21329 test -d "$as_dir" && break
21331 test -z "$as_dirs" || eval "mkdir $as_dirs"
21332 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21333 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21334 { (exit 1); exit 1; }; }; }
21338 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21340 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21341 # A ".." for each directory in $ac_dir_suffix.
21342 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21343 case $ac_top_builddir_sub in
21344 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21345 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21348 ac_abs_top_builddir=$ac_pwd
21349 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21350 # for backward compatibility:
21351 ac_top_builddir=$ac_top_build_prefix
21354 .) # We are building in place.
21356 ac_top_srcdir=$ac_top_builddir_sub
21357 ac_abs_top_srcdir=$ac_pwd ;;
21358 [\\/]* | ?:[\\/]* ) # Absolute name.
21359 ac_srcdir=$srcdir$ac_dir_suffix;
21360 ac_top_srcdir=$srcdir
21361 ac_abs_top_srcdir=$srcdir ;;
21362 *) # Relative name.
21363 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21364 ac_top_srcdir=$ac_top_build_prefix$srcdir
21365 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21367 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21377 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21378 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21382 cat >>$CONFIG_STATUS <<\_ACEOF
21383 # If the template does not know about datarootdir, expand it.
21384 # FIXME: This hack should be removed a few years after 2.60.
21385 ac_datarootdir_hack=; ac_datarootdir_seen=
21387 case `sed -n '/datarootdir/ {
21396 ' $ac_file_inputs` in
21397 *datarootdir*) ac_datarootdir_seen=yes;;
21398 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21399 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21400 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21402 cat >>$CONFIG_STATUS <<_ACEOF
21403 ac_datarootdir_hack='
21404 s&@datadir@&$datadir&g
21405 s&@docdir@&$docdir&g
21406 s&@infodir@&$infodir&g
21407 s&@localedir@&$localedir&g
21408 s&@mandir@&$mandir&g
21409 s&\\\${datarootdir}&$datarootdir&g' ;;
21413 # Neutralize VPATH when `$srcdir' = `.'.
21414 # Shell code in configure.ac might set extrasub.
21415 # FIXME: do we really want to maintain this feature?
21416 cat >>$CONFIG_STATUS <<_ACEOF
21420 cat >>$CONFIG_STATUS <<\_ACEOF
21422 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21423 s&@configure_input@&$configure_input&;t t
21424 s&@top_builddir@&$ac_top_builddir_sub&;t t
21425 s&@srcdir@&$ac_srcdir&;t t
21426 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21427 s&@top_srcdir@&$ac_top_srcdir&;t t
21428 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21429 s&@builddir@&$ac_builddir&;t t
21430 s&@abs_builddir@&$ac_abs_builddir&;t t
21431 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21432 s&@INSTALL@&$ac_INSTALL&;t t
21433 $ac_datarootdir_hack
21434 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21436 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21437 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21438 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21439 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21440 which seems to be undefined. Please make sure it is defined." >&5
21441 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21442 which seems to be undefined. Please make sure it is defined." >&2;}
21446 -) cat "$tmp/out"; rm -f "$tmp/out";;
21447 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21456 # Transform confdefs.h into a sed script `conftest.defines', that
21457 # substitutes the proper values into config.h.in to produce config.h.
21458 rm -f conftest.defines conftest.tail
21459 # First, append a space to every undef/define line, to ease matching.
21460 echo 's/$/ /' >conftest.defines
21461 # Then, protect against being on the right side of a sed subst, or in
21462 # an unquoted here document, in config.status. If some macros were
21463 # called several times there might be several #defines for the same
21464 # symbol, which is useless. But do not sort them, since the last
21465 # AC_DEFINE must be honored.
21466 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21467 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21468 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21469 # PARAMS is the parameter list in the macro definition--in most cases, it's
21470 # just an empty string.
21471 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21472 ac_dB='\\)[ (].*,\\1define\\2'
21480 s/^[ ]*#[ ]*define[ ][ ]*//
21485 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21486 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21487 ' >>conftest.defines
21489 # Remove the space that was appended to ease matching.
21490 # Then replace #undef with comments. This is necessary, for
21491 # example, in the case of _POSIX_SOURCE, which is predefined and required
21492 # on some systems where configure will not decide to define it.
21493 # (The regexp can be short, since the line contains either #define or #undef.)
21495 s,^[ #]*u.*,/* & */,' >>conftest.defines
21497 # Break up conftest.defines:
21498 ac_max_sed_lines=50
21500 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21501 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21502 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21504 ac_in='$ac_file_inputs'
21505 ac_out='"$tmp/out1"'
21506 ac_nxt='"$tmp/out2"'
21510 # Write a here document:
21511 cat >>$CONFIG_STATUS <<_ACEOF
21512 # First, check the format of the line:
21513 cat >"\$tmp/defines.sed" <<\\CEOF
21514 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21515 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21519 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21521 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21522 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21523 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21524 grep . conftest.tail >/dev/null || break
21525 rm -f conftest.defines
21526 mv conftest.tail conftest.defines
21528 rm -f conftest.defines conftest.tail
21530 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21531 cat >>$CONFIG_STATUS <<\_ACEOF
21532 if test x"$ac_file" != x-; then
21533 echo "/* $configure_input */" >"$tmp/config.h"
21534 cat "$ac_result" >>"$tmp/config.h"
21535 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21536 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21537 echo "$as_me: $ac_file is unchanged" >&6;}
21540 mv "$tmp/config.h" $ac_file
21543 echo "/* $configure_input */"
21547 # Compute $ac_file's index in $config_headers.
21549 for _am_header in $config_headers :; do
21550 case $_am_header in
21551 $ac_file | $ac_file:* )
21554 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21557 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
21558 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21559 X$ac_file : 'X\(//\)[^/]' \| \
21560 X$ac_file : 'X\(//\)$' \| \
21561 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
21563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21567 /^X\(\/\/\)[^/].*/{
21579 s/.*/./; q'`/stamp-h$_am_stamp_count
21582 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21583 echo "$as_me: executing $ac_file commands" >&6;}
21588 case $ac_file$ac_mode in
21589 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21590 # Strip MF so we end up with the name of the file.
21591 mf=`echo "$mf" | sed -e 's/:.*$//'`
21592 # Check whether this is an Automake generated Makefile or not.
21593 # We used to match only the files named `Makefile.in', but
21594 # some people rename them; so instead we look at the file content.
21595 # Grep'ing the first line is not enough: some people post-process
21596 # each Makefile.in and add a new line on top of each file to say so.
21597 # So let's grep whole file.
21598 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21599 dirpart=`$as_dirname -- "$mf" ||
21600 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21601 X"$mf" : 'X\(//\)[^/]' \| \
21602 X"$mf" : 'X\(//\)$' \| \
21603 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21605 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21609 /^X\(\/\/\)[^/].*/{
21625 # Extract the definition of DEPDIR, am__include, and am__quote
21626 # from the Makefile without running `make'.
21627 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21628 test -z "$DEPDIR" && continue
21629 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21630 test -z "am__include" && continue
21631 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21632 # When using ansi2knr, U may be empty or an underscore; expand it
21633 U=`sed -n 's/^U = //p' < "$mf"`
21634 # Find all dependency output files, they are included files with
21635 # $(DEPDIR) in their names. We invoke sed twice because it is the
21636 # simplest approach to changing $(DEPDIR) to its actual value in the
21638 for file in `sed -n "
21639 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21640 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21641 # Make sure the directory exists.
21642 test -f "$dirpart/$file" && continue
21643 fdir=`$as_dirname -- "$file" ||
21644 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21645 X"$file" : 'X\(//\)[^/]' \| \
21646 X"$file" : 'X\(//\)$' \| \
21647 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21649 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21653 /^X\(\/\/\)[^/].*/{
21666 { as_dir=$dirpart/$fdir
21668 -*) as_dir=./$as_dir;;
21670 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21674 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21675 *) as_qdir=$as_dir;;
21677 as_dirs="'$as_qdir' $as_dirs"
21678 as_dir=`$as_dirname -- "$as_dir" ||
21679 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21680 X"$as_dir" : 'X\(//\)[^/]' \| \
21681 X"$as_dir" : 'X\(//\)$' \| \
21682 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21688 /^X\(\/\/\)[^/].*/{
21701 test -d "$as_dir" && break
21703 test -z "$as_dirs" || eval "mkdir $as_dirs"
21704 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21705 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21706 { (exit 1); exit 1; }; }; }
21707 # echo "creating $dirpart/$file"
21708 echo '# dummy' > "$dirpart/$file"
21717 { (exit 0); exit 0; }
21719 chmod +x $CONFIG_STATUS
21720 ac_clean_files=$ac_clean_files_save
21723 # configure is writing to config.log, and then calls config.status.
21724 # config.status does its own redirection, appending to config.log.
21725 # Unfortunately, on DOS this fails, as config.log is still kept open
21726 # by configure, so config.status won't be able to write to it; its
21727 # output is simply discarded. So we exec the FD to /dev/null,
21728 # effectively closing config.log, so it can be properly (re)opened and
21729 # appended to by config.status. When coming back to configure, we
21730 # need to make the FD available again.
21731 if test "$no_create" != yes; then
21733 ac_config_status_args=
21734 test "$silent" = yes &&
21735 ac_config_status_args="$ac_config_status_args --quiet"
21737 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21739 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21740 # would make configure fail if this is the last instruction.
21741 $ac_cs_success || { (exit 1); exit 1; }