2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for glog 0.1.1.
5 # Report bugs to <opensource@google.com>.
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.
730 PACKAGE_TARNAME='glog'
731 PACKAGE_VERSION='0.1.1'
732 PACKAGE_STRING='glog 0.1.1'
733 PACKAGE_BUGREPORT='opensource@google.com'
735 ac_unique_file="README"
736 # Factoring default headers for most tests.
737 ac_includes_default="\
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
749 # ifdef HAVE_STDLIB_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
781 program_transform_name
823 INSTALL_STRIP_PROGRAM
879 ENABLE_FRAME_POINTERS_TRUE
880 ENABLE_FRAME_POINTERS_FALSE
887 ac_google_start_namespace
888 ac_google_end_namespace
890 ac_cv_cxx_using_operator
891 ac_cv___attribute___noreturn
892 ac_cv___attribute___printf_4_5
893 ac_cv_have___builtin_expect
895 ac_cv_have_systypes_h
896 ac_cv_have_inttypes_h
905 ac_precious_vars='build_alias
922 # Initialize some variables set by options.
924 ac_init_version=false
925 # The variables have the same names as the options, with
926 # dashes changed to underlines.
934 program_transform_name=s,x,x,
942 # Installation directory options.
943 # These are left unexpanded so users can "make install exec_prefix=/foo"
944 # and all the variables that are supposed to be based on exec_prefix
945 # by default will actually change.
946 # Use braces instead of parens because sh, perl, etc. also accept them.
947 # (The list follows the same order as the GNU Coding Standards.)
948 bindir='${exec_prefix}/bin'
949 sbindir='${exec_prefix}/sbin'
950 libexecdir='${exec_prefix}/libexec'
951 datarootdir='${prefix}/share'
952 datadir='${datarootdir}'
953 sysconfdir='${prefix}/etc'
954 sharedstatedir='${prefix}/com'
955 localstatedir='${prefix}/var'
956 includedir='${prefix}/include'
957 oldincludedir='/usr/include'
958 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
959 infodir='${datarootdir}/info'
964 libdir='${exec_prefix}/lib'
965 localedir='${datarootdir}/locale'
966 mandir='${datarootdir}/man'
972 # If the previous option needs an argument, assign it.
973 if test -n "$ac_prev"; then
974 eval $ac_prev=\$ac_option
980 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
984 # Accept the important Cygnus configure options, so we can diagnose typos.
986 case $ac_dashdash$ac_option in
990 -bindir | --bindir | --bindi | --bind | --bin | --bi)
992 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
995 -build | --build | --buil | --bui | --bu)
996 ac_prev=build_alias ;;
997 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
998 build_alias=$ac_optarg ;;
1000 -cache-file | --cache-file | --cache-fil | --cache-fi \
1001 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1002 ac_prev=cache_file ;;
1003 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1004 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1005 cache_file=$ac_optarg ;;
1007 --config-cache | -C)
1008 cache_file=config.cache ;;
1010 -datadir | --datadir | --datadi | --datad)
1012 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1013 datadir=$ac_optarg ;;
1015 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1016 | --dataroo | --dataro | --datar)
1017 ac_prev=datarootdir ;;
1018 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1019 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1020 datarootdir=$ac_optarg ;;
1022 -disable-* | --disable-*)
1023 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1024 # Reject names that are not valid shell variable names.
1025 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1026 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1027 { (exit 1); exit 1; }; }
1028 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1029 eval enable_$ac_feature=no ;;
1031 -docdir | --docdir | --docdi | --doc | --do)
1033 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1034 docdir=$ac_optarg ;;
1036 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1038 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1039 dvidir=$ac_optarg ;;
1041 -enable-* | --enable-*)
1042 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1043 # Reject names that are not valid shell variable names.
1044 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1045 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1046 { (exit 1); exit 1; }; }
1047 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1048 eval enable_$ac_feature=\$ac_optarg ;;
1050 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1051 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1052 | --exec | --exe | --ex)
1053 ac_prev=exec_prefix ;;
1054 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1055 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1056 | --exec=* | --exe=* | --ex=*)
1057 exec_prefix=$ac_optarg ;;
1059 -gas | --gas | --ga | --g)
1060 # Obsolete; use --with-gas.
1063 -help | --help | --hel | --he | -h)
1064 ac_init_help=long ;;
1065 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1066 ac_init_help=recursive ;;
1067 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1068 ac_init_help=short ;;
1070 -host | --host | --hos | --ho)
1071 ac_prev=host_alias ;;
1072 -host=* | --host=* | --hos=* | --ho=*)
1073 host_alias=$ac_optarg ;;
1075 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1077 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1079 htmldir=$ac_optarg ;;
1081 -includedir | --includedir | --includedi | --included | --include \
1082 | --includ | --inclu | --incl | --inc)
1083 ac_prev=includedir ;;
1084 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1085 | --includ=* | --inclu=* | --incl=* | --inc=*)
1086 includedir=$ac_optarg ;;
1088 -infodir | --infodir | --infodi | --infod | --info | --inf)
1090 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1091 infodir=$ac_optarg ;;
1093 -libdir | --libdir | --libdi | --libd)
1095 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1096 libdir=$ac_optarg ;;
1098 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1099 | --libexe | --libex | --libe)
1100 ac_prev=libexecdir ;;
1101 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1102 | --libexe=* | --libex=* | --libe=*)
1103 libexecdir=$ac_optarg ;;
1105 -localedir | --localedir | --localedi | --localed | --locale)
1106 ac_prev=localedir ;;
1107 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1108 localedir=$ac_optarg ;;
1110 -localstatedir | --localstatedir | --localstatedi | --localstated \
1111 | --localstate | --localstat | --localsta | --localst | --locals)
1112 ac_prev=localstatedir ;;
1113 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1114 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1115 localstatedir=$ac_optarg ;;
1117 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1119 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1120 mandir=$ac_optarg ;;
1122 -nfp | --nfp | --nf)
1123 # Obsolete; use --without-fp.
1126 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1127 | --no-cr | --no-c | -n)
1130 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1131 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1134 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1135 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1136 | --oldin | --oldi | --old | --ol | --o)
1137 ac_prev=oldincludedir ;;
1138 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1139 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1140 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1141 oldincludedir=$ac_optarg ;;
1143 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1145 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1146 prefix=$ac_optarg ;;
1148 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1149 | --program-pre | --program-pr | --program-p)
1150 ac_prev=program_prefix ;;
1151 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1152 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1153 program_prefix=$ac_optarg ;;
1155 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1156 | --program-suf | --program-su | --program-s)
1157 ac_prev=program_suffix ;;
1158 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1159 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1160 program_suffix=$ac_optarg ;;
1162 -program-transform-name | --program-transform-name \
1163 | --program-transform-nam | --program-transform-na \
1164 | --program-transform-n | --program-transform- \
1165 | --program-transform | --program-transfor \
1166 | --program-transfo | --program-transf \
1167 | --program-trans | --program-tran \
1168 | --progr-tra | --program-tr | --program-t)
1169 ac_prev=program_transform_name ;;
1170 -program-transform-name=* | --program-transform-name=* \
1171 | --program-transform-nam=* | --program-transform-na=* \
1172 | --program-transform-n=* | --program-transform-=* \
1173 | --program-transform=* | --program-transfor=* \
1174 | --program-transfo=* | --program-transf=* \
1175 | --program-trans=* | --program-tran=* \
1176 | --progr-tra=* | --program-tr=* | --program-t=*)
1177 program_transform_name=$ac_optarg ;;
1179 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1181 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1182 pdfdir=$ac_optarg ;;
1184 -psdir | --psdir | --psdi | --psd | --ps)
1186 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1189 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1190 | -silent | --silent | --silen | --sile | --sil)
1193 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1195 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1197 sbindir=$ac_optarg ;;
1199 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1200 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1201 | --sharedst | --shareds | --shared | --share | --shar \
1203 ac_prev=sharedstatedir ;;
1204 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1205 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1206 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1208 sharedstatedir=$ac_optarg ;;
1210 -site | --site | --sit)
1212 -site=* | --site=* | --sit=*)
1215 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1217 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1218 srcdir=$ac_optarg ;;
1220 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1221 | --syscon | --sysco | --sysc | --sys | --sy)
1222 ac_prev=sysconfdir ;;
1223 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1224 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1225 sysconfdir=$ac_optarg ;;
1227 -target | --target | --targe | --targ | --tar | --ta | --t)
1228 ac_prev=target_alias ;;
1229 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1230 target_alias=$ac_optarg ;;
1232 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1235 -version | --version | --versio | --versi | --vers | -V)
1236 ac_init_version=: ;;
1239 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1240 # Reject names that are not valid shell variable names.
1241 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1242 { echo "$as_me: error: invalid package name: $ac_package" >&2
1243 { (exit 1); exit 1; }; }
1244 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1245 eval with_$ac_package=\$ac_optarg ;;
1247 -without-* | --without-*)
1248 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1249 # Reject names that are not valid shell variable names.
1250 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1251 { echo "$as_me: error: invalid package name: $ac_package" >&2
1252 { (exit 1); exit 1; }; }
1253 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1254 eval with_$ac_package=no ;;
1257 # Obsolete; use --with-x.
1260 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1261 | --x-incl | --x-inc | --x-in | --x-i)
1262 ac_prev=x_includes ;;
1263 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1264 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1265 x_includes=$ac_optarg ;;
1267 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1268 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1269 ac_prev=x_libraries ;;
1270 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1271 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1272 x_libraries=$ac_optarg ;;
1274 -*) { echo "$as_me: error: unrecognized option: $ac_option
1275 Try \`$0 --help' for more information." >&2
1276 { (exit 1); exit 1; }; }
1280 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1281 # Reject names that are not valid shell variable names.
1282 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1283 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1284 { (exit 1); exit 1; }; }
1285 eval $ac_envvar=\$ac_optarg
1286 export $ac_envvar ;;
1289 # FIXME: should be removed in autoconf 3.0.
1290 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1291 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1292 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1293 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1299 if test -n "$ac_prev"; then
1300 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1301 { echo "$as_me: error: missing argument to $ac_option" >&2
1302 { (exit 1); exit 1; }; }
1305 # Be sure to have absolute directory names.
1306 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1307 datadir sysconfdir sharedstatedir localstatedir includedir \
1308 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1309 libdir localedir mandir
1311 eval ac_val=\$$ac_var
1313 [\\/$]* | ?:[\\/]* ) continue;;
1314 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1316 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1317 { (exit 1); exit 1; }; }
1320 # There might be people who depend on the old broken behavior: `$host'
1321 # used to hold the argument of --host etc.
1322 # FIXME: To remove some day.
1325 target=$target_alias
1327 # FIXME: To remove some day.
1328 if test "x$host_alias" != x; then
1329 if test "x$build_alias" = x; then
1330 cross_compiling=maybe
1331 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1332 If a cross compiler is detected then cross compile mode will be used." >&2
1333 elif test "x$build_alias" != "x$host_alias"; then
1339 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1341 test "$silent" = yes && exec 6>/dev/null
1344 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1345 ac_ls_di=`ls -di .` &&
1346 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1347 { echo "$as_me: error: Working directory cannot be determined" >&2
1348 { (exit 1); exit 1; }; }
1349 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1350 { echo "$as_me: error: pwd does not report name of working directory" >&2
1351 { (exit 1); exit 1; }; }
1354 # Find the source files, if location was not specified.
1355 if test -z "$srcdir"; then
1356 ac_srcdir_defaulted=yes
1357 # Try the directory containing this script, then the parent directory.
1358 ac_confdir=`$as_dirname -- "$0" ||
1359 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1360 X"$0" : 'X\(//\)[^/]' \| \
1361 X"$0" : 'X\(//\)$' \| \
1362 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1382 if test ! -r "$srcdir/$ac_unique_file"; then
1386 ac_srcdir_defaulted=no
1388 if test ! -r "$srcdir/$ac_unique_file"; then
1389 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1390 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1391 { (exit 1); exit 1; }; }
1393 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1395 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1396 { (exit 1); exit 1; }; }
1398 # When building in place, set srcdir=.
1399 if test "$ac_abs_confdir" = "$ac_pwd"; then
1402 # Remove unnecessary trailing slashes from srcdir.
1403 # Double slashes in file names in object file debugging info
1404 # mess up M-x gdb in Emacs.
1406 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1408 for ac_var in $ac_precious_vars; do
1409 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1410 eval ac_env_${ac_var}_value=\$${ac_var}
1411 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1412 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1416 # Report the --help message.
1418 if test "$ac_init_help" = "long"; then
1419 # Omit some internal or obsolete options to make the list less imposing.
1420 # This message is too long to be a string in the A/UX 3.1 sh.
1422 \`configure' configures glog 0.1.1 to adapt to many kinds of systems.
1424 Usage: $0 [OPTION]... [VAR=VALUE]...
1426 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1427 VAR=VALUE. See below for descriptions of some of the useful variables.
1429 Defaults for the options are specified in brackets.
1432 -h, --help display this help and exit
1433 --help=short display options specific to this package
1434 --help=recursive display the short help of all the included packages
1435 -V, --version display version information and exit
1436 -q, --quiet, --silent do not print \`checking...' messages
1437 --cache-file=FILE cache test results in FILE [disabled]
1438 -C, --config-cache alias for \`--cache-file=config.cache'
1439 -n, --no-create do not create output files
1440 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1442 Installation directories:
1443 --prefix=PREFIX install architecture-independent files in PREFIX
1444 [$ac_default_prefix]
1445 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1448 By default, \`make install' will install all the files in
1449 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1450 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1451 for instance \`--prefix=\$HOME'.
1453 For better control, use the options below.
1455 Fine tuning of the installation directories:
1456 --bindir=DIR user executables [EPREFIX/bin]
1457 --sbindir=DIR system admin executables [EPREFIX/sbin]
1458 --libexecdir=DIR program executables [EPREFIX/libexec]
1459 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1460 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1461 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1462 --libdir=DIR object code libraries [EPREFIX/lib]
1463 --includedir=DIR C header files [PREFIX/include]
1464 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1465 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1466 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1467 --infodir=DIR info documentation [DATAROOTDIR/info]
1468 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1469 --mandir=DIR man documentation [DATAROOTDIR/man]
1470 --docdir=DIR documentation root [DATAROOTDIR/doc/glog]
1471 --htmldir=DIR html documentation [DOCDIR]
1472 --dvidir=DIR dvi documentation [DOCDIR]
1473 --pdfdir=DIR pdf documentation [DOCDIR]
1474 --psdir=DIR ps documentation [DOCDIR]
1480 --program-prefix=PREFIX prepend PREFIX to installed program names
1481 --program-suffix=SUFFIX append SUFFIX to installed program names
1482 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1485 --build=BUILD configure for building on BUILD [guessed]
1486 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1490 if test -n "$ac_init_help"; then
1491 case $ac_init_help in
1492 short | recursive ) echo "Configuration of glog 0.1.1:";;
1497 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1498 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1499 --disable-dependency-tracking speeds up one-time build
1500 --enable-dependency-tracking do not reject slow dependency extractors
1501 --enable-shared[=PKGS] build shared libraries [default=yes]
1502 --enable-static[=PKGS] build static libraries [default=yes]
1503 --enable-fast-install[=PKGS]
1504 optimize for fast installation [default=yes]
1505 --disable-libtool-lock avoid locking (might break parallel builds)
1506 --enable-frame-pointers On x86_64 systems, compile with
1507 -fno-omit-frame-pointer (see INSTALL)
1508 --enable-namespace=FOO to define these Google
1509 classes in the FOO namespace. --disable-namespace
1510 to define them in the global namespace. Default
1511 is to define them in namespace google.
1514 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1515 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1516 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1517 --with-pic try to use only PIC/non-PIC objects [default=use
1519 --with-tags[=TAGS] include additional configurations [automatic]
1521 Some influential environment variables:
1522 CC C compiler command
1523 CFLAGS C compiler flags
1524 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1525 nonstandard directory <lib dir>
1526 LIBS libraries to pass to the linker, e.g. -l<library>
1527 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1528 you have headers in a nonstandard directory <include dir>
1530 CXX C++ compiler command
1531 CXXFLAGS C++ compiler flags
1532 CXXCPP C++ preprocessor
1533 F77 Fortran 77 compiler command
1534 FFLAGS Fortran 77 compiler flags
1536 Use these variables to override the choices made by `configure' or to help
1537 it to find libraries and programs with nonstandard names/locations.
1539 Report bugs to <opensource@google.com>.
1544 if test "$ac_init_help" = "recursive"; then
1545 # If there are subdirs, report their specific --help.
1546 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1547 test -d "$ac_dir" || continue
1551 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1554 # A ".." for each directory in $ac_dir_suffix.
1555 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1556 case $ac_top_builddir_sub in
1557 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1558 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1561 ac_abs_top_builddir=$ac_pwd
1562 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1563 # for backward compatibility:
1564 ac_top_builddir=$ac_top_build_prefix
1567 .) # We are building in place.
1569 ac_top_srcdir=$ac_top_builddir_sub
1570 ac_abs_top_srcdir=$ac_pwd ;;
1571 [\\/]* | ?:[\\/]* ) # Absolute name.
1572 ac_srcdir=$srcdir$ac_dir_suffix;
1573 ac_top_srcdir=$srcdir
1574 ac_abs_top_srcdir=$srcdir ;;
1576 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1577 ac_top_srcdir=$ac_top_build_prefix$srcdir
1578 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1580 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1582 cd "$ac_dir" || { ac_status=$?; continue; }
1583 # Check for guested configure.
1584 if test -f "$ac_srcdir/configure.gnu"; then
1586 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1587 elif test -f "$ac_srcdir/configure"; then
1589 $SHELL "$ac_srcdir/configure" --help=recursive
1591 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1593 cd "$ac_pwd" || { ac_status=$?; break; }
1597 test -n "$ac_init_help" && exit $ac_status
1598 if $ac_init_version; then
1600 glog configure 0.1.1
1601 generated by GNU Autoconf 2.61
1603 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1604 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1605 This configure script is free software; the Free Software Foundation
1606 gives unlimited permission to copy, distribute and modify it.
1610 cat >config.log <<_ACEOF
1611 This file contains any messages produced by compilers while
1612 running configure, to aid debugging if configure makes a mistake.
1614 It was created by glog $as_me 0.1.1, which was
1615 generated by GNU Autoconf 2.61. Invocation command line was
1627 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1628 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1629 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1630 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1631 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1633 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1634 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1636 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1637 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1638 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1639 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1640 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1641 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1642 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1650 test -z "$as_dir" && as_dir=.
1651 echo "PATH: $as_dir"
1667 # Keep a trace of the command line.
1668 # Strip out --no-create and --no-recursion so they do not pile up.
1669 # Strip out --silent because we don't want to record it for future runs.
1670 # Also quote any args containing shell meta-characters.
1671 # Make two passes to allow for proper duplicate-argument suppression.
1675 ac_must_keep_next=false
1681 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1682 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1683 | -silent | --silent | --silen | --sile | --sil)
1686 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1689 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1691 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1692 if test $ac_must_keep_next = true; then
1693 ac_must_keep_next=false # Got value, back to normal.
1696 *=* | --config-cache | -C | -disable-* | --disable-* \
1697 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1698 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1699 | -with-* | --with-* | -without-* | --without-* | --x)
1700 case "$ac_configure_args0 " in
1701 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1704 -* ) ac_must_keep_next=true ;;
1707 ac_configure_args="$ac_configure_args '$ac_arg'"
1712 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1713 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1715 # When interrupted or exit'd, cleanup temporary files, and complete
1716 # config.log. We remove comments because anyway the quotes in there
1717 # would cause problems or look ugly.
1718 # WARNING: Use '\'' to represent an apostrophe within the trap.
1719 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1720 trap 'exit_status=$?
1721 # Save into config.log some information that might help in debugging.
1726 ## ---------------- ##
1727 ## Cache variables. ##
1728 ## ---------------- ##
1731 # The following way of writing the cache mishandles newlines in values,
1733 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1734 eval ac_val=\$$ac_var
1738 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1739 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1742 _ | IFS | as_nl) ;; #(
1743 *) $as_unset $ac_var ;;
1748 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1749 *${as_nl}ac_space=\ *)
1751 "s/'\''/'\''\\\\'\'''\''/g;
1752 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1755 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1763 ## ----------------- ##
1764 ## Output variables. ##
1765 ## ----------------- ##
1768 for ac_var in $ac_subst_vars
1770 eval ac_val=\$$ac_var
1772 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1774 echo "$ac_var='\''$ac_val'\''"
1778 if test -n "$ac_subst_files"; then
1780 ## ------------------- ##
1781 ## File substitutions. ##
1782 ## ------------------- ##
1785 for ac_var in $ac_subst_files
1787 eval ac_val=\$$ac_var
1789 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1791 echo "$ac_var='\''$ac_val'\''"
1796 if test -s confdefs.h; then
1806 test "$ac_signal" != 0 &&
1807 echo "$as_me: caught signal $ac_signal"
1808 echo "$as_me: exit $exit_status"
1810 rm -f core *.core core.conftest.* &&
1811 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1814 for ac_signal in 1 2 13 15; do
1815 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1819 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1820 rm -f -r conftest* confdefs.h
1822 # Predefined preprocessor variables.
1824 cat >>confdefs.h <<_ACEOF
1825 #define PACKAGE_NAME "$PACKAGE_NAME"
1829 cat >>confdefs.h <<_ACEOF
1830 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1834 cat >>confdefs.h <<_ACEOF
1835 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1839 cat >>confdefs.h <<_ACEOF
1840 #define PACKAGE_STRING "$PACKAGE_STRING"
1844 cat >>confdefs.h <<_ACEOF
1845 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1849 # Let the site file select an alternate cache file if it wants to.
1850 # Prefer explicitly selected file to automatically selected ones.
1851 if test -n "$CONFIG_SITE"; then
1852 set x "$CONFIG_SITE"
1853 elif test "x$prefix" != xNONE; then
1854 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1856 set x "$ac_default_prefix/share/config.site" \
1857 "$ac_default_prefix/etc/config.site"
1862 if test -r "$ac_site_file"; then
1863 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1864 echo "$as_me: loading site script $ac_site_file" >&6;}
1865 sed 's/^/| /' "$ac_site_file" >&5
1870 if test -r "$cache_file"; then
1871 # Some versions of bash will fail to source /dev/null (special
1872 # files actually), so we avoid doing that.
1873 if test -f "$cache_file"; then
1874 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1875 echo "$as_me: loading cache $cache_file" >&6;}
1877 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1878 *) . "./$cache_file";;
1882 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1883 echo "$as_me: creating cache $cache_file" >&6;}
1887 # Check that the precious variables saved in the cache have kept the same
1889 ac_cache_corrupted=false
1890 for ac_var in $ac_precious_vars; do
1891 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1892 eval ac_new_set=\$ac_env_${ac_var}_set
1893 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1894 eval ac_new_val=\$ac_env_${ac_var}_value
1895 case $ac_old_set,$ac_new_set in
1897 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1898 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1899 ac_cache_corrupted=: ;;
1901 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1902 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1903 ac_cache_corrupted=: ;;
1906 if test "x$ac_old_val" != "x$ac_new_val"; then
1907 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1908 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1909 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1910 echo "$as_me: former value: $ac_old_val" >&2;}
1911 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1912 echo "$as_me: current value: $ac_new_val" >&2;}
1913 ac_cache_corrupted=:
1916 # Pass precious variables to config.status.
1917 if test "$ac_new_set" = set; then
1919 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1920 *) ac_arg=$ac_var=$ac_new_val ;;
1922 case " $ac_configure_args " in
1923 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1924 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1928 if $ac_cache_corrupted; then
1929 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1930 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1931 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1932 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1933 { (exit 1); exit 1; }; }
1961 ac_cpp='$CPP $CPPFLAGS'
1962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1967 # The argument here is just something that should be in the current directory
1968 # (for sanity checking)
1970 am__api_version='1.10'
1973 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1974 if test -f "$ac_dir/install-sh"; then
1976 ac_install_sh="$ac_aux_dir/install-sh -c"
1978 elif test -f "$ac_dir/install.sh"; then
1980 ac_install_sh="$ac_aux_dir/install.sh -c"
1982 elif test -f "$ac_dir/shtool"; then
1984 ac_install_sh="$ac_aux_dir/shtool install -c"
1988 if test -z "$ac_aux_dir"; then
1989 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1990 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1991 { (exit 1); exit 1; }; }
1994 # These three variables are undocumented and unsupported,
1995 # and are intended to be withdrawn in a future Autoconf release.
1996 # They can cause serious problems if a builder's source tree is in a directory
1997 # whose full name contains unusual characters.
1998 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1999 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2000 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2003 # Find a good install program. We prefer a C program (faster),
2004 # so one script is as good as another. But avoid the broken or
2005 # incompatible versions:
2006 # SysV /etc/install, /usr/sbin/install
2007 # SunOS /usr/etc/install
2008 # IRIX /sbin/install
2010 # AmigaOS /C/install, which installs bootblocks on floppy discs
2011 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2012 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2013 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2014 # OS/2's system install, which has a completely different semantic
2015 # ./install, which can be erroneously created by make from ./install.sh.
2016 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2017 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2018 if test -z "$INSTALL"; then
2019 if test "${ac_cv_path_install+set}" = set; then
2020 echo $ECHO_N "(cached) $ECHO_C" >&6
2022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2026 test -z "$as_dir" && as_dir=.
2027 # Account for people who put trailing slashes in PATH elements.
2029 ./ | .// | /cC/* | \
2030 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2031 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2034 # OSF1 and SCO ODT 3.0 have their own names for install.
2035 # Don't use installbsd from OSF since it installs stuff as root
2037 for ac_prog in ginstall scoinst install; do
2038 for ac_exec_ext in '' $ac_executable_extensions; do
2039 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2040 if test $ac_prog = install &&
2041 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2042 # AIX install. It has an incompatible calling convention.
2044 elif test $ac_prog = install &&
2045 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2046 # program-specific install script used by HP pwplus--don't use.
2049 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2062 if test "${ac_cv_path_install+set}" = set; then
2063 INSTALL=$ac_cv_path_install
2065 # As a last resort, use the slow shell script. Don't cache a
2066 # value for INSTALL within a source directory, because that will
2067 # break other packages using the cache if that directory is
2068 # removed, or if the value is a relative name.
2069 INSTALL=$ac_install_sh
2072 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2073 echo "${ECHO_T}$INSTALL" >&6; }
2075 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2076 # It thinks the first close brace ends the variable substitution.
2077 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2079 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2081 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2083 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2084 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2087 echo timestamp > conftest.file
2088 # Do `set' in a subshell so we don't clobber the current shell's
2089 # arguments. Must try -L first in case configure is actually a
2090 # symlink; some systems play weird games with the mod time of symlinks
2091 # (eg FreeBSD returns the mod time of the symlink's containing
2094 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2095 if test "$*" = "X"; then
2097 set X `ls -t $srcdir/configure conftest.file`
2100 if test "$*" != "X $srcdir/configure conftest.file" \
2101 && test "$*" != "X conftest.file $srcdir/configure"; then
2103 # If neither matched, then we have a broken ls. This can happen
2104 # if, for instance, CONFIG_SHELL is bash and it inherits a
2105 # broken ls alias from the environment. This has actually
2106 # happened. Such a system could not be considered "sane".
2107 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2108 alias in your environment" >&5
2109 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2110 alias in your environment" >&2;}
2111 { (exit 1); exit 1; }; }
2114 test "$2" = conftest.file
2120 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2121 Check your system clock" >&5
2122 echo "$as_me: error: newly created file is older than distributed files!
2123 Check your system clock" >&2;}
2124 { (exit 1); exit 1; }; }
2126 { echo "$as_me:$LINENO: result: yes" >&5
2127 echo "${ECHO_T}yes" >&6; }
2128 test "$program_prefix" != NONE &&
2129 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2130 # Use a double $ so make ignores it.
2131 test "$program_suffix" != NONE &&
2132 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2133 # Double any \ or $. echo might interpret backslashes.
2134 # By default was `s,x,x', remove it if useless.
2135 cat <<\_ACEOF >conftest.sed
2136 s/[\\$]/&&/g;s/;s,x,x,$//
2138 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2141 # expand $ac_aux_dir to an absolute path
2142 am_aux_dir=`cd $ac_aux_dir && pwd`
2144 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2145 # Use eval to expand $SHELL
2146 if eval "$MISSING --run true"; then
2147 am_missing_run="$MISSING --run "
2150 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2151 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2154 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2155 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2156 if test -z "$MKDIR_P"; then
2157 if test "${ac_cv_path_mkdir+set}" = set; then
2158 echo $ECHO_N "(cached) $ECHO_C" >&6
2160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2161 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2164 test -z "$as_dir" && as_dir=.
2165 for ac_prog in mkdir gmkdir; do
2166 for ac_exec_ext in '' $ac_executable_extensions; do
2167 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2168 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2169 'mkdir (GNU coreutils) '* | \
2170 'mkdir (coreutils) '* | \
2171 'mkdir (fileutils) '4.1*)
2172 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2182 if test "${ac_cv_path_mkdir+set}" = set; then
2183 MKDIR_P="$ac_cv_path_mkdir -p"
2185 # As a last resort, use the slow shell script. Don't cache a
2186 # value for MKDIR_P within a source directory, because that will
2187 # break other packages using the cache if that directory is
2188 # removed, or if the value is a relative name.
2189 test -d ./--version && rmdir ./--version
2190 MKDIR_P="$ac_install_sh -d"
2193 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2194 echo "${ECHO_T}$MKDIR_P" >&6; }
2198 [\\/$]* | ?:[\\/]*) ;;
2199 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2202 for ac_prog in gawk mawk nawk awk
2204 # Extract the first word of "$ac_prog", so it can be a program name with args.
2205 set dummy $ac_prog; ac_word=$2
2206 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2208 if test "${ac_cv_prog_AWK+set}" = set; then
2209 echo $ECHO_N "(cached) $ECHO_C" >&6
2211 if test -n "$AWK"; then
2212 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2218 test -z "$as_dir" && as_dir=.
2219 for ac_exec_ext in '' $ac_executable_extensions; do
2220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2221 ac_cv_prog_AWK="$ac_prog"
2222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2232 if test -n "$AWK"; then
2233 { echo "$as_me:$LINENO: result: $AWK" >&5
2234 echo "${ECHO_T}$AWK" >&6; }
2236 { echo "$as_me:$LINENO: result: no" >&5
2237 echo "${ECHO_T}no" >&6; }
2241 test -n "$AWK" && break
2244 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2245 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2246 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2247 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2248 echo $ECHO_N "(cached) $ECHO_C" >&6
2250 cat >conftest.make <<\_ACEOF
2253 @echo '@@@%%%=$(MAKE)=@@@%%%'
2255 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2256 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2258 eval ac_cv_prog_make_${ac_make}_set=yes;;
2260 eval ac_cv_prog_make_${ac_make}_set=no;;
2264 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2265 { echo "$as_me:$LINENO: result: yes" >&5
2266 echo "${ECHO_T}yes" >&6; }
2269 { echo "$as_me:$LINENO: result: no" >&5
2270 echo "${ECHO_T}no" >&6; }
2271 SET_MAKE="MAKE=${MAKE-make}"
2274 rm -rf .tst 2>/dev/null
2275 mkdir .tst 2>/dev/null
2276 if test -d .tst; then
2281 rmdir .tst 2>/dev/null
2283 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2284 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2285 # is not polluted with repeated "-I."
2286 am__isrc=' -I$(srcdir)'
2287 # test to see if srcdir already configured
2288 if test -f $srcdir/config.status; then
2289 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2290 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2291 { (exit 1); exit 1; }; }
2295 # test whether we have cygpath
2296 if test -z "$CYGPATH_W"; then
2297 if (cygpath --version) >/dev/null 2>/dev/null; then
2298 CYGPATH_W='cygpath -w'
2305 # Define the identity of the package.
2310 cat >>confdefs.h <<_ACEOF
2311 #define PACKAGE "$PACKAGE"
2315 cat >>confdefs.h <<_ACEOF
2316 #define VERSION "$VERSION"
2319 # Some tools Automake needs.
2321 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2324 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2327 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2330 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2333 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2335 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2337 # Installed binaries are usually stripped using `strip' when the user
2338 # run `make install-strip'. However `strip' might not be the right
2339 # tool to use in cross-compilation environments, therefore Automake
2340 # will honor the `STRIP' environment variable to overrule this program.
2341 if test "$cross_compiling" != no; then
2342 if test -n "$ac_tool_prefix"; then
2343 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2344 set dummy ${ac_tool_prefix}strip; ac_word=$2
2345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2347 if test "${ac_cv_prog_STRIP+set}" = set; then
2348 echo $ECHO_N "(cached) $ECHO_C" >&6
2350 if test -n "$STRIP"; then
2351 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2357 test -z "$as_dir" && as_dir=.
2358 for ac_exec_ext in '' $ac_executable_extensions; do
2359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2360 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2370 STRIP=$ac_cv_prog_STRIP
2371 if test -n "$STRIP"; then
2372 { echo "$as_me:$LINENO: result: $STRIP" >&5
2373 echo "${ECHO_T}$STRIP" >&6; }
2375 { echo "$as_me:$LINENO: result: no" >&5
2376 echo "${ECHO_T}no" >&6; }
2381 if test -z "$ac_cv_prog_STRIP"; then
2383 # Extract the first word of "strip", so it can be a program name with args.
2384 set dummy strip; ac_word=$2
2385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2387 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2388 echo $ECHO_N "(cached) $ECHO_C" >&6
2390 if test -n "$ac_ct_STRIP"; then
2391 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2397 test -z "$as_dir" && as_dir=.
2398 for ac_exec_ext in '' $ac_executable_extensions; do
2399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2400 ac_cv_prog_ac_ct_STRIP="strip"
2401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2410 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2411 if test -n "$ac_ct_STRIP"; then
2412 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2413 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2415 { echo "$as_me:$LINENO: result: no" >&5
2416 echo "${ECHO_T}no" >&6; }
2419 if test "x$ac_ct_STRIP" = x; then
2422 case $cross_compiling:$ac_tool_warned in
2424 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2425 whose name does not start with the host triplet. If you think this
2426 configuration is useful to you, please write to autoconf@gnu.org." >&5
2427 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2428 whose name does not start with the host triplet. If you think this
2429 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2430 ac_tool_warned=yes ;;
2435 STRIP="$ac_cv_prog_STRIP"
2439 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2441 # We need awk for the "check" target. The system "awk" is bad on
2443 # Always define AMTAR for backward compatibility.
2445 AMTAR=${AMTAR-"${am_missing_run}tar"}
2447 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2453 ac_config_headers="$ac_config_headers src/config.h"
2456 # Checks for programs.
2458 ac_cpp='$CPP $CPPFLAGS'
2459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2462 if test -n "$ac_tool_prefix"; then
2463 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2464 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2467 if test "${ac_cv_prog_CC+set}" = set; then
2468 echo $ECHO_N "(cached) $ECHO_C" >&6
2470 if test -n "$CC"; then
2471 ac_cv_prog_CC="$CC" # Let the user override the test.
2473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477 test -z "$as_dir" && as_dir=.
2478 for ac_exec_ext in '' $ac_executable_extensions; do
2479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2480 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2491 if test -n "$CC"; then
2492 { echo "$as_me:$LINENO: result: $CC" >&5
2493 echo "${ECHO_T}$CC" >&6; }
2495 { echo "$as_me:$LINENO: result: no" >&5
2496 echo "${ECHO_T}no" >&6; }
2501 if test -z "$ac_cv_prog_CC"; then
2503 # Extract the first word of "gcc", so it can be a program name with args.
2504 set dummy gcc; ac_word=$2
2505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2507 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2508 echo $ECHO_N "(cached) $ECHO_C" >&6
2510 if test -n "$ac_ct_CC"; then
2511 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517 test -z "$as_dir" && as_dir=.
2518 for ac_exec_ext in '' $ac_executable_extensions; do
2519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2520 ac_cv_prog_ac_ct_CC="gcc"
2521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2530 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2531 if test -n "$ac_ct_CC"; then
2532 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2533 echo "${ECHO_T}$ac_ct_CC" >&6; }
2535 { echo "$as_me:$LINENO: result: no" >&5
2536 echo "${ECHO_T}no" >&6; }
2539 if test "x$ac_ct_CC" = x; then
2542 case $cross_compiling:$ac_tool_warned in
2544 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2545 whose name does not start with the host triplet. If you think this
2546 configuration is useful to you, please write to autoconf@gnu.org." >&5
2547 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2548 whose name does not start with the host triplet. If you think this
2549 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2550 ac_tool_warned=yes ;;
2558 if test -z "$CC"; then
2559 if test -n "$ac_tool_prefix"; then
2560 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2561 set dummy ${ac_tool_prefix}cc; ac_word=$2
2562 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2564 if test "${ac_cv_prog_CC+set}" = set; then
2565 echo $ECHO_N "(cached) $ECHO_C" >&6
2567 if test -n "$CC"; then
2568 ac_cv_prog_CC="$CC" # Let the user override the test.
2570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574 test -z "$as_dir" && as_dir=.
2575 for ac_exec_ext in '' $ac_executable_extensions; do
2576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2577 ac_cv_prog_CC="${ac_tool_prefix}cc"
2578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2588 if test -n "$CC"; then
2589 { echo "$as_me:$LINENO: result: $CC" >&5
2590 echo "${ECHO_T}$CC" >&6; }
2592 { echo "$as_me:$LINENO: result: no" >&5
2593 echo "${ECHO_T}no" >&6; }
2599 if test -z "$CC"; then
2600 # Extract the first word of "cc", so it can be a program name with args.
2601 set dummy cc; ac_word=$2
2602 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2604 if test "${ac_cv_prog_CC+set}" = set; then
2605 echo $ECHO_N "(cached) $ECHO_C" >&6
2607 if test -n "$CC"; then
2608 ac_cv_prog_CC="$CC" # Let the user override the test.
2611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2615 test -z "$as_dir" && as_dir=.
2616 for ac_exec_ext in '' $ac_executable_extensions; do
2617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2618 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2619 ac_prog_rejected=yes
2623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2630 if test $ac_prog_rejected = yes; then
2631 # We found a bogon in the path, so make sure we never use it.
2632 set dummy $ac_cv_prog_CC
2634 if test $# != 0; then
2635 # We chose a different compiler from the bogus one.
2636 # However, it has the same basename, so the bogon will be chosen
2637 # first if we set CC to just the basename; use the full file name.
2639 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2645 if test -n "$CC"; then
2646 { echo "$as_me:$LINENO: result: $CC" >&5
2647 echo "${ECHO_T}$CC" >&6; }
2649 { echo "$as_me:$LINENO: result: no" >&5
2650 echo "${ECHO_T}no" >&6; }
2655 if test -z "$CC"; then
2656 if test -n "$ac_tool_prefix"; then
2657 for ac_prog in cl.exe
2659 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2660 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2663 if test "${ac_cv_prog_CC+set}" = set; then
2664 echo $ECHO_N "(cached) $ECHO_C" >&6
2666 if test -n "$CC"; then
2667 ac_cv_prog_CC="$CC" # Let the user override the test.
2669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673 test -z "$as_dir" && as_dir=.
2674 for ac_exec_ext in '' $ac_executable_extensions; do
2675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2676 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2687 if test -n "$CC"; then
2688 { echo "$as_me:$LINENO: result: $CC" >&5
2689 echo "${ECHO_T}$CC" >&6; }
2691 { echo "$as_me:$LINENO: result: no" >&5
2692 echo "${ECHO_T}no" >&6; }
2696 test -n "$CC" && break
2699 if test -z "$CC"; then
2701 for ac_prog in cl.exe
2703 # Extract the first word of "$ac_prog", so it can be a program name with args.
2704 set dummy $ac_prog; ac_word=$2
2705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2707 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2708 echo $ECHO_N "(cached) $ECHO_C" >&6
2710 if test -n "$ac_ct_CC"; then
2711 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2717 test -z "$as_dir" && as_dir=.
2718 for ac_exec_ext in '' $ac_executable_extensions; do
2719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2720 ac_cv_prog_ac_ct_CC="$ac_prog"
2721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2730 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2731 if test -n "$ac_ct_CC"; then
2732 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2733 echo "${ECHO_T}$ac_ct_CC" >&6; }
2735 { echo "$as_me:$LINENO: result: no" >&5
2736 echo "${ECHO_T}no" >&6; }
2740 test -n "$ac_ct_CC" && break
2743 if test "x$ac_ct_CC" = x; then
2746 case $cross_compiling:$ac_tool_warned in
2748 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2749 whose name does not start with the host triplet. If you think this
2750 configuration is useful to you, please write to autoconf@gnu.org." >&5
2751 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2752 whose name does not start with the host triplet. If you think this
2753 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2754 ac_tool_warned=yes ;;
2763 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2764 See \`config.log' for more details." >&5
2765 echo "$as_me: error: no acceptable C compiler found in \$PATH
2766 See \`config.log' for more details." >&2;}
2767 { (exit 1); exit 1; }; }
2769 # Provide some information about the compiler.
2770 echo "$as_me:$LINENO: checking for C compiler version" >&5
2771 ac_compiler=`set X $ac_compile; echo $2`
2772 { (ac_try="$ac_compiler --version >&5"
2774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2775 *) ac_try_echo=$ac_try;;
2777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2778 (eval "$ac_compiler --version >&5") 2>&5
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); }
2782 { (ac_try="$ac_compiler -v >&5"
2784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2785 *) ac_try_echo=$ac_try;;
2787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2788 (eval "$ac_compiler -v >&5") 2>&5
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); }
2792 { (ac_try="$ac_compiler -V >&5"
2794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2795 *) ac_try_echo=$ac_try;;
2797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2798 (eval "$ac_compiler -V >&5") 2>&5
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); }
2803 cat >conftest.$ac_ext <<_ACEOF
2806 cat confdefs.h >>conftest.$ac_ext
2807 cat >>conftest.$ac_ext <<_ACEOF
2808 /* end confdefs.h. */
2818 ac_clean_files_save=$ac_clean_files
2819 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2820 # Try to create an executable without -o first, disregard a.out.
2821 # It will help us diagnose broken compilers, and finding out an intuition
2823 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2824 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2825 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2827 # List of possible output files, starting from the most likely.
2828 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2829 # only as a last resort. b.out is created by i960 compilers.
2830 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2832 # The IRIX 6 linker writes into existing files which may not be
2833 # executable, retaining their permissions. Remove them first so a
2834 # subsequent execution test works.
2836 for ac_file in $ac_files
2839 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2840 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2845 if { (ac_try="$ac_link_default"
2847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2848 *) ac_try_echo=$ac_try;;
2850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2851 (eval "$ac_link_default") 2>&5
2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); }; then
2855 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2856 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2857 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2858 # so that the user can short-circuit this test for compilers unknown to
2860 for ac_file in $ac_files ''
2862 test -f "$ac_file" || continue
2864 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2867 # We found the default executable, but exeext='' is most
2871 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2873 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2875 # We set ac_cv_exeext here because the later test for it is not
2876 # safe: cross compilers may not add the suffix if given an `-o'
2877 # argument, so we may need to know it at that point already.
2878 # Even if this section looks crufty: it has the advantage of
2885 test "$ac_cv_exeext" = no && ac_cv_exeext=
2891 { echo "$as_me:$LINENO: result: $ac_file" >&5
2892 echo "${ECHO_T}$ac_file" >&6; }
2893 if test -z "$ac_file"; then
2894 echo "$as_me: failed program was:" >&5
2895 sed 's/^/| /' conftest.$ac_ext >&5
2897 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2898 See \`config.log' for more details." >&5
2899 echo "$as_me: error: C compiler cannot create executables
2900 See \`config.log' for more details." >&2;}
2901 { (exit 77); exit 77; }; }
2904 ac_exeext=$ac_cv_exeext
2906 # Check that the compiler produces executables we can run. If not, either
2907 # the compiler is broken, or we cross compile.
2908 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2909 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2910 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2911 # If not cross compiling, check that we can run a simple program.
2912 if test "$cross_compiling" != yes; then
2913 if { ac_try='./$ac_file'
2914 { (case "(($ac_try" in
2915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2916 *) ac_try_echo=$ac_try;;
2918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2919 (eval "$ac_try") 2>&5
2921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922 (exit $ac_status); }; }; then
2925 if test "$cross_compiling" = maybe; then
2928 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2929 If you meant to cross compile, use \`--host'.
2930 See \`config.log' for more details." >&5
2931 echo "$as_me: error: cannot run C compiled programs.
2932 If you meant to cross compile, use \`--host'.
2933 See \`config.log' for more details." >&2;}
2934 { (exit 1); exit 1; }; }
2938 { echo "$as_me:$LINENO: result: yes" >&5
2939 echo "${ECHO_T}yes" >&6; }
2941 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2942 ac_clean_files=$ac_clean_files_save
2943 # Check that the compiler produces executables we can run. If not, either
2944 # the compiler is broken, or we cross compile.
2945 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2946 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2947 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2948 echo "${ECHO_T}$cross_compiling" >&6; }
2950 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2951 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2952 if { (ac_try="$ac_link"
2954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2955 *) ac_try_echo=$ac_try;;
2957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2958 (eval "$ac_link") 2>&5
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); }; then
2962 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2963 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2964 # work properly (i.e., refer to `conftest.exe'), while it won't with
2966 for ac_file in conftest.exe conftest conftest.*; do
2967 test -f "$ac_file" || continue
2969 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2970 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2976 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2977 See \`config.log' for more details." >&5
2978 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2979 See \`config.log' for more details." >&2;}
2980 { (exit 1); exit 1; }; }
2983 rm -f conftest$ac_cv_exeext
2984 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2985 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2987 rm -f conftest.$ac_ext
2988 EXEEXT=$ac_cv_exeext
2990 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2991 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2992 if test "${ac_cv_objext+set}" = set; then
2993 echo $ECHO_N "(cached) $ECHO_C" >&6
2995 cat >conftest.$ac_ext <<_ACEOF
2998 cat confdefs.h >>conftest.$ac_ext
2999 cat >>conftest.$ac_ext <<_ACEOF
3000 /* end confdefs.h. */
3010 rm -f conftest.o conftest.obj
3011 if { (ac_try="$ac_compile"
3013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3014 *) ac_try_echo=$ac_try;;
3016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3017 (eval "$ac_compile") 2>&5
3019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020 (exit $ac_status); }; then
3021 for ac_file in conftest.o conftest.obj conftest.*; do
3022 test -f "$ac_file" || continue;
3024 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3025 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3030 echo "$as_me: failed program was:" >&5
3031 sed 's/^/| /' conftest.$ac_ext >&5
3033 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3034 See \`config.log' for more details." >&5
3035 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3036 See \`config.log' for more details." >&2;}
3037 { (exit 1); exit 1; }; }
3040 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3042 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3043 echo "${ECHO_T}$ac_cv_objext" >&6; }
3044 OBJEXT=$ac_cv_objext
3046 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3047 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3048 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3049 echo $ECHO_N "(cached) $ECHO_C" >&6
3051 cat >conftest.$ac_ext <<_ACEOF
3054 cat confdefs.h >>conftest.$ac_ext
3055 cat >>conftest.$ac_ext <<_ACEOF
3056 /* end confdefs.h. */
3069 rm -f conftest.$ac_objext
3070 if { (ac_try="$ac_compile"
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3076 (eval "$ac_compile") 2>conftest.er1
3078 grep -v '^ *+' conftest.er1 >conftest.err
3080 cat conftest.err >&5
3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); } && {
3083 test -z "$ac_c_werror_flag" ||
3084 test ! -s conftest.err
3085 } && test -s conftest.$ac_objext; then
3088 echo "$as_me: failed program was:" >&5
3089 sed 's/^/| /' conftest.$ac_ext >&5
3094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3095 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3098 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3099 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3100 GCC=`test $ac_compiler_gnu = yes && echo yes`
3101 ac_test_CFLAGS=${CFLAGS+set}
3102 ac_save_CFLAGS=$CFLAGS
3103 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3104 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3105 if test "${ac_cv_prog_cc_g+set}" = set; then
3106 echo $ECHO_N "(cached) $ECHO_C" >&6
3108 ac_save_c_werror_flag=$ac_c_werror_flag
3109 ac_c_werror_flag=yes
3112 cat >conftest.$ac_ext <<_ACEOF
3115 cat confdefs.h >>conftest.$ac_ext
3116 cat >>conftest.$ac_ext <<_ACEOF
3117 /* end confdefs.h. */
3127 rm -f conftest.$ac_objext
3128 if { (ac_try="$ac_compile"
3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131 *) ac_try_echo=$ac_try;;
3133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3134 (eval "$ac_compile") 2>conftest.er1
3136 grep -v '^ *+' conftest.er1 >conftest.err
3138 cat conftest.err >&5
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); } && {
3141 test -z "$ac_c_werror_flag" ||
3142 test ! -s conftest.err
3143 } && test -s conftest.$ac_objext; then
3146 echo "$as_me: failed program was:" >&5
3147 sed 's/^/| /' conftest.$ac_ext >&5
3150 cat >conftest.$ac_ext <<_ACEOF
3153 cat confdefs.h >>conftest.$ac_ext
3154 cat >>conftest.$ac_ext <<_ACEOF
3155 /* end confdefs.h. */
3165 rm -f conftest.$ac_objext
3166 if { (ac_try="$ac_compile"
3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169 *) ac_try_echo=$ac_try;;
3171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172 (eval "$ac_compile") 2>conftest.er1
3174 grep -v '^ *+' conftest.er1 >conftest.err
3176 cat conftest.err >&5
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); } && {
3179 test -z "$ac_c_werror_flag" ||
3180 test ! -s conftest.err
3181 } && test -s conftest.$ac_objext; then
3184 echo "$as_me: failed program was:" >&5
3185 sed 's/^/| /' conftest.$ac_ext >&5
3187 ac_c_werror_flag=$ac_save_c_werror_flag
3189 cat >conftest.$ac_ext <<_ACEOF
3192 cat confdefs.h >>conftest.$ac_ext
3193 cat >>conftest.$ac_ext <<_ACEOF
3194 /* end confdefs.h. */
3204 rm -f conftest.$ac_objext
3205 if { (ac_try="$ac_compile"
3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208 *) ac_try_echo=$ac_try;;
3210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3211 (eval "$ac_compile") 2>conftest.er1
3213 grep -v '^ *+' conftest.er1 >conftest.err
3215 cat conftest.err >&5
3216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217 (exit $ac_status); } && {
3218 test -z "$ac_c_werror_flag" ||
3219 test ! -s conftest.err
3220 } && test -s conftest.$ac_objext; then
3223 echo "$as_me: failed program was:" >&5
3224 sed 's/^/| /' conftest.$ac_ext >&5
3229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3236 ac_c_werror_flag=$ac_save_c_werror_flag
3238 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3239 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3240 if test "$ac_test_CFLAGS" = set; then
3241 CFLAGS=$ac_save_CFLAGS
3242 elif test $ac_cv_prog_cc_g = yes; then
3243 if test "$GCC" = yes; then
3249 if test "$GCC" = yes; then
3255 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3256 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3257 if test "${ac_cv_prog_cc_c89+set}" = set; then
3258 echo $ECHO_N "(cached) $ECHO_C" >&6
3260 ac_cv_prog_cc_c89=no
3262 cat >conftest.$ac_ext <<_ACEOF
3265 cat confdefs.h >>conftest.$ac_ext
3266 cat >>conftest.$ac_ext <<_ACEOF
3267 /* end confdefs.h. */
3270 #include <sys/types.h>
3271 #include <sys/stat.h>
3272 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3273 struct buf { int x; };
3274 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3275 static char *e (p, i)
3281 static char *f (char * (*g) (char **, int), char **p, ...)
3286 s = g (p, va_arg (v,int));
3291 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3292 function prototypes and stuff, but not '\xHH' hex character constants.
3293 These don't provoke an error unfortunately, instead are silently treated
3294 as 'x'. The following induces an error, until -std is added to get
3295 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3296 array size at least. It's necessary to write '\x00'==0 to get something
3297 that's true only with -std. */
3298 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3300 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3301 inside strings and character constants. */
3303 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3305 int test (int i, double x);
3306 struct s1 {int (*f) (int a);};
3307 struct s2 {int (*f) (double a);};
3308 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3314 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3319 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3320 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3322 CC="$ac_save_CC $ac_arg"
3323 rm -f conftest.$ac_objext
3324 if { (ac_try="$ac_compile"
3326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3327 *) ac_try_echo=$ac_try;;
3329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3330 (eval "$ac_compile") 2>conftest.er1
3332 grep -v '^ *+' conftest.er1 >conftest.err
3334 cat conftest.err >&5
3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336 (exit $ac_status); } && {
3337 test -z "$ac_c_werror_flag" ||
3338 test ! -s conftest.err
3339 } && test -s conftest.$ac_objext; then
3340 ac_cv_prog_cc_c89=$ac_arg
3342 echo "$as_me: failed program was:" >&5
3343 sed 's/^/| /' conftest.$ac_ext >&5
3348 rm -f core conftest.err conftest.$ac_objext
3349 test "x$ac_cv_prog_cc_c89" != "xno" && break
3351 rm -f conftest.$ac_ext
3356 case "x$ac_cv_prog_cc_c89" in
3358 { echo "$as_me:$LINENO: result: none needed" >&5
3359 echo "${ECHO_T}none needed" >&6; } ;;
3361 { echo "$as_me:$LINENO: result: unsupported" >&5
3362 echo "${ECHO_T}unsupported" >&6; } ;;
3364 CC="$CC $ac_cv_prog_cc_c89"
3365 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3366 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3371 ac_cpp='$CPP $CPPFLAGS'
3372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3375 DEPDIR="${am__leading_dot}deps"
3377 ac_config_commands="$ac_config_commands depfiles"
3380 am_make=${MAKE-make}
3381 cat > confinc << 'END'
3386 # If we don't find an include directive, just comment out the code.
3387 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3388 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3392 # First try GNU make style include.
3393 echo "include confinc" > confmf
3394 # We grep out `Entering directory' and `Leaving directory'
3395 # messages which can occur if `w' ends up in MAKEFLAGS.
3396 # In particular we don't look at `^make:' because GNU make might
3397 # be invoked under some other name (usually "gmake"), in which
3398 # case it prints its new name instead of `make'.
3399 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3404 # Now try BSD make style include.
3405 if test "$am__include" = "#"; then
3406 echo '.include "confinc"' > confmf
3407 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3408 am__include=.include
3415 { echo "$as_me:$LINENO: result: $_am_result" >&5
3416 echo "${ECHO_T}$_am_result" >&6; }
3417 rm -f confinc confmf
3419 # Check whether --enable-dependency-tracking was given.
3420 if test "${enable_dependency_tracking+set}" = set; then
3421 enableval=$enable_dependency_tracking;
3424 if test "x$enable_dependency_tracking" != xno; then
3425 am_depcomp="$ac_aux_dir/depcomp"
3428 if test "x$enable_dependency_tracking" != xno; then
3438 depcc="$CC" am_compiler_list=
3440 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3441 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3442 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3443 echo $ECHO_N "(cached) $ECHO_C" >&6
3445 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3446 # We make a subdir and do the tests there. Otherwise we can end up
3447 # making bogus files that we don't know about and never remove. For
3448 # instance it was reported that on HP-UX the gcc test will end up
3449 # making a dummy file named `D' -- because `-MD' means `put the output
3452 # Copy depcomp to subdir because otherwise we won't find it if we're
3453 # using a relative directory.
3454 cp "$am_depcomp" conftest.dir
3456 # We will build objects and dependencies in a subdirectory because
3457 # it helps to detect inapplicable dependency modes. For instance
3458 # both Tru64's cc and ICC support -MD to output dependencies as a
3459 # side effect of compilation, but ICC will put the dependencies in
3460 # the current directory while Tru64 will put them in the object
3464 am_cv_CC_dependencies_compiler_type=none
3465 if test "$am_compiler_list" = ""; then
3466 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3468 for depmode in $am_compiler_list; do
3469 # Setup a source with many dependencies, because some compilers
3470 # like to wrap large dependency lists on column 80 (with \), and
3471 # we should not choose a depcomp mode which is confused by this.
3473 # We need to recreate these files for each test, as the compiler may
3474 # overwrite some of them when testing with obscure command lines.
3475 # This happens at least with the AIX C compiler.
3477 for i in 1 2 3 4 5 6; do
3478 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3479 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3480 # Solaris 8's {/usr,}/bin/sh.
3481 touch sub/conftst$i.h
3483 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3487 # after this tag, mechanisms are not by side-effect, so they'll
3488 # only be used when explicitly requested
3489 if test "x$enable_dependency_tracking" = xyes; then
3497 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3498 # mode. It turns out that the SunPro C++ compiler does not properly
3499 # handle `-M -o', and we need to detect this.
3500 if depmode=$depmode \
3501 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3502 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3503 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3504 >/dev/null 2>conftest.err &&
3505 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3506 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3507 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3508 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3509 # icc doesn't choke on unknown options, it will just issue warnings
3510 # or remarks (even with -Werror). So we grep stderr for any message
3511 # that says an option was ignored or not supported.
3512 # When given -MP, icc 7.0 and 7.1 complain thusly:
3513 # icc: Command line warning: ignoring option '-M'; no argument required
3514 # The diagnosis changed in icc 8.0:
3515 # icc: Command line remark: option '-MP' not supported
3516 if (grep 'ignoring option' conftest.err ||
3517 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3518 am_cv_CC_dependencies_compiler_type=$depmode
3527 am_cv_CC_dependencies_compiler_type=none
3531 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3532 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3533 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3536 test "x$enable_dependency_tracking" != xno \
3537 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3539 am__fastdepCC_FALSE='#'
3541 am__fastdepCC_TRUE='#'
3542 am__fastdepCC_FALSE=
3547 ac_cpp='$CPP $CPPFLAGS'
3548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3551 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3552 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3553 # On Suns, sometimes $CPP names a directory.
3554 if test -n "$CPP" && test -d "$CPP"; then
3557 if test -z "$CPP"; then
3558 if test "${ac_cv_prog_CPP+set}" = set; then
3559 echo $ECHO_N "(cached) $ECHO_C" >&6
3561 # Double quotes because CPP needs to be expanded
3562 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3565 for ac_c_preproc_warn_flag in '' yes
3567 # Use a header file that comes with gcc, so configuring glibc
3568 # with a fresh cross-compiler works.
3569 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3570 # <limits.h> exists even on freestanding compilers.
3571 # On the NeXT, cc -E runs the code through the compiler's parser,
3572 # not just through cpp. "Syntax error" is here to catch this case.
3573 cat >conftest.$ac_ext <<_ACEOF
3576 cat confdefs.h >>conftest.$ac_ext
3577 cat >>conftest.$ac_ext <<_ACEOF
3578 /* end confdefs.h. */
3580 # include <limits.h>
3582 # include <assert.h>
3586 if { (ac_try="$ac_cpp conftest.$ac_ext"
3588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589 *) ac_try_echo=$ac_try;;
3591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3592 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3594 grep -v '^ *+' conftest.er1 >conftest.err
3596 cat conftest.err >&5
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); } >/dev/null && {
3599 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3600 test ! -s conftest.err
3604 echo "$as_me: failed program was:" >&5
3605 sed 's/^/| /' conftest.$ac_ext >&5
3607 # Broken: fails on valid input.
3611 rm -f conftest.err conftest.$ac_ext
3613 # OK, works on sane cases. Now check whether nonexistent headers
3614 # can be detected and how.
3615 cat >conftest.$ac_ext <<_ACEOF
3618 cat confdefs.h >>conftest.$ac_ext
3619 cat >>conftest.$ac_ext <<_ACEOF
3620 /* end confdefs.h. */
3621 #include <ac_nonexistent.h>
3623 if { (ac_try="$ac_cpp conftest.$ac_ext"
3625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3626 *) ac_try_echo=$ac_try;;
3628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3629 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3631 grep -v '^ *+' conftest.er1 >conftest.err
3633 cat conftest.err >&5
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); } >/dev/null && {
3636 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3637 test ! -s conftest.err
3639 # Broken: success on invalid input.
3642 echo "$as_me: failed program was:" >&5
3643 sed 's/^/| /' conftest.$ac_ext >&5
3645 # Passes both tests.
3650 rm -f conftest.err conftest.$ac_ext
3653 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3654 rm -f conftest.err conftest.$ac_ext
3655 if $ac_preproc_ok; then
3667 { echo "$as_me:$LINENO: result: $CPP" >&5
3668 echo "${ECHO_T}$CPP" >&6; }
3670 for ac_c_preproc_warn_flag in '' yes
3672 # Use a header file that comes with gcc, so configuring glibc
3673 # with a fresh cross-compiler works.
3674 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3675 # <limits.h> exists even on freestanding compilers.
3676 # On the NeXT, cc -E runs the code through the compiler's parser,
3677 # not just through cpp. "Syntax error" is here to catch this case.
3678 cat >conftest.$ac_ext <<_ACEOF
3681 cat confdefs.h >>conftest.$ac_ext
3682 cat >>conftest.$ac_ext <<_ACEOF
3683 /* end confdefs.h. */
3685 # include <limits.h>
3687 # include <assert.h>
3691 if { (ac_try="$ac_cpp conftest.$ac_ext"
3693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3694 *) ac_try_echo=$ac_try;;
3696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3697 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3699 grep -v '^ *+' conftest.er1 >conftest.err
3701 cat conftest.err >&5
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); } >/dev/null && {
3704 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3705 test ! -s conftest.err
3709 echo "$as_me: failed program was:" >&5
3710 sed 's/^/| /' conftest.$ac_ext >&5
3712 # Broken: fails on valid input.
3716 rm -f conftest.err conftest.$ac_ext
3718 # OK, works on sane cases. Now check whether nonexistent headers
3719 # can be detected and how.
3720 cat >conftest.$ac_ext <<_ACEOF
3723 cat confdefs.h >>conftest.$ac_ext
3724 cat >>conftest.$ac_ext <<_ACEOF
3725 /* end confdefs.h. */
3726 #include <ac_nonexistent.h>
3728 if { (ac_try="$ac_cpp conftest.$ac_ext"
3730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3731 *) ac_try_echo=$ac_try;;
3733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3734 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3736 grep -v '^ *+' conftest.er1 >conftest.err
3738 cat conftest.err >&5
3739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740 (exit $ac_status); } >/dev/null && {
3741 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3742 test ! -s conftest.err
3744 # Broken: success on invalid input.
3747 echo "$as_me: failed program was:" >&5
3748 sed 's/^/| /' conftest.$ac_ext >&5
3750 # Passes both tests.
3755 rm -f conftest.err conftest.$ac_ext
3758 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3759 rm -f conftest.err conftest.$ac_ext
3760 if $ac_preproc_ok; then
3763 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3764 See \`config.log' for more details." >&5
3765 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3766 See \`config.log' for more details." >&2;}
3767 { (exit 1); exit 1; }; }
3771 ac_cpp='$CPP $CPPFLAGS'
3772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3777 ac_cpp='$CXXCPP $CPPFLAGS'
3778 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3779 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3780 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3781 if test -z "$CXX"; then
3782 if test -n "$CCC"; then
3785 if test -n "$ac_tool_prefix"; then
3786 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3788 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3789 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3790 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3792 if test "${ac_cv_prog_CXX+set}" = set; then
3793 echo $ECHO_N "(cached) $ECHO_C" >&6
3795 if test -n "$CXX"; then
3796 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3802 test -z "$as_dir" && as_dir=.
3803 for ac_exec_ext in '' $ac_executable_extensions; do
3804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3805 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3816 if test -n "$CXX"; then
3817 { echo "$as_me:$LINENO: result: $CXX" >&5
3818 echo "${ECHO_T}$CXX" >&6; }
3820 { echo "$as_me:$LINENO: result: no" >&5
3821 echo "${ECHO_T}no" >&6; }
3825 test -n "$CXX" && break
3828 if test -z "$CXX"; then
3830 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3832 # Extract the first word of "$ac_prog", so it can be a program name with args.
3833 set dummy $ac_prog; ac_word=$2
3834 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3836 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3837 echo $ECHO_N "(cached) $ECHO_C" >&6
3839 if test -n "$ac_ct_CXX"; then
3840 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3846 test -z "$as_dir" && as_dir=.
3847 for ac_exec_ext in '' $ac_executable_extensions; do
3848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3849 ac_cv_prog_ac_ct_CXX="$ac_prog"
3850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3859 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3860 if test -n "$ac_ct_CXX"; then
3861 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3862 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3864 { echo "$as_me:$LINENO: result: no" >&5
3865 echo "${ECHO_T}no" >&6; }
3869 test -n "$ac_ct_CXX" && break
3872 if test "x$ac_ct_CXX" = x; then
3875 case $cross_compiling:$ac_tool_warned in
3877 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3878 whose name does not start with the host triplet. If you think this
3879 configuration is useful to you, please write to autoconf@gnu.org." >&5
3880 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3881 whose name does not start with the host triplet. If you think this
3882 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3883 ac_tool_warned=yes ;;
3891 # Provide some information about the compiler.
3892 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3893 ac_compiler=`set X $ac_compile; echo $2`
3894 { (ac_try="$ac_compiler --version >&5"
3896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3897 *) ac_try_echo=$ac_try;;
3899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3900 (eval "$ac_compiler --version >&5") 2>&5
3902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903 (exit $ac_status); }
3904 { (ac_try="$ac_compiler -v >&5"
3906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3907 *) ac_try_echo=$ac_try;;
3909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3910 (eval "$ac_compiler -v >&5") 2>&5
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); }
3914 { (ac_try="$ac_compiler -V >&5"
3916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3917 *) ac_try_echo=$ac_try;;
3919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3920 (eval "$ac_compiler -V >&5") 2>&5
3922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923 (exit $ac_status); }
3925 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3926 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3927 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3928 echo $ECHO_N "(cached) $ECHO_C" >&6
3930 cat >conftest.$ac_ext <<_ACEOF
3933 cat confdefs.h >>conftest.$ac_ext
3934 cat >>conftest.$ac_ext <<_ACEOF
3935 /* end confdefs.h. */
3948 rm -f conftest.$ac_objext
3949 if { (ac_try="$ac_compile"
3951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3952 *) ac_try_echo=$ac_try;;
3954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3955 (eval "$ac_compile") 2>conftest.er1
3957 grep -v '^ *+' conftest.er1 >conftest.err
3959 cat conftest.err >&5
3960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961 (exit $ac_status); } && {
3962 test -z "$ac_cxx_werror_flag" ||
3963 test ! -s conftest.err
3964 } && test -s conftest.$ac_objext; then
3967 echo "$as_me: failed program was:" >&5
3968 sed 's/^/| /' conftest.$ac_ext >&5
3973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3974 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3977 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3978 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3979 GXX=`test $ac_compiler_gnu = yes && echo yes`
3980 ac_test_CXXFLAGS=${CXXFLAGS+set}
3981 ac_save_CXXFLAGS=$CXXFLAGS
3982 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3983 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3984 if test "${ac_cv_prog_cxx_g+set}" = set; then
3985 echo $ECHO_N "(cached) $ECHO_C" >&6
3987 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3988 ac_cxx_werror_flag=yes
3991 cat >conftest.$ac_ext <<_ACEOF
3994 cat confdefs.h >>conftest.$ac_ext
3995 cat >>conftest.$ac_ext <<_ACEOF
3996 /* end confdefs.h. */
4006 rm -f conftest.$ac_objext
4007 if { (ac_try="$ac_compile"
4009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4010 *) ac_try_echo=$ac_try;;
4012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4013 (eval "$ac_compile") 2>conftest.er1
4015 grep -v '^ *+' conftest.er1 >conftest.err
4017 cat conftest.err >&5
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); } && {
4020 test -z "$ac_cxx_werror_flag" ||
4021 test ! -s conftest.err
4022 } && test -s conftest.$ac_objext; then
4023 ac_cv_prog_cxx_g=yes
4025 echo "$as_me: failed program was:" >&5
4026 sed 's/^/| /' conftest.$ac_ext >&5
4029 cat >conftest.$ac_ext <<_ACEOF
4032 cat confdefs.h >>conftest.$ac_ext
4033 cat >>conftest.$ac_ext <<_ACEOF
4034 /* end confdefs.h. */
4044 rm -f conftest.$ac_objext
4045 if { (ac_try="$ac_compile"
4047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4048 *) ac_try_echo=$ac_try;;
4050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4051 (eval "$ac_compile") 2>conftest.er1
4053 grep -v '^ *+' conftest.er1 >conftest.err
4055 cat conftest.err >&5
4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057 (exit $ac_status); } && {
4058 test -z "$ac_cxx_werror_flag" ||
4059 test ! -s conftest.err
4060 } && test -s conftest.$ac_objext; then
4063 echo "$as_me: failed program was:" >&5
4064 sed 's/^/| /' conftest.$ac_ext >&5
4066 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4068 cat >conftest.$ac_ext <<_ACEOF
4071 cat confdefs.h >>conftest.$ac_ext
4072 cat >>conftest.$ac_ext <<_ACEOF
4073 /* end confdefs.h. */
4083 rm -f conftest.$ac_objext
4084 if { (ac_try="$ac_compile"
4086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4087 *) ac_try_echo=$ac_try;;
4089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4090 (eval "$ac_compile") 2>conftest.er1
4092 grep -v '^ *+' conftest.er1 >conftest.err
4094 cat conftest.err >&5
4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096 (exit $ac_status); } && {
4097 test -z "$ac_cxx_werror_flag" ||
4098 test ! -s conftest.err
4099 } && test -s conftest.$ac_objext; then
4100 ac_cv_prog_cxx_g=yes
4102 echo "$as_me: failed program was:" >&5
4103 sed 's/^/| /' conftest.$ac_ext >&5
4108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4115 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4117 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4118 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4119 if test "$ac_test_CXXFLAGS" = set; then
4120 CXXFLAGS=$ac_save_CXXFLAGS
4121 elif test $ac_cv_prog_cxx_g = yes; then
4122 if test "$GXX" = yes; then
4128 if test "$GXX" = yes; then
4135 ac_cpp='$CPP $CPPFLAGS'
4136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4140 depcc="$CXX" am_compiler_list=
4142 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4143 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4144 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4145 echo $ECHO_N "(cached) $ECHO_C" >&6
4147 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4148 # We make a subdir and do the tests there. Otherwise we can end up
4149 # making bogus files that we don't know about and never remove. For
4150 # instance it was reported that on HP-UX the gcc test will end up
4151 # making a dummy file named `D' -- because `-MD' means `put the output
4154 # Copy depcomp to subdir because otherwise we won't find it if we're
4155 # using a relative directory.
4156 cp "$am_depcomp" conftest.dir
4158 # We will build objects and dependencies in a subdirectory because
4159 # it helps to detect inapplicable dependency modes. For instance
4160 # both Tru64's cc and ICC support -MD to output dependencies as a
4161 # side effect of compilation, but ICC will put the dependencies in
4162 # the current directory while Tru64 will put them in the object
4166 am_cv_CXX_dependencies_compiler_type=none
4167 if test "$am_compiler_list" = ""; then
4168 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4170 for depmode in $am_compiler_list; do
4171 # Setup a source with many dependencies, because some compilers
4172 # like to wrap large dependency lists on column 80 (with \), and
4173 # we should not choose a depcomp mode which is confused by this.
4175 # We need to recreate these files for each test, as the compiler may
4176 # overwrite some of them when testing with obscure command lines.
4177 # This happens at least with the AIX C compiler.
4179 for i in 1 2 3 4 5 6; do
4180 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4181 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4182 # Solaris 8's {/usr,}/bin/sh.
4183 touch sub/conftst$i.h
4185 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4189 # after this tag, mechanisms are not by side-effect, so they'll
4190 # only be used when explicitly requested
4191 if test "x$enable_dependency_tracking" = xyes; then
4199 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4200 # mode. It turns out that the SunPro C++ compiler does not properly
4201 # handle `-M -o', and we need to detect this.
4202 if depmode=$depmode \
4203 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4204 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4205 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4206 >/dev/null 2>conftest.err &&
4207 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4208 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4209 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4210 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4211 # icc doesn't choke on unknown options, it will just issue warnings
4212 # or remarks (even with -Werror). So we grep stderr for any message
4213 # that says an option was ignored or not supported.
4214 # When given -MP, icc 7.0 and 7.1 complain thusly:
4215 # icc: Command line warning: ignoring option '-M'; no argument required
4216 # The diagnosis changed in icc 8.0:
4217 # icc: Command line remark: option '-MP' not supported
4218 if (grep 'ignoring option' conftest.err ||
4219 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4220 am_cv_CXX_dependencies_compiler_type=$depmode
4229 am_cv_CXX_dependencies_compiler_type=none
4233 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4234 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4235 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4238 test "x$enable_dependency_tracking" != xno \
4239 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4240 am__fastdepCXX_TRUE=
4241 am__fastdepCXX_FALSE='#'
4243 am__fastdepCXX_TRUE='#'
4244 am__fastdepCXX_FALSE=
4248 if test "$GCC" = yes; then
4255 # let the Makefile know if we're gcc
4257 # Check whether --enable-shared was given.
4258 if test "${enable_shared+set}" = set; then
4259 enableval=$enable_shared; p=${PACKAGE-default}
4261 yes) enable_shared=yes ;;
4262 no) enable_shared=no ;;
4265 # Look at the argument we got. We use all the common list separators.
4266 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4267 for pkg in $enableval; do
4269 if test "X$pkg" = "X$p"; then
4281 # Check whether --enable-static was given.
4282 if test "${enable_static+set}" = set; then
4283 enableval=$enable_static; p=${PACKAGE-default}
4285 yes) enable_static=yes ;;
4286 no) enable_static=no ;;
4289 # Look at the argument we got. We use all the common list separators.
4290 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4291 for pkg in $enableval; do
4293 if test "X$pkg" = "X$p"; then
4305 # Check whether --enable-fast-install was given.
4306 if test "${enable_fast_install+set}" = set; then
4307 enableval=$enable_fast_install; p=${PACKAGE-default}
4309 yes) enable_fast_install=yes ;;
4310 no) enable_fast_install=no ;;
4312 enable_fast_install=no
4313 # Look at the argument we got. We use all the common list separators.
4314 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4315 for pkg in $enableval; do
4317 if test "X$pkg" = "X$p"; then
4318 enable_fast_install=yes
4325 enable_fast_install=yes
4329 # Make sure we can run config.sub.
4330 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4331 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4332 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4333 { (exit 1); exit 1; }; }
4335 { echo "$as_me:$LINENO: checking build system type" >&5
4336 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4337 if test "${ac_cv_build+set}" = set; then
4338 echo $ECHO_N "(cached) $ECHO_C" >&6
4340 ac_build_alias=$build_alias
4341 test "x$ac_build_alias" = x &&
4342 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4343 test "x$ac_build_alias" = x &&
4344 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4345 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4346 { (exit 1); exit 1; }; }
4347 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4348 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4349 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4350 { (exit 1); exit 1; }; }
4353 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4354 echo "${ECHO_T}$ac_cv_build" >&6; }
4355 case $ac_cv_build in
4357 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4358 echo "$as_me: error: invalid value of canonical build" >&2;}
4359 { (exit 1); exit 1; }; };;
4362 ac_save_IFS=$IFS; IFS='-'
4368 # Remember, the first character of IFS is used to create $*,
4369 # except with old shells:
4372 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4375 { echo "$as_me:$LINENO: checking host system type" >&5
4376 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4377 if test "${ac_cv_host+set}" = set; then
4378 echo $ECHO_N "(cached) $ECHO_C" >&6
4380 if test "x$host_alias" = x; then
4381 ac_cv_host=$ac_cv_build
4383 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4384 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4385 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4386 { (exit 1); exit 1; }; }
4390 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4391 echo "${ECHO_T}$ac_cv_host" >&6; }
4394 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4395 echo "$as_me: error: invalid value of canonical host" >&2;}
4396 { (exit 1); exit 1; }; };;
4399 ac_save_IFS=$IFS; IFS='-'
4405 # Remember, the first character of IFS is used to create $*,
4406 # except with old shells:
4409 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4412 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4413 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4414 if test "${lt_cv_path_SED+set}" = set; then
4415 echo $ECHO_N "(cached) $ECHO_C" >&6
4417 # Loop through the user's path and test for sed and gsed.
4418 # Then use that list of sed's as ones to test for truncation.
4419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4423 test -z "$as_dir" && as_dir=.
4424 for lt_ac_prog in sed gsed; do
4425 for ac_exec_ext in '' $ac_executable_extensions; do
4426 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4427 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4435 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4436 # along with /bin/sed that truncates output.
4437 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4438 test ! -f $lt_ac_sed && continue
4439 cat /dev/null > conftest.in
4441 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4442 # Check for GNU sed and select it if it is found.
4443 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4444 lt_cv_path_SED=$lt_ac_sed
4448 cat conftest.in conftest.in >conftest.tmp
4449 mv conftest.tmp conftest.in
4450 cp conftest.in conftest.nl
4452 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4453 cmp -s conftest.out conftest.nl || break
4454 # 10000 chars as input seems more than enough
4455 test $lt_ac_count -gt 10 && break
4456 lt_ac_count=`expr $lt_ac_count + 1`
4457 if test $lt_ac_count -gt $lt_ac_max; then
4458 lt_ac_max=$lt_ac_count
4459 lt_cv_path_SED=$lt_ac_sed
4468 { echo "$as_me:$LINENO: result: $SED" >&5
4469 echo "${ECHO_T}$SED" >&6; }
4471 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4472 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4473 if test "${ac_cv_path_GREP+set}" = set; then
4474 echo $ECHO_N "(cached) $ECHO_C" >&6
4476 # Extract the first word of "grep ggrep" to use in msg output
4477 if test -z "$GREP"; then
4478 set dummy grep ggrep; ac_prog_name=$2
4479 if test "${ac_cv_path_GREP+set}" = set; then
4480 echo $ECHO_N "(cached) $ECHO_C" >&6
4482 ac_path_GREP_found=false
4483 # Loop through the user's path and test for each of PROGNAME-LIST
4484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4485 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4488 test -z "$as_dir" && as_dir=.
4489 for ac_prog in grep ggrep; do
4490 for ac_exec_ext in '' $ac_executable_extensions; do
4491 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4492 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4493 # Check for GNU ac_path_GREP and select it if it is found.
4494 # Check for GNU $ac_path_GREP
4495 case `"$ac_path_GREP" --version 2>&1` in
4497 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4500 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4503 cat "conftest.in" "conftest.in" >"conftest.tmp"
4504 mv "conftest.tmp" "conftest.in"
4505 cp "conftest.in" "conftest.nl"
4506 echo 'GREP' >> "conftest.nl"
4507 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4508 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4509 ac_count=`expr $ac_count + 1`
4510 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4511 # Best one so far, save it but keep looking for a better one
4512 ac_cv_path_GREP="$ac_path_GREP"
4513 ac_path_GREP_max=$ac_count
4515 # 10*(2^10) chars as input seems more than enough
4516 test $ac_count -gt 10 && break
4518 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4522 $ac_path_GREP_found && break 3
4532 GREP="$ac_cv_path_GREP"
4533 if test -z "$GREP"; then
4534 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4535 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4536 { (exit 1); exit 1; }; }
4540 ac_cv_path_GREP=$GREP
4545 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4546 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4547 GREP="$ac_cv_path_GREP"
4550 { echo "$as_me:$LINENO: checking for egrep" >&5
4551 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4552 if test "${ac_cv_path_EGREP+set}" = set; then
4553 echo $ECHO_N "(cached) $ECHO_C" >&6
4555 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4556 then ac_cv_path_EGREP="$GREP -E"
4558 # Extract the first word of "egrep" to use in msg output
4559 if test -z "$EGREP"; then
4560 set dummy egrep; ac_prog_name=$2
4561 if test "${ac_cv_path_EGREP+set}" = set; then
4562 echo $ECHO_N "(cached) $ECHO_C" >&6
4564 ac_path_EGREP_found=false
4565 # Loop through the user's path and test for each of PROGNAME-LIST
4566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4570 test -z "$as_dir" && as_dir=.
4571 for ac_prog in egrep; do
4572 for ac_exec_ext in '' $ac_executable_extensions; do
4573 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4574 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4575 # Check for GNU ac_path_EGREP and select it if it is found.
4576 # Check for GNU $ac_path_EGREP
4577 case `"$ac_path_EGREP" --version 2>&1` in
4579 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4582 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4585 cat "conftest.in" "conftest.in" >"conftest.tmp"
4586 mv "conftest.tmp" "conftest.in"
4587 cp "conftest.in" "conftest.nl"
4588 echo 'EGREP' >> "conftest.nl"
4589 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4590 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4591 ac_count=`expr $ac_count + 1`
4592 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4593 # Best one so far, save it but keep looking for a better one
4594 ac_cv_path_EGREP="$ac_path_EGREP"
4595 ac_path_EGREP_max=$ac_count
4597 # 10*(2^10) chars as input seems more than enough
4598 test $ac_count -gt 10 && break
4600 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4604 $ac_path_EGREP_found && break 3
4614 EGREP="$ac_cv_path_EGREP"
4615 if test -z "$EGREP"; then
4616 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4617 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4618 { (exit 1); exit 1; }; }
4622 ac_cv_path_EGREP=$EGREP
4628 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4629 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4630 EGREP="$ac_cv_path_EGREP"
4634 # Check whether --with-gnu-ld was given.
4635 if test "${with_gnu_ld+set}" = set; then
4636 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4642 if test "$GCC" = yes; then
4643 # Check if gcc -print-prog-name=ld gives a path.
4644 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4645 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4648 # gcc leaves a trailing carriage return which upsets mingw
4649 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4651 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4654 # Accept absolute paths.
4656 re_direlt='/[^/][^/]*/\.\./'
4657 # Canonicalize the pathname of ld
4658 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4659 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4660 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4662 test -z "$LD" && LD="$ac_prog"
4665 # If it fails, then pretend we aren't using GCC.
4669 # If it is relative, then search for the first ld in PATH.
4673 elif test "$with_gnu_ld" = yes; then
4674 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4675 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4677 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4678 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4680 if test "${lt_cv_path_LD+set}" = set; then
4681 echo $ECHO_N "(cached) $ECHO_C" >&6
4683 if test -z "$LD"; then
4684 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4685 for ac_dir in $PATH; do
4687 test -z "$ac_dir" && ac_dir=.
4688 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4689 lt_cv_path_LD="$ac_dir/$ac_prog"
4690 # Check to see if the program is GNU ld. I'd rather use --version,
4691 # but apparently some variants of GNU ld only accept -v.
4692 # Break only if it was the GNU/non-GNU ld that we prefer.
4693 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4694 *GNU* | *'with BFD'*)
4695 test "$with_gnu_ld" != no && break
4698 test "$with_gnu_ld" != yes && break
4705 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4710 if test -n "$LD"; then
4711 { echo "$as_me:$LINENO: result: $LD" >&5
4712 echo "${ECHO_T}$LD" >&6; }
4714 { echo "$as_me:$LINENO: result: no" >&5
4715 echo "${ECHO_T}no" >&6; }
4717 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4718 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4719 { (exit 1); exit 1; }; }
4720 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4721 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4722 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4723 echo $ECHO_N "(cached) $ECHO_C" >&6
4725 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4726 case `$LD -v 2>&1 </dev/null` in
4727 *GNU* | *'with BFD'*)
4728 lt_cv_prog_gnu_ld=yes
4731 lt_cv_prog_gnu_ld=no
4735 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4736 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4737 with_gnu_ld=$lt_cv_prog_gnu_ld
4740 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4741 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4742 if test "${lt_cv_ld_reload_flag+set}" = set; then
4743 echo $ECHO_N "(cached) $ECHO_C" >&6
4745 lt_cv_ld_reload_flag='-r'
4747 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4748 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4749 reload_flag=$lt_cv_ld_reload_flag
4750 case $reload_flag in
4752 *) reload_flag=" $reload_flag" ;;
4754 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4757 if test "$GCC" = yes; then
4758 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4760 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4765 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4766 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4767 if test "${lt_cv_path_NM+set}" = set; then
4768 echo $ECHO_N "(cached) $ECHO_C" >&6
4770 if test -n "$NM"; then
4771 # Let the user override the test.
4774 lt_nm_to_check="${ac_tool_prefix}nm"
4775 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4776 lt_nm_to_check="$lt_nm_to_check nm"
4778 for lt_tmp_nm in $lt_nm_to_check; do
4779 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4780 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4782 test -z "$ac_dir" && ac_dir=.
4783 tmp_nm="$ac_dir/$lt_tmp_nm"
4784 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4785 # Check to see if the nm accepts a BSD-compat flag.
4786 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4787 # nm: unknown option "B" ignored
4788 # Tru64's nm complains that /dev/null is an invalid object file
4789 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4790 */dev/null* | *'Invalid file or object type'*)
4791 lt_cv_path_NM="$tmp_nm -B"
4795 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4797 lt_cv_path_NM="$tmp_nm -p"
4801 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4802 continue # so that we can try to find one that supports BSD flags
4811 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4814 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4815 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4818 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4819 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4821 if test "$LN_S" = "ln -s"; then
4822 { echo "$as_me:$LINENO: result: yes" >&5
4823 echo "${ECHO_T}yes" >&6; }
4825 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4826 echo "${ECHO_T}no, using $LN_S" >&6; }
4829 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4830 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4831 if test "${lt_cv_deplibs_check_method+set}" = set; then
4832 echo $ECHO_N "(cached) $ECHO_C" >&6
4834 lt_cv_file_magic_cmd='$MAGIC_CMD'
4835 lt_cv_file_magic_test_file=
4836 lt_cv_deplibs_check_method='unknown'
4837 # Need to set the preceding variable on all platforms that support
4838 # interlibrary dependencies.
4839 # 'none' -- dependencies not supported.
4840 # `unknown' -- same as none, but documents that we really don't know.
4841 # 'pass_all' -- all dependencies passed with no checks.
4842 # 'test_compile' -- check by making test program.
4843 # 'file_magic [[regex]]' -- check by looking for files in library path
4844 # which responds to the $file_magic_cmd with a given extended regex.
4845 # If you have `file' or equivalent on your system and you're not sure
4846 # whether `pass_all' will *always* work, you probably want this one.
4850 lt_cv_deplibs_check_method=pass_all
4854 lt_cv_deplibs_check_method=pass_all
4858 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4859 lt_cv_file_magic_cmd='/usr/bin/file -L'
4860 lt_cv_file_magic_test_file=/shlib/libc.so
4864 # func_win32_libid is a shell function defined in ltmain.sh
4865 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4866 lt_cv_file_magic_cmd='func_win32_libid'
4870 # Base MSYS/MinGW do not provide the 'file' command needed by
4871 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4872 # unless we find 'file', for example because we are cross-compiling.
4873 if ( file / ) >/dev/null 2>&1; then
4874 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4875 lt_cv_file_magic_cmd='func_win32_libid'
4877 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4878 lt_cv_file_magic_cmd='$OBJDUMP -f'
4882 darwin* | rhapsody*)
4883 lt_cv_deplibs_check_method=pass_all
4886 freebsd* | dragonfly*)
4887 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4890 # Not sure whether the presence of OpenBSD here was a mistake.
4891 # Let's accept both of them until this is cleared up.
4892 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4893 lt_cv_file_magic_cmd=/usr/bin/file
4894 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4898 lt_cv_deplibs_check_method=pass_all
4903 lt_cv_deplibs_check_method=pass_all
4906 hpux10.20* | hpux11*)
4907 lt_cv_file_magic_cmd=/usr/bin/file
4910 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4911 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4914 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]'
4915 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4918 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4919 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4925 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4926 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4929 irix5* | irix6* | nonstopux*)
4931 *-32|*"-32 ") libmagic=32-bit;;
4932 *-n32|*"-n32 ") libmagic=N32;;
4933 *-64|*"-64 ") libmagic=64-bit;;
4934 *) libmagic=never-match;;
4936 lt_cv_deplibs_check_method=pass_all
4939 # This must be Linux ELF.
4940 linux* | k*bsd*-gnu)
4941 lt_cv_deplibs_check_method=pass_all
4944 netbsd* | netbsdelf*-gnu)
4945 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4946 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4948 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4953 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4954 lt_cv_file_magic_cmd=/usr/bin/file
4955 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4959 lt_cv_deplibs_check_method=unknown
4963 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4964 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4966 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4970 osf3* | osf4* | osf5*)
4971 lt_cv_deplibs_check_method=pass_all
4975 lt_cv_deplibs_check_method=pass_all
4979 lt_cv_deplibs_check_method=pass_all
4983 case $host_vendor in
4985 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]'
4986 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4989 lt_cv_deplibs_check_method=pass_all
4992 lt_cv_file_magic_cmd='/bin/file'
4993 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4996 lt_cv_file_magic_cmd='/bin/file'
4997 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4998 lt_cv_file_magic_test_file=/lib/libc.so
5001 lt_cv_deplibs_check_method=pass_all
5004 lt_cv_deplibs_check_method=pass_all
5009 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5010 lt_cv_deplibs_check_method=pass_all
5015 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5016 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5017 file_magic_cmd=$lt_cv_file_magic_cmd
5018 deplibs_check_method=$lt_cv_deplibs_check_method
5019 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5024 # If no C compiler was specified, use CC.
5027 # If no C compiler flags were specified, use CFLAGS.
5028 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5030 # Allow CC to be a program name with arguments.
5034 # Check whether --enable-libtool-lock was given.
5035 if test "${enable_libtool_lock+set}" = set; then
5036 enableval=$enable_libtool_lock;
5039 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5041 # Some flags need to be propagated to the compiler or linker for good
5045 # Find out which ABI we are using.
5046 echo 'int i;' > conftest.$ac_ext
5047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5048 (eval $ac_compile) 2>&5
5050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051 (exit $ac_status); }; then
5052 case `/usr/bin/file conftest.$ac_objext` in
5064 # Find out which ABI we are using.
5065 echo '#line 5065 "configure"' > conftest.$ac_ext
5066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5067 (eval $ac_compile) 2>&5
5069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070 (exit $ac_status); }; then
5071 if test "$lt_cv_prog_gnu_ld" = yes; then
5072 case `/usr/bin/file conftest.$ac_objext` in
5074 LD="${LD-ld} -melf32bsmip"
5077 LD="${LD-ld} -melf32bmipn32"
5080 LD="${LD-ld} -melf64bmip"
5084 case `/usr/bin/file conftest.$ac_objext` in
5100 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5101 s390*-*linux*|sparc*-*linux*)
5102 # Find out which ABI we are using.
5103 echo 'int i;' > conftest.$ac_ext
5104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5105 (eval $ac_compile) 2>&5
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); }; then
5109 case `/usr/bin/file conftest.o` in
5112 x86_64-*kfreebsd*-gnu)
5113 LD="${LD-ld} -m elf_i386_fbsd"
5116 LD="${LD-ld} -m elf_i386"
5118 ppc64-*linux*|powerpc64-*linux*)
5119 LD="${LD-ld} -m elf32ppclinux"
5122 LD="${LD-ld} -m elf_s390"
5125 LD="${LD-ld} -m elf32_sparc"
5131 x86_64-*kfreebsd*-gnu)
5132 LD="${LD-ld} -m elf_x86_64_fbsd"
5135 LD="${LD-ld} -m elf_x86_64"
5137 ppc*-*linux*|powerpc*-*linux*)
5138 LD="${LD-ld} -m elf64ppc"
5141 LD="${LD-ld} -m elf64_s390"
5144 LD="${LD-ld} -m elf64_sparc"
5154 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5155 SAVE_CFLAGS="$CFLAGS"
5156 CFLAGS="$CFLAGS -belf"
5157 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5158 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5159 if test "${lt_cv_cc_needs_belf+set}" = set; then
5160 echo $ECHO_N "(cached) $ECHO_C" >&6
5163 ac_cpp='$CPP $CPPFLAGS'
5164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5168 cat >conftest.$ac_ext <<_ACEOF
5171 cat confdefs.h >>conftest.$ac_ext
5172 cat >>conftest.$ac_ext <<_ACEOF
5173 /* end confdefs.h. */
5183 rm -f conftest.$ac_objext conftest$ac_exeext
5184 if { (ac_try="$ac_link"
5186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5187 *) ac_try_echo=$ac_try;;
5189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5190 (eval "$ac_link") 2>conftest.er1
5192 grep -v '^ *+' conftest.er1 >conftest.err
5194 cat conftest.err >&5
5195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196 (exit $ac_status); } && {
5197 test -z "$ac_c_werror_flag" ||
5198 test ! -s conftest.err
5199 } && test -s conftest$ac_exeext &&
5200 $as_test_x conftest$ac_exeext; then
5201 lt_cv_cc_needs_belf=yes
5203 echo "$as_me: failed program was:" >&5
5204 sed 's/^/| /' conftest.$ac_ext >&5
5206 lt_cv_cc_needs_belf=no
5209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5210 conftest$ac_exeext conftest.$ac_ext
5212 ac_cpp='$CPP $CPPFLAGS'
5213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5218 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5219 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5220 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5221 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5222 CFLAGS="$SAVE_CFLAGS"
5226 # Find out which ABI we are using.
5227 echo 'int i;' > conftest.$ac_ext
5228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5229 (eval $ac_compile) 2>&5
5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232 (exit $ac_status); }; then
5233 case `/usr/bin/file conftest.o` in
5235 case $lt_cv_prog_gnu_ld in
5236 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5238 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5252 need_locks="$enable_libtool_lock"
5256 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5257 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5258 if test "${ac_cv_header_stdc+set}" = set; then
5259 echo $ECHO_N "(cached) $ECHO_C" >&6
5261 cat >conftest.$ac_ext <<_ACEOF
5264 cat confdefs.h >>conftest.$ac_ext
5265 cat >>conftest.$ac_ext <<_ACEOF
5266 /* end confdefs.h. */
5280 rm -f conftest.$ac_objext
5281 if { (ac_try="$ac_compile"
5283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5284 *) ac_try_echo=$ac_try;;
5286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5287 (eval "$ac_compile") 2>conftest.er1
5289 grep -v '^ *+' conftest.er1 >conftest.err
5291 cat conftest.err >&5
5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); } && {
5294 test -z "$ac_c_werror_flag" ||
5295 test ! -s conftest.err
5296 } && test -s conftest.$ac_objext; then
5297 ac_cv_header_stdc=yes
5299 echo "$as_me: failed program was:" >&5
5300 sed 's/^/| /' conftest.$ac_ext >&5
5302 ac_cv_header_stdc=no
5305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5307 if test $ac_cv_header_stdc = yes; then
5308 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5309 cat >conftest.$ac_ext <<_ACEOF
5312 cat confdefs.h >>conftest.$ac_ext
5313 cat >>conftest.$ac_ext <<_ACEOF
5314 /* end confdefs.h. */
5318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5319 $EGREP "memchr" >/dev/null 2>&1; then
5322 ac_cv_header_stdc=no
5328 if test $ac_cv_header_stdc = yes; then
5329 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5330 cat >conftest.$ac_ext <<_ACEOF
5333 cat confdefs.h >>conftest.$ac_ext
5334 cat >>conftest.$ac_ext <<_ACEOF
5335 /* end confdefs.h. */
5339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5340 $EGREP "free" >/dev/null 2>&1; then
5343 ac_cv_header_stdc=no
5349 if test $ac_cv_header_stdc = yes; then
5350 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5351 if test "$cross_compiling" = yes; then
5354 cat >conftest.$ac_ext <<_ACEOF
5357 cat confdefs.h >>conftest.$ac_ext
5358 cat >>conftest.$ac_ext <<_ACEOF
5359 /* end confdefs.h. */
5362 #if ((' ' & 0x0FF) == 0x020)
5363 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5364 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5366 # define ISLOWER(c) \
5367 (('a' <= (c) && (c) <= 'i') \
5368 || ('j' <= (c) && (c) <= 'r') \
5369 || ('s' <= (c) && (c) <= 'z'))
5370 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5373 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5378 for (i = 0; i < 256; i++)
5379 if (XOR (islower (i), ISLOWER (i))
5380 || toupper (i) != TOUPPER (i))
5385 rm -f conftest$ac_exeext
5386 if { (ac_try="$ac_link"
5388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5389 *) ac_try_echo=$ac_try;;
5391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5392 (eval "$ac_link") 2>&5
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5396 { (case "(($ac_try" in
5397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5398 *) ac_try_echo=$ac_try;;
5400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5401 (eval "$ac_try") 2>&5
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); }; }; then
5407 echo "$as_me: program exited with status $ac_status" >&5
5408 echo "$as_me: failed program was:" >&5
5409 sed 's/^/| /' conftest.$ac_ext >&5
5412 ac_cv_header_stdc=no
5414 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5420 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5421 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5422 if test $ac_cv_header_stdc = yes; then
5424 cat >>confdefs.h <<\_ACEOF
5425 #define STDC_HEADERS 1
5430 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5440 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5441 inttypes.h stdint.h unistd.h
5443 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5444 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5447 echo $ECHO_N "(cached) $ECHO_C" >&6
5449 cat >conftest.$ac_ext <<_ACEOF
5452 cat confdefs.h >>conftest.$ac_ext
5453 cat >>conftest.$ac_ext <<_ACEOF
5454 /* end confdefs.h. */
5455 $ac_includes_default
5457 #include <$ac_header>
5459 rm -f conftest.$ac_objext
5460 if { (ac_try="$ac_compile"
5462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5463 *) ac_try_echo=$ac_try;;
5465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5466 (eval "$ac_compile") 2>conftest.er1
5468 grep -v '^ *+' conftest.er1 >conftest.err
5470 cat conftest.err >&5
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); } && {
5473 test -z "$ac_c_werror_flag" ||
5474 test ! -s conftest.err
5475 } && test -s conftest.$ac_objext; then
5476 eval "$as_ac_Header=yes"
5478 echo "$as_me: failed program was:" >&5
5479 sed 's/^/| /' conftest.$ac_ext >&5
5481 eval "$as_ac_Header=no"
5484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5486 ac_res=`eval echo '${'$as_ac_Header'}'`
5487 { echo "$as_me:$LINENO: result: $ac_res" >&5
5488 echo "${ECHO_T}$ac_res" >&6; }
5489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5490 cat >>confdefs.h <<_ACEOF
5491 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5500 for ac_header in dlfcn.h
5502 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5503 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5504 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5507 echo $ECHO_N "(cached) $ECHO_C" >&6
5509 ac_res=`eval echo '${'$as_ac_Header'}'`
5510 { echo "$as_me:$LINENO: result: $ac_res" >&5
5511 echo "${ECHO_T}$ac_res" >&6; }
5513 # Is the header compilable?
5514 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5515 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5516 cat >conftest.$ac_ext <<_ACEOF
5519 cat confdefs.h >>conftest.$ac_ext
5520 cat >>conftest.$ac_ext <<_ACEOF
5521 /* end confdefs.h. */
5522 $ac_includes_default
5523 #include <$ac_header>
5525 rm -f conftest.$ac_objext
5526 if { (ac_try="$ac_compile"
5528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5529 *) ac_try_echo=$ac_try;;
5531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5532 (eval "$ac_compile") 2>conftest.er1
5534 grep -v '^ *+' conftest.er1 >conftest.err
5536 cat conftest.err >&5
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); } && {
5539 test -z "$ac_c_werror_flag" ||
5540 test ! -s conftest.err
5541 } && test -s conftest.$ac_objext; then
5542 ac_header_compiler=yes
5544 echo "$as_me: failed program was:" >&5
5545 sed 's/^/| /' conftest.$ac_ext >&5
5547 ac_header_compiler=no
5550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5551 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5552 echo "${ECHO_T}$ac_header_compiler" >&6; }
5554 # Is the header present?
5555 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5556 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5557 cat >conftest.$ac_ext <<_ACEOF
5560 cat confdefs.h >>conftest.$ac_ext
5561 cat >>conftest.$ac_ext <<_ACEOF
5562 /* end confdefs.h. */
5563 #include <$ac_header>
5565 if { (ac_try="$ac_cpp conftest.$ac_ext"
5567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5568 *) ac_try_echo=$ac_try;;
5570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5571 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5573 grep -v '^ *+' conftest.er1 >conftest.err
5575 cat conftest.err >&5
5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); } >/dev/null && {
5578 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5579 test ! -s conftest.err
5581 ac_header_preproc=yes
5583 echo "$as_me: failed program was:" >&5
5584 sed 's/^/| /' conftest.$ac_ext >&5
5586 ac_header_preproc=no
5589 rm -f conftest.err conftest.$ac_ext
5590 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5591 echo "${ECHO_T}$ac_header_preproc" >&6; }
5593 # So? What about this header?
5594 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5596 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5597 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5598 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5599 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5600 ac_header_preproc=yes
5603 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5604 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5605 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5606 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5607 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5608 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5609 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5610 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5611 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5612 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5613 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5614 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5616 ## ------------------------------------ ##
5617 ## Report this to opensource@google.com ##
5618 ## ------------------------------------ ##
5620 ) | sed "s/^/$as_me: WARNING: /" >&2
5623 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5625 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5626 echo $ECHO_N "(cached) $ECHO_C" >&6
5628 eval "$as_ac_Header=\$ac_header_preproc"
5630 ac_res=`eval echo '${'$as_ac_Header'}'`
5631 { echo "$as_me:$LINENO: result: $ac_res" >&5
5632 echo "${ECHO_T}$ac_res" >&6; }
5635 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5636 cat >>confdefs.h <<_ACEOF
5637 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5646 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5647 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5648 (test "X$CXX" != "Xg++"))) ; then
5650 ac_cpp='$CXXCPP $CPPFLAGS'
5651 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5652 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5653 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5654 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5655 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5656 if test -z "$CXXCPP"; then
5657 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5658 echo $ECHO_N "(cached) $ECHO_C" >&6
5660 # Double quotes because CXXCPP needs to be expanded
5661 for CXXCPP in "$CXX -E" "/lib/cpp"
5664 for ac_cxx_preproc_warn_flag in '' yes
5666 # Use a header file that comes with gcc, so configuring glibc
5667 # with a fresh cross-compiler works.
5668 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5669 # <limits.h> exists even on freestanding compilers.
5670 # On the NeXT, cc -E runs the code through the compiler's parser,
5671 # not just through cpp. "Syntax error" is here to catch this case.
5672 cat >conftest.$ac_ext <<_ACEOF
5675 cat confdefs.h >>conftest.$ac_ext
5676 cat >>conftest.$ac_ext <<_ACEOF
5677 /* end confdefs.h. */
5679 # include <limits.h>
5681 # include <assert.h>
5685 if { (ac_try="$ac_cpp conftest.$ac_ext"
5687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5688 *) ac_try_echo=$ac_try;;
5690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5691 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5693 grep -v '^ *+' conftest.er1 >conftest.err
5695 cat conftest.err >&5
5696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697 (exit $ac_status); } >/dev/null && {
5698 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5699 test ! -s conftest.err
5703 echo "$as_me: failed program was:" >&5
5704 sed 's/^/| /' conftest.$ac_ext >&5
5706 # Broken: fails on valid input.
5710 rm -f conftest.err conftest.$ac_ext
5712 # OK, works on sane cases. Now check whether nonexistent headers
5713 # can be detected and how.
5714 cat >conftest.$ac_ext <<_ACEOF
5717 cat confdefs.h >>conftest.$ac_ext
5718 cat >>conftest.$ac_ext <<_ACEOF
5719 /* end confdefs.h. */
5720 #include <ac_nonexistent.h>
5722 if { (ac_try="$ac_cpp conftest.$ac_ext"
5724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5725 *) ac_try_echo=$ac_try;;
5727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5728 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5730 grep -v '^ *+' conftest.er1 >conftest.err
5732 cat conftest.err >&5
5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); } >/dev/null && {
5735 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5736 test ! -s conftest.err
5738 # Broken: success on invalid input.
5741 echo "$as_me: failed program was:" >&5
5742 sed 's/^/| /' conftest.$ac_ext >&5
5744 # Passes both tests.
5749 rm -f conftest.err conftest.$ac_ext
5752 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5753 rm -f conftest.err conftest.$ac_ext
5754 if $ac_preproc_ok; then
5759 ac_cv_prog_CXXCPP=$CXXCPP
5762 CXXCPP=$ac_cv_prog_CXXCPP
5764 ac_cv_prog_CXXCPP=$CXXCPP
5766 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5767 echo "${ECHO_T}$CXXCPP" >&6; }
5769 for ac_cxx_preproc_warn_flag in '' yes
5771 # Use a header file that comes with gcc, so configuring glibc
5772 # with a fresh cross-compiler works.
5773 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5774 # <limits.h> exists even on freestanding compilers.
5775 # On the NeXT, cc -E runs the code through the compiler's parser,
5776 # not just through cpp. "Syntax error" is here to catch this case.
5777 cat >conftest.$ac_ext <<_ACEOF
5780 cat confdefs.h >>conftest.$ac_ext
5781 cat >>conftest.$ac_ext <<_ACEOF
5782 /* end confdefs.h. */
5784 # include <limits.h>
5786 # include <assert.h>
5790 if { (ac_try="$ac_cpp conftest.$ac_ext"
5792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5793 *) ac_try_echo=$ac_try;;
5795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5796 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5798 grep -v '^ *+' conftest.er1 >conftest.err
5800 cat conftest.err >&5
5801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802 (exit $ac_status); } >/dev/null && {
5803 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5804 test ! -s conftest.err
5808 echo "$as_me: failed program was:" >&5
5809 sed 's/^/| /' conftest.$ac_ext >&5
5811 # Broken: fails on valid input.
5815 rm -f conftest.err conftest.$ac_ext
5817 # OK, works on sane cases. Now check whether nonexistent headers
5818 # can be detected and how.
5819 cat >conftest.$ac_ext <<_ACEOF
5822 cat confdefs.h >>conftest.$ac_ext
5823 cat >>conftest.$ac_ext <<_ACEOF
5824 /* end confdefs.h. */
5825 #include <ac_nonexistent.h>
5827 if { (ac_try="$ac_cpp conftest.$ac_ext"
5829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5830 *) ac_try_echo=$ac_try;;
5832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5835 grep -v '^ *+' conftest.er1 >conftest.err
5837 cat conftest.err >&5
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); } >/dev/null && {
5840 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5841 test ! -s conftest.err
5843 # Broken: success on invalid input.
5846 echo "$as_me: failed program was:" >&5
5847 sed 's/^/| /' conftest.$ac_ext >&5
5849 # Passes both tests.
5854 rm -f conftest.err conftest.$ac_ext
5857 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5858 rm -f conftest.err conftest.$ac_ext
5859 if $ac_preproc_ok; then
5862 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5863 See \`config.log' for more details." >&5
5864 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5865 See \`config.log' for more details." >&2;}
5866 { (exit 1); exit 1; }; }
5870 ac_cpp='$CXXCPP $CPPFLAGS'
5871 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5872 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5873 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5879 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5880 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5881 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5882 if test -n "$ac_tool_prefix"; then
5883 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
5885 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5886 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5887 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5889 if test "${ac_cv_prog_F77+set}" = set; then
5890 echo $ECHO_N "(cached) $ECHO_C" >&6
5892 if test -n "$F77"; then
5893 ac_cv_prog_F77="$F77" # Let the user override the test.
5895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5899 test -z "$as_dir" && as_dir=.
5900 for ac_exec_ext in '' $ac_executable_extensions; do
5901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5902 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5913 if test -n "$F77"; then
5914 { echo "$as_me:$LINENO: result: $F77" >&5
5915 echo "${ECHO_T}$F77" >&6; }
5917 { echo "$as_me:$LINENO: result: no" >&5
5918 echo "${ECHO_T}no" >&6; }
5922 test -n "$F77" && break
5925 if test -z "$F77"; then
5927 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
5929 # Extract the first word of "$ac_prog", so it can be a program name with args.
5930 set dummy $ac_prog; ac_word=$2
5931 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5933 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5934 echo $ECHO_N "(cached) $ECHO_C" >&6
5936 if test -n "$ac_ct_F77"; then
5937 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5943 test -z "$as_dir" && as_dir=.
5944 for ac_exec_ext in '' $ac_executable_extensions; do
5945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5946 ac_cv_prog_ac_ct_F77="$ac_prog"
5947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5956 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5957 if test -n "$ac_ct_F77"; then
5958 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5959 echo "${ECHO_T}$ac_ct_F77" >&6; }
5961 { echo "$as_me:$LINENO: result: no" >&5
5962 echo "${ECHO_T}no" >&6; }
5966 test -n "$ac_ct_F77" && break
5969 if test "x$ac_ct_F77" = x; then
5972 case $cross_compiling:$ac_tool_warned in
5974 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5975 whose name does not start with the host triplet. If you think this
5976 configuration is useful to you, please write to autoconf@gnu.org." >&5
5977 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5978 whose name does not start with the host triplet. If you think this
5979 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5980 ac_tool_warned=yes ;;
5987 # Provide some information about the compiler.
5988 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5989 ac_compiler=`set X $ac_compile; echo $2`
5990 { (ac_try="$ac_compiler --version >&5"
5992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5993 *) ac_try_echo=$ac_try;;
5995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5996 (eval "$ac_compiler --version >&5") 2>&5
5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); }
6000 { (ac_try="$ac_compiler -v >&5"
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_compiler -v >&5") 2>&5
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); }
6010 { (ac_try="$ac_compiler -V >&5"
6012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6013 *) ac_try_echo=$ac_try;;
6015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6016 (eval "$ac_compiler -V >&5") 2>&5
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); }
6022 # If we don't use `.F' as extension, the preprocessor is not run on the
6023 # input file. (Note that this only needs to work for GNU compilers.)
6026 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6027 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6028 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6029 echo $ECHO_N "(cached) $ECHO_C" >&6
6031 cat >conftest.$ac_ext <<_ACEOF
6039 rm -f conftest.$ac_objext
6040 if { (ac_try="$ac_compile"
6042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6043 *) ac_try_echo=$ac_try;;
6045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6046 (eval "$ac_compile") 2>conftest.er1
6048 grep -v '^ *+' conftest.er1 >conftest.err
6050 cat conftest.err >&5
6051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052 (exit $ac_status); } && {
6053 test -z "$ac_f77_werror_flag" ||
6054 test ! -s conftest.err
6055 } && test -s conftest.$ac_objext; then
6058 echo "$as_me: failed program was:" >&5
6059 sed 's/^/| /' conftest.$ac_ext >&5
6064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6065 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6068 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6069 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6071 ac_test_FFLAGS=${FFLAGS+set}
6072 ac_save_FFLAGS=$FFLAGS
6074 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6075 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6076 if test "${ac_cv_prog_f77_g+set}" = set; then
6077 echo $ECHO_N "(cached) $ECHO_C" >&6
6080 cat >conftest.$ac_ext <<_ACEOF
6085 rm -f conftest.$ac_objext
6086 if { (ac_try="$ac_compile"
6088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6089 *) ac_try_echo=$ac_try;;
6091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6092 (eval "$ac_compile") 2>conftest.er1
6094 grep -v '^ *+' conftest.er1 >conftest.err
6096 cat conftest.err >&5
6097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098 (exit $ac_status); } && {
6099 test -z "$ac_f77_werror_flag" ||
6100 test ! -s conftest.err
6101 } && test -s conftest.$ac_objext; then
6102 ac_cv_prog_f77_g=yes
6104 echo "$as_me: failed program was:" >&5
6105 sed 's/^/| /' conftest.$ac_ext >&5
6110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6113 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6114 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6115 if test "$ac_test_FFLAGS" = set; then
6116 FFLAGS=$ac_save_FFLAGS
6117 elif test $ac_cv_prog_f77_g = yes; then
6118 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6124 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6131 G77=`test $ac_compiler_gnu = yes && echo yes`
6133 ac_cpp='$CPP $CPPFLAGS'
6134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6140 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6141 # find the maximum length of command line arguments
6142 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6143 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6144 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6145 echo $ECHO_N "(cached) $ECHO_C" >&6
6152 # On DJGPP, this test can blow up pretty badly due to problems in libc
6153 # (any single argument exceeding 2000 bytes causes a buffer overrun
6154 # during glob expansion). Even if it were fixed, the result of this
6155 # check would be larger than it should be.
6156 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6160 # Under GNU Hurd, this test is not required because there is
6161 # no limit to the length of command line arguments.
6162 # Libtool will interpret -1 as no limit whatsoever
6163 lt_cv_sys_max_cmd_len=-1;
6167 # On Win9x/ME, this test blows up -- it succeeds, but takes
6168 # about 5 minutes as the teststring grows exponentially.
6169 # Worse, since 9x/ME are not pre-emptively multitasking,
6170 # you end up with a "frozen" computer, even though with patience
6171 # the test eventually succeeds (with a max line length of 256k).
6172 # Instead, let's just punt: use the minimum linelength reported by
6173 # all of the supported platforms: 8192 (on NT/2K/XP).
6174 lt_cv_sys_max_cmd_len=8192;
6178 # On AmigaOS with pdksh, this test takes hours, literally.
6179 # So we just punt and use a minimum line length of 8192.
6180 lt_cv_sys_max_cmd_len=8192;
6183 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6184 # This has been around since 386BSD, at least. Likely further.
6185 if test -x /sbin/sysctl; then
6186 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6187 elif test -x /usr/sbin/sysctl; then
6188 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6190 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6192 # And add a safety zone
6193 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6194 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6198 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6199 lt_cv_sys_max_cmd_len=196608
6203 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6204 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6205 # nice to cause kernel panics so lets avoid the loop below.
6206 # First set a reasonable default.
6207 lt_cv_sys_max_cmd_len=16384
6209 if test -x /sbin/sysconfig; then
6210 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6211 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6216 lt_cv_sys_max_cmd_len=102400
6218 sysv5* | sco5v6* | sysv4.2uw2*)
6219 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6220 if test -n "$kargmax"; then
6221 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6223 lt_cv_sys_max_cmd_len=32768
6227 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6228 if test -n "$lt_cv_sys_max_cmd_len"; then
6229 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6230 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6232 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6233 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6234 = "XX$teststring") >/dev/null 2>&1 &&
6235 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6236 lt_cv_sys_max_cmd_len=$new_result &&
6237 test $i != 17 # 1/2 MB should be enough
6240 teststring=$teststring$teststring
6243 # Add a significant safety factor because C++ compilers can tack on massive
6244 # amounts of additional arguments before passing them to the linker.
6245 # It appears as though 1/2 is a usable value.
6246 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6253 if test -n $lt_cv_sys_max_cmd_len ; then
6254 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6255 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6257 { echo "$as_me:$LINENO: result: none" >&5
6258 echo "${ECHO_T}none" >&6; }
6265 # Check for command to grab the raw symbol name followed by C symbol from nm.
6266 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6267 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6268 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6269 echo $ECHO_N "(cached) $ECHO_C" >&6
6272 # These are sane defaults that work on at least a few old systems.
6273 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6275 # Character class describing NM global symbol codes.
6276 symcode='[BCDEGRST]'
6278 # Regexp to match symbols that can be accessed directly from C.
6279 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6281 # Transform an extracted symbol line into a proper C declaration
6282 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6284 # Transform an extracted symbol line into symbol name and symbol address
6285 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'"
6287 # Define system-specific variables.
6292 cygwin* | mingw* | pw32*)
6293 symcode='[ABCDGISTW]'
6295 hpux*) # Its linker distinguishes data from code symbols
6296 if test "$host_cpu" = ia64; then
6297 symcode='[ABCDEGRST]'
6299 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6300 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'"
6302 linux* | k*bsd*-gnu)
6303 if test "$host_cpu" = ia64; then
6304 symcode='[ABCDGIRSTW]'
6305 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6306 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'"
6310 symcode='[BCDEGRST]'
6313 symcode='[BCDEGQRST]'
6324 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6332 # Handle CRLF in mingw tool chain
6336 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6340 # If we're using GNU nm, then use its standard symbol codes.
6341 case `$NM -V 2>&1` in
6342 *GNU* | *'with BFD'*)
6343 symcode='[ABCDGIRSTW]' ;;
6346 # Try without a prefix undercore, then with it.
6347 for ac_symprfx in "" "_"; do
6349 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6350 symxfrm="\\1 $ac_symprfx\\2 \\2"
6352 # Write the raw and C identifiers.
6353 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6355 # Check to see that the pipe works correctly.
6359 cat > conftest.$ac_ext <<EOF
6364 void nm_test_func(){}
6368 int main(){nm_test_var='a';nm_test_func();return(0);}
6371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6372 (eval $ac_compile) 2>&5
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); }; then
6376 # Now try to grab the symbols.
6378 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6379 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382 (exit $ac_status); } && test -s "$nlist"; then
6383 # Try sorting and uniquifying the output.
6384 if sort "$nlist" | uniq > "$nlist"T; then
6385 mv -f "$nlist"T "$nlist"
6390 # Make sure that we snagged all the symbols we need.
6391 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6392 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6393 cat <<EOF > conftest.$ac_ext
6399 # Now generate the symbol file.
6400 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6402 cat <<EOF >> conftest.$ac_ext
6403 #if defined (__STDC__) && __STDC__
6404 # define lt_ptr_t void *
6406 # define lt_ptr_t char *
6410 /* The mapping between symbol names and symbols. */
6415 lt_preloaded_symbols[] =
6418 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6419 cat <<\EOF >> conftest.$ac_ext
6427 # Now try linking the two files.
6428 mv conftest.$ac_objext conftstm.$ac_objext
6429 lt_save_LIBS="$LIBS"
6430 lt_save_CFLAGS="$CFLAGS"
6431 LIBS="conftstm.$ac_objext"
6432 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6434 (eval $ac_link) 2>&5
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6440 LIBS="$lt_save_LIBS"
6441 CFLAGS="$lt_save_CFLAGS"
6443 echo "cannot find nm_test_func in $nlist" >&5
6446 echo "cannot find nm_test_var in $nlist" >&5
6449 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6452 echo "$progname: failed program was:" >&5
6453 cat conftest.$ac_ext >&5
6455 rm -rf conftest* conftst*
6457 # Do not use the global_symbol_pipe unless it works.
6458 if test "$pipe_works" = yes; then
6461 lt_cv_sys_global_symbol_pipe=
6467 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6468 lt_cv_sys_global_symbol_to_cdecl=
6470 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6471 { echo "$as_me:$LINENO: result: failed" >&5
6472 echo "${ECHO_T}failed" >&6; }
6474 { echo "$as_me:$LINENO: result: ok" >&5
6475 echo "${ECHO_T}ok" >&6; }
6478 { echo "$as_me:$LINENO: checking for objdir" >&5
6479 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6480 if test "${lt_cv_objdir+set}" = set; then
6481 echo $ECHO_N "(cached) $ECHO_C" >&6
6483 rm -f .libs 2>/dev/null
6484 mkdir .libs 2>/dev/null
6485 if test -d .libs; then
6488 # MS-DOS does not allow filenames that begin with a dot.
6491 rmdir .libs 2>/dev/null
6493 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6494 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6495 objdir=$lt_cv_objdir
6503 # AIX sometimes has problems with the GCC collect2 program. For some
6504 # reason, if we set the COLLECT_NAMES environment variable, the problems
6505 # vanish in a puff of smoke.
6506 if test "X${COLLECT_NAMES+set}" != Xset; then
6508 export COLLECT_NAMES
6513 # Sed substitution that helps us do robust quoting. It backslashifies
6514 # metacharacters that are still active within double-quoted strings.
6515 Xsed='sed -e 1s/^X//'
6516 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6518 # Same as above, but do not quote variable references.
6519 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6521 # Sed substitution to delay expansion of an escaped shell variable in a
6522 # double_quote_subst'ed string.
6523 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6525 # Sed substitution to avoid accidental globbing in evaled expressions
6526 no_glob_subst='s/\*/\\\*/g'
6532 default_ofile=libtool
6533 can_build_shared=yes
6535 # All known linkers require a `.a' archive for static linking (except MSVC,
6536 # which needs '.lib').
6538 ltmain="$ac_aux_dir/ltmain.sh"
6539 ofile="$default_ofile"
6540 with_gnu_ld="$lt_cv_prog_gnu_ld"
6542 if test -n "$ac_tool_prefix"; then
6543 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6544 set dummy ${ac_tool_prefix}ar; ac_word=$2
6545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6547 if test "${ac_cv_prog_AR+set}" = set; then
6548 echo $ECHO_N "(cached) $ECHO_C" >&6
6550 if test -n "$AR"; then
6551 ac_cv_prog_AR="$AR" # Let the user override the test.
6553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6557 test -z "$as_dir" && as_dir=.
6558 for ac_exec_ext in '' $ac_executable_extensions; do
6559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6560 ac_cv_prog_AR="${ac_tool_prefix}ar"
6561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6571 if test -n "$AR"; then
6572 { echo "$as_me:$LINENO: result: $AR" >&5
6573 echo "${ECHO_T}$AR" >&6; }
6575 { echo "$as_me:$LINENO: result: no" >&5
6576 echo "${ECHO_T}no" >&6; }
6581 if test -z "$ac_cv_prog_AR"; then
6583 # Extract the first word of "ar", so it can be a program name with args.
6584 set dummy ar; ac_word=$2
6585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6587 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6588 echo $ECHO_N "(cached) $ECHO_C" >&6
6590 if test -n "$ac_ct_AR"; then
6591 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6597 test -z "$as_dir" && as_dir=.
6598 for ac_exec_ext in '' $ac_executable_extensions; do
6599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6600 ac_cv_prog_ac_ct_AR="ar"
6601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6610 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6611 if test -n "$ac_ct_AR"; then
6612 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6613 echo "${ECHO_T}$ac_ct_AR" >&6; }
6615 { echo "$as_me:$LINENO: result: no" >&5
6616 echo "${ECHO_T}no" >&6; }
6619 if test "x$ac_ct_AR" = x; then
6622 case $cross_compiling:$ac_tool_warned in
6624 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6625 whose name does not start with the host triplet. If you think this
6626 configuration is useful to you, please write to autoconf@gnu.org." >&5
6627 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6628 whose name does not start with the host triplet. If you think this
6629 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6630 ac_tool_warned=yes ;;
6638 if test -n "$ac_tool_prefix"; then
6639 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6640 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6641 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6643 if test "${ac_cv_prog_RANLIB+set}" = set; then
6644 echo $ECHO_N "(cached) $ECHO_C" >&6
6646 if test -n "$RANLIB"; then
6647 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6653 test -z "$as_dir" && as_dir=.
6654 for ac_exec_ext in '' $ac_executable_extensions; do
6655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6656 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6666 RANLIB=$ac_cv_prog_RANLIB
6667 if test -n "$RANLIB"; then
6668 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6669 echo "${ECHO_T}$RANLIB" >&6; }
6671 { echo "$as_me:$LINENO: result: no" >&5
6672 echo "${ECHO_T}no" >&6; }
6677 if test -z "$ac_cv_prog_RANLIB"; then
6678 ac_ct_RANLIB=$RANLIB
6679 # Extract the first word of "ranlib", so it can be a program name with args.
6680 set dummy ranlib; ac_word=$2
6681 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6683 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6684 echo $ECHO_N "(cached) $ECHO_C" >&6
6686 if test -n "$ac_ct_RANLIB"; then
6687 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6693 test -z "$as_dir" && as_dir=.
6694 for ac_exec_ext in '' $ac_executable_extensions; do
6695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6696 ac_cv_prog_ac_ct_RANLIB="ranlib"
6697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6706 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6707 if test -n "$ac_ct_RANLIB"; then
6708 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6709 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6711 { echo "$as_me:$LINENO: result: no" >&5
6712 echo "${ECHO_T}no" >&6; }
6715 if test "x$ac_ct_RANLIB" = x; then
6718 case $cross_compiling:$ac_tool_warned in
6720 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6721 whose name does not start with the host triplet. If you think this
6722 configuration is useful to you, please write to autoconf@gnu.org." >&5
6723 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6724 whose name does not start with the host triplet. If you think this
6725 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6726 ac_tool_warned=yes ;;
6728 RANLIB=$ac_ct_RANLIB
6731 RANLIB="$ac_cv_prog_RANLIB"
6734 if test -n "$ac_tool_prefix"; then
6735 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6736 set dummy ${ac_tool_prefix}strip; ac_word=$2
6737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6739 if test "${ac_cv_prog_STRIP+set}" = set; then
6740 echo $ECHO_N "(cached) $ECHO_C" >&6
6742 if test -n "$STRIP"; then
6743 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6749 test -z "$as_dir" && as_dir=.
6750 for ac_exec_ext in '' $ac_executable_extensions; do
6751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6752 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6762 STRIP=$ac_cv_prog_STRIP
6763 if test -n "$STRIP"; then
6764 { echo "$as_me:$LINENO: result: $STRIP" >&5
6765 echo "${ECHO_T}$STRIP" >&6; }
6767 { echo "$as_me:$LINENO: result: no" >&5
6768 echo "${ECHO_T}no" >&6; }
6773 if test -z "$ac_cv_prog_STRIP"; then
6775 # Extract the first word of "strip", so it can be a program name with args.
6776 set dummy strip; ac_word=$2
6777 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6779 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6780 echo $ECHO_N "(cached) $ECHO_C" >&6
6782 if test -n "$ac_ct_STRIP"; then
6783 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6789 test -z "$as_dir" && as_dir=.
6790 for ac_exec_ext in '' $ac_executable_extensions; do
6791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6792 ac_cv_prog_ac_ct_STRIP="strip"
6793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6802 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6803 if test -n "$ac_ct_STRIP"; then
6804 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6805 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6807 { echo "$as_me:$LINENO: result: no" >&5
6808 echo "${ECHO_T}no" >&6; }
6811 if test "x$ac_ct_STRIP" = x; then
6814 case $cross_compiling:$ac_tool_warned in
6816 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6817 whose name does not start with the host triplet. If you think this
6818 configuration is useful to you, please write to autoconf@gnu.org." >&5
6819 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6820 whose name does not start with the host triplet. If you think this
6821 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6822 ac_tool_warned=yes ;;
6827 STRIP="$ac_cv_prog_STRIP"
6832 old_CFLAGS="$CFLAGS"
6834 # Set sane defaults for various variables
6835 test -z "$AR" && AR=ar
6836 test -z "$AR_FLAGS" && AR_FLAGS=cru
6837 test -z "$AS" && AS=as
6838 test -z "$CC" && CC=cc
6839 test -z "$LTCC" && LTCC=$CC
6840 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6841 test -z "$DLLTOOL" && DLLTOOL=dlltool
6842 test -z "$LD" && LD=ld
6843 test -z "$LN_S" && LN_S="ln -s"
6844 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6845 test -z "$NM" && NM=nm
6846 test -z "$SED" && SED=sed
6847 test -z "$OBJDUMP" && OBJDUMP=objdump
6848 test -z "$RANLIB" && RANLIB=:
6849 test -z "$STRIP" && STRIP=:
6850 test -z "$ac_objext" && ac_objext=o
6852 # Determine commands to create old-style static archives.
6853 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6854 old_postinstall_cmds='chmod 644 $oldlib'
6855 old_postuninstall_cmds=
6857 if test -n "$RANLIB"; then
6860 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6863 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6866 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6869 for cc_temp in $compiler""; do
6871 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6872 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6877 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6880 # Only perform the check for file, if the check method requires it
6881 case $deplibs_check_method in
6883 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6884 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6885 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6886 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6887 echo $ECHO_N "(cached) $ECHO_C" >&6
6891 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6894 lt_save_MAGIC_CMD="$MAGIC_CMD"
6895 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6896 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6897 for ac_dir in $ac_dummy; do
6899 test -z "$ac_dir" && ac_dir=.
6900 if test -f $ac_dir/${ac_tool_prefix}file; then
6901 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6902 if test -n "$file_magic_test_file"; then
6903 case $deplibs_check_method in
6905 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6906 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6907 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6908 $EGREP "$file_magic_regex" > /dev/null; then
6913 *** Warning: the command libtool uses to detect shared libraries,
6914 *** $file_magic_cmd, produces output that libtool cannot recognize.
6915 *** The result is that libtool may fail to recognize shared libraries
6916 *** as such. This will affect the creation of libtool libraries that
6917 *** depend on shared libraries, but programs linked with such libtool
6918 *** libraries will work regardless of this problem. Nevertheless, you
6919 *** may want to report the problem to your system manager and/or to
6920 *** bug-libtool@gnu.org
6930 MAGIC_CMD="$lt_save_MAGIC_CMD"
6935 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6936 if test -n "$MAGIC_CMD"; then
6937 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6938 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6940 { echo "$as_me:$LINENO: result: no" >&5
6941 echo "${ECHO_T}no" >&6; }
6944 if test -z "$lt_cv_path_MAGIC_CMD"; then
6945 if test -n "$ac_tool_prefix"; then
6946 { echo "$as_me:$LINENO: checking for file" >&5
6947 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6948 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6949 echo $ECHO_N "(cached) $ECHO_C" >&6
6953 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6956 lt_save_MAGIC_CMD="$MAGIC_CMD"
6957 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6958 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6959 for ac_dir in $ac_dummy; do
6961 test -z "$ac_dir" && ac_dir=.
6962 if test -f $ac_dir/file; then
6963 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6964 if test -n "$file_magic_test_file"; then
6965 case $deplibs_check_method in
6967 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6968 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6969 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6970 $EGREP "$file_magic_regex" > /dev/null; then
6975 *** Warning: the command libtool uses to detect shared libraries,
6976 *** $file_magic_cmd, produces output that libtool cannot recognize.
6977 *** The result is that libtool may fail to recognize shared libraries
6978 *** as such. This will affect the creation of libtool libraries that
6979 *** depend on shared libraries, but programs linked with such libtool
6980 *** libraries will work regardless of this problem. Nevertheless, you
6981 *** may want to report the problem to your system manager and/or to
6982 *** bug-libtool@gnu.org
6992 MAGIC_CMD="$lt_save_MAGIC_CMD"
6997 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6998 if test -n "$MAGIC_CMD"; then
6999 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7000 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7002 { echo "$as_me:$LINENO: result: no" >&5
7003 echo "${ECHO_T}no" >&6; }
7017 rhapsody* | darwin*)
7018 if test -n "$ac_tool_prefix"; then
7019 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7020 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7021 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7023 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7024 echo $ECHO_N "(cached) $ECHO_C" >&6
7026 if test -n "$DSYMUTIL"; then
7027 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7033 test -z "$as_dir" && as_dir=.
7034 for ac_exec_ext in '' $ac_executable_extensions; do
7035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7036 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7046 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7047 if test -n "$DSYMUTIL"; then
7048 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7049 echo "${ECHO_T}$DSYMUTIL" >&6; }
7051 { echo "$as_me:$LINENO: result: no" >&5
7052 echo "${ECHO_T}no" >&6; }
7057 if test -z "$ac_cv_prog_DSYMUTIL"; then
7058 ac_ct_DSYMUTIL=$DSYMUTIL
7059 # Extract the first word of "dsymutil", so it can be a program name with args.
7060 set dummy dsymutil; ac_word=$2
7061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7063 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7064 echo $ECHO_N "(cached) $ECHO_C" >&6
7066 if test -n "$ac_ct_DSYMUTIL"; then
7067 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7073 test -z "$as_dir" && as_dir=.
7074 for ac_exec_ext in '' $ac_executable_extensions; do
7075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7076 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7086 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7087 if test -n "$ac_ct_DSYMUTIL"; then
7088 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7089 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7091 { echo "$as_me:$LINENO: result: no" >&5
7092 echo "${ECHO_T}no" >&6; }
7095 if test "x$ac_ct_DSYMUTIL" = x; then
7098 case $cross_compiling:$ac_tool_warned in
7100 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7101 whose name does not start with the host triplet. If you think this
7102 configuration is useful to you, please write to autoconf@gnu.org." >&5
7103 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7104 whose name does not start with the host triplet. If you think this
7105 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7106 ac_tool_warned=yes ;;
7108 DSYMUTIL=$ac_ct_DSYMUTIL
7111 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7114 if test -n "$ac_tool_prefix"; then
7115 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7116 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7117 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7119 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7120 echo $ECHO_N "(cached) $ECHO_C" >&6
7122 if test -n "$NMEDIT"; then
7123 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7129 test -z "$as_dir" && as_dir=.
7130 for ac_exec_ext in '' $ac_executable_extensions; do
7131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7132 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7142 NMEDIT=$ac_cv_prog_NMEDIT
7143 if test -n "$NMEDIT"; then
7144 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7145 echo "${ECHO_T}$NMEDIT" >&6; }
7147 { echo "$as_me:$LINENO: result: no" >&5
7148 echo "${ECHO_T}no" >&6; }
7153 if test -z "$ac_cv_prog_NMEDIT"; then
7154 ac_ct_NMEDIT=$NMEDIT
7155 # Extract the first word of "nmedit", so it can be a program name with args.
7156 set dummy nmedit; ac_word=$2
7157 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7159 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7160 echo $ECHO_N "(cached) $ECHO_C" >&6
7162 if test -n "$ac_ct_NMEDIT"; then
7163 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7169 test -z "$as_dir" && as_dir=.
7170 for ac_exec_ext in '' $ac_executable_extensions; do
7171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7172 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7182 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7183 if test -n "$ac_ct_NMEDIT"; then
7184 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7185 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7187 { echo "$as_me:$LINENO: result: no" >&5
7188 echo "${ECHO_T}no" >&6; }
7191 if test "x$ac_ct_NMEDIT" = x; then
7194 case $cross_compiling:$ac_tool_warned in
7196 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7197 whose name does not start with the host triplet. If you think this
7198 configuration is useful to you, please write to autoconf@gnu.org." >&5
7199 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7200 whose name does not start with the host triplet. If you think this
7201 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7202 ac_tool_warned=yes ;;
7204 NMEDIT=$ac_ct_NMEDIT
7207 NMEDIT="$ac_cv_prog_NMEDIT"
7211 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7212 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7213 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7214 echo $ECHO_N "(cached) $ECHO_C" >&6
7216 lt_cv_apple_cc_single_mod=no
7217 if test -z "${LT_MULTI_MODULE}"; then
7218 # By default we will add the -single_module flag. You can override
7219 # by either setting the environment variable LT_MULTI_MODULE
7220 # non-empty at configure time, or by adding -multi_module to the
7222 echo "int foo(void){return 1;}" > conftest.c
7223 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7224 -dynamiclib ${wl}-single_module conftest.c
7225 if test -f libconftest.dylib; then
7226 lt_cv_apple_cc_single_mod=yes
7227 rm -rf libconftest.dylib*
7232 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7233 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7234 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7235 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7236 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7237 echo $ECHO_N "(cached) $ECHO_C" >&6
7239 lt_cv_ld_exported_symbols_list=no
7240 save_LDFLAGS=$LDFLAGS
7241 echo "_main" > conftest.sym
7242 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7243 cat >conftest.$ac_ext <<_ACEOF
7246 cat confdefs.h >>conftest.$ac_ext
7247 cat >>conftest.$ac_ext <<_ACEOF
7248 /* end confdefs.h. */
7258 rm -f conftest.$ac_objext conftest$ac_exeext
7259 if { (ac_try="$ac_link"
7261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7262 *) ac_try_echo=$ac_try;;
7264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7265 (eval "$ac_link") 2>conftest.er1
7267 grep -v '^ *+' conftest.er1 >conftest.err
7269 cat conftest.err >&5
7270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 (exit $ac_status); } && {
7272 test -z "$ac_c_werror_flag" ||
7273 test ! -s conftest.err
7274 } && test -s conftest$ac_exeext &&
7275 $as_test_x conftest$ac_exeext; then
7276 lt_cv_ld_exported_symbols_list=yes
7278 echo "$as_me: failed program was:" >&5
7279 sed 's/^/| /' conftest.$ac_ext >&5
7281 lt_cv_ld_exported_symbols_list=no
7284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7285 conftest$ac_exeext conftest.$ac_ext
7286 LDFLAGS="$save_LDFLAGS"
7289 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7290 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7292 rhapsody* | darwin1.[0123])
7293 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7295 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7297 # if running on 10.5 or later, the deployment target defaults
7298 # to the OS version, if on x86, and 10.4, the deployment
7299 # target defaults to 10.4. Don't you love it?
7300 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7301 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7302 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7304 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7306 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7310 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7311 _lt_dar_single_mod='$single_module'
7313 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7314 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7316 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7318 if test "$DSYMUTIL" != ":"; then
7319 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7330 # Check whether --enable-libtool-lock was given.
7331 if test "${enable_libtool_lock+set}" = set; then
7332 enableval=$enable_libtool_lock;
7335 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7338 # Check whether --with-pic was given.
7339 if test "${with_pic+set}" = set; then
7340 withval=$with_pic; pic_mode="$withval"
7345 test -z "$pic_mode" && pic_mode=default
7347 # Use C for the default configuration in the libtool script
7351 ac_cpp='$CPP $CPPFLAGS'
7352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7357 # Source file extension for C test sources.
7360 # Object file extension for compiled C test sources.
7364 # Code to be used in simple compile tests
7365 lt_simple_compile_test_code="int some_variable = 0;"
7367 # Code to be used in simple link tests
7368 lt_simple_link_test_code='int main(){return(0);}'
7371 # If no C compiler was specified, use CC.
7374 # If no C compiler flags were specified, use CFLAGS.
7375 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7377 # Allow CC to be a program name with arguments.
7381 # save warnings/boilerplate of simple test code
7382 ac_outfile=conftest.$ac_objext
7383 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7384 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7385 _lt_compiler_boilerplate=`cat conftest.err`
7388 ac_outfile=conftest.$ac_objext
7389 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7390 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7391 _lt_linker_boilerplate=`cat conftest.err`
7396 lt_prog_compiler_no_builtin_flag=
7398 if test "$GCC" = yes; then
7399 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7402 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7403 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7404 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7405 echo $ECHO_N "(cached) $ECHO_C" >&6
7407 lt_cv_prog_compiler_rtti_exceptions=no
7408 ac_outfile=conftest.$ac_objext
7409 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7410 lt_compiler_flag="-fno-rtti -fno-exceptions"
7411 # Insert the option either (1) after the last *FLAGS variable, or
7412 # (2) before a word containing "conftest.", or (3) at the end.
7413 # Note that $ac_compile itself does not contain backslashes and begins
7414 # with a dollar sign (not a hyphen), so the echo should work correctly.
7415 # The option is referenced via a variable to avoid confusing sed.
7416 lt_compile=`echo "$ac_compile" | $SED \
7417 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7418 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7419 -e 's:$: $lt_compiler_flag:'`
7420 (eval echo "\"\$as_me:7420: $lt_compile\"" >&5)
7421 (eval "$lt_compile" 2>conftest.err)
7423 cat conftest.err >&5
7424 echo "$as_me:7424: \$? = $ac_status" >&5
7425 if (exit $ac_status) && test -s "$ac_outfile"; then
7426 # The compiler can only warn and ignore the option if not recognized
7427 # So say no if there are warnings other than the usual output.
7428 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7429 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7430 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7431 lt_cv_prog_compiler_rtti_exceptions=yes
7437 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7438 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7440 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7441 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7448 lt_prog_compiler_wl=
7449 lt_prog_compiler_pic=
7450 lt_prog_compiler_static=
7452 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7453 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7455 if test "$GCC" = yes; then
7456 lt_prog_compiler_wl='-Wl,'
7457 lt_prog_compiler_static='-static'
7461 # All AIX code is PIC.
7462 if test "$host_cpu" = ia64; then
7463 # AIX 5 now supports IA64 processor
7464 lt_prog_compiler_static='-Bstatic'
7469 # FIXME: we need at least 68020 code to build shared libraries, but
7470 # adding the `-m68020' flag to GCC prevents building anything better,
7472 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7475 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7476 # PIC is the default for these OSes.
7479 mingw* | cygwin* | pw32* | os2*)
7480 # This hack is so that the source file can tell whether it is being
7481 # built for inclusion in a dll (and should export symbols for example).
7482 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7483 # (--disable-auto-import) libraries
7484 lt_prog_compiler_pic='-DDLL_EXPORT'
7487 darwin* | rhapsody*)
7488 # PIC is the default on this platform
7489 # Common symbols not allowed in MH_DYLIB files
7490 lt_prog_compiler_pic='-fno-common'
7494 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7495 # Instead, we relocate shared libraries at runtime.
7499 # Just because we use GCC doesn't mean we suddenly get shared libraries
7500 # on systems that don't support them.
7501 lt_prog_compiler_can_build_shared=no
7506 if test -d /usr/nec; then
7507 lt_prog_compiler_pic=-Kconform_pic
7512 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7519 lt_prog_compiler_pic='-fPIC'
7525 lt_prog_compiler_pic='-fPIC'
7529 # PORTME Check for flag to pass linker flags through the system compiler.
7532 lt_prog_compiler_wl='-Wl,'
7533 if test "$host_cpu" = ia64; then
7534 # AIX 5 now supports IA64 processor
7535 lt_prog_compiler_static='-Bstatic'
7537 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7541 # PIC is the default on this platform
7542 # Common symbols not allowed in MH_DYLIB files
7543 case $cc_basename in
7545 lt_prog_compiler_pic='-qnocommon'
7546 lt_prog_compiler_wl='-Wl,'
7551 mingw* | cygwin* | pw32* | os2*)
7552 # This hack is so that the source file can tell whether it is being
7553 # built for inclusion in a dll (and should export symbols for example).
7554 lt_prog_compiler_pic='-DDLL_EXPORT'
7557 hpux9* | hpux10* | hpux11*)
7558 lt_prog_compiler_wl='-Wl,'
7559 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7566 lt_prog_compiler_pic='+Z'
7569 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7570 lt_prog_compiler_static='${wl}-a ${wl}archive'
7573 irix5* | irix6* | nonstopux*)
7574 lt_prog_compiler_wl='-Wl,'
7575 # PIC (with -KPIC) is the default.
7576 lt_prog_compiler_static='-non_shared'
7580 lt_prog_compiler_pic='-KPIC'
7581 lt_prog_compiler_static='-Bstatic'
7584 linux* | k*bsd*-gnu)
7585 case $cc_basename in
7587 lt_prog_compiler_wl='-Wl,'
7588 lt_prog_compiler_pic='-KPIC'
7589 lt_prog_compiler_static='-static'
7591 pgcc* | pgf77* | pgf90* | pgf95*)
7592 # Portland Group compilers (*not* the Pentium gcc compiler,
7593 # which looks to be a dead project)
7594 lt_prog_compiler_wl='-Wl,'
7595 lt_prog_compiler_pic='-fpic'
7596 lt_prog_compiler_static='-Bstatic'
7599 lt_prog_compiler_wl='-Wl,'
7600 # All Alpha code is PIC.
7601 lt_prog_compiler_static='-non_shared'
7604 case `$CC -V 2>&1 | sed 5q` in
7607 lt_prog_compiler_pic='-KPIC'
7608 lt_prog_compiler_static='-Bstatic'
7609 lt_prog_compiler_wl='-Wl,'
7612 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7613 lt_prog_compiler_pic='-KPIC'
7614 lt_prog_compiler_static='-Bstatic'
7615 lt_prog_compiler_wl=''
7622 osf3* | osf4* | osf5*)
7623 lt_prog_compiler_wl='-Wl,'
7624 # All OSF/1 code is PIC.
7625 lt_prog_compiler_static='-non_shared'
7629 lt_prog_compiler_static='-non_shared'
7633 lt_prog_compiler_pic='-KPIC'
7634 lt_prog_compiler_static='-Bstatic'
7635 case $cc_basename in
7637 lt_prog_compiler_wl='-Qoption ld ';;
7639 lt_prog_compiler_wl='-Wl,';;
7644 lt_prog_compiler_wl='-Qoption ld '
7645 lt_prog_compiler_pic='-PIC'
7646 lt_prog_compiler_static='-Bstatic'
7649 sysv4 | sysv4.2uw2* | sysv4.3*)
7650 lt_prog_compiler_wl='-Wl,'
7651 lt_prog_compiler_pic='-KPIC'
7652 lt_prog_compiler_static='-Bstatic'
7656 if test -d /usr/nec ;then
7657 lt_prog_compiler_pic='-Kconform_pic'
7658 lt_prog_compiler_static='-Bstatic'
7662 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7663 lt_prog_compiler_wl='-Wl,'
7664 lt_prog_compiler_pic='-KPIC'
7665 lt_prog_compiler_static='-Bstatic'
7669 lt_prog_compiler_wl='-Wl,'
7670 lt_prog_compiler_can_build_shared=no
7674 lt_prog_compiler_pic='-pic'
7675 lt_prog_compiler_static='-Bstatic'
7679 lt_prog_compiler_can_build_shared=no
7684 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7685 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7688 # Check to make sure the PIC flag actually works.
7690 if test -n "$lt_prog_compiler_pic"; then
7692 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7693 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7694 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7695 echo $ECHO_N "(cached) $ECHO_C" >&6
7697 lt_cv_prog_compiler_pic_works=no
7698 ac_outfile=conftest.$ac_objext
7699 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7700 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7701 # Insert the option either (1) after the last *FLAGS variable, or
7702 # (2) before a word containing "conftest.", or (3) at the end.
7703 # Note that $ac_compile itself does not contain backslashes and begins
7704 # with a dollar sign (not a hyphen), so the echo should work correctly.
7705 # The option is referenced via a variable to avoid confusing sed.
7706 lt_compile=`echo "$ac_compile" | $SED \
7707 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7708 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7709 -e 's:$: $lt_compiler_flag:'`
7710 (eval echo "\"\$as_me:7710: $lt_compile\"" >&5)
7711 (eval "$lt_compile" 2>conftest.err)
7713 cat conftest.err >&5
7714 echo "$as_me:7714: \$? = $ac_status" >&5
7715 if (exit $ac_status) && test -s "$ac_outfile"; then
7716 # The compiler can only warn and ignore the option if not recognized
7717 # So say no if there are warnings other than the usual output.
7718 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7719 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7720 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7721 lt_cv_prog_compiler_pic_works=yes
7727 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7728 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7730 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7731 case $lt_prog_compiler_pic in
7733 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7736 lt_prog_compiler_pic=
7737 lt_prog_compiler_can_build_shared=no
7742 # For platforms which do not support PIC, -DPIC is meaningless:
7744 lt_prog_compiler_pic=
7747 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7752 # Check to make sure the static flag actually works.
7754 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7755 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7756 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7757 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7758 echo $ECHO_N "(cached) $ECHO_C" >&6
7760 lt_cv_prog_compiler_static_works=no
7761 save_LDFLAGS="$LDFLAGS"
7762 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7763 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7764 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7765 # The linker can only warn and ignore the option if not recognized
7766 # So say no if there are warnings
7767 if test -s conftest.err; then
7768 # Append any errors to the config.log.
7769 cat conftest.err 1>&5
7770 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7771 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7772 if diff conftest.exp conftest.er2 >/dev/null; then
7773 lt_cv_prog_compiler_static_works=yes
7776 lt_cv_prog_compiler_static_works=yes
7780 LDFLAGS="$save_LDFLAGS"
7783 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7784 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7786 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7789 lt_prog_compiler_static=
7793 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7794 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7795 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7796 echo $ECHO_N "(cached) $ECHO_C" >&6
7798 lt_cv_prog_compiler_c_o=no
7799 $rm -r conftest 2>/dev/null
7803 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7805 lt_compiler_flag="-o out/conftest2.$ac_objext"
7806 # Insert the option either (1) after the last *FLAGS variable, or
7807 # (2) before a word containing "conftest.", or (3) at the end.
7808 # Note that $ac_compile itself does not contain backslashes and begins
7809 # with a dollar sign (not a hyphen), so the echo should work correctly.
7810 lt_compile=`echo "$ac_compile" | $SED \
7811 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7812 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7813 -e 's:$: $lt_compiler_flag:'`
7814 (eval echo "\"\$as_me:7814: $lt_compile\"" >&5)
7815 (eval "$lt_compile" 2>out/conftest.err)
7817 cat out/conftest.err >&5
7818 echo "$as_me:7818: \$? = $ac_status" >&5
7819 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7821 # The compiler can only warn and ignore the option if not recognized
7822 # So say no if there are warnings
7823 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7824 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7825 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7826 lt_cv_prog_compiler_c_o=yes
7831 # SGI C++ compiler will create directory out/ii_files/ for
7832 # template instantiation
7833 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7834 $rm out/* && rmdir out
7840 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7841 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7844 hard_links="nottested"
7845 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7846 # do not overwrite the value of need_locks provided by the user
7847 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7848 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7851 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7853 ln conftest.a conftest.b 2>&5 || hard_links=no
7854 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7855 { echo "$as_me:$LINENO: result: $hard_links" >&5
7856 echo "${ECHO_T}$hard_links" >&6; }
7857 if test "$hard_links" = no; then
7858 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7859 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7866 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7867 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7870 allow_undefined_flag=
7871 enable_shared_with_static_runtimes=no
7873 archive_expsym_cmds=
7874 old_archive_From_new_cmds=
7875 old_archive_from_expsyms_cmds=
7876 export_dynamic_flag_spec=
7877 whole_archive_flag_spec=
7878 thread_safe_flag_spec=
7879 hardcode_libdir_flag_spec=
7880 hardcode_libdir_flag_spec_ld=
7881 hardcode_libdir_separator=
7884 hardcode_shlibpath_var=unsupported
7885 link_all_deplibs=unknown
7886 hardcode_automatic=no
7889 always_export_symbols=no
7890 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7891 # include_expsyms should be a list of space-separated symbols to be *always*
7892 # included in the symbol list
7894 # exclude_expsyms can be an extended regexp of symbols to exclude
7895 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7896 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7897 # as well as any symbol that contains `d'.
7898 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7899 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7900 # platforms (ab)use it in PIC code, but their linkers get confused if
7901 # the symbol is explicitly referenced. Since portable code cannot
7902 # rely on this symbol name, it's probably fine to never include it in
7903 # preloaded symbol tables.
7904 # Exclude shared library initialization/finalization symbols.
7905 extract_expsyms_cmds=
7906 # Just being paranoid about ensuring that cc_basename is set.
7907 for cc_temp in $compiler""; do
7909 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7910 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7915 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7918 cygwin* | mingw* | pw32*)
7919 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7920 # When not using gcc, we currently assume that we are using
7921 # Microsoft Visual C++.
7922 if test "$GCC" != yes; then
7927 # we just hope/assume this is gcc and not c89 (= MSVC++)
7936 if test "$with_gnu_ld" = yes; then
7937 # If archive_cmds runs LD, not CC, wlarc should be empty
7940 # Set some defaults for GNU ld with shared library support. These
7941 # are reset later if shared libraries are not supported. Putting them
7942 # here allows them to be overridden if necessary.
7943 runpath_var=LD_RUN_PATH
7944 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7945 export_dynamic_flag_spec='${wl}--export-dynamic'
7946 # ancient GNU ld didn't support --whole-archive et. al.
7947 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7948 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7950 whole_archive_flag_spec=
7952 supports_anon_versioning=no
7953 case `$LD -v 2>/dev/null` in
7954 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7955 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7956 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7957 *\ 2.11.*) ;; # other 2.11 versions
7958 *) supports_anon_versioning=yes ;;
7961 # See if GNU ld supports shared libraries.
7964 # On AIX/PPC, the GNU linker is very broken
7965 if test "$host_cpu" != ia64; then
7969 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7970 *** to be unable to reliably create shared libraries on AIX.
7971 *** Therefore, libtool is disabling shared libraries support. If you
7972 *** really care for shared libraries, you may want to modify your PATH
7973 *** so that a non-GNU linker is found, and then restart.
7980 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)'
7981 hardcode_libdir_flag_spec='-L$libdir'
7982 hardcode_minus_L=yes
7984 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7985 # that the semantics of dynamic libraries on AmigaOS, at least up
7986 # to version 4, is to share data among multiple programs linked
7987 # with the same dynamic library. Since this doesn't match the
7988 # behavior of shared libraries on other platforms, we can't use
7994 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7995 allow_undefined_flag=unsupported
7996 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7997 # support --undefined. This deserves some investigation. FIXME
7998 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8004 cygwin* | mingw* | pw32*)
8005 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8006 # as there is no search path for DLLs.
8007 hardcode_libdir_flag_spec='-L$libdir'
8008 allow_undefined_flag=unsupported
8009 always_export_symbols=no
8010 enable_shared_with_static_runtimes=yes
8011 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8013 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8014 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8015 # If the export-symbols file already is a .def file (1st line
8016 # is EXPORTS), use it as is; otherwise, prepend...
8017 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8018 cp $export_symbols $output_objdir/$soname.def;
8020 echo EXPORTS > $output_objdir/$soname.def;
8021 cat $export_symbols >> $output_objdir/$soname.def;
8023 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8031 hardcode_shlibpath_var=no
8032 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8033 export_dynamic_flag_spec='${wl}-E'
8034 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8035 # Instead, shared libraries are loaded at an image base (0x10000000 by
8036 # default) and relocated if they conflict, which is a slow very memory
8037 # consuming and fragmenting process. To avoid this, we pick a random,
8038 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8039 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8040 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8041 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'
8044 gnu* | linux* | k*bsd*-gnu)
8045 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8047 case $cc_basename,$host_cpu in
8048 pgcc*) # Portland Group C compiler
8049 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'
8050 tmp_addflag=' $pic_flag'
8052 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8053 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'
8054 tmp_addflag=' $pic_flag -Mnomain' ;;
8055 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8056 tmp_addflag=' -i_dynamic' ;;
8057 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8058 tmp_addflag=' -i_dynamic -nofor_main' ;;
8059 ifc* | ifort*) # Intel Fortran compiler
8060 tmp_addflag=' -nofor_main' ;;
8062 case `$CC -V 2>&1 | sed 5q` in
8063 *Sun\ C*) # Sun C 5.9
8064 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'
8065 tmp_sharedflag='-G' ;;
8066 *Sun\ F*) # Sun Fortran 8.3
8067 tmp_sharedflag='-G' ;;
8069 tmp_sharedflag='-shared' ;;
8071 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8073 if test $supports_anon_versioning = yes; then
8074 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8075 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8076 $echo "local: *; };" >> $output_objdir/$libname.ver~
8077 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8085 netbsd* | netbsdelf*-gnu)
8086 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8087 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8090 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8091 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8096 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8100 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8101 *** create shared libraries on Solaris systems. Therefore, libtool
8102 *** is disabling shared libraries support. We urge you to upgrade GNU
8103 *** binutils to release 2.9.1 or newer. Another option is to modify
8104 *** your PATH or compiler configuration so that the native linker is
8105 *** used, and then restart.
8108 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8109 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8110 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8116 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8117 case `$LD -v 2>&1` in
8118 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8122 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8123 *** reliably create shared libraries on SCO systems. Therefore, libtool
8124 *** is disabling shared libraries support. We urge you to upgrade GNU
8125 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8126 *** your PATH or compiler configuration so that the native linker is
8127 *** used, and then restart.
8132 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8133 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8134 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8135 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8144 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8147 hardcode_shlibpath_var=no
8151 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8152 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8153 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8160 if test "$ld_shlibs" = no; then
8162 hardcode_libdir_flag_spec=
8163 export_dynamic_flag_spec=
8164 whole_archive_flag_spec=
8167 # PORTME fill in a description of your system's linker (not GNU ld)
8170 allow_undefined_flag=unsupported
8171 always_export_symbols=yes
8172 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'
8173 # Note: this linker hardcodes the directories in LIBPATH if there
8174 # are no directories specified by -L.
8175 hardcode_minus_L=yes
8176 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8177 # Neither direct hardcoding nor static linking is supported with a
8179 hardcode_direct=unsupported
8184 if test "$host_cpu" = ia64; then
8185 # On IA64, the linker does run time linking by default, so we don't
8186 # have to do anything special.
8187 aix_use_runtimelinking=no
8188 exp_sym_flag='-Bexport'
8191 # If we're using GNU nm, then we don't want the "-C" option.
8192 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8193 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8194 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'
8196 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'
8198 aix_use_runtimelinking=no
8200 # Test if we are trying to use run time linking or normal
8201 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8202 # need to do runtime linking.
8203 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8204 for ld_flag in $LDFLAGS; do
8205 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8206 aix_use_runtimelinking=yes
8213 exp_sym_flag='-bexport'
8214 no_entry_flag='-bnoentry'
8217 # When large executables or shared objects are built, AIX ld can
8218 # have problems creating the table of contents. If linking a library
8219 # or program results in "error TOC overflow" add -mminimal-toc to
8220 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8221 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8225 hardcode_libdir_separator=':'
8226 link_all_deplibs=yes
8228 if test "$GCC" = yes; then
8229 case $host_os in aix4.[012]|aix4.[012].*)
8230 # We only want to do this on AIX 4.2 and lower, the check
8231 # below for broken collect2 doesn't work under 4.3+
8232 collect2name=`${CC} -print-prog-name=collect2`
8233 if test -f "$collect2name" && \
8234 strings "$collect2name" | grep resolve_lib_name >/dev/null
8236 # We have reworked collect2
8239 # We have old collect2
8240 hardcode_direct=unsupported
8241 # It fails to find uninstalled libraries when the uninstalled
8242 # path is not listed in the libpath. Setting hardcode_minus_L
8243 # to unsupported forces relinking
8244 hardcode_minus_L=yes
8245 hardcode_libdir_flag_spec='-L$libdir'
8246 hardcode_libdir_separator=
8250 shared_flag='-shared'
8251 if test "$aix_use_runtimelinking" = yes; then
8252 shared_flag="$shared_flag "'${wl}-G'
8256 if test "$host_cpu" = ia64; then
8257 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8258 # chokes on -Wl,-G. The following line is correct:
8261 if test "$aix_use_runtimelinking" = yes; then
8262 shared_flag='${wl}-G'
8264 shared_flag='${wl}-bM:SRE'
8269 # It seems that -bexpall does not export symbols beginning with
8270 # underscore (_), so it is better to generate a list of symbols to export.
8271 always_export_symbols=yes
8272 if test "$aix_use_runtimelinking" = yes; then
8273 # Warning - without using the other runtime loading flags (-brtl),
8274 # -berok will link without error, but may produce a broken library.
8275 allow_undefined_flag='-berok'
8276 # Determine the default libpath from the value encoded in an empty executable.
8277 cat >conftest.$ac_ext <<_ACEOF
8280 cat confdefs.h >>conftest.$ac_ext
8281 cat >>conftest.$ac_ext <<_ACEOF
8282 /* end confdefs.h. */
8292 rm -f conftest.$ac_objext conftest$ac_exeext
8293 if { (ac_try="$ac_link"
8295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8296 *) ac_try_echo=$ac_try;;
8298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8299 (eval "$ac_link") 2>conftest.er1
8301 grep -v '^ *+' conftest.er1 >conftest.err
8303 cat conftest.err >&5
8304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 (exit $ac_status); } && {
8306 test -z "$ac_c_werror_flag" ||
8307 test ! -s conftest.err
8308 } && test -s conftest$ac_exeext &&
8309 $as_test_x conftest$ac_exeext; then
8311 lt_aix_libpath_sed='
8312 /Import File Strings/,/^$/ {
8318 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8319 # Check for a 64-bit object if we didn't find anything.
8320 if test -z "$aix_libpath"; then
8321 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8324 echo "$as_me: failed program was:" >&5
8325 sed 's/^/| /' conftest.$ac_ext >&5
8330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8331 conftest$ac_exeext conftest.$ac_ext
8332 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8334 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8335 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"
8337 if test "$host_cpu" = ia64; then
8338 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8339 allow_undefined_flag="-z nodefs"
8340 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"
8342 # Determine the default libpath from the value encoded in an empty executable.
8343 cat >conftest.$ac_ext <<_ACEOF
8346 cat confdefs.h >>conftest.$ac_ext
8347 cat >>conftest.$ac_ext <<_ACEOF
8348 /* end confdefs.h. */
8358 rm -f conftest.$ac_objext conftest$ac_exeext
8359 if { (ac_try="$ac_link"
8361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8362 *) ac_try_echo=$ac_try;;
8364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8365 (eval "$ac_link") 2>conftest.er1
8367 grep -v '^ *+' conftest.er1 >conftest.err
8369 cat conftest.err >&5
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); } && {
8372 test -z "$ac_c_werror_flag" ||
8373 test ! -s conftest.err
8374 } && test -s conftest$ac_exeext &&
8375 $as_test_x conftest$ac_exeext; then
8377 lt_aix_libpath_sed='
8378 /Import File Strings/,/^$/ {
8384 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8385 # Check for a 64-bit object if we didn't find anything.
8386 if test -z "$aix_libpath"; then
8387 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8390 echo "$as_me: failed program was:" >&5
8391 sed 's/^/| /' conftest.$ac_ext >&5
8396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8397 conftest$ac_exeext conftest.$ac_ext
8398 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8400 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8401 # Warning - without using the other run time loading flags,
8402 # -berok will link without error, but may produce a broken library.
8403 no_undefined_flag=' ${wl}-bernotok'
8404 allow_undefined_flag=' ${wl}-berok'
8405 # Exported symbols can be pulled into shared objects from archives
8406 whole_archive_flag_spec='$convenience'
8407 archive_cmds_need_lc=yes
8408 # This is similar to how AIX traditionally builds its shared libraries.
8409 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'
8415 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)'
8416 hardcode_libdir_flag_spec='-L$libdir'
8417 hardcode_minus_L=yes
8418 # see comment about different semantics on the GNU ld section
8423 export_dynamic_flag_spec=-rdynamic
8426 cygwin* | mingw* | pw32*)
8427 # When not using gcc, we currently assume that we are using
8428 # Microsoft Visual C++.
8429 # hardcode_libdir_flag_spec is actually meaningless, as there is
8430 # no search path for DLLs.
8431 hardcode_libdir_flag_spec=' '
8432 allow_undefined_flag=unsupported
8433 # Tell ltmain to make .lib files, not .a files.
8435 # Tell ltmain to make .dll files, not .so files.
8437 # FIXME: Setting linknames here is a bad hack.
8438 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8439 # The linker will automatically build a .lib file if we build a DLL.
8440 old_archive_From_new_cmds='true'
8441 # FIXME: Should let the user specify the lib program.
8442 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8443 fix_srcfile_path='`cygpath -w "$srcfile"`'
8444 enable_shared_with_static_runtimes=yes
8447 darwin* | rhapsody*)
8449 rhapsody* | darwin1.[012])
8450 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8453 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8454 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8456 case ${MACOSX_DEPLOYMENT_TARGET} in
8458 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8461 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8467 archive_cmds_need_lc=no
8469 hardcode_automatic=yes
8470 hardcode_shlibpath_var=unsupported
8471 whole_archive_flag_spec=''
8472 link_all_deplibs=yes
8473 if test "$GCC" = yes ; then
8474 output_verbose_link_cmd='echo'
8475 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8476 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8477 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}"
8478 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}"
8480 case $cc_basename in
8482 output_verbose_link_cmd='echo'
8483 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8484 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8485 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8486 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}'
8487 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}'
8497 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8498 hardcode_libdir_flag_spec='-L$libdir'
8499 hardcode_shlibpath_var=no
8506 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8507 # support. Future versions do this automatically, but an explicit c++rt0.o
8508 # does not break anything, and helps significantly (at the cost of a little
8511 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8512 hardcode_libdir_flag_spec='-R$libdir'
8514 hardcode_shlibpath_var=no
8517 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8519 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8521 hardcode_minus_L=yes
8522 hardcode_shlibpath_var=no
8525 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8526 freebsd* | dragonfly*)
8527 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8528 hardcode_libdir_flag_spec='-R$libdir'
8530 hardcode_shlibpath_var=no
8534 if test "$GCC" = yes; then
8535 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'
8537 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'
8539 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8540 hardcode_libdir_separator=:
8543 # hardcode_minus_L: Not really in the search PATH,
8544 # but as the default location of the library.
8545 hardcode_minus_L=yes
8546 export_dynamic_flag_spec='${wl}-E'
8550 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8551 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8553 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8555 if test "$with_gnu_ld" = no; then
8556 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8557 hardcode_libdir_separator=:
8560 export_dynamic_flag_spec='${wl}-E'
8562 # hardcode_minus_L: Not really in the search PATH,
8563 # but as the default location of the library.
8564 hardcode_minus_L=yes
8569 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8572 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8575 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8578 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8584 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8587 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8590 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8594 if test "$with_gnu_ld" = no; then
8595 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8596 hardcode_libdir_separator=:
8600 hardcode_libdir_flag_spec_ld='+b $libdir'
8602 hardcode_shlibpath_var=no
8606 export_dynamic_flag_spec='${wl}-E'
8608 # hardcode_minus_L: Not really in the search PATH,
8609 # but as the default location of the library.
8610 hardcode_minus_L=yes
8616 irix5* | irix6* | nonstopux*)
8617 if test "$GCC" = yes; then
8618 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'
8620 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'
8621 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8623 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8624 hardcode_libdir_separator=:
8625 link_all_deplibs=yes
8628 netbsd* | netbsdelf*-gnu)
8629 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8630 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8632 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8634 hardcode_libdir_flag_spec='-R$libdir'
8636 hardcode_shlibpath_var=no
8640 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8642 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8643 hardcode_libdir_separator=:
8644 hardcode_shlibpath_var=no
8648 if test -f /usr/libexec/ld.so; then
8650 hardcode_shlibpath_var=no
8651 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8652 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8653 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8654 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8655 export_dynamic_flag_spec='${wl}-E'
8658 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8659 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8660 hardcode_libdir_flag_spec='-R$libdir'
8663 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8664 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8674 hardcode_libdir_flag_spec='-L$libdir'
8675 hardcode_minus_L=yes
8676 allow_undefined_flag=unsupported
8677 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'
8678 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8682 if test "$GCC" = yes; then
8683 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8684 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'
8686 allow_undefined_flag=' -expect_unresolved \*'
8687 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'
8689 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8690 hardcode_libdir_separator=:
8693 osf4* | osf5*) # as osf3* with the addition of -msym flag
8694 if test "$GCC" = yes; then
8695 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8696 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'
8697 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8699 allow_undefined_flag=' -expect_unresolved \*'
8700 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'
8701 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8702 $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'
8704 # Both c and cxx compiler support -rpath directly
8705 hardcode_libdir_flag_spec='-rpath $libdir'
8707 hardcode_libdir_separator=:
8711 no_undefined_flag=' -z text'
8712 if test "$GCC" = yes; then
8714 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8715 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8716 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8719 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8720 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8721 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8723 hardcode_libdir_flag_spec='-R$libdir'
8724 hardcode_shlibpath_var=no
8726 solaris2.[0-5] | solaris2.[0-5].*) ;;
8728 # The compiler driver will combine and reorder linker options,
8729 # but understands `-z linker_flag'. GCC discards it without `$wl',
8730 # but is careful enough not to reorder.
8731 # Supported since Solaris 2.6 (maybe 2.5.1?)
8732 if test "$GCC" = yes; then
8733 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8735 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8739 link_all_deplibs=yes
8743 if test "x$host_vendor" = xsequent; then
8744 # Use $CC to link under sequent, because it throws in some extra .o
8745 # files that make .init and .fini sections work.
8746 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8748 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8750 hardcode_libdir_flag_spec='-L$libdir'
8752 hardcode_minus_L=yes
8753 hardcode_shlibpath_var=no
8757 case $host_vendor in
8759 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8760 hardcode_direct=yes # is this really true???
8763 ## LD is ld it makes a PLAMLIB
8764 ## CC just makes a GrossModule.
8765 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8766 reload_cmds='$CC -r -o $output$reload_objs'
8770 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8771 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8774 runpath_var='LD_RUN_PATH'
8775 hardcode_shlibpath_var=no
8779 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8780 hardcode_shlibpath_var=no
8781 export_dynamic_flag_spec='-Bexport'
8785 if test -d /usr/nec; then
8786 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8787 hardcode_shlibpath_var=no
8788 runpath_var=LD_RUN_PATH
8789 hardcode_runpath_var=yes
8794 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8795 no_undefined_flag='${wl}-z,text'
8796 archive_cmds_need_lc=no
8797 hardcode_shlibpath_var=no
8798 runpath_var='LD_RUN_PATH'
8800 if test "$GCC" = yes; then
8801 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8802 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8804 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8805 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8809 sysv5* | sco3.2v5* | sco5v6*)
8810 # Note: We can NOT use -z defs as we might desire, because we do not
8811 # link with -lc, and that would cause any symbols used from libc to
8812 # always be unresolved, which means just about no library would
8813 # ever link correctly. If we're not using GNU ld we use -z text
8814 # though, which does catch some bad symbols but isn't as heavy-handed
8816 no_undefined_flag='${wl}-z,text'
8817 allow_undefined_flag='${wl}-z,nodefs'
8818 archive_cmds_need_lc=no
8819 hardcode_shlibpath_var=no
8820 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8821 hardcode_libdir_separator=':'
8822 link_all_deplibs=yes
8823 export_dynamic_flag_spec='${wl}-Bexport'
8824 runpath_var='LD_RUN_PATH'
8826 if test "$GCC" = yes; then
8827 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8828 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8830 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8831 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8836 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8837 hardcode_libdir_flag_spec='-L$libdir'
8838 hardcode_shlibpath_var=no
8847 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8848 echo "${ECHO_T}$ld_shlibs" >&6; }
8849 test "$ld_shlibs" = no && can_build_shared=no
8852 # Do we need to explicitly link libc?
8854 case "x$archive_cmds_need_lc" in
8856 # Assume -lc should be added
8857 archive_cmds_need_lc=yes
8859 if test "$enable_shared" = yes && test "$GCC" = yes; then
8860 case $archive_cmds in
8862 # FIXME: we may have to deal with multi-command sequences.
8865 # Test whether the compiler implicitly links with -lc since on some
8866 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8867 # to ld, don't add -lc before -lgcc.
8868 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8869 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8871 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8874 (eval $ac_compile) 2>&5
8876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877 (exit $ac_status); } 2>conftest.err; then
8880 libobjs=conftest.$ac_objext
8882 wl=$lt_prog_compiler_wl
8883 pic_flag=$lt_prog_compiler_pic
8889 lt_save_allow_undefined_flag=$allow_undefined_flag
8890 allow_undefined_flag=
8891 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8892 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895 (exit $ac_status); }
8897 archive_cmds_need_lc=no
8899 archive_cmds_need_lc=yes
8901 allow_undefined_flag=$lt_save_allow_undefined_flag
8903 cat conftest.err 1>&5
8906 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8907 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8914 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8915 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8917 libname_spec='lib$name'
8925 shlibpath_overrides_runpath=unknown
8927 dynamic_linker="$host_os ld.so"
8928 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8930 if test "$GCC" = yes; then
8932 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8933 *) lt_awk_arg="/^libraries:/" ;;
8935 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8936 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8937 # if the path contains ";" then we assume it to be the separator
8938 # otherwise default to the standard path separator (i.e. ":") - it is
8939 # assumed that no part of a normal pathname contains ";" but that should
8940 # okay in the real world where ";" in dirpaths is itself problematic.
8941 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8943 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8945 # Ok, now we have the path, separated by spaces, we can step through it
8946 # and add multilib dir if necessary.
8947 lt_tmp_lt_search_path_spec=
8948 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8949 for lt_sys_path in $lt_search_path_spec; do
8950 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8951 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8953 test -d "$lt_sys_path" && \
8954 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8957 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8958 BEGIN {RS=" "; FS="/|\n";} {
8961 for (lt_i = NF; lt_i > 0; lt_i--) {
8962 if ($lt_i != "" && $lt_i != ".") {
8963 if ($lt_i == "..") {
8966 if (lt_count == 0) {
8967 lt_foo="/" $lt_i lt_foo;
8974 if (lt_foo != "") { lt_freq[lt_foo]++; }
8975 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8977 sys_lib_search_path_spec=`echo $lt_search_path_spec`
8979 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8981 need_lib_prefix=unknown
8982 hardcode_into_libs=no
8984 # when you set need_version to no, make sure it does not cause -set_version
8985 # flags to be left without arguments
8986 need_version=unknown
8991 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8992 shlibpath_var=LIBPATH
8994 # AIX 3 has no versioning support, so we append a major version to the name.
8995 soname_spec='${libname}${release}${shared_ext}$major'
9002 hardcode_into_libs=yes
9003 if test "$host_cpu" = ia64; then
9004 # AIX 5 supports IA64
9005 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9006 shlibpath_var=LD_LIBRARY_PATH
9008 # With GCC up to 2.95.x, collect2 would create an import file
9009 # for dependence libraries. The import file would start with
9010 # the line `#! .'. This would cause the generated library to
9011 # depend on `.', always an invalid library. This was fixed in
9012 # development snapshots of GCC prior to 3.0.
9014 aix4 | aix4.[01] | aix4.[01].*)
9015 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9017 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9024 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9025 # soname into executable. Probably we can add versioning support to
9026 # collect2, so additional links can be useful in future.
9027 if test "$aix_use_runtimelinking" = yes; then
9028 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9029 # instead of lib<name>.a to let people know that these are not
9030 # typical AIX shared libraries.
9031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9033 # We preserve .a as extension for shared libraries through AIX4.2
9034 # and later when we are not doing run time linking.
9035 library_names_spec='${libname}${release}.a $libname.a'
9036 soname_spec='${libname}${release}${shared_ext}$major'
9038 shlibpath_var=LIBPATH
9043 library_names_spec='$libname.ixlibrary $libname.a'
9044 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9045 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'
9049 library_names_spec='${libname}${shared_ext}'
9050 dynamic_linker="$host_os ld.so"
9051 shlibpath_var=LIBRARY_PATH
9057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9058 soname_spec='${libname}${release}${shared_ext}$major'
9059 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9060 shlibpath_var=LD_LIBRARY_PATH
9061 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9062 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9063 # the default ld.so.conf also contains /usr/contrib/lib and
9064 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9065 # libtool to hard-code these into programs
9068 cygwin* | mingw* | pw32*)
9069 version_type=windows
9074 case $GCC,$host_os in
9075 yes,cygwin* | yes,mingw* | yes,pw32*)
9076 library_names_spec='$libname.dll.a'
9077 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9078 postinstall_cmds='base_file=`basename \${file}`~
9079 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9080 dldir=$destdir/`dirname \$dlpath`~
9081 test -d \$dldir || mkdir -p \$dldir~
9082 $install_prog $dir/$dlname \$dldir/$dlname~
9083 chmod a+x \$dldir/$dlname'
9084 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9085 dlpath=$dir/\$dldll~
9087 shlibpath_overrides_runpath=yes
9091 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9092 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9093 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9096 # MinGW DLLs use traditional 'lib' prefix
9097 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9098 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9099 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9100 # It is most probably a Windows format PATH printed by
9101 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9102 # path with ; separators, and with drive letters. We can handle the
9103 # drive letters (cygwin fileutils understands them), so leave them,
9104 # especially as we might pass files found there to a mingw objdump,
9105 # which wouldn't understand a cygwinified path. Ahh.
9106 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9108 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9112 # pw32 DLLs use 'pw' prefix rather than 'lib'
9113 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9119 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9122 dynamic_linker='Win32 ld.exe'
9123 # FIXME: first we should search . and the directory the executable is in
9127 darwin* | rhapsody*)
9128 dynamic_linker="$host_os dyld"
9132 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9133 soname_spec='${libname}${release}${major}$shared_ext'
9134 shlibpath_overrides_runpath=yes
9135 shlibpath_var=DYLD_LIBRARY_PATH
9136 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9138 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9139 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9147 soname_spec='${libname}${release}${shared_ext}$major'
9148 shlibpath_var=LD_LIBRARY_PATH
9155 freebsd* | dragonfly*)
9156 # DragonFly does not have aout. When/if they implement a new
9157 # versioning mechanism, adjust this.
9158 if test -x /usr/bin/objformat; then
9159 objformat=`/usr/bin/objformat`
9162 freebsd[123]*) objformat=aout ;;
9166 version_type=freebsd-$objformat
9167 case $version_type in
9169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9174 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9178 shlibpath_var=LD_LIBRARY_PATH
9181 shlibpath_overrides_runpath=yes
9183 freebsd3.[01]* | freebsdelf3.[01]*)
9184 shlibpath_overrides_runpath=yes
9185 hardcode_into_libs=yes
9187 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9188 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9189 shlibpath_overrides_runpath=no
9190 hardcode_into_libs=yes
9192 *) # from 4.6 on, and DragonFly
9193 shlibpath_overrides_runpath=yes
9194 hardcode_into_libs=yes
9203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9204 soname_spec='${libname}${release}${shared_ext}$major'
9205 shlibpath_var=LD_LIBRARY_PATH
9206 hardcode_into_libs=yes
9209 hpux9* | hpux10* | hpux11*)
9210 # Give a soname corresponding to the major version so that dld.sl refuses to
9211 # link against other versions.
9218 hardcode_into_libs=yes
9219 dynamic_linker="$host_os dld.so"
9220 shlibpath_var=LD_LIBRARY_PATH
9221 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9223 soname_spec='${libname}${release}${shared_ext}$major'
9224 if test "X$HPUX_IA64_MODE" = X32; then
9225 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9227 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9229 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9233 hardcode_into_libs=yes
9234 dynamic_linker="$host_os dld.sl"
9235 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9236 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9238 soname_spec='${libname}${release}${shared_ext}$major'
9239 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9240 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9244 dynamic_linker="$host_os dld.sl"
9245 shlibpath_var=SHLIB_PATH
9246 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9248 soname_spec='${libname}${release}${shared_ext}$major'
9251 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9252 postinstall_cmds='chmod 555 $lib'
9259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9260 soname_spec='${libname}${release}${shared_ext}$major'
9261 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9262 shlibpath_var=LD_LIBRARY_PATH
9263 shlibpath_overrides_runpath=no
9264 hardcode_into_libs=yes
9267 irix5* | irix6* | nonstopux*)
9269 nonstopux*) version_type=nonstopux ;;
9271 if test "$lt_cv_prog_gnu_ld" = yes; then
9279 soname_spec='${libname}${release}${shared_ext}$major'
9280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9282 irix5* | nonstopux*)
9286 case $LD in # libtool.m4 will add one of these switches to LD
9287 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9288 libsuff= shlibsuff= libmagic=32-bit;;
9289 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9290 libsuff=32 shlibsuff=N32 libmagic=N32;;
9291 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9292 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9293 *) libsuff= shlibsuff= libmagic=never-match;;
9297 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9298 shlibpath_overrides_runpath=no
9299 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9300 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9301 hardcode_into_libs=yes
9304 # No shared lib support for Linux oldld, aout, or coff.
9305 linux*oldld* | linux*aout* | linux*coff*)
9309 # This must be Linux ELF.
9310 linux* | k*bsd*-gnu)
9314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9315 soname_spec='${libname}${release}${shared_ext}$major'
9316 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9317 shlibpath_var=LD_LIBRARY_PATH
9318 shlibpath_overrides_runpath=no
9319 # This implies no fast_install, which is unacceptable.
9320 # Some rework will be needed to allow for fast_install
9321 # before this can be enabled.
9322 hardcode_into_libs=yes
9324 # Append ld.so.conf contents to the search path
9325 if test -f /etc/ld.so.conf; then
9326 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' ' '`
9327 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9330 # We used to test for /lib/ld.so.1 and disable shared libraries on
9331 # powerpc, because MkLinux only supported shared libraries with the
9332 # GNU dynamic linker. Since this was broken with cross compilers,
9333 # most powerpc-linux boxes support dynamic linking these days and
9334 # people can always --disable-shared, the test was removed, and we
9335 # assume the GNU/Linux dynamic linker is in use.
9336 dynamic_linker='GNU/Linux ld.so'
9343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9344 soname_spec='${libname}${release}${shared_ext}$major'
9345 shlibpath_var=LD_LIBRARY_PATH
9346 shlibpath_overrides_runpath=no
9347 hardcode_into_libs=yes
9348 dynamic_linker='NetBSD ld.elf_so'
9355 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9357 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9358 dynamic_linker='NetBSD (a.out) ld.so'
9360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9361 soname_spec='${libname}${release}${shared_ext}$major'
9362 dynamic_linker='NetBSD ld.elf_so'
9364 shlibpath_var=LD_LIBRARY_PATH
9365 shlibpath_overrides_runpath=yes
9366 hardcode_into_libs=yes
9371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9372 shlibpath_var=LD_LIBRARY_PATH
9373 shlibpath_overrides_runpath=yes
9380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9381 soname_spec='${libname}${release}${shared_ext}$major'
9382 shlibpath_var=LD_LIBRARY_PATH
9383 shlibpath_overrides_runpath=yes
9388 sys_lib_dlsearch_path_spec="/usr/lib"
9390 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9392 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9393 *) need_version=no ;;
9395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9396 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9397 shlibpath_var=LD_LIBRARY_PATH
9398 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9400 openbsd2.[89] | openbsd2.[89].*)
9401 shlibpath_overrides_runpath=no
9404 shlibpath_overrides_runpath=yes
9408 shlibpath_overrides_runpath=yes
9413 libname_spec='$name'
9416 library_names_spec='$libname${shared_ext} $libname.a'
9417 dynamic_linker='OS/2 ld.exe'
9418 shlibpath_var=LIBPATH
9421 osf3* | osf4* | osf5*)
9425 soname_spec='${libname}${release}${shared_ext}$major'
9426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9427 shlibpath_var=LD_LIBRARY_PATH
9428 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9429 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9441 soname_spec='${libname}${release}${shared_ext}$major'
9442 shlibpath_var=LD_LIBRARY_PATH
9443 shlibpath_overrides_runpath=yes
9444 hardcode_into_libs=yes
9445 # ldd complains unless libraries are executable
9446 postinstall_cmds='chmod +x $lib'
9451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9452 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9453 shlibpath_var=LD_LIBRARY_PATH
9454 shlibpath_overrides_runpath=yes
9455 if test "$with_gnu_ld" = yes; then
9463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9464 soname_spec='${libname}${release}${shared_ext}$major'
9465 shlibpath_var=LD_LIBRARY_PATH
9466 case $host_vendor in
9468 shlibpath_overrides_runpath=no
9470 export_dynamic_flag_spec='${wl}-Blargedynsym'
9471 runpath_var=LD_RUN_PATH
9479 shlibpath_overrides_runpath=no
9480 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9486 if test -d /usr/nec ;then
9488 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9489 soname_spec='$libname${shared_ext}.$major'
9490 shlibpath_var=LD_LIBRARY_PATH
9494 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9495 version_type=freebsd-elf
9498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9499 soname_spec='${libname}${release}${shared_ext}$major'
9500 shlibpath_var=LD_LIBRARY_PATH
9501 hardcode_into_libs=yes
9502 if test "$with_gnu_ld" = yes; then
9503 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9504 shlibpath_overrides_runpath=no
9506 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9507 shlibpath_overrides_runpath=yes
9510 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9514 sys_lib_dlsearch_path_spec='/usr/lib'
9519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9520 soname_spec='${libname}${release}${shared_ext}$major'
9521 shlibpath_var=LD_LIBRARY_PATH
9528 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9529 echo "${ECHO_T}$dynamic_linker" >&6; }
9530 test "$dynamic_linker" = no && can_build_shared=no
9532 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9533 echo $ECHO_N "(cached) $ECHO_C" >&6
9535 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9538 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9539 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9540 echo $ECHO_N "(cached) $ECHO_C" >&6
9542 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9545 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9547 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9548 if test "$GCC" = yes; then
9549 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9552 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9553 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9555 if test -n "$hardcode_libdir_flag_spec" || \
9556 test -n "$runpath_var" || \
9557 test "X$hardcode_automatic" = "Xyes" ; then
9559 # We can hardcode non-existant directories.
9560 if test "$hardcode_direct" != no &&
9561 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9562 # have to relink, otherwise we might link with an installed library
9563 # when we should be linking with a yet-to-be-installed one
9564 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9565 test "$hardcode_minus_L" != no; then
9566 # Linking always hardcodes the temporary library directory.
9567 hardcode_action=relink
9569 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9570 hardcode_action=immediate
9573 # We cannot hardcode anything, or else we can only hardcode existing
9575 hardcode_action=unsupported
9577 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9578 echo "${ECHO_T}$hardcode_action" >&6; }
9580 if test "$hardcode_action" = relink; then
9581 # Fast installation is not supported
9582 enable_fast_install=no
9583 elif test "$shlibpath_overrides_runpath" = yes ||
9584 test "$enable_shared" = no; then
9585 # Fast installation is not necessary
9586 enable_fast_install=needless
9591 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9592 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9593 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9594 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9595 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9596 { echo "$as_me:$LINENO: result: yes" >&5
9597 echo "${ECHO_T}yes" >&6; }
9599 # FIXME - insert some real tests, host_os isn't really good enough
9602 if test -n "$STRIP" ; then
9603 striplib="$STRIP -x"
9604 old_striplib="$STRIP -S"
9605 { echo "$as_me:$LINENO: result: yes" >&5
9606 echo "${ECHO_T}yes" >&6; }
9608 { echo "$as_me:$LINENO: result: no" >&5
9609 echo "${ECHO_T}no" >&6; }
9613 { echo "$as_me:$LINENO: result: no" >&5
9614 echo "${ECHO_T}no" >&6; }
9619 if test "x$enable_dlopen" != xyes; then
9620 enable_dlopen=unknown
9621 enable_dlopen_self=unknown
9622 enable_dlopen_self_static=unknown
9629 lt_cv_dlopen="load_add_on"
9631 lt_cv_dlopen_self=yes
9635 lt_cv_dlopen="LoadLibrary"
9640 lt_cv_dlopen="dlopen"
9645 # if libdl is installed we need to link against it
9646 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9647 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9648 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9649 echo $ECHO_N "(cached) $ECHO_C" >&6
9651 ac_check_lib_save_LIBS=$LIBS
9653 cat >conftest.$ac_ext <<_ACEOF
9656 cat confdefs.h >>conftest.$ac_ext
9657 cat >>conftest.$ac_ext <<_ACEOF
9658 /* end confdefs.h. */
9660 /* Override any GCC internal prototype to avoid an error.
9661 Use char because int might match the return type of a GCC
9662 builtin and then its argument prototype would still apply. */
9675 rm -f conftest.$ac_objext conftest$ac_exeext
9676 if { (ac_try="$ac_link"
9678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9679 *) ac_try_echo=$ac_try;;
9681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9682 (eval "$ac_link") 2>conftest.er1
9684 grep -v '^ *+' conftest.er1 >conftest.err
9686 cat conftest.err >&5
9687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688 (exit $ac_status); } && {
9689 test -z "$ac_c_werror_flag" ||
9690 test ! -s conftest.err
9691 } && test -s conftest$ac_exeext &&
9692 $as_test_x conftest$ac_exeext; then
9693 ac_cv_lib_dl_dlopen=yes
9695 echo "$as_me: failed program was:" >&5
9696 sed 's/^/| /' conftest.$ac_ext >&5
9698 ac_cv_lib_dl_dlopen=no
9701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9702 conftest$ac_exeext conftest.$ac_ext
9703 LIBS=$ac_check_lib_save_LIBS
9705 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9706 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9707 if test $ac_cv_lib_dl_dlopen = yes; then
9708 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9713 lt_cv_dlopen_self=yes
9720 { echo "$as_me:$LINENO: checking for shl_load" >&5
9721 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9722 if test "${ac_cv_func_shl_load+set}" = set; then
9723 echo $ECHO_N "(cached) $ECHO_C" >&6
9725 cat >conftest.$ac_ext <<_ACEOF
9728 cat confdefs.h >>conftest.$ac_ext
9729 cat >>conftest.$ac_ext <<_ACEOF
9730 /* end confdefs.h. */
9731 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9733 #define shl_load innocuous_shl_load
9735 /* System header to define __stub macros and hopefully few prototypes,
9736 which can conflict with char shl_load (); below.
9737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9738 <limits.h> exists even on freestanding compilers. */
9741 # include <limits.h>
9743 # include <assert.h>
9748 /* Override any GCC internal prototype to avoid an error.
9749 Use char because int might match the return type of a GCC
9750 builtin and then its argument prototype would still apply. */
9755 /* The GNU C library defines this for functions which it implements
9756 to always fail with ENOSYS. Some functions are actually named
9757 something starting with __ and the normal name is an alias. */
9758 #if defined __stub_shl_load || defined __stub___shl_load
9770 rm -f conftest.$ac_objext conftest$ac_exeext
9771 if { (ac_try="$ac_link"
9773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9774 *) ac_try_echo=$ac_try;;
9776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9777 (eval "$ac_link") 2>conftest.er1
9779 grep -v '^ *+' conftest.er1 >conftest.err
9781 cat conftest.err >&5
9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783 (exit $ac_status); } && {
9784 test -z "$ac_c_werror_flag" ||
9785 test ! -s conftest.err
9786 } && test -s conftest$ac_exeext &&
9787 $as_test_x conftest$ac_exeext; then
9788 ac_cv_func_shl_load=yes
9790 echo "$as_me: failed program was:" >&5
9791 sed 's/^/| /' conftest.$ac_ext >&5
9793 ac_cv_func_shl_load=no
9796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9797 conftest$ac_exeext conftest.$ac_ext
9799 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9800 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9801 if test $ac_cv_func_shl_load = yes; then
9802 lt_cv_dlopen="shl_load"
9804 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9805 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9806 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9807 echo $ECHO_N "(cached) $ECHO_C" >&6
9809 ac_check_lib_save_LIBS=$LIBS
9811 cat >conftest.$ac_ext <<_ACEOF
9814 cat confdefs.h >>conftest.$ac_ext
9815 cat >>conftest.$ac_ext <<_ACEOF
9816 /* end confdefs.h. */
9818 /* Override any GCC internal prototype to avoid an error.
9819 Use char because int might match the return type of a GCC
9820 builtin and then its argument prototype would still apply. */
9833 rm -f conftest.$ac_objext conftest$ac_exeext
9834 if { (ac_try="$ac_link"
9836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9837 *) ac_try_echo=$ac_try;;
9839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9840 (eval "$ac_link") 2>conftest.er1
9842 grep -v '^ *+' conftest.er1 >conftest.err
9844 cat conftest.err >&5
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); } && {
9847 test -z "$ac_c_werror_flag" ||
9848 test ! -s conftest.err
9849 } && test -s conftest$ac_exeext &&
9850 $as_test_x conftest$ac_exeext; then
9851 ac_cv_lib_dld_shl_load=yes
9853 echo "$as_me: failed program was:" >&5
9854 sed 's/^/| /' conftest.$ac_ext >&5
9856 ac_cv_lib_dld_shl_load=no
9859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9860 conftest$ac_exeext conftest.$ac_ext
9861 LIBS=$ac_check_lib_save_LIBS
9863 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9864 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9865 if test $ac_cv_lib_dld_shl_load = yes; then
9866 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9868 { echo "$as_me:$LINENO: checking for dlopen" >&5
9869 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9870 if test "${ac_cv_func_dlopen+set}" = set; then
9871 echo $ECHO_N "(cached) $ECHO_C" >&6
9873 cat >conftest.$ac_ext <<_ACEOF
9876 cat confdefs.h >>conftest.$ac_ext
9877 cat >>conftest.$ac_ext <<_ACEOF
9878 /* end confdefs.h. */
9879 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9881 #define dlopen innocuous_dlopen
9883 /* System header to define __stub macros and hopefully few prototypes,
9884 which can conflict with char dlopen (); below.
9885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9886 <limits.h> exists even on freestanding compilers. */
9889 # include <limits.h>
9891 # include <assert.h>
9896 /* Override any GCC internal prototype to avoid an error.
9897 Use char because int might match the return type of a GCC
9898 builtin and then its argument prototype would still apply. */
9903 /* The GNU C library defines this for functions which it implements
9904 to always fail with ENOSYS. Some functions are actually named
9905 something starting with __ and the normal name is an alias. */
9906 #if defined __stub_dlopen || defined __stub___dlopen
9918 rm -f conftest.$ac_objext conftest$ac_exeext
9919 if { (ac_try="$ac_link"
9921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9922 *) ac_try_echo=$ac_try;;
9924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9925 (eval "$ac_link") 2>conftest.er1
9927 grep -v '^ *+' conftest.er1 >conftest.err
9929 cat conftest.err >&5
9930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931 (exit $ac_status); } && {
9932 test -z "$ac_c_werror_flag" ||
9933 test ! -s conftest.err
9934 } && test -s conftest$ac_exeext &&
9935 $as_test_x conftest$ac_exeext; then
9936 ac_cv_func_dlopen=yes
9938 echo "$as_me: failed program was:" >&5
9939 sed 's/^/| /' conftest.$ac_ext >&5
9941 ac_cv_func_dlopen=no
9944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9945 conftest$ac_exeext conftest.$ac_ext
9947 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9948 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9949 if test $ac_cv_func_dlopen = yes; then
9950 lt_cv_dlopen="dlopen"
9952 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9953 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9954 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9955 echo $ECHO_N "(cached) $ECHO_C" >&6
9957 ac_check_lib_save_LIBS=$LIBS
9959 cat >conftest.$ac_ext <<_ACEOF
9962 cat confdefs.h >>conftest.$ac_ext
9963 cat >>conftest.$ac_ext <<_ACEOF
9964 /* end confdefs.h. */
9966 /* Override any GCC internal prototype to avoid an error.
9967 Use char because int might match the return type of a GCC
9968 builtin and then its argument prototype would still apply. */
9981 rm -f conftest.$ac_objext conftest$ac_exeext
9982 if { (ac_try="$ac_link"
9984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9985 *) ac_try_echo=$ac_try;;
9987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9988 (eval "$ac_link") 2>conftest.er1
9990 grep -v '^ *+' conftest.er1 >conftest.err
9992 cat conftest.err >&5
9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994 (exit $ac_status); } && {
9995 test -z "$ac_c_werror_flag" ||
9996 test ! -s conftest.err
9997 } && test -s conftest$ac_exeext &&
9998 $as_test_x conftest$ac_exeext; then
9999 ac_cv_lib_dl_dlopen=yes
10001 echo "$as_me: failed program was:" >&5
10002 sed 's/^/| /' conftest.$ac_ext >&5
10004 ac_cv_lib_dl_dlopen=no
10007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10008 conftest$ac_exeext conftest.$ac_ext
10009 LIBS=$ac_check_lib_save_LIBS
10011 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10012 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10013 if test $ac_cv_lib_dl_dlopen = yes; then
10014 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10016 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10017 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10018 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10019 echo $ECHO_N "(cached) $ECHO_C" >&6
10021 ac_check_lib_save_LIBS=$LIBS
10022 LIBS="-lsvld $LIBS"
10023 cat >conftest.$ac_ext <<_ACEOF
10026 cat confdefs.h >>conftest.$ac_ext
10027 cat >>conftest.$ac_ext <<_ACEOF
10028 /* end confdefs.h. */
10030 /* Override any GCC internal prototype to avoid an error.
10031 Use char because int might match the return type of a GCC
10032 builtin and then its argument prototype would still apply. */
10045 rm -f conftest.$ac_objext conftest$ac_exeext
10046 if { (ac_try="$ac_link"
10047 case "(($ac_try" in
10048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10049 *) ac_try_echo=$ac_try;;
10051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10052 (eval "$ac_link") 2>conftest.er1
10054 grep -v '^ *+' conftest.er1 >conftest.err
10056 cat conftest.err >&5
10057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058 (exit $ac_status); } && {
10059 test -z "$ac_c_werror_flag" ||
10060 test ! -s conftest.err
10061 } && test -s conftest$ac_exeext &&
10062 $as_test_x conftest$ac_exeext; then
10063 ac_cv_lib_svld_dlopen=yes
10065 echo "$as_me: failed program was:" >&5
10066 sed 's/^/| /' conftest.$ac_ext >&5
10068 ac_cv_lib_svld_dlopen=no
10071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10072 conftest$ac_exeext conftest.$ac_ext
10073 LIBS=$ac_check_lib_save_LIBS
10075 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10076 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10077 if test $ac_cv_lib_svld_dlopen = yes; then
10078 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10080 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10081 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10082 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10083 echo $ECHO_N "(cached) $ECHO_C" >&6
10085 ac_check_lib_save_LIBS=$LIBS
10087 cat >conftest.$ac_ext <<_ACEOF
10090 cat confdefs.h >>conftest.$ac_ext
10091 cat >>conftest.$ac_ext <<_ACEOF
10092 /* end confdefs.h. */
10094 /* Override any GCC internal prototype to avoid an error.
10095 Use char because int might match the return type of a GCC
10096 builtin and then its argument prototype would still apply. */
10104 return dld_link ();
10109 rm -f conftest.$ac_objext conftest$ac_exeext
10110 if { (ac_try="$ac_link"
10111 case "(($ac_try" in
10112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10113 *) ac_try_echo=$ac_try;;
10115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10116 (eval "$ac_link") 2>conftest.er1
10118 grep -v '^ *+' conftest.er1 >conftest.err
10120 cat conftest.err >&5
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); } && {
10123 test -z "$ac_c_werror_flag" ||
10124 test ! -s conftest.err
10125 } && test -s conftest$ac_exeext &&
10126 $as_test_x conftest$ac_exeext; then
10127 ac_cv_lib_dld_dld_link=yes
10129 echo "$as_me: failed program was:" >&5
10130 sed 's/^/| /' conftest.$ac_ext >&5
10132 ac_cv_lib_dld_dld_link=no
10135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10136 conftest$ac_exeext conftest.$ac_ext
10137 LIBS=$ac_check_lib_save_LIBS
10139 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10140 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10141 if test $ac_cv_lib_dld_dld_link = yes; then
10142 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10163 if test "x$lt_cv_dlopen" != xno; then
10169 case $lt_cv_dlopen in
10171 save_CPPFLAGS="$CPPFLAGS"
10172 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10174 save_LDFLAGS="$LDFLAGS"
10175 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10178 LIBS="$lt_cv_dlopen_libs $LIBS"
10180 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10181 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10182 if test "${lt_cv_dlopen_self+set}" = set; then
10183 echo $ECHO_N "(cached) $ECHO_C" >&6
10185 if test "$cross_compiling" = yes; then :
10186 lt_cv_dlopen_self=cross
10188 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10189 lt_status=$lt_dlunknown
10190 cat > conftest.$ac_ext <<EOF
10191 #line 10191 "configure"
10192 #include "confdefs.h"
10201 # define LT_DLGLOBAL RTLD_GLOBAL
10204 # define LT_DLGLOBAL DL_GLOBAL
10206 # define LT_DLGLOBAL 0
10210 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10211 find out it does not work in some platform. */
10212 #ifndef LT_DLLAZY_OR_NOW
10214 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10217 # define LT_DLLAZY_OR_NOW DL_LAZY
10220 # define LT_DLLAZY_OR_NOW RTLD_NOW
10223 # define LT_DLLAZY_OR_NOW DL_NOW
10225 # define LT_DLLAZY_OR_NOW 0
10233 extern "C" void exit (int);
10236 void fnord() { int i=42;}
10239 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10240 int status = $lt_dlunknown;
10244 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10245 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10246 /* dlclose (self); */
10254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10255 (eval $ac_link) 2>&5
10257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10259 (./conftest; exit; ) >&5 2>/dev/null
10261 case x$lt_status in
10262 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10263 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10264 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10267 # compilation failed
10268 lt_cv_dlopen_self=no
10275 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10276 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10278 if test "x$lt_cv_dlopen_self" = xyes; then
10279 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10280 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10281 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10282 if test "${lt_cv_dlopen_self_static+set}" = set; then
10283 echo $ECHO_N "(cached) $ECHO_C" >&6
10285 if test "$cross_compiling" = yes; then :
10286 lt_cv_dlopen_self_static=cross
10288 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10289 lt_status=$lt_dlunknown
10290 cat > conftest.$ac_ext <<EOF
10291 #line 10291 "configure"
10292 #include "confdefs.h"
10301 # define LT_DLGLOBAL RTLD_GLOBAL
10304 # define LT_DLGLOBAL DL_GLOBAL
10306 # define LT_DLGLOBAL 0
10310 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10311 find out it does not work in some platform. */
10312 #ifndef LT_DLLAZY_OR_NOW
10314 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10317 # define LT_DLLAZY_OR_NOW DL_LAZY
10320 # define LT_DLLAZY_OR_NOW RTLD_NOW
10323 # define LT_DLLAZY_OR_NOW DL_NOW
10325 # define LT_DLLAZY_OR_NOW 0
10333 extern "C" void exit (int);
10336 void fnord() { int i=42;}
10339 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10340 int status = $lt_dlunknown;
10344 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10345 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10346 /* dlclose (self); */
10354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10355 (eval $ac_link) 2>&5
10357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10359 (./conftest; exit; ) >&5 2>/dev/null
10361 case x$lt_status in
10362 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10363 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10364 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10367 # compilation failed
10368 lt_cv_dlopen_self_static=no
10375 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10376 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10379 CPPFLAGS="$save_CPPFLAGS"
10380 LDFLAGS="$save_LDFLAGS"
10385 case $lt_cv_dlopen_self in
10386 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10387 *) enable_dlopen_self=unknown ;;
10390 case $lt_cv_dlopen_self_static in
10391 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10392 *) enable_dlopen_self_static=unknown ;;
10397 # Report which library types will actually be built
10398 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10399 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10400 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10401 echo "${ECHO_T}$can_build_shared" >&6; }
10403 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10404 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10405 test "$can_build_shared" = "no" && enable_shared=no
10407 # On AIX, shared libraries and static libraries use the same namespace, and
10408 # are all built from PIC.
10411 test "$enable_shared" = yes && enable_static=no
10412 if test -n "$RANLIB"; then
10413 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10414 postinstall_cmds='$RANLIB $lib'
10419 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10420 test "$enable_shared" = yes && enable_static=no
10424 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10425 echo "${ECHO_T}$enable_shared" >&6; }
10427 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10428 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10429 # Make sure either enable_shared or enable_static is yes.
10430 test "$enable_shared" = yes || enable_static=yes
10431 { echo "$as_me:$LINENO: result: $enable_static" >&5
10432 echo "${ECHO_T}$enable_static" >&6; }
10434 # The else clause should only fire when bootstrapping the
10435 # libtool distribution, otherwise you forgot to ship ltmain.sh
10436 # with your package, and you will get complaints that there are
10437 # no rules to generate ltmain.sh.
10438 if test -f "$ltmain"; then
10439 # See if we are running on zsh, and set the options which allow our commands through
10440 # without removal of \ escapes.
10441 if test -n "${ZSH_VERSION+set}" ; then
10442 setopt NO_GLOB_SUBST
10444 # Now quote all the things that may contain metacharacters while being
10445 # careful not to overquote the AC_SUBSTed values. We take copies of the
10446 # variables and quote the copies for generation of the libtool script.
10447 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10449 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10450 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10451 deplibs_check_method reload_flag reload_cmds need_locks \
10452 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10453 lt_cv_sys_global_symbol_to_c_name_address \
10454 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10455 old_postinstall_cmds old_postuninstall_cmds \
10459 lt_prog_compiler_wl \
10460 lt_prog_compiler_pic \
10461 lt_prog_compiler_static \
10462 lt_prog_compiler_no_builtin_flag \
10463 export_dynamic_flag_spec \
10464 thread_safe_flag_spec \
10465 whole_archive_flag_spec \
10466 enable_shared_with_static_runtimes \
10468 old_archive_from_new_cmds \
10473 compiler_lib_search_path \
10474 compiler_lib_search_dirs \
10476 archive_expsym_cmds \
10478 postuninstall_cmds \
10479 old_archive_from_expsyms_cmds \
10480 allow_undefined_flag \
10481 no_undefined_flag \
10482 export_symbols_cmds \
10483 hardcode_libdir_flag_spec \
10484 hardcode_libdir_flag_spec_ld \
10485 hardcode_libdir_separator \
10486 hardcode_automatic \
10488 module_expsym_cmds \
10489 lt_cv_prog_compiler_c_o \
10492 include_expsyms; do
10495 old_archive_cmds | \
10496 old_archive_from_new_cmds | \
10498 archive_expsym_cmds | \
10500 module_expsym_cmds | \
10501 old_archive_from_expsyms_cmds | \
10502 export_symbols_cmds | \
10503 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10504 postinstall_cmds | postuninstall_cmds | \
10505 old_postinstall_cmds | old_postuninstall_cmds | \
10506 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10507 # Double-quote double-evaled strings.
10508 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10511 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10517 *'\$0 --fallback-echo"')
10518 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10522 cfgfile="${ofile}T"
10523 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10525 { echo "$as_me:$LINENO: creating $ofile" >&5
10526 echo "$as_me: creating $ofile" >&6;}
10528 cat <<__EOF__ >> "$cfgfile"
10531 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10532 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10533 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10535 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10536 # Free Software Foundation, Inc.
10538 # This file is part of GNU Libtool:
10539 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10541 # This program is free software; you can redistribute it and/or modify
10542 # it under the terms of the GNU General Public License as published by
10543 # the Free Software Foundation; either version 2 of the License, or
10544 # (at your option) any later version.
10546 # This program is distributed in the hope that it will be useful, but
10547 # WITHOUT ANY WARRANTY; without even the implied warranty of
10548 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10549 # General Public License for more details.
10551 # You should have received a copy of the GNU General Public License
10552 # along with this program; if not, write to the Free Software
10553 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10555 # As a special exception to the GNU General Public License, if you
10556 # distribute this file as part of a program that contains a
10557 # configuration script generated by Autoconf, you may include it under
10558 # the same distribution terms that you use for the rest of that program.
10560 # A sed program that does not truncate output.
10563 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10564 Xsed="$SED -e 1s/^X//"
10566 # The HP-UX ksh and POSIX shell print the target directory to stdout
10567 # if CDPATH is set.
10568 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10570 # The names of the tagged configurations supported by this script.
10573 # ### BEGIN LIBTOOL CONFIG
10575 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10577 # Shell to use when invoking shell scripts.
10580 # Whether or not to build shared libraries.
10581 build_libtool_libs=$enable_shared
10583 # Whether or not to build static libraries.
10584 build_old_libs=$enable_static
10586 # Whether or not to add -lc for building shared libraries.
10587 build_libtool_need_lc=$archive_cmds_need_lc
10589 # Whether or not to disallow shared libs when runtime libs are static
10590 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10592 # Whether or not to optimize for fast installation.
10593 fast_install=$enable_fast_install
10596 host_alias=$host_alias
10600 # The build system.
10601 build_alias=$build_alias
10605 # An echo program that does not interpret backslashes.
10610 AR_FLAGS=$lt_AR_FLAGS
10615 # LTCC compiler flags.
10616 LTCFLAGS=$lt_LTCFLAGS
10618 # A language-specific compiler.
10621 # Is the compiler the GNU C compiler?
10627 # The linker used to build libraries.
10630 # Whether we need hard or soft links.
10633 # A BSD-compatible nm program.
10636 # A symbol stripping program
10639 # Used to examine libraries when file_magic_cmd begins "file"
10640 MAGIC_CMD=$MAGIC_CMD
10642 # Used on cygwin: DLL creation program.
10645 # Used on cygwin: object dumper.
10648 # Used on cygwin: assembler.
10651 # The name of the directory that contains temporary libtool files.
10654 # How to create reloadable object files.
10655 reload_flag=$lt_reload_flag
10656 reload_cmds=$lt_reload_cmds
10658 # How to pass a linker flag through the compiler.
10659 wl=$lt_lt_prog_compiler_wl
10661 # Object file suffix (normally "o").
10662 objext="$ac_objext"
10664 # Old archive suffix (normally "a").
10667 # Shared library suffix (normally ".so").
10668 shrext_cmds='$shrext_cmds'
10670 # Executable file suffix (normally "").
10673 # Additional compiler flags for building library objects.
10674 pic_flag=$lt_lt_prog_compiler_pic
10677 # What is the maximum length of a command?
10678 max_cmd_len=$lt_cv_sys_max_cmd_len
10680 # Does compiler simultaneously support -c and -o options?
10681 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10683 # Must we lock files when doing compilation?
10684 need_locks=$lt_need_locks
10686 # Do we need the lib prefix for modules?
10687 need_lib_prefix=$need_lib_prefix
10689 # Do we need a version for libraries?
10690 need_version=$need_version
10692 # Whether dlopen is supported.
10693 dlopen_support=$enable_dlopen
10695 # Whether dlopen of programs is supported.
10696 dlopen_self=$enable_dlopen_self
10698 # Whether dlopen of statically linked programs is supported.
10699 dlopen_self_static=$enable_dlopen_self_static
10701 # Compiler flag to prevent dynamic linking.
10702 link_static_flag=$lt_lt_prog_compiler_static
10704 # Compiler flag to turn off builtin functions.
10705 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10707 # Compiler flag to allow reflexive dlopens.
10708 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10710 # Compiler flag to generate shared objects directly from archives.
10711 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10713 # Compiler flag to generate thread-safe objects.
10714 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10716 # Library versioning type.
10717 version_type=$version_type
10719 # Format of library name prefix.
10720 libname_spec=$lt_libname_spec
10722 # List of archive names. First name is the real one, the rest are links.
10723 # The last name is the one that the linker finds with -lNAME.
10724 library_names_spec=$lt_library_names_spec
10726 # The coded name of the library, if different from the real name.
10727 soname_spec=$lt_soname_spec
10729 # Commands used to build and install an old-style archive.
10731 old_archive_cmds=$lt_old_archive_cmds
10732 old_postinstall_cmds=$lt_old_postinstall_cmds
10733 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10735 # Create an old-style archive from a shared archive.
10736 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10738 # Create a temporary old-style archive to link instead of a shared archive.
10739 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10741 # Commands used to build and install a shared archive.
10742 archive_cmds=$lt_archive_cmds
10743 archive_expsym_cmds=$lt_archive_expsym_cmds
10744 postinstall_cmds=$lt_postinstall_cmds
10745 postuninstall_cmds=$lt_postuninstall_cmds
10747 # Commands used to build a loadable module (assumed same as above if empty)
10748 module_cmds=$lt_module_cmds
10749 module_expsym_cmds=$lt_module_expsym_cmds
10751 # Commands to strip libraries.
10752 old_striplib=$lt_old_striplib
10753 striplib=$lt_striplib
10755 # Dependencies to place before the objects being linked to create a
10757 predep_objects=$lt_predep_objects
10759 # Dependencies to place after the objects being linked to create a
10761 postdep_objects=$lt_postdep_objects
10763 # Dependencies to place before the objects being linked to create a
10765 predeps=$lt_predeps
10767 # Dependencies to place after the objects being linked to create a
10769 postdeps=$lt_postdeps
10771 # The directories searched by this compiler when creating a shared
10773 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10775 # The library search path used internally by the compiler when linking
10776 # a shared library.
10777 compiler_lib_search_path=$lt_compiler_lib_search_path
10779 # Method to check whether dependent libraries are shared objects.
10780 deplibs_check_method=$lt_deplibs_check_method
10782 # Command to use when deplibs_check_method == file_magic.
10783 file_magic_cmd=$lt_file_magic_cmd
10785 # Flag that allows shared libraries with undefined symbols to be built.
10786 allow_undefined_flag=$lt_allow_undefined_flag
10788 # Flag that forces no undefined symbols.
10789 no_undefined_flag=$lt_no_undefined_flag
10791 # Commands used to finish a libtool library installation in a directory.
10792 finish_cmds=$lt_finish_cmds
10794 # Same as above, but a single script fragment to be evaled but not shown.
10795 finish_eval=$lt_finish_eval
10797 # Take the output of nm and produce a listing of raw symbols and C names.
10798 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10800 # Transform the output of nm in a proper C declaration
10801 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10803 # Transform the output of nm in a C name address pair
10804 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10806 # This is the shared library runtime path variable.
10807 runpath_var=$runpath_var
10809 # This is the shared library path variable.
10810 shlibpath_var=$shlibpath_var
10812 # Is shlibpath searched before the hard-coded library search path?
10813 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10815 # How to hardcode a shared library path into an executable.
10816 hardcode_action=$hardcode_action
10818 # Whether we should hardcode library paths into libraries.
10819 hardcode_into_libs=$hardcode_into_libs
10821 # Flag to hardcode \$libdir into a binary during linking.
10822 # This must work even if \$libdir does not exist.
10823 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10825 # If ld is used when linking, flag to hardcode \$libdir into
10826 # a binary during linking. This must work even if \$libdir does
10828 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10830 # Whether we need a single -rpath flag with a separated argument.
10831 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10833 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10834 # resulting binary.
10835 hardcode_direct=$hardcode_direct
10837 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10838 # resulting binary.
10839 hardcode_minus_L=$hardcode_minus_L
10841 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10842 # the resulting binary.
10843 hardcode_shlibpath_var=$hardcode_shlibpath_var
10845 # Set to yes if building a shared library automatically hardcodes DIR into the library
10846 # and all subsequent libraries and executables linked against it.
10847 hardcode_automatic=$hardcode_automatic
10849 # Variables whose values should be saved in libtool wrapper scripts and
10850 # restored at relink time.
10851 variables_saved_for_relink="$variables_saved_for_relink"
10853 # Whether libtool must link a program against all its dependency libraries.
10854 link_all_deplibs=$link_all_deplibs
10856 # Compile-time system search path for libraries
10857 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10859 # Run-time system search path for libraries
10860 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10862 # Fix the shell variable \$srcfile for the compiler.
10863 fix_srcfile_path=$lt_fix_srcfile_path
10865 # Set to yes if exported symbols are required.
10866 always_export_symbols=$always_export_symbols
10868 # The commands to list exported symbols.
10869 export_symbols_cmds=$lt_export_symbols_cmds
10871 # The commands to extract the exported symbol list from a shared archive.
10872 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10874 # Symbols that should not be listed in the preloaded symbols.
10875 exclude_expsyms=$lt_exclude_expsyms
10877 # Symbols that must always be exported.
10878 include_expsyms=$lt_include_expsyms
10880 # ### END LIBTOOL CONFIG
10887 cat <<\EOF >> "$cfgfile"
10889 # AIX sometimes has problems with the GCC collect2 program. For some
10890 # reason, if we set the COLLECT_NAMES environment variable, the problems
10891 # vanish in a puff of smoke.
10892 if test "X${COLLECT_NAMES+set}" != Xset; then
10894 export COLLECT_NAMES
10900 # We use sed instead of cat because bash on DJGPP gets confused if
10901 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10902 # text mode, it properly converts lines to CR/LF. This bash problem
10903 # is reportedly fixed, but why not run on old versions too?
10904 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10906 mv -f "$cfgfile" "$ofile" || \
10907 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10911 # If there is no Makefile yet, we rely on a make rule to execute
10912 # `config.status --recheck' to rerun these tests and create the
10913 # libtool script then.
10914 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10915 if test -f "$ltmain_in"; then
10916 test -f Makefile && make "$ltmain"
10922 ac_cpp='$CPP $CPPFLAGS'
10923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10930 # Check whether --with-tags was given.
10931 if test "${with_tags+set}" = set; then
10932 withval=$with_tags; tagnames="$withval"
10936 if test -f "$ltmain" && test -n "$tagnames"; then
10937 if test ! -f "${ofile}"; then
10938 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10939 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10942 if test -z "$LTCC"; then
10943 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10944 if test -z "$LTCC"; then
10945 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10946 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10948 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10949 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10952 if test -z "$LTCFLAGS"; then
10953 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10956 # Extract list of available tagged configurations in $ofile.
10957 # Note that this assumes the entire list is on one line.
10958 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10960 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10961 for tagname in $tagnames; do
10963 # Check whether tagname contains only valid characters
10964 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10966 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10967 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10968 { (exit 1); exit 1; }; }
10972 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10974 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10975 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10976 { (exit 1); exit 1; }; }
10979 # Update the list of available tags.
10980 if test -n "$tagname"; then
10981 echo appending configuration tag \"$tagname\" to $ofile
10985 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10986 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10987 (test "X$CXX" != "Xg++"))) ; then
10989 ac_cpp='$CXXCPP $CPPFLAGS'
10990 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10991 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10992 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10997 archive_cmds_need_lc_CXX=no
10998 allow_undefined_flag_CXX=
10999 always_export_symbols_CXX=no
11000 archive_expsym_cmds_CXX=
11001 export_dynamic_flag_spec_CXX=
11002 hardcode_direct_CXX=no
11003 hardcode_libdir_flag_spec_CXX=
11004 hardcode_libdir_flag_spec_ld_CXX=
11005 hardcode_libdir_separator_CXX=
11006 hardcode_minus_L_CXX=no
11007 hardcode_shlibpath_var_CXX=unsupported
11008 hardcode_automatic_CXX=no
11010 module_expsym_cmds_CXX=
11011 link_all_deplibs_CXX=unknown
11012 old_archive_cmds_CXX=$old_archive_cmds
11013 no_undefined_flag_CXX=
11014 whole_archive_flag_spec_CXX=
11015 enable_shared_with_static_runtimes_CXX=no
11017 # Dependencies to place before and after the object being linked:
11018 predep_objects_CXX=
11019 postdep_objects_CXX=
11022 compiler_lib_search_path_CXX=
11023 compiler_lib_search_dirs_CXX=
11025 # Source file extension for C++ test sources.
11028 # Object file extension for compiled C++ test sources.
11032 # Code to be used in simple compile tests
11033 lt_simple_compile_test_code="int some_variable = 0;"
11035 # Code to be used in simple link tests
11036 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11038 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11040 # If no C compiler was specified, use CC.
11043 # If no C compiler flags were specified, use CFLAGS.
11044 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11046 # Allow CC to be a program name with arguments.
11050 # save warnings/boilerplate of simple test code
11051 ac_outfile=conftest.$ac_objext
11052 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11053 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11054 _lt_compiler_boilerplate=`cat conftest.err`
11057 ac_outfile=conftest.$ac_objext
11058 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11059 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11060 _lt_linker_boilerplate=`cat conftest.err`
11064 # Allow CC to be a program name with arguments.
11069 lt_save_with_gnu_ld=$with_gnu_ld
11070 lt_save_path_LD=$lt_cv_path_LD
11071 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11072 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11074 $as_unset lt_cv_prog_gnu_ld
11076 if test -n "${lt_cv_path_LDCXX+set}"; then
11077 lt_cv_path_LD=$lt_cv_path_LDCXX
11079 $as_unset lt_cv_path_LD
11081 test -z "${LDCXX+set}" || LD=$LDCXX
11085 for cc_temp in $compiler""; do
11087 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11088 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11093 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11096 # We don't want -fno-exception wen compiling C++ code, so set the
11097 # no_builtin_flag separately
11098 if test "$GXX" = yes; then
11099 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11101 lt_prog_compiler_no_builtin_flag_CXX=
11104 if test "$GXX" = yes; then
11105 # Set up default GNU C++ configuration
11108 # Check whether --with-gnu-ld was given.
11109 if test "${with_gnu_ld+set}" = set; then
11110 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11116 if test "$GCC" = yes; then
11117 # Check if gcc -print-prog-name=ld gives a path.
11118 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11119 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11122 # gcc leaves a trailing carriage return which upsets mingw
11123 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11125 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11128 # Accept absolute paths.
11130 re_direlt='/[^/][^/]*/\.\./'
11131 # Canonicalize the pathname of ld
11132 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11133 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11134 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11136 test -z "$LD" && LD="$ac_prog"
11139 # If it fails, then pretend we aren't using GCC.
11143 # If it is relative, then search for the first ld in PATH.
11144 with_gnu_ld=unknown
11147 elif test "$with_gnu_ld" = yes; then
11148 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11149 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11151 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11152 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11154 if test "${lt_cv_path_LD+set}" = set; then
11155 echo $ECHO_N "(cached) $ECHO_C" >&6
11157 if test -z "$LD"; then
11158 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11159 for ac_dir in $PATH; do
11161 test -z "$ac_dir" && ac_dir=.
11162 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11163 lt_cv_path_LD="$ac_dir/$ac_prog"
11164 # Check to see if the program is GNU ld. I'd rather use --version,
11165 # but apparently some variants of GNU ld only accept -v.
11166 # Break only if it was the GNU/non-GNU ld that we prefer.
11167 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11168 *GNU* | *'with BFD'*)
11169 test "$with_gnu_ld" != no && break
11172 test "$with_gnu_ld" != yes && break
11179 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11183 LD="$lt_cv_path_LD"
11184 if test -n "$LD"; then
11185 { echo "$as_me:$LINENO: result: $LD" >&5
11186 echo "${ECHO_T}$LD" >&6; }
11188 { echo "$as_me:$LINENO: result: no" >&5
11189 echo "${ECHO_T}no" >&6; }
11191 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11192 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11193 { (exit 1); exit 1; }; }
11194 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11195 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11196 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11197 echo $ECHO_N "(cached) $ECHO_C" >&6
11199 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11200 case `$LD -v 2>&1 </dev/null` in
11201 *GNU* | *'with BFD'*)
11202 lt_cv_prog_gnu_ld=yes
11205 lt_cv_prog_gnu_ld=no
11209 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11210 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11211 with_gnu_ld=$lt_cv_prog_gnu_ld
11215 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11216 # archiving commands below assume that GNU ld is being used.
11217 if test "$with_gnu_ld" = yes; then
11218 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11219 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'
11221 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11222 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11224 # If archive_cmds runs LD, not CC, wlarc should be empty
11225 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11226 # investigate it a little bit more. (MM)
11229 # ancient GNU ld didn't support --whole-archive et. al.
11230 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11231 grep 'no-whole-archive' > /dev/null; then
11232 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11234 whole_archive_flag_spec_CXX=
11240 # A generic and very simple default shared library creation
11241 # command for GNU C++ for the case where it uses the native
11242 # linker, instead of GNU ld. If possible, this setting should
11243 # overridden to take advantage of the native linker features on
11244 # the platform it is being used on.
11245 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11248 # Commands to make compiler produce verbose output that lists
11249 # what "hidden" libraries, object files and flags are used when
11250 # linking a shared library.
11251 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11259 # PORTME: fill in a description of your system's C++ link characteristics
11260 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11261 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11265 # FIXME: insert proper C++ library support
11269 if test "$host_cpu" = ia64; then
11270 # On IA64, the linker does run time linking by default, so we don't
11271 # have to do anything special.
11272 aix_use_runtimelinking=no
11273 exp_sym_flag='-Bexport'
11276 aix_use_runtimelinking=no
11278 # Test if we are trying to use run time linking or normal
11279 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11280 # need to do runtime linking.
11281 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11282 for ld_flag in $LDFLAGS; do
11285 aix_use_runtimelinking=yes
11293 exp_sym_flag='-bexport'
11294 no_entry_flag='-bnoentry'
11297 # When large executables or shared objects are built, AIX ld can
11298 # have problems creating the table of contents. If linking a library
11299 # or program results in "error TOC overflow" add -mminimal-toc to
11300 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11301 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11303 archive_cmds_CXX=''
11304 hardcode_direct_CXX=yes
11305 hardcode_libdir_separator_CXX=':'
11306 link_all_deplibs_CXX=yes
11308 if test "$GXX" = yes; then
11309 case $host_os in aix4.[012]|aix4.[012].*)
11310 # We only want to do this on AIX 4.2 and lower, the check
11311 # below for broken collect2 doesn't work under 4.3+
11312 collect2name=`${CC} -print-prog-name=collect2`
11313 if test -f "$collect2name" && \
11314 strings "$collect2name" | grep resolve_lib_name >/dev/null
11316 # We have reworked collect2
11319 # We have old collect2
11320 hardcode_direct_CXX=unsupported
11321 # It fails to find uninstalled libraries when the uninstalled
11322 # path is not listed in the libpath. Setting hardcode_minus_L
11323 # to unsupported forces relinking
11324 hardcode_minus_L_CXX=yes
11325 hardcode_libdir_flag_spec_CXX='-L$libdir'
11326 hardcode_libdir_separator_CXX=
11330 shared_flag='-shared'
11331 if test "$aix_use_runtimelinking" = yes; then
11332 shared_flag="$shared_flag "'${wl}-G'
11336 if test "$host_cpu" = ia64; then
11337 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11338 # chokes on -Wl,-G. The following line is correct:
11341 if test "$aix_use_runtimelinking" = yes; then
11342 shared_flag='${wl}-G'
11344 shared_flag='${wl}-bM:SRE'
11349 # It seems that -bexpall does not export symbols beginning with
11350 # underscore (_), so it is better to generate a list of symbols to export.
11351 always_export_symbols_CXX=yes
11352 if test "$aix_use_runtimelinking" = yes; then
11353 # Warning - without using the other runtime loading flags (-brtl),
11354 # -berok will link without error, but may produce a broken library.
11355 allow_undefined_flag_CXX='-berok'
11356 # Determine the default libpath from the value encoded in an empty executable.
11357 cat >conftest.$ac_ext <<_ACEOF
11360 cat confdefs.h >>conftest.$ac_ext
11361 cat >>conftest.$ac_ext <<_ACEOF
11362 /* end confdefs.h. */
11372 rm -f conftest.$ac_objext conftest$ac_exeext
11373 if { (ac_try="$ac_link"
11374 case "(($ac_try" in
11375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11376 *) ac_try_echo=$ac_try;;
11378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11379 (eval "$ac_link") 2>conftest.er1
11381 grep -v '^ *+' conftest.er1 >conftest.err
11383 cat conftest.err >&5
11384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385 (exit $ac_status); } && {
11386 test -z "$ac_cxx_werror_flag" ||
11387 test ! -s conftest.err
11388 } && test -s conftest$ac_exeext &&
11389 $as_test_x conftest$ac_exeext; then
11391 lt_aix_libpath_sed='
11392 /Import File Strings/,/^$/ {
11398 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11399 # Check for a 64-bit object if we didn't find anything.
11400 if test -z "$aix_libpath"; then
11401 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11404 echo "$as_me: failed program was:" >&5
11405 sed 's/^/| /' conftest.$ac_ext >&5
11410 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11411 conftest$ac_exeext conftest.$ac_ext
11412 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11414 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11416 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"
11418 if test "$host_cpu" = ia64; then
11419 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11420 allow_undefined_flag_CXX="-z nodefs"
11421 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"
11423 # Determine the default libpath from the value encoded in an empty executable.
11424 cat >conftest.$ac_ext <<_ACEOF
11427 cat confdefs.h >>conftest.$ac_ext
11428 cat >>conftest.$ac_ext <<_ACEOF
11429 /* end confdefs.h. */
11439 rm -f conftest.$ac_objext conftest$ac_exeext
11440 if { (ac_try="$ac_link"
11441 case "(($ac_try" in
11442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11443 *) ac_try_echo=$ac_try;;
11445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11446 (eval "$ac_link") 2>conftest.er1
11448 grep -v '^ *+' conftest.er1 >conftest.err
11450 cat conftest.err >&5
11451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452 (exit $ac_status); } && {
11453 test -z "$ac_cxx_werror_flag" ||
11454 test ! -s conftest.err
11455 } && test -s conftest$ac_exeext &&
11456 $as_test_x conftest$ac_exeext; then
11458 lt_aix_libpath_sed='
11459 /Import File Strings/,/^$/ {
11465 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11466 # Check for a 64-bit object if we didn't find anything.
11467 if test -z "$aix_libpath"; then
11468 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11471 echo "$as_me: failed program was:" >&5
11472 sed 's/^/| /' conftest.$ac_ext >&5
11477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11478 conftest$ac_exeext conftest.$ac_ext
11479 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11481 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11482 # Warning - without using the other run time loading flags,
11483 # -berok will link without error, but may produce a broken library.
11484 no_undefined_flag_CXX=' ${wl}-bernotok'
11485 allow_undefined_flag_CXX=' ${wl}-berok'
11486 # Exported symbols can be pulled into shared objects from archives
11487 whole_archive_flag_spec_CXX='$convenience'
11488 archive_cmds_need_lc_CXX=yes
11489 # This is similar to how AIX traditionally builds its shared libraries.
11490 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'
11496 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11497 allow_undefined_flag_CXX=unsupported
11498 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11499 # support --undefined. This deserves some investigation. FIXME
11500 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11507 case $cc_basename in
11509 # FIXME: insert proper C++ library support
11515 cygwin* | mingw* | pw32*)
11516 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11517 # as there is no search path for DLLs.
11518 hardcode_libdir_flag_spec_CXX='-L$libdir'
11519 allow_undefined_flag_CXX=unsupported
11520 always_export_symbols_CXX=no
11521 enable_shared_with_static_runtimes_CXX=yes
11523 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11524 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'
11525 # If the export-symbols file already is a .def file (1st line
11526 # is EXPORTS), use it as is; otherwise, prepend...
11527 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11528 cp $export_symbols $output_objdir/$soname.def;
11530 echo EXPORTS > $output_objdir/$soname.def;
11531 cat $export_symbols >> $output_objdir/$soname.def;
11533 $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'
11538 darwin* | rhapsody*)
11539 archive_cmds_need_lc_CXX=no
11540 hardcode_direct_CXX=no
11541 hardcode_automatic_CXX=yes
11542 hardcode_shlibpath_var_CXX=unsupported
11543 whole_archive_flag_spec_CXX=''
11544 link_all_deplibs_CXX=yes
11545 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11546 if test "$GXX" = yes ; then
11547 output_verbose_link_cmd='echo'
11548 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}"
11549 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11550 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}"
11551 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}"
11552 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11553 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}"
11554 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}"
11557 case $cc_basename in
11559 output_verbose_link_cmd='echo'
11560 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'
11561 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11562 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11563 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}'
11564 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}'
11574 case $cc_basename in
11576 # FIXME: insert proper C++ library support
11580 # Green Hills C++ Compiler
11581 # FIXME: insert proper C++ library support
11585 # FIXME: insert proper C++ library support
11591 # C++ shared libraries reported to be fairly broken before switch to ELF
11595 archive_cmds_need_lc_CXX=no
11597 freebsd* | dragonfly*)
11598 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11605 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11606 hardcode_libdir_separator_CXX=:
11607 export_dynamic_flag_spec_CXX='${wl}-E'
11608 hardcode_direct_CXX=yes
11609 hardcode_minus_L_CXX=yes # Not in the search PATH,
11610 # but as the default
11611 # location of the library.
11613 case $cc_basename in
11615 # FIXME: insert proper C++ library support
11619 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'
11620 # Commands to make compiler produce verbose output that lists
11621 # what "hidden" libraries, object files and flags are used when
11622 # linking a shared library.
11624 # There doesn't appear to be a way to prevent this compiler from
11625 # explicitly linking system object files so we need to strip them
11626 # from the output so that they don't get included in the library
11628 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'
11631 if test "$GXX" = yes; then
11632 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'
11634 # FIXME: insert proper C++ library support
11641 if test $with_gnu_ld = no; then
11642 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11643 hardcode_libdir_separator_CXX=:
11648 export_dynamic_flag_spec_CXX='${wl}-E'
11654 hardcode_direct_CXX=no
11655 hardcode_shlibpath_var_CXX=no
11658 hardcode_direct_CXX=yes
11659 hardcode_minus_L_CXX=yes # Not in the search PATH,
11660 # but as the default
11661 # location of the library.
11665 case $cc_basename in
11667 # FIXME: insert proper C++ library support
11673 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11676 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11679 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11682 # Commands to make compiler produce verbose output that lists
11683 # what "hidden" libraries, object files and flags are used when
11684 # linking a shared library.
11686 # There doesn't appear to be a way to prevent this compiler from
11687 # explicitly linking system object files so we need to strip them
11688 # from the output so that they don't get included in the library
11690 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'
11693 if test "$GXX" = yes; then
11694 if test $with_gnu_ld = no; then
11697 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11700 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11703 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'
11708 # FIXME: insert proper C++ library support
11715 hardcode_direct_CXX=no
11716 hardcode_shlibpath_var_CXX=no
11717 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11718 export_dynamic_flag_spec_CXX='${wl}-E'
11719 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11720 # Instead, shared libraries are loaded at an image base (0x10000000 by
11721 # default) and relocated if they conflict, which is a slow very memory
11722 # consuming and fragmenting process. To avoid this, we pick a random,
11723 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11724 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11725 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'
11726 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'
11729 case $cc_basename in
11732 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'
11734 # Archives containing C++ object files must be created using
11735 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11736 # necessary to make sure instantiated templates are included
11738 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11741 if test "$GXX" = yes; then
11742 if test "$with_gnu_ld" = no; then
11743 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'
11745 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'
11748 link_all_deplibs_CXX=yes
11751 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11752 hardcode_libdir_separator_CXX=:
11754 linux* | k*bsd*-gnu)
11755 case $cc_basename in
11757 # Kuck and Associates, Inc. (KAI) C++ Compiler
11759 # KCC will only create a shared library if the output file
11760 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11761 # to its proper name (with version) after linking.
11762 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'
11763 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'
11764 # Commands to make compiler produce verbose output that lists
11765 # what "hidden" libraries, object files and flags are used when
11766 # linking a shared library.
11768 # There doesn't appear to be a way to prevent this compiler from
11769 # explicitly linking system object files so we need to strip them
11770 # from the output so that they don't get included in the library
11772 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'
11774 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11775 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11777 # Archives containing C++ object files must be created using
11778 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11779 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11784 # version 8.0 and above of icpc choke on multiply defined symbols
11785 # if we add $predep_objects and $postdep_objects, however 7.1 and
11786 # earlier do not add the objects themselves.
11787 case `$CC -V 2>&1` in
11789 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11790 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'
11792 *) # Version 8.0 or newer
11795 ia64*) tmp_idyn=' -i_dynamic';;
11797 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11798 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'
11801 archive_cmds_need_lc_CXX=no
11802 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11803 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11804 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11807 # Portland Group C++ compiler
11808 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11809 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'
11811 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11812 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11813 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'
11817 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11818 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'
11820 runpath_var=LD_RUN_PATH
11821 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11822 hardcode_libdir_separator_CXX=:
11824 # Commands to make compiler produce verbose output that lists
11825 # what "hidden" libraries, object files and flags are used when
11826 # linking a shared library.
11828 # There doesn't appear to be a way to prevent this compiler from
11829 # explicitly linking system object files so we need to strip them
11830 # from the output so that they don't get included in the library
11832 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'
11835 case `$CC -V 2>&1 | sed 5q` in
11838 no_undefined_flag_CXX=' -zdefs'
11839 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11840 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'
11841 hardcode_libdir_flag_spec_CXX='-R$libdir'
11842 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'
11844 # Not sure whether something based on
11845 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11847 output_verbose_link_cmd='echo'
11849 # Archives containing C++ object files must be created using
11850 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11851 # necessary to make sure instantiated templates are included
11853 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11860 # FIXME: insert proper C++ library support
11864 # FIXME: insert proper C++ library support
11868 case $cc_basename in
11870 # FIXME: insert proper C++ library support
11874 # FIXME: insert proper C++ library support
11879 netbsd* | netbsdelf*-gnu)
11880 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11881 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11883 hardcode_libdir_flag_spec_CXX='-R$libdir'
11884 hardcode_direct_CXX=yes
11885 hardcode_shlibpath_var_CXX=no
11887 # Workaround some broken pre-1.5 toolchains
11888 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11891 # C++ shared libraries are fairly broken
11895 if test -f /usr/libexec/ld.so; then
11896 hardcode_direct_CXX=yes
11897 hardcode_shlibpath_var_CXX=no
11898 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11899 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11900 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11901 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11902 export_dynamic_flag_spec_CXX='${wl}-E'
11903 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11905 output_verbose_link_cmd='echo'
11911 case $cc_basename in
11913 # Kuck and Associates, Inc. (KAI) C++ Compiler
11915 # KCC will only create a shared library if the output file
11916 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11917 # to its proper name (with version) after linking.
11918 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'
11920 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11921 hardcode_libdir_separator_CXX=:
11923 # Archives containing C++ object files must be created using
11924 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11925 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11929 # Rational C++ 2.4.1
11930 # FIXME: insert proper C++ library support
11934 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11935 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'
11937 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11938 hardcode_libdir_separator_CXX=:
11940 # Commands to make compiler produce verbose output that lists
11941 # what "hidden" libraries, object files and flags are used when
11942 # linking a shared library.
11944 # There doesn't appear to be a way to prevent this compiler from
11945 # explicitly linking system object files so we need to strip them
11946 # from the output so that they don't get included in the library
11948 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'
11951 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11952 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11953 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'
11955 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11956 hardcode_libdir_separator_CXX=:
11958 # Commands to make compiler produce verbose output that lists
11959 # what "hidden" libraries, object files and flags are used when
11960 # linking a shared library.
11961 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11964 # FIXME: insert proper C++ library support
11971 case $cc_basename in
11973 # Kuck and Associates, Inc. (KAI) C++ Compiler
11975 # KCC will only create a shared library if the output file
11976 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11977 # to its proper name (with version) after linking.
11978 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'
11980 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11981 hardcode_libdir_separator_CXX=:
11983 # Archives containing C++ object files must be created using
11984 # the KAI C++ compiler.
11985 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11988 # Rational C++ 2.4.1
11989 # FIXME: insert proper C++ library support
11993 allow_undefined_flag_CXX=' -expect_unresolved \*'
11994 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'
11995 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11996 echo "-hidden">> $lib.exp~
11997 $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~
12000 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12001 hardcode_libdir_separator_CXX=:
12003 # Commands to make compiler produce verbose output that lists
12004 # what "hidden" libraries, object files and flags are used when
12005 # linking a shared library.
12007 # There doesn't appear to be a way to prevent this compiler from
12008 # explicitly linking system object files so we need to strip them
12009 # from the output so that they don't get included in the library
12011 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'
12014 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12015 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12016 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'
12018 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12019 hardcode_libdir_separator_CXX=:
12021 # Commands to make compiler produce verbose output that lists
12022 # what "hidden" libraries, object files and flags are used when
12023 # linking a shared library.
12024 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12027 # FIXME: insert proper C++ library support
12034 # FIXME: insert proper C++ library support
12038 case $cc_basename in
12041 # FIXME: insert proper C++ library support
12046 # FIXME: insert proper C++ library support
12050 # FIXME: insert proper C++ library support
12056 case $cc_basename in
12058 # Sun C++ 4.2, 5.x and Centerline C++
12059 archive_cmds_need_lc_CXX=yes
12060 no_undefined_flag_CXX=' -zdefs'
12061 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12062 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12063 $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'
12065 hardcode_libdir_flag_spec_CXX='-R$libdir'
12066 hardcode_shlibpath_var_CXX=no
12068 solaris2.[0-5] | solaris2.[0-5].*) ;;
12070 # The compiler driver will combine and reorder linker options,
12071 # but understands `-z linker_flag'.
12072 # Supported since Solaris 2.6 (maybe 2.5.1?)
12073 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12076 link_all_deplibs_CXX=yes
12078 output_verbose_link_cmd='echo'
12080 # Archives containing C++ object files must be created using
12081 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12082 # necessary to make sure instantiated templates are included
12084 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12087 # Green Hills C++ Compiler
12088 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12090 # The C++ compiler must be used to create the archive.
12091 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12094 # GNU C++ compiler with Solaris linker
12095 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12096 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12097 if $CC --version | grep -v '^2\.7' > /dev/null; then
12098 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12099 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12100 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12102 # Commands to make compiler produce verbose output that lists
12103 # what "hidden" libraries, object files and flags are used when
12104 # linking a shared library.
12105 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12107 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12109 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12110 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12111 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
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.
12116 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12119 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12121 solaris2.[0-5] | solaris2.[0-5].*) ;;
12123 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12130 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12131 no_undefined_flag_CXX='${wl}-z,text'
12132 archive_cmds_need_lc_CXX=no
12133 hardcode_shlibpath_var_CXX=no
12134 runpath_var='LD_RUN_PATH'
12136 case $cc_basename in
12138 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12139 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12142 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12143 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12147 sysv5* | sco3.2v5* | sco5v6*)
12148 # Note: We can NOT use -z defs as we might desire, because we do not
12149 # link with -lc, and that would cause any symbols used from libc to
12150 # always be unresolved, which means just about no library would
12151 # ever link correctly. If we're not using GNU ld we use -z text
12152 # though, which does catch some bad symbols but isn't as heavy-handed
12154 # For security reasons, it is highly recommended that you always
12155 # use absolute paths for naming shared libraries, and exclude the
12156 # DT_RUNPATH tag from executables and libraries. But doing so
12157 # requires that you compile everything twice, which is a pain.
12158 # So that behaviour is only enabled if SCOABSPATH is set to a
12159 # non-empty value in the environment. Most likely only useful for
12160 # creating official distributions of packages.
12161 # This is a hack until libtool officially supports absolute path
12162 # names for shared libraries.
12163 no_undefined_flag_CXX='${wl}-z,text'
12164 allow_undefined_flag_CXX='${wl}-z,nodefs'
12165 archive_cmds_need_lc_CXX=no
12166 hardcode_shlibpath_var_CXX=no
12167 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12168 hardcode_libdir_separator_CXX=':'
12169 link_all_deplibs_CXX=yes
12170 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12171 runpath_var='LD_RUN_PATH'
12173 case $cc_basename in
12175 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12176 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12179 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12180 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12185 case $cc_basename in
12187 # NonStop-UX NCC 3.20
12188 # FIXME: insert proper C++ library support
12192 # FIXME: insert proper C++ library support
12198 # FIXME: insert proper C++ library support
12202 # FIXME: insert proper C++ library support
12206 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12207 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12208 test "$ld_shlibs_CXX" = no && can_build_shared=no
12213 cat > conftest.$ac_ext <<EOF
12217 Foo (void) { a = 0; }
12223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12224 (eval $ac_compile) 2>&5
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); }; then
12228 # Parse the compiler output and extract the necessary
12229 # objects, libraries and library flags.
12231 # Sentinel used to keep track of whether or not we are before
12232 # the conftest object file.
12233 pre_test_object_deps_done=no
12235 # The `*' in the case matches for architectures that use `case' in
12236 # $output_verbose_cmd can trigger glob expansion during the loop
12237 # eval without this substitution.
12238 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12240 for p in `eval $output_verbose_link_cmd`; do
12244 # Some compilers place space between "-{L,R}" and the path.
12245 # Remove the space.
12246 if test $p = "-L" \
12247 || test $p = "-R"; then
12254 if test "$pre_test_object_deps_done" = no; then
12257 # Internal compiler library paths should come after those
12258 # provided the user. The postdeps already come after the
12259 # user supplied libs so there is no need to process them.
12260 if test -z "$compiler_lib_search_path_CXX"; then
12261 compiler_lib_search_path_CXX="${prev}${p}"
12263 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12266 # The "-l" case would never come before the object being
12267 # linked, so don't bother handling this case.
12270 if test -z "$postdeps_CXX"; then
12271 postdeps_CXX="${prev}${p}"
12273 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12279 # This assumes that the test object file only shows up
12280 # once in the compiler output.
12281 if test "$p" = "conftest.$objext"; then
12282 pre_test_object_deps_done=yes
12286 if test "$pre_test_object_deps_done" = no; then
12287 if test -z "$predep_objects_CXX"; then
12288 predep_objects_CXX="$p"
12290 predep_objects_CXX="$predep_objects_CXX $p"
12293 if test -z "$postdep_objects_CXX"; then
12294 postdep_objects_CXX="$p"
12296 postdep_objects_CXX="$postdep_objects_CXX $p"
12301 *) ;; # Ignore the rest.
12309 echo "libtool.m4: error: problem compiling CXX test program"
12312 $rm -f confest.$objext
12314 compiler_lib_search_dirs_CXX=
12315 if test -n "$compiler_lib_search_path_CXX"; then
12316 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12319 # PORTME: override above test on systems where it is broken
12322 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12323 # hack all around it, let's just trust "g++" to DTRT.
12324 predep_objects_CXX=
12325 postdep_objects_CXX=
12330 case `$CC -V 2>&1 | sed 5q` in
12334 # The more standards-conforming stlport4 library is
12335 # incompatible with the Cstd library. Avoid specifying
12336 # it if it's in CXXFLAGS. Ignore libCrun as
12337 # -library=stlport4 depends on it.
12338 case " $CXX $CXXFLAGS " in
12339 *" -library=stlport4 "*)
12340 solaris_use_stlport4=yes
12343 if test "$solaris_use_stlport4" != yes; then
12344 postdeps_CXX='-library=Cstd -library=Crun'
12351 case $cc_basename in
12353 # The more standards-conforming stlport4 library is
12354 # incompatible with the Cstd library. Avoid specifying
12355 # it if it's in CXXFLAGS. Ignore libCrun as
12356 # -library=stlport4 depends on it.
12357 case " $CXX $CXXFLAGS " in
12358 *" -library=stlport4 "*)
12359 solaris_use_stlport4=yes
12363 # Adding this requires a known-good setup of shared libraries for
12364 # Sun compiler versions before 5.6, else PIC objects from an old
12365 # archive will be linked into the output, leading to subtle bugs.
12366 if test "$solaris_use_stlport4" != yes; then
12367 postdeps_CXX='-library=Cstd -library=Crun'
12374 case " $postdeps_CXX " in
12375 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12378 lt_prog_compiler_wl_CXX=
12379 lt_prog_compiler_pic_CXX=
12380 lt_prog_compiler_static_CXX=
12382 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12383 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12385 # C++ specific cases for pic, static, wl, etc.
12386 if test "$GXX" = yes; then
12387 lt_prog_compiler_wl_CXX='-Wl,'
12388 lt_prog_compiler_static_CXX='-static'
12392 # All AIX code is PIC.
12393 if test "$host_cpu" = ia64; then
12394 # AIX 5 now supports IA64 processor
12395 lt_prog_compiler_static_CXX='-Bstatic'
12399 # FIXME: we need at least 68020 code to build shared libraries, but
12400 # adding the `-m68020' flag to GCC prevents building anything better,
12402 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12404 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12405 # PIC is the default for these OSes.
12407 mingw* | cygwin* | os2* | pw32*)
12408 # This hack is so that the source file can tell whether it is being
12409 # built for inclusion in a dll (and should export symbols for example).
12410 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12411 # (--disable-auto-import) libraries
12412 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12414 darwin* | rhapsody*)
12415 # PIC is the default on this platform
12416 # Common symbols not allowed in MH_DYLIB files
12417 lt_prog_compiler_pic_CXX='-fno-common'
12420 # DJGPP does not support shared libraries at all
12421 lt_prog_compiler_pic_CXX=
12424 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12425 # Instead, we relocate shared libraries at runtime.
12428 if test -d /usr/nec; then
12429 lt_prog_compiler_pic_CXX=-Kconform_pic
12433 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12434 # not for PA HP-UX.
12439 lt_prog_compiler_pic_CXX='-fPIC'
12444 lt_prog_compiler_pic_CXX='-fPIC'
12450 # All AIX code is PIC.
12451 if test "$host_cpu" = ia64; then
12452 # AIX 5 now supports IA64 processor
12453 lt_prog_compiler_static_CXX='-Bstatic'
12455 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12459 case $cc_basename in
12461 # Green Hills C++ Compiler
12462 # _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"
12467 # PIC is the default on this platform
12468 # Common symbols not allowed in MH_DYLIB files
12469 case $cc_basename in
12471 lt_prog_compiler_pic_CXX='-qnocommon'
12472 lt_prog_compiler_wl_CXX='-Wl,'
12477 case $cc_basename in
12479 lt_prog_compiler_pic_CXX='-KPIC'
12482 # Green Hills C++ Compiler
12483 lt_prog_compiler_pic_CXX='-pic'
12489 freebsd* | dragonfly*)
12490 # FreeBSD uses GNU C++
12492 hpux9* | hpux10* | hpux11*)
12493 case $cc_basename in
12495 lt_prog_compiler_wl_CXX='-Wl,'
12496 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12497 if test "$host_cpu" != ia64; then
12498 lt_prog_compiler_pic_CXX='+Z'
12502 lt_prog_compiler_wl_CXX='-Wl,'
12503 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12509 lt_prog_compiler_pic_CXX='+Z'
12518 # This is c89, which is MS Visual C++ (no shared libs)
12519 # Anyone wants to do a port?
12521 irix5* | irix6* | nonstopux*)
12522 case $cc_basename in
12524 lt_prog_compiler_wl_CXX='-Wl,'
12525 lt_prog_compiler_static_CXX='-non_shared'
12526 # CC pic flag -KPIC is the default.
12532 linux* | k*bsd*-gnu)
12533 case $cc_basename in
12536 lt_prog_compiler_wl_CXX='--backend -Wl,'
12537 lt_prog_compiler_pic_CXX='-fPIC'
12541 lt_prog_compiler_wl_CXX='-Wl,'
12542 lt_prog_compiler_pic_CXX='-KPIC'
12543 lt_prog_compiler_static_CXX='-static'
12546 # Portland Group C++ compiler.
12547 lt_prog_compiler_wl_CXX='-Wl,'
12548 lt_prog_compiler_pic_CXX='-fpic'
12549 lt_prog_compiler_static_CXX='-Bstatic'
12553 # Make sure the PIC flag is empty. It appears that all Alpha
12554 # Linux and Compaq Tru64 Unix objects are PIC.
12555 lt_prog_compiler_pic_CXX=
12556 lt_prog_compiler_static_CXX='-non_shared'
12559 case `$CC -V 2>&1 | sed 5q` in
12562 lt_prog_compiler_pic_CXX='-KPIC'
12563 lt_prog_compiler_static_CXX='-Bstatic'
12564 lt_prog_compiler_wl_CXX='-Qoption ld '
12575 case $cc_basename in
12577 lt_prog_compiler_pic_CXX='-W c,exportall'
12583 netbsd* | netbsdelf*-gnu)
12585 osf3* | osf4* | osf5*)
12586 case $cc_basename in
12588 lt_prog_compiler_wl_CXX='--backend -Wl,'
12591 # Rational C++ 2.4.1
12592 lt_prog_compiler_pic_CXX='-pic'
12595 # Digital/Compaq C++
12596 lt_prog_compiler_wl_CXX='-Wl,'
12597 # Make sure the PIC flag is empty. It appears that all Alpha
12598 # Linux and Compaq Tru64 Unix objects are PIC.
12599 lt_prog_compiler_pic_CXX=
12600 lt_prog_compiler_static_CXX='-non_shared'
12609 case $cc_basename in
12611 # Sun C++ 4.2, 5.x and Centerline C++
12612 lt_prog_compiler_pic_CXX='-KPIC'
12613 lt_prog_compiler_static_CXX='-Bstatic'
12614 lt_prog_compiler_wl_CXX='-Qoption ld '
12617 # Green Hills C++ Compiler
12618 lt_prog_compiler_pic_CXX='-PIC'
12625 case $cc_basename in
12628 lt_prog_compiler_pic_CXX='-pic'
12629 lt_prog_compiler_static_CXX='-Bstatic'
12633 lt_prog_compiler_pic_CXX='-pic'
12640 case $cc_basename in
12642 # NonStop-UX NCC 3.20
12643 lt_prog_compiler_pic_CXX='-KPIC'
12649 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12650 case $cc_basename in
12652 lt_prog_compiler_wl_CXX='-Wl,'
12653 lt_prog_compiler_pic_CXX='-KPIC'
12654 lt_prog_compiler_static_CXX='-Bstatic'
12661 lt_prog_compiler_can_build_shared_CXX=no
12666 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12667 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12670 # Check to make sure the PIC flag actually works.
12672 if test -n "$lt_prog_compiler_pic_CXX"; then
12674 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12675 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12676 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12677 echo $ECHO_N "(cached) $ECHO_C" >&6
12679 lt_cv_prog_compiler_pic_works_CXX=no
12680 ac_outfile=conftest.$ac_objext
12681 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12682 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12683 # Insert the option either (1) after the last *FLAGS variable, or
12684 # (2) before a word containing "conftest.", or (3) at the end.
12685 # Note that $ac_compile itself does not contain backslashes and begins
12686 # with a dollar sign (not a hyphen), so the echo should work correctly.
12687 # The option is referenced via a variable to avoid confusing sed.
12688 lt_compile=`echo "$ac_compile" | $SED \
12689 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12690 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12691 -e 's:$: $lt_compiler_flag:'`
12692 (eval echo "\"\$as_me:12692: $lt_compile\"" >&5)
12693 (eval "$lt_compile" 2>conftest.err)
12695 cat conftest.err >&5
12696 echo "$as_me:12696: \$? = $ac_status" >&5
12697 if (exit $ac_status) && test -s "$ac_outfile"; then
12698 # The compiler can only warn and ignore the option if not recognized
12699 # So say no if there are warnings other than the usual output.
12700 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12701 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12702 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12703 lt_cv_prog_compiler_pic_works_CXX=yes
12709 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12710 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12712 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12713 case $lt_prog_compiler_pic_CXX in
12715 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12718 lt_prog_compiler_pic_CXX=
12719 lt_prog_compiler_can_build_shared_CXX=no
12724 # For platforms which do not support PIC, -DPIC is meaningless:
12726 lt_prog_compiler_pic_CXX=
12729 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12734 # Check to make sure the static flag actually works.
12736 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12737 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12738 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12739 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12740 echo $ECHO_N "(cached) $ECHO_C" >&6
12742 lt_cv_prog_compiler_static_works_CXX=no
12743 save_LDFLAGS="$LDFLAGS"
12744 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12745 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12746 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12747 # The linker can only warn and ignore the option if not recognized
12748 # So say no if there are warnings
12749 if test -s conftest.err; then
12750 # Append any errors to the config.log.
12751 cat conftest.err 1>&5
12752 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12753 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12754 if diff conftest.exp conftest.er2 >/dev/null; then
12755 lt_cv_prog_compiler_static_works_CXX=yes
12758 lt_cv_prog_compiler_static_works_CXX=yes
12762 LDFLAGS="$save_LDFLAGS"
12765 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12766 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12768 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12771 lt_prog_compiler_static_CXX=
12775 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12776 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12777 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12778 echo $ECHO_N "(cached) $ECHO_C" >&6
12780 lt_cv_prog_compiler_c_o_CXX=no
12781 $rm -r conftest 2>/dev/null
12785 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12787 lt_compiler_flag="-o out/conftest2.$ac_objext"
12788 # Insert the option either (1) after the last *FLAGS variable, or
12789 # (2) before a word containing "conftest.", or (3) at the end.
12790 # Note that $ac_compile itself does not contain backslashes and begins
12791 # with a dollar sign (not a hyphen), so the echo should work correctly.
12792 lt_compile=`echo "$ac_compile" | $SED \
12793 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12794 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12795 -e 's:$: $lt_compiler_flag:'`
12796 (eval echo "\"\$as_me:12796: $lt_compile\"" >&5)
12797 (eval "$lt_compile" 2>out/conftest.err)
12799 cat out/conftest.err >&5
12800 echo "$as_me:12800: \$? = $ac_status" >&5
12801 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12803 # The compiler can only warn and ignore the option if not recognized
12804 # So say no if there are warnings
12805 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12806 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12807 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12808 lt_cv_prog_compiler_c_o_CXX=yes
12813 # SGI C++ compiler will create directory out/ii_files/ for
12814 # template instantiation
12815 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12816 $rm out/* && rmdir out
12822 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12823 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12826 hard_links="nottested"
12827 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12828 # do not overwrite the value of need_locks provided by the user
12829 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12830 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12833 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12835 ln conftest.a conftest.b 2>&5 || hard_links=no
12836 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12837 { echo "$as_me:$LINENO: result: $hard_links" >&5
12838 echo "${ECHO_T}$hard_links" >&6; }
12839 if test "$hard_links" = no; then
12840 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12841 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12848 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12849 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12851 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12854 # If we're using GNU nm, then we don't want the "-C" option.
12855 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12856 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12857 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'
12859 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'
12863 export_symbols_cmds_CXX="$ltdll_cmds"
12866 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'
12868 linux* | k*bsd*-gnu)
12869 link_all_deplibs_CXX=no
12872 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12875 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12877 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12878 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12879 test "$ld_shlibs_CXX" = no && can_build_shared=no
12882 # Do we need to explicitly link libc?
12884 case "x$archive_cmds_need_lc_CXX" in
12886 # Assume -lc should be added
12887 archive_cmds_need_lc_CXX=yes
12889 if test "$enable_shared" = yes && test "$GCC" = yes; then
12890 case $archive_cmds_CXX in
12892 # FIXME: we may have to deal with multi-command sequences.
12895 # Test whether the compiler implicitly links with -lc since on some
12896 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12897 # to ld, don't add -lc before -lgcc.
12898 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12899 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12901 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12904 (eval $ac_compile) 2>&5
12906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907 (exit $ac_status); } 2>conftest.err; then
12910 libobjs=conftest.$ac_objext
12912 wl=$lt_prog_compiler_wl_CXX
12913 pic_flag=$lt_prog_compiler_pic_CXX
12919 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12920 allow_undefined_flag_CXX=
12921 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12922 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925 (exit $ac_status); }
12927 archive_cmds_need_lc_CXX=no
12929 archive_cmds_need_lc_CXX=yes
12931 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12933 cat conftest.err 1>&5
12936 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12937 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12944 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12945 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12946 library_names_spec=
12947 libname_spec='lib$name'
12951 postuninstall_cmds=
12955 shlibpath_overrides_runpath=unknown
12957 dynamic_linker="$host_os ld.so"
12958 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12960 need_lib_prefix=unknown
12961 hardcode_into_libs=no
12963 # when you set need_version to no, make sure it does not cause -set_version
12964 # flags to be left without arguments
12965 need_version=unknown
12970 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12971 shlibpath_var=LIBPATH
12973 # AIX 3 has no versioning support, so we append a major version to the name.
12974 soname_spec='${libname}${release}${shared_ext}$major'
12981 hardcode_into_libs=yes
12982 if test "$host_cpu" = ia64; then
12983 # AIX 5 supports IA64
12984 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12985 shlibpath_var=LD_LIBRARY_PATH
12987 # With GCC up to 2.95.x, collect2 would create an import file
12988 # for dependence libraries. The import file would start with
12989 # the line `#! .'. This would cause the generated library to
12990 # depend on `.', always an invalid library. This was fixed in
12991 # development snapshots of GCC prior to 3.0.
12993 aix4 | aix4.[01] | aix4.[01].*)
12994 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12996 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12999 can_build_shared=no
13003 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13004 # soname into executable. Probably we can add versioning support to
13005 # collect2, so additional links can be useful in future.
13006 if test "$aix_use_runtimelinking" = yes; then
13007 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13008 # instead of lib<name>.a to let people know that these are not
13009 # typical AIX shared libraries.
13010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13012 # We preserve .a as extension for shared libraries through AIX4.2
13013 # and later when we are not doing run time linking.
13014 library_names_spec='${libname}${release}.a $libname.a'
13015 soname_spec='${libname}${release}${shared_ext}$major'
13017 shlibpath_var=LIBPATH
13022 library_names_spec='$libname.ixlibrary $libname.a'
13023 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13024 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'
13028 library_names_spec='${libname}${shared_ext}'
13029 dynamic_linker="$host_os ld.so"
13030 shlibpath_var=LIBRARY_PATH
13036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13037 soname_spec='${libname}${release}${shared_ext}$major'
13038 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13039 shlibpath_var=LD_LIBRARY_PATH
13040 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13041 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13042 # the default ld.so.conf also contains /usr/contrib/lib and
13043 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13044 # libtool to hard-code these into programs
13047 cygwin* | mingw* | pw32*)
13048 version_type=windows
13053 case $GCC,$host_os in
13054 yes,cygwin* | yes,mingw* | yes,pw32*)
13055 library_names_spec='$libname.dll.a'
13056 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13057 postinstall_cmds='base_file=`basename \${file}`~
13058 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13059 dldir=$destdir/`dirname \$dlpath`~
13060 test -d \$dldir || mkdir -p \$dldir~
13061 $install_prog $dir/$dlname \$dldir/$dlname~
13062 chmod a+x \$dldir/$dlname'
13063 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13064 dlpath=$dir/\$dldll~
13066 shlibpath_overrides_runpath=yes
13070 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13071 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13072 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13075 # MinGW DLLs use traditional 'lib' prefix
13076 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13077 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13078 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13079 # It is most probably a Windows format PATH printed by
13080 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13081 # path with ; separators, and with drive letters. We can handle the
13082 # drive letters (cygwin fileutils understands them), so leave them,
13083 # especially as we might pass files found there to a mingw objdump,
13084 # which wouldn't understand a cygwinified path. Ahh.
13085 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13087 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13091 # pw32 DLLs use 'pw' prefix rather than 'lib'
13092 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13098 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13101 dynamic_linker='Win32 ld.exe'
13102 # FIXME: first we should search . and the directory the executable is in
13106 darwin* | rhapsody*)
13107 dynamic_linker="$host_os dyld"
13108 version_type=darwin
13111 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13112 soname_spec='${libname}${release}${major}$shared_ext'
13113 shlibpath_overrides_runpath=yes
13114 shlibpath_var=DYLD_LIBRARY_PATH
13115 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13117 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13125 soname_spec='${libname}${release}${shared_ext}$major'
13126 shlibpath_var=LD_LIBRARY_PATH
13133 freebsd* | dragonfly*)
13134 # DragonFly does not have aout. When/if they implement a new
13135 # versioning mechanism, adjust this.
13136 if test -x /usr/bin/objformat; then
13137 objformat=`/usr/bin/objformat`
13140 freebsd[123]*) objformat=aout ;;
13141 *) objformat=elf ;;
13144 version_type=freebsd-$objformat
13145 case $version_type in
13147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13152 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13156 shlibpath_var=LD_LIBRARY_PATH
13159 shlibpath_overrides_runpath=yes
13161 freebsd3.[01]* | freebsdelf3.[01]*)
13162 shlibpath_overrides_runpath=yes
13163 hardcode_into_libs=yes
13165 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13166 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13167 shlibpath_overrides_runpath=no
13168 hardcode_into_libs=yes
13170 *) # from 4.6 on, and DragonFly
13171 shlibpath_overrides_runpath=yes
13172 hardcode_into_libs=yes
13181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13182 soname_spec='${libname}${release}${shared_ext}$major'
13183 shlibpath_var=LD_LIBRARY_PATH
13184 hardcode_into_libs=yes
13187 hpux9* | hpux10* | hpux11*)
13188 # Give a soname corresponding to the major version so that dld.sl refuses to
13189 # link against other versions.
13196 hardcode_into_libs=yes
13197 dynamic_linker="$host_os dld.so"
13198 shlibpath_var=LD_LIBRARY_PATH
13199 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13201 soname_spec='${libname}${release}${shared_ext}$major'
13202 if test "X$HPUX_IA64_MODE" = X32; then
13203 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13205 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13207 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13211 hardcode_into_libs=yes
13212 dynamic_linker="$host_os dld.sl"
13213 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13214 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13216 soname_spec='${libname}${release}${shared_ext}$major'
13217 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13218 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13222 dynamic_linker="$host_os dld.sl"
13223 shlibpath_var=SHLIB_PATH
13224 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13226 soname_spec='${libname}${release}${shared_ext}$major'
13229 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13230 postinstall_cmds='chmod 555 $lib'
13237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13238 soname_spec='${libname}${release}${shared_ext}$major'
13239 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13240 shlibpath_var=LD_LIBRARY_PATH
13241 shlibpath_overrides_runpath=no
13242 hardcode_into_libs=yes
13245 irix5* | irix6* | nonstopux*)
13247 nonstopux*) version_type=nonstopux ;;
13249 if test "$lt_cv_prog_gnu_ld" = yes; then
13257 soname_spec='${libname}${release}${shared_ext}$major'
13258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13260 irix5* | nonstopux*)
13261 libsuff= shlibsuff=
13264 case $LD in # libtool.m4 will add one of these switches to LD
13265 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13266 libsuff= shlibsuff= libmagic=32-bit;;
13267 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13268 libsuff=32 shlibsuff=N32 libmagic=N32;;
13269 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13270 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13271 *) libsuff= shlibsuff= libmagic=never-match;;
13275 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13276 shlibpath_overrides_runpath=no
13277 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13278 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13279 hardcode_into_libs=yes
13282 # No shared lib support for Linux oldld, aout, or coff.
13283 linux*oldld* | linux*aout* | linux*coff*)
13287 # This must be Linux ELF.
13288 linux* | k*bsd*-gnu)
13292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13293 soname_spec='${libname}${release}${shared_ext}$major'
13294 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13295 shlibpath_var=LD_LIBRARY_PATH
13296 shlibpath_overrides_runpath=no
13297 # This implies no fast_install, which is unacceptable.
13298 # Some rework will be needed to allow for fast_install
13299 # before this can be enabled.
13300 hardcode_into_libs=yes
13302 # Append ld.so.conf contents to the search path
13303 if test -f /etc/ld.so.conf; then
13304 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' ' '`
13305 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13308 # We used to test for /lib/ld.so.1 and disable shared libraries on
13309 # powerpc, because MkLinux only supported shared libraries with the
13310 # GNU dynamic linker. Since this was broken with cross compilers,
13311 # most powerpc-linux boxes support dynamic linking these days and
13312 # people can always --disable-shared, the test was removed, and we
13313 # assume the GNU/Linux dynamic linker is in use.
13314 dynamic_linker='GNU/Linux ld.so'
13321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13322 soname_spec='${libname}${release}${shared_ext}$major'
13323 shlibpath_var=LD_LIBRARY_PATH
13324 shlibpath_overrides_runpath=no
13325 hardcode_into_libs=yes
13326 dynamic_linker='NetBSD ld.elf_so'
13333 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13335 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13336 dynamic_linker='NetBSD (a.out) ld.so'
13338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13339 soname_spec='${libname}${release}${shared_ext}$major'
13340 dynamic_linker='NetBSD ld.elf_so'
13342 shlibpath_var=LD_LIBRARY_PATH
13343 shlibpath_overrides_runpath=yes
13344 hardcode_into_libs=yes
13349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13350 shlibpath_var=LD_LIBRARY_PATH
13351 shlibpath_overrides_runpath=yes
13358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13359 soname_spec='${libname}${release}${shared_ext}$major'
13360 shlibpath_var=LD_LIBRARY_PATH
13361 shlibpath_overrides_runpath=yes
13366 sys_lib_dlsearch_path_spec="/usr/lib"
13368 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13370 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13371 *) need_version=no ;;
13373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13374 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13375 shlibpath_var=LD_LIBRARY_PATH
13376 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13378 openbsd2.[89] | openbsd2.[89].*)
13379 shlibpath_overrides_runpath=no
13382 shlibpath_overrides_runpath=yes
13386 shlibpath_overrides_runpath=yes
13391 libname_spec='$name'
13394 library_names_spec='$libname${shared_ext} $libname.a'
13395 dynamic_linker='OS/2 ld.exe'
13396 shlibpath_var=LIBPATH
13399 osf3* | osf4* | osf5*)
13403 soname_spec='${libname}${release}${shared_ext}$major'
13404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13405 shlibpath_var=LD_LIBRARY_PATH
13406 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13407 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13419 soname_spec='${libname}${release}${shared_ext}$major'
13420 shlibpath_var=LD_LIBRARY_PATH
13421 shlibpath_overrides_runpath=yes
13422 hardcode_into_libs=yes
13423 # ldd complains unless libraries are executable
13424 postinstall_cmds='chmod +x $lib'
13429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13430 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13431 shlibpath_var=LD_LIBRARY_PATH
13432 shlibpath_overrides_runpath=yes
13433 if test "$with_gnu_ld" = yes; then
13441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13442 soname_spec='${libname}${release}${shared_ext}$major'
13443 shlibpath_var=LD_LIBRARY_PATH
13444 case $host_vendor in
13446 shlibpath_overrides_runpath=no
13448 export_dynamic_flag_spec='${wl}-Blargedynsym'
13449 runpath_var=LD_RUN_PATH
13457 shlibpath_overrides_runpath=no
13458 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13464 if test -d /usr/nec ;then
13466 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13467 soname_spec='$libname${shared_ext}.$major'
13468 shlibpath_var=LD_LIBRARY_PATH
13472 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13473 version_type=freebsd-elf
13476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13477 soname_spec='${libname}${release}${shared_ext}$major'
13478 shlibpath_var=LD_LIBRARY_PATH
13479 hardcode_into_libs=yes
13480 if test "$with_gnu_ld" = yes; then
13481 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13482 shlibpath_overrides_runpath=no
13484 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13485 shlibpath_overrides_runpath=yes
13488 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13492 sys_lib_dlsearch_path_spec='/usr/lib'
13497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13498 soname_spec='${libname}${release}${shared_ext}$major'
13499 shlibpath_var=LD_LIBRARY_PATH
13506 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13507 echo "${ECHO_T}$dynamic_linker" >&6; }
13508 test "$dynamic_linker" = no && can_build_shared=no
13510 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13511 echo $ECHO_N "(cached) $ECHO_C" >&6
13513 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13516 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13517 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13518 echo $ECHO_N "(cached) $ECHO_C" >&6
13520 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13523 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13525 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13526 if test "$GCC" = yes; then
13527 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13530 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13531 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13532 hardcode_action_CXX=
13533 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13534 test -n "$runpath_var_CXX" || \
13535 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13537 # We can hardcode non-existant directories.
13538 if test "$hardcode_direct_CXX" != no &&
13539 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13540 # have to relink, otherwise we might link with an installed library
13541 # when we should be linking with a yet-to-be-installed one
13542 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13543 test "$hardcode_minus_L_CXX" != no; then
13544 # Linking always hardcodes the temporary library directory.
13545 hardcode_action_CXX=relink
13547 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13548 hardcode_action_CXX=immediate
13551 # We cannot hardcode anything, or else we can only hardcode existing
13553 hardcode_action_CXX=unsupported
13555 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13556 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13558 if test "$hardcode_action_CXX" = relink; then
13559 # Fast installation is not supported
13560 enable_fast_install=no
13561 elif test "$shlibpath_overrides_runpath" = yes ||
13562 test "$enable_shared" = no; then
13563 # Fast installation is not necessary
13564 enable_fast_install=needless
13568 # The else clause should only fire when bootstrapping the
13569 # libtool distribution, otherwise you forgot to ship ltmain.sh
13570 # with your package, and you will get complaints that there are
13571 # no rules to generate ltmain.sh.
13572 if test -f "$ltmain"; then
13573 # See if we are running on zsh, and set the options which allow our commands through
13574 # without removal of \ escapes.
13575 if test -n "${ZSH_VERSION+set}" ; then
13576 setopt NO_GLOB_SUBST
13578 # Now quote all the things that may contain metacharacters while being
13579 # careful not to overquote the AC_SUBSTed values. We take copies of the
13580 # variables and quote the copies for generation of the libtool script.
13581 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13583 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13584 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13585 deplibs_check_method reload_flag reload_cmds need_locks \
13586 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13587 lt_cv_sys_global_symbol_to_c_name_address \
13588 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13589 old_postinstall_cmds old_postuninstall_cmds \
13593 lt_prog_compiler_wl_CXX \
13594 lt_prog_compiler_pic_CXX \
13595 lt_prog_compiler_static_CXX \
13596 lt_prog_compiler_no_builtin_flag_CXX \
13597 export_dynamic_flag_spec_CXX \
13598 thread_safe_flag_spec_CXX \
13599 whole_archive_flag_spec_CXX \
13600 enable_shared_with_static_runtimes_CXX \
13601 old_archive_cmds_CXX \
13602 old_archive_from_new_cmds_CXX \
13603 predep_objects_CXX \
13604 postdep_objects_CXX \
13607 compiler_lib_search_path_CXX \
13608 compiler_lib_search_dirs_CXX \
13610 archive_expsym_cmds_CXX \
13611 postinstall_cmds_CXX \
13612 postuninstall_cmds_CXX \
13613 old_archive_from_expsyms_cmds_CXX \
13614 allow_undefined_flag_CXX \
13615 no_undefined_flag_CXX \
13616 export_symbols_cmds_CXX \
13617 hardcode_libdir_flag_spec_CXX \
13618 hardcode_libdir_flag_spec_ld_CXX \
13619 hardcode_libdir_separator_CXX \
13620 hardcode_automatic_CXX \
13622 module_expsym_cmds_CXX \
13623 lt_cv_prog_compiler_c_o_CXX \
13624 fix_srcfile_path_CXX \
13625 exclude_expsyms_CXX \
13626 include_expsyms_CXX; do
13629 old_archive_cmds_CXX | \
13630 old_archive_from_new_cmds_CXX | \
13631 archive_cmds_CXX | \
13632 archive_expsym_cmds_CXX | \
13633 module_cmds_CXX | \
13634 module_expsym_cmds_CXX | \
13635 old_archive_from_expsyms_cmds_CXX | \
13636 export_symbols_cmds_CXX | \
13637 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13638 postinstall_cmds | postuninstall_cmds | \
13639 old_postinstall_cmds | old_postuninstall_cmds | \
13640 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13641 # Double-quote double-evaled strings.
13642 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13645 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13651 *'\$0 --fallback-echo"')
13652 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13658 cat <<__EOF__ >> "$cfgfile"
13659 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13661 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13663 # Shell to use when invoking shell scripts.
13666 # Whether or not to build shared libraries.
13667 build_libtool_libs=$enable_shared
13669 # Whether or not to build static libraries.
13670 build_old_libs=$enable_static
13672 # Whether or not to add -lc for building shared libraries.
13673 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13675 # Whether or not to disallow shared libs when runtime libs are static
13676 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13678 # Whether or not to optimize for fast installation.
13679 fast_install=$enable_fast_install
13682 host_alias=$host_alias
13686 # The build system.
13687 build_alias=$build_alias
13691 # An echo program that does not interpret backslashes.
13696 AR_FLAGS=$lt_AR_FLAGS
13701 # LTCC compiler flags.
13702 LTCFLAGS=$lt_LTCFLAGS
13704 # A language-specific compiler.
13705 CC=$lt_compiler_CXX
13707 # Is the compiler the GNU C compiler?
13713 # The linker used to build libraries.
13716 # Whether we need hard or soft links.
13719 # A BSD-compatible nm program.
13722 # A symbol stripping program
13725 # Used to examine libraries when file_magic_cmd begins "file"
13726 MAGIC_CMD=$MAGIC_CMD
13728 # Used on cygwin: DLL creation program.
13731 # Used on cygwin: object dumper.
13734 # Used on cygwin: assembler.
13737 # The name of the directory that contains temporary libtool files.
13740 # How to create reloadable object files.
13741 reload_flag=$lt_reload_flag
13742 reload_cmds=$lt_reload_cmds
13744 # How to pass a linker flag through the compiler.
13745 wl=$lt_lt_prog_compiler_wl_CXX
13747 # Object file suffix (normally "o").
13748 objext="$ac_objext"
13750 # Old archive suffix (normally "a").
13753 # Shared library suffix (normally ".so").
13754 shrext_cmds='$shrext_cmds'
13756 # Executable file suffix (normally "").
13759 # Additional compiler flags for building library objects.
13760 pic_flag=$lt_lt_prog_compiler_pic_CXX
13763 # What is the maximum length of a command?
13764 max_cmd_len=$lt_cv_sys_max_cmd_len
13766 # Does compiler simultaneously support -c and -o options?
13767 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13769 # Must we lock files when doing compilation?
13770 need_locks=$lt_need_locks
13772 # Do we need the lib prefix for modules?
13773 need_lib_prefix=$need_lib_prefix
13775 # Do we need a version for libraries?
13776 need_version=$need_version
13778 # Whether dlopen is supported.
13779 dlopen_support=$enable_dlopen
13781 # Whether dlopen of programs is supported.
13782 dlopen_self=$enable_dlopen_self
13784 # Whether dlopen of statically linked programs is supported.
13785 dlopen_self_static=$enable_dlopen_self_static
13787 # Compiler flag to prevent dynamic linking.
13788 link_static_flag=$lt_lt_prog_compiler_static_CXX
13790 # Compiler flag to turn off builtin functions.
13791 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13793 # Compiler flag to allow reflexive dlopens.
13794 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13796 # Compiler flag to generate shared objects directly from archives.
13797 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13799 # Compiler flag to generate thread-safe objects.
13800 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13802 # Library versioning type.
13803 version_type=$version_type
13805 # Format of library name prefix.
13806 libname_spec=$lt_libname_spec
13808 # List of archive names. First name is the real one, the rest are links.
13809 # The last name is the one that the linker finds with -lNAME.
13810 library_names_spec=$lt_library_names_spec
13812 # The coded name of the library, if different from the real name.
13813 soname_spec=$lt_soname_spec
13815 # Commands used to build and install an old-style archive.
13817 old_archive_cmds=$lt_old_archive_cmds_CXX
13818 old_postinstall_cmds=$lt_old_postinstall_cmds
13819 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13821 # Create an old-style archive from a shared archive.
13822 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13824 # Create a temporary old-style archive to link instead of a shared archive.
13825 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13827 # Commands used to build and install a shared archive.
13828 archive_cmds=$lt_archive_cmds_CXX
13829 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13830 postinstall_cmds=$lt_postinstall_cmds
13831 postuninstall_cmds=$lt_postuninstall_cmds
13833 # Commands used to build a loadable module (assumed same as above if empty)
13834 module_cmds=$lt_module_cmds_CXX
13835 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13837 # Commands to strip libraries.
13838 old_striplib=$lt_old_striplib
13839 striplib=$lt_striplib
13841 # Dependencies to place before the objects being linked to create a
13843 predep_objects=$lt_predep_objects_CXX
13845 # Dependencies to place after the objects being linked to create a
13847 postdep_objects=$lt_postdep_objects_CXX
13849 # Dependencies to place before the objects being linked to create a
13851 predeps=$lt_predeps_CXX
13853 # Dependencies to place after the objects being linked to create a
13855 postdeps=$lt_postdeps_CXX
13857 # The directories searched by this compiler when creating a shared
13859 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13861 # The library search path used internally by the compiler when linking
13862 # a shared library.
13863 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13865 # Method to check whether dependent libraries are shared objects.
13866 deplibs_check_method=$lt_deplibs_check_method
13868 # Command to use when deplibs_check_method == file_magic.
13869 file_magic_cmd=$lt_file_magic_cmd
13871 # Flag that allows shared libraries with undefined symbols to be built.
13872 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13874 # Flag that forces no undefined symbols.
13875 no_undefined_flag=$lt_no_undefined_flag_CXX
13877 # Commands used to finish a libtool library installation in a directory.
13878 finish_cmds=$lt_finish_cmds
13880 # Same as above, but a single script fragment to be evaled but not shown.
13881 finish_eval=$lt_finish_eval
13883 # Take the output of nm and produce a listing of raw symbols and C names.
13884 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13886 # Transform the output of nm in a proper C declaration
13887 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13889 # Transform the output of nm in a C name address pair
13890 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13892 # This is the shared library runtime path variable.
13893 runpath_var=$runpath_var
13895 # This is the shared library path variable.
13896 shlibpath_var=$shlibpath_var
13898 # Is shlibpath searched before the hard-coded library search path?
13899 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13901 # How to hardcode a shared library path into an executable.
13902 hardcode_action=$hardcode_action_CXX
13904 # Whether we should hardcode library paths into libraries.
13905 hardcode_into_libs=$hardcode_into_libs
13907 # Flag to hardcode \$libdir into a binary during linking.
13908 # This must work even if \$libdir does not exist.
13909 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13911 # If ld is used when linking, flag to hardcode \$libdir into
13912 # a binary during linking. This must work even if \$libdir does
13914 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13916 # Whether we need a single -rpath flag with a separated argument.
13917 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13919 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13920 # resulting binary.
13921 hardcode_direct=$hardcode_direct_CXX
13923 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13924 # resulting binary.
13925 hardcode_minus_L=$hardcode_minus_L_CXX
13927 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13928 # the resulting binary.
13929 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13931 # Set to yes if building a shared library automatically hardcodes DIR into the library
13932 # and all subsequent libraries and executables linked against it.
13933 hardcode_automatic=$hardcode_automatic_CXX
13935 # Variables whose values should be saved in libtool wrapper scripts and
13936 # restored at relink time.
13937 variables_saved_for_relink="$variables_saved_for_relink"
13939 # Whether libtool must link a program against all its dependency libraries.
13940 link_all_deplibs=$link_all_deplibs_CXX
13942 # Compile-time system search path for libraries
13943 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13945 # Run-time system search path for libraries
13946 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13948 # Fix the shell variable \$srcfile for the compiler.
13949 fix_srcfile_path=$lt_fix_srcfile_path
13951 # Set to yes if exported symbols are required.
13952 always_export_symbols=$always_export_symbols_CXX
13954 # The commands to list exported symbols.
13955 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13957 # The commands to extract the exported symbol list from a shared archive.
13958 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13960 # Symbols that should not be listed in the preloaded symbols.
13961 exclude_expsyms=$lt_exclude_expsyms_CXX
13963 # Symbols that must always be exported.
13964 include_expsyms=$lt_include_expsyms_CXX
13966 # ### END LIBTOOL TAG CONFIG: $tagname
13972 # If there is no Makefile yet, we rely on a make rule to execute
13973 # `config.status --recheck' to rerun these tests and create the
13974 # libtool script then.
13975 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13976 if test -f "$ltmain_in"; then
13977 test -f Makefile && make "$ltmain"
13983 ac_cpp='$CPP $CPPFLAGS'
13984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13992 with_gnu_ldcxx=$with_gnu_ld
13993 with_gnu_ld=$lt_save_with_gnu_ld
13994 lt_cv_path_LDCXX=$lt_cv_path_LD
13995 lt_cv_path_LD=$lt_save_path_LD
13996 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13997 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14005 if test -n "$F77" && test "X$F77" != "Xno"; then
14008 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14009 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14010 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14013 archive_cmds_need_lc_F77=no
14014 allow_undefined_flag_F77=
14015 always_export_symbols_F77=no
14016 archive_expsym_cmds_F77=
14017 export_dynamic_flag_spec_F77=
14018 hardcode_direct_F77=no
14019 hardcode_libdir_flag_spec_F77=
14020 hardcode_libdir_flag_spec_ld_F77=
14021 hardcode_libdir_separator_F77=
14022 hardcode_minus_L_F77=no
14023 hardcode_automatic_F77=no
14025 module_expsym_cmds_F77=
14026 link_all_deplibs_F77=unknown
14027 old_archive_cmds_F77=$old_archive_cmds
14028 no_undefined_flag_F77=
14029 whole_archive_flag_spec_F77=
14030 enable_shared_with_static_runtimes_F77=no
14032 # Source file extension for f77 test sources.
14035 # Object file extension for compiled f77 test sources.
14039 # Code to be used in simple compile tests
14040 lt_simple_compile_test_code="\
14046 # Code to be used in simple link tests
14047 lt_simple_link_test_code="\
14052 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14054 # If no C compiler was specified, use CC.
14057 # If no C compiler flags were specified, use CFLAGS.
14058 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14060 # Allow CC to be a program name with arguments.
14064 # save warnings/boilerplate of simple test code
14065 ac_outfile=conftest.$ac_objext
14066 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14067 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14068 _lt_compiler_boilerplate=`cat conftest.err`
14071 ac_outfile=conftest.$ac_objext
14072 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14073 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14074 _lt_linker_boilerplate=`cat conftest.err`
14078 # Allow CC to be a program name with arguments.
14083 for cc_temp in $compiler""; do
14085 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14086 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14091 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14094 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14095 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14096 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14097 echo "${ECHO_T}$can_build_shared" >&6; }
14099 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14100 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14101 test "$can_build_shared" = "no" && enable_shared=no
14103 # On AIX, shared libraries and static libraries use the same namespace, and
14104 # are all built from PIC.
14107 test "$enable_shared" = yes && enable_static=no
14108 if test -n "$RANLIB"; then
14109 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14110 postinstall_cmds='$RANLIB $lib'
14114 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14115 test "$enable_shared" = yes && enable_static=no
14119 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14120 echo "${ECHO_T}$enable_shared" >&6; }
14122 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14123 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14124 # Make sure either enable_shared or enable_static is yes.
14125 test "$enable_shared" = yes || enable_static=yes
14126 { echo "$as_me:$LINENO: result: $enable_static" >&5
14127 echo "${ECHO_T}$enable_static" >&6; }
14132 lt_prog_compiler_wl_F77=
14133 lt_prog_compiler_pic_F77=
14134 lt_prog_compiler_static_F77=
14136 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14137 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14139 if test "$GCC" = yes; then
14140 lt_prog_compiler_wl_F77='-Wl,'
14141 lt_prog_compiler_static_F77='-static'
14145 # All AIX code is PIC.
14146 if test "$host_cpu" = ia64; then
14147 # AIX 5 now supports IA64 processor
14148 lt_prog_compiler_static_F77='-Bstatic'
14153 # FIXME: we need at least 68020 code to build shared libraries, but
14154 # adding the `-m68020' flag to GCC prevents building anything better,
14156 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14159 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14160 # PIC is the default for these OSes.
14163 mingw* | cygwin* | pw32* | os2*)
14164 # This hack is so that the source file can tell whether it is being
14165 # built for inclusion in a dll (and should export symbols for example).
14166 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14167 # (--disable-auto-import) libraries
14168 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14171 darwin* | rhapsody*)
14172 # PIC is the default on this platform
14173 # Common symbols not allowed in MH_DYLIB files
14174 lt_prog_compiler_pic_F77='-fno-common'
14178 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14179 # Instead, we relocate shared libraries at runtime.
14183 # Just because we use GCC doesn't mean we suddenly get shared libraries
14184 # on systems that don't support them.
14185 lt_prog_compiler_can_build_shared_F77=no
14190 if test -d /usr/nec; then
14191 lt_prog_compiler_pic_F77=-Kconform_pic
14196 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14197 # not for PA HP-UX.
14203 lt_prog_compiler_pic_F77='-fPIC'
14209 lt_prog_compiler_pic_F77='-fPIC'
14213 # PORTME Check for flag to pass linker flags through the system compiler.
14216 lt_prog_compiler_wl_F77='-Wl,'
14217 if test "$host_cpu" = ia64; then
14218 # AIX 5 now supports IA64 processor
14219 lt_prog_compiler_static_F77='-Bstatic'
14221 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14225 # PIC is the default on this platform
14226 # Common symbols not allowed in MH_DYLIB files
14227 case $cc_basename in
14229 lt_prog_compiler_pic_F77='-qnocommon'
14230 lt_prog_compiler_wl_F77='-Wl,'
14235 mingw* | cygwin* | pw32* | os2*)
14236 # This hack is so that the source file can tell whether it is being
14237 # built for inclusion in a dll (and should export symbols for example).
14238 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14241 hpux9* | hpux10* | hpux11*)
14242 lt_prog_compiler_wl_F77='-Wl,'
14243 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14244 # not for PA HP-UX.
14250 lt_prog_compiler_pic_F77='+Z'
14253 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14254 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14257 irix5* | irix6* | nonstopux*)
14258 lt_prog_compiler_wl_F77='-Wl,'
14259 # PIC (with -KPIC) is the default.
14260 lt_prog_compiler_static_F77='-non_shared'
14264 lt_prog_compiler_pic_F77='-KPIC'
14265 lt_prog_compiler_static_F77='-Bstatic'
14268 linux* | k*bsd*-gnu)
14269 case $cc_basename in
14271 lt_prog_compiler_wl_F77='-Wl,'
14272 lt_prog_compiler_pic_F77='-KPIC'
14273 lt_prog_compiler_static_F77='-static'
14275 pgcc* | pgf77* | pgf90* | pgf95*)
14276 # Portland Group compilers (*not* the Pentium gcc compiler,
14277 # which looks to be a dead project)
14278 lt_prog_compiler_wl_F77='-Wl,'
14279 lt_prog_compiler_pic_F77='-fpic'
14280 lt_prog_compiler_static_F77='-Bstatic'
14283 lt_prog_compiler_wl_F77='-Wl,'
14284 # All Alpha code is PIC.
14285 lt_prog_compiler_static_F77='-non_shared'
14288 case `$CC -V 2>&1 | sed 5q` in
14291 lt_prog_compiler_pic_F77='-KPIC'
14292 lt_prog_compiler_static_F77='-Bstatic'
14293 lt_prog_compiler_wl_F77='-Wl,'
14296 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14297 lt_prog_compiler_pic_F77='-KPIC'
14298 lt_prog_compiler_static_F77='-Bstatic'
14299 lt_prog_compiler_wl_F77=''
14306 osf3* | osf4* | osf5*)
14307 lt_prog_compiler_wl_F77='-Wl,'
14308 # All OSF/1 code is PIC.
14309 lt_prog_compiler_static_F77='-non_shared'
14313 lt_prog_compiler_static_F77='-non_shared'
14317 lt_prog_compiler_pic_F77='-KPIC'
14318 lt_prog_compiler_static_F77='-Bstatic'
14319 case $cc_basename in
14320 f77* | f90* | f95*)
14321 lt_prog_compiler_wl_F77='-Qoption ld ';;
14323 lt_prog_compiler_wl_F77='-Wl,';;
14328 lt_prog_compiler_wl_F77='-Qoption ld '
14329 lt_prog_compiler_pic_F77='-PIC'
14330 lt_prog_compiler_static_F77='-Bstatic'
14333 sysv4 | sysv4.2uw2* | sysv4.3*)
14334 lt_prog_compiler_wl_F77='-Wl,'
14335 lt_prog_compiler_pic_F77='-KPIC'
14336 lt_prog_compiler_static_F77='-Bstatic'
14340 if test -d /usr/nec ;then
14341 lt_prog_compiler_pic_F77='-Kconform_pic'
14342 lt_prog_compiler_static_F77='-Bstatic'
14346 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14347 lt_prog_compiler_wl_F77='-Wl,'
14348 lt_prog_compiler_pic_F77='-KPIC'
14349 lt_prog_compiler_static_F77='-Bstatic'
14353 lt_prog_compiler_wl_F77='-Wl,'
14354 lt_prog_compiler_can_build_shared_F77=no
14358 lt_prog_compiler_pic_F77='-pic'
14359 lt_prog_compiler_static_F77='-Bstatic'
14363 lt_prog_compiler_can_build_shared_F77=no
14368 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14369 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14372 # Check to make sure the PIC flag actually works.
14374 if test -n "$lt_prog_compiler_pic_F77"; then
14376 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14377 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14378 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14379 echo $ECHO_N "(cached) $ECHO_C" >&6
14381 lt_cv_prog_compiler_pic_works_F77=no
14382 ac_outfile=conftest.$ac_objext
14383 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14384 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14385 # Insert the option either (1) after the last *FLAGS variable, or
14386 # (2) before a word containing "conftest.", or (3) at the end.
14387 # Note that $ac_compile itself does not contain backslashes and begins
14388 # with a dollar sign (not a hyphen), so the echo should work correctly.
14389 # The option is referenced via a variable to avoid confusing sed.
14390 lt_compile=`echo "$ac_compile" | $SED \
14391 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14392 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14393 -e 's:$: $lt_compiler_flag:'`
14394 (eval echo "\"\$as_me:14394: $lt_compile\"" >&5)
14395 (eval "$lt_compile" 2>conftest.err)
14397 cat conftest.err >&5
14398 echo "$as_me:14398: \$? = $ac_status" >&5
14399 if (exit $ac_status) && test -s "$ac_outfile"; then
14400 # The compiler can only warn and ignore the option if not recognized
14401 # So say no if there are warnings other than the usual output.
14402 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14403 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14404 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14405 lt_cv_prog_compiler_pic_works_F77=yes
14411 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14412 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14414 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14415 case $lt_prog_compiler_pic_F77 in
14417 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14420 lt_prog_compiler_pic_F77=
14421 lt_prog_compiler_can_build_shared_F77=no
14426 # For platforms which do not support PIC, -DPIC is meaningless:
14428 lt_prog_compiler_pic_F77=
14431 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14436 # Check to make sure the static flag actually works.
14438 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14439 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14440 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14441 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14442 echo $ECHO_N "(cached) $ECHO_C" >&6
14444 lt_cv_prog_compiler_static_works_F77=no
14445 save_LDFLAGS="$LDFLAGS"
14446 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14447 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14448 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14449 # The linker can only warn and ignore the option if not recognized
14450 # So say no if there are warnings
14451 if test -s conftest.err; then
14452 # Append any errors to the config.log.
14453 cat conftest.err 1>&5
14454 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14455 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14456 if diff conftest.exp conftest.er2 >/dev/null; then
14457 lt_cv_prog_compiler_static_works_F77=yes
14460 lt_cv_prog_compiler_static_works_F77=yes
14464 LDFLAGS="$save_LDFLAGS"
14467 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14468 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14470 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14473 lt_prog_compiler_static_F77=
14477 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14478 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14479 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14480 echo $ECHO_N "(cached) $ECHO_C" >&6
14482 lt_cv_prog_compiler_c_o_F77=no
14483 $rm -r conftest 2>/dev/null
14487 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14489 lt_compiler_flag="-o out/conftest2.$ac_objext"
14490 # Insert the option either (1) after the last *FLAGS variable, or
14491 # (2) before a word containing "conftest.", or (3) at the end.
14492 # Note that $ac_compile itself does not contain backslashes and begins
14493 # with a dollar sign (not a hyphen), so the echo should work correctly.
14494 lt_compile=`echo "$ac_compile" | $SED \
14495 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14496 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14497 -e 's:$: $lt_compiler_flag:'`
14498 (eval echo "\"\$as_me:14498: $lt_compile\"" >&5)
14499 (eval "$lt_compile" 2>out/conftest.err)
14501 cat out/conftest.err >&5
14502 echo "$as_me:14502: \$? = $ac_status" >&5
14503 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14505 # The compiler can only warn and ignore the option if not recognized
14506 # So say no if there are warnings
14507 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14508 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14509 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14510 lt_cv_prog_compiler_c_o_F77=yes
14515 # SGI C++ compiler will create directory out/ii_files/ for
14516 # template instantiation
14517 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14518 $rm out/* && rmdir out
14524 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14525 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14528 hard_links="nottested"
14529 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14530 # do not overwrite the value of need_locks provided by the user
14531 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14532 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14535 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14537 ln conftest.a conftest.b 2>&5 || hard_links=no
14538 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14539 { echo "$as_me:$LINENO: result: $hard_links" >&5
14540 echo "${ECHO_T}$hard_links" >&6; }
14541 if test "$hard_links" = no; then
14542 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14543 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14550 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14551 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14554 allow_undefined_flag_F77=
14555 enable_shared_with_static_runtimes_F77=no
14557 archive_expsym_cmds_F77=
14558 old_archive_From_new_cmds_F77=
14559 old_archive_from_expsyms_cmds_F77=
14560 export_dynamic_flag_spec_F77=
14561 whole_archive_flag_spec_F77=
14562 thread_safe_flag_spec_F77=
14563 hardcode_libdir_flag_spec_F77=
14564 hardcode_libdir_flag_spec_ld_F77=
14565 hardcode_libdir_separator_F77=
14566 hardcode_direct_F77=no
14567 hardcode_minus_L_F77=no
14568 hardcode_shlibpath_var_F77=unsupported
14569 link_all_deplibs_F77=unknown
14570 hardcode_automatic_F77=no
14572 module_expsym_cmds_F77=
14573 always_export_symbols_F77=no
14574 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14575 # include_expsyms should be a list of space-separated symbols to be *always*
14576 # included in the symbol list
14577 include_expsyms_F77=
14578 # exclude_expsyms can be an extended regexp of symbols to exclude
14579 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14580 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14581 # as well as any symbol that contains `d'.
14582 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14583 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14584 # platforms (ab)use it in PIC code, but their linkers get confused if
14585 # the symbol is explicitly referenced. Since portable code cannot
14586 # rely on this symbol name, it's probably fine to never include it in
14587 # preloaded symbol tables.
14588 # Exclude shared library initialization/finalization symbols.
14589 extract_expsyms_cmds=
14590 # Just being paranoid about ensuring that cc_basename is set.
14591 for cc_temp in $compiler""; do
14593 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14594 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14599 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14602 cygwin* | mingw* | pw32*)
14603 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14604 # When not using gcc, we currently assume that we are using
14605 # Microsoft Visual C++.
14606 if test "$GCC" != yes; then
14611 # we just hope/assume this is gcc and not c89 (= MSVC++)
14620 if test "$with_gnu_ld" = yes; then
14621 # If archive_cmds runs LD, not CC, wlarc should be empty
14624 # Set some defaults for GNU ld with shared library support. These
14625 # are reset later if shared libraries are not supported. Putting them
14626 # here allows them to be overridden if necessary.
14627 runpath_var=LD_RUN_PATH
14628 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14629 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14630 # ancient GNU ld didn't support --whole-archive et. al.
14631 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14632 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14634 whole_archive_flag_spec_F77=
14636 supports_anon_versioning=no
14637 case `$LD -v 2>/dev/null` in
14638 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14639 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14640 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14641 *\ 2.11.*) ;; # other 2.11 versions
14642 *) supports_anon_versioning=yes ;;
14645 # See if GNU ld supports shared libraries.
14648 # On AIX/PPC, the GNU linker is very broken
14649 if test "$host_cpu" != ia64; then
14653 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14654 *** to be unable to reliably create shared libraries on AIX.
14655 *** Therefore, libtool is disabling shared libraries support. If you
14656 *** really care for shared libraries, you may want to modify your PATH
14657 *** so that a non-GNU linker is found, and then restart.
14664 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)'
14665 hardcode_libdir_flag_spec_F77='-L$libdir'
14666 hardcode_minus_L_F77=yes
14668 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14669 # that the semantics of dynamic libraries on AmigaOS, at least up
14670 # to version 4, is to share data among multiple programs linked
14671 # with the same dynamic library. Since this doesn't match the
14672 # behavior of shared libraries on other platforms, we can't use
14678 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14679 allow_undefined_flag_F77=unsupported
14680 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14681 # support --undefined. This deserves some investigation. FIXME
14682 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14688 cygwin* | mingw* | pw32*)
14689 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14690 # as there is no search path for DLLs.
14691 hardcode_libdir_flag_spec_F77='-L$libdir'
14692 allow_undefined_flag_F77=unsupported
14693 always_export_symbols_F77=no
14694 enable_shared_with_static_runtimes_F77=yes
14695 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14697 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14698 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14699 # If the export-symbols file already is a .def file (1st line
14700 # is EXPORTS), use it as is; otherwise, prepend...
14701 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14702 cp $export_symbols $output_objdir/$soname.def;
14704 echo EXPORTS > $output_objdir/$soname.def;
14705 cat $export_symbols >> $output_objdir/$soname.def;
14707 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14714 hardcode_direct_F77=no
14715 hardcode_shlibpath_var_F77=no
14716 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14717 export_dynamic_flag_spec_F77='${wl}-E'
14718 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14719 # Instead, shared libraries are loaded at an image base (0x10000000 by
14720 # default) and relocated if they conflict, which is a slow very memory
14721 # consuming and fragmenting process. To avoid this, we pick a random,
14722 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14723 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14724 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'
14725 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'
14728 gnu* | linux* | k*bsd*-gnu)
14729 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14731 case $cc_basename,$host_cpu in
14732 pgcc*) # Portland Group C compiler
14733 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'
14734 tmp_addflag=' $pic_flag'
14736 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14737 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'
14738 tmp_addflag=' $pic_flag -Mnomain' ;;
14739 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14740 tmp_addflag=' -i_dynamic' ;;
14741 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14742 tmp_addflag=' -i_dynamic -nofor_main' ;;
14743 ifc* | ifort*) # Intel Fortran compiler
14744 tmp_addflag=' -nofor_main' ;;
14746 case `$CC -V 2>&1 | sed 5q` in
14747 *Sun\ C*) # Sun C 5.9
14748 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'
14749 tmp_sharedflag='-G' ;;
14750 *Sun\ F*) # Sun Fortran 8.3
14751 tmp_sharedflag='-G' ;;
14753 tmp_sharedflag='-shared' ;;
14755 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14757 if test $supports_anon_versioning = yes; then
14758 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14759 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14760 $echo "local: *; };" >> $output_objdir/$libname.ver~
14761 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14763 link_all_deplibs_F77=no
14769 netbsd* | netbsdelf*-gnu)
14770 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14771 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14774 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14775 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14780 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14784 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14785 *** create shared libraries on Solaris systems. Therefore, libtool
14786 *** is disabling shared libraries support. We urge you to upgrade GNU
14787 *** binutils to release 2.9.1 or newer. Another option is to modify
14788 *** your PATH or compiler configuration so that the native linker is
14789 *** used, and then restart.
14792 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14793 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14794 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14800 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14801 case `$LD -v 2>&1` in
14802 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14806 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14807 *** reliably create shared libraries on SCO systems. Therefore, libtool
14808 *** is disabling shared libraries support. We urge you to upgrade GNU
14809 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14810 *** your PATH or compiler configuration so that the native linker is
14811 *** used, and then restart.
14816 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14817 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14818 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14819 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14828 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14830 hardcode_direct_F77=yes
14831 hardcode_shlibpath_var_F77=no
14835 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14836 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14837 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14844 if test "$ld_shlibs_F77" = no; then
14846 hardcode_libdir_flag_spec_F77=
14847 export_dynamic_flag_spec_F77=
14848 whole_archive_flag_spec_F77=
14851 # PORTME fill in a description of your system's linker (not GNU ld)
14854 allow_undefined_flag_F77=unsupported
14855 always_export_symbols_F77=yes
14856 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'
14857 # Note: this linker hardcodes the directories in LIBPATH if there
14858 # are no directories specified by -L.
14859 hardcode_minus_L_F77=yes
14860 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14861 # Neither direct hardcoding nor static linking is supported with a
14863 hardcode_direct_F77=unsupported
14868 if test "$host_cpu" = ia64; then
14869 # On IA64, the linker does run time linking by default, so we don't
14870 # have to do anything special.
14871 aix_use_runtimelinking=no
14872 exp_sym_flag='-Bexport'
14875 # If we're using GNU nm, then we don't want the "-C" option.
14876 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14877 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14878 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'
14880 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'
14882 aix_use_runtimelinking=no
14884 # Test if we are trying to use run time linking or normal
14885 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14886 # need to do runtime linking.
14887 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14888 for ld_flag in $LDFLAGS; do
14889 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14890 aix_use_runtimelinking=yes
14897 exp_sym_flag='-bexport'
14898 no_entry_flag='-bnoentry'
14901 # When large executables or shared objects are built, AIX ld can
14902 # have problems creating the table of contents. If linking a library
14903 # or program results in "error TOC overflow" add -mminimal-toc to
14904 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14905 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14907 archive_cmds_F77=''
14908 hardcode_direct_F77=yes
14909 hardcode_libdir_separator_F77=':'
14910 link_all_deplibs_F77=yes
14912 if test "$GCC" = yes; then
14913 case $host_os in aix4.[012]|aix4.[012].*)
14914 # We only want to do this on AIX 4.2 and lower, the check
14915 # below for broken collect2 doesn't work under 4.3+
14916 collect2name=`${CC} -print-prog-name=collect2`
14917 if test -f "$collect2name" && \
14918 strings "$collect2name" | grep resolve_lib_name >/dev/null
14920 # We have reworked collect2
14923 # We have old collect2
14924 hardcode_direct_F77=unsupported
14925 # It fails to find uninstalled libraries when the uninstalled
14926 # path is not listed in the libpath. Setting hardcode_minus_L
14927 # to unsupported forces relinking
14928 hardcode_minus_L_F77=yes
14929 hardcode_libdir_flag_spec_F77='-L$libdir'
14930 hardcode_libdir_separator_F77=
14934 shared_flag='-shared'
14935 if test "$aix_use_runtimelinking" = yes; then
14936 shared_flag="$shared_flag "'${wl}-G'
14940 if test "$host_cpu" = ia64; then
14941 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14942 # chokes on -Wl,-G. The following line is correct:
14945 if test "$aix_use_runtimelinking" = yes; then
14946 shared_flag='${wl}-G'
14948 shared_flag='${wl}-bM:SRE'
14953 # It seems that -bexpall does not export symbols beginning with
14954 # underscore (_), so it is better to generate a list of symbols to export.
14955 always_export_symbols_F77=yes
14956 if test "$aix_use_runtimelinking" = yes; then
14957 # Warning - without using the other runtime loading flags (-brtl),
14958 # -berok will link without error, but may produce a broken library.
14959 allow_undefined_flag_F77='-berok'
14960 # Determine the default libpath from the value encoded in an empty executable.
14961 cat >conftest.$ac_ext <<_ACEOF
14966 rm -f conftest.$ac_objext conftest$ac_exeext
14967 if { (ac_try="$ac_link"
14968 case "(($ac_try" in
14969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14970 *) ac_try_echo=$ac_try;;
14972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14973 (eval "$ac_link") 2>conftest.er1
14975 grep -v '^ *+' conftest.er1 >conftest.err
14977 cat conftest.err >&5
14978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979 (exit $ac_status); } && {
14980 test -z "$ac_f77_werror_flag" ||
14981 test ! -s conftest.err
14982 } && test -s conftest$ac_exeext &&
14983 $as_test_x conftest$ac_exeext; then
14985 lt_aix_libpath_sed='
14986 /Import File Strings/,/^$/ {
14992 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14993 # Check for a 64-bit object if we didn't find anything.
14994 if test -z "$aix_libpath"; then
14995 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14998 echo "$as_me: failed program was:" >&5
14999 sed 's/^/| /' conftest.$ac_ext >&5
15004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15005 conftest$ac_exeext conftest.$ac_ext
15006 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15008 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15009 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"
15011 if test "$host_cpu" = ia64; then
15012 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15013 allow_undefined_flag_F77="-z nodefs"
15014 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"
15016 # Determine the default libpath from the value encoded in an empty executable.
15017 cat >conftest.$ac_ext <<_ACEOF
15022 rm -f conftest.$ac_objext conftest$ac_exeext
15023 if { (ac_try="$ac_link"
15024 case "(($ac_try" in
15025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15026 *) ac_try_echo=$ac_try;;
15028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15029 (eval "$ac_link") 2>conftest.er1
15031 grep -v '^ *+' conftest.er1 >conftest.err
15033 cat conftest.err >&5
15034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035 (exit $ac_status); } && {
15036 test -z "$ac_f77_werror_flag" ||
15037 test ! -s conftest.err
15038 } && test -s conftest$ac_exeext &&
15039 $as_test_x conftest$ac_exeext; then
15041 lt_aix_libpath_sed='
15042 /Import File Strings/,/^$/ {
15048 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15049 # Check for a 64-bit object if we didn't find anything.
15050 if test -z "$aix_libpath"; then
15051 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15054 echo "$as_me: failed program was:" >&5
15055 sed 's/^/| /' conftest.$ac_ext >&5
15060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15061 conftest$ac_exeext conftest.$ac_ext
15062 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15064 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15065 # Warning - without using the other run time loading flags,
15066 # -berok will link without error, but may produce a broken library.
15067 no_undefined_flag_F77=' ${wl}-bernotok'
15068 allow_undefined_flag_F77=' ${wl}-berok'
15069 # Exported symbols can be pulled into shared objects from archives
15070 whole_archive_flag_spec_F77='$convenience'
15071 archive_cmds_need_lc_F77=yes
15072 # This is similar to how AIX traditionally builds its shared libraries.
15073 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'
15079 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)'
15080 hardcode_libdir_flag_spec_F77='-L$libdir'
15081 hardcode_minus_L_F77=yes
15082 # see comment about different semantics on the GNU ld section
15087 export_dynamic_flag_spec_F77=-rdynamic
15090 cygwin* | mingw* | pw32*)
15091 # When not using gcc, we currently assume that we are using
15092 # Microsoft Visual C++.
15093 # hardcode_libdir_flag_spec is actually meaningless, as there is
15094 # no search path for DLLs.
15095 hardcode_libdir_flag_spec_F77=' '
15096 allow_undefined_flag_F77=unsupported
15097 # Tell ltmain to make .lib files, not .a files.
15099 # Tell ltmain to make .dll files, not .so files.
15101 # FIXME: Setting linknames here is a bad hack.
15102 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15103 # The linker will automatically build a .lib file if we build a DLL.
15104 old_archive_From_new_cmds_F77='true'
15105 # FIXME: Should let the user specify the lib program.
15106 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15107 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15108 enable_shared_with_static_runtimes_F77=yes
15111 darwin* | rhapsody*)
15113 rhapsody* | darwin1.[012])
15114 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15117 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15118 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15120 case ${MACOSX_DEPLOYMENT_TARGET} in
15122 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15125 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15131 archive_cmds_need_lc_F77=no
15132 hardcode_direct_F77=no
15133 hardcode_automatic_F77=yes
15134 hardcode_shlibpath_var_F77=unsupported
15135 whole_archive_flag_spec_F77=''
15136 link_all_deplibs_F77=yes
15137 if test "$GCC" = yes ; then
15138 output_verbose_link_cmd='echo'
15139 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}"
15140 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15141 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}"
15142 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}"
15144 case $cc_basename in
15146 output_verbose_link_cmd='echo'
15147 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15148 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15149 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15150 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}'
15151 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}'
15161 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15162 hardcode_libdir_flag_spec_F77='-L$libdir'
15163 hardcode_shlibpath_var_F77=no
15170 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15171 # support. Future versions do this automatically, but an explicit c++rt0.o
15172 # does not break anything, and helps significantly (at the cost of a little
15175 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15176 hardcode_libdir_flag_spec_F77='-R$libdir'
15177 hardcode_direct_F77=yes
15178 hardcode_shlibpath_var_F77=no
15181 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15183 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15184 hardcode_direct_F77=yes
15185 hardcode_minus_L_F77=yes
15186 hardcode_shlibpath_var_F77=no
15189 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15190 freebsd* | dragonfly*)
15191 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15192 hardcode_libdir_flag_spec_F77='-R$libdir'
15193 hardcode_direct_F77=yes
15194 hardcode_shlibpath_var_F77=no
15198 if test "$GCC" = yes; then
15199 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'
15201 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'
15203 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15204 hardcode_libdir_separator_F77=:
15205 hardcode_direct_F77=yes
15207 # hardcode_minus_L: Not really in the search PATH,
15208 # but as the default location of the library.
15209 hardcode_minus_L_F77=yes
15210 export_dynamic_flag_spec_F77='${wl}-E'
15214 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15215 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15217 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15219 if test "$with_gnu_ld" = no; then
15220 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15221 hardcode_libdir_separator_F77=:
15223 hardcode_direct_F77=yes
15224 export_dynamic_flag_spec_F77='${wl}-E'
15226 # hardcode_minus_L: Not really in the search PATH,
15227 # but as the default location of the library.
15228 hardcode_minus_L_F77=yes
15233 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15236 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15239 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15242 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15248 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15251 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15254 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15258 if test "$with_gnu_ld" = no; then
15259 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15260 hardcode_libdir_separator_F77=:
15264 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15265 hardcode_direct_F77=no
15266 hardcode_shlibpath_var_F77=no
15269 hardcode_direct_F77=yes
15270 export_dynamic_flag_spec_F77='${wl}-E'
15272 # hardcode_minus_L: Not really in the search PATH,
15273 # but as the default location of the library.
15274 hardcode_minus_L_F77=yes
15280 irix5* | irix6* | nonstopux*)
15281 if test "$GCC" = yes; then
15282 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'
15284 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'
15285 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15287 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15288 hardcode_libdir_separator_F77=:
15289 link_all_deplibs_F77=yes
15292 netbsd* | netbsdelf*-gnu)
15293 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15294 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15296 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15298 hardcode_libdir_flag_spec_F77='-R$libdir'
15299 hardcode_direct_F77=yes
15300 hardcode_shlibpath_var_F77=no
15304 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15305 hardcode_direct_F77=yes
15306 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15307 hardcode_libdir_separator_F77=:
15308 hardcode_shlibpath_var_F77=no
15312 if test -f /usr/libexec/ld.so; then
15313 hardcode_direct_F77=yes
15314 hardcode_shlibpath_var_F77=no
15315 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15316 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15317 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15318 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15319 export_dynamic_flag_spec_F77='${wl}-E'
15322 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15323 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15324 hardcode_libdir_flag_spec_F77='-R$libdir'
15327 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15328 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15338 hardcode_libdir_flag_spec_F77='-L$libdir'
15339 hardcode_minus_L_F77=yes
15340 allow_undefined_flag_F77=unsupported
15341 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'
15342 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15346 if test "$GCC" = yes; then
15347 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15348 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'
15350 allow_undefined_flag_F77=' -expect_unresolved \*'
15351 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'
15353 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15354 hardcode_libdir_separator_F77=:
15357 osf4* | osf5*) # as osf3* with the addition of -msym flag
15358 if test "$GCC" = yes; then
15359 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15360 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'
15361 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15363 allow_undefined_flag_F77=' -expect_unresolved \*'
15364 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'
15365 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~
15366 $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'
15368 # Both c and cxx compiler support -rpath directly
15369 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15371 hardcode_libdir_separator_F77=:
15375 no_undefined_flag_F77=' -z text'
15376 if test "$GCC" = yes; then
15378 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15379 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15380 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15383 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15384 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15385 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15387 hardcode_libdir_flag_spec_F77='-R$libdir'
15388 hardcode_shlibpath_var_F77=no
15390 solaris2.[0-5] | solaris2.[0-5].*) ;;
15392 # The compiler driver will combine and reorder linker options,
15393 # but understands `-z linker_flag'. GCC discards it without `$wl',
15394 # but is careful enough not to reorder.
15395 # Supported since Solaris 2.6 (maybe 2.5.1?)
15396 if test "$GCC" = yes; then
15397 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15399 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15403 link_all_deplibs_F77=yes
15407 if test "x$host_vendor" = xsequent; then
15408 # Use $CC to link under sequent, because it throws in some extra .o
15409 # files that make .init and .fini sections work.
15410 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15412 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15414 hardcode_libdir_flag_spec_F77='-L$libdir'
15415 hardcode_direct_F77=yes
15416 hardcode_minus_L_F77=yes
15417 hardcode_shlibpath_var_F77=no
15421 case $host_vendor in
15423 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15424 hardcode_direct_F77=yes # is this really true???
15427 ## LD is ld it makes a PLAMLIB
15428 ## CC just makes a GrossModule.
15429 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15430 reload_cmds_F77='$CC -r -o $output$reload_objs'
15431 hardcode_direct_F77=no
15434 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15435 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15438 runpath_var='LD_RUN_PATH'
15439 hardcode_shlibpath_var_F77=no
15443 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15444 hardcode_shlibpath_var_F77=no
15445 export_dynamic_flag_spec_F77='-Bexport'
15449 if test -d /usr/nec; then
15450 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15451 hardcode_shlibpath_var_F77=no
15452 runpath_var=LD_RUN_PATH
15453 hardcode_runpath_var=yes
15458 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15459 no_undefined_flag_F77='${wl}-z,text'
15460 archive_cmds_need_lc_F77=no
15461 hardcode_shlibpath_var_F77=no
15462 runpath_var='LD_RUN_PATH'
15464 if test "$GCC" = yes; then
15465 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15466 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15468 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15469 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15473 sysv5* | sco3.2v5* | sco5v6*)
15474 # Note: We can NOT use -z defs as we might desire, because we do not
15475 # link with -lc, and that would cause any symbols used from libc to
15476 # always be unresolved, which means just about no library would
15477 # ever link correctly. If we're not using GNU ld we use -z text
15478 # though, which does catch some bad symbols but isn't as heavy-handed
15480 no_undefined_flag_F77='${wl}-z,text'
15481 allow_undefined_flag_F77='${wl}-z,nodefs'
15482 archive_cmds_need_lc_F77=no
15483 hardcode_shlibpath_var_F77=no
15484 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15485 hardcode_libdir_separator_F77=':'
15486 link_all_deplibs_F77=yes
15487 export_dynamic_flag_spec_F77='${wl}-Bexport'
15488 runpath_var='LD_RUN_PATH'
15490 if test "$GCC" = yes; then
15491 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15492 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15494 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15495 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15500 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15501 hardcode_libdir_flag_spec_F77='-L$libdir'
15502 hardcode_shlibpath_var_F77=no
15511 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15512 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15513 test "$ld_shlibs_F77" = no && can_build_shared=no
15516 # Do we need to explicitly link libc?
15518 case "x$archive_cmds_need_lc_F77" in
15520 # Assume -lc should be added
15521 archive_cmds_need_lc_F77=yes
15523 if test "$enable_shared" = yes && test "$GCC" = yes; then
15524 case $archive_cmds_F77 in
15526 # FIXME: we may have to deal with multi-command sequences.
15529 # Test whether the compiler implicitly links with -lc since on some
15530 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15531 # to ld, don't add -lc before -lgcc.
15532 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15533 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15535 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15538 (eval $ac_compile) 2>&5
15540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15541 (exit $ac_status); } 2>conftest.err; then
15544 libobjs=conftest.$ac_objext
15546 wl=$lt_prog_compiler_wl_F77
15547 pic_flag=$lt_prog_compiler_pic_F77
15553 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15554 allow_undefined_flag_F77=
15555 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15556 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559 (exit $ac_status); }
15561 archive_cmds_need_lc_F77=no
15563 archive_cmds_need_lc_F77=yes
15565 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15567 cat conftest.err 1>&5
15570 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15571 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15578 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15579 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15580 library_names_spec=
15581 libname_spec='lib$name'
15585 postuninstall_cmds=
15589 shlibpath_overrides_runpath=unknown
15591 dynamic_linker="$host_os ld.so"
15592 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15594 need_lib_prefix=unknown
15595 hardcode_into_libs=no
15597 # when you set need_version to no, make sure it does not cause -set_version
15598 # flags to be left without arguments
15599 need_version=unknown
15604 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15605 shlibpath_var=LIBPATH
15607 # AIX 3 has no versioning support, so we append a major version to the name.
15608 soname_spec='${libname}${release}${shared_ext}$major'
15615 hardcode_into_libs=yes
15616 if test "$host_cpu" = ia64; then
15617 # AIX 5 supports IA64
15618 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15619 shlibpath_var=LD_LIBRARY_PATH
15621 # With GCC up to 2.95.x, collect2 would create an import file
15622 # for dependence libraries. The import file would start with
15623 # the line `#! .'. This would cause the generated library to
15624 # depend on `.', always an invalid library. This was fixed in
15625 # development snapshots of GCC prior to 3.0.
15627 aix4 | aix4.[01] | aix4.[01].*)
15628 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15630 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15633 can_build_shared=no
15637 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15638 # soname into executable. Probably we can add versioning support to
15639 # collect2, so additional links can be useful in future.
15640 if test "$aix_use_runtimelinking" = yes; then
15641 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15642 # instead of lib<name>.a to let people know that these are not
15643 # typical AIX shared libraries.
15644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15646 # We preserve .a as extension for shared libraries through AIX4.2
15647 # and later when we are not doing run time linking.
15648 library_names_spec='${libname}${release}.a $libname.a'
15649 soname_spec='${libname}${release}${shared_ext}$major'
15651 shlibpath_var=LIBPATH
15656 library_names_spec='$libname.ixlibrary $libname.a'
15657 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15658 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'
15662 library_names_spec='${libname}${shared_ext}'
15663 dynamic_linker="$host_os ld.so"
15664 shlibpath_var=LIBRARY_PATH
15670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15671 soname_spec='${libname}${release}${shared_ext}$major'
15672 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15673 shlibpath_var=LD_LIBRARY_PATH
15674 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15675 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15676 # the default ld.so.conf also contains /usr/contrib/lib and
15677 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15678 # libtool to hard-code these into programs
15681 cygwin* | mingw* | pw32*)
15682 version_type=windows
15687 case $GCC,$host_os in
15688 yes,cygwin* | yes,mingw* | yes,pw32*)
15689 library_names_spec='$libname.dll.a'
15690 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15691 postinstall_cmds='base_file=`basename \${file}`~
15692 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15693 dldir=$destdir/`dirname \$dlpath`~
15694 test -d \$dldir || mkdir -p \$dldir~
15695 $install_prog $dir/$dlname \$dldir/$dlname~
15696 chmod a+x \$dldir/$dlname'
15697 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15698 dlpath=$dir/\$dldll~
15700 shlibpath_overrides_runpath=yes
15704 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15705 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15706 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15709 # MinGW DLLs use traditional 'lib' prefix
15710 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15711 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15712 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15713 # It is most probably a Windows format PATH printed by
15714 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15715 # path with ; separators, and with drive letters. We can handle the
15716 # drive letters (cygwin fileutils understands them), so leave them,
15717 # especially as we might pass files found there to a mingw objdump,
15718 # which wouldn't understand a cygwinified path. Ahh.
15719 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15721 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15725 # pw32 DLLs use 'pw' prefix rather than 'lib'
15726 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15732 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15735 dynamic_linker='Win32 ld.exe'
15736 # FIXME: first we should search . and the directory the executable is in
15740 darwin* | rhapsody*)
15741 dynamic_linker="$host_os dyld"
15742 version_type=darwin
15745 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15746 soname_spec='${libname}${release}${major}$shared_ext'
15747 shlibpath_overrides_runpath=yes
15748 shlibpath_var=DYLD_LIBRARY_PATH
15749 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15751 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15759 soname_spec='${libname}${release}${shared_ext}$major'
15760 shlibpath_var=LD_LIBRARY_PATH
15767 freebsd* | dragonfly*)
15768 # DragonFly does not have aout. When/if they implement a new
15769 # versioning mechanism, adjust this.
15770 if test -x /usr/bin/objformat; then
15771 objformat=`/usr/bin/objformat`
15774 freebsd[123]*) objformat=aout ;;
15775 *) objformat=elf ;;
15778 version_type=freebsd-$objformat
15779 case $version_type in
15781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15786 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15790 shlibpath_var=LD_LIBRARY_PATH
15793 shlibpath_overrides_runpath=yes
15795 freebsd3.[01]* | freebsdelf3.[01]*)
15796 shlibpath_overrides_runpath=yes
15797 hardcode_into_libs=yes
15799 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15800 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15801 shlibpath_overrides_runpath=no
15802 hardcode_into_libs=yes
15804 *) # from 4.6 on, and DragonFly
15805 shlibpath_overrides_runpath=yes
15806 hardcode_into_libs=yes
15815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15816 soname_spec='${libname}${release}${shared_ext}$major'
15817 shlibpath_var=LD_LIBRARY_PATH
15818 hardcode_into_libs=yes
15821 hpux9* | hpux10* | hpux11*)
15822 # Give a soname corresponding to the major version so that dld.sl refuses to
15823 # link against other versions.
15830 hardcode_into_libs=yes
15831 dynamic_linker="$host_os dld.so"
15832 shlibpath_var=LD_LIBRARY_PATH
15833 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15835 soname_spec='${libname}${release}${shared_ext}$major'
15836 if test "X$HPUX_IA64_MODE" = X32; then
15837 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15839 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15841 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15845 hardcode_into_libs=yes
15846 dynamic_linker="$host_os dld.sl"
15847 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15848 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15850 soname_spec='${libname}${release}${shared_ext}$major'
15851 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15852 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15856 dynamic_linker="$host_os dld.sl"
15857 shlibpath_var=SHLIB_PATH
15858 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15860 soname_spec='${libname}${release}${shared_ext}$major'
15863 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15864 postinstall_cmds='chmod 555 $lib'
15871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15872 soname_spec='${libname}${release}${shared_ext}$major'
15873 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15874 shlibpath_var=LD_LIBRARY_PATH
15875 shlibpath_overrides_runpath=no
15876 hardcode_into_libs=yes
15879 irix5* | irix6* | nonstopux*)
15881 nonstopux*) version_type=nonstopux ;;
15883 if test "$lt_cv_prog_gnu_ld" = yes; then
15891 soname_spec='${libname}${release}${shared_ext}$major'
15892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15894 irix5* | nonstopux*)
15895 libsuff= shlibsuff=
15898 case $LD in # libtool.m4 will add one of these switches to LD
15899 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15900 libsuff= shlibsuff= libmagic=32-bit;;
15901 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15902 libsuff=32 shlibsuff=N32 libmagic=N32;;
15903 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15904 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15905 *) libsuff= shlibsuff= libmagic=never-match;;
15909 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15910 shlibpath_overrides_runpath=no
15911 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15912 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15913 hardcode_into_libs=yes
15916 # No shared lib support for Linux oldld, aout, or coff.
15917 linux*oldld* | linux*aout* | linux*coff*)
15921 # This must be Linux ELF.
15922 linux* | k*bsd*-gnu)
15926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15927 soname_spec='${libname}${release}${shared_ext}$major'
15928 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15929 shlibpath_var=LD_LIBRARY_PATH
15930 shlibpath_overrides_runpath=no
15931 # This implies no fast_install, which is unacceptable.
15932 # Some rework will be needed to allow for fast_install
15933 # before this can be enabled.
15934 hardcode_into_libs=yes
15936 # Append ld.so.conf contents to the search path
15937 if test -f /etc/ld.so.conf; then
15938 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' ' '`
15939 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15942 # We used to test for /lib/ld.so.1 and disable shared libraries on
15943 # powerpc, because MkLinux only supported shared libraries with the
15944 # GNU dynamic linker. Since this was broken with cross compilers,
15945 # most powerpc-linux boxes support dynamic linking these days and
15946 # people can always --disable-shared, the test was removed, and we
15947 # assume the GNU/Linux dynamic linker is in use.
15948 dynamic_linker='GNU/Linux ld.so'
15955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15956 soname_spec='${libname}${release}${shared_ext}$major'
15957 shlibpath_var=LD_LIBRARY_PATH
15958 shlibpath_overrides_runpath=no
15959 hardcode_into_libs=yes
15960 dynamic_linker='NetBSD ld.elf_so'
15967 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15969 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15970 dynamic_linker='NetBSD (a.out) ld.so'
15972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15973 soname_spec='${libname}${release}${shared_ext}$major'
15974 dynamic_linker='NetBSD ld.elf_so'
15976 shlibpath_var=LD_LIBRARY_PATH
15977 shlibpath_overrides_runpath=yes
15978 hardcode_into_libs=yes
15983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15984 shlibpath_var=LD_LIBRARY_PATH
15985 shlibpath_overrides_runpath=yes
15992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15993 soname_spec='${libname}${release}${shared_ext}$major'
15994 shlibpath_var=LD_LIBRARY_PATH
15995 shlibpath_overrides_runpath=yes
16000 sys_lib_dlsearch_path_spec="/usr/lib"
16002 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16004 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16005 *) need_version=no ;;
16007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16008 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16009 shlibpath_var=LD_LIBRARY_PATH
16010 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16012 openbsd2.[89] | openbsd2.[89].*)
16013 shlibpath_overrides_runpath=no
16016 shlibpath_overrides_runpath=yes
16020 shlibpath_overrides_runpath=yes
16025 libname_spec='$name'
16028 library_names_spec='$libname${shared_ext} $libname.a'
16029 dynamic_linker='OS/2 ld.exe'
16030 shlibpath_var=LIBPATH
16033 osf3* | osf4* | osf5*)
16037 soname_spec='${libname}${release}${shared_ext}$major'
16038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16039 shlibpath_var=LD_LIBRARY_PATH
16040 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16041 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16053 soname_spec='${libname}${release}${shared_ext}$major'
16054 shlibpath_var=LD_LIBRARY_PATH
16055 shlibpath_overrides_runpath=yes
16056 hardcode_into_libs=yes
16057 # ldd complains unless libraries are executable
16058 postinstall_cmds='chmod +x $lib'
16063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16064 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16065 shlibpath_var=LD_LIBRARY_PATH
16066 shlibpath_overrides_runpath=yes
16067 if test "$with_gnu_ld" = yes; then
16075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16076 soname_spec='${libname}${release}${shared_ext}$major'
16077 shlibpath_var=LD_LIBRARY_PATH
16078 case $host_vendor in
16080 shlibpath_overrides_runpath=no
16082 export_dynamic_flag_spec='${wl}-Blargedynsym'
16083 runpath_var=LD_RUN_PATH
16091 shlibpath_overrides_runpath=no
16092 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16098 if test -d /usr/nec ;then
16100 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16101 soname_spec='$libname${shared_ext}.$major'
16102 shlibpath_var=LD_LIBRARY_PATH
16106 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16107 version_type=freebsd-elf
16110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16111 soname_spec='${libname}${release}${shared_ext}$major'
16112 shlibpath_var=LD_LIBRARY_PATH
16113 hardcode_into_libs=yes
16114 if test "$with_gnu_ld" = yes; then
16115 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16116 shlibpath_overrides_runpath=no
16118 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16119 shlibpath_overrides_runpath=yes
16122 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16126 sys_lib_dlsearch_path_spec='/usr/lib'
16131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16132 soname_spec='${libname}${release}${shared_ext}$major'
16133 shlibpath_var=LD_LIBRARY_PATH
16140 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16141 echo "${ECHO_T}$dynamic_linker" >&6; }
16142 test "$dynamic_linker" = no && can_build_shared=no
16144 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16145 echo $ECHO_N "(cached) $ECHO_C" >&6
16147 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16150 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16151 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16152 echo $ECHO_N "(cached) $ECHO_C" >&6
16154 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16157 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16159 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16160 if test "$GCC" = yes; then
16161 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16164 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16165 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16166 hardcode_action_F77=
16167 if test -n "$hardcode_libdir_flag_spec_F77" || \
16168 test -n "$runpath_var_F77" || \
16169 test "X$hardcode_automatic_F77" = "Xyes" ; then
16171 # We can hardcode non-existant directories.
16172 if test "$hardcode_direct_F77" != no &&
16173 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16174 # have to relink, otherwise we might link with an installed library
16175 # when we should be linking with a yet-to-be-installed one
16176 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16177 test "$hardcode_minus_L_F77" != no; then
16178 # Linking always hardcodes the temporary library directory.
16179 hardcode_action_F77=relink
16181 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16182 hardcode_action_F77=immediate
16185 # We cannot hardcode anything, or else we can only hardcode existing
16187 hardcode_action_F77=unsupported
16189 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16190 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16192 if test "$hardcode_action_F77" = relink; then
16193 # Fast installation is not supported
16194 enable_fast_install=no
16195 elif test "$shlibpath_overrides_runpath" = yes ||
16196 test "$enable_shared" = no; then
16197 # Fast installation is not necessary
16198 enable_fast_install=needless
16202 # The else clause should only fire when bootstrapping the
16203 # libtool distribution, otherwise you forgot to ship ltmain.sh
16204 # with your package, and you will get complaints that there are
16205 # no rules to generate ltmain.sh.
16206 if test -f "$ltmain"; then
16207 # See if we are running on zsh, and set the options which allow our commands through
16208 # without removal of \ escapes.
16209 if test -n "${ZSH_VERSION+set}" ; then
16210 setopt NO_GLOB_SUBST
16212 # Now quote all the things that may contain metacharacters while being
16213 # careful not to overquote the AC_SUBSTed values. We take copies of the
16214 # variables and quote the copies for generation of the libtool script.
16215 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16217 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16218 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16219 deplibs_check_method reload_flag reload_cmds need_locks \
16220 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16221 lt_cv_sys_global_symbol_to_c_name_address \
16222 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16223 old_postinstall_cmds old_postuninstall_cmds \
16227 lt_prog_compiler_wl_F77 \
16228 lt_prog_compiler_pic_F77 \
16229 lt_prog_compiler_static_F77 \
16230 lt_prog_compiler_no_builtin_flag_F77 \
16231 export_dynamic_flag_spec_F77 \
16232 thread_safe_flag_spec_F77 \
16233 whole_archive_flag_spec_F77 \
16234 enable_shared_with_static_runtimes_F77 \
16235 old_archive_cmds_F77 \
16236 old_archive_from_new_cmds_F77 \
16237 predep_objects_F77 \
16238 postdep_objects_F77 \
16241 compiler_lib_search_path_F77 \
16242 compiler_lib_search_dirs_F77 \
16244 archive_expsym_cmds_F77 \
16245 postinstall_cmds_F77 \
16246 postuninstall_cmds_F77 \
16247 old_archive_from_expsyms_cmds_F77 \
16248 allow_undefined_flag_F77 \
16249 no_undefined_flag_F77 \
16250 export_symbols_cmds_F77 \
16251 hardcode_libdir_flag_spec_F77 \
16252 hardcode_libdir_flag_spec_ld_F77 \
16253 hardcode_libdir_separator_F77 \
16254 hardcode_automatic_F77 \
16256 module_expsym_cmds_F77 \
16257 lt_cv_prog_compiler_c_o_F77 \
16258 fix_srcfile_path_F77 \
16259 exclude_expsyms_F77 \
16260 include_expsyms_F77; do
16263 old_archive_cmds_F77 | \
16264 old_archive_from_new_cmds_F77 | \
16265 archive_cmds_F77 | \
16266 archive_expsym_cmds_F77 | \
16267 module_cmds_F77 | \
16268 module_expsym_cmds_F77 | \
16269 old_archive_from_expsyms_cmds_F77 | \
16270 export_symbols_cmds_F77 | \
16271 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16272 postinstall_cmds | postuninstall_cmds | \
16273 old_postinstall_cmds | old_postuninstall_cmds | \
16274 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16275 # Double-quote double-evaled strings.
16276 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16279 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16285 *'\$0 --fallback-echo"')
16286 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16292 cat <<__EOF__ >> "$cfgfile"
16293 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16295 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16297 # Shell to use when invoking shell scripts.
16300 # Whether or not to build shared libraries.
16301 build_libtool_libs=$enable_shared
16303 # Whether or not to build static libraries.
16304 build_old_libs=$enable_static
16306 # Whether or not to add -lc for building shared libraries.
16307 build_libtool_need_lc=$archive_cmds_need_lc_F77
16309 # Whether or not to disallow shared libs when runtime libs are static
16310 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16312 # Whether or not to optimize for fast installation.
16313 fast_install=$enable_fast_install
16316 host_alias=$host_alias
16320 # The build system.
16321 build_alias=$build_alias
16325 # An echo program that does not interpret backslashes.
16330 AR_FLAGS=$lt_AR_FLAGS
16335 # LTCC compiler flags.
16336 LTCFLAGS=$lt_LTCFLAGS
16338 # A language-specific compiler.
16339 CC=$lt_compiler_F77
16341 # Is the compiler the GNU C compiler?
16347 # The linker used to build libraries.
16350 # Whether we need hard or soft links.
16353 # A BSD-compatible nm program.
16356 # A symbol stripping program
16359 # Used to examine libraries when file_magic_cmd begins "file"
16360 MAGIC_CMD=$MAGIC_CMD
16362 # Used on cygwin: DLL creation program.
16365 # Used on cygwin: object dumper.
16368 # Used on cygwin: assembler.
16371 # The name of the directory that contains temporary libtool files.
16374 # How to create reloadable object files.
16375 reload_flag=$lt_reload_flag
16376 reload_cmds=$lt_reload_cmds
16378 # How to pass a linker flag through the compiler.
16379 wl=$lt_lt_prog_compiler_wl_F77
16381 # Object file suffix (normally "o").
16382 objext="$ac_objext"
16384 # Old archive suffix (normally "a").
16387 # Shared library suffix (normally ".so").
16388 shrext_cmds='$shrext_cmds'
16390 # Executable file suffix (normally "").
16393 # Additional compiler flags for building library objects.
16394 pic_flag=$lt_lt_prog_compiler_pic_F77
16397 # What is the maximum length of a command?
16398 max_cmd_len=$lt_cv_sys_max_cmd_len
16400 # Does compiler simultaneously support -c and -o options?
16401 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16403 # Must we lock files when doing compilation?
16404 need_locks=$lt_need_locks
16406 # Do we need the lib prefix for modules?
16407 need_lib_prefix=$need_lib_prefix
16409 # Do we need a version for libraries?
16410 need_version=$need_version
16412 # Whether dlopen is supported.
16413 dlopen_support=$enable_dlopen
16415 # Whether dlopen of programs is supported.
16416 dlopen_self=$enable_dlopen_self
16418 # Whether dlopen of statically linked programs is supported.
16419 dlopen_self_static=$enable_dlopen_self_static
16421 # Compiler flag to prevent dynamic linking.
16422 link_static_flag=$lt_lt_prog_compiler_static_F77
16424 # Compiler flag to turn off builtin functions.
16425 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16427 # Compiler flag to allow reflexive dlopens.
16428 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16430 # Compiler flag to generate shared objects directly from archives.
16431 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16433 # Compiler flag to generate thread-safe objects.
16434 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16436 # Library versioning type.
16437 version_type=$version_type
16439 # Format of library name prefix.
16440 libname_spec=$lt_libname_spec
16442 # List of archive names. First name is the real one, the rest are links.
16443 # The last name is the one that the linker finds with -lNAME.
16444 library_names_spec=$lt_library_names_spec
16446 # The coded name of the library, if different from the real name.
16447 soname_spec=$lt_soname_spec
16449 # Commands used to build and install an old-style archive.
16451 old_archive_cmds=$lt_old_archive_cmds_F77
16452 old_postinstall_cmds=$lt_old_postinstall_cmds
16453 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16455 # Create an old-style archive from a shared archive.
16456 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16458 # Create a temporary old-style archive to link instead of a shared archive.
16459 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16461 # Commands used to build and install a shared archive.
16462 archive_cmds=$lt_archive_cmds_F77
16463 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16464 postinstall_cmds=$lt_postinstall_cmds
16465 postuninstall_cmds=$lt_postuninstall_cmds
16467 # Commands used to build a loadable module (assumed same as above if empty)
16468 module_cmds=$lt_module_cmds_F77
16469 module_expsym_cmds=$lt_module_expsym_cmds_F77
16471 # Commands to strip libraries.
16472 old_striplib=$lt_old_striplib
16473 striplib=$lt_striplib
16475 # Dependencies to place before the objects being linked to create a
16477 predep_objects=$lt_predep_objects_F77
16479 # Dependencies to place after the objects being linked to create a
16481 postdep_objects=$lt_postdep_objects_F77
16483 # Dependencies to place before the objects being linked to create a
16485 predeps=$lt_predeps_F77
16487 # Dependencies to place after the objects being linked to create a
16489 postdeps=$lt_postdeps_F77
16491 # The directories searched by this compiler when creating a shared
16493 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16495 # The library search path used internally by the compiler when linking
16496 # a shared library.
16497 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16499 # Method to check whether dependent libraries are shared objects.
16500 deplibs_check_method=$lt_deplibs_check_method
16502 # Command to use when deplibs_check_method == file_magic.
16503 file_magic_cmd=$lt_file_magic_cmd
16505 # Flag that allows shared libraries with undefined symbols to be built.
16506 allow_undefined_flag=$lt_allow_undefined_flag_F77
16508 # Flag that forces no undefined symbols.
16509 no_undefined_flag=$lt_no_undefined_flag_F77
16511 # Commands used to finish a libtool library installation in a directory.
16512 finish_cmds=$lt_finish_cmds
16514 # Same as above, but a single script fragment to be evaled but not shown.
16515 finish_eval=$lt_finish_eval
16517 # Take the output of nm and produce a listing of raw symbols and C names.
16518 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16520 # Transform the output of nm in a proper C declaration
16521 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16523 # Transform the output of nm in a C name address pair
16524 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16526 # This is the shared library runtime path variable.
16527 runpath_var=$runpath_var
16529 # This is the shared library path variable.
16530 shlibpath_var=$shlibpath_var
16532 # Is shlibpath searched before the hard-coded library search path?
16533 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16535 # How to hardcode a shared library path into an executable.
16536 hardcode_action=$hardcode_action_F77
16538 # Whether we should hardcode library paths into libraries.
16539 hardcode_into_libs=$hardcode_into_libs
16541 # Flag to hardcode \$libdir into a binary during linking.
16542 # This must work even if \$libdir does not exist.
16543 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16545 # If ld is used when linking, flag to hardcode \$libdir into
16546 # a binary during linking. This must work even if \$libdir does
16548 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16550 # Whether we need a single -rpath flag with a separated argument.
16551 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16553 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16554 # resulting binary.
16555 hardcode_direct=$hardcode_direct_F77
16557 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16558 # resulting binary.
16559 hardcode_minus_L=$hardcode_minus_L_F77
16561 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16562 # the resulting binary.
16563 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16565 # Set to yes if building a shared library automatically hardcodes DIR into the library
16566 # and all subsequent libraries and executables linked against it.
16567 hardcode_automatic=$hardcode_automatic_F77
16569 # Variables whose values should be saved in libtool wrapper scripts and
16570 # restored at relink time.
16571 variables_saved_for_relink="$variables_saved_for_relink"
16573 # Whether libtool must link a program against all its dependency libraries.
16574 link_all_deplibs=$link_all_deplibs_F77
16576 # Compile-time system search path for libraries
16577 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16579 # Run-time system search path for libraries
16580 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16582 # Fix the shell variable \$srcfile for the compiler.
16583 fix_srcfile_path=$lt_fix_srcfile_path
16585 # Set to yes if exported symbols are required.
16586 always_export_symbols=$always_export_symbols_F77
16588 # The commands to list exported symbols.
16589 export_symbols_cmds=$lt_export_symbols_cmds_F77
16591 # The commands to extract the exported symbol list from a shared archive.
16592 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16594 # Symbols that should not be listed in the preloaded symbols.
16595 exclude_expsyms=$lt_exclude_expsyms_F77
16597 # Symbols that must always be exported.
16598 include_expsyms=$lt_include_expsyms_F77
16600 # ### END LIBTOOL TAG CONFIG: $tagname
16606 # If there is no Makefile yet, we rely on a make rule to execute
16607 # `config.status --recheck' to rerun these tests and create the
16608 # libtool script then.
16609 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16610 if test -f "$ltmain_in"; then
16611 test -f Makefile && make "$ltmain"
16617 ac_cpp='$CPP $CPPFLAGS'
16618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16630 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16633 # Source file extension for Java test sources.
16636 # Object file extension for compiled Java test sources.
16640 # Code to be used in simple compile tests
16641 lt_simple_compile_test_code="class foo {}"
16643 # Code to be used in simple link tests
16644 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16646 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16648 # If no C compiler was specified, use CC.
16651 # If no C compiler flags were specified, use CFLAGS.
16652 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16654 # Allow CC to be a program name with arguments.
16658 # save warnings/boilerplate of simple test code
16659 ac_outfile=conftest.$ac_objext
16660 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16661 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16662 _lt_compiler_boilerplate=`cat conftest.err`
16665 ac_outfile=conftest.$ac_objext
16666 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16667 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16668 _lt_linker_boilerplate=`cat conftest.err`
16672 # Allow CC to be a program name with arguments.
16677 for cc_temp in $compiler""; do
16679 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16680 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16685 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16688 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16689 archive_cmds_need_lc_GCJ=no
16691 old_archive_cmds_GCJ=$old_archive_cmds
16694 lt_prog_compiler_no_builtin_flag_GCJ=
16696 if test "$GCC" = yes; then
16697 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16700 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16701 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16702 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16703 echo $ECHO_N "(cached) $ECHO_C" >&6
16705 lt_cv_prog_compiler_rtti_exceptions=no
16706 ac_outfile=conftest.$ac_objext
16707 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16708 lt_compiler_flag="-fno-rtti -fno-exceptions"
16709 # Insert the option either (1) after the last *FLAGS variable, or
16710 # (2) before a word containing "conftest.", or (3) at the end.
16711 # Note that $ac_compile itself does not contain backslashes and begins
16712 # with a dollar sign (not a hyphen), so the echo should work correctly.
16713 # The option is referenced via a variable to avoid confusing sed.
16714 lt_compile=`echo "$ac_compile" | $SED \
16715 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16716 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16717 -e 's:$: $lt_compiler_flag:'`
16718 (eval echo "\"\$as_me:16718: $lt_compile\"" >&5)
16719 (eval "$lt_compile" 2>conftest.err)
16721 cat conftest.err >&5
16722 echo "$as_me:16722: \$? = $ac_status" >&5
16723 if (exit $ac_status) && test -s "$ac_outfile"; then
16724 # The compiler can only warn and ignore the option if not recognized
16725 # So say no if there are warnings other than the usual output.
16726 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16727 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16728 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16729 lt_cv_prog_compiler_rtti_exceptions=yes
16735 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16736 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16738 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16739 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16746 lt_prog_compiler_wl_GCJ=
16747 lt_prog_compiler_pic_GCJ=
16748 lt_prog_compiler_static_GCJ=
16750 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16751 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16753 if test "$GCC" = yes; then
16754 lt_prog_compiler_wl_GCJ='-Wl,'
16755 lt_prog_compiler_static_GCJ='-static'
16759 # All AIX code is PIC.
16760 if test "$host_cpu" = ia64; then
16761 # AIX 5 now supports IA64 processor
16762 lt_prog_compiler_static_GCJ='-Bstatic'
16767 # FIXME: we need at least 68020 code to build shared libraries, but
16768 # adding the `-m68020' flag to GCC prevents building anything better,
16770 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16773 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16774 # PIC is the default for these OSes.
16777 mingw* | cygwin* | pw32* | os2*)
16778 # This hack is so that the source file can tell whether it is being
16779 # built for inclusion in a dll (and should export symbols for example).
16780 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16781 # (--disable-auto-import) libraries
16785 darwin* | rhapsody*)
16786 # PIC is the default on this platform
16787 # Common symbols not allowed in MH_DYLIB files
16788 lt_prog_compiler_pic_GCJ='-fno-common'
16792 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16793 # Instead, we relocate shared libraries at runtime.
16797 # Just because we use GCC doesn't mean we suddenly get shared libraries
16798 # on systems that don't support them.
16799 lt_prog_compiler_can_build_shared_GCJ=no
16804 if test -d /usr/nec; then
16805 lt_prog_compiler_pic_GCJ=-Kconform_pic
16810 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16811 # not for PA HP-UX.
16817 lt_prog_compiler_pic_GCJ='-fPIC'
16823 lt_prog_compiler_pic_GCJ='-fPIC'
16827 # PORTME Check for flag to pass linker flags through the system compiler.
16830 lt_prog_compiler_wl_GCJ='-Wl,'
16831 if test "$host_cpu" = ia64; then
16832 # AIX 5 now supports IA64 processor
16833 lt_prog_compiler_static_GCJ='-Bstatic'
16835 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16839 # PIC is the default on this platform
16840 # Common symbols not allowed in MH_DYLIB files
16841 case $cc_basename in
16843 lt_prog_compiler_pic_GCJ='-qnocommon'
16844 lt_prog_compiler_wl_GCJ='-Wl,'
16849 mingw* | cygwin* | pw32* | os2*)
16850 # This hack is so that the source file can tell whether it is being
16851 # built for inclusion in a dll (and should export symbols for example).
16855 hpux9* | hpux10* | hpux11*)
16856 lt_prog_compiler_wl_GCJ='-Wl,'
16857 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16858 # not for PA HP-UX.
16864 lt_prog_compiler_pic_GCJ='+Z'
16867 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16868 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16871 irix5* | irix6* | nonstopux*)
16872 lt_prog_compiler_wl_GCJ='-Wl,'
16873 # PIC (with -KPIC) is the default.
16874 lt_prog_compiler_static_GCJ='-non_shared'
16878 lt_prog_compiler_pic_GCJ='-KPIC'
16879 lt_prog_compiler_static_GCJ='-Bstatic'
16882 linux* | k*bsd*-gnu)
16883 case $cc_basename in
16885 lt_prog_compiler_wl_GCJ='-Wl,'
16886 lt_prog_compiler_pic_GCJ='-KPIC'
16887 lt_prog_compiler_static_GCJ='-static'
16889 pgcc* | pgf77* | pgf90* | pgf95*)
16890 # Portland Group compilers (*not* the Pentium gcc compiler,
16891 # which looks to be a dead project)
16892 lt_prog_compiler_wl_GCJ='-Wl,'
16893 lt_prog_compiler_pic_GCJ='-fpic'
16894 lt_prog_compiler_static_GCJ='-Bstatic'
16897 lt_prog_compiler_wl_GCJ='-Wl,'
16898 # All Alpha code is PIC.
16899 lt_prog_compiler_static_GCJ='-non_shared'
16902 case `$CC -V 2>&1 | sed 5q` in
16905 lt_prog_compiler_pic_GCJ='-KPIC'
16906 lt_prog_compiler_static_GCJ='-Bstatic'
16907 lt_prog_compiler_wl_GCJ='-Wl,'
16910 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16911 lt_prog_compiler_pic_GCJ='-KPIC'
16912 lt_prog_compiler_static_GCJ='-Bstatic'
16913 lt_prog_compiler_wl_GCJ=''
16920 osf3* | osf4* | osf5*)
16921 lt_prog_compiler_wl_GCJ='-Wl,'
16922 # All OSF/1 code is PIC.
16923 lt_prog_compiler_static_GCJ='-non_shared'
16927 lt_prog_compiler_static_GCJ='-non_shared'
16931 lt_prog_compiler_pic_GCJ='-KPIC'
16932 lt_prog_compiler_static_GCJ='-Bstatic'
16933 case $cc_basename in
16934 f77* | f90* | f95*)
16935 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16937 lt_prog_compiler_wl_GCJ='-Wl,';;
16942 lt_prog_compiler_wl_GCJ='-Qoption ld '
16943 lt_prog_compiler_pic_GCJ='-PIC'
16944 lt_prog_compiler_static_GCJ='-Bstatic'
16947 sysv4 | sysv4.2uw2* | sysv4.3*)
16948 lt_prog_compiler_wl_GCJ='-Wl,'
16949 lt_prog_compiler_pic_GCJ='-KPIC'
16950 lt_prog_compiler_static_GCJ='-Bstatic'
16954 if test -d /usr/nec ;then
16955 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16956 lt_prog_compiler_static_GCJ='-Bstatic'
16960 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16961 lt_prog_compiler_wl_GCJ='-Wl,'
16962 lt_prog_compiler_pic_GCJ='-KPIC'
16963 lt_prog_compiler_static_GCJ='-Bstatic'
16967 lt_prog_compiler_wl_GCJ='-Wl,'
16968 lt_prog_compiler_can_build_shared_GCJ=no
16972 lt_prog_compiler_pic_GCJ='-pic'
16973 lt_prog_compiler_static_GCJ='-Bstatic'
16977 lt_prog_compiler_can_build_shared_GCJ=no
16982 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16983 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16986 # Check to make sure the PIC flag actually works.
16988 if test -n "$lt_prog_compiler_pic_GCJ"; then
16990 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16991 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16992 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
16993 echo $ECHO_N "(cached) $ECHO_C" >&6
16995 lt_cv_prog_compiler_pic_works_GCJ=no
16996 ac_outfile=conftest.$ac_objext
16997 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16998 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16999 # Insert the option either (1) after the last *FLAGS variable, or
17000 # (2) before a word containing "conftest.", or (3) at the end.
17001 # Note that $ac_compile itself does not contain backslashes and begins
17002 # with a dollar sign (not a hyphen), so the echo should work correctly.
17003 # The option is referenced via a variable to avoid confusing sed.
17004 lt_compile=`echo "$ac_compile" | $SED \
17005 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17006 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17007 -e 's:$: $lt_compiler_flag:'`
17008 (eval echo "\"\$as_me:17008: $lt_compile\"" >&5)
17009 (eval "$lt_compile" 2>conftest.err)
17011 cat conftest.err >&5
17012 echo "$as_me:17012: \$? = $ac_status" >&5
17013 if (exit $ac_status) && test -s "$ac_outfile"; then
17014 # The compiler can only warn and ignore the option if not recognized
17015 # So say no if there are warnings other than the usual output.
17016 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17017 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17018 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17019 lt_cv_prog_compiler_pic_works_GCJ=yes
17025 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17026 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17028 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17029 case $lt_prog_compiler_pic_GCJ in
17031 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17034 lt_prog_compiler_pic_GCJ=
17035 lt_prog_compiler_can_build_shared_GCJ=no
17040 # For platforms which do not support PIC, -DPIC is meaningless:
17042 lt_prog_compiler_pic_GCJ=
17045 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17050 # Check to make sure the static flag actually works.
17052 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17053 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17054 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17055 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17056 echo $ECHO_N "(cached) $ECHO_C" >&6
17058 lt_cv_prog_compiler_static_works_GCJ=no
17059 save_LDFLAGS="$LDFLAGS"
17060 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17061 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17062 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17063 # The linker can only warn and ignore the option if not recognized
17064 # So say no if there are warnings
17065 if test -s conftest.err; then
17066 # Append any errors to the config.log.
17067 cat conftest.err 1>&5
17068 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17069 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17070 if diff conftest.exp conftest.er2 >/dev/null; then
17071 lt_cv_prog_compiler_static_works_GCJ=yes
17074 lt_cv_prog_compiler_static_works_GCJ=yes
17078 LDFLAGS="$save_LDFLAGS"
17081 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17082 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17084 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17087 lt_prog_compiler_static_GCJ=
17091 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17092 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17093 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17094 echo $ECHO_N "(cached) $ECHO_C" >&6
17096 lt_cv_prog_compiler_c_o_GCJ=no
17097 $rm -r conftest 2>/dev/null
17101 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17103 lt_compiler_flag="-o out/conftest2.$ac_objext"
17104 # Insert the option either (1) after the last *FLAGS variable, or
17105 # (2) before a word containing "conftest.", or (3) at the end.
17106 # Note that $ac_compile itself does not contain backslashes and begins
17107 # with a dollar sign (not a hyphen), so the echo should work correctly.
17108 lt_compile=`echo "$ac_compile" | $SED \
17109 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17110 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17111 -e 's:$: $lt_compiler_flag:'`
17112 (eval echo "\"\$as_me:17112: $lt_compile\"" >&5)
17113 (eval "$lt_compile" 2>out/conftest.err)
17115 cat out/conftest.err >&5
17116 echo "$as_me:17116: \$? = $ac_status" >&5
17117 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17119 # The compiler can only warn and ignore the option if not recognized
17120 # So say no if there are warnings
17121 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17122 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17123 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17124 lt_cv_prog_compiler_c_o_GCJ=yes
17129 # SGI C++ compiler will create directory out/ii_files/ for
17130 # template instantiation
17131 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17132 $rm out/* && rmdir out
17138 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17139 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17142 hard_links="nottested"
17143 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17144 # do not overwrite the value of need_locks provided by the user
17145 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17146 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17149 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17151 ln conftest.a conftest.b 2>&5 || hard_links=no
17152 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17153 { echo "$as_me:$LINENO: result: $hard_links" >&5
17154 echo "${ECHO_T}$hard_links" >&6; }
17155 if test "$hard_links" = no; then
17156 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17157 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17164 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17165 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17168 allow_undefined_flag_GCJ=
17169 enable_shared_with_static_runtimes_GCJ=no
17171 archive_expsym_cmds_GCJ=
17172 old_archive_From_new_cmds_GCJ=
17173 old_archive_from_expsyms_cmds_GCJ=
17174 export_dynamic_flag_spec_GCJ=
17175 whole_archive_flag_spec_GCJ=
17176 thread_safe_flag_spec_GCJ=
17177 hardcode_libdir_flag_spec_GCJ=
17178 hardcode_libdir_flag_spec_ld_GCJ=
17179 hardcode_libdir_separator_GCJ=
17180 hardcode_direct_GCJ=no
17181 hardcode_minus_L_GCJ=no
17182 hardcode_shlibpath_var_GCJ=unsupported
17183 link_all_deplibs_GCJ=unknown
17184 hardcode_automatic_GCJ=no
17186 module_expsym_cmds_GCJ=
17187 always_export_symbols_GCJ=no
17188 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17189 # include_expsyms should be a list of space-separated symbols to be *always*
17190 # included in the symbol list
17191 include_expsyms_GCJ=
17192 # exclude_expsyms can be an extended regexp of symbols to exclude
17193 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17194 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17195 # as well as any symbol that contains `d'.
17196 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17197 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17198 # platforms (ab)use it in PIC code, but their linkers get confused if
17199 # the symbol is explicitly referenced. Since portable code cannot
17200 # rely on this symbol name, it's probably fine to never include it in
17201 # preloaded symbol tables.
17202 # Exclude shared library initialization/finalization symbols.
17203 extract_expsyms_cmds=
17204 # Just being paranoid about ensuring that cc_basename is set.
17205 for cc_temp in $compiler""; do
17207 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17208 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17213 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17216 cygwin* | mingw* | pw32*)
17217 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17218 # When not using gcc, we currently assume that we are using
17219 # Microsoft Visual C++.
17220 if test "$GCC" != yes; then
17225 # we just hope/assume this is gcc and not c89 (= MSVC++)
17234 if test "$with_gnu_ld" = yes; then
17235 # If archive_cmds runs LD, not CC, wlarc should be empty
17238 # Set some defaults for GNU ld with shared library support. These
17239 # are reset later if shared libraries are not supported. Putting them
17240 # here allows them to be overridden if necessary.
17241 runpath_var=LD_RUN_PATH
17242 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17243 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17244 # ancient GNU ld didn't support --whole-archive et. al.
17245 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17246 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17248 whole_archive_flag_spec_GCJ=
17250 supports_anon_versioning=no
17251 case `$LD -v 2>/dev/null` in
17252 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17253 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17254 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17255 *\ 2.11.*) ;; # other 2.11 versions
17256 *) supports_anon_versioning=yes ;;
17259 # See if GNU ld supports shared libraries.
17262 # On AIX/PPC, the GNU linker is very broken
17263 if test "$host_cpu" != ia64; then
17267 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17268 *** to be unable to reliably create shared libraries on AIX.
17269 *** Therefore, libtool is disabling shared libraries support. If you
17270 *** really care for shared libraries, you may want to modify your PATH
17271 *** so that a non-GNU linker is found, and then restart.
17278 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)'
17279 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17280 hardcode_minus_L_GCJ=yes
17282 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17283 # that the semantics of dynamic libraries on AmigaOS, at least up
17284 # to version 4, is to share data among multiple programs linked
17285 # with the same dynamic library. Since this doesn't match the
17286 # behavior of shared libraries on other platforms, we can't use
17292 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17293 allow_undefined_flag_GCJ=unsupported
17294 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17295 # support --undefined. This deserves some investigation. FIXME
17296 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17302 cygwin* | mingw* | pw32*)
17303 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17304 # as there is no search path for DLLs.
17305 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17306 allow_undefined_flag_GCJ=unsupported
17307 always_export_symbols_GCJ=no
17308 enable_shared_with_static_runtimes_GCJ=yes
17309 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17311 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17312 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17313 # If the export-symbols file already is a .def file (1st line
17314 # is EXPORTS), use it as is; otherwise, prepend...
17315 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17316 cp $export_symbols $output_objdir/$soname.def;
17318 echo EXPORTS > $output_objdir/$soname.def;
17319 cat $export_symbols >> $output_objdir/$soname.def;
17321 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17328 hardcode_direct_GCJ=no
17329 hardcode_shlibpath_var_GCJ=no
17330 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17331 export_dynamic_flag_spec_GCJ='${wl}-E'
17332 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17333 # Instead, shared libraries are loaded at an image base (0x10000000 by
17334 # default) and relocated if they conflict, which is a slow very memory
17335 # consuming and fragmenting process. To avoid this, we pick a random,
17336 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17337 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17338 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'
17339 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'
17342 gnu* | linux* | k*bsd*-gnu)
17343 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17345 case $cc_basename,$host_cpu in
17346 pgcc*) # Portland Group C compiler
17347 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'
17348 tmp_addflag=' $pic_flag'
17350 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17351 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'
17352 tmp_addflag=' $pic_flag -Mnomain' ;;
17353 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17354 tmp_addflag=' -i_dynamic' ;;
17355 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17356 tmp_addflag=' -i_dynamic -nofor_main' ;;
17357 ifc* | ifort*) # Intel Fortran compiler
17358 tmp_addflag=' -nofor_main' ;;
17360 case `$CC -V 2>&1 | sed 5q` in
17361 *Sun\ C*) # Sun C 5.9
17362 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'
17363 tmp_sharedflag='-G' ;;
17364 *Sun\ F*) # Sun Fortran 8.3
17365 tmp_sharedflag='-G' ;;
17367 tmp_sharedflag='-shared' ;;
17369 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17371 if test $supports_anon_versioning = yes; then
17372 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17373 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17374 $echo "local: *; };" >> $output_objdir/$libname.ver~
17375 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17377 link_all_deplibs_GCJ=no
17383 netbsd* | netbsdelf*-gnu)
17384 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17385 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17388 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17389 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17394 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17398 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17399 *** create shared libraries on Solaris systems. Therefore, libtool
17400 *** is disabling shared libraries support. We urge you to upgrade GNU
17401 *** binutils to release 2.9.1 or newer. Another option is to modify
17402 *** your PATH or compiler configuration so that the native linker is
17403 *** used, and then restart.
17406 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17407 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17408 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17414 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17415 case `$LD -v 2>&1` in
17416 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17420 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17421 *** reliably create shared libraries on SCO systems. Therefore, libtool
17422 *** is disabling shared libraries support. We urge you to upgrade GNU
17423 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17424 *** your PATH or compiler configuration so that the native linker is
17425 *** used, and then restart.
17430 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17431 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17432 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17433 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17442 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17444 hardcode_direct_GCJ=yes
17445 hardcode_shlibpath_var_GCJ=no
17449 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17450 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17451 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17458 if test "$ld_shlibs_GCJ" = no; then
17460 hardcode_libdir_flag_spec_GCJ=
17461 export_dynamic_flag_spec_GCJ=
17462 whole_archive_flag_spec_GCJ=
17465 # PORTME fill in a description of your system's linker (not GNU ld)
17468 allow_undefined_flag_GCJ=unsupported
17469 always_export_symbols_GCJ=yes
17470 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'
17471 # Note: this linker hardcodes the directories in LIBPATH if there
17472 # are no directories specified by -L.
17473 hardcode_minus_L_GCJ=yes
17474 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17475 # Neither direct hardcoding nor static linking is supported with a
17477 hardcode_direct_GCJ=unsupported
17482 if test "$host_cpu" = ia64; then
17483 # On IA64, the linker does run time linking by default, so we don't
17484 # have to do anything special.
17485 aix_use_runtimelinking=no
17486 exp_sym_flag='-Bexport'
17489 # If we're using GNU nm, then we don't want the "-C" option.
17490 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17491 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17492 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'
17494 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'
17496 aix_use_runtimelinking=no
17498 # Test if we are trying to use run time linking or normal
17499 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17500 # need to do runtime linking.
17501 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17502 for ld_flag in $LDFLAGS; do
17503 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17504 aix_use_runtimelinking=yes
17511 exp_sym_flag='-bexport'
17512 no_entry_flag='-bnoentry'
17515 # When large executables or shared objects are built, AIX ld can
17516 # have problems creating the table of contents. If linking a library
17517 # or program results in "error TOC overflow" add -mminimal-toc to
17518 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17519 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17521 archive_cmds_GCJ=''
17522 hardcode_direct_GCJ=yes
17523 hardcode_libdir_separator_GCJ=':'
17524 link_all_deplibs_GCJ=yes
17526 if test "$GCC" = yes; then
17527 case $host_os in aix4.[012]|aix4.[012].*)
17528 # We only want to do this on AIX 4.2 and lower, the check
17529 # below for broken collect2 doesn't work under 4.3+
17530 collect2name=`${CC} -print-prog-name=collect2`
17531 if test -f "$collect2name" && \
17532 strings "$collect2name" | grep resolve_lib_name >/dev/null
17534 # We have reworked collect2
17537 # We have old collect2
17538 hardcode_direct_GCJ=unsupported
17539 # It fails to find uninstalled libraries when the uninstalled
17540 # path is not listed in the libpath. Setting hardcode_minus_L
17541 # to unsupported forces relinking
17542 hardcode_minus_L_GCJ=yes
17543 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17544 hardcode_libdir_separator_GCJ=
17548 shared_flag='-shared'
17549 if test "$aix_use_runtimelinking" = yes; then
17550 shared_flag="$shared_flag "'${wl}-G'
17554 if test "$host_cpu" = ia64; then
17555 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17556 # chokes on -Wl,-G. The following line is correct:
17559 if test "$aix_use_runtimelinking" = yes; then
17560 shared_flag='${wl}-G'
17562 shared_flag='${wl}-bM:SRE'
17567 # It seems that -bexpall does not export symbols beginning with
17568 # underscore (_), so it is better to generate a list of symbols to export.
17569 always_export_symbols_GCJ=yes
17570 if test "$aix_use_runtimelinking" = yes; then
17571 # Warning - without using the other runtime loading flags (-brtl),
17572 # -berok will link without error, but may produce a broken library.
17573 allow_undefined_flag_GCJ='-berok'
17574 # Determine the default libpath from the value encoded in an empty executable.
17575 cat >conftest.$ac_ext <<_ACEOF
17578 cat confdefs.h >>conftest.$ac_ext
17579 cat >>conftest.$ac_ext <<_ACEOF
17580 /* end confdefs.h. */
17590 rm -f conftest.$ac_objext conftest$ac_exeext
17591 if { (ac_try="$ac_link"
17592 case "(($ac_try" in
17593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17594 *) ac_try_echo=$ac_try;;
17596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17597 (eval "$ac_link") 2>conftest.er1
17599 grep -v '^ *+' conftest.er1 >conftest.err
17601 cat conftest.err >&5
17602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17603 (exit $ac_status); } && {
17604 test -z "$ac_c_werror_flag" ||
17605 test ! -s conftest.err
17606 } && test -s conftest$ac_exeext &&
17607 $as_test_x conftest$ac_exeext; then
17609 lt_aix_libpath_sed='
17610 /Import File Strings/,/^$/ {
17616 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17617 # Check for a 64-bit object if we didn't find anything.
17618 if test -z "$aix_libpath"; then
17619 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17622 echo "$as_me: failed program was:" >&5
17623 sed 's/^/| /' conftest.$ac_ext >&5
17628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17629 conftest$ac_exeext conftest.$ac_ext
17630 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17632 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17633 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"
17635 if test "$host_cpu" = ia64; then
17636 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17637 allow_undefined_flag_GCJ="-z nodefs"
17638 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"
17640 # Determine the default libpath from the value encoded in an empty executable.
17641 cat >conftest.$ac_ext <<_ACEOF
17644 cat confdefs.h >>conftest.$ac_ext
17645 cat >>conftest.$ac_ext <<_ACEOF
17646 /* end confdefs.h. */
17656 rm -f conftest.$ac_objext conftest$ac_exeext
17657 if { (ac_try="$ac_link"
17658 case "(($ac_try" in
17659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17660 *) ac_try_echo=$ac_try;;
17662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17663 (eval "$ac_link") 2>conftest.er1
17665 grep -v '^ *+' conftest.er1 >conftest.err
17667 cat conftest.err >&5
17668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669 (exit $ac_status); } && {
17670 test -z "$ac_c_werror_flag" ||
17671 test ! -s conftest.err
17672 } && test -s conftest$ac_exeext &&
17673 $as_test_x conftest$ac_exeext; then
17675 lt_aix_libpath_sed='
17676 /Import File Strings/,/^$/ {
17682 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17683 # Check for a 64-bit object if we didn't find anything.
17684 if test -z "$aix_libpath"; then
17685 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17688 echo "$as_me: failed program was:" >&5
17689 sed 's/^/| /' conftest.$ac_ext >&5
17694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17695 conftest$ac_exeext conftest.$ac_ext
17696 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17698 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17699 # Warning - without using the other run time loading flags,
17700 # -berok will link without error, but may produce a broken library.
17701 no_undefined_flag_GCJ=' ${wl}-bernotok'
17702 allow_undefined_flag_GCJ=' ${wl}-berok'
17703 # Exported symbols can be pulled into shared objects from archives
17704 whole_archive_flag_spec_GCJ='$convenience'
17705 archive_cmds_need_lc_GCJ=yes
17706 # This is similar to how AIX traditionally builds its shared libraries.
17707 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'
17713 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)'
17714 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17715 hardcode_minus_L_GCJ=yes
17716 # see comment about different semantics on the GNU ld section
17721 export_dynamic_flag_spec_GCJ=-rdynamic
17724 cygwin* | mingw* | pw32*)
17725 # When not using gcc, we currently assume that we are using
17726 # Microsoft Visual C++.
17727 # hardcode_libdir_flag_spec is actually meaningless, as there is
17728 # no search path for DLLs.
17729 hardcode_libdir_flag_spec_GCJ=' '
17730 allow_undefined_flag_GCJ=unsupported
17731 # Tell ltmain to make .lib files, not .a files.
17733 # Tell ltmain to make .dll files, not .so files.
17735 # FIXME: Setting linknames here is a bad hack.
17736 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17737 # The linker will automatically build a .lib file if we build a DLL.
17738 old_archive_From_new_cmds_GCJ='true'
17739 # FIXME: Should let the user specify the lib program.
17740 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17741 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17742 enable_shared_with_static_runtimes_GCJ=yes
17745 darwin* | rhapsody*)
17747 rhapsody* | darwin1.[012])
17748 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17751 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17752 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17754 case ${MACOSX_DEPLOYMENT_TARGET} in
17756 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17759 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17765 archive_cmds_need_lc_GCJ=no
17766 hardcode_direct_GCJ=no
17767 hardcode_automatic_GCJ=yes
17768 hardcode_shlibpath_var_GCJ=unsupported
17769 whole_archive_flag_spec_GCJ=''
17770 link_all_deplibs_GCJ=yes
17771 if test "$GCC" = yes ; then
17772 output_verbose_link_cmd='echo'
17773 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}"
17774 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17775 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}"
17776 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}"
17778 case $cc_basename in
17780 output_verbose_link_cmd='echo'
17781 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17782 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17783 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17784 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}'
17785 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}'
17795 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17796 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17797 hardcode_shlibpath_var_GCJ=no
17804 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17805 # support. Future versions do this automatically, but an explicit c++rt0.o
17806 # does not break anything, and helps significantly (at the cost of a little
17809 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17810 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17811 hardcode_direct_GCJ=yes
17812 hardcode_shlibpath_var_GCJ=no
17815 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17817 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17818 hardcode_direct_GCJ=yes
17819 hardcode_minus_L_GCJ=yes
17820 hardcode_shlibpath_var_GCJ=no
17823 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17824 freebsd* | dragonfly*)
17825 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17826 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17827 hardcode_direct_GCJ=yes
17828 hardcode_shlibpath_var_GCJ=no
17832 if test "$GCC" = yes; then
17833 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'
17835 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'
17837 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17838 hardcode_libdir_separator_GCJ=:
17839 hardcode_direct_GCJ=yes
17841 # hardcode_minus_L: Not really in the search PATH,
17842 # but as the default location of the library.
17843 hardcode_minus_L_GCJ=yes
17844 export_dynamic_flag_spec_GCJ='${wl}-E'
17848 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17849 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17851 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17853 if test "$with_gnu_ld" = no; then
17854 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17855 hardcode_libdir_separator_GCJ=:
17857 hardcode_direct_GCJ=yes
17858 export_dynamic_flag_spec_GCJ='${wl}-E'
17860 # hardcode_minus_L: Not really in the search PATH,
17861 # but as the default location of the library.
17862 hardcode_minus_L_GCJ=yes
17867 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17870 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17873 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17876 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17882 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17885 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17888 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17892 if test "$with_gnu_ld" = no; then
17893 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17894 hardcode_libdir_separator_GCJ=:
17898 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17899 hardcode_direct_GCJ=no
17900 hardcode_shlibpath_var_GCJ=no
17903 hardcode_direct_GCJ=yes
17904 export_dynamic_flag_spec_GCJ='${wl}-E'
17906 # hardcode_minus_L: Not really in the search PATH,
17907 # but as the default location of the library.
17908 hardcode_minus_L_GCJ=yes
17914 irix5* | irix6* | nonstopux*)
17915 if test "$GCC" = yes; then
17916 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'
17918 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'
17919 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17921 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17922 hardcode_libdir_separator_GCJ=:
17923 link_all_deplibs_GCJ=yes
17926 netbsd* | netbsdelf*-gnu)
17927 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17928 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17930 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17932 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17933 hardcode_direct_GCJ=yes
17934 hardcode_shlibpath_var_GCJ=no
17938 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17939 hardcode_direct_GCJ=yes
17940 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17941 hardcode_libdir_separator_GCJ=:
17942 hardcode_shlibpath_var_GCJ=no
17946 if test -f /usr/libexec/ld.so; then
17947 hardcode_direct_GCJ=yes
17948 hardcode_shlibpath_var_GCJ=no
17949 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17950 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17951 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17952 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17953 export_dynamic_flag_spec_GCJ='${wl}-E'
17956 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17957 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17958 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17961 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17962 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17972 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17973 hardcode_minus_L_GCJ=yes
17974 allow_undefined_flag_GCJ=unsupported
17975 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'
17976 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17980 if test "$GCC" = yes; then
17981 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17982 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'
17984 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17985 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'
17987 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17988 hardcode_libdir_separator_GCJ=:
17991 osf4* | osf5*) # as osf3* with the addition of -msym flag
17992 if test "$GCC" = yes; then
17993 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17994 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'
17995 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17997 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17998 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'
17999 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~
18000 $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'
18002 # Both c and cxx compiler support -rpath directly
18003 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18005 hardcode_libdir_separator_GCJ=:
18009 no_undefined_flag_GCJ=' -z text'
18010 if test "$GCC" = yes; then
18012 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18013 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18014 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18017 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18018 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18019 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18021 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18022 hardcode_shlibpath_var_GCJ=no
18024 solaris2.[0-5] | solaris2.[0-5].*) ;;
18026 # The compiler driver will combine and reorder linker options,
18027 # but understands `-z linker_flag'. GCC discards it without `$wl',
18028 # but is careful enough not to reorder.
18029 # Supported since Solaris 2.6 (maybe 2.5.1?)
18030 if test "$GCC" = yes; then
18031 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18033 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18037 link_all_deplibs_GCJ=yes
18041 if test "x$host_vendor" = xsequent; then
18042 # Use $CC to link under sequent, because it throws in some extra .o
18043 # files that make .init and .fini sections work.
18044 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18046 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18048 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18049 hardcode_direct_GCJ=yes
18050 hardcode_minus_L_GCJ=yes
18051 hardcode_shlibpath_var_GCJ=no
18055 case $host_vendor in
18057 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18058 hardcode_direct_GCJ=yes # is this really true???
18061 ## LD is ld it makes a PLAMLIB
18062 ## CC just makes a GrossModule.
18063 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18064 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18065 hardcode_direct_GCJ=no
18068 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18069 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18072 runpath_var='LD_RUN_PATH'
18073 hardcode_shlibpath_var_GCJ=no
18077 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18078 hardcode_shlibpath_var_GCJ=no
18079 export_dynamic_flag_spec_GCJ='-Bexport'
18083 if test -d /usr/nec; then
18084 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18085 hardcode_shlibpath_var_GCJ=no
18086 runpath_var=LD_RUN_PATH
18087 hardcode_runpath_var=yes
18092 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18093 no_undefined_flag_GCJ='${wl}-z,text'
18094 archive_cmds_need_lc_GCJ=no
18095 hardcode_shlibpath_var_GCJ=no
18096 runpath_var='LD_RUN_PATH'
18098 if test "$GCC" = yes; then
18099 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18100 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18102 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18103 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18107 sysv5* | sco3.2v5* | sco5v6*)
18108 # Note: We can NOT use -z defs as we might desire, because we do not
18109 # link with -lc, and that would cause any symbols used from libc to
18110 # always be unresolved, which means just about no library would
18111 # ever link correctly. If we're not using GNU ld we use -z text
18112 # though, which does catch some bad symbols but isn't as heavy-handed
18114 no_undefined_flag_GCJ='${wl}-z,text'
18115 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18116 archive_cmds_need_lc_GCJ=no
18117 hardcode_shlibpath_var_GCJ=no
18118 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18119 hardcode_libdir_separator_GCJ=':'
18120 link_all_deplibs_GCJ=yes
18121 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18122 runpath_var='LD_RUN_PATH'
18124 if test "$GCC" = yes; then
18125 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18126 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18128 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18129 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18134 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18135 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18136 hardcode_shlibpath_var_GCJ=no
18145 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18146 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18147 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18150 # Do we need to explicitly link libc?
18152 case "x$archive_cmds_need_lc_GCJ" in
18154 # Assume -lc should be added
18155 archive_cmds_need_lc_GCJ=yes
18157 if test "$enable_shared" = yes && test "$GCC" = yes; then
18158 case $archive_cmds_GCJ in
18160 # FIXME: we may have to deal with multi-command sequences.
18163 # Test whether the compiler implicitly links with -lc since on some
18164 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18165 # to ld, don't add -lc before -lgcc.
18166 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18167 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18169 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18172 (eval $ac_compile) 2>&5
18174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175 (exit $ac_status); } 2>conftest.err; then
18178 libobjs=conftest.$ac_objext
18180 wl=$lt_prog_compiler_wl_GCJ
18181 pic_flag=$lt_prog_compiler_pic_GCJ
18187 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18188 allow_undefined_flag_GCJ=
18189 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18190 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18193 (exit $ac_status); }
18195 archive_cmds_need_lc_GCJ=no
18197 archive_cmds_need_lc_GCJ=yes
18199 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18201 cat conftest.err 1>&5
18204 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18205 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18212 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18213 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18214 library_names_spec=
18215 libname_spec='lib$name'
18219 postuninstall_cmds=
18223 shlibpath_overrides_runpath=unknown
18225 dynamic_linker="$host_os ld.so"
18226 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18228 need_lib_prefix=unknown
18229 hardcode_into_libs=no
18231 # when you set need_version to no, make sure it does not cause -set_version
18232 # flags to be left without arguments
18233 need_version=unknown
18238 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18239 shlibpath_var=LIBPATH
18241 # AIX 3 has no versioning support, so we append a major version to the name.
18242 soname_spec='${libname}${release}${shared_ext}$major'
18249 hardcode_into_libs=yes
18250 if test "$host_cpu" = ia64; then
18251 # AIX 5 supports IA64
18252 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18253 shlibpath_var=LD_LIBRARY_PATH
18255 # With GCC up to 2.95.x, collect2 would create an import file
18256 # for dependence libraries. The import file would start with
18257 # the line `#! .'. This would cause the generated library to
18258 # depend on `.', always an invalid library. This was fixed in
18259 # development snapshots of GCC prior to 3.0.
18261 aix4 | aix4.[01] | aix4.[01].*)
18262 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18264 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18267 can_build_shared=no
18271 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18272 # soname into executable. Probably we can add versioning support to
18273 # collect2, so additional links can be useful in future.
18274 if test "$aix_use_runtimelinking" = yes; then
18275 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18276 # instead of lib<name>.a to let people know that these are not
18277 # typical AIX shared libraries.
18278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18280 # We preserve .a as extension for shared libraries through AIX4.2
18281 # and later when we are not doing run time linking.
18282 library_names_spec='${libname}${release}.a $libname.a'
18283 soname_spec='${libname}${release}${shared_ext}$major'
18285 shlibpath_var=LIBPATH
18290 library_names_spec='$libname.ixlibrary $libname.a'
18291 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18292 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'
18296 library_names_spec='${libname}${shared_ext}'
18297 dynamic_linker="$host_os ld.so"
18298 shlibpath_var=LIBRARY_PATH
18304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18305 soname_spec='${libname}${release}${shared_ext}$major'
18306 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18307 shlibpath_var=LD_LIBRARY_PATH
18308 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18309 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18310 # the default ld.so.conf also contains /usr/contrib/lib and
18311 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18312 # libtool to hard-code these into programs
18315 cygwin* | mingw* | pw32*)
18316 version_type=windows
18321 case $GCC,$host_os in
18322 yes,cygwin* | yes,mingw* | yes,pw32*)
18323 library_names_spec='$libname.dll.a'
18324 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18325 postinstall_cmds='base_file=`basename \${file}`~
18326 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18327 dldir=$destdir/`dirname \$dlpath`~
18328 test -d \$dldir || mkdir -p \$dldir~
18329 $install_prog $dir/$dlname \$dldir/$dlname~
18330 chmod a+x \$dldir/$dlname'
18331 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18332 dlpath=$dir/\$dldll~
18334 shlibpath_overrides_runpath=yes
18338 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18339 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18340 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18343 # MinGW DLLs use traditional 'lib' prefix
18344 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18345 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18346 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18347 # It is most probably a Windows format PATH printed by
18348 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18349 # path with ; separators, and with drive letters. We can handle the
18350 # drive letters (cygwin fileutils understands them), so leave them,
18351 # especially as we might pass files found there to a mingw objdump,
18352 # which wouldn't understand a cygwinified path. Ahh.
18353 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18355 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18359 # pw32 DLLs use 'pw' prefix rather than 'lib'
18360 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18366 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18369 dynamic_linker='Win32 ld.exe'
18370 # FIXME: first we should search . and the directory the executable is in
18374 darwin* | rhapsody*)
18375 dynamic_linker="$host_os dyld"
18376 version_type=darwin
18379 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18380 soname_spec='${libname}${release}${major}$shared_ext'
18381 shlibpath_overrides_runpath=yes
18382 shlibpath_var=DYLD_LIBRARY_PATH
18383 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18385 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18393 soname_spec='${libname}${release}${shared_ext}$major'
18394 shlibpath_var=LD_LIBRARY_PATH
18401 freebsd* | dragonfly*)
18402 # DragonFly does not have aout. When/if they implement a new
18403 # versioning mechanism, adjust this.
18404 if test -x /usr/bin/objformat; then
18405 objformat=`/usr/bin/objformat`
18408 freebsd[123]*) objformat=aout ;;
18409 *) objformat=elf ;;
18412 version_type=freebsd-$objformat
18413 case $version_type in
18415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18420 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18424 shlibpath_var=LD_LIBRARY_PATH
18427 shlibpath_overrides_runpath=yes
18429 freebsd3.[01]* | freebsdelf3.[01]*)
18430 shlibpath_overrides_runpath=yes
18431 hardcode_into_libs=yes
18433 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18434 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18435 shlibpath_overrides_runpath=no
18436 hardcode_into_libs=yes
18438 *) # from 4.6 on, and DragonFly
18439 shlibpath_overrides_runpath=yes
18440 hardcode_into_libs=yes
18449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18450 soname_spec='${libname}${release}${shared_ext}$major'
18451 shlibpath_var=LD_LIBRARY_PATH
18452 hardcode_into_libs=yes
18455 hpux9* | hpux10* | hpux11*)
18456 # Give a soname corresponding to the major version so that dld.sl refuses to
18457 # link against other versions.
18464 hardcode_into_libs=yes
18465 dynamic_linker="$host_os dld.so"
18466 shlibpath_var=LD_LIBRARY_PATH
18467 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18469 soname_spec='${libname}${release}${shared_ext}$major'
18470 if test "X$HPUX_IA64_MODE" = X32; then
18471 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18473 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18475 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18479 hardcode_into_libs=yes
18480 dynamic_linker="$host_os dld.sl"
18481 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18482 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18484 soname_spec='${libname}${release}${shared_ext}$major'
18485 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18486 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18490 dynamic_linker="$host_os dld.sl"
18491 shlibpath_var=SHLIB_PATH
18492 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18494 soname_spec='${libname}${release}${shared_ext}$major'
18497 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18498 postinstall_cmds='chmod 555 $lib'
18505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18506 soname_spec='${libname}${release}${shared_ext}$major'
18507 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18508 shlibpath_var=LD_LIBRARY_PATH
18509 shlibpath_overrides_runpath=no
18510 hardcode_into_libs=yes
18513 irix5* | irix6* | nonstopux*)
18515 nonstopux*) version_type=nonstopux ;;
18517 if test "$lt_cv_prog_gnu_ld" = yes; then
18525 soname_spec='${libname}${release}${shared_ext}$major'
18526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18528 irix5* | nonstopux*)
18529 libsuff= shlibsuff=
18532 case $LD in # libtool.m4 will add one of these switches to LD
18533 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18534 libsuff= shlibsuff= libmagic=32-bit;;
18535 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18536 libsuff=32 shlibsuff=N32 libmagic=N32;;
18537 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18538 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18539 *) libsuff= shlibsuff= libmagic=never-match;;
18543 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18544 shlibpath_overrides_runpath=no
18545 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18546 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18547 hardcode_into_libs=yes
18550 # No shared lib support for Linux oldld, aout, or coff.
18551 linux*oldld* | linux*aout* | linux*coff*)
18555 # This must be Linux ELF.
18556 linux* | k*bsd*-gnu)
18560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18561 soname_spec='${libname}${release}${shared_ext}$major'
18562 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18563 shlibpath_var=LD_LIBRARY_PATH
18564 shlibpath_overrides_runpath=no
18565 # This implies no fast_install, which is unacceptable.
18566 # Some rework will be needed to allow for fast_install
18567 # before this can be enabled.
18568 hardcode_into_libs=yes
18570 # Append ld.so.conf contents to the search path
18571 if test -f /etc/ld.so.conf; then
18572 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' ' '`
18573 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18576 # We used to test for /lib/ld.so.1 and disable shared libraries on
18577 # powerpc, because MkLinux only supported shared libraries with the
18578 # GNU dynamic linker. Since this was broken with cross compilers,
18579 # most powerpc-linux boxes support dynamic linking these days and
18580 # people can always --disable-shared, the test was removed, and we
18581 # assume the GNU/Linux dynamic linker is in use.
18582 dynamic_linker='GNU/Linux ld.so'
18589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18590 soname_spec='${libname}${release}${shared_ext}$major'
18591 shlibpath_var=LD_LIBRARY_PATH
18592 shlibpath_overrides_runpath=no
18593 hardcode_into_libs=yes
18594 dynamic_linker='NetBSD ld.elf_so'
18601 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18603 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18604 dynamic_linker='NetBSD (a.out) ld.so'
18606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18607 soname_spec='${libname}${release}${shared_ext}$major'
18608 dynamic_linker='NetBSD ld.elf_so'
18610 shlibpath_var=LD_LIBRARY_PATH
18611 shlibpath_overrides_runpath=yes
18612 hardcode_into_libs=yes
18617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18618 shlibpath_var=LD_LIBRARY_PATH
18619 shlibpath_overrides_runpath=yes
18626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18627 soname_spec='${libname}${release}${shared_ext}$major'
18628 shlibpath_var=LD_LIBRARY_PATH
18629 shlibpath_overrides_runpath=yes
18634 sys_lib_dlsearch_path_spec="/usr/lib"
18636 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18638 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18639 *) need_version=no ;;
18641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18642 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18643 shlibpath_var=LD_LIBRARY_PATH
18644 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18646 openbsd2.[89] | openbsd2.[89].*)
18647 shlibpath_overrides_runpath=no
18650 shlibpath_overrides_runpath=yes
18654 shlibpath_overrides_runpath=yes
18659 libname_spec='$name'
18662 library_names_spec='$libname${shared_ext} $libname.a'
18663 dynamic_linker='OS/2 ld.exe'
18664 shlibpath_var=LIBPATH
18667 osf3* | osf4* | osf5*)
18671 soname_spec='${libname}${release}${shared_ext}$major'
18672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18673 shlibpath_var=LD_LIBRARY_PATH
18674 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18675 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18687 soname_spec='${libname}${release}${shared_ext}$major'
18688 shlibpath_var=LD_LIBRARY_PATH
18689 shlibpath_overrides_runpath=yes
18690 hardcode_into_libs=yes
18691 # ldd complains unless libraries are executable
18692 postinstall_cmds='chmod +x $lib'
18697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18698 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18699 shlibpath_var=LD_LIBRARY_PATH
18700 shlibpath_overrides_runpath=yes
18701 if test "$with_gnu_ld" = yes; then
18709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18710 soname_spec='${libname}${release}${shared_ext}$major'
18711 shlibpath_var=LD_LIBRARY_PATH
18712 case $host_vendor in
18714 shlibpath_overrides_runpath=no
18716 export_dynamic_flag_spec='${wl}-Blargedynsym'
18717 runpath_var=LD_RUN_PATH
18725 shlibpath_overrides_runpath=no
18726 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18732 if test -d /usr/nec ;then
18734 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18735 soname_spec='$libname${shared_ext}.$major'
18736 shlibpath_var=LD_LIBRARY_PATH
18740 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18741 version_type=freebsd-elf
18744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18745 soname_spec='${libname}${release}${shared_ext}$major'
18746 shlibpath_var=LD_LIBRARY_PATH
18747 hardcode_into_libs=yes
18748 if test "$with_gnu_ld" = yes; then
18749 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18750 shlibpath_overrides_runpath=no
18752 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18753 shlibpath_overrides_runpath=yes
18756 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18760 sys_lib_dlsearch_path_spec='/usr/lib'
18765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18766 soname_spec='${libname}${release}${shared_ext}$major'
18767 shlibpath_var=LD_LIBRARY_PATH
18774 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18775 echo "${ECHO_T}$dynamic_linker" >&6; }
18776 test "$dynamic_linker" = no && can_build_shared=no
18778 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18779 echo $ECHO_N "(cached) $ECHO_C" >&6
18781 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18784 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18785 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18786 echo $ECHO_N "(cached) $ECHO_C" >&6
18788 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18791 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18793 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18794 if test "$GCC" = yes; then
18795 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18798 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18799 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18800 hardcode_action_GCJ=
18801 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18802 test -n "$runpath_var_GCJ" || \
18803 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18805 # We can hardcode non-existant directories.
18806 if test "$hardcode_direct_GCJ" != no &&
18807 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18808 # have to relink, otherwise we might link with an installed library
18809 # when we should be linking with a yet-to-be-installed one
18810 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18811 test "$hardcode_minus_L_GCJ" != no; then
18812 # Linking always hardcodes the temporary library directory.
18813 hardcode_action_GCJ=relink
18815 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18816 hardcode_action_GCJ=immediate
18819 # We cannot hardcode anything, or else we can only hardcode existing
18821 hardcode_action_GCJ=unsupported
18823 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18824 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18826 if test "$hardcode_action_GCJ" = relink; then
18827 # Fast installation is not supported
18828 enable_fast_install=no
18829 elif test "$shlibpath_overrides_runpath" = yes ||
18830 test "$enable_shared" = no; then
18831 # Fast installation is not necessary
18832 enable_fast_install=needless
18836 # The else clause should only fire when bootstrapping the
18837 # libtool distribution, otherwise you forgot to ship ltmain.sh
18838 # with your package, and you will get complaints that there are
18839 # no rules to generate ltmain.sh.
18840 if test -f "$ltmain"; then
18841 # See if we are running on zsh, and set the options which allow our commands through
18842 # without removal of \ escapes.
18843 if test -n "${ZSH_VERSION+set}" ; then
18844 setopt NO_GLOB_SUBST
18846 # Now quote all the things that may contain metacharacters while being
18847 # careful not to overquote the AC_SUBSTed values. We take copies of the
18848 # variables and quote the copies for generation of the libtool script.
18849 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18851 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18852 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18853 deplibs_check_method reload_flag reload_cmds need_locks \
18854 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18855 lt_cv_sys_global_symbol_to_c_name_address \
18856 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18857 old_postinstall_cmds old_postuninstall_cmds \
18861 lt_prog_compiler_wl_GCJ \
18862 lt_prog_compiler_pic_GCJ \
18863 lt_prog_compiler_static_GCJ \
18864 lt_prog_compiler_no_builtin_flag_GCJ \
18865 export_dynamic_flag_spec_GCJ \
18866 thread_safe_flag_spec_GCJ \
18867 whole_archive_flag_spec_GCJ \
18868 enable_shared_with_static_runtimes_GCJ \
18869 old_archive_cmds_GCJ \
18870 old_archive_from_new_cmds_GCJ \
18871 predep_objects_GCJ \
18872 postdep_objects_GCJ \
18875 compiler_lib_search_path_GCJ \
18876 compiler_lib_search_dirs_GCJ \
18878 archive_expsym_cmds_GCJ \
18879 postinstall_cmds_GCJ \
18880 postuninstall_cmds_GCJ \
18881 old_archive_from_expsyms_cmds_GCJ \
18882 allow_undefined_flag_GCJ \
18883 no_undefined_flag_GCJ \
18884 export_symbols_cmds_GCJ \
18885 hardcode_libdir_flag_spec_GCJ \
18886 hardcode_libdir_flag_spec_ld_GCJ \
18887 hardcode_libdir_separator_GCJ \
18888 hardcode_automatic_GCJ \
18890 module_expsym_cmds_GCJ \
18891 lt_cv_prog_compiler_c_o_GCJ \
18892 fix_srcfile_path_GCJ \
18893 exclude_expsyms_GCJ \
18894 include_expsyms_GCJ; do
18897 old_archive_cmds_GCJ | \
18898 old_archive_from_new_cmds_GCJ | \
18899 archive_cmds_GCJ | \
18900 archive_expsym_cmds_GCJ | \
18901 module_cmds_GCJ | \
18902 module_expsym_cmds_GCJ | \
18903 old_archive_from_expsyms_cmds_GCJ | \
18904 export_symbols_cmds_GCJ | \
18905 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18906 postinstall_cmds | postuninstall_cmds | \
18907 old_postinstall_cmds | old_postuninstall_cmds | \
18908 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18909 # Double-quote double-evaled strings.
18910 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18913 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18919 *'\$0 --fallback-echo"')
18920 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18926 cat <<__EOF__ >> "$cfgfile"
18927 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18929 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18931 # Shell to use when invoking shell scripts.
18934 # Whether or not to build shared libraries.
18935 build_libtool_libs=$enable_shared
18937 # Whether or not to build static libraries.
18938 build_old_libs=$enable_static
18940 # Whether or not to add -lc for building shared libraries.
18941 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18943 # Whether or not to disallow shared libs when runtime libs are static
18944 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18946 # Whether or not to optimize for fast installation.
18947 fast_install=$enable_fast_install
18950 host_alias=$host_alias
18954 # The build system.
18955 build_alias=$build_alias
18959 # An echo program that does not interpret backslashes.
18964 AR_FLAGS=$lt_AR_FLAGS
18969 # LTCC compiler flags.
18970 LTCFLAGS=$lt_LTCFLAGS
18972 # A language-specific compiler.
18973 CC=$lt_compiler_GCJ
18975 # Is the compiler the GNU C compiler?
18981 # The linker used to build libraries.
18984 # Whether we need hard or soft links.
18987 # A BSD-compatible nm program.
18990 # A symbol stripping program
18993 # Used to examine libraries when file_magic_cmd begins "file"
18994 MAGIC_CMD=$MAGIC_CMD
18996 # Used on cygwin: DLL creation program.
18999 # Used on cygwin: object dumper.
19002 # Used on cygwin: assembler.
19005 # The name of the directory that contains temporary libtool files.
19008 # How to create reloadable object files.
19009 reload_flag=$lt_reload_flag
19010 reload_cmds=$lt_reload_cmds
19012 # How to pass a linker flag through the compiler.
19013 wl=$lt_lt_prog_compiler_wl_GCJ
19015 # Object file suffix (normally "o").
19016 objext="$ac_objext"
19018 # Old archive suffix (normally "a").
19021 # Shared library suffix (normally ".so").
19022 shrext_cmds='$shrext_cmds'
19024 # Executable file suffix (normally "").
19027 # Additional compiler flags for building library objects.
19028 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19031 # What is the maximum length of a command?
19032 max_cmd_len=$lt_cv_sys_max_cmd_len
19034 # Does compiler simultaneously support -c and -o options?
19035 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19037 # Must we lock files when doing compilation?
19038 need_locks=$lt_need_locks
19040 # Do we need the lib prefix for modules?
19041 need_lib_prefix=$need_lib_prefix
19043 # Do we need a version for libraries?
19044 need_version=$need_version
19046 # Whether dlopen is supported.
19047 dlopen_support=$enable_dlopen
19049 # Whether dlopen of programs is supported.
19050 dlopen_self=$enable_dlopen_self
19052 # Whether dlopen of statically linked programs is supported.
19053 dlopen_self_static=$enable_dlopen_self_static
19055 # Compiler flag to prevent dynamic linking.
19056 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19058 # Compiler flag to turn off builtin functions.
19059 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19061 # Compiler flag to allow reflexive dlopens.
19062 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19064 # Compiler flag to generate shared objects directly from archives.
19065 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19067 # Compiler flag to generate thread-safe objects.
19068 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19070 # Library versioning type.
19071 version_type=$version_type
19073 # Format of library name prefix.
19074 libname_spec=$lt_libname_spec
19076 # List of archive names. First name is the real one, the rest are links.
19077 # The last name is the one that the linker finds with -lNAME.
19078 library_names_spec=$lt_library_names_spec
19080 # The coded name of the library, if different from the real name.
19081 soname_spec=$lt_soname_spec
19083 # Commands used to build and install an old-style archive.
19085 old_archive_cmds=$lt_old_archive_cmds_GCJ
19086 old_postinstall_cmds=$lt_old_postinstall_cmds
19087 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19089 # Create an old-style archive from a shared archive.
19090 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19092 # Create a temporary old-style archive to link instead of a shared archive.
19093 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19095 # Commands used to build and install a shared archive.
19096 archive_cmds=$lt_archive_cmds_GCJ
19097 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19098 postinstall_cmds=$lt_postinstall_cmds
19099 postuninstall_cmds=$lt_postuninstall_cmds
19101 # Commands used to build a loadable module (assumed same as above if empty)
19102 module_cmds=$lt_module_cmds_GCJ
19103 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19105 # Commands to strip libraries.
19106 old_striplib=$lt_old_striplib
19107 striplib=$lt_striplib
19109 # Dependencies to place before the objects being linked to create a
19111 predep_objects=$lt_predep_objects_GCJ
19113 # Dependencies to place after the objects being linked to create a
19115 postdep_objects=$lt_postdep_objects_GCJ
19117 # Dependencies to place before the objects being linked to create a
19119 predeps=$lt_predeps_GCJ
19121 # Dependencies to place after the objects being linked to create a
19123 postdeps=$lt_postdeps_GCJ
19125 # The directories searched by this compiler when creating a shared
19127 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19129 # The library search path used internally by the compiler when linking
19130 # a shared library.
19131 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19133 # Method to check whether dependent libraries are shared objects.
19134 deplibs_check_method=$lt_deplibs_check_method
19136 # Command to use when deplibs_check_method == file_magic.
19137 file_magic_cmd=$lt_file_magic_cmd
19139 # Flag that allows shared libraries with undefined symbols to be built.
19140 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19142 # Flag that forces no undefined symbols.
19143 no_undefined_flag=$lt_no_undefined_flag_GCJ
19145 # Commands used to finish a libtool library installation in a directory.
19146 finish_cmds=$lt_finish_cmds
19148 # Same as above, but a single script fragment to be evaled but not shown.
19149 finish_eval=$lt_finish_eval
19151 # Take the output of nm and produce a listing of raw symbols and C names.
19152 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19154 # Transform the output of nm in a proper C declaration
19155 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19157 # Transform the output of nm in a C name address pair
19158 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19160 # This is the shared library runtime path variable.
19161 runpath_var=$runpath_var
19163 # This is the shared library path variable.
19164 shlibpath_var=$shlibpath_var
19166 # Is shlibpath searched before the hard-coded library search path?
19167 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19169 # How to hardcode a shared library path into an executable.
19170 hardcode_action=$hardcode_action_GCJ
19172 # Whether we should hardcode library paths into libraries.
19173 hardcode_into_libs=$hardcode_into_libs
19175 # Flag to hardcode \$libdir into a binary during linking.
19176 # This must work even if \$libdir does not exist.
19177 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19179 # If ld is used when linking, flag to hardcode \$libdir into
19180 # a binary during linking. This must work even if \$libdir does
19182 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19184 # Whether we need a single -rpath flag with a separated argument.
19185 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19187 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19188 # resulting binary.
19189 hardcode_direct=$hardcode_direct_GCJ
19191 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19192 # resulting binary.
19193 hardcode_minus_L=$hardcode_minus_L_GCJ
19195 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19196 # the resulting binary.
19197 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19199 # Set to yes if building a shared library automatically hardcodes DIR into the library
19200 # and all subsequent libraries and executables linked against it.
19201 hardcode_automatic=$hardcode_automatic_GCJ
19203 # Variables whose values should be saved in libtool wrapper scripts and
19204 # restored at relink time.
19205 variables_saved_for_relink="$variables_saved_for_relink"
19207 # Whether libtool must link a program against all its dependency libraries.
19208 link_all_deplibs=$link_all_deplibs_GCJ
19210 # Compile-time system search path for libraries
19211 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19213 # Run-time system search path for libraries
19214 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19216 # Fix the shell variable \$srcfile for the compiler.
19217 fix_srcfile_path=$lt_fix_srcfile_path
19219 # Set to yes if exported symbols are required.
19220 always_export_symbols=$always_export_symbols_GCJ
19222 # The commands to list exported symbols.
19223 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19225 # The commands to extract the exported symbol list from a shared archive.
19226 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19228 # Symbols that should not be listed in the preloaded symbols.
19229 exclude_expsyms=$lt_exclude_expsyms_GCJ
19231 # Symbols that must always be exported.
19232 include_expsyms=$lt_include_expsyms_GCJ
19234 # ### END LIBTOOL TAG CONFIG: $tagname
19240 # If there is no Makefile yet, we rely on a make rule to execute
19241 # `config.status --recheck' to rerun these tests and create the
19242 # libtool script then.
19243 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19244 if test -f "$ltmain_in"; then
19245 test -f Makefile && make "$ltmain"
19251 ac_cpp='$CPP $CPPFLAGS'
19252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19266 # Source file extension for RC test sources.
19269 # Object file extension for compiled RC test sources.
19273 # Code to be used in simple compile tests
19274 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19276 # Code to be used in simple link tests
19277 lt_simple_link_test_code="$lt_simple_compile_test_code"
19279 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19281 # If no C compiler was specified, use CC.
19284 # If no C compiler flags were specified, use CFLAGS.
19285 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19287 # Allow CC to be a program name with arguments.
19291 # save warnings/boilerplate of simple test code
19292 ac_outfile=conftest.$ac_objext
19293 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19294 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19295 _lt_compiler_boilerplate=`cat conftest.err`
19298 ac_outfile=conftest.$ac_objext
19299 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19300 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19301 _lt_linker_boilerplate=`cat conftest.err`
19305 # Allow CC to be a program name with arguments.
19310 for cc_temp in $compiler""; do
19312 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19313 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19318 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19320 lt_cv_prog_compiler_c_o_RC=yes
19322 # The else clause should only fire when bootstrapping the
19323 # libtool distribution, otherwise you forgot to ship ltmain.sh
19324 # with your package, and you will get complaints that there are
19325 # no rules to generate ltmain.sh.
19326 if test -f "$ltmain"; then
19327 # See if we are running on zsh, and set the options which allow our commands through
19328 # without removal of \ escapes.
19329 if test -n "${ZSH_VERSION+set}" ; then
19330 setopt NO_GLOB_SUBST
19332 # Now quote all the things that may contain metacharacters while being
19333 # careful not to overquote the AC_SUBSTed values. We take copies of the
19334 # variables and quote the copies for generation of the libtool script.
19335 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19337 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19338 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19339 deplibs_check_method reload_flag reload_cmds need_locks \
19340 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19341 lt_cv_sys_global_symbol_to_c_name_address \
19342 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19343 old_postinstall_cmds old_postuninstall_cmds \
19347 lt_prog_compiler_wl_RC \
19348 lt_prog_compiler_pic_RC \
19349 lt_prog_compiler_static_RC \
19350 lt_prog_compiler_no_builtin_flag_RC \
19351 export_dynamic_flag_spec_RC \
19352 thread_safe_flag_spec_RC \
19353 whole_archive_flag_spec_RC \
19354 enable_shared_with_static_runtimes_RC \
19355 old_archive_cmds_RC \
19356 old_archive_from_new_cmds_RC \
19357 predep_objects_RC \
19358 postdep_objects_RC \
19361 compiler_lib_search_path_RC \
19362 compiler_lib_search_dirs_RC \
19364 archive_expsym_cmds_RC \
19365 postinstall_cmds_RC \
19366 postuninstall_cmds_RC \
19367 old_archive_from_expsyms_cmds_RC \
19368 allow_undefined_flag_RC \
19369 no_undefined_flag_RC \
19370 export_symbols_cmds_RC \
19371 hardcode_libdir_flag_spec_RC \
19372 hardcode_libdir_flag_spec_ld_RC \
19373 hardcode_libdir_separator_RC \
19374 hardcode_automatic_RC \
19376 module_expsym_cmds_RC \
19377 lt_cv_prog_compiler_c_o_RC \
19378 fix_srcfile_path_RC \
19379 exclude_expsyms_RC \
19380 include_expsyms_RC; do
19383 old_archive_cmds_RC | \
19384 old_archive_from_new_cmds_RC | \
19385 archive_cmds_RC | \
19386 archive_expsym_cmds_RC | \
19388 module_expsym_cmds_RC | \
19389 old_archive_from_expsyms_cmds_RC | \
19390 export_symbols_cmds_RC | \
19391 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19392 postinstall_cmds | postuninstall_cmds | \
19393 old_postinstall_cmds | old_postuninstall_cmds | \
19394 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19395 # Double-quote double-evaled strings.
19396 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19399 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19405 *'\$0 --fallback-echo"')
19406 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19412 cat <<__EOF__ >> "$cfgfile"
19413 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19415 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19417 # Shell to use when invoking shell scripts.
19420 # Whether or not to build shared libraries.
19421 build_libtool_libs=$enable_shared
19423 # Whether or not to build static libraries.
19424 build_old_libs=$enable_static
19426 # Whether or not to add -lc for building shared libraries.
19427 build_libtool_need_lc=$archive_cmds_need_lc_RC
19429 # Whether or not to disallow shared libs when runtime libs are static
19430 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19432 # Whether or not to optimize for fast installation.
19433 fast_install=$enable_fast_install
19436 host_alias=$host_alias
19440 # The build system.
19441 build_alias=$build_alias
19445 # An echo program that does not interpret backslashes.
19450 AR_FLAGS=$lt_AR_FLAGS
19455 # LTCC compiler flags.
19456 LTCFLAGS=$lt_LTCFLAGS
19458 # A language-specific compiler.
19461 # Is the compiler the GNU C compiler?
19467 # The linker used to build libraries.
19470 # Whether we need hard or soft links.
19473 # A BSD-compatible nm program.
19476 # A symbol stripping program
19479 # Used to examine libraries when file_magic_cmd begins "file"
19480 MAGIC_CMD=$MAGIC_CMD
19482 # Used on cygwin: DLL creation program.
19485 # Used on cygwin: object dumper.
19488 # Used on cygwin: assembler.
19491 # The name of the directory that contains temporary libtool files.
19494 # How to create reloadable object files.
19495 reload_flag=$lt_reload_flag
19496 reload_cmds=$lt_reload_cmds
19498 # How to pass a linker flag through the compiler.
19499 wl=$lt_lt_prog_compiler_wl_RC
19501 # Object file suffix (normally "o").
19502 objext="$ac_objext"
19504 # Old archive suffix (normally "a").
19507 # Shared library suffix (normally ".so").
19508 shrext_cmds='$shrext_cmds'
19510 # Executable file suffix (normally "").
19513 # Additional compiler flags for building library objects.
19514 pic_flag=$lt_lt_prog_compiler_pic_RC
19517 # What is the maximum length of a command?
19518 max_cmd_len=$lt_cv_sys_max_cmd_len
19520 # Does compiler simultaneously support -c and -o options?
19521 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19523 # Must we lock files when doing compilation?
19524 need_locks=$lt_need_locks
19526 # Do we need the lib prefix for modules?
19527 need_lib_prefix=$need_lib_prefix
19529 # Do we need a version for libraries?
19530 need_version=$need_version
19532 # Whether dlopen is supported.
19533 dlopen_support=$enable_dlopen
19535 # Whether dlopen of programs is supported.
19536 dlopen_self=$enable_dlopen_self
19538 # Whether dlopen of statically linked programs is supported.
19539 dlopen_self_static=$enable_dlopen_self_static
19541 # Compiler flag to prevent dynamic linking.
19542 link_static_flag=$lt_lt_prog_compiler_static_RC
19544 # Compiler flag to turn off builtin functions.
19545 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19547 # Compiler flag to allow reflexive dlopens.
19548 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19550 # Compiler flag to generate shared objects directly from archives.
19551 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19553 # Compiler flag to generate thread-safe objects.
19554 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19556 # Library versioning type.
19557 version_type=$version_type
19559 # Format of library name prefix.
19560 libname_spec=$lt_libname_spec
19562 # List of archive names. First name is the real one, the rest are links.
19563 # The last name is the one that the linker finds with -lNAME.
19564 library_names_spec=$lt_library_names_spec
19566 # The coded name of the library, if different from the real name.
19567 soname_spec=$lt_soname_spec
19569 # Commands used to build and install an old-style archive.
19571 old_archive_cmds=$lt_old_archive_cmds_RC
19572 old_postinstall_cmds=$lt_old_postinstall_cmds
19573 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19575 # Create an old-style archive from a shared archive.
19576 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19578 # Create a temporary old-style archive to link instead of a shared archive.
19579 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19581 # Commands used to build and install a shared archive.
19582 archive_cmds=$lt_archive_cmds_RC
19583 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19584 postinstall_cmds=$lt_postinstall_cmds
19585 postuninstall_cmds=$lt_postuninstall_cmds
19587 # Commands used to build a loadable module (assumed same as above if empty)
19588 module_cmds=$lt_module_cmds_RC
19589 module_expsym_cmds=$lt_module_expsym_cmds_RC
19591 # Commands to strip libraries.
19592 old_striplib=$lt_old_striplib
19593 striplib=$lt_striplib
19595 # Dependencies to place before the objects being linked to create a
19597 predep_objects=$lt_predep_objects_RC
19599 # Dependencies to place after the objects being linked to create a
19601 postdep_objects=$lt_postdep_objects_RC
19603 # Dependencies to place before the objects being linked to create a
19605 predeps=$lt_predeps_RC
19607 # Dependencies to place after the objects being linked to create a
19609 postdeps=$lt_postdeps_RC
19611 # The directories searched by this compiler when creating a shared
19613 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19615 # The library search path used internally by the compiler when linking
19616 # a shared library.
19617 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19619 # Method to check whether dependent libraries are shared objects.
19620 deplibs_check_method=$lt_deplibs_check_method
19622 # Command to use when deplibs_check_method == file_magic.
19623 file_magic_cmd=$lt_file_magic_cmd
19625 # Flag that allows shared libraries with undefined symbols to be built.
19626 allow_undefined_flag=$lt_allow_undefined_flag_RC
19628 # Flag that forces no undefined symbols.
19629 no_undefined_flag=$lt_no_undefined_flag_RC
19631 # Commands used to finish a libtool library installation in a directory.
19632 finish_cmds=$lt_finish_cmds
19634 # Same as above, but a single script fragment to be evaled but not shown.
19635 finish_eval=$lt_finish_eval
19637 # Take the output of nm and produce a listing of raw symbols and C names.
19638 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19640 # Transform the output of nm in a proper C declaration
19641 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19643 # Transform the output of nm in a C name address pair
19644 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19646 # This is the shared library runtime path variable.
19647 runpath_var=$runpath_var
19649 # This is the shared library path variable.
19650 shlibpath_var=$shlibpath_var
19652 # Is shlibpath searched before the hard-coded library search path?
19653 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19655 # How to hardcode a shared library path into an executable.
19656 hardcode_action=$hardcode_action_RC
19658 # Whether we should hardcode library paths into libraries.
19659 hardcode_into_libs=$hardcode_into_libs
19661 # Flag to hardcode \$libdir into a binary during linking.
19662 # This must work even if \$libdir does not exist.
19663 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19665 # If ld is used when linking, flag to hardcode \$libdir into
19666 # a binary during linking. This must work even if \$libdir does
19668 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19670 # Whether we need a single -rpath flag with a separated argument.
19671 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19673 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19674 # resulting binary.
19675 hardcode_direct=$hardcode_direct_RC
19677 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19678 # resulting binary.
19679 hardcode_minus_L=$hardcode_minus_L_RC
19681 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19682 # the resulting binary.
19683 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19685 # Set to yes if building a shared library automatically hardcodes DIR into the library
19686 # and all subsequent libraries and executables linked against it.
19687 hardcode_automatic=$hardcode_automatic_RC
19689 # Variables whose values should be saved in libtool wrapper scripts and
19690 # restored at relink time.
19691 variables_saved_for_relink="$variables_saved_for_relink"
19693 # Whether libtool must link a program against all its dependency libraries.
19694 link_all_deplibs=$link_all_deplibs_RC
19696 # Compile-time system search path for libraries
19697 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19699 # Run-time system search path for libraries
19700 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19702 # Fix the shell variable \$srcfile for the compiler.
19703 fix_srcfile_path=$lt_fix_srcfile_path
19705 # Set to yes if exported symbols are required.
19706 always_export_symbols=$always_export_symbols_RC
19708 # The commands to list exported symbols.
19709 export_symbols_cmds=$lt_export_symbols_cmds_RC
19711 # The commands to extract the exported symbol list from a shared archive.
19712 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19714 # Symbols that should not be listed in the preloaded symbols.
19715 exclude_expsyms=$lt_exclude_expsyms_RC
19717 # Symbols that must always be exported.
19718 include_expsyms=$lt_include_expsyms_RC
19720 # ### END LIBTOOL TAG CONFIG: $tagname
19726 # If there is no Makefile yet, we rely on a make rule to execute
19727 # `config.status --recheck' to rerun these tests and create the
19728 # libtool script then.
19729 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19730 if test -f "$ltmain_in"; then
19731 test -f Makefile && make "$ltmain"
19737 ac_cpp='$CPP $CPPFLAGS'
19738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19747 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19748 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19749 { (exit 1); exit 1; }; }
19753 # Append the new tag name to the list of available tags.
19754 if test -n "$tagname" ; then
19755 available_tags="$available_tags $tagname"
19761 # Now substitute the updated list of available tags.
19762 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19763 mv "${ofile}T" "$ofile"
19767 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19768 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19769 { (exit 1); exit 1; }; }
19775 # This can be used to rebuild libtool when needed
19776 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19778 # Always use our own libtool.
19779 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19781 # Prevent multiple expansion
19804 # Check whether some low-level functions/files are available
19805 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19806 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19807 if test "${ac_cv_header_stdc+set}" = set; then
19808 echo $ECHO_N "(cached) $ECHO_C" >&6
19810 cat >conftest.$ac_ext <<_ACEOF
19813 cat confdefs.h >>conftest.$ac_ext
19814 cat >>conftest.$ac_ext <<_ACEOF
19815 /* end confdefs.h. */
19816 #include <stdlib.h>
19817 #include <stdarg.h>
19818 #include <string.h>
19829 rm -f conftest.$ac_objext
19830 if { (ac_try="$ac_compile"
19831 case "(($ac_try" in
19832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19833 *) ac_try_echo=$ac_try;;
19835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19836 (eval "$ac_compile") 2>conftest.er1
19838 grep -v '^ *+' conftest.er1 >conftest.err
19840 cat conftest.err >&5
19841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19842 (exit $ac_status); } && {
19843 test -z "$ac_c_werror_flag" ||
19844 test ! -s conftest.err
19845 } && test -s conftest.$ac_objext; then
19846 ac_cv_header_stdc=yes
19848 echo "$as_me: failed program was:" >&5
19849 sed 's/^/| /' conftest.$ac_ext >&5
19851 ac_cv_header_stdc=no
19854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19856 if test $ac_cv_header_stdc = yes; then
19857 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19858 cat >conftest.$ac_ext <<_ACEOF
19861 cat confdefs.h >>conftest.$ac_ext
19862 cat >>conftest.$ac_ext <<_ACEOF
19863 /* end confdefs.h. */
19864 #include <string.h>
19867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19868 $EGREP "memchr" >/dev/null 2>&1; then
19871 ac_cv_header_stdc=no
19877 if test $ac_cv_header_stdc = yes; then
19878 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19879 cat >conftest.$ac_ext <<_ACEOF
19882 cat confdefs.h >>conftest.$ac_ext
19883 cat >>conftest.$ac_ext <<_ACEOF
19884 /* end confdefs.h. */
19885 #include <stdlib.h>
19888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19889 $EGREP "free" >/dev/null 2>&1; then
19892 ac_cv_header_stdc=no
19898 if test $ac_cv_header_stdc = yes; then
19899 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19900 if test "$cross_compiling" = yes; then
19903 cat >conftest.$ac_ext <<_ACEOF
19906 cat confdefs.h >>conftest.$ac_ext
19907 cat >>conftest.$ac_ext <<_ACEOF
19908 /* end confdefs.h. */
19910 #include <stdlib.h>
19911 #if ((' ' & 0x0FF) == 0x020)
19912 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19913 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19915 # define ISLOWER(c) \
19916 (('a' <= (c) && (c) <= 'i') \
19917 || ('j' <= (c) && (c) <= 'r') \
19918 || ('s' <= (c) && (c) <= 'z'))
19919 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19922 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19927 for (i = 0; i < 256; i++)
19928 if (XOR (islower (i), ISLOWER (i))
19929 || toupper (i) != TOUPPER (i))
19934 rm -f conftest$ac_exeext
19935 if { (ac_try="$ac_link"
19936 case "(($ac_try" in
19937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19938 *) ac_try_echo=$ac_try;;
19940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19941 (eval "$ac_link") 2>&5
19943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19944 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19945 { (case "(($ac_try" in
19946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19947 *) ac_try_echo=$ac_try;;
19949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19950 (eval "$ac_try") 2>&5
19952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953 (exit $ac_status); }; }; then
19956 echo "$as_me: program exited with status $ac_status" >&5
19957 echo "$as_me: failed program was:" >&5
19958 sed 's/^/| /' conftest.$ac_ext >&5
19960 ( exit $ac_status )
19961 ac_cv_header_stdc=no
19963 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19969 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19970 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19971 if test $ac_cv_header_stdc = yes; then
19973 cat >>confdefs.h <<\_ACEOF
19974 #define STDC_HEADERS 1
19980 # These are tested for by AC_HEADER_STDC, but I check again to set the var
19981 if test "${ac_cv_header_stdint_h+set}" = set; then
19982 { echo "$as_me:$LINENO: checking for stdint.h" >&5
19983 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19984 if test "${ac_cv_header_stdint_h+set}" = set; then
19985 echo $ECHO_N "(cached) $ECHO_C" >&6
19987 { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
19988 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; }
19990 # Is the header compilable?
19991 { echo "$as_me:$LINENO: checking stdint.h usability" >&5
19992 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6; }
19993 cat >conftest.$ac_ext <<_ACEOF
19996 cat confdefs.h >>conftest.$ac_ext
19997 cat >>conftest.$ac_ext <<_ACEOF
19998 /* end confdefs.h. */
19999 $ac_includes_default
20000 #include <stdint.h>
20002 rm -f conftest.$ac_objext
20003 if { (ac_try="$ac_compile"
20004 case "(($ac_try" in
20005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20006 *) ac_try_echo=$ac_try;;
20008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20009 (eval "$ac_compile") 2>conftest.er1
20011 grep -v '^ *+' conftest.er1 >conftest.err
20013 cat conftest.err >&5
20014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015 (exit $ac_status); } && {
20016 test -z "$ac_c_werror_flag" ||
20017 test ! -s conftest.err
20018 } && test -s conftest.$ac_objext; then
20019 ac_header_compiler=yes
20021 echo "$as_me: failed program was:" >&5
20022 sed 's/^/| /' conftest.$ac_ext >&5
20024 ac_header_compiler=no
20027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20028 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20029 echo "${ECHO_T}$ac_header_compiler" >&6; }
20031 # Is the header present?
20032 { echo "$as_me:$LINENO: checking stdint.h presence" >&5
20033 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6; }
20034 cat >conftest.$ac_ext <<_ACEOF
20037 cat confdefs.h >>conftest.$ac_ext
20038 cat >>conftest.$ac_ext <<_ACEOF
20039 /* end confdefs.h. */
20040 #include <stdint.h>
20042 if { (ac_try="$ac_cpp conftest.$ac_ext"
20043 case "(($ac_try" in
20044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20045 *) ac_try_echo=$ac_try;;
20047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20050 grep -v '^ *+' conftest.er1 >conftest.err
20052 cat conftest.err >&5
20053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054 (exit $ac_status); } >/dev/null && {
20055 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20056 test ! -s conftest.err
20058 ac_header_preproc=yes
20060 echo "$as_me: failed program was:" >&5
20061 sed 's/^/| /' conftest.$ac_ext >&5
20063 ac_header_preproc=no
20066 rm -f conftest.err conftest.$ac_ext
20067 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20068 echo "${ECHO_T}$ac_header_preproc" >&6; }
20070 # So? What about this header?
20071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20073 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
20074 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20075 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
20076 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
20077 ac_header_preproc=yes
20080 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
20081 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
20082 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
20083 echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
20084 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
20085 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
20086 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
20087 echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
20088 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
20089 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
20090 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
20091 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
20093 ## ------------------------------------ ##
20094 ## Report this to opensource@google.com ##
20095 ## ------------------------------------ ##
20097 ) | sed "s/^/$as_me: WARNING: /" >&2
20100 { echo "$as_me:$LINENO: checking for stdint.h" >&5
20101 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
20102 if test "${ac_cv_header_stdint_h+set}" = set; then
20103 echo $ECHO_N "(cached) $ECHO_C" >&6
20105 ac_cv_header_stdint_h=$ac_header_preproc
20107 { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20108 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; }
20111 if test $ac_cv_header_stdint_h = yes; then
20112 ac_cv_have_stdint_h=1
20114 ac_cv_have_stdint_h=0
20118 if test "${ac_cv_header_sys_types_h+set}" = set; then
20119 { echo "$as_me:$LINENO: checking for sys/types.h" >&5
20120 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6; }
20121 if test "${ac_cv_header_sys_types_h+set}" = set; then
20122 echo $ECHO_N "(cached) $ECHO_C" >&6
20124 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20125 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6; }
20127 # Is the header compilable?
20128 { echo "$as_me:$LINENO: checking sys/types.h usability" >&5
20129 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6; }
20130 cat >conftest.$ac_ext <<_ACEOF
20133 cat confdefs.h >>conftest.$ac_ext
20134 cat >>conftest.$ac_ext <<_ACEOF
20135 /* end confdefs.h. */
20136 $ac_includes_default
20137 #include <sys/types.h>
20139 rm -f conftest.$ac_objext
20140 if { (ac_try="$ac_compile"
20141 case "(($ac_try" in
20142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20143 *) ac_try_echo=$ac_try;;
20145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20146 (eval "$ac_compile") 2>conftest.er1
20148 grep -v '^ *+' conftest.er1 >conftest.err
20150 cat conftest.err >&5
20151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20152 (exit $ac_status); } && {
20153 test -z "$ac_c_werror_flag" ||
20154 test ! -s conftest.err
20155 } && test -s conftest.$ac_objext; then
20156 ac_header_compiler=yes
20158 echo "$as_me: failed program was:" >&5
20159 sed 's/^/| /' conftest.$ac_ext >&5
20161 ac_header_compiler=no
20164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20165 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20166 echo "${ECHO_T}$ac_header_compiler" >&6; }
20168 # Is the header present?
20169 { echo "$as_me:$LINENO: checking sys/types.h presence" >&5
20170 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6; }
20171 cat >conftest.$ac_ext <<_ACEOF
20174 cat confdefs.h >>conftest.$ac_ext
20175 cat >>conftest.$ac_ext <<_ACEOF
20176 /* end confdefs.h. */
20177 #include <sys/types.h>
20179 if { (ac_try="$ac_cpp conftest.$ac_ext"
20180 case "(($ac_try" in
20181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20182 *) ac_try_echo=$ac_try;;
20184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20185 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20187 grep -v '^ *+' conftest.er1 >conftest.err
20189 cat conftest.err >&5
20190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191 (exit $ac_status); } >/dev/null && {
20192 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20193 test ! -s conftest.err
20195 ac_header_preproc=yes
20197 echo "$as_me: failed program was:" >&5
20198 sed 's/^/| /' conftest.$ac_ext >&5
20200 ac_header_preproc=no
20203 rm -f conftest.err conftest.$ac_ext
20204 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20205 echo "${ECHO_T}$ac_header_preproc" >&6; }
20207 # So? What about this header?
20208 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20210 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
20211 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20212 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
20213 echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
20214 ac_header_preproc=yes
20217 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
20218 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
20219 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
20220 echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
20221 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
20222 echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
20223 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
20224 echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
20225 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
20226 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
20227 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
20228 echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
20230 ## ------------------------------------ ##
20231 ## Report this to opensource@google.com ##
20232 ## ------------------------------------ ##
20234 ) | sed "s/^/$as_me: WARNING: /" >&2
20237 { echo "$as_me:$LINENO: checking for sys/types.h" >&5
20238 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6; }
20239 if test "${ac_cv_header_sys_types_h+set}" = set; then
20240 echo $ECHO_N "(cached) $ECHO_C" >&6
20242 ac_cv_header_sys_types_h=$ac_header_preproc
20244 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20245 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6; }
20248 if test $ac_cv_header_sys_types_h = yes; then
20249 ac_cv_have_systypes_h=1
20251 ac_cv_have_systypes_h=0
20255 if test "${ac_cv_header_inttypes_h+set}" = set; then
20256 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20257 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20258 if test "${ac_cv_header_inttypes_h+set}" = set; then
20259 echo $ECHO_N "(cached) $ECHO_C" >&6
20261 { echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20262 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6; }
20264 # Is the header compilable?
20265 { echo "$as_me:$LINENO: checking inttypes.h usability" >&5
20266 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6; }
20267 cat >conftest.$ac_ext <<_ACEOF
20270 cat confdefs.h >>conftest.$ac_ext
20271 cat >>conftest.$ac_ext <<_ACEOF
20272 /* end confdefs.h. */
20273 $ac_includes_default
20274 #include <inttypes.h>
20276 rm -f conftest.$ac_objext
20277 if { (ac_try="$ac_compile"
20278 case "(($ac_try" in
20279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20280 *) ac_try_echo=$ac_try;;
20282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20283 (eval "$ac_compile") 2>conftest.er1
20285 grep -v '^ *+' conftest.er1 >conftest.err
20287 cat conftest.err >&5
20288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20289 (exit $ac_status); } && {
20290 test -z "$ac_c_werror_flag" ||
20291 test ! -s conftest.err
20292 } && test -s conftest.$ac_objext; then
20293 ac_header_compiler=yes
20295 echo "$as_me: failed program was:" >&5
20296 sed 's/^/| /' conftest.$ac_ext >&5
20298 ac_header_compiler=no
20301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20302 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20303 echo "${ECHO_T}$ac_header_compiler" >&6; }
20305 # Is the header present?
20306 { echo "$as_me:$LINENO: checking inttypes.h presence" >&5
20307 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6; }
20308 cat >conftest.$ac_ext <<_ACEOF
20311 cat confdefs.h >>conftest.$ac_ext
20312 cat >>conftest.$ac_ext <<_ACEOF
20313 /* end confdefs.h. */
20314 #include <inttypes.h>
20316 if { (ac_try="$ac_cpp conftest.$ac_ext"
20317 case "(($ac_try" in
20318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20319 *) ac_try_echo=$ac_try;;
20321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20322 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20324 grep -v '^ *+' conftest.er1 >conftest.err
20326 cat conftest.err >&5
20327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328 (exit $ac_status); } >/dev/null && {
20329 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20330 test ! -s conftest.err
20332 ac_header_preproc=yes
20334 echo "$as_me: failed program was:" >&5
20335 sed 's/^/| /' conftest.$ac_ext >&5
20337 ac_header_preproc=no
20340 rm -f conftest.err conftest.$ac_ext
20341 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20342 echo "${ECHO_T}$ac_header_preproc" >&6; }
20344 # So? What about this header?
20345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20347 { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
20348 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20349 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
20350 echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
20351 ac_header_preproc=yes
20354 { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
20355 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
20356 { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
20357 echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
20358 { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
20359 echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
20360 { echo "$as_me:$LINENO: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&5
20361 echo "$as_me: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&2;}
20362 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
20363 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
20364 { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
20365 echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
20367 ## ------------------------------------ ##
20368 ## Report this to opensource@google.com ##
20369 ## ------------------------------------ ##
20371 ) | sed "s/^/$as_me: WARNING: /" >&2
20374 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20375 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20376 if test "${ac_cv_header_inttypes_h+set}" = set; then
20377 echo $ECHO_N "(cached) $ECHO_C" >&6
20379 ac_cv_header_inttypes_h=$ac_header_preproc
20381 { echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20382 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6; }
20385 if test $ac_cv_header_inttypes_h = yes; then
20386 ac_cv_have_inttypes_h=1
20388 ac_cv_have_inttypes_h=0
20393 for ac_header in syscall.h
20395 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20396 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20397 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20400 echo $ECHO_N "(cached) $ECHO_C" >&6
20402 ac_res=`eval echo '${'$as_ac_Header'}'`
20403 { echo "$as_me:$LINENO: result: $ac_res" >&5
20404 echo "${ECHO_T}$ac_res" >&6; }
20406 # Is the header compilable?
20407 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20408 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20409 cat >conftest.$ac_ext <<_ACEOF
20412 cat confdefs.h >>conftest.$ac_ext
20413 cat >>conftest.$ac_ext <<_ACEOF
20414 /* end confdefs.h. */
20415 $ac_includes_default
20416 #include <$ac_header>
20418 rm -f conftest.$ac_objext
20419 if { (ac_try="$ac_compile"
20420 case "(($ac_try" in
20421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20422 *) ac_try_echo=$ac_try;;
20424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20425 (eval "$ac_compile") 2>conftest.er1
20427 grep -v '^ *+' conftest.er1 >conftest.err
20429 cat conftest.err >&5
20430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20431 (exit $ac_status); } && {
20432 test -z "$ac_c_werror_flag" ||
20433 test ! -s conftest.err
20434 } && test -s conftest.$ac_objext; then
20435 ac_header_compiler=yes
20437 echo "$as_me: failed program was:" >&5
20438 sed 's/^/| /' conftest.$ac_ext >&5
20440 ac_header_compiler=no
20443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20444 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20445 echo "${ECHO_T}$ac_header_compiler" >&6; }
20447 # Is the header present?
20448 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20449 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20450 cat >conftest.$ac_ext <<_ACEOF
20453 cat confdefs.h >>conftest.$ac_ext
20454 cat >>conftest.$ac_ext <<_ACEOF
20455 /* end confdefs.h. */
20456 #include <$ac_header>
20458 if { (ac_try="$ac_cpp conftest.$ac_ext"
20459 case "(($ac_try" in
20460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20461 *) ac_try_echo=$ac_try;;
20463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20464 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20466 grep -v '^ *+' conftest.er1 >conftest.err
20468 cat conftest.err >&5
20469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470 (exit $ac_status); } >/dev/null && {
20471 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20472 test ! -s conftest.err
20474 ac_header_preproc=yes
20476 echo "$as_me: failed program was:" >&5
20477 sed 's/^/| /' conftest.$ac_ext >&5
20479 ac_header_preproc=no
20482 rm -f conftest.err conftest.$ac_ext
20483 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20484 echo "${ECHO_T}$ac_header_preproc" >&6; }
20486 # So? What about this header?
20487 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20489 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20490 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20492 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20493 ac_header_preproc=yes
20496 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20497 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20498 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20499 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20500 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20501 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20502 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20503 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20504 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20505 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20506 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20507 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20509 ## ------------------------------------ ##
20510 ## Report this to opensource@google.com ##
20511 ## ------------------------------------ ##
20513 ) | sed "s/^/$as_me: WARNING: /" >&2
20516 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20519 echo $ECHO_N "(cached) $ECHO_C" >&6
20521 eval "$as_ac_Header=\$ac_header_preproc"
20523 ac_res=`eval echo '${'$as_ac_Header'}'`
20524 { echo "$as_me:$LINENO: result: $ac_res" >&5
20525 echo "${ECHO_T}$ac_res" >&6; }
20528 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20529 cat >>confdefs.h <<_ACEOF
20530 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20538 for ac_header in sys/syscall.h
20540 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20542 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20545 echo $ECHO_N "(cached) $ECHO_C" >&6
20547 ac_res=`eval echo '${'$as_ac_Header'}'`
20548 { echo "$as_me:$LINENO: result: $ac_res" >&5
20549 echo "${ECHO_T}$ac_res" >&6; }
20551 # Is the header compilable?
20552 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20553 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20554 cat >conftest.$ac_ext <<_ACEOF
20557 cat confdefs.h >>conftest.$ac_ext
20558 cat >>conftest.$ac_ext <<_ACEOF
20559 /* end confdefs.h. */
20560 $ac_includes_default
20561 #include <$ac_header>
20563 rm -f conftest.$ac_objext
20564 if { (ac_try="$ac_compile"
20565 case "(($ac_try" in
20566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20567 *) ac_try_echo=$ac_try;;
20569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20570 (eval "$ac_compile") 2>conftest.er1
20572 grep -v '^ *+' conftest.er1 >conftest.err
20574 cat conftest.err >&5
20575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20576 (exit $ac_status); } && {
20577 test -z "$ac_c_werror_flag" ||
20578 test ! -s conftest.err
20579 } && test -s conftest.$ac_objext; then
20580 ac_header_compiler=yes
20582 echo "$as_me: failed program was:" >&5
20583 sed 's/^/| /' conftest.$ac_ext >&5
20585 ac_header_compiler=no
20588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20589 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20590 echo "${ECHO_T}$ac_header_compiler" >&6; }
20592 # Is the header present?
20593 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20594 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20595 cat >conftest.$ac_ext <<_ACEOF
20598 cat confdefs.h >>conftest.$ac_ext
20599 cat >>conftest.$ac_ext <<_ACEOF
20600 /* end confdefs.h. */
20601 #include <$ac_header>
20603 if { (ac_try="$ac_cpp conftest.$ac_ext"
20604 case "(($ac_try" in
20605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20606 *) ac_try_echo=$ac_try;;
20608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20611 grep -v '^ *+' conftest.er1 >conftest.err
20613 cat conftest.err >&5
20614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615 (exit $ac_status); } >/dev/null && {
20616 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20617 test ! -s conftest.err
20619 ac_header_preproc=yes
20621 echo "$as_me: failed program was:" >&5
20622 sed 's/^/| /' conftest.$ac_ext >&5
20624 ac_header_preproc=no
20627 rm -f conftest.err conftest.$ac_ext
20628 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20629 echo "${ECHO_T}$ac_header_preproc" >&6; }
20631 # So? What about this header?
20632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20634 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20635 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20636 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20637 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20638 ac_header_preproc=yes
20641 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20642 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20643 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20644 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20645 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20646 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20647 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20648 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20649 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20650 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20651 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20652 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20654 ## ------------------------------------ ##
20655 ## Report this to opensource@google.com ##
20656 ## ------------------------------------ ##
20658 ) | sed "s/^/$as_me: WARNING: /" >&2
20661 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20664 echo $ECHO_N "(cached) $ECHO_C" >&6
20666 eval "$as_ac_Header=\$ac_header_preproc"
20668 ac_res=`eval echo '${'$as_ac_Header'}'`
20669 { echo "$as_me:$LINENO: result: $ac_res" >&5
20670 echo "${ECHO_T}$ac_res" >&6; }
20673 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20674 cat >>confdefs.h <<_ACEOF
20675 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20682 # For backtrace with glibc.
20683 # TODO(hamaji): Support other platforms using libgcc.
20685 for ac_header in execinfo.h
20687 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20688 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20689 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20692 echo $ECHO_N "(cached) $ECHO_C" >&6
20694 ac_res=`eval echo '${'$as_ac_Header'}'`
20695 { echo "$as_me:$LINENO: result: $ac_res" >&5
20696 echo "${ECHO_T}$ac_res" >&6; }
20698 # Is the header compilable?
20699 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20700 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20701 cat >conftest.$ac_ext <<_ACEOF
20704 cat confdefs.h >>conftest.$ac_ext
20705 cat >>conftest.$ac_ext <<_ACEOF
20706 /* end confdefs.h. */
20707 $ac_includes_default
20708 #include <$ac_header>
20710 rm -f conftest.$ac_objext
20711 if { (ac_try="$ac_compile"
20712 case "(($ac_try" in
20713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20714 *) ac_try_echo=$ac_try;;
20716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20717 (eval "$ac_compile") 2>conftest.er1
20719 grep -v '^ *+' conftest.er1 >conftest.err
20721 cat conftest.err >&5
20722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20723 (exit $ac_status); } && {
20724 test -z "$ac_c_werror_flag" ||
20725 test ! -s conftest.err
20726 } && test -s conftest.$ac_objext; then
20727 ac_header_compiler=yes
20729 echo "$as_me: failed program was:" >&5
20730 sed 's/^/| /' conftest.$ac_ext >&5
20732 ac_header_compiler=no
20735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20736 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20737 echo "${ECHO_T}$ac_header_compiler" >&6; }
20739 # Is the header present?
20740 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20741 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20742 cat >conftest.$ac_ext <<_ACEOF
20745 cat confdefs.h >>conftest.$ac_ext
20746 cat >>conftest.$ac_ext <<_ACEOF
20747 /* end confdefs.h. */
20748 #include <$ac_header>
20750 if { (ac_try="$ac_cpp conftest.$ac_ext"
20751 case "(($ac_try" in
20752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20753 *) ac_try_echo=$ac_try;;
20755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20756 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20758 grep -v '^ *+' conftest.er1 >conftest.err
20760 cat conftest.err >&5
20761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20762 (exit $ac_status); } >/dev/null && {
20763 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20764 test ! -s conftest.err
20766 ac_header_preproc=yes
20768 echo "$as_me: failed program was:" >&5
20769 sed 's/^/| /' conftest.$ac_ext >&5
20771 ac_header_preproc=no
20774 rm -f conftest.err conftest.$ac_ext
20775 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20776 echo "${ECHO_T}$ac_header_preproc" >&6; }
20778 # So? What about this header?
20779 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20781 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20782 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20783 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20784 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20785 ac_header_preproc=yes
20788 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20789 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20790 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20791 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20792 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20793 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20794 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20795 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20796 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20797 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20798 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20799 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20801 ## ------------------------------------ ##
20802 ## Report this to opensource@google.com ##
20803 ## ------------------------------------ ##
20805 ) | sed "s/^/$as_me: WARNING: /" >&2
20808 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20810 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20811 echo $ECHO_N "(cached) $ECHO_C" >&6
20813 eval "$as_ac_Header=\$ac_header_preproc"
20815 ac_res=`eval echo '${'$as_ac_Header'}'`
20816 { echo "$as_me:$LINENO: result: $ac_res" >&5
20817 echo "${ECHO_T}$ac_res" >&6; }
20820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20821 cat >>confdefs.h <<_ACEOF
20822 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20830 for ac_header in ucontext.h
20832 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20834 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20837 echo $ECHO_N "(cached) $ECHO_C" >&6
20839 ac_res=`eval echo '${'$as_ac_Header'}'`
20840 { echo "$as_me:$LINENO: result: $ac_res" >&5
20841 echo "${ECHO_T}$ac_res" >&6; }
20843 # Is the header compilable?
20844 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20845 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20846 cat >conftest.$ac_ext <<_ACEOF
20849 cat confdefs.h >>conftest.$ac_ext
20850 cat >>conftest.$ac_ext <<_ACEOF
20851 /* end confdefs.h. */
20852 $ac_includes_default
20853 #include <$ac_header>
20855 rm -f conftest.$ac_objext
20856 if { (ac_try="$ac_compile"
20857 case "(($ac_try" in
20858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20859 *) ac_try_echo=$ac_try;;
20861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20862 (eval "$ac_compile") 2>conftest.er1
20864 grep -v '^ *+' conftest.er1 >conftest.err
20866 cat conftest.err >&5
20867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20868 (exit $ac_status); } && {
20869 test -z "$ac_c_werror_flag" ||
20870 test ! -s conftest.err
20871 } && test -s conftest.$ac_objext; then
20872 ac_header_compiler=yes
20874 echo "$as_me: failed program was:" >&5
20875 sed 's/^/| /' conftest.$ac_ext >&5
20877 ac_header_compiler=no
20880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20881 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20882 echo "${ECHO_T}$ac_header_compiler" >&6; }
20884 # Is the header present?
20885 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20886 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20887 cat >conftest.$ac_ext <<_ACEOF
20890 cat confdefs.h >>conftest.$ac_ext
20891 cat >>conftest.$ac_ext <<_ACEOF
20892 /* end confdefs.h. */
20893 #include <$ac_header>
20895 if { (ac_try="$ac_cpp conftest.$ac_ext"
20896 case "(($ac_try" in
20897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20898 *) ac_try_echo=$ac_try;;
20900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20901 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20903 grep -v '^ *+' conftest.er1 >conftest.err
20905 cat conftest.err >&5
20906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907 (exit $ac_status); } >/dev/null && {
20908 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20909 test ! -s conftest.err
20911 ac_header_preproc=yes
20913 echo "$as_me: failed program was:" >&5
20914 sed 's/^/| /' conftest.$ac_ext >&5
20916 ac_header_preproc=no
20919 rm -f conftest.err conftest.$ac_ext
20920 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20921 echo "${ECHO_T}$ac_header_preproc" >&6; }
20923 # So? What about this header?
20924 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20926 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20927 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20929 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20930 ac_header_preproc=yes
20933 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20934 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20935 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20936 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20937 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20938 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20939 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20940 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20942 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20943 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20944 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20946 ## ------------------------------------ ##
20947 ## Report this to opensource@google.com ##
20948 ## ------------------------------------ ##
20950 ) | sed "s/^/$as_me: WARNING: /" >&2
20953 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20956 echo $ECHO_N "(cached) $ECHO_C" >&6
20958 eval "$as_ac_Header=\$ac_header_preproc"
20960 ac_res=`eval echo '${'$as_ac_Header'}'`
20961 { echo "$as_me:$LINENO: result: $ac_res" >&5
20962 echo "${ECHO_T}$ac_res" >&6; }
20965 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20966 cat >>confdefs.h <<_ACEOF
20967 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20975 { echo "$as_me:$LINENO: checking for void *" >&5
20976 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
20977 if test "${ac_cv_type_void_p+set}" = set; then
20978 echo $ECHO_N "(cached) $ECHO_C" >&6
20980 cat >conftest.$ac_ext <<_ACEOF
20983 cat confdefs.h >>conftest.$ac_ext
20984 cat >>conftest.$ac_ext <<_ACEOF
20985 /* end confdefs.h. */
20986 $ac_includes_default
20987 typedef void * ac__type_new_;
20991 if ((ac__type_new_ *) 0)
20993 if (sizeof (ac__type_new_))
20999 rm -f conftest.$ac_objext
21000 if { (ac_try="$ac_compile"
21001 case "(($ac_try" in
21002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21003 *) ac_try_echo=$ac_try;;
21005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21006 (eval "$ac_compile") 2>conftest.er1
21008 grep -v '^ *+' conftest.er1 >conftest.err
21010 cat conftest.err >&5
21011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012 (exit $ac_status); } && {
21013 test -z "$ac_c_werror_flag" ||
21014 test ! -s conftest.err
21015 } && test -s conftest.$ac_objext; then
21016 ac_cv_type_void_p=yes
21018 echo "$as_me: failed program was:" >&5
21019 sed 's/^/| /' conftest.$ac_ext >&5
21021 ac_cv_type_void_p=no
21024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21026 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
21027 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
21029 # The cast to long int works around a bug in the HP C Compiler
21030 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21031 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21032 # This bug is HP SR number 8606223364.
21033 { echo "$as_me:$LINENO: checking size of void *" >&5
21034 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
21035 if test "${ac_cv_sizeof_void_p+set}" = set; then
21036 echo $ECHO_N "(cached) $ECHO_C" >&6
21038 if test "$cross_compiling" = yes; then
21039 # Depending upon the size, compute the lo and hi bounds.
21040 cat >conftest.$ac_ext <<_ACEOF
21043 cat confdefs.h >>conftest.$ac_ext
21044 cat >>conftest.$ac_ext <<_ACEOF
21045 /* end confdefs.h. */
21046 $ac_includes_default
21047 typedef void * ac__type_sizeof_;
21051 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21058 rm -f conftest.$ac_objext
21059 if { (ac_try="$ac_compile"
21060 case "(($ac_try" in
21061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21062 *) ac_try_echo=$ac_try;;
21064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21065 (eval "$ac_compile") 2>conftest.er1
21067 grep -v '^ *+' conftest.er1 >conftest.err
21069 cat conftest.err >&5
21070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21071 (exit $ac_status); } && {
21072 test -z "$ac_c_werror_flag" ||
21073 test ! -s conftest.err
21074 } && test -s conftest.$ac_objext; then
21077 cat >conftest.$ac_ext <<_ACEOF
21080 cat confdefs.h >>conftest.$ac_ext
21081 cat >>conftest.$ac_ext <<_ACEOF
21082 /* end confdefs.h. */
21083 $ac_includes_default
21084 typedef void * ac__type_sizeof_;
21088 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21095 rm -f conftest.$ac_objext
21096 if { (ac_try="$ac_compile"
21097 case "(($ac_try" in
21098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21099 *) ac_try_echo=$ac_try;;
21101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21102 (eval "$ac_compile") 2>conftest.er1
21104 grep -v '^ *+' conftest.er1 >conftest.err
21106 cat conftest.err >&5
21107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21108 (exit $ac_status); } && {
21109 test -z "$ac_c_werror_flag" ||
21110 test ! -s conftest.err
21111 } && test -s conftest.$ac_objext; then
21112 ac_hi=$ac_mid; break
21114 echo "$as_me: failed program was:" >&5
21115 sed 's/^/| /' conftest.$ac_ext >&5
21117 ac_lo=`expr $ac_mid + 1`
21118 if test $ac_lo -le $ac_mid; then
21122 ac_mid=`expr 2 '*' $ac_mid + 1`
21125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21128 echo "$as_me: failed program was:" >&5
21129 sed 's/^/| /' conftest.$ac_ext >&5
21131 cat >conftest.$ac_ext <<_ACEOF
21134 cat confdefs.h >>conftest.$ac_ext
21135 cat >>conftest.$ac_ext <<_ACEOF
21136 /* end confdefs.h. */
21137 $ac_includes_default
21138 typedef void * ac__type_sizeof_;
21142 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21149 rm -f conftest.$ac_objext
21150 if { (ac_try="$ac_compile"
21151 case "(($ac_try" in
21152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21153 *) ac_try_echo=$ac_try;;
21155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21156 (eval "$ac_compile") 2>conftest.er1
21158 grep -v '^ *+' conftest.er1 >conftest.err
21160 cat conftest.err >&5
21161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21162 (exit $ac_status); } && {
21163 test -z "$ac_c_werror_flag" ||
21164 test ! -s conftest.err
21165 } && test -s conftest.$ac_objext; then
21168 cat >conftest.$ac_ext <<_ACEOF
21171 cat confdefs.h >>conftest.$ac_ext
21172 cat >>conftest.$ac_ext <<_ACEOF
21173 /* end confdefs.h. */
21174 $ac_includes_default
21175 typedef void * ac__type_sizeof_;
21179 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21186 rm -f conftest.$ac_objext
21187 if { (ac_try="$ac_compile"
21188 case "(($ac_try" in
21189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21190 *) ac_try_echo=$ac_try;;
21192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21193 (eval "$ac_compile") 2>conftest.er1
21195 grep -v '^ *+' conftest.er1 >conftest.err
21197 cat conftest.err >&5
21198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21199 (exit $ac_status); } && {
21200 test -z "$ac_c_werror_flag" ||
21201 test ! -s conftest.err
21202 } && test -s conftest.$ac_objext; then
21203 ac_lo=$ac_mid; break
21205 echo "$as_me: failed program was:" >&5
21206 sed 's/^/| /' conftest.$ac_ext >&5
21208 ac_hi=`expr '(' $ac_mid ')' - 1`
21209 if test $ac_mid -le $ac_hi; then
21213 ac_mid=`expr 2 '*' $ac_mid`
21216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21219 echo "$as_me: failed program was:" >&5
21220 sed 's/^/| /' conftest.$ac_ext >&5
21225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21229 # Binary search between lo and hi bounds.
21230 while test "x$ac_lo" != "x$ac_hi"; do
21231 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21232 cat >conftest.$ac_ext <<_ACEOF
21235 cat confdefs.h >>conftest.$ac_ext
21236 cat >>conftest.$ac_ext <<_ACEOF
21237 /* end confdefs.h. */
21238 $ac_includes_default
21239 typedef void * ac__type_sizeof_;
21243 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21250 rm -f conftest.$ac_objext
21251 if { (ac_try="$ac_compile"
21252 case "(($ac_try" in
21253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21254 *) ac_try_echo=$ac_try;;
21256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21257 (eval "$ac_compile") 2>conftest.er1
21259 grep -v '^ *+' conftest.er1 >conftest.err
21261 cat conftest.err >&5
21262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21263 (exit $ac_status); } && {
21264 test -z "$ac_c_werror_flag" ||
21265 test ! -s conftest.err
21266 } && test -s conftest.$ac_objext; then
21269 echo "$as_me: failed program was:" >&5
21270 sed 's/^/| /' conftest.$ac_ext >&5
21272 ac_lo=`expr '(' $ac_mid ')' + 1`
21275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21278 ?*) ac_cv_sizeof_void_p=$ac_lo;;
21279 '') if test "$ac_cv_type_void_p" = yes; then
21280 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
21281 See \`config.log' for more details." >&5
21282 echo "$as_me: error: cannot compute sizeof (void *)
21283 See \`config.log' for more details." >&2;}
21284 { (exit 77); exit 77; }; }
21286 ac_cv_sizeof_void_p=0
21290 cat >conftest.$ac_ext <<_ACEOF
21293 cat confdefs.h >>conftest.$ac_ext
21294 cat >>conftest.$ac_ext <<_ACEOF
21295 /* end confdefs.h. */
21296 $ac_includes_default
21297 typedef void * ac__type_sizeof_;
21298 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21299 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21301 #include <stdlib.h>
21306 FILE *f = fopen ("conftest.val", "w");
21309 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21311 long int i = longval ();
21312 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21314 fprintf (f, "%ld\n", i);
21318 unsigned long int i = ulongval ();
21319 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21321 fprintf (f, "%lu\n", i);
21323 return ferror (f) || fclose (f) != 0;
21329 rm -f conftest$ac_exeext
21330 if { (ac_try="$ac_link"
21331 case "(($ac_try" in
21332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21333 *) ac_try_echo=$ac_try;;
21335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21336 (eval "$ac_link") 2>&5
21338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21339 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21340 { (case "(($ac_try" in
21341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21342 *) ac_try_echo=$ac_try;;
21344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21345 (eval "$ac_try") 2>&5
21347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21348 (exit $ac_status); }; }; then
21349 ac_cv_sizeof_void_p=`cat conftest.val`
21351 echo "$as_me: program exited with status $ac_status" >&5
21352 echo "$as_me: failed program was:" >&5
21353 sed 's/^/| /' conftest.$ac_ext >&5
21355 ( exit $ac_status )
21356 if test "$ac_cv_type_void_p" = yes; then
21357 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
21358 See \`config.log' for more details." >&5
21359 echo "$as_me: error: cannot compute sizeof (void *)
21360 See \`config.log' for more details." >&2;}
21361 { (exit 77); exit 77; }; }
21363 ac_cv_sizeof_void_p=0
21366 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21370 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
21371 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
21375 cat >>confdefs.h <<_ACEOF
21376 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
21381 # These are the types I need. We look for them in either stdint.h,
21382 # sys/types.h, or inttypes.h, all of which are part of the default-includes.
21383 { echo "$as_me:$LINENO: checking for uint16_t" >&5
21384 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
21385 if test "${ac_cv_type_uint16_t+set}" = set; then
21386 echo $ECHO_N "(cached) $ECHO_C" >&6
21388 cat >conftest.$ac_ext <<_ACEOF
21391 cat confdefs.h >>conftest.$ac_ext
21392 cat >>conftest.$ac_ext <<_ACEOF
21393 /* end confdefs.h. */
21394 $ac_includes_default
21395 typedef uint16_t ac__type_new_;
21399 if ((ac__type_new_ *) 0)
21401 if (sizeof (ac__type_new_))
21407 rm -f conftest.$ac_objext
21408 if { (ac_try="$ac_compile"
21409 case "(($ac_try" in
21410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21411 *) ac_try_echo=$ac_try;;
21413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21414 (eval "$ac_compile") 2>conftest.er1
21416 grep -v '^ *+' conftest.er1 >conftest.err
21418 cat conftest.err >&5
21419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21420 (exit $ac_status); } && {
21421 test -z "$ac_c_werror_flag" ||
21422 test ! -s conftest.err
21423 } && test -s conftest.$ac_objext; then
21424 ac_cv_type_uint16_t=yes
21426 echo "$as_me: failed program was:" >&5
21427 sed 's/^/| /' conftest.$ac_ext >&5
21429 ac_cv_type_uint16_t=no
21432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21434 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
21435 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
21436 if test $ac_cv_type_uint16_t = yes; then
21437 ac_cv_have_uint16_t=1
21439 ac_cv_have_uint16_t=0
21442 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
21443 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
21444 if test "${ac_cv_type_u_int16_t+set}" = set; then
21445 echo $ECHO_N "(cached) $ECHO_C" >&6
21447 cat >conftest.$ac_ext <<_ACEOF
21450 cat confdefs.h >>conftest.$ac_ext
21451 cat >>conftest.$ac_ext <<_ACEOF
21452 /* end confdefs.h. */
21453 $ac_includes_default
21454 typedef u_int16_t ac__type_new_;
21458 if ((ac__type_new_ *) 0)
21460 if (sizeof (ac__type_new_))
21466 rm -f conftest.$ac_objext
21467 if { (ac_try="$ac_compile"
21468 case "(($ac_try" in
21469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21470 *) ac_try_echo=$ac_try;;
21472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21473 (eval "$ac_compile") 2>conftest.er1
21475 grep -v '^ *+' conftest.er1 >conftest.err
21477 cat conftest.err >&5
21478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21479 (exit $ac_status); } && {
21480 test -z "$ac_c_werror_flag" ||
21481 test ! -s conftest.err
21482 } && test -s conftest.$ac_objext; then
21483 ac_cv_type_u_int16_t=yes
21485 echo "$as_me: failed program was:" >&5
21486 sed 's/^/| /' conftest.$ac_ext >&5
21488 ac_cv_type_u_int16_t=no
21491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21493 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
21494 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
21495 if test $ac_cv_type_u_int16_t = yes; then
21496 ac_cv_have_u_int16_t=1
21498 ac_cv_have_u_int16_t=0
21501 { echo "$as_me:$LINENO: checking for __uint16" >&5
21502 echo $ECHO_N "checking for __uint16... $ECHO_C" >&6; }
21503 if test "${ac_cv_type___uint16+set}" = set; then
21504 echo $ECHO_N "(cached) $ECHO_C" >&6
21506 cat >conftest.$ac_ext <<_ACEOF
21509 cat confdefs.h >>conftest.$ac_ext
21510 cat >>conftest.$ac_ext <<_ACEOF
21511 /* end confdefs.h. */
21512 $ac_includes_default
21513 typedef __uint16 ac__type_new_;
21517 if ((ac__type_new_ *) 0)
21519 if (sizeof (ac__type_new_))
21525 rm -f conftest.$ac_objext
21526 if { (ac_try="$ac_compile"
21527 case "(($ac_try" in
21528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21529 *) ac_try_echo=$ac_try;;
21531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21532 (eval "$ac_compile") 2>conftest.er1
21534 grep -v '^ *+' conftest.er1 >conftest.err
21536 cat conftest.err >&5
21537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21538 (exit $ac_status); } && {
21539 test -z "$ac_c_werror_flag" ||
21540 test ! -s conftest.err
21541 } && test -s conftest.$ac_objext; then
21542 ac_cv_type___uint16=yes
21544 echo "$as_me: failed program was:" >&5
21545 sed 's/^/| /' conftest.$ac_ext >&5
21547 ac_cv_type___uint16=no
21550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21552 { echo "$as_me:$LINENO: result: $ac_cv_type___uint16" >&5
21553 echo "${ECHO_T}$ac_cv_type___uint16" >&6; }
21554 if test $ac_cv_type___uint16 = yes; then
21555 ac_cv_have___uint16=1
21557 ac_cv_have___uint16=0
21561 { echo "$as_me:$LINENO: checking for sigaltstack" >&5
21562 echo $ECHO_N "checking for sigaltstack... $ECHO_C" >&6; }
21563 if test "${ac_cv_func_sigaltstack+set}" = set; then
21564 echo $ECHO_N "(cached) $ECHO_C" >&6
21566 cat >conftest.$ac_ext <<_ACEOF
21569 cat confdefs.h >>conftest.$ac_ext
21570 cat >>conftest.$ac_ext <<_ACEOF
21571 /* end confdefs.h. */
21572 /* Define sigaltstack to an innocuous variant, in case <limits.h> declares sigaltstack.
21573 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21574 #define sigaltstack innocuous_sigaltstack
21576 /* System header to define __stub macros and hopefully few prototypes,
21577 which can conflict with char sigaltstack (); below.
21578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21579 <limits.h> exists even on freestanding compilers. */
21582 # include <limits.h>
21584 # include <assert.h>
21589 /* Override any GCC internal prototype to avoid an error.
21590 Use char because int might match the return type of a GCC
21591 builtin and then its argument prototype would still apply. */
21595 char sigaltstack ();
21596 /* The GNU C library defines this for functions which it implements
21597 to always fail with ENOSYS. Some functions are actually named
21598 something starting with __ and the normal name is an alias. */
21599 #if defined __stub_sigaltstack || defined __stub___sigaltstack
21606 return sigaltstack ();
21611 rm -f conftest.$ac_objext conftest$ac_exeext
21612 if { (ac_try="$ac_link"
21613 case "(($ac_try" in
21614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21615 *) ac_try_echo=$ac_try;;
21617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21618 (eval "$ac_link") 2>conftest.er1
21620 grep -v '^ *+' conftest.er1 >conftest.err
21622 cat conftest.err >&5
21623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21624 (exit $ac_status); } && {
21625 test -z "$ac_c_werror_flag" ||
21626 test ! -s conftest.err
21627 } && test -s conftest$ac_exeext &&
21628 $as_test_x conftest$ac_exeext; then
21629 ac_cv_func_sigaltstack=yes
21631 echo "$as_me: failed program was:" >&5
21632 sed 's/^/| /' conftest.$ac_ext >&5
21634 ac_cv_func_sigaltstack=no
21637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21638 conftest$ac_exeext conftest.$ac_ext
21640 { echo "$as_me:$LINENO: result: $ac_cv_func_sigaltstack" >&5
21641 echo "${ECHO_T}$ac_cv_func_sigaltstack" >&6; }
21642 if test $ac_cv_func_sigaltstack = yes; then
21644 cat >>confdefs.h <<\_ACEOF
21645 #define HAVE_SIGALTSTACK 1
21650 { echo "$as_me:$LINENO: checking for dladdr" >&5
21651 echo $ECHO_N "checking for dladdr... $ECHO_C" >&6; }
21652 if test "${ac_cv_func_dladdr+set}" = set; then
21653 echo $ECHO_N "(cached) $ECHO_C" >&6
21655 cat >conftest.$ac_ext <<_ACEOF
21658 cat confdefs.h >>conftest.$ac_ext
21659 cat >>conftest.$ac_ext <<_ACEOF
21660 /* end confdefs.h. */
21661 /* Define dladdr to an innocuous variant, in case <limits.h> declares dladdr.
21662 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21663 #define dladdr innocuous_dladdr
21665 /* System header to define __stub macros and hopefully few prototypes,
21666 which can conflict with char dladdr (); below.
21667 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21668 <limits.h> exists even on freestanding compilers. */
21671 # include <limits.h>
21673 # include <assert.h>
21678 /* Override any GCC internal prototype to avoid an error.
21679 Use char because int might match the return type of a GCC
21680 builtin and then its argument prototype would still apply. */
21685 /* The GNU C library defines this for functions which it implements
21686 to always fail with ENOSYS. Some functions are actually named
21687 something starting with __ and the normal name is an alias. */
21688 #if defined __stub_dladdr || defined __stub___dladdr
21700 rm -f conftest.$ac_objext conftest$ac_exeext
21701 if { (ac_try="$ac_link"
21702 case "(($ac_try" in
21703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21704 *) ac_try_echo=$ac_try;;
21706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21707 (eval "$ac_link") 2>conftest.er1
21709 grep -v '^ *+' conftest.er1 >conftest.err
21711 cat conftest.err >&5
21712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21713 (exit $ac_status); } && {
21714 test -z "$ac_c_werror_flag" ||
21715 test ! -s conftest.err
21716 } && test -s conftest$ac_exeext &&
21717 $as_test_x conftest$ac_exeext; then
21718 ac_cv_func_dladdr=yes
21720 echo "$as_me: failed program was:" >&5
21721 sed 's/^/| /' conftest.$ac_ext >&5
21723 ac_cv_func_dladdr=no
21726 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21727 conftest$ac_exeext conftest.$ac_ext
21729 { echo "$as_me:$LINENO: result: $ac_cv_func_dladdr" >&5
21730 echo "${ECHO_T}$ac_cv_func_dladdr" >&6; }
21731 if test $ac_cv_func_dladdr = yes; then
21733 cat >>confdefs.h <<\_ACEOF
21734 #define HAVE_DLADDR 1
21741 { echo "$as_me:$LINENO: checking for __attribute__" >&5
21742 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
21743 if test "${ac_cv___attribute__+set}" = set; then
21744 echo $ECHO_N "(cached) $ECHO_C" >&6
21747 cat >conftest.$ac_ext <<_ACEOF
21750 cat confdefs.h >>conftest.$ac_ext
21751 cat >>conftest.$ac_ext <<_ACEOF
21752 /* end confdefs.h. */
21753 #include <stdlib.h>
21754 static void foo(void) __attribute__ ((unused));
21755 void foo(void) { exit(1); }
21764 rm -f conftest.$ac_objext
21765 if { (ac_try="$ac_compile"
21766 case "(($ac_try" in
21767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21768 *) ac_try_echo=$ac_try;;
21770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21771 (eval "$ac_compile") 2>conftest.er1
21773 grep -v '^ *+' conftest.er1 >conftest.err
21775 cat conftest.err >&5
21776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21777 (exit $ac_status); } && {
21778 test -z "$ac_c_werror_flag" ||
21779 test ! -s conftest.err
21780 } && test -s conftest.$ac_objext; then
21781 ac_cv___attribute__=yes
21783 echo "$as_me: failed program was:" >&5
21784 sed 's/^/| /' conftest.$ac_ext >&5
21786 ac_cv___attribute__=no
21790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21793 if test "$ac_cv___attribute__" = "yes"; then
21795 cat >>confdefs.h <<\_ACEOF
21796 #define HAVE___ATTRIBUTE__ 1
21800 { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
21801 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
21803 # We only care about these two attributes.
21804 if test x"$ac_cv___attribute__" = x"yes"; then
21805 ac_cv___attribute___noreturn="__attribute__ ((noreturn))"
21806 ac_cv___attribute___printf_4_5="__attribute__((__format__ (__printf__, 4, 5)))"
21808 ac_cv___attribute___noreturn=
21809 ac_cv___attribute___printf_4_5=
21813 { echo "$as_me:$LINENO: checking for __builtin_expect" >&5
21814 echo $ECHO_N "checking for __builtin_expect... $ECHO_C" >&6; }
21815 if test "${ac_cv___builtin_expect+set}" = set; then
21816 echo $ECHO_N "(cached) $ECHO_C" >&6
21819 cat >conftest.$ac_ext <<_ACEOF
21822 cat confdefs.h >>conftest.$ac_ext
21823 cat >>conftest.$ac_ext <<_ACEOF
21824 /* end confdefs.h. */
21825 int foo(void) { if (__builtin_expect(0, 0)) return 1; return 0; }
21834 rm -f conftest.$ac_objext
21835 if { (ac_try="$ac_compile"
21836 case "(($ac_try" in
21837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21838 *) ac_try_echo=$ac_try;;
21840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21841 (eval "$ac_compile") 2>conftest.er1
21843 grep -v '^ *+' conftest.er1 >conftest.err
21845 cat conftest.err >&5
21846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21847 (exit $ac_status); } && {
21848 test -z "$ac_c_werror_flag" ||
21849 test ! -s conftest.err
21850 } && test -s conftest.$ac_objext; then
21851 ac_cv___builtin_expect=yes
21853 echo "$as_me: failed program was:" >&5
21854 sed 's/^/| /' conftest.$ac_ext >&5
21856 ac_cv___builtin_expect=no
21860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21863 if test "$ac_cv___builtin_expect" = "yes"; then
21865 cat >>confdefs.h <<\_ACEOF
21866 #define HAVE___BUILTIN_EXPECT 1
21870 { echo "$as_me:$LINENO: result: $ac_cv___builtin_expect" >&5
21871 echo "${ECHO_T}$ac_cv___builtin_expect" >&6; }
21873 if test x"$ac_cv___builtin_expect" = x"yes"; then
21874 ac_cv_have___builtin_expect=1
21876 ac_cv_have___builtin_expect=0
21880 { echo "$as_me:$LINENO: checking for __sync_val_compare_and_swap" >&5
21881 echo $ECHO_N "checking for __sync_val_compare_and_swap... $ECHO_C" >&6; }
21882 if test "${ac_cv___sync_val_compare_and_swap+set}" = set; then
21883 echo $ECHO_N "(cached) $ECHO_C" >&6
21886 cat >conftest.$ac_ext <<_ACEOF
21889 cat confdefs.h >>conftest.$ac_ext
21890 cat >>conftest.$ac_ext <<_ACEOF
21891 /* end confdefs.h. */
21892 int main() { int a; if (__sync_val_compare_and_swap(&a, 0, 1)) return 1; return 0; }
21901 rm -f conftest.$ac_objext conftest$ac_exeext
21902 if { (ac_try="$ac_link"
21903 case "(($ac_try" in
21904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21905 *) ac_try_echo=$ac_try;;
21907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21908 (eval "$ac_link") 2>conftest.er1
21910 grep -v '^ *+' conftest.er1 >conftest.err
21912 cat conftest.err >&5
21913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21914 (exit $ac_status); } && {
21915 test -z "$ac_c_werror_flag" ||
21916 test ! -s conftest.err
21917 } && test -s conftest$ac_exeext &&
21918 $as_test_x conftest$ac_exeext; then
21919 ac_cv___sync_val_compare_and_swap=yes
21921 echo "$as_me: failed program was:" >&5
21922 sed 's/^/| /' conftest.$ac_ext >&5
21924 ac_cv___sync_val_compare_and_swap=no
21928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21929 conftest$ac_exeext conftest.$ac_ext
21932 if test "$ac_cv___sync_val_compare_and_swap" = "yes"; then
21934 cat >>confdefs.h <<\_ACEOF
21935 #define HAVE___SYNC_VAL_COMPARE_AND_SWAP 1
21939 { echo "$as_me:$LINENO: result: $ac_cv___sync_val_compare_and_swap" >&5
21940 echo "${ECHO_T}$ac_cv___sync_val_compare_and_swap" >&6; }
21943 # On x86_64, instead of libunwind, we can choose to compile with frame-pointers
21944 # (This isn't needed on i386, where -fno-omit-frame-pointer is the default).
21945 # Check whether --enable-frame_pointers was given.
21946 if test "${enable_frame_pointers+set}" = set; then
21947 enableval=$enable_frame_pointers; enable_frame_pointers=no
21950 cat >conftest.$ac_ext <<_ACEOF
21953 cat confdefs.h >>conftest.$ac_ext
21954 cat >>conftest.$ac_ext <<_ACEOF
21955 /* end confdefs.h. */
21960 return __x86_64__ == 1 ? 0 : 1
21965 rm -f conftest.$ac_objext
21966 if { (ac_try="$ac_compile"
21967 case "(($ac_try" in
21968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21969 *) ac_try_echo=$ac_try;;
21971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21972 (eval "$ac_compile") 2>conftest.er1
21974 grep -v '^ *+' conftest.er1 >conftest.err
21976 cat conftest.err >&5
21977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21978 (exit $ac_status); } && {
21979 test -z "$ac_c_werror_flag" ||
21980 test ! -s conftest.err
21981 } && test -s conftest.$ac_objext; then
21984 echo "$as_me: failed program was:" >&5
21985 sed 's/^/| /' conftest.$ac_ext >&5
21990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21991 if test "$enable_frame_pointers" = yes; then
21992 ENABLE_FRAME_POINTERS_TRUE=
21993 ENABLE_FRAME_POINTERS_FALSE='#'
21995 ENABLE_FRAME_POINTERS_TRUE='#'
21996 ENABLE_FRAME_POINTERS_FALSE=
21999 if test "$is_x86_64" = yes; then
22008 # Some of the code in this directory depends on pthreads
22013 ac_cpp='$CPP $CPPFLAGS'
22014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22020 # We used to check for pthread.h first, but this fails if pthread.h
22021 # requires special compiler flags (e.g. on True64 or Sequent).
22022 # It gets checked for in the link test anyway.
22024 # First of all, check if the user has set any of the PTHREAD_LIBS,
22025 # etcetera environment variables, and if threads linking works using
22027 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
22028 save_CFLAGS="$CFLAGS"
22029 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22031 LIBS="$PTHREAD_LIBS $LIBS"
22032 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
22033 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
22034 cat >conftest.$ac_ext <<_ACEOF
22037 cat confdefs.h >>conftest.$ac_ext
22038 cat >>conftest.$ac_ext <<_ACEOF
22039 /* end confdefs.h. */
22041 /* Override any GCC internal prototype to avoid an error.
22042 Use char because int might match the return type of a GCC
22043 builtin and then its argument prototype would still apply. */
22047 char pthread_join ();
22051 return pthread_join ();
22056 rm -f conftest.$ac_objext conftest$ac_exeext
22057 if { (ac_try="$ac_link"
22058 case "(($ac_try" in
22059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22060 *) ac_try_echo=$ac_try;;
22062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22063 (eval "$ac_link") 2>conftest.er1
22065 grep -v '^ *+' conftest.er1 >conftest.err
22067 cat conftest.err >&5
22068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22069 (exit $ac_status); } && {
22070 test -z "$ac_c_werror_flag" ||
22071 test ! -s conftest.err
22072 } && test -s conftest$ac_exeext &&
22073 $as_test_x conftest$ac_exeext; then
22076 echo "$as_me: failed program was:" >&5
22077 sed 's/^/| /' conftest.$ac_ext >&5
22082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22083 conftest$ac_exeext conftest.$ac_ext
22084 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22085 echo "${ECHO_T}$acx_pthread_ok" >&6; }
22086 if test x"$acx_pthread_ok" = xno; then
22091 CFLAGS="$save_CFLAGS"
22094 # We must check for the threads library under a number of different
22095 # names; the ordering is very important because some systems
22096 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
22097 # libraries is broken (non-POSIX).
22099 # Create a list of thread flags to try. Items starting with a "-" are
22100 # C compiler flags, and other items are library names, except for "none"
22101 # which indicates that we try without any flags at all, and "pthread-config"
22102 # which is a program returning the flags for the Pth emulation library.
22104 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
22106 # The ordering *is* (sometimes) important. Some notes on the
22107 # individual items follow:
22109 # pthreads: AIX (must check this before -lpthread)
22110 # none: in case threads are in libc; should be tried before -Kthread and
22111 # other compiler flags to prevent continual compiler warnings
22112 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
22113 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
22114 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
22115 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
22116 # -pthreads: Solaris/gcc
22117 # -mthreads: Mingw32/gcc, Lynx/gcc
22118 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
22119 # doesn't hurt to check since this sometimes defines pthreads too;
22120 # also defines -D_REENTRANT)
22121 # ... -mt is also the pthreads flag for HP/aCC
22122 # pthread: Linux, etcetera
22123 # --thread-safe: KAI C++
22124 # pthread-config: use pthread-config program (for GNU Pth library)
22126 case "${host_cpu}-${host_os}" in
22129 # On Solaris (at least, for some versions), libc contains stubbed
22130 # (non-functional) versions of the pthreads routines, so link-based
22131 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
22132 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
22133 # a function called by this macro, so we could check for that, but
22134 # who knows whether they'll stub that too in a future libc.) So,
22135 # we'll just look for -pthreads and -lpthread first:
22137 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
22141 if test x"$acx_pthread_ok" = xno; then
22142 for flag in $acx_pthread_flags; do
22146 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
22147 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
22151 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
22152 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
22153 PTHREAD_CFLAGS="$flag"
22157 # Extract the first word of "pthread-config", so it can be a program name with args.
22158 set dummy pthread-config; ac_word=$2
22159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22161 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
22162 echo $ECHO_N "(cached) $ECHO_C" >&6
22164 if test -n "$acx_pthread_config"; then
22165 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
22167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22168 for as_dir in $PATH
22171 test -z "$as_dir" && as_dir=.
22172 for ac_exec_ext in '' $ac_executable_extensions; do
22173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22174 ac_cv_prog_acx_pthread_config="yes"
22175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22182 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
22185 acx_pthread_config=$ac_cv_prog_acx_pthread_config
22186 if test -n "$acx_pthread_config"; then
22187 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
22188 echo "${ECHO_T}$acx_pthread_config" >&6; }
22190 { echo "$as_me:$LINENO: result: no" >&5
22191 echo "${ECHO_T}no" >&6; }
22195 if test x"$acx_pthread_config" = xno; then continue; fi
22196 PTHREAD_CFLAGS="`pthread-config --cflags`"
22197 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
22201 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
22202 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
22203 PTHREAD_LIBS="-l$flag"
22208 save_CFLAGS="$CFLAGS"
22209 LIBS="$PTHREAD_LIBS $LIBS"
22210 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22212 # Check for various functions. We must include pthread.h,
22213 # since some functions may be macros. (On the Sequent, we
22214 # need a special flag -Kthread to make this header compile.)
22215 # We check for pthread_join because it is in -lpthread on IRIX
22216 # while pthread_create is in libc. We check for pthread_attr_init
22217 # due to DEC craziness with -lpthreads. We check for
22218 # pthread_cleanup_push because it is one of the few pthread
22219 # functions on Solaris that doesn't have a non-functional libc stub.
22220 # We try pthread_create on general principles.
22221 cat >conftest.$ac_ext <<_ACEOF
22224 cat confdefs.h >>conftest.$ac_ext
22225 cat >>conftest.$ac_ext <<_ACEOF
22226 /* end confdefs.h. */
22227 #include <pthread.h>
22231 pthread_t th; pthread_join(th, 0);
22232 pthread_attr_init(0); pthread_cleanup_push(0, 0);
22233 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
22238 rm -f conftest.$ac_objext conftest$ac_exeext
22239 if { (ac_try="$ac_link"
22240 case "(($ac_try" in
22241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22242 *) ac_try_echo=$ac_try;;
22244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22245 (eval "$ac_link") 2>conftest.er1
22247 grep -v '^ *+' conftest.er1 >conftest.err
22249 cat conftest.err >&5
22250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22251 (exit $ac_status); } && {
22252 test -z "$ac_c_werror_flag" ||
22253 test ! -s conftest.err
22254 } && test -s conftest$ac_exeext &&
22255 $as_test_x conftest$ac_exeext; then
22258 echo "$as_me: failed program was:" >&5
22259 sed 's/^/| /' conftest.$ac_ext >&5
22264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22265 conftest$ac_exeext conftest.$ac_ext
22268 CFLAGS="$save_CFLAGS"
22270 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22271 echo "${ECHO_T}$acx_pthread_ok" >&6; }
22272 if test "x$acx_pthread_ok" = xyes; then
22281 # Various other checks:
22282 if test "x$acx_pthread_ok" = xyes; then
22284 LIBS="$PTHREAD_LIBS $LIBS"
22285 save_CFLAGS="$CFLAGS"
22286 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22288 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
22289 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
22290 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
22292 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
22293 cat >conftest.$ac_ext <<_ACEOF
22296 cat confdefs.h >>conftest.$ac_ext
22297 cat >>conftest.$ac_ext <<_ACEOF
22298 /* end confdefs.h. */
22299 #include <pthread.h>
22303 int attr=$attr; return attr;
22308 rm -f conftest.$ac_objext conftest$ac_exeext
22309 if { (ac_try="$ac_link"
22310 case "(($ac_try" in
22311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22312 *) ac_try_echo=$ac_try;;
22314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22315 (eval "$ac_link") 2>conftest.er1
22317 grep -v '^ *+' conftest.er1 >conftest.err
22319 cat conftest.err >&5
22320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22321 (exit $ac_status); } && {
22322 test -z "$ac_c_werror_flag" ||
22323 test ! -s conftest.err
22324 } && test -s conftest$ac_exeext &&
22325 $as_test_x conftest$ac_exeext; then
22326 attr_name=$attr; break
22328 echo "$as_me: failed program was:" >&5
22329 sed 's/^/| /' conftest.$ac_ext >&5
22334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22335 conftest$ac_exeext conftest.$ac_ext
22337 { echo "$as_me:$LINENO: result: $attr_name" >&5
22338 echo "${ECHO_T}$attr_name" >&6; }
22339 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
22341 cat >>confdefs.h <<_ACEOF
22342 #define PTHREAD_CREATE_JOINABLE $attr_name
22347 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
22348 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
22350 case "${host_cpu}-${host_os}" in
22351 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
22352 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
22354 { echo "$as_me:$LINENO: result: ${flag}" >&5
22355 echo "${ECHO_T}${flag}" >&6; }
22356 if test "x$flag" != xno; then
22357 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
22361 CFLAGS="$save_CFLAGS"
22362 # More AIX lossage: must compile with xlc_r or cc_r
22363 if test x"$GCC" != xyes; then
22364 for ac_prog in xlc_r cc_r
22366 # Extract the first word of "$ac_prog", so it can be a program name with args.
22367 set dummy $ac_prog; ac_word=$2
22368 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22370 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
22371 echo $ECHO_N "(cached) $ECHO_C" >&6
22373 if test -n "$PTHREAD_CC"; then
22374 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
22376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22377 for as_dir in $PATH
22380 test -z "$as_dir" && as_dir=.
22381 for ac_exec_ext in '' $ac_executable_extensions; do
22382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22383 ac_cv_prog_PTHREAD_CC="$ac_prog"
22384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22393 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
22394 if test -n "$PTHREAD_CC"; then
22395 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
22396 echo "${ECHO_T}$PTHREAD_CC" >&6; }
22398 { echo "$as_me:$LINENO: result: no" >&5
22399 echo "${ECHO_T}no" >&6; }
22403 test -n "$PTHREAD_CC" && break
22405 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
22411 # The next part tries to detect GCC inconsistency with -shared on some
22412 # architectures and systems. The problem is that in certain
22413 # configurations, when -shared is specified, GCC "forgets" to
22414 # internally use various flags which are still necessary.
22416 { echo "$as_me:$LINENO: checking whether to check for GCC pthread/shared inconsistencies" >&5
22417 echo $ECHO_N "checking whether to check for GCC pthread/shared inconsistencies... $ECHO_C" >&6; }
22418 check_inconsistencies=yes
22419 case "${host_cpu}-${host_os}" in
22420 *-darwin*) check_inconsistencies=no ;;
22422 if test x"$GCC" != xyes -o "x$check_inconsistencies" != xyes ; then
22423 { echo "$as_me:$LINENO: result: no" >&5
22424 echo "${ECHO_T}no" >&6; }
22426 { echo "$as_me:$LINENO: result: yes" >&5
22427 echo "${ECHO_T}yes" >&6; }
22429 # In order not to create several levels of indentation, we test
22430 # the value of "$ok" until we find out the cure or run out of
22435 # Prepare the flags
22437 save_CFLAGS="$CFLAGS"
22440 # Try with the flags determined by the earlier checks.
22442 # -Wl,-z,defs forces link-time symbol resolution, so that the
22443 # linking checks with -shared actually have any value
22445 # FIXME: -fPIC is required for -shared on many architectures,
22446 # so we specify it here, but the right way would probably be to
22447 # properly detect whether it is actually required.
22448 CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS"
22449 LIBS="$PTHREAD_LIBS $LIBS"
22452 { echo "$as_me:$LINENO: checking whether -pthread is sufficient with -shared" >&5
22453 echo $ECHO_N "checking whether -pthread is sufficient with -shared... $ECHO_C" >&6; }
22454 cat >conftest.$ac_ext <<_ACEOF
22457 cat confdefs.h >>conftest.$ac_ext
22458 cat >>conftest.$ac_ext <<_ACEOF
22459 /* end confdefs.h. */
22460 #include <pthread.h>
22464 pthread_t th; pthread_join(th, 0);
22465 pthread_attr_init(0); pthread_cleanup_push(0, 0);
22466 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
22471 rm -f conftest.$ac_objext conftest$ac_exeext
22472 if { (ac_try="$ac_link"
22473 case "(($ac_try" in
22474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22475 *) ac_try_echo=$ac_try;;
22477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22478 (eval "$ac_link") 2>conftest.er1
22480 grep -v '^ *+' conftest.er1 >conftest.err
22482 cat conftest.err >&5
22483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22484 (exit $ac_status); } && {
22485 test -z "$ac_c_werror_flag" ||
22486 test ! -s conftest.err
22487 } && test -s conftest$ac_exeext &&
22488 $as_test_x conftest$ac_exeext; then
22491 echo "$as_me: failed program was:" >&5
22492 sed 's/^/| /' conftest.$ac_ext >&5
22497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22498 conftest$ac_exeext conftest.$ac_ext
22500 if test "x$ok" = xyes; then
22501 { echo "$as_me:$LINENO: result: yes" >&5
22502 echo "${ECHO_T}yes" >&6; }
22504 { echo "$as_me:$LINENO: result: no" >&5
22505 echo "${ECHO_T}no" >&6; }
22509 # Linux gcc on some architectures such as mips/mipsel forgets
22512 if test x"$ok" = xno; then
22513 { echo "$as_me:$LINENO: checking whether -lpthread fixes that" >&5
22514 echo $ECHO_N "checking whether -lpthread fixes that... $ECHO_C" >&6; }
22515 LIBS="-lpthread $PTHREAD_LIBS $save_LIBS"
22516 cat >conftest.$ac_ext <<_ACEOF
22519 cat confdefs.h >>conftest.$ac_ext
22520 cat >>conftest.$ac_ext <<_ACEOF
22521 /* end confdefs.h. */
22522 #include <pthread.h>
22526 pthread_t th; pthread_join(th, 0);
22527 pthread_attr_init(0); pthread_cleanup_push(0, 0);
22528 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
22533 rm -f conftest.$ac_objext conftest$ac_exeext
22534 if { (ac_try="$ac_link"
22535 case "(($ac_try" in
22536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22537 *) ac_try_echo=$ac_try;;
22539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22540 (eval "$ac_link") 2>conftest.er1
22542 grep -v '^ *+' conftest.er1 >conftest.err
22544 cat conftest.err >&5
22545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22546 (exit $ac_status); } && {
22547 test -z "$ac_c_werror_flag" ||
22548 test ! -s conftest.err
22549 } && test -s conftest$ac_exeext &&
22550 $as_test_x conftest$ac_exeext; then
22553 echo "$as_me: failed program was:" >&5
22554 sed 's/^/| /' conftest.$ac_ext >&5
22559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22560 conftest$ac_exeext conftest.$ac_ext
22562 if test "x$ok" = xyes; then
22563 { echo "$as_me:$LINENO: result: yes" >&5
22564 echo "${ECHO_T}yes" >&6; }
22565 PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
22567 { echo "$as_me:$LINENO: result: no" >&5
22568 echo "${ECHO_T}no" >&6; }
22572 # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc
22574 if test x"$ok" = xno; then
22575 { echo "$as_me:$LINENO: checking whether -lc_r fixes that" >&5
22576 echo $ECHO_N "checking whether -lc_r fixes that... $ECHO_C" >&6; }
22577 LIBS="-lc_r $PTHREAD_LIBS $save_LIBS"
22578 cat >conftest.$ac_ext <<_ACEOF
22581 cat confdefs.h >>conftest.$ac_ext
22582 cat >>conftest.$ac_ext <<_ACEOF
22583 /* end confdefs.h. */
22584 #include <pthread.h>
22588 pthread_t th; pthread_join(th, 0);
22589 pthread_attr_init(0); pthread_cleanup_push(0, 0);
22590 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
22595 rm -f conftest.$ac_objext conftest$ac_exeext
22596 if { (ac_try="$ac_link"
22597 case "(($ac_try" in
22598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22599 *) ac_try_echo=$ac_try;;
22601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22602 (eval "$ac_link") 2>conftest.er1
22604 grep -v '^ *+' conftest.er1 >conftest.err
22606 cat conftest.err >&5
22607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22608 (exit $ac_status); } && {
22609 test -z "$ac_c_werror_flag" ||
22610 test ! -s conftest.err
22611 } && test -s conftest$ac_exeext &&
22612 $as_test_x conftest$ac_exeext; then
22615 echo "$as_me: failed program was:" >&5
22616 sed 's/^/| /' conftest.$ac_ext >&5
22621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22622 conftest$ac_exeext conftest.$ac_ext
22624 if test "x$ok" = xyes; then
22625 { echo "$as_me:$LINENO: result: yes" >&5
22626 echo "${ECHO_T}yes" >&6; }
22627 PTHREAD_LIBS="-lc_r $PTHREAD_LIBS"
22629 { echo "$as_me:$LINENO: result: no" >&5
22630 echo "${ECHO_T}no" >&6; }
22633 if test x"$ok" = xno; then
22634 # OK, we have run out of ideas
22635 { echo "$as_me:$LINENO: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5
22636 echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;}
22638 # so it's not safe to assume that we may use pthreads
22642 CFLAGS="$save_CFLAGS"
22654 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
22655 if test x"$acx_pthread_ok" = xyes; then
22657 cat >>confdefs.h <<\_ACEOF
22658 #define HAVE_PTHREAD 1
22667 ac_cpp='$CPP $CPPFLAGS'
22668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22674 # Check if there is google-gflags library installed.
22675 { echo "$as_me:$LINENO: checking for main in -lgflags" >&5
22676 echo $ECHO_N "checking for main in -lgflags... $ECHO_C" >&6; }
22677 if test "${ac_cv_lib_gflags_main+set}" = set; then
22678 echo $ECHO_N "(cached) $ECHO_C" >&6
22680 ac_check_lib_save_LIBS=$LIBS
22681 LIBS="-lgflags $LIBS"
22682 cat >conftest.$ac_ext <<_ACEOF
22685 cat confdefs.h >>conftest.$ac_ext
22686 cat >>conftest.$ac_ext <<_ACEOF
22687 /* end confdefs.h. */
22698 rm -f conftest.$ac_objext conftest$ac_exeext
22699 if { (ac_try="$ac_link"
22700 case "(($ac_try" in
22701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22702 *) ac_try_echo=$ac_try;;
22704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22705 (eval "$ac_link") 2>conftest.er1
22707 grep -v '^ *+' conftest.er1 >conftest.err
22709 cat conftest.err >&5
22710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22711 (exit $ac_status); } && {
22712 test -z "$ac_c_werror_flag" ||
22713 test ! -s conftest.err
22714 } && test -s conftest$ac_exeext &&
22715 $as_test_x conftest$ac_exeext; then
22716 ac_cv_lib_gflags_main=yes
22718 echo "$as_me: failed program was:" >&5
22719 sed 's/^/| /' conftest.$ac_ext >&5
22721 ac_cv_lib_gflags_main=no
22724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22725 conftest$ac_exeext conftest.$ac_ext
22726 LIBS=$ac_check_lib_save_LIBS
22728 { echo "$as_me:$LINENO: result: $ac_cv_lib_gflags_main" >&5
22729 echo "${ECHO_T}$ac_cv_lib_gflags_main" >&6; }
22730 if test $ac_cv_lib_gflags_main = yes; then
22731 ac_cv_have_libgflags=1
22733 ac_cv_have_libgflags=0
22736 if test x"$ac_cv_have_libgflags" = x"1"; then
22737 GFLAGS_LIBS=-lgflags
22739 cat >>confdefs.h <<\_ACEOF
22740 #define HAVE_LIB_GFLAGS 1
22747 # We'd like to use read/write locks in several places in the code.
22748 # See if our pthreads support extends to that. Note: for linux, it
22749 # does as long as you define _XOPEN_SOURCE appropriately.
22750 { echo "$as_me:$LINENO: checking support for pthread_rwlock_* functions" >&5
22751 echo $ECHO_N "checking support for pthread_rwlock_* functions... $ECHO_C" >&6; }
22752 if test "${ac_rwlock+set}" = set; then
22753 echo $ECHO_N "(cached) $ECHO_C" >&6
22757 ac_cpp='$CPP $CPPFLAGS'
22758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22762 cat >conftest.$ac_ext <<_ACEOF
22765 cat confdefs.h >>conftest.$ac_ext
22766 cat >>conftest.$ac_ext <<_ACEOF
22767 /* end confdefs.h. */
22768 #define _XOPEN_SOURCE 500
22769 #include <pthread.h>
22773 pthread_rwlock_t l; pthread_rwlock_init(&l, NULL);
22774 pthread_rwlock_rdlock(&l);
22780 rm -f conftest.$ac_objext
22781 if { (ac_try="$ac_compile"
22782 case "(($ac_try" in
22783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22784 *) ac_try_echo=$ac_try;;
22786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22787 (eval "$ac_compile") 2>conftest.er1
22789 grep -v '^ *+' conftest.er1 >conftest.err
22791 cat conftest.err >&5
22792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22793 (exit $ac_status); } && {
22794 test -z "$ac_c_werror_flag" ||
22795 test ! -s conftest.err
22796 } && test -s conftest.$ac_objext; then
22799 echo "$as_me: failed program was:" >&5
22800 sed 's/^/| /' conftest.$ac_ext >&5
22805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22807 ac_cpp='$CPP $CPPFLAGS'
22808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22814 { echo "$as_me:$LINENO: result: $ac_rwlock" >&5
22815 echo "${ECHO_T}$ac_rwlock" >&6; }
22816 if test "$ac_rwlock" = yes; then
22818 cat >>confdefs.h <<\_ACEOF
22819 #define HAVE_RWLOCK 1
22825 # Find out what namespace 'normal' STL code lives in, and also what namespace
22826 # the user wants our classes to be defined in
22827 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
22828 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
22829 if test "${ac_cv_cxx_namespaces+set}" = set; then
22830 echo $ECHO_N "(cached) $ECHO_C" >&6
22834 ac_cpp='$CXXCPP $CPPFLAGS'
22835 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22836 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22837 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22839 cat >conftest.$ac_ext <<_ACEOF
22842 cat confdefs.h >>conftest.$ac_ext
22843 cat >>conftest.$ac_ext <<_ACEOF
22844 /* end confdefs.h. */
22846 namespace Inner { int i = 0; }}
22850 using namespace Outer::Inner; return i;
22855 rm -f conftest.$ac_objext
22856 if { (ac_try="$ac_compile"
22857 case "(($ac_try" in
22858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22859 *) ac_try_echo=$ac_try;;
22861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22862 (eval "$ac_compile") 2>conftest.er1
22864 grep -v '^ *+' conftest.er1 >conftest.err
22866 cat conftest.err >&5
22867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22868 (exit $ac_status); } && {
22869 test -z "$ac_cxx_werror_flag" ||
22870 test ! -s conftest.err
22871 } && test -s conftest.$ac_objext; then
22872 ac_cv_cxx_namespaces=yes
22874 echo "$as_me: failed program was:" >&5
22875 sed 's/^/| /' conftest.$ac_ext >&5
22877 ac_cv_cxx_namespaces=no
22880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22882 ac_cpp='$CPP $CPPFLAGS'
22883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22888 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
22889 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
22890 if test "$ac_cv_cxx_namespaces" = yes; then
22892 cat >>confdefs.h <<\_ACEOF
22893 #define HAVE_NAMESPACES 1
22897 { echo "$as_me:$LINENO: checking what namespace STL code is in" >&5
22898 echo $ECHO_N "checking what namespace STL code is in... $ECHO_C" >&6; }
22899 if test "${ac_cv_cxx_stl_namespace+set}" = set; then
22900 echo $ECHO_N "(cached) $ECHO_C" >&6
22905 ac_cpp='$CXXCPP $CPPFLAGS'
22906 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22907 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22908 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22910 cat >conftest.$ac_ext <<_ACEOF
22913 cat confdefs.h >>conftest.$ac_ext
22914 cat >>conftest.$ac_ext <<_ACEOF
22915 /* end confdefs.h. */
22920 vector<int> t; return 0;
22925 rm -f conftest.$ac_objext
22926 if { (ac_try="$ac_compile"
22927 case "(($ac_try" in
22928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22929 *) ac_try_echo=$ac_try;;
22931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22932 (eval "$ac_compile") 2>conftest.er1
22934 grep -v '^ *+' conftest.er1 >conftest.err
22936 cat conftest.err >&5
22937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22938 (exit $ac_status); } && {
22939 test -z "$ac_cxx_werror_flag" ||
22940 test ! -s conftest.err
22941 } && test -s conftest.$ac_objext; then
22942 ac_cv_cxx_stl_namespace=none
22944 echo "$as_me: failed program was:" >&5
22945 sed 's/^/| /' conftest.$ac_ext >&5
22950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22951 cat >conftest.$ac_ext <<_ACEOF
22954 cat confdefs.h >>conftest.$ac_ext
22955 cat >>conftest.$ac_ext <<_ACEOF
22956 /* end confdefs.h. */
22961 std::vector<int> t; return 0;
22966 rm -f conftest.$ac_objext
22967 if { (ac_try="$ac_compile"
22968 case "(($ac_try" in
22969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22970 *) ac_try_echo=$ac_try;;
22972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22973 (eval "$ac_compile") 2>conftest.er1
22975 grep -v '^ *+' conftest.er1 >conftest.err
22977 cat conftest.err >&5
22978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22979 (exit $ac_status); } && {
22980 test -z "$ac_cxx_werror_flag" ||
22981 test ! -s conftest.err
22982 } && test -s conftest.$ac_objext; then
22983 ac_cv_cxx_stl_namespace=std
22985 echo "$as_me: failed program was:" >&5
22986 sed 's/^/| /' conftest.$ac_ext >&5
22991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22993 ac_cpp='$CPP $CPPFLAGS'
22994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22999 { echo "$as_me:$LINENO: result: $ac_cv_cxx_stl_namespace" >&5
23000 echo "${ECHO_T}$ac_cv_cxx_stl_namespace" >&6; }
23001 if test "$ac_cv_cxx_stl_namespace" = none; then
23003 cat >>confdefs.h <<\_ACEOF
23004 #define STL_NAMESPACE
23008 if test "$ac_cv_cxx_stl_namespace" = std; then
23010 cat >>confdefs.h <<\_ACEOF
23011 #define STL_NAMESPACE std
23016 google_namespace_default=google
23017 # Check whether --enable-namespace was given.
23018 if test "${enable_namespace+set}" = set; then
23019 enableval=$enable_namespace; case "$enableval" in
23020 yes) google_namespace="$google_namespace_default" ;;
23021 no) google_namespace="" ;;
23022 *) google_namespace="$enableval" ;;
23025 google_namespace="$google_namespace_default"
23028 if test -n "$google_namespace"; then
23029 ac_google_namespace="$google_namespace"
23030 ac_google_start_namespace="namespace $google_namespace {"
23031 ac_google_end_namespace="}"
23033 ac_google_namespace=""
23034 ac_google_start_namespace=""
23035 ac_google_end_namespace=""
23038 cat >>confdefs.h <<_ACEOF
23039 #define GOOGLE_NAMESPACE $ac_google_namespace
23043 cat >>confdefs.h <<_ACEOF
23044 #define _START_GOOGLE_NAMESPACE_ $ac_google_start_namespace
23048 cat >>confdefs.h <<_ACEOF
23049 #define _END_GOOGLE_NAMESPACE_ $ac_google_end_namespace
23054 { echo "$as_me:$LINENO: checking whether compiler supports using ::operator<<" >&5
23055 echo $ECHO_N "checking whether compiler supports using ::operator<<... $ECHO_C" >&6; }
23056 if test "${ac_cv_cxx_using_operator+set}" = set; then
23057 echo $ECHO_N "(cached) $ECHO_C" >&6
23061 ac_cpp='$CXXCPP $CPPFLAGS'
23062 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23063 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23064 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23066 cat >conftest.$ac_ext <<_ACEOF
23069 cat confdefs.h >>conftest.$ac_ext
23070 cat >>conftest.$ac_ext <<_ACEOF
23071 /* end confdefs.h. */
23072 #include <iostream>
23073 std::ostream& operator<<(std::ostream&, struct s);
23077 using ::operator<<; return 0;
23082 rm -f conftest.$ac_objext
23083 if { (ac_try="$ac_compile"
23084 case "(($ac_try" in
23085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23086 *) ac_try_echo=$ac_try;;
23088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23089 (eval "$ac_compile") 2>conftest.er1
23091 grep -v '^ *+' conftest.er1 >conftest.err
23093 cat conftest.err >&5
23094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23095 (exit $ac_status); } && {
23096 test -z "$ac_cxx_werror_flag" ||
23097 test ! -s conftest.err
23098 } && test -s conftest.$ac_objext; then
23099 ac_cv_cxx_using_operator=1
23101 echo "$as_me: failed program was:" >&5
23102 sed 's/^/| /' conftest.$ac_ext >&5
23104 ac_cv_cxx_using_operator=0
23107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23109 ac_cpp='$CPP $CPPFLAGS'
23110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23115 { echo "$as_me:$LINENO: result: $ac_cv_cxx_using_operator" >&5
23116 echo "${ECHO_T}$ac_cv_cxx_using_operator" >&6; }
23117 if test "$ac_cv_cxx_using_operator" = 1; then
23119 cat >>confdefs.h <<\_ACEOF
23120 #define HAVE_USING_OPERATOR 1
23125 # We want to access the "PC" (Program Counter) register from a struct
23126 # ucontext. Every system has its own way of doing that. We try all the
23127 # possibilities we know about. Note REG_PC should come first (REG_RIP
23128 # is also defined on solaris, but does the wrong thing).
23129 { echo "$as_me:$LINENO: checking how to access the program counter from a struct ucontext" >&5
23130 echo $ECHO_N "checking how to access the program counter from a struct ucontext... $ECHO_C" >&6; }
23131 pc_fields=" uc_mcontext.gregs[REG_PC]" # Solaris x86 (32 + 64 bit)
23132 pc_fields="$pc_fields uc_mcontext.gregs[REG_EIP]" # Linux (i386)
23133 pc_fields="$pc_fields uc_mcontext.gregs[REG_RIP]" # Linux (x86_64)
23134 pc_fields="$pc_fields uc_mcontext.sc_ip" # Linux (ia64)
23135 pc_fields="$pc_fields uc_mcontext.uc_regs->gregs[PT_NIP]" # Linux (ppc)
23136 pc_fields="$pc_fields uc_mcontext.gregs[R15]" # Linux (arm old [untested])
23137 pc_fields="$pc_fields uc_mcontext.arm_pc" # Linux (arm new [untested])
23138 pc_fields="$pc_fields uc_mcontext.mc_eip" # FreeBSD (i386)
23139 pc_fields="$pc_fields uc_mcontext.mc_rip" # FreeBSD (x86_64 [untested])
23140 pc_fields="$pc_fields uc_mcontext->ss.eip" # OS X (i386, <=10.4)
23141 pc_fields="$pc_fields uc_mcontext->__ss.__eip" # OS X (i386, >=10.5)
23142 pc_fields="$pc_fields uc_mcontext->ss.rip" # OS X (x86_64)
23143 pc_fields="$pc_fields uc_mcontext->__ss.__rip" # OS X (>=10.5 [untested])
23144 pc_fields="$pc_fields uc_mcontext->ss.srr0" # OS X (ppc, ppc64 [untested])
23145 pc_fields="$pc_fields uc_mcontext->__ss.__srr0" # OS X (>=10.5 [untested])
23146 pc_field_found=false
23147 for pc_field in $pc_fields; do
23148 if ! $pc_field_found; then
23149 cat >conftest.$ac_ext <<_ACEOF
23152 cat confdefs.h >>conftest.$ac_ext
23153 cat >>conftest.$ac_ext <<_ACEOF
23154 /* end confdefs.h. */
23155 #define _GNU_SOURCE 1
23156 #include <ucontext.h>
23160 ucontext_t u; return u.$pc_field == 0;
23165 rm -f conftest.$ac_objext
23166 if { (ac_try="$ac_compile"
23167 case "(($ac_try" in
23168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23169 *) ac_try_echo=$ac_try;;
23171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23172 (eval "$ac_compile") 2>conftest.er1
23174 grep -v '^ *+' conftest.er1 >conftest.err
23176 cat conftest.err >&5
23177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23178 (exit $ac_status); } && {
23179 test -z "$ac_c_werror_flag" ||
23180 test ! -s conftest.err
23181 } && test -s conftest.$ac_objext; then
23183 cat >>confdefs.h <<_ACEOF
23184 #define PC_FROM_UCONTEXT $pc_field
23187 { echo "$as_me:$LINENO: result: $pc_field" >&5
23188 echo "${ECHO_T}$pc_field" >&6; }
23189 pc_field_found=true
23191 echo "$as_me: failed program was:" >&5
23192 sed 's/^/| /' conftest.$ac_ext >&5
23197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23200 if ! $pc_field_found; then
23201 { echo "$as_me:$LINENO: WARNING: Could not find the PC. Will not output failed addresses..." >&5
23202 echo "$as_me: WARNING: Could not find the PC. Will not output failed addresses..." >&2;}
23205 # These are what's needed by logging.h.in and raw_logging.h.in
23222 # Write generated configuration file
23223 ac_config_files="$ac_config_files Makefile src/glog/logging.h src/glog/raw_logging.h src/glog/vlog_is_on.h src/glog/stl_logging.h"
23225 cat >confcache <<\_ACEOF
23226 # This file is a shell script that caches the results of configure
23227 # tests run on this system so they can be shared between configure
23228 # scripts and configure runs, see configure's option --config-cache.
23229 # It is not useful on other systems. If it contains results you don't
23230 # want to keep, you may remove or edit it.
23232 # config.status only pays attention to the cache file if you give it
23233 # the --recheck option to rerun configure.
23235 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23236 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23237 # following values.
23241 # The following way of writing the cache mishandles newlines in values,
23242 # but we know of no workaround that is simple, portable, and efficient.
23243 # So, we kill variables containing newlines.
23244 # Ultrix sh set writes to stderr and can't be redirected directly,
23245 # and sets the high bit in the cache file unless we assign to the vars.
23247 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23248 eval ac_val=\$$ac_var
23252 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23253 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23256 _ | IFS | as_nl) ;; #(
23257 *) $as_unset $ac_var ;;
23263 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23264 *${as_nl}ac_space=\ *)
23265 # `set' does not quote correctly, so add quotes (double-quote
23266 # substitution turns \\\\ into \\, and sed turns \\ into \).
23269 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23272 # `set' quotes correctly as required by POSIX, so do not add quotes.
23273 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23282 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23284 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23286 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23287 if test -w "$cache_file"; then
23288 test "x$cache_file" != "x/dev/null" &&
23289 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23290 echo "$as_me: updating cache $cache_file" >&6;}
23291 cat confcache >$cache_file
23293 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23294 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23299 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23300 # Let make expand exec_prefix.
23301 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23303 DEFS=-DHAVE_CONFIG_H
23307 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23308 # 1. Remove the extension, and $U if already installed.
23309 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23310 ac_i=`echo "$ac_i" | sed "$ac_script"`
23311 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23312 # will be set to the directory where LIBOBJS objects are built.
23313 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23314 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23316 LIBOBJS=$ac_libobjs
23318 LTLIBOBJS=$ac_ltlibobjs
23321 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23322 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23323 Usually this means the macro was only invoked conditionally." >&5
23324 echo "$as_me: error: conditional \"AMDEP\" was never defined.
23325 Usually this means the macro was only invoked conditionally." >&2;}
23326 { (exit 1); exit 1; }; }
23328 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23329 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23330 Usually this means the macro was only invoked conditionally." >&5
23331 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23332 Usually this means the macro was only invoked conditionally." >&2;}
23333 { (exit 1); exit 1; }; }
23335 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23336 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23337 Usually this means the macro was only invoked conditionally." >&5
23338 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23339 Usually this means the macro was only invoked conditionally." >&2;}
23340 { (exit 1); exit 1; }; }
23342 if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
23343 { { echo "$as_me:$LINENO: error: conditional \"GCC\" was never defined.
23344 Usually this means the macro was only invoked conditionally." >&5
23345 echo "$as_me: error: conditional \"GCC\" was never defined.
23346 Usually this means the macro was only invoked conditionally." >&2;}
23347 { (exit 1); exit 1; }; }
23349 if test -z "${ENABLE_FRAME_POINTERS_TRUE}" && test -z "${ENABLE_FRAME_POINTERS_FALSE}"; then
23350 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_FRAME_POINTERS\" was never defined.
23351 Usually this means the macro was only invoked conditionally." >&5
23352 echo "$as_me: error: conditional \"ENABLE_FRAME_POINTERS\" was never defined.
23353 Usually this means the macro was only invoked conditionally." >&2;}
23354 { (exit 1); exit 1; }; }
23356 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
23357 { { echo "$as_me:$LINENO: error: conditional \"X86_64\" was never defined.
23358 Usually this means the macro was only invoked conditionally." >&5
23359 echo "$as_me: error: conditional \"X86_64\" was never defined.
23360 Usually this means the macro was only invoked conditionally." >&2;}
23361 { (exit 1); exit 1; }; }
23364 : ${CONFIG_STATUS=./config.status}
23365 ac_clean_files_save=$ac_clean_files
23366 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23367 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23368 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23369 cat >$CONFIG_STATUS <<_ACEOF
23371 # Generated by $as_me.
23372 # Run this file to recreate the current configuration.
23373 # Compiler output produced by configure, useful for debugging
23374 # configure, is in config.log if it exists.
23377 ac_cs_recheck=false
23379 SHELL=\${CONFIG_SHELL-$SHELL}
23382 cat >>$CONFIG_STATUS <<\_ACEOF
23383 ## --------------------- ##
23384 ## M4sh Initialization. ##
23385 ## --------------------- ##
23387 # Be more Bourne compatible
23388 DUALCASE=1; export DUALCASE # for MKS sh
23389 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23392 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23393 # is contrary to our usage. Disable this feature.
23394 alias -g '${1+"$@"}'='"$@"'
23395 setopt NO_GLOB_SUBST
23397 case `(set -o) 2>/dev/null` in
23398 *posix*) set -o posix ;;
23407 # Avoid depending upon Character Ranges.
23408 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23409 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23410 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23411 as_cr_digits='0123456789'
23412 as_cr_alnum=$as_cr_Letters$as_cr_digits
23414 # The user is always right.
23415 if test "${PATH_SEPARATOR+set}" != set; then
23416 echo "#! /bin/sh" >conf$$.sh
23417 echo "exit 0" >>conf$$.sh
23419 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23427 # Support unset when possible.
23428 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23436 # We need space, tab and new line, in precisely that order. Quoting is
23437 # there to prevent editors from complaining about space-tab.
23438 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23439 # splitting by setting IFS to empty value.)
23444 # Find who we are. Look in the path if we contain no directory separator.
23446 *[\\/]* ) as_myself=$0 ;;
23447 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23448 for as_dir in $PATH
23451 test -z "$as_dir" && as_dir=.
23452 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23458 # We did not find ourselves, most probably we were run as `sh COMMAND'
23459 # in which case we are not to be found in the path.
23460 if test "x$as_myself" = x; then
23463 if test ! -f "$as_myself"; then
23464 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23465 { (exit 1); exit 1; }
23468 # Work around bugs in pre-3.0 UWIN ksh.
23469 for as_var in ENV MAIL MAILPATH
23470 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23478 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23479 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23480 LC_TELEPHONE LC_TIME
23482 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23483 eval $as_var=C; export $as_var
23485 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23489 # Required to use basename.
23490 if expr a : '\(a\)' >/dev/null 2>&1 &&
23491 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23497 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23498 as_basename=basename
23504 # Name of the executable.
23505 as_me=`$as_basename -- "$0" ||
23506 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23507 X"$0" : 'X\(//\)$' \| \
23508 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23510 sed '/^.*\/\([^/][^/]*\)\/*$/{
23529 as_lineno_1=$LINENO
23530 as_lineno_2=$LINENO
23531 test "x$as_lineno_1" != "x$as_lineno_2" &&
23532 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23534 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23535 # uniformly replaced by the line number. The first 'sed' inserts a
23536 # line-number line after each line using $LINENO; the second 'sed'
23537 # does the real work. The second script uses 'N' to pair each
23538 # line-number line with the line containing $LINENO, and appends
23539 # trailing '-' during substitution so that $LINENO is not a special
23540 # case at line end.
23541 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23542 # scripts with optimization help from Paolo Bonzini. Blame Lee
23543 # E. McMahon (1931-1989) for sed's syntax. :-)
23555 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23558 ' >$as_me.lineno &&
23559 chmod +x "$as_me.lineno" ||
23560 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23561 { (exit 1); exit 1; }; }
23563 # Don't try to exec as it changes $[0], causing all sort of problems
23564 # (the dirname of $[0] is not the place where we might find the
23565 # original and so on. Autoconf is especially sensitive to this).
23566 . "./$as_me.lineno"
23567 # Exit status is that of the last command.
23572 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23578 ECHO_C= ECHO_N= ECHO_T=
23579 case `echo -n x` in
23581 case `echo 'x\c'` in
23582 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23589 if expr a : '\(a\)' >/dev/null 2>&1 &&
23590 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23596 rm -f conf$$ conf$$.exe conf$$.file
23597 if test -d conf$$.dir; then
23598 rm -f conf$$.dir/conf$$.file
23604 if ln -s conf$$.file conf$$ 2>/dev/null; then
23606 # ... but there are two gotchas:
23607 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23608 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23609 # In both cases, we have to default to `cp -p'.
23610 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23612 elif ln conf$$.file conf$$ 2>/dev/null; then
23617 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23618 rmdir conf$$.dir 2>/dev/null
23620 if mkdir -p . 2>/dev/null; then
23623 test -d ./-p && rmdir ./-p
23627 if test -x / >/dev/null 2>&1; then
23628 as_test_x='test -x'
23630 if ls -dL / >/dev/null 2>&1; then
23637 if test -d "$1"; then
23643 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23644 ???[sx]*):;;*)false;;esac;fi
23648 as_executable_p=$as_test_x
23650 # Sed expression to map a string onto a valid CPP name.
23651 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23653 # Sed expression to map a string onto a valid variable name.
23654 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23659 # Save the log message, to keep $[0] and so on meaningful, and to
23660 # report actual input values of CONFIG_FILES etc. instead of their
23661 # values after options handling.
23663 This file was extended by glog $as_me 0.1.1, which was
23664 generated by GNU Autoconf 2.61. Invocation command line was
23666 CONFIG_FILES = $CONFIG_FILES
23667 CONFIG_HEADERS = $CONFIG_HEADERS
23668 CONFIG_LINKS = $CONFIG_LINKS
23669 CONFIG_COMMANDS = $CONFIG_COMMANDS
23672 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23677 cat >>$CONFIG_STATUS <<_ACEOF
23678 # Files that config.status was made for.
23679 config_files="$ac_config_files"
23680 config_headers="$ac_config_headers"
23681 config_commands="$ac_config_commands"
23685 cat >>$CONFIG_STATUS <<\_ACEOF
23687 \`$as_me' instantiates files from templates according to the
23688 current configuration.
23690 Usage: $0 [OPTIONS] [FILE]...
23692 -h, --help print this help, then exit
23693 -V, --version print version number and configuration settings, then exit
23694 -q, --quiet do not print progress messages
23695 -d, --debug don't remove temporary files
23696 --recheck update $as_me by reconfiguring in the same conditions
23697 --file=FILE[:TEMPLATE]
23698 instantiate the configuration file FILE
23699 --header=FILE[:TEMPLATE]
23700 instantiate the configuration header FILE
23702 Configuration files:
23705 Configuration headers:
23708 Configuration commands:
23711 Report bugs to <bug-autoconf@gnu.org>."
23714 cat >>$CONFIG_STATUS <<_ACEOF
23716 glog config.status 0.1.1
23717 configured by $0, generated by GNU Autoconf 2.61,
23718 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23720 Copyright (C) 2006 Free Software Foundation, Inc.
23721 This config.status script is free software; the Free Software Foundation
23722 gives unlimited permission to copy, distribute and modify it."
23730 cat >>$CONFIG_STATUS <<\_ACEOF
23731 # If no file are specified by the user, then we need to provide default
23732 # value. By we need to know if files were specified by the user.
23738 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23739 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23750 # Handling of the options.
23751 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23753 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23754 echo "$ac_cs_version"; exit ;;
23755 --debug | --debu | --deb | --de | --d | -d )
23757 --file | --fil | --fi | --f )
23759 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23760 ac_need_defaults=false;;
23761 --header | --heade | --head | --hea )
23763 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23764 ac_need_defaults=false;;
23766 # Conflict between --help and --header
23767 { echo "$as_me: error: ambiguous option: $1
23768 Try \`$0 --help' for more information." >&2
23769 { (exit 1); exit 1; }; };;
23770 --help | --hel | -h )
23771 echo "$ac_cs_usage"; exit ;;
23772 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23773 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23776 # This is an error.
23777 -*) { echo "$as_me: error: unrecognized option: $1
23778 Try \`$0 --help' for more information." >&2
23779 { (exit 1); exit 1; }; } ;;
23781 *) ac_config_targets="$ac_config_targets $1"
23782 ac_need_defaults=false ;;
23788 ac_configure_extra_args=
23790 if $ac_cs_silent; then
23792 ac_configure_extra_args="$ac_configure_extra_args --silent"
23796 cat >>$CONFIG_STATUS <<_ACEOF
23797 if \$ac_cs_recheck; then
23798 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23799 CONFIG_SHELL=$SHELL
23800 export CONFIG_SHELL
23801 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23805 cat >>$CONFIG_STATUS <<\_ACEOF
23809 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23810 ## Running $as_me. ##
23816 cat >>$CONFIG_STATUS <<_ACEOF
23820 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23824 cat >>$CONFIG_STATUS <<\_ACEOF
23826 # Handling of arguments.
23827 for ac_config_target in $ac_config_targets
23829 case $ac_config_target in
23830 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
23831 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23832 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23833 "src/glog/logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/logging.h" ;;
23834 "src/glog/raw_logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/raw_logging.h" ;;
23835 "src/glog/vlog_is_on.h") CONFIG_FILES="$CONFIG_FILES src/glog/vlog_is_on.h" ;;
23836 "src/glog/stl_logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/stl_logging.h" ;;
23838 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23839 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23840 { (exit 1); exit 1; }; };;
23845 # If the user did not use the arguments to specify the items to instantiate,
23846 # then the envvar interface is used. Set only those that are not.
23847 # We use the long form for the default assignment because of an extremely
23848 # bizarre bug on SunOS 4.1.3.
23849 if $ac_need_defaults; then
23850 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23851 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23852 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23855 # Have a temporary directory for convenience. Make it in the build tree
23856 # simply because there is no reason against having it here, and in addition,
23857 # creating and moving files from /tmp can sometimes cause problems.
23858 # Hook for its removal unless debugging.
23859 # Note that there is a small window in which the directory will not be cleaned:
23860 # after its creation but before its name has been assigned to `$tmp'.
23864 trap 'exit_status=$?
23865 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23867 trap '{ (exit 1); exit 1; }' 1 2 13 15
23869 # Create a (secure) tmp directory for tmp files.
23872 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23873 test -n "$tmp" && test -d "$tmp"
23876 tmp=./conf$$-$RANDOM
23877 (umask 077 && mkdir "$tmp")
23880 echo "$me: cannot create a temporary directory in ." >&2
23881 { (exit 1); exit 1; }
23885 # Set up the sed scripts for CONFIG_FILES section.
23888 # No need to generate the scripts if there are no CONFIG_FILES.
23889 # This happens for instance when ./config.status config.h
23890 if test -n "$CONFIG_FILES"; then
23897 for ac_last_try in false false false false false :; do
23898 cat >conf$$subs.sed <<_ACEOF
23899 SHELL!$SHELL$ac_delim
23900 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23901 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23902 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23903 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23904 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23905 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23906 exec_prefix!$exec_prefix$ac_delim
23907 prefix!$prefix$ac_delim
23908 program_transform_name!$program_transform_name$ac_delim
23909 bindir!$bindir$ac_delim
23910 sbindir!$sbindir$ac_delim
23911 libexecdir!$libexecdir$ac_delim
23912 datarootdir!$datarootdir$ac_delim
23913 datadir!$datadir$ac_delim
23914 sysconfdir!$sysconfdir$ac_delim
23915 sharedstatedir!$sharedstatedir$ac_delim
23916 localstatedir!$localstatedir$ac_delim
23917 includedir!$includedir$ac_delim
23918 oldincludedir!$oldincludedir$ac_delim
23919 docdir!$docdir$ac_delim
23920 infodir!$infodir$ac_delim
23921 htmldir!$htmldir$ac_delim
23922 dvidir!$dvidir$ac_delim
23923 pdfdir!$pdfdir$ac_delim
23924 psdir!$psdir$ac_delim
23925 libdir!$libdir$ac_delim
23926 localedir!$localedir$ac_delim
23927 mandir!$mandir$ac_delim
23928 DEFS!$DEFS$ac_delim
23929 ECHO_C!$ECHO_C$ac_delim
23930 ECHO_N!$ECHO_N$ac_delim
23931 ECHO_T!$ECHO_T$ac_delim
23932 LIBS!$LIBS$ac_delim
23933 build_alias!$build_alias$ac_delim
23934 host_alias!$host_alias$ac_delim
23935 target_alias!$target_alias$ac_delim
23936 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23937 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23938 INSTALL_DATA!$INSTALL_DATA$ac_delim
23939 am__isrc!$am__isrc$ac_delim
23940 CYGPATH_W!$CYGPATH_W$ac_delim
23941 PACKAGE!$PACKAGE$ac_delim
23942 VERSION!$VERSION$ac_delim
23943 ACLOCAL!$ACLOCAL$ac_delim
23944 AUTOCONF!$AUTOCONF$ac_delim
23945 AUTOMAKE!$AUTOMAKE$ac_delim
23946 AUTOHEADER!$AUTOHEADER$ac_delim
23947 MAKEINFO!$MAKEINFO$ac_delim
23948 install_sh!$install_sh$ac_delim
23949 STRIP!$STRIP$ac_delim
23950 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
23951 mkdir_p!$mkdir_p$ac_delim
23953 SET_MAKE!$SET_MAKE$ac_delim
23954 am__leading_dot!$am__leading_dot$ac_delim
23955 AMTAR!$AMTAR$ac_delim
23956 am__tar!$am__tar$ac_delim
23957 am__untar!$am__untar$ac_delim
23959 CFLAGS!$CFLAGS$ac_delim
23960 LDFLAGS!$LDFLAGS$ac_delim
23961 CPPFLAGS!$CPPFLAGS$ac_delim
23962 ac_ct_CC!$ac_ct_CC$ac_delim
23963 EXEEXT!$EXEEXT$ac_delim
23964 OBJEXT!$OBJEXT$ac_delim
23965 DEPDIR!$DEPDIR$ac_delim
23966 am__include!$am__include$ac_delim
23967 am__quote!$am__quote$ac_delim
23968 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
23969 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
23970 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
23971 CCDEPMODE!$CCDEPMODE$ac_delim
23972 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
23973 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
23976 CXXFLAGS!$CXXFLAGS$ac_delim
23977 ac_ct_CXX!$ac_ct_CXX$ac_delim
23978 CXXDEPMODE!$CXXDEPMODE$ac_delim
23979 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
23980 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
23981 GCC_TRUE!$GCC_TRUE$ac_delim
23982 GCC_FALSE!$GCC_FALSE$ac_delim
23983 build!$build$ac_delim
23984 build_cpu!$build_cpu$ac_delim
23985 build_vendor!$build_vendor$ac_delim
23986 build_os!$build_os$ac_delim
23987 host!$host$ac_delim
23988 host_cpu!$host_cpu$ac_delim
23989 host_vendor!$host_vendor$ac_delim
23990 host_os!$host_os$ac_delim
23992 GREP!$GREP$ac_delim
23993 EGREP!$EGREP$ac_delim
23994 LN_S!$LN_S$ac_delim
23995 ECHO!$ECHO$ac_delim
23998 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24000 elif $ac_last_try; then
24001 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24002 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24003 { (exit 1); exit 1; }; }
24005 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24009 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24010 if test -n "$ac_eof"; then
24011 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24012 ac_eof=`expr $ac_eof + 1`
24015 cat >>$CONFIG_STATUS <<_ACEOF
24016 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24017 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24020 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24021 s/^/s,@/; s/!/@,|#_!!_#|/
24024 s/'"$ac_delim"'$/,g/; t
24026 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24027 ' >>$CONFIG_STATUS <conf$$subs.sed
24028 rm -f conf$$subs.sed
24029 cat >>$CONFIG_STATUS <<_ACEOF
24035 for ac_last_try in false false false false false :; do
24036 cat >conf$$subs.sed <<_ACEOF
24038 RANLIB!$RANLIB$ac_delim
24039 DSYMUTIL!$DSYMUTIL$ac_delim
24040 NMEDIT!$NMEDIT$ac_delim
24041 CXXCPP!$CXXCPP$ac_delim
24043 FFLAGS!$FFLAGS$ac_delim
24044 ac_ct_F77!$ac_ct_F77$ac_delim
24045 LIBTOOL!$LIBTOOL$ac_delim
24046 LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
24047 ENABLE_FRAME_POINTERS_TRUE!$ENABLE_FRAME_POINTERS_TRUE$ac_delim
24048 ENABLE_FRAME_POINTERS_FALSE!$ENABLE_FRAME_POINTERS_FALSE$ac_delim
24049 X86_64_TRUE!$X86_64_TRUE$ac_delim
24050 X86_64_FALSE!$X86_64_FALSE$ac_delim
24051 acx_pthread_config!$acx_pthread_config$ac_delim
24052 PTHREAD_CC!$PTHREAD_CC$ac_delim
24053 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
24054 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
24055 ac_google_start_namespace!$ac_google_start_namespace$ac_delim
24056 ac_google_end_namespace!$ac_google_end_namespace$ac_delim
24057 ac_google_namespace!$ac_google_namespace$ac_delim
24058 ac_cv_cxx_using_operator!$ac_cv_cxx_using_operator$ac_delim
24059 ac_cv___attribute___noreturn!$ac_cv___attribute___noreturn$ac_delim
24060 ac_cv___attribute___printf_4_5!$ac_cv___attribute___printf_4_5$ac_delim
24061 ac_cv_have___builtin_expect!$ac_cv_have___builtin_expect$ac_delim
24062 ac_cv_have_stdint_h!$ac_cv_have_stdint_h$ac_delim
24063 ac_cv_have_systypes_h!$ac_cv_have_systypes_h$ac_delim
24064 ac_cv_have_inttypes_h!$ac_cv_have_inttypes_h$ac_delim
24065 ac_cv_have_uint16_t!$ac_cv_have_uint16_t$ac_delim
24066 ac_cv_have_u_int16_t!$ac_cv_have_u_int16_t$ac_delim
24067 ac_cv_have___uint16!$ac_cv_have___uint16$ac_delim
24068 ac_cv_have_libgflags!$ac_cv_have_libgflags$ac_delim
24069 GFLAGS_LIBS!$GFLAGS_LIBS$ac_delim
24070 LIBOBJS!$LIBOBJS$ac_delim
24071 LTLIBOBJS!$LTLIBOBJS$ac_delim
24074 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 35; then
24076 elif $ac_last_try; then
24077 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24078 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24079 { (exit 1); exit 1; }; }
24081 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24085 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24086 if test -n "$ac_eof"; then
24087 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24088 ac_eof=`expr $ac_eof + 1`
24091 cat >>$CONFIG_STATUS <<_ACEOF
24092 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24093 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24096 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24097 s/^/s,@/; s/!/@,|#_!!_#|/
24100 s/'"$ac_delim"'$/,g/; t
24102 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24103 ' >>$CONFIG_STATUS <conf$$subs.sed
24104 rm -f conf$$subs.sed
24105 cat >>$CONFIG_STATUS <<_ACEOF
24112 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24113 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24114 # trailing colons and then remove the whole line if VPATH becomes empty
24115 # (actually we leave an empty line to preserve line numbers).
24116 if test "x$srcdir" = x.; then
24117 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24118 s/:*\$(srcdir):*/:/
24119 s/:*\${srcdir}:*/:/
24121 s/^\([^=]*=[ ]*\):*/\1/
24127 cat >>$CONFIG_STATUS <<\_ACEOF
24128 fi # test -n "$CONFIG_FILES"
24131 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24134 :[FHLC]) ac_mode=$ac_tag; continue;;
24136 case $ac_mode$ac_tag in
24138 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24139 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24140 { (exit 1); exit 1; }; };;
24141 :[FH]-) ac_tag=-:-;;
24142 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24159 -) ac_f="$tmp/stdin";;
24160 *) # Look for the file first in the build tree, then in the source tree
24161 # (if the path is not absolute). The absolute path cannot be DOS-style,
24162 # because $ac_f cannot contain `:'.
24166 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24168 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24169 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24170 { (exit 1); exit 1; }; };;
24172 ac_file_inputs="$ac_file_inputs $ac_f"
24175 # Let's still pretend it is `configure' which instantiates (i.e., don't
24176 # use $as_me), people would be surprised to read:
24177 # /* config.h. Generated by config.status. */
24178 configure_input="Generated from "`IFS=:
24179 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24180 if test x"$ac_file" != x-; then
24181 configure_input="$ac_file. $configure_input"
24182 { echo "$as_me:$LINENO: creating $ac_file" >&5
24183 echo "$as_me: creating $ac_file" >&6;}
24187 *:-:* | *:-) cat >"$tmp/stdin";;
24192 ac_dir=`$as_dirname -- "$ac_file" ||
24193 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24194 X"$ac_file" : 'X\(//\)[^/]' \| \
24195 X"$ac_file" : 'X\(//\)$' \| \
24196 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24198 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24202 /^X\(\/\/\)[^/].*/{
24217 -*) as_dir=./$as_dir;;
24219 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24223 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24224 *) as_qdir=$as_dir;;
24226 as_dirs="'$as_qdir' $as_dirs"
24227 as_dir=`$as_dirname -- "$as_dir" ||
24228 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24229 X"$as_dir" : 'X\(//\)[^/]' \| \
24230 X"$as_dir" : 'X\(//\)$' \| \
24231 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24237 /^X\(\/\/\)[^/].*/{
24250 test -d "$as_dir" && break
24252 test -z "$as_dirs" || eval "mkdir $as_dirs"
24253 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24254 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24255 { (exit 1); exit 1; }; }; }
24259 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24261 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24262 # A ".." for each directory in $ac_dir_suffix.
24263 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24264 case $ac_top_builddir_sub in
24265 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24266 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24269 ac_abs_top_builddir=$ac_pwd
24270 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24271 # for backward compatibility:
24272 ac_top_builddir=$ac_top_build_prefix
24275 .) # We are building in place.
24277 ac_top_srcdir=$ac_top_builddir_sub
24278 ac_abs_top_srcdir=$ac_pwd ;;
24279 [\\/]* | ?:[\\/]* ) # Absolute name.
24280 ac_srcdir=$srcdir$ac_dir_suffix;
24281 ac_top_srcdir=$srcdir
24282 ac_abs_top_srcdir=$srcdir ;;
24283 *) # Relative name.
24284 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24285 ac_top_srcdir=$ac_top_build_prefix$srcdir
24286 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24288 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24298 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24299 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24301 ac_MKDIR_P=$MKDIR_P
24303 [\\/$]* | ?:[\\/]* ) ;;
24304 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24308 cat >>$CONFIG_STATUS <<\_ACEOF
24309 # If the template does not know about datarootdir, expand it.
24310 # FIXME: This hack should be removed a few years after 2.60.
24311 ac_datarootdir_hack=; ac_datarootdir_seen=
24313 case `sed -n '/datarootdir/ {
24322 ' $ac_file_inputs` in
24323 *datarootdir*) ac_datarootdir_seen=yes;;
24324 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24325 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24326 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24328 cat >>$CONFIG_STATUS <<_ACEOF
24329 ac_datarootdir_hack='
24330 s&@datadir@&$datadir&g
24331 s&@docdir@&$docdir&g
24332 s&@infodir@&$infodir&g
24333 s&@localedir@&$localedir&g
24334 s&@mandir@&$mandir&g
24335 s&\\\${datarootdir}&$datarootdir&g' ;;
24339 # Neutralize VPATH when `$srcdir' = `.'.
24340 # Shell code in configure.ac might set extrasub.
24341 # FIXME: do we really want to maintain this feature?
24342 cat >>$CONFIG_STATUS <<_ACEOF
24346 cat >>$CONFIG_STATUS <<\_ACEOF
24348 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24349 s&@configure_input@&$configure_input&;t t
24350 s&@top_builddir@&$ac_top_builddir_sub&;t t
24351 s&@srcdir@&$ac_srcdir&;t t
24352 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24353 s&@top_srcdir@&$ac_top_srcdir&;t t
24354 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24355 s&@builddir@&$ac_builddir&;t t
24356 s&@abs_builddir@&$ac_abs_builddir&;t t
24357 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24358 s&@INSTALL@&$ac_INSTALL&;t t
24359 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24360 $ac_datarootdir_hack
24361 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24363 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24364 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24365 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24366 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24367 which seems to be undefined. Please make sure it is defined." >&5
24368 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24369 which seems to be undefined. Please make sure it is defined." >&2;}
24373 -) cat "$tmp/out"; rm -f "$tmp/out";;
24374 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24383 # Transform confdefs.h into a sed script `conftest.defines', that
24384 # substitutes the proper values into config.h.in to produce config.h.
24385 rm -f conftest.defines conftest.tail
24386 # First, append a space to every undef/define line, to ease matching.
24387 echo 's/$/ /' >conftest.defines
24388 # Then, protect against being on the right side of a sed subst, or in
24389 # an unquoted here document, in config.status. If some macros were
24390 # called several times there might be several #defines for the same
24391 # symbol, which is useless. But do not sort them, since the last
24392 # AC_DEFINE must be honored.
24393 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24394 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24395 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24396 # PARAMS is the parameter list in the macro definition--in most cases, it's
24397 # just an empty string.
24398 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24399 ac_dB='\\)[ (].*,\\1define\\2'
24407 s/^[ ]*#[ ]*define[ ][ ]*//
24412 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24413 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24414 ' >>conftest.defines
24416 # Remove the space that was appended to ease matching.
24417 # Then replace #undef with comments. This is necessary, for
24418 # example, in the case of _POSIX_SOURCE, which is predefined and required
24419 # on some systems where configure will not decide to define it.
24420 # (The regexp can be short, since the line contains either #define or #undef.)
24422 s,^[ #]*u.*,/* & */,' >>conftest.defines
24424 # Break up conftest.defines:
24425 ac_max_sed_lines=50
24427 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24428 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24429 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24431 ac_in='$ac_file_inputs'
24432 ac_out='"$tmp/out1"'
24433 ac_nxt='"$tmp/out2"'
24437 # Write a here document:
24438 cat >>$CONFIG_STATUS <<_ACEOF
24439 # First, check the format of the line:
24440 cat >"\$tmp/defines.sed" <<\\CEOF
24441 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24442 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24446 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24448 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24449 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24450 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24451 grep . conftest.tail >/dev/null || break
24452 rm -f conftest.defines
24453 mv conftest.tail conftest.defines
24455 rm -f conftest.defines conftest.tail
24457 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24458 cat >>$CONFIG_STATUS <<\_ACEOF
24459 if test x"$ac_file" != x-; then
24460 echo "/* $configure_input */" >"$tmp/config.h"
24461 cat "$ac_result" >>"$tmp/config.h"
24462 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24463 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24464 echo "$as_me: $ac_file is unchanged" >&6;}
24467 mv "$tmp/config.h" $ac_file
24470 echo "/* $configure_input */"
24474 # Compute $ac_file's index in $config_headers.
24477 for _am_header in $config_headers :; do
24478 case $_am_header in
24479 $_am_arg | $_am_arg:* )
24482 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24485 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24486 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24487 X"$_am_arg" : 'X\(//\)[^/]' \| \
24488 X"$_am_arg" : 'X\(//\)$' \| \
24489 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24495 /^X\(\/\/\)[^/].*/{
24507 s/.*/./; q'`/stamp-h$_am_stamp_count
24510 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24511 echo "$as_me: executing $ac_file commands" >&6;}
24516 case $ac_file$ac_mode in
24517 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24518 # Strip MF so we end up with the name of the file.
24519 mf=`echo "$mf" | sed -e 's/:.*$//'`
24520 # Check whether this is an Automake generated Makefile or not.
24521 # We used to match only the files named `Makefile.in', but
24522 # some people rename them; so instead we look at the file content.
24523 # Grep'ing the first line is not enough: some people post-process
24524 # each Makefile.in and add a new line on top of each file to say so.
24525 # Grep'ing the whole file is not good either: AIX grep has a line
24526 # limit of 2048, but all sed's we know have understand at least 4000.
24527 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
24528 dirpart=`$as_dirname -- "$mf" ||
24529 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24530 X"$mf" : 'X\(//\)[^/]' \| \
24531 X"$mf" : 'X\(//\)$' \| \
24532 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24534 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24538 /^X\(\/\/\)[^/].*/{
24554 # Extract the definition of DEPDIR, am__include, and am__quote
24555 # from the Makefile without running `make'.
24556 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24557 test -z "$DEPDIR" && continue
24558 am__include=`sed -n 's/^am__include = //p' < "$mf"`
24559 test -z "am__include" && continue
24560 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24561 # When using ansi2knr, U may be empty or an underscore; expand it
24562 U=`sed -n 's/^U = //p' < "$mf"`
24563 # Find all dependency output files, they are included files with
24564 # $(DEPDIR) in their names. We invoke sed twice because it is the
24565 # simplest approach to changing $(DEPDIR) to its actual value in the
24567 for file in `sed -n "
24568 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24569 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24570 # Make sure the directory exists.
24571 test -f "$dirpart/$file" && continue
24572 fdir=`$as_dirname -- "$file" ||
24573 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24574 X"$file" : 'X\(//\)[^/]' \| \
24575 X"$file" : 'X\(//\)$' \| \
24576 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24578 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24582 /^X\(\/\/\)[^/].*/{
24595 { as_dir=$dirpart/$fdir
24597 -*) as_dir=./$as_dir;;
24599 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24603 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24604 *) as_qdir=$as_dir;;
24606 as_dirs="'$as_qdir' $as_dirs"
24607 as_dir=`$as_dirname -- "$as_dir" ||
24608 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24609 X"$as_dir" : 'X\(//\)[^/]' \| \
24610 X"$as_dir" : 'X\(//\)$' \| \
24611 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24613 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24617 /^X\(\/\/\)[^/].*/{
24630 test -d "$as_dir" && break
24632 test -z "$as_dirs" || eval "mkdir $as_dirs"
24633 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24634 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24635 { (exit 1); exit 1; }; }; }
24636 # echo "creating $dirpart/$file"
24637 echo '# dummy' > "$dirpart/$file"
24646 { (exit 0); exit 0; }
24648 chmod +x $CONFIG_STATUS
24649 ac_clean_files=$ac_clean_files_save
24652 # configure is writing to config.log, and then calls config.status.
24653 # config.status does its own redirection, appending to config.log.
24654 # Unfortunately, on DOS this fails, as config.log is still kept open
24655 # by configure, so config.status won't be able to write to it; its
24656 # output is simply discarded. So we exec the FD to /dev/null,
24657 # effectively closing config.log, so it can be properly (re)opened and
24658 # appended to by config.status. When coming back to configure, we
24659 # need to make the FD available again.
24660 if test "$no_create" != yes; then
24662 ac_config_status_args=
24663 test "$silent" = yes &&
24664 ac_config_status_args="$ac_config_status_args --quiet"
24666 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24668 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24669 # would make configure fail if this is the last instruction.
24670 $ac_cs_success || { (exit 1); exit 1; }