2 # From configure.ac Revision: 1.180 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for simgrid 3.3-cvs.
6 # Report bugs to <simgrid-devel@lists.gforge.inria.fr>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
48 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
65 # We need space, tab and new line, in precisely that order. Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
73 # Find who we are. Look in the path if we contain no directory separator.
75 *[\\/]* ) as_myself=$0 ;;
76 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
80 test -z "$as_dir" && as_dir=.
81 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
92 if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C; export $as_var
114 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
157 if test "x$CONFIG_SHELL" = x; then
158 if (eval ":") 2>/dev/null; then
164 if test $as_have_required = yes && (eval ":
174 as_func_ret_success () {
177 as_func_ret_failure () {
182 if as_func_success; then
186 echo as_func_success failed.
189 if as_func_failure; then
191 echo as_func_failure succeeded.
194 if as_func_ret_success; then
198 echo as_func_ret_success failed.
201 if as_func_ret_failure; then
203 echo as_func_ret_failure succeeded.
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
210 echo positional parameters were not saved.
213 test \$exitcode = 0) || { (exit 1); exit 1; }
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
228 test -z "$as_dir" && as_dir=.
231 for as_base in sh bash ksh sh5; do
232 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
239 for as_shell in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
251 case `(set -o) 2>/dev/null` in
252 *posix*) set -o posix ;;
261 CONFIG_SHELL=$as_shell
263 if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
272 case `(set -o) 2>/dev/null` in
273 *posix*) set -o posix ;;
289 as_func_ret_success () {
292 as_func_ret_failure () {
297 if as_func_success; then
301 echo as_func_success failed.
304 if as_func_failure; then
306 echo as_func_failure succeeded.
309 if as_func_ret_success; then
313 echo as_func_ret_success failed.
316 if as_func_ret_failure; then
318 echo as_func_ret_failure succeeded.
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
325 echo positional parameters were not saved.
328 test $exitcode = 0) || { (exit 1); exit 1; }
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
345 if test "x$CONFIG_SHELL" != x; then
346 for as_var in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
354 if test $as_have_required = no; then
355 echo This script requires a shell more modern than all the
356 echo shells that I found on your system. Please install a
357 echo modern shell, or manually run the script under such a
358 echo shell if you do have one.
359 { (exit 1); exit 1; }
369 (eval "as_func_return () {
378 as_func_ret_success () {
381 as_func_ret_failure () {
386 if as_func_success; then
390 echo as_func_success failed.
393 if as_func_failure; then
395 echo as_func_failure succeeded.
398 if as_func_ret_success; then
402 echo as_func_ret_success failed.
405 if as_func_ret_failure; then
407 echo as_func_ret_failure succeeded.
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
414 echo positional parameters were not saved.
417 test \$exitcode = 0") || {
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system,
420 echo including any error possibly output before this
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
456 chmod +x "$as_me.lineno" ||
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
464 # Exit status is that of the last command.
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
475 ECHO_C= ECHO_N= ECHO_T=
479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495 rm -f conf$$.dir/conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
509 elif ln conf$$.file conf$$ 2>/dev/null; then
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
517 if mkdir -p . 2>/dev/null; then
520 test -d ./-p && rmdir ./-p
524 if test -x / >/dev/null 2>&1; then
527 if ls -dL / >/dev/null 2>&1; then
534 if test -d "$1"; then
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
545 as_executable_p=$as_test_x
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
556 # Check that we are running under the correct shell.
557 SHELL=${CONFIG_SHELL-/bin/sh}
561 # Remove one level of quotation (which was required for Make).
562 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
567 if test "X$1" = X--no-reexec; then
568 # Discard the --no-reexec flag, and continue.
570 elif test "X$1" = X--fallback-echo; then
571 # Avoid inline document here, it may be left over
573 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
574 # Yippee, $echo works!
577 # Restart under the correct shell.
578 exec $SHELL "$0" --no-reexec ${1+"$@"}
581 if test "X$1" = X--fallback-echo; then
582 # used as fallback echo
590 # The HP-UX ksh and POSIX shell print the target directory to stdout
592 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
594 if test -z "$ECHO"; then
595 if test "X${echo_test_string+set}" != Xset; then
596 # find a string as large as possible, as long as the shell can cope with it
597 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
598 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
599 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
600 echo_test_string=`eval $cmd` &&
601 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
608 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
609 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
610 test "X$echo_testing_string" = "X$echo_test_string"; then
613 # The Solaris, AIX, and Digital Unix default echo programs unquote
614 # backslashes. This makes it impossible to quote backslashes using
615 # echo "$something" | sed 's/\\/\\\\/g'
617 # So, first we look for a working echo in the user's PATH.
619 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
620 for dir in $PATH /usr/ucb; do
622 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
623 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
624 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
625 test "X$echo_testing_string" = "X$echo_test_string"; then
632 if test "X$echo" = Xecho; then
633 # We didn't find a better echo, so look for alternatives.
634 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
635 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
636 test "X$echo_testing_string" = "X$echo_test_string"; then
637 # This shell has a builtin print -r that does the trick.
639 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
640 test "X$CONFIG_SHELL" != X/bin/ksh; then
641 # If we have ksh, try running configure again with it.
642 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
643 export ORIGINAL_CONFIG_SHELL
644 CONFIG_SHELL=/bin/ksh
646 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
650 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
651 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
652 test "X$echo_testing_string" = "X$echo_test_string"; then
655 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
656 test "X$echo_testing_string" = 'X\t' &&
657 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
658 test "X$echo_testing_string" = "X$echo_test_string"; then
659 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
661 SHELL="$CONFIG_SHELL"
663 echo="$CONFIG_SHELL $0 --fallback-echo"
664 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
665 test "X$echo_testing_string" = 'X\t' &&
666 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
667 test "X$echo_testing_string" = "X$echo_test_string"; then
668 echo="$CONFIG_SHELL $0 --fallback-echo"
670 # maybe with a smaller string...
673 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
674 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
681 if test "$prev" != 'sed 50q "$0"'; then
682 echo_test_string=`eval $prev`
683 export echo_test_string
684 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
686 # Oops. We lost completely, so just stick with echo.
695 # Copy echo and quote the copy suitably for passing to libtool from
696 # the Makefile, instead of quoting the original, which is used later.
698 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
699 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
705 tagnames=${tagnames+${tagnames},}CXX
707 tagnames=${tagnames+${tagnames},}F77
709 tagnames=${tagnames+${tagnames},}GCJ
711 exec 7<&0 </dev/null 6>&1
714 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
715 # so uname gets run too.
716 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
721 ac_default_prefix=/usr/local
723 ac_config_libobj_dir=.
729 SHELL=${CONFIG_SHELL-/bin/sh}
731 # Identity of this package.
732 PACKAGE_NAME='simgrid'
733 PACKAGE_TARNAME='simgrid'
734 PACKAGE_VERSION='3.3-cvs'
735 PACKAGE_STRING='simgrid 3.3-cvs'
736 PACKAGE_BUGREPORT='simgrid-devel@lists.gforge.inria.fr'
738 ac_unique_file="include/gras.h"
739 # Factoring default headers for most tests.
740 ac_includes_default="\
742 #ifdef HAVE_SYS_TYPES_H
743 # include <sys/types.h>
745 #ifdef HAVE_SYS_STAT_H
746 # include <sys/stat.h>
752 # ifdef HAVE_STDLIB_H
757 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
762 #ifdef HAVE_STRINGS_H
763 # include <strings.h>
765 #ifdef HAVE_INTTYPES_H
766 # include <inttypes.h>
784 program_transform_name
850 INSTALL_STRIP_PROGRAM
886 GRAS_ARCH_32_BITS_TRUE
887 GRAS_ARCH_32_BITS_FALSE
889 CONTEXT_THREADS_FALSE
891 pth_skaddr_makecontext
892 pth_sksize_makecontext
902 MAINTAINER_MODE_FALSE
930 ac_precious_vars='build_alias
945 # Initialize some variables set by options.
947 ac_init_version=false
948 # The variables have the same names as the options, with
949 # dashes changed to underlines.
957 program_transform_name=s,x,x,
965 # Installation directory options.
966 # These are left unexpanded so users can "make install exec_prefix=/foo"
967 # and all the variables that are supposed to be based on exec_prefix
968 # by default will actually change.
969 # Use braces instead of parens because sh, perl, etc. also accept them.
970 # (The list follows the same order as the GNU Coding Standards.)
971 bindir='${exec_prefix}/bin'
972 sbindir='${exec_prefix}/sbin'
973 libexecdir='${exec_prefix}/libexec'
974 datarootdir='${prefix}/share'
975 datadir='${datarootdir}'
976 sysconfdir='${prefix}/etc'
977 sharedstatedir='${prefix}/com'
978 localstatedir='${prefix}/var'
979 includedir='${prefix}/include'
980 oldincludedir='/usr/include'
981 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
982 infodir='${datarootdir}/info'
987 libdir='${exec_prefix}/lib'
988 localedir='${datarootdir}/locale'
989 mandir='${datarootdir}/man'
995 # If the previous option needs an argument, assign it.
996 if test -n "$ac_prev"; then
997 eval $ac_prev=\$ac_option
1003 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1007 # Accept the important Cygnus configure options, so we can diagnose typos.
1009 case $ac_dashdash$ac_option in
1013 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1015 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1016 bindir=$ac_optarg ;;
1018 -build | --build | --buil | --bui | --bu)
1019 ac_prev=build_alias ;;
1020 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1021 build_alias=$ac_optarg ;;
1023 -cache-file | --cache-file | --cache-fil | --cache-fi \
1024 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1025 ac_prev=cache_file ;;
1026 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1027 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1028 cache_file=$ac_optarg ;;
1030 --config-cache | -C)
1031 cache_file=config.cache ;;
1033 -datadir | --datadir | --datadi | --datad)
1035 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1036 datadir=$ac_optarg ;;
1038 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1039 | --dataroo | --dataro | --datar)
1040 ac_prev=datarootdir ;;
1041 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1042 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1043 datarootdir=$ac_optarg ;;
1045 -disable-* | --disable-*)
1046 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1047 # Reject names that are not valid shell variable names.
1048 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1049 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1050 { (exit 1); exit 1; }; }
1051 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1052 eval enable_$ac_feature=no ;;
1054 -docdir | --docdir | --docdi | --doc | --do)
1056 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1057 docdir=$ac_optarg ;;
1059 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1061 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1062 dvidir=$ac_optarg ;;
1064 -enable-* | --enable-*)
1065 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1066 # Reject names that are not valid shell variable names.
1067 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1068 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1069 { (exit 1); exit 1; }; }
1070 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1071 eval enable_$ac_feature=\$ac_optarg ;;
1073 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1074 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1075 | --exec | --exe | --ex)
1076 ac_prev=exec_prefix ;;
1077 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1078 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1079 | --exec=* | --exe=* | --ex=*)
1080 exec_prefix=$ac_optarg ;;
1082 -gas | --gas | --ga | --g)
1083 # Obsolete; use --with-gas.
1086 -help | --help | --hel | --he | -h)
1087 ac_init_help=long ;;
1088 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1089 ac_init_help=recursive ;;
1090 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1091 ac_init_help=short ;;
1093 -host | --host | --hos | --ho)
1094 ac_prev=host_alias ;;
1095 -host=* | --host=* | --hos=* | --ho=*)
1096 host_alias=$ac_optarg ;;
1098 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1100 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1102 htmldir=$ac_optarg ;;
1104 -includedir | --includedir | --includedi | --included | --include \
1105 | --includ | --inclu | --incl | --inc)
1106 ac_prev=includedir ;;
1107 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1108 | --includ=* | --inclu=* | --incl=* | --inc=*)
1109 includedir=$ac_optarg ;;
1111 -infodir | --infodir | --infodi | --infod | --info | --inf)
1113 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1114 infodir=$ac_optarg ;;
1116 -libdir | --libdir | --libdi | --libd)
1118 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1119 libdir=$ac_optarg ;;
1121 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1122 | --libexe | --libex | --libe)
1123 ac_prev=libexecdir ;;
1124 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1125 | --libexe=* | --libex=* | --libe=*)
1126 libexecdir=$ac_optarg ;;
1128 -localedir | --localedir | --localedi | --localed | --locale)
1129 ac_prev=localedir ;;
1130 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1131 localedir=$ac_optarg ;;
1133 -localstatedir | --localstatedir | --localstatedi | --localstated \
1134 | --localstate | --localstat | --localsta | --localst | --locals)
1135 ac_prev=localstatedir ;;
1136 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1137 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1138 localstatedir=$ac_optarg ;;
1140 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1142 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1143 mandir=$ac_optarg ;;
1145 -nfp | --nfp | --nf)
1146 # Obsolete; use --without-fp.
1149 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1150 | --no-cr | --no-c | -n)
1153 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1154 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1157 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1158 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1159 | --oldin | --oldi | --old | --ol | --o)
1160 ac_prev=oldincludedir ;;
1161 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1162 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1163 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1164 oldincludedir=$ac_optarg ;;
1166 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1168 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1169 prefix=$ac_optarg ;;
1171 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1172 | --program-pre | --program-pr | --program-p)
1173 ac_prev=program_prefix ;;
1174 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1175 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1176 program_prefix=$ac_optarg ;;
1178 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1179 | --program-suf | --program-su | --program-s)
1180 ac_prev=program_suffix ;;
1181 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1182 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1183 program_suffix=$ac_optarg ;;
1185 -program-transform-name | --program-transform-name \
1186 | --program-transform-nam | --program-transform-na \
1187 | --program-transform-n | --program-transform- \
1188 | --program-transform | --program-transfor \
1189 | --program-transfo | --program-transf \
1190 | --program-trans | --program-tran \
1191 | --progr-tra | --program-tr | --program-t)
1192 ac_prev=program_transform_name ;;
1193 -program-transform-name=* | --program-transform-name=* \
1194 | --program-transform-nam=* | --program-transform-na=* \
1195 | --program-transform-n=* | --program-transform-=* \
1196 | --program-transform=* | --program-transfor=* \
1197 | --program-transfo=* | --program-transf=* \
1198 | --program-trans=* | --program-tran=* \
1199 | --progr-tra=* | --program-tr=* | --program-t=*)
1200 program_transform_name=$ac_optarg ;;
1202 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1204 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1205 pdfdir=$ac_optarg ;;
1207 -psdir | --psdir | --psdi | --psd | --ps)
1209 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1212 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1213 | -silent | --silent | --silen | --sile | --sil)
1216 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1218 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1220 sbindir=$ac_optarg ;;
1222 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1223 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1224 | --sharedst | --shareds | --shared | --share | --shar \
1226 ac_prev=sharedstatedir ;;
1227 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1228 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1229 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1231 sharedstatedir=$ac_optarg ;;
1233 -site | --site | --sit)
1235 -site=* | --site=* | --sit=*)
1238 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1240 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1241 srcdir=$ac_optarg ;;
1243 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1244 | --syscon | --sysco | --sysc | --sys | --sy)
1245 ac_prev=sysconfdir ;;
1246 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1247 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1248 sysconfdir=$ac_optarg ;;
1250 -target | --target | --targe | --targ | --tar | --ta | --t)
1251 ac_prev=target_alias ;;
1252 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1253 target_alias=$ac_optarg ;;
1255 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1258 -version | --version | --versio | --versi | --vers | -V)
1259 ac_init_version=: ;;
1262 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1263 # Reject names that are not valid shell variable names.
1264 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1265 { echo "$as_me: error: invalid package name: $ac_package" >&2
1266 { (exit 1); exit 1; }; }
1267 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1268 eval with_$ac_package=\$ac_optarg ;;
1270 -without-* | --without-*)
1271 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1272 # Reject names that are not valid shell variable names.
1273 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1274 { echo "$as_me: error: invalid package name: $ac_package" >&2
1275 { (exit 1); exit 1; }; }
1276 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1277 eval with_$ac_package=no ;;
1280 # Obsolete; use --with-x.
1283 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1284 | --x-incl | --x-inc | --x-in | --x-i)
1285 ac_prev=x_includes ;;
1286 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1287 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1288 x_includes=$ac_optarg ;;
1290 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1291 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1292 ac_prev=x_libraries ;;
1293 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1294 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1295 x_libraries=$ac_optarg ;;
1297 -*) { echo "$as_me: error: unrecognized option: $ac_option
1298 Try \`$0 --help' for more information." >&2
1299 { (exit 1); exit 1; }; }
1303 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1304 # Reject names that are not valid shell variable names.
1305 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1306 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1307 { (exit 1); exit 1; }; }
1308 eval $ac_envvar=\$ac_optarg
1309 export $ac_envvar ;;
1312 # FIXME: should be removed in autoconf 3.0.
1313 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1314 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1315 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1316 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1322 if test -n "$ac_prev"; then
1323 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1324 { echo "$as_me: error: missing argument to $ac_option" >&2
1325 { (exit 1); exit 1; }; }
1328 # Be sure to have absolute directory names.
1329 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1330 datadir sysconfdir sharedstatedir localstatedir includedir \
1331 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1332 libdir localedir mandir
1334 eval ac_val=\$$ac_var
1336 [\\/$]* | ?:[\\/]* ) continue;;
1337 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1339 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1340 { (exit 1); exit 1; }; }
1343 # There might be people who depend on the old broken behavior: `$host'
1344 # used to hold the argument of --host etc.
1345 # FIXME: To remove some day.
1348 target=$target_alias
1350 # FIXME: To remove some day.
1351 if test "x$host_alias" != x; then
1352 if test "x$build_alias" = x; then
1353 cross_compiling=maybe
1354 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1355 If a cross compiler is detected then cross compile mode will be used." >&2
1356 elif test "x$build_alias" != "x$host_alias"; then
1362 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1364 test "$silent" = yes && exec 6>/dev/null
1367 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1368 ac_ls_di=`ls -di .` &&
1369 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1370 { echo "$as_me: error: Working directory cannot be determined" >&2
1371 { (exit 1); exit 1; }; }
1372 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1373 { echo "$as_me: error: pwd does not report name of working directory" >&2
1374 { (exit 1); exit 1; }; }
1377 # Find the source files, if location was not specified.
1378 if test -z "$srcdir"; then
1379 ac_srcdir_defaulted=yes
1380 # Try the directory containing this script, then the parent directory.
1381 ac_confdir=`$as_dirname -- "$0" ||
1382 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1383 X"$0" : 'X\(//\)[^/]' \| \
1384 X"$0" : 'X\(//\)$' \| \
1385 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1405 if test ! -r "$srcdir/$ac_unique_file"; then
1409 ac_srcdir_defaulted=no
1411 if test ! -r "$srcdir/$ac_unique_file"; then
1412 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1413 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1414 { (exit 1); exit 1; }; }
1416 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1418 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1419 { (exit 1); exit 1; }; }
1421 # When building in place, set srcdir=.
1422 if test "$ac_abs_confdir" = "$ac_pwd"; then
1425 # Remove unnecessary trailing slashes from srcdir.
1426 # Double slashes in file names in object file debugging info
1427 # mess up M-x gdb in Emacs.
1429 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1431 for ac_var in $ac_precious_vars; do
1432 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1433 eval ac_env_${ac_var}_value=\$${ac_var}
1434 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1435 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1439 # Report the --help message.
1441 if test "$ac_init_help" = "long"; then
1442 # Omit some internal or obsolete options to make the list less imposing.
1443 # This message is too long to be a string in the A/UX 3.1 sh.
1445 \`configure' configures simgrid 3.3-cvs to adapt to many kinds of systems.
1447 Usage: $0 [OPTION]... [VAR=VALUE]...
1449 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1450 VAR=VALUE. See below for descriptions of some of the useful variables.
1452 Defaults for the options are specified in brackets.
1455 -h, --help display this help and exit
1456 --help=short display options specific to this package
1457 --help=recursive display the short help of all the included packages
1458 -V, --version display version information and exit
1459 -q, --quiet, --silent do not print \`checking...' messages
1460 --cache-file=FILE cache test results in FILE [disabled]
1461 -C, --config-cache alias for \`--cache-file=config.cache'
1462 -n, --no-create do not create output files
1463 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1465 Installation directories:
1466 --prefix=PREFIX install architecture-independent files in PREFIX
1467 [$ac_default_prefix]
1468 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1471 By default, \`make install' will install all the files in
1472 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1473 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1474 for instance \`--prefix=\$HOME'.
1476 For better control, use the options below.
1478 Fine tuning of the installation directories:
1479 --bindir=DIR user executables [EPREFIX/bin]
1480 --sbindir=DIR system admin executables [EPREFIX/sbin]
1481 --libexecdir=DIR program executables [EPREFIX/libexec]
1482 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1483 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1484 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1485 --libdir=DIR object code libraries [EPREFIX/lib]
1486 --includedir=DIR C header files [PREFIX/include]
1487 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1488 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1489 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1490 --infodir=DIR info documentation [DATAROOTDIR/info]
1491 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1492 --mandir=DIR man documentation [DATAROOTDIR/man]
1493 --docdir=DIR documentation root [DATAROOTDIR/doc/simgrid]
1494 --htmldir=DIR html documentation [DOCDIR]
1495 --dvidir=DIR dvi documentation [DOCDIR]
1496 --pdfdir=DIR pdf documentation [DOCDIR]
1497 --psdir=DIR ps documentation [DOCDIR]
1503 --program-prefix=PREFIX prepend PREFIX to installed program names
1504 --program-suffix=SUFFIX append SUFFIX to installed program names
1505 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1508 --build=BUILD configure for building on BUILD [guessed]
1509 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1510 --target=TARGET configure for building compilers for TARGET [HOST]
1514 if test -n "$ac_init_help"; then
1515 case $ac_init_help in
1516 short | recursive ) echo "Configuration of simgrid 3.3-cvs:";;
1521 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1522 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1523 --disable-dependency-tracking speeds up one-time build
1524 --enable-dependency-tracking do not reject slow dependency extractors
1525 --enable-shared[=PKGS] build shared libraries [default=yes]
1526 --enable-static[=PKGS] build static libraries [default=yes]
1527 --enable-fast-install[=PKGS]
1528 optimize for fast installation [default=yes]
1529 --disable-libtool-lock avoid locking (might break parallel builds)
1530 --enable-maintainer-mode enable make rules and dependencies not useful
1531 (and sometimes confusing) to the casual installer
1532 --enable-compile-warnings
1533 use compiler warnings (default=no, unless in
1535 --disable-compile-optimizations
1536 use compiler optimizations (default=yes, unless if
1537 CFLAGS is explicitly set)
1538 --disable-java To not compile the Java bindings even if the tools
1542 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1543 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1544 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1545 --with-pic try to use only PIC/non-PIC objects [default=use
1547 --with-tags[=TAGS] include additional configurations [automatic]
1548 --with-pthread Use pthread instead of ucontext.
1549 --with-pthreads Use pthread instead of ucontext.
1550 --with-context=ucontext/pthread Use either (System V) swapcontext or pthread [default=auto].
1551 --with-gtnets Path to GTNetS installation (default to empty, ie
1553 --with-csdp Path to csdp installation (default to empty, i.e.
1556 Some influential environment variables:
1557 CC C compiler command
1558 CFLAGS C compiler flags
1559 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1560 nonstandard directory <lib dir>
1561 LIBS libraries to pass to the linker, e.g. -l<library>
1562 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1563 you have headers in a nonstandard directory <include dir>
1565 CXX C++ compiler command
1566 CXXFLAGS C++ compiler flags
1567 CXXCPP C++ preprocessor
1569 Use these variables to override the choices made by `configure' or to help
1570 it to find libraries and programs with nonstandard names/locations.
1572 Report bugs to <simgrid-devel@lists.gforge.inria.fr>.
1577 if test "$ac_init_help" = "recursive"; then
1578 # If there are subdirs, report their specific --help.
1579 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1580 test -d "$ac_dir" || continue
1584 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1586 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1587 # A ".." for each directory in $ac_dir_suffix.
1588 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1589 case $ac_top_builddir_sub in
1590 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1591 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1594 ac_abs_top_builddir=$ac_pwd
1595 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1596 # for backward compatibility:
1597 ac_top_builddir=$ac_top_build_prefix
1600 .) # We are building in place.
1602 ac_top_srcdir=$ac_top_builddir_sub
1603 ac_abs_top_srcdir=$ac_pwd ;;
1604 [\\/]* | ?:[\\/]* ) # Absolute name.
1605 ac_srcdir=$srcdir$ac_dir_suffix;
1606 ac_top_srcdir=$srcdir
1607 ac_abs_top_srcdir=$srcdir ;;
1609 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1610 ac_top_srcdir=$ac_top_build_prefix$srcdir
1611 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1613 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1615 cd "$ac_dir" || { ac_status=$?; continue; }
1616 # Check for guested configure.
1617 if test -f "$ac_srcdir/configure.gnu"; then
1619 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1620 elif test -f "$ac_srcdir/configure"; then
1622 $SHELL "$ac_srcdir/configure" --help=recursive
1624 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1626 cd "$ac_pwd" || { ac_status=$?; break; }
1630 test -n "$ac_init_help" && exit $ac_status
1631 if $ac_init_version; then
1633 simgrid configure 3.3-cvs
1634 generated by GNU Autoconf 2.61
1636 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1637 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1638 This configure script is free software; the Free Software Foundation
1639 gives unlimited permission to copy, distribute and modify it.
1643 cat >config.log <<_ACEOF
1644 This file contains any messages produced by compilers while
1645 running configure, to aid debugging if configure makes a mistake.
1647 It was created by simgrid $as_me 3.3-cvs, which was
1648 generated by GNU Autoconf 2.61. Invocation command line was
1660 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1661 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1662 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1663 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1664 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1666 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1667 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1669 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1670 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1671 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1672 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1673 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1674 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1675 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1683 test -z "$as_dir" && as_dir=.
1684 echo "PATH: $as_dir"
1700 # Keep a trace of the command line.
1701 # Strip out --no-create and --no-recursion so they do not pile up.
1702 # Strip out --silent because we don't want to record it for future runs.
1703 # Also quote any args containing shell meta-characters.
1704 # Make two passes to allow for proper duplicate-argument suppression.
1708 ac_must_keep_next=false
1714 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1715 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1716 | -silent | --silent | --silen | --sile | --sil)
1719 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1722 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1724 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1725 if test $ac_must_keep_next = true; then
1726 ac_must_keep_next=false # Got value, back to normal.
1729 *=* | --config-cache | -C | -disable-* | --disable-* \
1730 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1731 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1732 | -with-* | --with-* | -without-* | --without-* | --x)
1733 case "$ac_configure_args0 " in
1734 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1737 -* ) ac_must_keep_next=true ;;
1740 ac_configure_args="$ac_configure_args '$ac_arg'"
1745 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1746 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1748 # When interrupted or exit'd, cleanup temporary files, and complete
1749 # config.log. We remove comments because anyway the quotes in there
1750 # would cause problems or look ugly.
1751 # WARNING: Use '\'' to represent an apostrophe within the trap.
1752 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1753 trap 'exit_status=$?
1754 # Save into config.log some information that might help in debugging.
1759 ## ---------------- ##
1760 ## Cache variables. ##
1761 ## ---------------- ##
1764 # The following way of writing the cache mishandles newlines in values,
1766 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1767 eval ac_val=\$$ac_var
1771 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1772 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1775 _ | IFS | as_nl) ;; #(
1776 *) $as_unset $ac_var ;;
1781 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1782 *${as_nl}ac_space=\ *)
1784 "s/'\''/'\''\\\\'\'''\''/g;
1785 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1788 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1796 ## ----------------- ##
1797 ## Output variables. ##
1798 ## ----------------- ##
1801 for ac_var in $ac_subst_vars
1803 eval ac_val=\$$ac_var
1805 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1807 echo "$ac_var='\''$ac_val'\''"
1811 if test -n "$ac_subst_files"; then
1813 ## ------------------- ##
1814 ## File substitutions. ##
1815 ## ------------------- ##
1818 for ac_var in $ac_subst_files
1820 eval ac_val=\$$ac_var
1822 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1824 echo "$ac_var='\''$ac_val'\''"
1829 if test -s confdefs.h; then
1839 test "$ac_signal" != 0 &&
1840 echo "$as_me: caught signal $ac_signal"
1841 echo "$as_me: exit $exit_status"
1843 rm -f core *.core core.conftest.* &&
1844 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1847 for ac_signal in 1 2 13 15; do
1848 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1852 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1853 rm -f -r conftest* confdefs.h
1855 # Predefined preprocessor variables.
1857 cat >>confdefs.h <<_ACEOF
1858 #define PACKAGE_NAME "$PACKAGE_NAME"
1862 cat >>confdefs.h <<_ACEOF
1863 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1867 cat >>confdefs.h <<_ACEOF
1868 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1872 cat >>confdefs.h <<_ACEOF
1873 #define PACKAGE_STRING "$PACKAGE_STRING"
1877 cat >>confdefs.h <<_ACEOF
1878 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1882 # Let the site file select an alternate cache file if it wants to.
1883 # Prefer explicitly selected file to automatically selected ones.
1884 if test -n "$CONFIG_SITE"; then
1885 set x "$CONFIG_SITE"
1886 elif test "x$prefix" != xNONE; then
1887 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1889 set x "$ac_default_prefix/share/config.site" \
1890 "$ac_default_prefix/etc/config.site"
1895 if test -r "$ac_site_file"; then
1896 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1897 echo "$as_me: loading site script $ac_site_file" >&6;}
1898 sed 's/^/| /' "$ac_site_file" >&5
1903 if test -r "$cache_file"; then
1904 # Some versions of bash will fail to source /dev/null (special
1905 # files actually), so we avoid doing that.
1906 if test -f "$cache_file"; then
1907 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1908 echo "$as_me: loading cache $cache_file" >&6;}
1910 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1911 *) . "./$cache_file";;
1915 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1916 echo "$as_me: creating cache $cache_file" >&6;}
1920 # Check that the precious variables saved in the cache have kept the same
1922 ac_cache_corrupted=false
1923 for ac_var in $ac_precious_vars; do
1924 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1925 eval ac_new_set=\$ac_env_${ac_var}_set
1926 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1927 eval ac_new_val=\$ac_env_${ac_var}_value
1928 case $ac_old_set,$ac_new_set in
1930 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1931 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1932 ac_cache_corrupted=: ;;
1934 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1935 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1936 ac_cache_corrupted=: ;;
1939 if test "x$ac_old_val" != "x$ac_new_val"; then
1940 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1941 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1942 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1943 echo "$as_me: former value: $ac_old_val" >&2;}
1944 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1945 echo "$as_me: current value: $ac_new_val" >&2;}
1946 ac_cache_corrupted=:
1949 # Pass precious variables to config.status.
1950 if test "$ac_new_set" = set; then
1952 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1953 *) ac_arg=$ac_var=$ac_new_val ;;
1955 case " $ac_configure_args " in
1956 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1957 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1961 if $ac_cache_corrupted; then
1962 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1963 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1964 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1965 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1966 { (exit 1); exit 1; }; }
1994 ac_cpp='$CPP $CPPFLAGS'
1995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2001 ac_config_headers="$ac_config_headers src/gras_config.h"
2003 # A CI_PREREQ(2003.01.16) # We need a recent ACI when having sub-modules
2007 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2008 if test -f "$ac_dir/install-sh"; then
2010 ac_install_sh="$ac_aux_dir/install-sh -c"
2012 elif test -f "$ac_dir/install.sh"; then
2014 ac_install_sh="$ac_aux_dir/install.sh -c"
2016 elif test -f "$ac_dir/shtool"; then
2018 ac_install_sh="$ac_aux_dir/shtool install -c"
2022 if test -z "$ac_aux_dir"; then
2023 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2024 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2025 { (exit 1); exit 1; }; }
2028 # These three variables are undocumented and unsupported,
2029 # and are intended to be withdrawn in a future Autoconf release.
2030 # They can cause serious problems if a builder's source tree is in a directory
2031 # whose full name contains unusual characters.
2032 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2033 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2034 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2037 # Make sure we can run config.sub.
2038 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2039 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2040 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2041 { (exit 1); exit 1; }; }
2043 { echo "$as_me:$LINENO: checking build system type" >&5
2044 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2045 if test "${ac_cv_build+set}" = set; then
2046 echo $ECHO_N "(cached) $ECHO_C" >&6
2048 ac_build_alias=$build_alias
2049 test "x$ac_build_alias" = x &&
2050 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2051 test "x$ac_build_alias" = x &&
2052 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2053 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2054 { (exit 1); exit 1; }; }
2055 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2056 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2057 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2058 { (exit 1); exit 1; }; }
2061 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2062 echo "${ECHO_T}$ac_cv_build" >&6; }
2063 case $ac_cv_build in
2065 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2066 echo "$as_me: error: invalid value of canonical build" >&2;}
2067 { (exit 1); exit 1; }; };;
2070 ac_save_IFS=$IFS; IFS='-'
2076 # Remember, the first character of IFS is used to create $*,
2077 # except with old shells:
2080 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2083 { echo "$as_me:$LINENO: checking host system type" >&5
2084 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2085 if test "${ac_cv_host+set}" = set; then
2086 echo $ECHO_N "(cached) $ECHO_C" >&6
2088 if test "x$host_alias" = x; then
2089 ac_cv_host=$ac_cv_build
2091 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2092 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2093 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2094 { (exit 1); exit 1; }; }
2098 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2099 echo "${ECHO_T}$ac_cv_host" >&6; }
2102 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2103 echo "$as_me: error: invalid value of canonical host" >&2;}
2104 { (exit 1); exit 1; }; };;
2107 ac_save_IFS=$IFS; IFS='-'
2113 # Remember, the first character of IFS is used to create $*,
2114 # except with old shells:
2117 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2120 { echo "$as_me:$LINENO: checking target system type" >&5
2121 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2122 if test "${ac_cv_target+set}" = set; then
2123 echo $ECHO_N "(cached) $ECHO_C" >&6
2125 if test "x$target_alias" = x; then
2126 ac_cv_target=$ac_cv_host
2128 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2129 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2130 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2131 { (exit 1); exit 1; }; }
2135 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2136 echo "${ECHO_T}$ac_cv_target" >&6; }
2137 case $ac_cv_target in
2139 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2140 echo "$as_me: error: invalid value of canonical target" >&2;}
2141 { (exit 1); exit 1; }; };;
2143 target=$ac_cv_target
2144 ac_save_IFS=$IFS; IFS='-'
2150 # Remember, the first character of IFS is used to create $*,
2151 # except with old shells:
2154 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2157 # The aliases save the names the user supplied, while $host etc.
2158 # will get canonicalized.
2159 test -n "$target_alias" &&
2160 test "$program_prefix$program_suffix$program_transform_name" = \
2162 program_prefix=${target_alias}-
2164 ac_cpp='$CPP $CPPFLAGS'
2165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2169 rm -rf .tst 2>/dev/null
2170 mkdir .tst 2>/dev/null
2171 if test -d .tst; then
2176 rmdir .tst 2>/dev/null
2178 DEPDIR="${am__leading_dot}deps"
2180 ac_config_commands="$ac_config_commands depfiles"
2183 am_make=${MAKE-make}
2184 cat > confinc << 'END'
2189 # If we don't find an include directive, just comment out the code.
2190 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2191 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2195 # First try GNU make style include.
2196 echo "include confinc" > confmf
2197 # We grep out `Entering directory' and `Leaving directory'
2198 # messages which can occur if `w' ends up in MAKEFLAGS.
2199 # In particular we don't look at `^make:' because GNU make might
2200 # be invoked under some other name (usually "gmake"), in which
2201 # case it prints its new name instead of `make'.
2202 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2207 # Now try BSD make style include.
2208 if test "$am__include" = "#"; then
2209 echo '.include "confinc"' > confmf
2210 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2211 am__include=.include
2218 { echo "$as_me:$LINENO: result: $_am_result" >&5
2219 echo "${ECHO_T}$_am_result" >&6; }
2220 rm -f confinc confmf
2222 # Check whether --enable-dependency-tracking was given.
2223 if test "${enable_dependency_tracking+set}" = set; then
2224 enableval=$enable_dependency_tracking;
2227 if test "x$enable_dependency_tracking" != xno; then
2228 am_depcomp="$ac_aux_dir/depcomp"
2231 if test "x$enable_dependency_tracking" != xno; then
2241 for ac_prog in gcj gcj-3.2 gcj-3.1 gcj-3.0 gcj-2.95
2243 # Extract the first word of "$ac_prog", so it can be a program name with args.
2244 set dummy $ac_prog; ac_word=$2
2245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2247 if test "${ac_cv_prog_GCJ+set}" = set; then
2248 echo $ECHO_N "(cached) $ECHO_C" >&6
2250 if test -n "$GCJ"; then
2251 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
2253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2257 test -z "$as_dir" && as_dir=.
2258 for ac_exec_ext in '' $ac_executable_extensions; do
2259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2260 ac_cv_prog_GCJ="$ac_prog"
2261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2271 if test -n "$GCJ"; then
2272 { echo "$as_me:$LINENO: result: $GCJ" >&5
2273 echo "${ECHO_T}$GCJ" >&6; }
2275 { echo "$as_me:$LINENO: result: no" >&5
2276 echo "${ECHO_T}no" >&6; }
2280 test -n "$GCJ" && break
2282 test -n "$GCJ" || GCJ="gcj"
2284 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
2285 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
2286 { (exit 1); exit 1; }; }
2287 if test "x${GCJFLAGS-unset}" = xunset; then
2292 depcc="$GCJ" am_compiler_list='gcc3 gcc'
2294 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2295 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
2296 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
2297 echo $ECHO_N "(cached) $ECHO_C" >&6
2299 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2300 # We make a subdir and do the tests there. Otherwise we can end up
2301 # making bogus files that we don't know about and never remove. For
2302 # instance it was reported that on HP-UX the gcc test will end up
2303 # making a dummy file named `D' -- because `-MD' means `put the output
2306 # Copy depcomp to subdir because otherwise we won't find it if we're
2307 # using a relative directory.
2308 cp "$am_depcomp" conftest.dir
2310 # We will build objects and dependencies in a subdirectory because
2311 # it helps to detect inapplicable dependency modes. For instance
2312 # both Tru64's cc and ICC support -MD to output dependencies as a
2313 # side effect of compilation, but ICC will put the dependencies in
2314 # the current directory while Tru64 will put them in the object
2318 am_cv_GCJ_dependencies_compiler_type=none
2319 if test "$am_compiler_list" = ""; then
2320 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2322 for depmode in $am_compiler_list; do
2323 # Setup a source with many dependencies, because some compilers
2324 # like to wrap large dependency lists on column 80 (with \), and
2325 # we should not choose a depcomp mode which is confused by this.
2327 # We need to recreate these files for each test, as the compiler may
2328 # overwrite some of them when testing with obscure command lines.
2329 # This happens at least with the AIX C compiler.
2331 for i in 1 2 3 4 5 6; do
2332 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2333 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2334 # Solaris 8's {/usr,}/bin/sh.
2335 touch sub/conftst$i.h
2337 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2341 # after this tag, mechanisms are not by side-effect, so they'll
2342 # only be used when explicitly requested
2343 if test "x$enable_dependency_tracking" = xyes; then
2351 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2352 # mode. It turns out that the SunPro C++ compiler does not properly
2353 # handle `-M -o', and we need to detect this.
2354 if depmode=$depmode \
2355 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2356 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2357 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2358 >/dev/null 2>conftest.err &&
2359 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
2360 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2361 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2362 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2363 # icc doesn't choke on unknown options, it will just issue warnings
2364 # or remarks (even with -Werror). So we grep stderr for any message
2365 # that says an option was ignored or not supported.
2366 # When given -MP, icc 7.0 and 7.1 complain thusly:
2367 # icc: Command line warning: ignoring option '-M'; no argument required
2368 # The diagnosis changed in icc 8.0:
2369 # icc: Command line remark: option '-MP' not supported
2370 if (grep 'ignoring option' conftest.err ||
2371 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2372 am_cv_GCJ_dependencies_compiler_type=$depmode
2381 am_cv_GCJ_dependencies_compiler_type=none
2385 { echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
2386 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6; }
2387 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
2390 test "x$enable_dependency_tracking" != xno \
2391 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
2392 am__fastdepGCJ_TRUE=
2393 am__fastdepGCJ_FALSE='#'
2395 am__fastdepGCJ_TRUE='#'
2396 am__fastdepGCJ_FALSE=
2402 am__api_version='1.10'
2404 # Find a good install program. We prefer a C program (faster),
2405 # so one script is as good as another. But avoid the broken or
2406 # incompatible versions:
2407 # SysV /etc/install, /usr/sbin/install
2408 # SunOS /usr/etc/install
2409 # IRIX /sbin/install
2411 # AmigaOS /C/install, which installs bootblocks on floppy discs
2412 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2413 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2414 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2415 # OS/2's system install, which has a completely different semantic
2416 # ./install, which can be erroneously created by make from ./install.sh.
2417 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2418 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2419 if test -z "$INSTALL"; then
2420 if test "${ac_cv_path_install+set}" = set; then
2421 echo $ECHO_N "(cached) $ECHO_C" >&6
2423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2427 test -z "$as_dir" && as_dir=.
2428 # Account for people who put trailing slashes in PATH elements.
2430 ./ | .// | /cC/* | \
2431 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2432 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2435 # OSF1 and SCO ODT 3.0 have their own names for install.
2436 # Don't use installbsd from OSF since it installs stuff as root
2438 for ac_prog in ginstall scoinst install; do
2439 for ac_exec_ext in '' $ac_executable_extensions; do
2440 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2441 if test $ac_prog = install &&
2442 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2443 # AIX install. It has an incompatible calling convention.
2445 elif test $ac_prog = install &&
2446 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2447 # program-specific install script used by HP pwplus--don't use.
2450 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2463 if test "${ac_cv_path_install+set}" = set; then
2464 INSTALL=$ac_cv_path_install
2466 # As a last resort, use the slow shell script. Don't cache a
2467 # value for INSTALL within a source directory, because that will
2468 # break other packages using the cache if that directory is
2469 # removed, or if the value is a relative name.
2470 INSTALL=$ac_install_sh
2473 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2474 echo "${ECHO_T}$INSTALL" >&6; }
2476 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2477 # It thinks the first close brace ends the variable substitution.
2478 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2480 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2482 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2484 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2485 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2488 echo timestamp > conftest.file
2489 # Do `set' in a subshell so we don't clobber the current shell's
2490 # arguments. Must try -L first in case configure is actually a
2491 # symlink; some systems play weird games with the mod time of symlinks
2492 # (eg FreeBSD returns the mod time of the symlink's containing
2495 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2496 if test "$*" = "X"; then
2498 set X `ls -t $srcdir/configure conftest.file`
2501 if test "$*" != "X $srcdir/configure conftest.file" \
2502 && test "$*" != "X conftest.file $srcdir/configure"; then
2504 # If neither matched, then we have a broken ls. This can happen
2505 # if, for instance, CONFIG_SHELL is bash and it inherits a
2506 # broken ls alias from the environment. This has actually
2507 # happened. Such a system could not be considered "sane".
2508 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2509 alias in your environment" >&5
2510 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2511 alias in your environment" >&2;}
2512 { (exit 1); exit 1; }; }
2515 test "$2" = conftest.file
2521 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2522 Check your system clock" >&5
2523 echo "$as_me: error: newly created file is older than distributed files!
2524 Check your system clock" >&2;}
2525 { (exit 1); exit 1; }; }
2527 { echo "$as_me:$LINENO: result: yes" >&5
2528 echo "${ECHO_T}yes" >&6; }
2529 test "$program_prefix" != NONE &&
2530 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2531 # Use a double $ so make ignores it.
2532 test "$program_suffix" != NONE &&
2533 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2534 # Double any \ or $. echo might interpret backslashes.
2535 # By default was `s,x,x', remove it if useless.
2536 cat <<\_ACEOF >conftest.sed
2537 s/[\\$]/&&/g;s/;s,x,x,$//
2539 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2542 # expand $ac_aux_dir to an absolute path
2543 am_aux_dir=`cd $ac_aux_dir && pwd`
2545 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2546 # Use eval to expand $SHELL
2547 if eval "$MISSING --run true"; then
2548 am_missing_run="$MISSING --run "
2551 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2552 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2555 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2556 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2557 if test -z "$MKDIR_P"; then
2558 if test "${ac_cv_path_mkdir+set}" = set; then
2559 echo $ECHO_N "(cached) $ECHO_C" >&6
2561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2562 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2565 test -z "$as_dir" && as_dir=.
2566 for ac_prog in mkdir gmkdir; do
2567 for ac_exec_ext in '' $ac_executable_extensions; do
2568 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2569 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2570 'mkdir (GNU coreutils) '* | \
2571 'mkdir (coreutils) '* | \
2572 'mkdir (fileutils) '4.1*)
2573 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2583 if test "${ac_cv_path_mkdir+set}" = set; then
2584 MKDIR_P="$ac_cv_path_mkdir -p"
2586 # As a last resort, use the slow shell script. Don't cache a
2587 # value for MKDIR_P within a source directory, because that will
2588 # break other packages using the cache if that directory is
2589 # removed, or if the value is a relative name.
2590 test -d ./--version && rmdir ./--version
2591 MKDIR_P="$ac_install_sh -d"
2594 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2595 echo "${ECHO_T}$MKDIR_P" >&6; }
2599 [\\/$]* | ?:[\\/]*) ;;
2600 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2603 for ac_prog in gawk mawk nawk awk
2605 # Extract the first word of "$ac_prog", so it can be a program name with args.
2606 set dummy $ac_prog; ac_word=$2
2607 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2609 if test "${ac_cv_prog_AWK+set}" = set; then
2610 echo $ECHO_N "(cached) $ECHO_C" >&6
2612 if test -n "$AWK"; then
2613 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2619 test -z "$as_dir" && as_dir=.
2620 for ac_exec_ext in '' $ac_executable_extensions; do
2621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2622 ac_cv_prog_AWK="$ac_prog"
2623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2633 if test -n "$AWK"; then
2634 { echo "$as_me:$LINENO: result: $AWK" >&5
2635 echo "${ECHO_T}$AWK" >&6; }
2637 { echo "$as_me:$LINENO: result: no" >&5
2638 echo "${ECHO_T}no" >&6; }
2642 test -n "$AWK" && break
2645 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2646 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2647 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2648 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2649 echo $ECHO_N "(cached) $ECHO_C" >&6
2651 cat >conftest.make <<\_ACEOF
2654 @echo '@@@%%%=$(MAKE)=@@@%%%'
2656 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2657 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2659 eval ac_cv_prog_make_${ac_make}_set=yes;;
2661 eval ac_cv_prog_make_${ac_make}_set=no;;
2665 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2666 { echo "$as_me:$LINENO: result: yes" >&5
2667 echo "${ECHO_T}yes" >&6; }
2670 { echo "$as_me:$LINENO: result: no" >&5
2671 echo "${ECHO_T}no" >&6; }
2672 SET_MAKE="MAKE=${MAKE-make}"
2675 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2676 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2677 # is not polluted with repeated "-I."
2678 am__isrc=' -I$(srcdir)'
2679 # test to see if srcdir already configured
2680 if test -f $srcdir/config.status; then
2681 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2682 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2683 { (exit 1); exit 1; }; }
2687 # test whether we have cygpath
2688 if test -z "$CYGPATH_W"; then
2689 if (cygpath --version) >/dev/null 2>/dev/null; then
2690 CYGPATH_W='cygpath -w'
2697 # Define the identity of the package.
2702 cat >>confdefs.h <<_ACEOF
2703 #define PACKAGE "$PACKAGE"
2707 cat >>confdefs.h <<_ACEOF
2708 #define VERSION "$VERSION"
2711 # Some tools Automake needs.
2713 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2716 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2719 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2722 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2725 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2727 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2729 # Installed binaries are usually stripped using `strip' when the user
2730 # run `make install-strip'. However `strip' might not be the right
2731 # tool to use in cross-compilation environments, therefore Automake
2732 # will honor the `STRIP' environment variable to overrule this program.
2733 if test "$cross_compiling" != no; then
2734 if test -n "$ac_tool_prefix"; then
2735 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2736 set dummy ${ac_tool_prefix}strip; ac_word=$2
2737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2739 if test "${ac_cv_prog_STRIP+set}" = set; then
2740 echo $ECHO_N "(cached) $ECHO_C" >&6
2742 if test -n "$STRIP"; then
2743 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749 test -z "$as_dir" && as_dir=.
2750 for ac_exec_ext in '' $ac_executable_extensions; do
2751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2752 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2762 STRIP=$ac_cv_prog_STRIP
2763 if test -n "$STRIP"; then
2764 { echo "$as_me:$LINENO: result: $STRIP" >&5
2765 echo "${ECHO_T}$STRIP" >&6; }
2767 { echo "$as_me:$LINENO: result: no" >&5
2768 echo "${ECHO_T}no" >&6; }
2773 if test -z "$ac_cv_prog_STRIP"; then
2775 # Extract the first word of "strip", so it can be a program name with args.
2776 set dummy strip; ac_word=$2
2777 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2779 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2780 echo $ECHO_N "(cached) $ECHO_C" >&6
2782 if test -n "$ac_ct_STRIP"; then
2783 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789 test -z "$as_dir" && as_dir=.
2790 for ac_exec_ext in '' $ac_executable_extensions; do
2791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2792 ac_cv_prog_ac_ct_STRIP="strip"
2793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2802 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2803 if test -n "$ac_ct_STRIP"; then
2804 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2805 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2807 { echo "$as_me:$LINENO: result: no" >&5
2808 echo "${ECHO_T}no" >&6; }
2811 if test "x$ac_ct_STRIP" = x; then
2814 case $cross_compiling:$ac_tool_warned in
2816 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2817 whose name does not start with the host triplet. If you think this
2818 configuration is useful to you, please write to autoconf@gnu.org." >&5
2819 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2820 whose name does not start with the host triplet. If you think this
2821 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2822 ac_tool_warned=yes ;;
2827 STRIP="$ac_cv_prog_STRIP"
2831 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2833 # We need awk for the "check" target. The system "awk" is bad on
2835 # Always define AMTAR for backward compatibility.
2837 AMTAR=${AMTAR-"${am_missing_run}tar"}
2839 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2846 ACLOCAL="$ACLOCAL -I acmacro"
2853 # Check whether --enable-shared was given.
2854 if test "${enable_shared+set}" = set; then
2855 enableval=$enable_shared; p=${PACKAGE-default}
2857 yes) enable_shared=yes ;;
2858 no) enable_shared=no ;;
2861 # Look at the argument we got. We use all the common list separators.
2862 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2863 for pkg in $enableval; do
2865 if test "X$pkg" = "X$p"; then
2877 # Check whether --enable-static was given.
2878 if test "${enable_static+set}" = set; then
2879 enableval=$enable_static; p=${PACKAGE-default}
2881 yes) enable_static=yes ;;
2882 no) enable_static=no ;;
2885 # Look at the argument we got. We use all the common list separators.
2886 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2887 for pkg in $enableval; do
2889 if test "X$pkg" = "X$p"; then
2901 # Check whether --enable-fast-install was given.
2902 if test "${enable_fast_install+set}" = set; then
2903 enableval=$enable_fast_install; p=${PACKAGE-default}
2905 yes) enable_fast_install=yes ;;
2906 no) enable_fast_install=no ;;
2908 enable_fast_install=no
2909 # Look at the argument we got. We use all the common list separators.
2910 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2911 for pkg in $enableval; do
2913 if test "X$pkg" = "X$p"; then
2914 enable_fast_install=yes
2921 enable_fast_install=yes
2926 ac_cpp='$CPP $CPPFLAGS'
2927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2930 if test -n "$ac_tool_prefix"; then
2931 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2932 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2933 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2935 if test "${ac_cv_prog_CC+set}" = set; then
2936 echo $ECHO_N "(cached) $ECHO_C" >&6
2938 if test -n "$CC"; then
2939 ac_cv_prog_CC="$CC" # Let the user override the test.
2941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2945 test -z "$as_dir" && as_dir=.
2946 for ac_exec_ext in '' $ac_executable_extensions; do
2947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2948 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2959 if test -n "$CC"; then
2960 { echo "$as_me:$LINENO: result: $CC" >&5
2961 echo "${ECHO_T}$CC" >&6; }
2963 { echo "$as_me:$LINENO: result: no" >&5
2964 echo "${ECHO_T}no" >&6; }
2969 if test -z "$ac_cv_prog_CC"; then
2971 # Extract the first word of "gcc", so it can be a program name with args.
2972 set dummy gcc; ac_word=$2
2973 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2975 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2976 echo $ECHO_N "(cached) $ECHO_C" >&6
2978 if test -n "$ac_ct_CC"; then
2979 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985 test -z "$as_dir" && as_dir=.
2986 for ac_exec_ext in '' $ac_executable_extensions; do
2987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2988 ac_cv_prog_ac_ct_CC="gcc"
2989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2998 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2999 if test -n "$ac_ct_CC"; then
3000 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3001 echo "${ECHO_T}$ac_ct_CC" >&6; }
3003 { echo "$as_me:$LINENO: result: no" >&5
3004 echo "${ECHO_T}no" >&6; }
3007 if test "x$ac_ct_CC" = x; then
3010 case $cross_compiling:$ac_tool_warned in
3012 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3013 whose name does not start with the host triplet. If you think this
3014 configuration is useful to you, please write to autoconf@gnu.org." >&5
3015 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3016 whose name does not start with the host triplet. If you think this
3017 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3018 ac_tool_warned=yes ;;
3026 if test -z "$CC"; then
3027 if test -n "$ac_tool_prefix"; then
3028 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3029 set dummy ${ac_tool_prefix}cc; ac_word=$2
3030 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3032 if test "${ac_cv_prog_CC+set}" = set; then
3033 echo $ECHO_N "(cached) $ECHO_C" >&6
3035 if test -n "$CC"; then
3036 ac_cv_prog_CC="$CC" # Let the user override the test.
3038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3042 test -z "$as_dir" && as_dir=.
3043 for ac_exec_ext in '' $ac_executable_extensions; do
3044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3045 ac_cv_prog_CC="${ac_tool_prefix}cc"
3046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3056 if test -n "$CC"; then
3057 { echo "$as_me:$LINENO: result: $CC" >&5
3058 echo "${ECHO_T}$CC" >&6; }
3060 { echo "$as_me:$LINENO: result: no" >&5
3061 echo "${ECHO_T}no" >&6; }
3067 if test -z "$CC"; then
3068 # Extract the first word of "cc", so it can be a program name with args.
3069 set dummy cc; ac_word=$2
3070 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3072 if test "${ac_cv_prog_CC+set}" = set; then
3073 echo $ECHO_N "(cached) $ECHO_C" >&6
3075 if test -n "$CC"; then
3076 ac_cv_prog_CC="$CC" # Let the user override the test.
3079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3083 test -z "$as_dir" && as_dir=.
3084 for ac_exec_ext in '' $ac_executable_extensions; do
3085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3086 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3087 ac_prog_rejected=yes
3091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3098 if test $ac_prog_rejected = yes; then
3099 # We found a bogon in the path, so make sure we never use it.
3100 set dummy $ac_cv_prog_CC
3102 if test $# != 0; then
3103 # We chose a different compiler from the bogus one.
3104 # However, it has the same basename, so the bogon will be chosen
3105 # first if we set CC to just the basename; use the full file name.
3107 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3113 if test -n "$CC"; then
3114 { echo "$as_me:$LINENO: result: $CC" >&5
3115 echo "${ECHO_T}$CC" >&6; }
3117 { echo "$as_me:$LINENO: result: no" >&5
3118 echo "${ECHO_T}no" >&6; }
3123 if test -z "$CC"; then
3124 if test -n "$ac_tool_prefix"; then
3125 for ac_prog in cl.exe
3127 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3128 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3129 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3131 if test "${ac_cv_prog_CC+set}" = set; then
3132 echo $ECHO_N "(cached) $ECHO_C" >&6
3134 if test -n "$CC"; then
3135 ac_cv_prog_CC="$CC" # Let the user override the test.
3137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3141 test -z "$as_dir" && as_dir=.
3142 for ac_exec_ext in '' $ac_executable_extensions; do
3143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3144 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3155 if test -n "$CC"; then
3156 { echo "$as_me:$LINENO: result: $CC" >&5
3157 echo "${ECHO_T}$CC" >&6; }
3159 { echo "$as_me:$LINENO: result: no" >&5
3160 echo "${ECHO_T}no" >&6; }
3164 test -n "$CC" && break
3167 if test -z "$CC"; then
3169 for ac_prog in cl.exe
3171 # Extract the first word of "$ac_prog", so it can be a program name with args.
3172 set dummy $ac_prog; ac_word=$2
3173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3175 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3176 echo $ECHO_N "(cached) $ECHO_C" >&6
3178 if test -n "$ac_ct_CC"; then
3179 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3185 test -z "$as_dir" && as_dir=.
3186 for ac_exec_ext in '' $ac_executable_extensions; do
3187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3188 ac_cv_prog_ac_ct_CC="$ac_prog"
3189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3198 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3199 if test -n "$ac_ct_CC"; then
3200 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3201 echo "${ECHO_T}$ac_ct_CC" >&6; }
3203 { echo "$as_me:$LINENO: result: no" >&5
3204 echo "${ECHO_T}no" >&6; }
3208 test -n "$ac_ct_CC" && break
3211 if test "x$ac_ct_CC" = x; then
3214 case $cross_compiling:$ac_tool_warned in
3216 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3217 whose name does not start with the host triplet. If you think this
3218 configuration is useful to you, please write to autoconf@gnu.org." >&5
3219 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3220 whose name does not start with the host triplet. If you think this
3221 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3222 ac_tool_warned=yes ;;
3231 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3232 See \`config.log' for more details." >&5
3233 echo "$as_me: error: no acceptable C compiler found in \$PATH
3234 See \`config.log' for more details." >&2;}
3235 { (exit 1); exit 1; }; }
3237 # Provide some information about the compiler.
3238 echo "$as_me:$LINENO: checking for C compiler version" >&5
3239 ac_compiler=`set X $ac_compile; echo $2`
3240 { (ac_try="$ac_compiler --version >&5"
3242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243 *) ac_try_echo=$ac_try;;
3245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3246 (eval "$ac_compiler --version >&5") 2>&5
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); }
3250 { (ac_try="$ac_compiler -v >&5"
3252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253 *) ac_try_echo=$ac_try;;
3255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3256 (eval "$ac_compiler -v >&5") 2>&5
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); }
3260 { (ac_try="$ac_compiler -V >&5"
3262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3263 *) ac_try_echo=$ac_try;;
3265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3266 (eval "$ac_compiler -V >&5") 2>&5
3268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269 (exit $ac_status); }
3271 cat >conftest.$ac_ext <<_ACEOF
3274 cat confdefs.h >>conftest.$ac_ext
3275 cat >>conftest.$ac_ext <<_ACEOF
3276 /* end confdefs.h. */
3286 ac_clean_files_save=$ac_clean_files
3287 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3288 # Try to create an executable without -o first, disregard a.out.
3289 # It will help us diagnose broken compilers, and finding out an intuition
3291 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3292 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3293 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3295 # List of possible output files, starting from the most likely.
3296 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3297 # only as a last resort. b.out is created by i960 compilers.
3298 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3300 # The IRIX 6 linker writes into existing files which may not be
3301 # executable, retaining their permissions. Remove them first so a
3302 # subsequent execution test works.
3304 for ac_file in $ac_files
3307 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3308 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3313 if { (ac_try="$ac_link_default"
3315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3316 *) ac_try_echo=$ac_try;;
3318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3319 (eval "$ac_link_default") 2>&5
3321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); }; then
3323 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3324 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3325 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3326 # so that the user can short-circuit this test for compilers unknown to
3328 for ac_file in $ac_files ''
3330 test -f "$ac_file" || continue
3332 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3335 # We found the default executable, but exeext='' is most
3339 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3341 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3343 # We set ac_cv_exeext here because the later test for it is not
3344 # safe: cross compilers may not add the suffix if given an `-o'
3345 # argument, so we may need to know it at that point already.
3346 # Even if this section looks crufty: it has the advantage of
3353 test "$ac_cv_exeext" = no && ac_cv_exeext=
3359 { echo "$as_me:$LINENO: result: $ac_file" >&5
3360 echo "${ECHO_T}$ac_file" >&6; }
3361 if test -z "$ac_file"; then
3362 echo "$as_me: failed program was:" >&5
3363 sed 's/^/| /' conftest.$ac_ext >&5
3365 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3366 See \`config.log' for more details." >&5
3367 echo "$as_me: error: C compiler cannot create executables
3368 See \`config.log' for more details." >&2;}
3369 { (exit 77); exit 77; }; }
3372 ac_exeext=$ac_cv_exeext
3374 # Check that the compiler produces executables we can run. If not, either
3375 # the compiler is broken, or we cross compile.
3376 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3377 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3378 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3379 # If not cross compiling, check that we can run a simple program.
3380 if test "$cross_compiling" != yes; then
3381 if { ac_try='./$ac_file'
3382 { (case "(($ac_try" in
3383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384 *) ac_try_echo=$ac_try;;
3386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3387 (eval "$ac_try") 2>&5
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); }; }; then
3393 if test "$cross_compiling" = maybe; then
3396 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3397 If you meant to cross compile, use \`--host'.
3398 See \`config.log' for more details." >&5
3399 echo "$as_me: error: cannot run C compiled programs.
3400 If you meant to cross compile, use \`--host'.
3401 See \`config.log' for more details." >&2;}
3402 { (exit 1); exit 1; }; }
3406 { echo "$as_me:$LINENO: result: yes" >&5
3407 echo "${ECHO_T}yes" >&6; }
3409 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3410 ac_clean_files=$ac_clean_files_save
3411 # Check that the compiler produces executables we can run. If not, either
3412 # the compiler is broken, or we cross compile.
3413 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3414 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3415 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3416 echo "${ECHO_T}$cross_compiling" >&6; }
3418 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3419 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3420 if { (ac_try="$ac_link"
3422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3423 *) ac_try_echo=$ac_try;;
3425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3426 (eval "$ac_link") 2>&5
3428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429 (exit $ac_status); }; then
3430 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3431 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3432 # work properly (i.e., refer to `conftest.exe'), while it won't with
3434 for ac_file in conftest.exe conftest conftest.*; do
3435 test -f "$ac_file" || continue
3437 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3438 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3444 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3445 See \`config.log' for more details." >&5
3446 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3447 See \`config.log' for more details." >&2;}
3448 { (exit 1); exit 1; }; }
3451 rm -f conftest$ac_cv_exeext
3452 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3453 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3455 rm -f conftest.$ac_ext
3456 EXEEXT=$ac_cv_exeext
3458 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3459 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3460 if test "${ac_cv_objext+set}" = set; then
3461 echo $ECHO_N "(cached) $ECHO_C" >&6
3463 cat >conftest.$ac_ext <<_ACEOF
3466 cat confdefs.h >>conftest.$ac_ext
3467 cat >>conftest.$ac_ext <<_ACEOF
3468 /* end confdefs.h. */
3478 rm -f conftest.o conftest.obj
3479 if { (ac_try="$ac_compile"
3481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482 *) ac_try_echo=$ac_try;;
3484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3485 (eval "$ac_compile") 2>&5
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); }; then
3489 for ac_file in conftest.o conftest.obj conftest.*; do
3490 test -f "$ac_file" || continue;
3492 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3493 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3498 echo "$as_me: failed program was:" >&5
3499 sed 's/^/| /' conftest.$ac_ext >&5
3501 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3502 See \`config.log' for more details." >&5
3503 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3504 See \`config.log' for more details." >&2;}
3505 { (exit 1); exit 1; }; }
3508 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3510 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3511 echo "${ECHO_T}$ac_cv_objext" >&6; }
3512 OBJEXT=$ac_cv_objext
3514 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3515 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3516 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3517 echo $ECHO_N "(cached) $ECHO_C" >&6
3519 cat >conftest.$ac_ext <<_ACEOF
3522 cat confdefs.h >>conftest.$ac_ext
3523 cat >>conftest.$ac_ext <<_ACEOF
3524 /* end confdefs.h. */
3537 rm -f conftest.$ac_objext
3538 if { (ac_try="$ac_compile"
3540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3541 *) ac_try_echo=$ac_try;;
3543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3544 (eval "$ac_compile") 2>conftest.er1
3546 grep -v '^ *+' conftest.er1 >conftest.err
3548 cat conftest.err >&5
3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); } && {
3551 test -z "$ac_c_werror_flag" ||
3552 test ! -s conftest.err
3553 } && test -s conftest.$ac_objext; then
3556 echo "$as_me: failed program was:" >&5
3557 sed 's/^/| /' conftest.$ac_ext >&5
3562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3563 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3566 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3567 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3568 GCC=`test $ac_compiler_gnu = yes && echo yes`
3569 ac_test_CFLAGS=${CFLAGS+set}
3570 ac_save_CFLAGS=$CFLAGS
3571 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3572 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3573 if test "${ac_cv_prog_cc_g+set}" = set; then
3574 echo $ECHO_N "(cached) $ECHO_C" >&6
3576 ac_save_c_werror_flag=$ac_c_werror_flag
3577 ac_c_werror_flag=yes
3580 cat >conftest.$ac_ext <<_ACEOF
3583 cat confdefs.h >>conftest.$ac_ext
3584 cat >>conftest.$ac_ext <<_ACEOF
3585 /* end confdefs.h. */
3595 rm -f conftest.$ac_objext
3596 if { (ac_try="$ac_compile"
3598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599 *) ac_try_echo=$ac_try;;
3601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3602 (eval "$ac_compile") 2>conftest.er1
3604 grep -v '^ *+' conftest.er1 >conftest.err
3606 cat conftest.err >&5
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); } && {
3609 test -z "$ac_c_werror_flag" ||
3610 test ! -s conftest.err
3611 } && test -s conftest.$ac_objext; then
3614 echo "$as_me: failed program was:" >&5
3615 sed 's/^/| /' conftest.$ac_ext >&5
3618 cat >conftest.$ac_ext <<_ACEOF
3621 cat confdefs.h >>conftest.$ac_ext
3622 cat >>conftest.$ac_ext <<_ACEOF
3623 /* end confdefs.h. */
3633 rm -f conftest.$ac_objext
3634 if { (ac_try="$ac_compile"
3636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3637 *) ac_try_echo=$ac_try;;
3639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3640 (eval "$ac_compile") 2>conftest.er1
3642 grep -v '^ *+' conftest.er1 >conftest.err
3644 cat conftest.err >&5
3645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646 (exit $ac_status); } && {
3647 test -z "$ac_c_werror_flag" ||
3648 test ! -s conftest.err
3649 } && test -s conftest.$ac_objext; then
3652 echo "$as_me: failed program was:" >&5
3653 sed 's/^/| /' conftest.$ac_ext >&5
3655 ac_c_werror_flag=$ac_save_c_werror_flag
3657 cat >conftest.$ac_ext <<_ACEOF
3660 cat confdefs.h >>conftest.$ac_ext
3661 cat >>conftest.$ac_ext <<_ACEOF
3662 /* end confdefs.h. */
3672 rm -f conftest.$ac_objext
3673 if { (ac_try="$ac_compile"
3675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3676 *) ac_try_echo=$ac_try;;
3678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3679 (eval "$ac_compile") 2>conftest.er1
3681 grep -v '^ *+' conftest.er1 >conftest.err
3683 cat conftest.err >&5
3684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685 (exit $ac_status); } && {
3686 test -z "$ac_c_werror_flag" ||
3687 test ! -s conftest.err
3688 } && test -s conftest.$ac_objext; then
3691 echo "$as_me: failed program was:" >&5
3692 sed 's/^/| /' conftest.$ac_ext >&5
3697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3704 ac_c_werror_flag=$ac_save_c_werror_flag
3706 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3707 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3708 if test "$ac_test_CFLAGS" = set; then
3709 CFLAGS=$ac_save_CFLAGS
3710 elif test $ac_cv_prog_cc_g = yes; then
3711 if test "$GCC" = yes; then
3717 if test "$GCC" = yes; then
3723 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3724 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3725 if test "${ac_cv_prog_cc_c89+set}" = set; then
3726 echo $ECHO_N "(cached) $ECHO_C" >&6
3728 ac_cv_prog_cc_c89=no
3730 cat >conftest.$ac_ext <<_ACEOF
3733 cat confdefs.h >>conftest.$ac_ext
3734 cat >>conftest.$ac_ext <<_ACEOF
3735 /* end confdefs.h. */
3738 #include <sys/types.h>
3739 #include <sys/stat.h>
3740 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3741 struct buf { int x; };
3742 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3743 static char *e (p, i)
3749 static char *f (char * (*g) (char **, int), char **p, ...)
3754 s = g (p, va_arg (v,int));
3759 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3760 function prototypes and stuff, but not '\xHH' hex character constants.
3761 These don't provoke an error unfortunately, instead are silently treated
3762 as 'x'. The following induces an error, until -std is added to get
3763 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3764 array size at least. It's necessary to write '\x00'==0 to get something
3765 that's true only with -std. */
3766 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3768 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3769 inside strings and character constants. */
3771 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3773 int test (int i, double x);
3774 struct s1 {int (*f) (int a);};
3775 struct s2 {int (*f) (double a);};
3776 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3782 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3787 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3788 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3790 CC="$ac_save_CC $ac_arg"
3791 rm -f conftest.$ac_objext
3792 if { (ac_try="$ac_compile"
3794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3795 *) ac_try_echo=$ac_try;;
3797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3798 (eval "$ac_compile") 2>conftest.er1
3800 grep -v '^ *+' conftest.er1 >conftest.err
3802 cat conftest.err >&5
3803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804 (exit $ac_status); } && {
3805 test -z "$ac_c_werror_flag" ||
3806 test ! -s conftest.err
3807 } && test -s conftest.$ac_objext; then
3808 ac_cv_prog_cc_c89=$ac_arg
3810 echo "$as_me: failed program was:" >&5
3811 sed 's/^/| /' conftest.$ac_ext >&5
3816 rm -f core conftest.err conftest.$ac_objext
3817 test "x$ac_cv_prog_cc_c89" != "xno" && break
3819 rm -f conftest.$ac_ext
3824 case "x$ac_cv_prog_cc_c89" in
3826 { echo "$as_me:$LINENO: result: none needed" >&5
3827 echo "${ECHO_T}none needed" >&6; } ;;
3829 { echo "$as_me:$LINENO: result: unsupported" >&5
3830 echo "${ECHO_T}unsupported" >&6; } ;;
3832 CC="$CC $ac_cv_prog_cc_c89"
3833 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3834 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3839 ac_cpp='$CPP $CPPFLAGS'
3840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3844 depcc="$CC" am_compiler_list=
3846 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3847 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3848 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3849 echo $ECHO_N "(cached) $ECHO_C" >&6
3851 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3852 # We make a subdir and do the tests there. Otherwise we can end up
3853 # making bogus files that we don't know about and never remove. For
3854 # instance it was reported that on HP-UX the gcc test will end up
3855 # making a dummy file named `D' -- because `-MD' means `put the output
3858 # Copy depcomp to subdir because otherwise we won't find it if we're
3859 # using a relative directory.
3860 cp "$am_depcomp" conftest.dir
3862 # We will build objects and dependencies in a subdirectory because
3863 # it helps to detect inapplicable dependency modes. For instance
3864 # both Tru64's cc and ICC support -MD to output dependencies as a
3865 # side effect of compilation, but ICC will put the dependencies in
3866 # the current directory while Tru64 will put them in the object
3870 am_cv_CC_dependencies_compiler_type=none
3871 if test "$am_compiler_list" = ""; then
3872 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3874 for depmode in $am_compiler_list; do
3875 # Setup a source with many dependencies, because some compilers
3876 # like to wrap large dependency lists on column 80 (with \), and
3877 # we should not choose a depcomp mode which is confused by this.
3879 # We need to recreate these files for each test, as the compiler may
3880 # overwrite some of them when testing with obscure command lines.
3881 # This happens at least with the AIX C compiler.
3883 for i in 1 2 3 4 5 6; do
3884 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3885 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3886 # Solaris 8's {/usr,}/bin/sh.
3887 touch sub/conftst$i.h
3889 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3893 # after this tag, mechanisms are not by side-effect, so they'll
3894 # only be used when explicitly requested
3895 if test "x$enable_dependency_tracking" = xyes; then
3903 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3904 # mode. It turns out that the SunPro C++ compiler does not properly
3905 # handle `-M -o', and we need to detect this.
3906 if depmode=$depmode \
3907 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3908 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3909 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3910 >/dev/null 2>conftest.err &&
3911 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3912 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3913 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3914 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3915 # icc doesn't choke on unknown options, it will just issue warnings
3916 # or remarks (even with -Werror). So we grep stderr for any message
3917 # that says an option was ignored or not supported.
3918 # When given -MP, icc 7.0 and 7.1 complain thusly:
3919 # icc: Command line warning: ignoring option '-M'; no argument required
3920 # The diagnosis changed in icc 8.0:
3921 # icc: Command line remark: option '-MP' not supported
3922 if (grep 'ignoring option' conftest.err ||
3923 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3924 am_cv_CC_dependencies_compiler_type=$depmode
3933 am_cv_CC_dependencies_compiler_type=none
3937 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3938 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3939 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3942 test "x$enable_dependency_tracking" != xno \
3943 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3945 am__fastdepCC_FALSE='#'
3947 am__fastdepCC_TRUE='#'
3948 am__fastdepCC_FALSE=
3952 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3953 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3954 if test "${lt_cv_path_SED+set}" = set; then
3955 echo $ECHO_N "(cached) $ECHO_C" >&6
3957 # Loop through the user's path and test for sed and gsed.
3958 # Then use that list of sed's as ones to test for truncation.
3959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3963 test -z "$as_dir" && as_dir=.
3964 for lt_ac_prog in sed gsed; do
3965 for ac_exec_ext in '' $ac_executable_extensions; do
3966 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3967 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3974 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3975 # along with /bin/sed that truncates output.
3976 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3977 test ! -f $lt_ac_sed && continue
3978 cat /dev/null > conftest.in
3980 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3981 # Check for GNU sed and select it if it is found.
3982 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3983 lt_cv_path_SED=$lt_ac_sed
3987 cat conftest.in conftest.in >conftest.tmp
3988 mv conftest.tmp conftest.in
3989 cp conftest.in conftest.nl
3991 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3992 cmp -s conftest.out conftest.nl || break
3993 # 10000 chars as input seems more than enough
3994 test $lt_ac_count -gt 10 && break
3995 lt_ac_count=`expr $lt_ac_count + 1`
3996 if test $lt_ac_count -gt $lt_ac_max; then
3997 lt_ac_max=$lt_ac_count
3998 lt_cv_path_SED=$lt_ac_sed
4006 { echo "$as_me:$LINENO: result: $SED" >&5
4007 echo "${ECHO_T}$SED" >&6; }
4009 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4010 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4011 if test "${ac_cv_path_GREP+set}" = set; then
4012 echo $ECHO_N "(cached) $ECHO_C" >&6
4014 # Extract the first word of "grep ggrep" to use in msg output
4015 if test -z "$GREP"; then
4016 set dummy grep ggrep; ac_prog_name=$2
4017 if test "${ac_cv_path_GREP+set}" = set; then
4018 echo $ECHO_N "(cached) $ECHO_C" >&6
4020 ac_path_GREP_found=false
4021 # Loop through the user's path and test for each of PROGNAME-LIST
4022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4023 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4026 test -z "$as_dir" && as_dir=.
4027 for ac_prog in grep ggrep; do
4028 for ac_exec_ext in '' $ac_executable_extensions; do
4029 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4030 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4031 # Check for GNU ac_path_GREP and select it if it is found.
4032 # Check for GNU $ac_path_GREP
4033 case `"$ac_path_GREP" --version 2>&1` in
4035 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4038 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4041 cat "conftest.in" "conftest.in" >"conftest.tmp"
4042 mv "conftest.tmp" "conftest.in"
4043 cp "conftest.in" "conftest.nl"
4044 echo 'GREP' >> "conftest.nl"
4045 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4046 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4047 ac_count=`expr $ac_count + 1`
4048 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4049 # Best one so far, save it but keep looking for a better one
4050 ac_cv_path_GREP="$ac_path_GREP"
4051 ac_path_GREP_max=$ac_count
4053 # 10*(2^10) chars as input seems more than enough
4054 test $ac_count -gt 10 && break
4056 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4060 $ac_path_GREP_found && break 3
4070 GREP="$ac_cv_path_GREP"
4071 if test -z "$GREP"; then
4072 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4073 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4074 { (exit 1); exit 1; }; }
4078 ac_cv_path_GREP=$GREP
4083 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4084 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4085 GREP="$ac_cv_path_GREP"
4088 { echo "$as_me:$LINENO: checking for egrep" >&5
4089 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4090 if test "${ac_cv_path_EGREP+set}" = set; then
4091 echo $ECHO_N "(cached) $ECHO_C" >&6
4093 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4094 then ac_cv_path_EGREP="$GREP -E"
4096 # Extract the first word of "egrep" to use in msg output
4097 if test -z "$EGREP"; then
4098 set dummy egrep; ac_prog_name=$2
4099 if test "${ac_cv_path_EGREP+set}" = set; then
4100 echo $ECHO_N "(cached) $ECHO_C" >&6
4102 ac_path_EGREP_found=false
4103 # Loop through the user's path and test for each of PROGNAME-LIST
4104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4108 test -z "$as_dir" && as_dir=.
4109 for ac_prog in egrep; do
4110 for ac_exec_ext in '' $ac_executable_extensions; do
4111 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4112 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4113 # Check for GNU ac_path_EGREP and select it if it is found.
4114 # Check for GNU $ac_path_EGREP
4115 case `"$ac_path_EGREP" --version 2>&1` in
4117 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4120 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4123 cat "conftest.in" "conftest.in" >"conftest.tmp"
4124 mv "conftest.tmp" "conftest.in"
4125 cp "conftest.in" "conftest.nl"
4126 echo 'EGREP' >> "conftest.nl"
4127 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4128 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4129 ac_count=`expr $ac_count + 1`
4130 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4131 # Best one so far, save it but keep looking for a better one
4132 ac_cv_path_EGREP="$ac_path_EGREP"
4133 ac_path_EGREP_max=$ac_count
4135 # 10*(2^10) chars as input seems more than enough
4136 test $ac_count -gt 10 && break
4138 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4142 $ac_path_EGREP_found && break 3
4152 EGREP="$ac_cv_path_EGREP"
4153 if test -z "$EGREP"; then
4154 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4155 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4156 { (exit 1); exit 1; }; }
4160 ac_cv_path_EGREP=$EGREP
4166 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4167 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4168 EGREP="$ac_cv_path_EGREP"
4172 # Check whether --with-gnu-ld was given.
4173 if test "${with_gnu_ld+set}" = set; then
4174 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4180 if test "$GCC" = yes; then
4181 # Check if gcc -print-prog-name=ld gives a path.
4182 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4183 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4186 # gcc leaves a trailing carriage return which upsets mingw
4187 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4189 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4192 # Accept absolute paths.
4194 re_direlt='/[^/][^/]*/\.\./'
4195 # Canonicalize the pathname of ld
4196 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4197 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4198 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4200 test -z "$LD" && LD="$ac_prog"
4203 # If it fails, then pretend we aren't using GCC.
4207 # If it is relative, then search for the first ld in PATH.
4211 elif test "$with_gnu_ld" = yes; then
4212 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4213 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4215 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4216 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4218 if test "${lt_cv_path_LD+set}" = set; then
4219 echo $ECHO_N "(cached) $ECHO_C" >&6
4221 if test -z "$LD"; then
4222 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4223 for ac_dir in $PATH; do
4225 test -z "$ac_dir" && ac_dir=.
4226 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4227 lt_cv_path_LD="$ac_dir/$ac_prog"
4228 # Check to see if the program is GNU ld. I'd rather use --version,
4229 # but apparently some variants of GNU ld only accept -v.
4230 # Break only if it was the GNU/non-GNU ld that we prefer.
4231 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4232 *GNU* | *'with BFD'*)
4233 test "$with_gnu_ld" != no && break
4236 test "$with_gnu_ld" != yes && break
4243 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4248 if test -n "$LD"; then
4249 { echo "$as_me:$LINENO: result: $LD" >&5
4250 echo "${ECHO_T}$LD" >&6; }
4252 { echo "$as_me:$LINENO: result: no" >&5
4253 echo "${ECHO_T}no" >&6; }
4255 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4256 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4257 { (exit 1); exit 1; }; }
4258 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4259 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4260 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4261 echo $ECHO_N "(cached) $ECHO_C" >&6
4263 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4264 case `$LD -v 2>&1 </dev/null` in
4265 *GNU* | *'with BFD'*)
4266 lt_cv_prog_gnu_ld=yes
4269 lt_cv_prog_gnu_ld=no
4273 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4274 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4275 with_gnu_ld=$lt_cv_prog_gnu_ld
4278 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4279 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4280 if test "${lt_cv_ld_reload_flag+set}" = set; then
4281 echo $ECHO_N "(cached) $ECHO_C" >&6
4283 lt_cv_ld_reload_flag='-r'
4285 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4286 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4287 reload_flag=$lt_cv_ld_reload_flag
4288 case $reload_flag in
4290 *) reload_flag=" $reload_flag" ;;
4292 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4295 if test "$GCC" = yes; then
4296 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4298 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4303 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4304 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4305 if test "${lt_cv_path_NM+set}" = set; then
4306 echo $ECHO_N "(cached) $ECHO_C" >&6
4308 if test -n "$NM"; then
4309 # Let the user override the test.
4312 lt_nm_to_check="${ac_tool_prefix}nm"
4313 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4314 lt_nm_to_check="$lt_nm_to_check nm"
4316 for lt_tmp_nm in $lt_nm_to_check; do
4317 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4318 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4320 test -z "$ac_dir" && ac_dir=.
4321 tmp_nm="$ac_dir/$lt_tmp_nm"
4322 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4323 # Check to see if the nm accepts a BSD-compat flag.
4324 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4325 # nm: unknown option "B" ignored
4326 # Tru64's nm complains that /dev/null is an invalid object file
4327 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4328 */dev/null* | *'Invalid file or object type'*)
4329 lt_cv_path_NM="$tmp_nm -B"
4333 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4335 lt_cv_path_NM="$tmp_nm -p"
4339 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4340 continue # so that we can try to find one that supports BSD flags
4349 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4352 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4353 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4356 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4357 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4359 if test "$LN_S" = "ln -s"; then
4360 { echo "$as_me:$LINENO: result: yes" >&5
4361 echo "${ECHO_T}yes" >&6; }
4363 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4364 echo "${ECHO_T}no, using $LN_S" >&6; }
4367 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4368 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4369 if test "${lt_cv_deplibs_check_method+set}" = set; then
4370 echo $ECHO_N "(cached) $ECHO_C" >&6
4372 lt_cv_file_magic_cmd='$MAGIC_CMD'
4373 lt_cv_file_magic_test_file=
4374 lt_cv_deplibs_check_method='unknown'
4375 # Need to set the preceding variable on all platforms that support
4376 # interlibrary dependencies.
4377 # 'none' -- dependencies not supported.
4378 # `unknown' -- same as none, but documents that we really don't know.
4379 # 'pass_all' -- all dependencies passed with no checks.
4380 # 'test_compile' -- check by making test program.
4381 # 'file_magic [[regex]]' -- check by looking for files in library path
4382 # which responds to the $file_magic_cmd with a given extended regex.
4383 # If you have `file' or equivalent on your system and you're not sure
4384 # whether `pass_all' will *always* work, you probably want this one.
4388 lt_cv_deplibs_check_method=pass_all
4392 lt_cv_deplibs_check_method=pass_all
4396 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4397 lt_cv_file_magic_cmd='/usr/bin/file -L'
4398 lt_cv_file_magic_test_file=/shlib/libc.so
4402 # func_win32_libid is a shell function defined in ltmain.sh
4403 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4404 lt_cv_file_magic_cmd='func_win32_libid'
4408 # Base MSYS/MinGW do not provide the 'file' command needed by
4409 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4410 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4411 lt_cv_file_magic_cmd='$OBJDUMP -f'
4414 darwin* | rhapsody*)
4415 lt_cv_deplibs_check_method=pass_all
4418 freebsd* | dragonfly*)
4419 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4422 # Not sure whether the presence of OpenBSD here was a mistake.
4423 # Let's accept both of them until this is cleared up.
4424 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4425 lt_cv_file_magic_cmd=/usr/bin/file
4426 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4430 lt_cv_deplibs_check_method=pass_all
4435 lt_cv_deplibs_check_method=pass_all
4438 hpux10.20* | hpux11*)
4439 lt_cv_file_magic_cmd=/usr/bin/file
4442 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4443 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4446 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]'
4447 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4450 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4451 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4457 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4458 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4461 irix5* | irix6* | nonstopux*)
4463 *-32|*"-32 ") libmagic=32-bit;;
4464 *-n32|*"-n32 ") libmagic=N32;;
4465 *-64|*"-64 ") libmagic=64-bit;;
4466 *) libmagic=never-match;;
4468 lt_cv_deplibs_check_method=pass_all
4471 # This must be Linux ELF.
4472 linux* | k*bsd*-gnu)
4473 lt_cv_deplibs_check_method=pass_all
4476 netbsd* | netbsdelf*-gnu)
4477 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4478 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4480 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4485 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4486 lt_cv_file_magic_cmd=/usr/bin/file
4487 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4491 lt_cv_deplibs_check_method=unknown
4495 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4496 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4498 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4502 osf3* | osf4* | osf5*)
4503 lt_cv_deplibs_check_method=pass_all
4507 lt_cv_deplibs_check_method=pass_all
4511 case $host_vendor in
4513 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]'
4514 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4517 lt_cv_deplibs_check_method=pass_all
4520 lt_cv_file_magic_cmd='/bin/file'
4521 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4524 lt_cv_file_magic_cmd='/bin/file'
4525 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4526 lt_cv_file_magic_test_file=/lib/libc.so
4529 lt_cv_deplibs_check_method=pass_all
4532 lt_cv_deplibs_check_method=pass_all
4537 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4538 lt_cv_deplibs_check_method=pass_all
4543 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4544 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4545 file_magic_cmd=$lt_cv_file_magic_cmd
4546 deplibs_check_method=$lt_cv_deplibs_check_method
4547 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4552 # If no C compiler was specified, use CC.
4555 # If no C compiler flags were specified, use CFLAGS.
4556 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4558 # Allow CC to be a program name with arguments.
4562 # Check whether --enable-libtool-lock was given.
4563 if test "${enable_libtool_lock+set}" = set; then
4564 enableval=$enable_libtool_lock;
4567 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4569 # Some flags need to be propagated to the compiler or linker for good
4573 # Find out which ABI we are using.
4574 echo 'int i;' > conftest.$ac_ext
4575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4576 (eval $ac_compile) 2>&5
4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579 (exit $ac_status); }; then
4580 case `/usr/bin/file conftest.$ac_objext` in
4592 # Find out which ABI we are using.
4593 echo '#line 4593 "configure"' > conftest.$ac_ext
4594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4595 (eval $ac_compile) 2>&5
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); }; then
4599 if test "$lt_cv_prog_gnu_ld" = yes; then
4600 case `/usr/bin/file conftest.$ac_objext` in
4602 LD="${LD-ld} -melf32bsmip"
4605 LD="${LD-ld} -melf32bmipn32"
4608 LD="${LD-ld} -melf64bmip"
4612 case `/usr/bin/file conftest.$ac_objext` in
4628 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4629 # Find out which ABI we are using.
4630 echo 'int i;' > conftest.$ac_ext
4631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4632 (eval $ac_compile) 2>&5
4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635 (exit $ac_status); }; then
4636 case `/usr/bin/file conftest.o` in
4640 LD="${LD-ld} -m elf_i386"
4642 ppc64-*linux*|powerpc64-*linux*)
4643 LD="${LD-ld} -m elf32ppclinux"
4646 LD="${LD-ld} -m elf_s390"
4649 LD="${LD-ld} -m elf32_sparc"
4656 LD="${LD-ld} -m elf_x86_64"
4658 ppc*-*linux*|powerpc*-*linux*)
4659 LD="${LD-ld} -m elf64ppc"
4662 LD="${LD-ld} -m elf64_s390"
4665 LD="${LD-ld} -m elf64_sparc"
4675 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4676 SAVE_CFLAGS="$CFLAGS"
4677 CFLAGS="$CFLAGS -belf"
4678 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4679 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4680 if test "${lt_cv_cc_needs_belf+set}" = set; then
4681 echo $ECHO_N "(cached) $ECHO_C" >&6
4684 ac_cpp='$CPP $CPPFLAGS'
4685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4689 cat >conftest.$ac_ext <<_ACEOF
4692 cat confdefs.h >>conftest.$ac_ext
4693 cat >>conftest.$ac_ext <<_ACEOF
4694 /* end confdefs.h. */
4704 rm -f conftest.$ac_objext conftest$ac_exeext
4705 if { (ac_try="$ac_link"
4707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4708 *) ac_try_echo=$ac_try;;
4710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4711 (eval "$ac_link") 2>conftest.er1
4713 grep -v '^ *+' conftest.er1 >conftest.err
4715 cat conftest.err >&5
4716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717 (exit $ac_status); } && {
4718 test -z "$ac_c_werror_flag" ||
4719 test ! -s conftest.err
4720 } && test -s conftest$ac_exeext &&
4721 $as_test_x conftest$ac_exeext; then
4722 lt_cv_cc_needs_belf=yes
4724 echo "$as_me: failed program was:" >&5
4725 sed 's/^/| /' conftest.$ac_ext >&5
4727 lt_cv_cc_needs_belf=no
4730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4731 conftest$ac_exeext conftest.$ac_ext
4733 ac_cpp='$CPP $CPPFLAGS'
4734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4739 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4740 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4741 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4742 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4743 CFLAGS="$SAVE_CFLAGS"
4747 # Find out which ABI we are using.
4748 echo 'int i;' > conftest.$ac_ext
4749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4750 (eval $ac_compile) 2>&5
4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); }; then
4754 case `/usr/bin/file conftest.o` in
4756 case $lt_cv_prog_gnu_ld in
4757 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4758 *) LD="${LD-ld} -64" ;;
4766 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4767 if test -n "$ac_tool_prefix"; then
4768 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4769 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4772 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4773 echo $ECHO_N "(cached) $ECHO_C" >&6
4775 if test -n "$DLLTOOL"; then
4776 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4782 test -z "$as_dir" && as_dir=.
4783 for ac_exec_ext in '' $ac_executable_extensions; do
4784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4785 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4795 DLLTOOL=$ac_cv_prog_DLLTOOL
4796 if test -n "$DLLTOOL"; then
4797 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4798 echo "${ECHO_T}$DLLTOOL" >&6; }
4800 { echo "$as_me:$LINENO: result: no" >&5
4801 echo "${ECHO_T}no" >&6; }
4806 if test -z "$ac_cv_prog_DLLTOOL"; then
4807 ac_ct_DLLTOOL=$DLLTOOL
4808 # Extract the first word of "dlltool", so it can be a program name with args.
4809 set dummy dlltool; ac_word=$2
4810 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4812 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4813 echo $ECHO_N "(cached) $ECHO_C" >&6
4815 if test -n "$ac_ct_DLLTOOL"; then
4816 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822 test -z "$as_dir" && as_dir=.
4823 for ac_exec_ext in '' $ac_executable_extensions; do
4824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4825 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4835 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4836 if test -n "$ac_ct_DLLTOOL"; then
4837 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4838 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
4840 { echo "$as_me:$LINENO: result: no" >&5
4841 echo "${ECHO_T}no" >&6; }
4844 if test "x$ac_ct_DLLTOOL" = x; then
4847 case $cross_compiling:$ac_tool_warned in
4849 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4850 whose name does not start with the host triplet. If you think this
4851 configuration is useful to you, please write to autoconf@gnu.org." >&5
4852 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4853 whose name does not start with the host triplet. If you think this
4854 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4855 ac_tool_warned=yes ;;
4857 DLLTOOL=$ac_ct_DLLTOOL
4860 DLLTOOL="$ac_cv_prog_DLLTOOL"
4863 if test -n "$ac_tool_prefix"; then
4864 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4865 set dummy ${ac_tool_prefix}as; ac_word=$2
4866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4868 if test "${ac_cv_prog_AS+set}" = set; then
4869 echo $ECHO_N "(cached) $ECHO_C" >&6
4871 if test -n "$AS"; then
4872 ac_cv_prog_AS="$AS" # Let the user override the test.
4874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4878 test -z "$as_dir" && as_dir=.
4879 for ac_exec_ext in '' $ac_executable_extensions; do
4880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4881 ac_cv_prog_AS="${ac_tool_prefix}as"
4882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4892 if test -n "$AS"; then
4893 { echo "$as_me:$LINENO: result: $AS" >&5
4894 echo "${ECHO_T}$AS" >&6; }
4896 { echo "$as_me:$LINENO: result: no" >&5
4897 echo "${ECHO_T}no" >&6; }
4902 if test -z "$ac_cv_prog_AS"; then
4904 # Extract the first word of "as", so it can be a program name with args.
4905 set dummy as; ac_word=$2
4906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4908 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4909 echo $ECHO_N "(cached) $ECHO_C" >&6
4911 if test -n "$ac_ct_AS"; then
4912 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4918 test -z "$as_dir" && as_dir=.
4919 for ac_exec_ext in '' $ac_executable_extensions; do
4920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4921 ac_cv_prog_ac_ct_AS="as"
4922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4931 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4932 if test -n "$ac_ct_AS"; then
4933 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4934 echo "${ECHO_T}$ac_ct_AS" >&6; }
4936 { echo "$as_me:$LINENO: result: no" >&5
4937 echo "${ECHO_T}no" >&6; }
4940 if test "x$ac_ct_AS" = x; then
4943 case $cross_compiling:$ac_tool_warned in
4945 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4946 whose name does not start with the host triplet. If you think this
4947 configuration is useful to you, please write to autoconf@gnu.org." >&5
4948 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4949 whose name does not start with the host triplet. If you think this
4950 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4951 ac_tool_warned=yes ;;
4959 if test -n "$ac_tool_prefix"; then
4960 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4961 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4962 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4964 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4965 echo $ECHO_N "(cached) $ECHO_C" >&6
4967 if test -n "$OBJDUMP"; then
4968 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4974 test -z "$as_dir" && as_dir=.
4975 for ac_exec_ext in '' $ac_executable_extensions; do
4976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4977 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4987 OBJDUMP=$ac_cv_prog_OBJDUMP
4988 if test -n "$OBJDUMP"; then
4989 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4990 echo "${ECHO_T}$OBJDUMP" >&6; }
4992 { echo "$as_me:$LINENO: result: no" >&5
4993 echo "${ECHO_T}no" >&6; }
4998 if test -z "$ac_cv_prog_OBJDUMP"; then
4999 ac_ct_OBJDUMP=$OBJDUMP
5000 # Extract the first word of "objdump", so it can be a program name with args.
5001 set dummy objdump; ac_word=$2
5002 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5004 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5005 echo $ECHO_N "(cached) $ECHO_C" >&6
5007 if test -n "$ac_ct_OBJDUMP"; then
5008 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5014 test -z "$as_dir" && as_dir=.
5015 for ac_exec_ext in '' $ac_executable_extensions; do
5016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5017 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5027 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5028 if test -n "$ac_ct_OBJDUMP"; then
5029 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5030 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
5032 { echo "$as_me:$LINENO: result: no" >&5
5033 echo "${ECHO_T}no" >&6; }
5036 if test "x$ac_ct_OBJDUMP" = x; then
5039 case $cross_compiling:$ac_tool_warned in
5041 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5042 whose name does not start with the host triplet. If you think this
5043 configuration is useful to you, please write to autoconf@gnu.org." >&5
5044 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5045 whose name does not start with the host triplet. If you think this
5046 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5047 ac_tool_warned=yes ;;
5049 OBJDUMP=$ac_ct_OBJDUMP
5052 OBJDUMP="$ac_cv_prog_OBJDUMP"
5059 need_locks="$enable_libtool_lock"
5063 ac_cpp='$CPP $CPPFLAGS'
5064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5067 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5068 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5069 # On Suns, sometimes $CPP names a directory.
5070 if test -n "$CPP" && test -d "$CPP"; then
5073 if test -z "$CPP"; then
5074 if test "${ac_cv_prog_CPP+set}" = set; then
5075 echo $ECHO_N "(cached) $ECHO_C" >&6
5077 # Double quotes because CPP needs to be expanded
5078 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5081 for ac_c_preproc_warn_flag in '' yes
5083 # Use a header file that comes with gcc, so configuring glibc
5084 # with a fresh cross-compiler works.
5085 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5086 # <limits.h> exists even on freestanding compilers.
5087 # On the NeXT, cc -E runs the code through the compiler's parser,
5088 # not just through cpp. "Syntax error" is here to catch this case.
5089 cat >conftest.$ac_ext <<_ACEOF
5092 cat confdefs.h >>conftest.$ac_ext
5093 cat >>conftest.$ac_ext <<_ACEOF
5094 /* end confdefs.h. */
5096 # include <limits.h>
5098 # include <assert.h>
5102 if { (ac_try="$ac_cpp conftest.$ac_ext"
5104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5105 *) ac_try_echo=$ac_try;;
5107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5108 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5110 grep -v '^ *+' conftest.er1 >conftest.err
5112 cat conftest.err >&5
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); } >/dev/null && {
5115 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5116 test ! -s conftest.err
5120 echo "$as_me: failed program was:" >&5
5121 sed 's/^/| /' conftest.$ac_ext >&5
5123 # Broken: fails on valid input.
5127 rm -f conftest.err conftest.$ac_ext
5129 # OK, works on sane cases. Now check whether nonexistent headers
5130 # can be detected and how.
5131 cat >conftest.$ac_ext <<_ACEOF
5134 cat confdefs.h >>conftest.$ac_ext
5135 cat >>conftest.$ac_ext <<_ACEOF
5136 /* end confdefs.h. */
5137 #include <ac_nonexistent.h>
5139 if { (ac_try="$ac_cpp conftest.$ac_ext"
5141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5142 *) ac_try_echo=$ac_try;;
5144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5145 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5147 grep -v '^ *+' conftest.er1 >conftest.err
5149 cat conftest.err >&5
5150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151 (exit $ac_status); } >/dev/null && {
5152 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5153 test ! -s conftest.err
5155 # Broken: success on invalid input.
5158 echo "$as_me: failed program was:" >&5
5159 sed 's/^/| /' conftest.$ac_ext >&5
5161 # Passes both tests.
5166 rm -f conftest.err conftest.$ac_ext
5169 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5170 rm -f conftest.err conftest.$ac_ext
5171 if $ac_preproc_ok; then
5183 { echo "$as_me:$LINENO: result: $CPP" >&5
5184 echo "${ECHO_T}$CPP" >&6; }
5186 for ac_c_preproc_warn_flag in '' yes
5188 # Use a header file that comes with gcc, so configuring glibc
5189 # with a fresh cross-compiler works.
5190 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5191 # <limits.h> exists even on freestanding compilers.
5192 # On the NeXT, cc -E runs the code through the compiler's parser,
5193 # not just through cpp. "Syntax error" is here to catch this case.
5194 cat >conftest.$ac_ext <<_ACEOF
5197 cat confdefs.h >>conftest.$ac_ext
5198 cat >>conftest.$ac_ext <<_ACEOF
5199 /* end confdefs.h. */
5201 # include <limits.h>
5203 # include <assert.h>
5207 if { (ac_try="$ac_cpp conftest.$ac_ext"
5209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5210 *) ac_try_echo=$ac_try;;
5212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5213 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5215 grep -v '^ *+' conftest.er1 >conftest.err
5217 cat conftest.err >&5
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); } >/dev/null && {
5220 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5221 test ! -s conftest.err
5225 echo "$as_me: failed program was:" >&5
5226 sed 's/^/| /' conftest.$ac_ext >&5
5228 # Broken: fails on valid input.
5232 rm -f conftest.err conftest.$ac_ext
5234 # OK, works on sane cases. Now check whether nonexistent headers
5235 # can be detected and how.
5236 cat >conftest.$ac_ext <<_ACEOF
5239 cat confdefs.h >>conftest.$ac_ext
5240 cat >>conftest.$ac_ext <<_ACEOF
5241 /* end confdefs.h. */
5242 #include <ac_nonexistent.h>
5244 if { (ac_try="$ac_cpp conftest.$ac_ext"
5246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5247 *) ac_try_echo=$ac_try;;
5249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5250 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5252 grep -v '^ *+' conftest.er1 >conftest.err
5254 cat conftest.err >&5
5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); } >/dev/null && {
5257 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5258 test ! -s conftest.err
5260 # Broken: success on invalid input.
5263 echo "$as_me: failed program was:" >&5
5264 sed 's/^/| /' conftest.$ac_ext >&5
5266 # Passes both tests.
5271 rm -f conftest.err conftest.$ac_ext
5274 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5275 rm -f conftest.err conftest.$ac_ext
5276 if $ac_preproc_ok; then
5279 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5280 See \`config.log' for more details." >&5
5281 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5282 See \`config.log' for more details." >&2;}
5283 { (exit 1); exit 1; }; }
5287 ac_cpp='$CPP $CPPFLAGS'
5288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5293 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5294 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5295 if test "${ac_cv_header_stdc+set}" = set; then
5296 echo $ECHO_N "(cached) $ECHO_C" >&6
5298 cat >conftest.$ac_ext <<_ACEOF
5301 cat confdefs.h >>conftest.$ac_ext
5302 cat >>conftest.$ac_ext <<_ACEOF
5303 /* end confdefs.h. */
5317 rm -f conftest.$ac_objext
5318 if { (ac_try="$ac_compile"
5320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5321 *) ac_try_echo=$ac_try;;
5323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5324 (eval "$ac_compile") 2>conftest.er1
5326 grep -v '^ *+' conftest.er1 >conftest.err
5328 cat conftest.err >&5
5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330 (exit $ac_status); } && {
5331 test -z "$ac_c_werror_flag" ||
5332 test ! -s conftest.err
5333 } && test -s conftest.$ac_objext; then
5334 ac_cv_header_stdc=yes
5336 echo "$as_me: failed program was:" >&5
5337 sed 's/^/| /' conftest.$ac_ext >&5
5339 ac_cv_header_stdc=no
5342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5344 if test $ac_cv_header_stdc = yes; then
5345 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5346 cat >conftest.$ac_ext <<_ACEOF
5349 cat confdefs.h >>conftest.$ac_ext
5350 cat >>conftest.$ac_ext <<_ACEOF
5351 /* end confdefs.h. */
5355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5356 $EGREP "memchr" >/dev/null 2>&1; then
5359 ac_cv_header_stdc=no
5365 if test $ac_cv_header_stdc = yes; then
5366 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5367 cat >conftest.$ac_ext <<_ACEOF
5370 cat confdefs.h >>conftest.$ac_ext
5371 cat >>conftest.$ac_ext <<_ACEOF
5372 /* end confdefs.h. */
5376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5377 $EGREP "free" >/dev/null 2>&1; then
5380 ac_cv_header_stdc=no
5386 if test $ac_cv_header_stdc = yes; then
5387 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5388 if test "$cross_compiling" = yes; then
5391 cat >conftest.$ac_ext <<_ACEOF
5394 cat confdefs.h >>conftest.$ac_ext
5395 cat >>conftest.$ac_ext <<_ACEOF
5396 /* end confdefs.h. */
5399 #if ((' ' & 0x0FF) == 0x020)
5400 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5401 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5403 # define ISLOWER(c) \
5404 (('a' <= (c) && (c) <= 'i') \
5405 || ('j' <= (c) && (c) <= 'r') \
5406 || ('s' <= (c) && (c) <= 'z'))
5407 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5410 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5415 for (i = 0; i < 256; i++)
5416 if (XOR (islower (i), ISLOWER (i))
5417 || toupper (i) != TOUPPER (i))
5422 rm -f conftest$ac_exeext
5423 if { (ac_try="$ac_link"
5425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5426 *) ac_try_echo=$ac_try;;
5428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5429 (eval "$ac_link") 2>&5
5431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5433 { (case "(($ac_try" in
5434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5435 *) ac_try_echo=$ac_try;;
5437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5438 (eval "$ac_try") 2>&5
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); }; }; then
5444 echo "$as_me: program exited with status $ac_status" >&5
5445 echo "$as_me: failed program was:" >&5
5446 sed 's/^/| /' conftest.$ac_ext >&5
5449 ac_cv_header_stdc=no
5451 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5457 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5458 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5459 if test $ac_cv_header_stdc = yes; then
5461 cat >>confdefs.h <<\_ACEOF
5462 #define STDC_HEADERS 1
5467 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5477 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5478 inttypes.h stdint.h unistd.h
5480 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5481 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5483 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5484 echo $ECHO_N "(cached) $ECHO_C" >&6
5486 cat >conftest.$ac_ext <<_ACEOF
5489 cat confdefs.h >>conftest.$ac_ext
5490 cat >>conftest.$ac_ext <<_ACEOF
5491 /* end confdefs.h. */
5492 $ac_includes_default
5494 #include <$ac_header>
5496 rm -f conftest.$ac_objext
5497 if { (ac_try="$ac_compile"
5499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5500 *) ac_try_echo=$ac_try;;
5502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5503 (eval "$ac_compile") 2>conftest.er1
5505 grep -v '^ *+' conftest.er1 >conftest.err
5507 cat conftest.err >&5
5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); } && {
5510 test -z "$ac_c_werror_flag" ||
5511 test ! -s conftest.err
5512 } && test -s conftest.$ac_objext; then
5513 eval "$as_ac_Header=yes"
5515 echo "$as_me: failed program was:" >&5
5516 sed 's/^/| /' conftest.$ac_ext >&5
5518 eval "$as_ac_Header=no"
5521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5523 ac_res=`eval echo '${'$as_ac_Header'}'`
5524 { echo "$as_me:$LINENO: result: $ac_res" >&5
5525 echo "${ECHO_T}$ac_res" >&6; }
5526 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5527 cat >>confdefs.h <<_ACEOF
5528 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5537 for ac_header in dlfcn.h
5539 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5541 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5543 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5544 echo $ECHO_N "(cached) $ECHO_C" >&6
5546 ac_res=`eval echo '${'$as_ac_Header'}'`
5547 { echo "$as_me:$LINENO: result: $ac_res" >&5
5548 echo "${ECHO_T}$ac_res" >&6; }
5550 # Is the header compilable?
5551 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5552 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5553 cat >conftest.$ac_ext <<_ACEOF
5556 cat confdefs.h >>conftest.$ac_ext
5557 cat >>conftest.$ac_ext <<_ACEOF
5558 /* end confdefs.h. */
5559 $ac_includes_default
5560 #include <$ac_header>
5562 rm -f conftest.$ac_objext
5563 if { (ac_try="$ac_compile"
5565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5566 *) ac_try_echo=$ac_try;;
5568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5569 (eval "$ac_compile") 2>conftest.er1
5571 grep -v '^ *+' conftest.er1 >conftest.err
5573 cat conftest.err >&5
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); } && {
5576 test -z "$ac_c_werror_flag" ||
5577 test ! -s conftest.err
5578 } && test -s conftest.$ac_objext; then
5579 ac_header_compiler=yes
5581 echo "$as_me: failed program was:" >&5
5582 sed 's/^/| /' conftest.$ac_ext >&5
5584 ac_header_compiler=no
5587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5588 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5589 echo "${ECHO_T}$ac_header_compiler" >&6; }
5591 # Is the header present?
5592 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5593 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5594 cat >conftest.$ac_ext <<_ACEOF
5597 cat confdefs.h >>conftest.$ac_ext
5598 cat >>conftest.$ac_ext <<_ACEOF
5599 /* end confdefs.h. */
5600 #include <$ac_header>
5602 if { (ac_try="$ac_cpp conftest.$ac_ext"
5604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5605 *) ac_try_echo=$ac_try;;
5607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5610 grep -v '^ *+' conftest.er1 >conftest.err
5612 cat conftest.err >&5
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); } >/dev/null && {
5615 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5616 test ! -s conftest.err
5618 ac_header_preproc=yes
5620 echo "$as_me: failed program was:" >&5
5621 sed 's/^/| /' conftest.$ac_ext >&5
5623 ac_header_preproc=no
5626 rm -f conftest.err conftest.$ac_ext
5627 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5628 echo "${ECHO_T}$ac_header_preproc" >&6; }
5630 # So? What about this header?
5631 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5633 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5634 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5636 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5637 ac_header_preproc=yes
5640 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5641 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5642 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5643 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5644 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5645 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5646 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5647 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5649 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5650 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5651 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5653 ## -------------------------------------------------- ##
5654 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
5655 ## -------------------------------------------------- ##
5657 ) | sed "s/^/$as_me: WARNING: /" >&2
5660 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5662 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5663 echo $ECHO_N "(cached) $ECHO_C" >&6
5665 eval "$as_ac_Header=\$ac_header_preproc"
5667 ac_res=`eval echo '${'$as_ac_Header'}'`
5668 { echo "$as_me:$LINENO: result: $ac_res" >&5
5669 echo "${ECHO_T}$ac_res" >&6; }
5672 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5673 cat >>confdefs.h <<_ACEOF
5674 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5682 ac_cpp='$CXXCPP $CPPFLAGS'
5683 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5684 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5685 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5686 if test -z "$CXX"; then
5687 if test -n "$CCC"; then
5690 if test -n "$ac_tool_prefix"; then
5691 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5693 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5694 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5695 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5697 if test "${ac_cv_prog_CXX+set}" = set; then
5698 echo $ECHO_N "(cached) $ECHO_C" >&6
5700 if test -n "$CXX"; then
5701 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5707 test -z "$as_dir" && as_dir=.
5708 for ac_exec_ext in '' $ac_executable_extensions; do
5709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5710 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5721 if test -n "$CXX"; then
5722 { echo "$as_me:$LINENO: result: $CXX" >&5
5723 echo "${ECHO_T}$CXX" >&6; }
5725 { echo "$as_me:$LINENO: result: no" >&5
5726 echo "${ECHO_T}no" >&6; }
5730 test -n "$CXX" && break
5733 if test -z "$CXX"; then
5735 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5737 # Extract the first word of "$ac_prog", so it can be a program name with args.
5738 set dummy $ac_prog; ac_word=$2
5739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5741 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5742 echo $ECHO_N "(cached) $ECHO_C" >&6
5744 if test -n "$ac_ct_CXX"; then
5745 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5751 test -z "$as_dir" && as_dir=.
5752 for ac_exec_ext in '' $ac_executable_extensions; do
5753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5754 ac_cv_prog_ac_ct_CXX="$ac_prog"
5755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5764 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5765 if test -n "$ac_ct_CXX"; then
5766 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5767 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5769 { echo "$as_me:$LINENO: result: no" >&5
5770 echo "${ECHO_T}no" >&6; }
5774 test -n "$ac_ct_CXX" && break
5777 if test "x$ac_ct_CXX" = x; then
5780 case $cross_compiling:$ac_tool_warned in
5782 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5783 whose name does not start with the host triplet. If you think this
5784 configuration is useful to you, please write to autoconf@gnu.org." >&5
5785 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5786 whose name does not start with the host triplet. If you think this
5787 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5788 ac_tool_warned=yes ;;
5796 # Provide some information about the compiler.
5797 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5798 ac_compiler=`set X $ac_compile; echo $2`
5799 { (ac_try="$ac_compiler --version >&5"
5801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5802 *) ac_try_echo=$ac_try;;
5804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5805 (eval "$ac_compiler --version >&5") 2>&5
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); }
5809 { (ac_try="$ac_compiler -v >&5"
5811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5812 *) ac_try_echo=$ac_try;;
5814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5815 (eval "$ac_compiler -v >&5") 2>&5
5817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818 (exit $ac_status); }
5819 { (ac_try="$ac_compiler -V >&5"
5821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5822 *) ac_try_echo=$ac_try;;
5824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5825 (eval "$ac_compiler -V >&5") 2>&5
5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828 (exit $ac_status); }
5830 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5831 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5832 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5833 echo $ECHO_N "(cached) $ECHO_C" >&6
5835 cat >conftest.$ac_ext <<_ACEOF
5838 cat confdefs.h >>conftest.$ac_ext
5839 cat >>conftest.$ac_ext <<_ACEOF
5840 /* end confdefs.h. */
5853 rm -f conftest.$ac_objext
5854 if { (ac_try="$ac_compile"
5856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5857 *) ac_try_echo=$ac_try;;
5859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5860 (eval "$ac_compile") 2>conftest.er1
5862 grep -v '^ *+' conftest.er1 >conftest.err
5864 cat conftest.err >&5
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); } && {
5867 test -z "$ac_cxx_werror_flag" ||
5868 test ! -s conftest.err
5869 } && test -s conftest.$ac_objext; then
5872 echo "$as_me: failed program was:" >&5
5873 sed 's/^/| /' conftest.$ac_ext >&5
5878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5879 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5882 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5883 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5884 GXX=`test $ac_compiler_gnu = yes && echo yes`
5885 ac_test_CXXFLAGS=${CXXFLAGS+set}
5886 ac_save_CXXFLAGS=$CXXFLAGS
5887 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5888 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5889 if test "${ac_cv_prog_cxx_g+set}" = set; then
5890 echo $ECHO_N "(cached) $ECHO_C" >&6
5892 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5893 ac_cxx_werror_flag=yes
5896 cat >conftest.$ac_ext <<_ACEOF
5899 cat confdefs.h >>conftest.$ac_ext
5900 cat >>conftest.$ac_ext <<_ACEOF
5901 /* end confdefs.h. */
5911 rm -f conftest.$ac_objext
5912 if { (ac_try="$ac_compile"
5914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5915 *) ac_try_echo=$ac_try;;
5917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5918 (eval "$ac_compile") 2>conftest.er1
5920 grep -v '^ *+' conftest.er1 >conftest.err
5922 cat conftest.err >&5
5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); } && {
5925 test -z "$ac_cxx_werror_flag" ||
5926 test ! -s conftest.err
5927 } && test -s conftest.$ac_objext; then
5928 ac_cv_prog_cxx_g=yes
5930 echo "$as_me: failed program was:" >&5
5931 sed 's/^/| /' conftest.$ac_ext >&5
5934 cat >conftest.$ac_ext <<_ACEOF
5937 cat confdefs.h >>conftest.$ac_ext
5938 cat >>conftest.$ac_ext <<_ACEOF
5939 /* end confdefs.h. */
5949 rm -f conftest.$ac_objext
5950 if { (ac_try="$ac_compile"
5952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5953 *) ac_try_echo=$ac_try;;
5955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5956 (eval "$ac_compile") 2>conftest.er1
5958 grep -v '^ *+' conftest.er1 >conftest.err
5960 cat conftest.err >&5
5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); } && {
5963 test -z "$ac_cxx_werror_flag" ||
5964 test ! -s conftest.err
5965 } && test -s conftest.$ac_objext; then
5968 echo "$as_me: failed program was:" >&5
5969 sed 's/^/| /' conftest.$ac_ext >&5
5971 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5973 cat >conftest.$ac_ext <<_ACEOF
5976 cat confdefs.h >>conftest.$ac_ext
5977 cat >>conftest.$ac_ext <<_ACEOF
5978 /* end confdefs.h. */
5988 rm -f conftest.$ac_objext
5989 if { (ac_try="$ac_compile"
5991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5992 *) ac_try_echo=$ac_try;;
5994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5995 (eval "$ac_compile") 2>conftest.er1
5997 grep -v '^ *+' conftest.er1 >conftest.err
5999 cat conftest.err >&5
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); } && {
6002 test -z "$ac_cxx_werror_flag" ||
6003 test ! -s conftest.err
6004 } && test -s conftest.$ac_objext; then
6005 ac_cv_prog_cxx_g=yes
6007 echo "$as_me: failed program was:" >&5
6008 sed 's/^/| /' conftest.$ac_ext >&5
6013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6020 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6022 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6023 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6024 if test "$ac_test_CXXFLAGS" = set; then
6025 CXXFLAGS=$ac_save_CXXFLAGS
6026 elif test $ac_cv_prog_cxx_g = yes; then
6027 if test "$GXX" = yes; then
6033 if test "$GXX" = yes; then
6040 ac_cpp='$CXXCPP $CPPFLAGS'
6041 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6042 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6043 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6045 depcc="$CXX" am_compiler_list=
6047 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6048 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6049 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6050 echo $ECHO_N "(cached) $ECHO_C" >&6
6052 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6053 # We make a subdir and do the tests there. Otherwise we can end up
6054 # making bogus files that we don't know about and never remove. For
6055 # instance it was reported that on HP-UX the gcc test will end up
6056 # making a dummy file named `D' -- because `-MD' means `put the output
6059 # Copy depcomp to subdir because otherwise we won't find it if we're
6060 # using a relative directory.
6061 cp "$am_depcomp" conftest.dir
6063 # We will build objects and dependencies in a subdirectory because
6064 # it helps to detect inapplicable dependency modes. For instance
6065 # both Tru64's cc and ICC support -MD to output dependencies as a
6066 # side effect of compilation, but ICC will put the dependencies in
6067 # the current directory while Tru64 will put them in the object
6071 am_cv_CXX_dependencies_compiler_type=none
6072 if test "$am_compiler_list" = ""; then
6073 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6075 for depmode in $am_compiler_list; do
6076 # Setup a source with many dependencies, because some compilers
6077 # like to wrap large dependency lists on column 80 (with \), and
6078 # we should not choose a depcomp mode which is confused by this.
6080 # We need to recreate these files for each test, as the compiler may
6081 # overwrite some of them when testing with obscure command lines.
6082 # This happens at least with the AIX C compiler.
6084 for i in 1 2 3 4 5 6; do
6085 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6086 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6087 # Solaris 8's {/usr,}/bin/sh.
6088 touch sub/conftst$i.h
6090 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6094 # after this tag, mechanisms are not by side-effect, so they'll
6095 # only be used when explicitly requested
6096 if test "x$enable_dependency_tracking" = xyes; then
6104 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6105 # mode. It turns out that the SunPro C++ compiler does not properly
6106 # handle `-M -o', and we need to detect this.
6107 if depmode=$depmode \
6108 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6109 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6110 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6111 >/dev/null 2>conftest.err &&
6112 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6113 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6114 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6115 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6116 # icc doesn't choke on unknown options, it will just issue warnings
6117 # or remarks (even with -Werror). So we grep stderr for any message
6118 # that says an option was ignored or not supported.
6119 # When given -MP, icc 7.0 and 7.1 complain thusly:
6120 # icc: Command line warning: ignoring option '-M'; no argument required
6121 # The diagnosis changed in icc 8.0:
6122 # icc: Command line remark: option '-MP' not supported
6123 if (grep 'ignoring option' conftest.err ||
6124 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6125 am_cv_CXX_dependencies_compiler_type=$depmode
6134 am_cv_CXX_dependencies_compiler_type=none
6138 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6139 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6140 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6143 test "x$enable_dependency_tracking" != xno \
6144 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6145 am__fastdepCXX_TRUE=
6146 am__fastdepCXX_FALSE='#'
6148 am__fastdepCXX_TRUE='#'
6149 am__fastdepCXX_FALSE=
6155 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6156 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6157 (test "X$CXX" != "Xg++"))) ; then
6159 ac_cpp='$CXXCPP $CPPFLAGS'
6160 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6161 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6162 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6163 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6164 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6165 if test -z "$CXXCPP"; then
6166 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6167 echo $ECHO_N "(cached) $ECHO_C" >&6
6169 # Double quotes because CXXCPP needs to be expanded
6170 for CXXCPP in "$CXX -E" "/lib/cpp"
6173 for ac_cxx_preproc_warn_flag in '' yes
6175 # Use a header file that comes with gcc, so configuring glibc
6176 # with a fresh cross-compiler works.
6177 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6178 # <limits.h> exists even on freestanding compilers.
6179 # On the NeXT, cc -E runs the code through the compiler's parser,
6180 # not just through cpp. "Syntax error" is here to catch this case.
6181 cat >conftest.$ac_ext <<_ACEOF
6184 cat confdefs.h >>conftest.$ac_ext
6185 cat >>conftest.$ac_ext <<_ACEOF
6186 /* end confdefs.h. */
6188 # include <limits.h>
6190 # include <assert.h>
6194 if { (ac_try="$ac_cpp conftest.$ac_ext"
6196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6197 *) ac_try_echo=$ac_try;;
6199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6200 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6202 grep -v '^ *+' conftest.er1 >conftest.err
6204 cat conftest.err >&5
6205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206 (exit $ac_status); } >/dev/null && {
6207 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6208 test ! -s conftest.err
6212 echo "$as_me: failed program was:" >&5
6213 sed 's/^/| /' conftest.$ac_ext >&5
6215 # Broken: fails on valid input.
6219 rm -f conftest.err conftest.$ac_ext
6221 # OK, works on sane cases. Now check whether nonexistent headers
6222 # can be detected and how.
6223 cat >conftest.$ac_ext <<_ACEOF
6226 cat confdefs.h >>conftest.$ac_ext
6227 cat >>conftest.$ac_ext <<_ACEOF
6228 /* end confdefs.h. */
6229 #include <ac_nonexistent.h>
6231 if { (ac_try="$ac_cpp conftest.$ac_ext"
6233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6234 *) ac_try_echo=$ac_try;;
6236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6237 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6239 grep -v '^ *+' conftest.er1 >conftest.err
6241 cat conftest.err >&5
6242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243 (exit $ac_status); } >/dev/null && {
6244 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6245 test ! -s conftest.err
6247 # Broken: success on invalid input.
6250 echo "$as_me: failed program was:" >&5
6251 sed 's/^/| /' conftest.$ac_ext >&5
6253 # Passes both tests.
6258 rm -f conftest.err conftest.$ac_ext
6261 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6262 rm -f conftest.err conftest.$ac_ext
6263 if $ac_preproc_ok; then
6268 ac_cv_prog_CXXCPP=$CXXCPP
6271 CXXCPP=$ac_cv_prog_CXXCPP
6273 ac_cv_prog_CXXCPP=$CXXCPP
6275 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6276 echo "${ECHO_T}$CXXCPP" >&6; }
6278 for ac_cxx_preproc_warn_flag in '' yes
6280 # Use a header file that comes with gcc, so configuring glibc
6281 # with a fresh cross-compiler works.
6282 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6283 # <limits.h> exists even on freestanding compilers.
6284 # On the NeXT, cc -E runs the code through the compiler's parser,
6285 # not just through cpp. "Syntax error" is here to catch this case.
6286 cat >conftest.$ac_ext <<_ACEOF
6289 cat confdefs.h >>conftest.$ac_ext
6290 cat >>conftest.$ac_ext <<_ACEOF
6291 /* end confdefs.h. */
6293 # include <limits.h>
6295 # include <assert.h>
6299 if { (ac_try="$ac_cpp conftest.$ac_ext"
6301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6302 *) ac_try_echo=$ac_try;;
6304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6307 grep -v '^ *+' conftest.er1 >conftest.err
6309 cat conftest.err >&5
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); } >/dev/null && {
6312 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6313 test ! -s conftest.err
6317 echo "$as_me: failed program was:" >&5
6318 sed 's/^/| /' conftest.$ac_ext >&5
6320 # Broken: fails on valid input.
6324 rm -f conftest.err conftest.$ac_ext
6326 # OK, works on sane cases. Now check whether nonexistent headers
6327 # can be detected and how.
6328 cat >conftest.$ac_ext <<_ACEOF
6331 cat confdefs.h >>conftest.$ac_ext
6332 cat >>conftest.$ac_ext <<_ACEOF
6333 /* end confdefs.h. */
6334 #include <ac_nonexistent.h>
6336 if { (ac_try="$ac_cpp conftest.$ac_ext"
6338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6339 *) ac_try_echo=$ac_try;;
6341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6342 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6344 grep -v '^ *+' conftest.er1 >conftest.err
6346 cat conftest.err >&5
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); } >/dev/null && {
6349 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6350 test ! -s conftest.err
6352 # Broken: success on invalid input.
6355 echo "$as_me: failed program was:" >&5
6356 sed 's/^/| /' conftest.$ac_ext >&5
6358 # Passes both tests.
6363 rm -f conftest.err conftest.$ac_ext
6366 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6367 rm -f conftest.err conftest.$ac_ext
6368 if $ac_preproc_ok; then
6371 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6372 See \`config.log' for more details." >&5
6373 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6374 See \`config.log' for more details." >&2;}
6375 { (exit 1); exit 1; }; }
6379 ac_cpp='$CXXCPP $CPPFLAGS'
6380 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6381 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6382 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6390 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6392 # find the maximum length of command line arguments
6393 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6394 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6395 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6396 echo $ECHO_N "(cached) $ECHO_C" >&6
6403 # On DJGPP, this test can blow up pretty badly due to problems in libc
6404 # (any single argument exceeding 2000 bytes causes a buffer overrun
6405 # during glob expansion). Even if it were fixed, the result of this
6406 # check would be larger than it should be.
6407 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6411 # Under GNU Hurd, this test is not required because there is
6412 # no limit to the length of command line arguments.
6413 # Libtool will interpret -1 as no limit whatsoever
6414 lt_cv_sys_max_cmd_len=-1;
6418 # On Win9x/ME, this test blows up -- it succeeds, but takes
6419 # about 5 minutes as the teststring grows exponentially.
6420 # Worse, since 9x/ME are not pre-emptively multitasking,
6421 # you end up with a "frozen" computer, even though with patience
6422 # the test eventually succeeds (with a max line length of 256k).
6423 # Instead, let's just punt: use the minimum linelength reported by
6424 # all of the supported platforms: 8192 (on NT/2K/XP).
6425 lt_cv_sys_max_cmd_len=8192;
6429 # On AmigaOS with pdksh, this test takes hours, literally.
6430 # So we just punt and use a minimum line length of 8192.
6431 lt_cv_sys_max_cmd_len=8192;
6434 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6435 # This has been around since 386BSD, at least. Likely further.
6436 if test -x /sbin/sysctl; then
6437 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6438 elif test -x /usr/sbin/sysctl; then
6439 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6441 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6443 # And add a safety zone
6444 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6445 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6449 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6450 lt_cv_sys_max_cmd_len=196608
6454 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6455 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6456 # nice to cause kernel panics so lets avoid the loop below.
6457 # First set a reasonable default.
6458 lt_cv_sys_max_cmd_len=16384
6460 if test -x /sbin/sysconfig; then
6461 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6462 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6467 lt_cv_sys_max_cmd_len=102400
6469 sysv5* | sco5v6* | sysv4.2uw2*)
6470 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6471 if test -n "$kargmax"; then
6472 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6474 lt_cv_sys_max_cmd_len=32768
6478 # If test is not a shell built-in, we'll probably end up computing a
6479 # maximum length that is only half of the actual maximum length, but
6481 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6482 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6483 = "XX$teststring") >/dev/null 2>&1 &&
6484 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6485 lt_cv_sys_max_cmd_len=$new_result &&
6486 test $i != 17 # 1/2 MB should be enough
6489 teststring=$teststring$teststring
6492 # Add a significant safety factor because C++ compilers can tack on massive
6493 # amounts of additional arguments before passing them to the linker.
6494 # It appears as though 1/2 is a usable value.
6495 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6501 if test -n $lt_cv_sys_max_cmd_len ; then
6502 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6503 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6505 { echo "$as_me:$LINENO: result: none" >&5
6506 echo "${ECHO_T}none" >&6; }
6512 # Check for command to grab the raw symbol name followed by C symbol from nm.
6513 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6514 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6515 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6516 echo $ECHO_N "(cached) $ECHO_C" >&6
6519 # These are sane defaults that work on at least a few old systems.
6520 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6522 # Character class describing NM global symbol codes.
6523 symcode='[BCDEGRST]'
6525 # Regexp to match symbols that can be accessed directly from C.
6526 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6528 # Transform an extracted symbol line into a proper C declaration
6529 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6531 # Transform an extracted symbol line into symbol name and symbol address
6532 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'"
6534 # Define system-specific variables.
6539 cygwin* | mingw* | pw32*)
6540 symcode='[ABCDGISTW]'
6542 hpux*) # Its linker distinguishes data from code symbols
6543 if test "$host_cpu" = ia64; then
6544 symcode='[ABCDEGRST]'
6546 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6547 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'"
6549 linux* | k*bsd*-gnu)
6550 if test "$host_cpu" = ia64; then
6551 symcode='[ABCDGIRSTW]'
6552 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6553 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'"
6557 symcode='[BCDEGRST]'
6560 symcode='[BCDEGQRST]'
6571 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6579 # Handle CRLF in mingw tool chain
6583 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6587 # If we're using GNU nm, then use its standard symbol codes.
6588 case `$NM -V 2>&1` in
6589 *GNU* | *'with BFD'*)
6590 symcode='[ABCDGIRSTW]' ;;
6593 # Try without a prefix undercore, then with it.
6594 for ac_symprfx in "" "_"; do
6596 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6597 symxfrm="\\1 $ac_symprfx\\2 \\2"
6599 # Write the raw and C identifiers.
6600 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6602 # Check to see that the pipe works correctly.
6606 cat > conftest.$ac_ext <<EOF
6611 void nm_test_func(){}
6615 int main(){nm_test_var='a';nm_test_func();return(0);}
6618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6619 (eval $ac_compile) 2>&5
6621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 (exit $ac_status); }; then
6623 # Now try to grab the symbols.
6625 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6626 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629 (exit $ac_status); } && test -s "$nlist"; then
6630 # Try sorting and uniquifying the output.
6631 if sort "$nlist" | uniq > "$nlist"T; then
6632 mv -f "$nlist"T "$nlist"
6637 # Make sure that we snagged all the symbols we need.
6638 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6639 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6640 cat <<EOF > conftest.$ac_ext
6646 # Now generate the symbol file.
6647 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6649 cat <<EOF >> conftest.$ac_ext
6650 #if defined (__STDC__) && __STDC__
6651 # define lt_ptr_t void *
6653 # define lt_ptr_t char *
6657 /* The mapping between symbol names and symbols. */
6662 lt_preloaded_symbols[] =
6665 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6666 cat <<\EOF >> conftest.$ac_ext
6674 # Now try linking the two files.
6675 mv conftest.$ac_objext conftstm.$ac_objext
6676 lt_save_LIBS="$LIBS"
6677 lt_save_CFLAGS="$CFLAGS"
6678 LIBS="conftstm.$ac_objext"
6679 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6681 (eval $ac_link) 2>&5
6683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6687 LIBS="$lt_save_LIBS"
6688 CFLAGS="$lt_save_CFLAGS"
6690 echo "cannot find nm_test_func in $nlist" >&5
6693 echo "cannot find nm_test_var in $nlist" >&5
6696 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6699 echo "$progname: failed program was:" >&5
6700 cat conftest.$ac_ext >&5
6702 rm -f conftest* conftst*
6704 # Do not use the global_symbol_pipe unless it works.
6705 if test "$pipe_works" = yes; then
6708 lt_cv_sys_global_symbol_pipe=
6714 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6715 lt_cv_sys_global_symbol_to_cdecl=
6717 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6718 { echo "$as_me:$LINENO: result: failed" >&5
6719 echo "${ECHO_T}failed" >&6; }
6721 { echo "$as_me:$LINENO: result: ok" >&5
6722 echo "${ECHO_T}ok" >&6; }
6725 { echo "$as_me:$LINENO: checking for objdir" >&5
6726 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6727 if test "${lt_cv_objdir+set}" = set; then
6728 echo $ECHO_N "(cached) $ECHO_C" >&6
6730 rm -f .libs 2>/dev/null
6731 mkdir .libs 2>/dev/null
6732 if test -d .libs; then
6735 # MS-DOS does not allow filenames that begin with a dot.
6738 rmdir .libs 2>/dev/null
6740 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6741 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6742 objdir=$lt_cv_objdir
6750 # AIX sometimes has problems with the GCC collect2 program. For some
6751 # reason, if we set the COLLECT_NAMES environment variable, the problems
6752 # vanish in a puff of smoke.
6753 if test "X${COLLECT_NAMES+set}" != Xset; then
6755 export COLLECT_NAMES
6760 # Sed substitution that helps us do robust quoting. It backslashifies
6761 # metacharacters that are still active within double-quoted strings.
6762 Xsed='sed -e 1s/^X//'
6763 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6765 # Same as above, but do not quote variable references.
6766 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6768 # Sed substitution to delay expansion of an escaped shell variable in a
6769 # double_quote_subst'ed string.
6770 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6772 # Sed substitution to avoid accidental globbing in evaled expressions
6773 no_glob_subst='s/\*/\\\*/g'
6779 default_ofile=libtool
6780 can_build_shared=yes
6782 # All known linkers require a `.a' archive for static linking (except MSVC,
6783 # which needs '.lib').
6785 ltmain="$ac_aux_dir/ltmain.sh"
6786 ofile="$default_ofile"
6787 with_gnu_ld="$lt_cv_prog_gnu_ld"
6789 if test -n "$ac_tool_prefix"; then
6790 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6791 set dummy ${ac_tool_prefix}ar; ac_word=$2
6792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6794 if test "${ac_cv_prog_AR+set}" = set; then
6795 echo $ECHO_N "(cached) $ECHO_C" >&6
6797 if test -n "$AR"; then
6798 ac_cv_prog_AR="$AR" # Let the user override the test.
6800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6804 test -z "$as_dir" && as_dir=.
6805 for ac_exec_ext in '' $ac_executable_extensions; do
6806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6807 ac_cv_prog_AR="${ac_tool_prefix}ar"
6808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6818 if test -n "$AR"; then
6819 { echo "$as_me:$LINENO: result: $AR" >&5
6820 echo "${ECHO_T}$AR" >&6; }
6822 { echo "$as_me:$LINENO: result: no" >&5
6823 echo "${ECHO_T}no" >&6; }
6828 if test -z "$ac_cv_prog_AR"; then
6830 # Extract the first word of "ar", so it can be a program name with args.
6831 set dummy ar; ac_word=$2
6832 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6834 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6835 echo $ECHO_N "(cached) $ECHO_C" >&6
6837 if test -n "$ac_ct_AR"; then
6838 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6844 test -z "$as_dir" && as_dir=.
6845 for ac_exec_ext in '' $ac_executable_extensions; do
6846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6847 ac_cv_prog_ac_ct_AR="ar"
6848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6857 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6858 if test -n "$ac_ct_AR"; then
6859 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6860 echo "${ECHO_T}$ac_ct_AR" >&6; }
6862 { echo "$as_me:$LINENO: result: no" >&5
6863 echo "${ECHO_T}no" >&6; }
6866 if test "x$ac_ct_AR" = x; then
6869 case $cross_compiling:$ac_tool_warned in
6871 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6872 whose name does not start with the host triplet. If you think this
6873 configuration is useful to you, please write to autoconf@gnu.org." >&5
6874 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6875 whose name does not start with the host triplet. If you think this
6876 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6877 ac_tool_warned=yes ;;
6885 if test -n "$ac_tool_prefix"; then
6886 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6887 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6890 if test "${ac_cv_prog_RANLIB+set}" = set; then
6891 echo $ECHO_N "(cached) $ECHO_C" >&6
6893 if test -n "$RANLIB"; then
6894 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6900 test -z "$as_dir" && as_dir=.
6901 for ac_exec_ext in '' $ac_executable_extensions; do
6902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6903 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6913 RANLIB=$ac_cv_prog_RANLIB
6914 if test -n "$RANLIB"; then
6915 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6916 echo "${ECHO_T}$RANLIB" >&6; }
6918 { echo "$as_me:$LINENO: result: no" >&5
6919 echo "${ECHO_T}no" >&6; }
6924 if test -z "$ac_cv_prog_RANLIB"; then
6925 ac_ct_RANLIB=$RANLIB
6926 # Extract the first word of "ranlib", so it can be a program name with args.
6927 set dummy ranlib; ac_word=$2
6928 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6930 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6931 echo $ECHO_N "(cached) $ECHO_C" >&6
6933 if test -n "$ac_ct_RANLIB"; then
6934 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6940 test -z "$as_dir" && as_dir=.
6941 for ac_exec_ext in '' $ac_executable_extensions; do
6942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6943 ac_cv_prog_ac_ct_RANLIB="ranlib"
6944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6953 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6954 if test -n "$ac_ct_RANLIB"; then
6955 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6956 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6958 { echo "$as_me:$LINENO: result: no" >&5
6959 echo "${ECHO_T}no" >&6; }
6962 if test "x$ac_ct_RANLIB" = x; then
6965 case $cross_compiling:$ac_tool_warned in
6967 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6968 whose name does not start with the host triplet. If you think this
6969 configuration is useful to you, please write to autoconf@gnu.org." >&5
6970 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6971 whose name does not start with the host triplet. If you think this
6972 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6973 ac_tool_warned=yes ;;
6975 RANLIB=$ac_ct_RANLIB
6978 RANLIB="$ac_cv_prog_RANLIB"
6981 if test -n "$ac_tool_prefix"; then
6982 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6983 set dummy ${ac_tool_prefix}strip; ac_word=$2
6984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6986 if test "${ac_cv_prog_STRIP+set}" = set; then
6987 echo $ECHO_N "(cached) $ECHO_C" >&6
6989 if test -n "$STRIP"; then
6990 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6996 test -z "$as_dir" && as_dir=.
6997 for ac_exec_ext in '' $ac_executable_extensions; do
6998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6999 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7009 STRIP=$ac_cv_prog_STRIP
7010 if test -n "$STRIP"; then
7011 { echo "$as_me:$LINENO: result: $STRIP" >&5
7012 echo "${ECHO_T}$STRIP" >&6; }
7014 { echo "$as_me:$LINENO: result: no" >&5
7015 echo "${ECHO_T}no" >&6; }
7020 if test -z "$ac_cv_prog_STRIP"; then
7022 # Extract the first word of "strip", so it can be a program name with args.
7023 set dummy strip; ac_word=$2
7024 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7026 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7027 echo $ECHO_N "(cached) $ECHO_C" >&6
7029 if test -n "$ac_ct_STRIP"; then
7030 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7036 test -z "$as_dir" && as_dir=.
7037 for ac_exec_ext in '' $ac_executable_extensions; do
7038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7039 ac_cv_prog_ac_ct_STRIP="strip"
7040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7049 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7050 if test -n "$ac_ct_STRIP"; then
7051 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7052 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7054 { echo "$as_me:$LINENO: result: no" >&5
7055 echo "${ECHO_T}no" >&6; }
7058 if test "x$ac_ct_STRIP" = x; then
7061 case $cross_compiling:$ac_tool_warned in
7063 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7064 whose name does not start with the host triplet. If you think this
7065 configuration is useful to you, please write to autoconf@gnu.org." >&5
7066 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7067 whose name does not start with the host triplet. If you think this
7068 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7069 ac_tool_warned=yes ;;
7074 STRIP="$ac_cv_prog_STRIP"
7079 old_CFLAGS="$CFLAGS"
7081 # Set sane defaults for various variables
7082 test -z "$AR" && AR=ar
7083 test -z "$AR_FLAGS" && AR_FLAGS=cru
7084 test -z "$AS" && AS=as
7085 test -z "$CC" && CC=cc
7086 test -z "$LTCC" && LTCC=$CC
7087 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7088 test -z "$DLLTOOL" && DLLTOOL=dlltool
7089 test -z "$LD" && LD=ld
7090 test -z "$LN_S" && LN_S="ln -s"
7091 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7092 test -z "$NM" && NM=nm
7093 test -z "$SED" && SED=sed
7094 test -z "$OBJDUMP" && OBJDUMP=objdump
7095 test -z "$RANLIB" && RANLIB=:
7096 test -z "$STRIP" && STRIP=:
7097 test -z "$ac_objext" && ac_objext=o
7099 # Determine commands to create old-style static archives.
7100 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7101 old_postinstall_cmds='chmod 644 $oldlib'
7102 old_postuninstall_cmds=
7104 if test -n "$RANLIB"; then
7107 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7110 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7113 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7116 for cc_temp in $compiler""; do
7118 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7119 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7124 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7127 # Only perform the check for file, if the check method requires it
7128 case $deplibs_check_method in
7130 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7131 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7132 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7133 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7134 echo $ECHO_N "(cached) $ECHO_C" >&6
7138 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7141 lt_save_MAGIC_CMD="$MAGIC_CMD"
7142 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7143 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7144 for ac_dir in $ac_dummy; do
7146 test -z "$ac_dir" && ac_dir=.
7147 if test -f $ac_dir/${ac_tool_prefix}file; then
7148 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7149 if test -n "$file_magic_test_file"; then
7150 case $deplibs_check_method in
7152 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7153 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7154 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7155 $EGREP "$file_magic_regex" > /dev/null; then
7160 *** Warning: the command libtool uses to detect shared libraries,
7161 *** $file_magic_cmd, produces output that libtool cannot recognize.
7162 *** The result is that libtool may fail to recognize shared libraries
7163 *** as such. This will affect the creation of libtool libraries that
7164 *** depend on shared libraries, but programs linked with such libtool
7165 *** libraries will work regardless of this problem. Nevertheless, you
7166 *** may want to report the problem to your system manager and/or to
7167 *** bug-libtool@gnu.org
7177 MAGIC_CMD="$lt_save_MAGIC_CMD"
7182 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7183 if test -n "$MAGIC_CMD"; then
7184 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7185 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7187 { echo "$as_me:$LINENO: result: no" >&5
7188 echo "${ECHO_T}no" >&6; }
7191 if test -z "$lt_cv_path_MAGIC_CMD"; then
7192 if test -n "$ac_tool_prefix"; then
7193 { echo "$as_me:$LINENO: checking for file" >&5
7194 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7195 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7196 echo $ECHO_N "(cached) $ECHO_C" >&6
7200 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7203 lt_save_MAGIC_CMD="$MAGIC_CMD"
7204 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7205 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7206 for ac_dir in $ac_dummy; do
7208 test -z "$ac_dir" && ac_dir=.
7209 if test -f $ac_dir/file; then
7210 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7211 if test -n "$file_magic_test_file"; then
7212 case $deplibs_check_method in
7214 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7215 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7216 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7217 $EGREP "$file_magic_regex" > /dev/null; then
7222 *** Warning: the command libtool uses to detect shared libraries,
7223 *** $file_magic_cmd, produces output that libtool cannot recognize.
7224 *** The result is that libtool may fail to recognize shared libraries
7225 *** as such. This will affect the creation of libtool libraries that
7226 *** depend on shared libraries, but programs linked with such libtool
7227 *** libraries will work regardless of this problem. Nevertheless, you
7228 *** may want to report the problem to your system manager and/or to
7229 *** bug-libtool@gnu.org
7239 MAGIC_CMD="$lt_save_MAGIC_CMD"
7244 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7245 if test -n "$MAGIC_CMD"; then
7246 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7247 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7249 { echo "$as_me:$LINENO: result: no" >&5
7250 echo "${ECHO_T}no" >&6; }
7263 enable_win32_dll=yes
7265 # Check whether --enable-libtool-lock was given.
7266 if test "${enable_libtool_lock+set}" = set; then
7267 enableval=$enable_libtool_lock;
7270 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7273 # Check whether --with-pic was given.
7274 if test "${with_pic+set}" = set; then
7275 withval=$with_pic; pic_mode="$withval"
7280 test -z "$pic_mode" && pic_mode=default
7282 # Use C for the default configuration in the libtool script
7286 ac_cpp='$CPP $CPPFLAGS'
7287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7292 # Source file extension for C test sources.
7295 # Object file extension for compiled C test sources.
7299 # Code to be used in simple compile tests
7300 lt_simple_compile_test_code="int some_variable = 0;\n"
7302 # Code to be used in simple link tests
7303 lt_simple_link_test_code='int main(){return(0);}\n'
7306 # If no C compiler was specified, use CC.
7309 # If no C compiler flags were specified, use CFLAGS.
7310 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7312 # Allow CC to be a program name with arguments.
7316 # save warnings/boilerplate of simple test code
7317 ac_outfile=conftest.$ac_objext
7318 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7319 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7320 _lt_compiler_boilerplate=`cat conftest.err`
7323 ac_outfile=conftest.$ac_objext
7324 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7325 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7326 _lt_linker_boilerplate=`cat conftest.err`
7331 lt_prog_compiler_no_builtin_flag=
7333 if test "$GCC" = yes; then
7334 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7337 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7338 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7339 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7340 echo $ECHO_N "(cached) $ECHO_C" >&6
7342 lt_cv_prog_compiler_rtti_exceptions=no
7343 ac_outfile=conftest.$ac_objext
7344 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7345 lt_compiler_flag="-fno-rtti -fno-exceptions"
7346 # Insert the option either (1) after the last *FLAGS variable, or
7347 # (2) before a word containing "conftest.", or (3) at the end.
7348 # Note that $ac_compile itself does not contain backslashes and begins
7349 # with a dollar sign (not a hyphen), so the echo should work correctly.
7350 # The option is referenced via a variable to avoid confusing sed.
7351 lt_compile=`echo "$ac_compile" | $SED \
7352 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7353 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7354 -e 's:$: $lt_compiler_flag:'`
7355 (eval echo "\"\$as_me:7355: $lt_compile\"" >&5)
7356 (eval "$lt_compile" 2>conftest.err)
7358 cat conftest.err >&5
7359 echo "$as_me:7359: \$? = $ac_status" >&5
7360 if (exit $ac_status) && test -s "$ac_outfile"; then
7361 # The compiler can only warn and ignore the option if not recognized
7362 # So say no if there are warnings other than the usual output.
7363 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7364 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7365 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7366 lt_cv_prog_compiler_rtti_exceptions=yes
7372 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7373 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7375 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7376 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7383 lt_prog_compiler_wl=
7384 lt_prog_compiler_pic=
7385 lt_prog_compiler_static=
7387 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7388 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7390 if test "$GCC" = yes; then
7391 lt_prog_compiler_wl='-Wl,'
7392 lt_prog_compiler_static='-static'
7396 # All AIX code is PIC.
7397 if test "$host_cpu" = ia64; then
7398 # AIX 5 now supports IA64 processor
7399 lt_prog_compiler_static='-Bstatic'
7404 # FIXME: we need at least 68020 code to build shared libraries, but
7405 # adding the `-m68020' flag to GCC prevents building anything better,
7407 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7410 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7411 # PIC is the default for these OSes.
7414 mingw* | pw32* | os2*)
7415 # This hack is so that the source file can tell whether it is being
7416 # built for inclusion in a dll (and should export symbols for example).
7417 lt_prog_compiler_pic='-DDLL_EXPORT'
7420 darwin* | rhapsody*)
7421 # PIC is the default on this platform
7422 # Common symbols not allowed in MH_DYLIB files
7423 lt_prog_compiler_pic='-fno-common'
7427 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7428 # Instead, we relocate shared libraries at runtime.
7432 # Just because we use GCC doesn't mean we suddenly get shared libraries
7433 # on systems that don't support them.
7434 lt_prog_compiler_can_build_shared=no
7439 if test -d /usr/nec; then
7440 lt_prog_compiler_pic=-Kconform_pic
7445 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7452 lt_prog_compiler_pic='-fPIC'
7458 lt_prog_compiler_pic='-fPIC'
7462 # PORTME Check for flag to pass linker flags through the system compiler.
7465 lt_prog_compiler_wl='-Wl,'
7466 if test "$host_cpu" = ia64; then
7467 # AIX 5 now supports IA64 processor
7468 lt_prog_compiler_static='-Bstatic'
7470 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7474 # PIC is the default on this platform
7475 # Common symbols not allowed in MH_DYLIB files
7476 case $cc_basename in
7478 lt_prog_compiler_pic='-qnocommon'
7479 lt_prog_compiler_wl='-Wl,'
7484 mingw* | pw32* | os2*)
7485 # This hack is so that the source file can tell whether it is being
7486 # built for inclusion in a dll (and should export symbols for example).
7487 lt_prog_compiler_pic='-DDLL_EXPORT'
7490 hpux9* | hpux10* | hpux11*)
7491 lt_prog_compiler_wl='-Wl,'
7492 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7499 lt_prog_compiler_pic='+Z'
7502 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7503 lt_prog_compiler_static='${wl}-a ${wl}archive'
7506 irix5* | irix6* | nonstopux*)
7507 lt_prog_compiler_wl='-Wl,'
7508 # PIC (with -KPIC) is the default.
7509 lt_prog_compiler_static='-non_shared'
7513 lt_prog_compiler_pic='-KPIC'
7514 lt_prog_compiler_static='-Bstatic'
7517 linux* | k*bsd*-gnu)
7518 case $cc_basename in
7520 lt_prog_compiler_wl='-Wl,'
7521 lt_prog_compiler_pic='-KPIC'
7522 lt_prog_compiler_static='-static'
7524 pgcc* | pgf77* | pgf90* | pgf95*)
7525 # Portland Group compilers (*not* the Pentium gcc compiler,
7526 # which looks to be a dead project)
7527 lt_prog_compiler_wl='-Wl,'
7528 lt_prog_compiler_pic='-fpic'
7529 lt_prog_compiler_static='-Bstatic'
7532 lt_prog_compiler_wl='-Wl,'
7533 # All Alpha code is PIC.
7534 lt_prog_compiler_static='-non_shared'
7539 osf3* | osf4* | osf5*)
7540 lt_prog_compiler_wl='-Wl,'
7541 # All OSF/1 code is PIC.
7542 lt_prog_compiler_static='-non_shared'
7546 lt_prog_compiler_pic='-KPIC'
7547 lt_prog_compiler_static='-Bstatic'
7548 case $cc_basename in
7550 lt_prog_compiler_wl='-Qoption ld ';;
7552 lt_prog_compiler_wl='-Wl,';;
7557 lt_prog_compiler_wl='-Qoption ld '
7558 lt_prog_compiler_pic='-PIC'
7559 lt_prog_compiler_static='-Bstatic'
7562 sysv4 | sysv4.2uw2* | sysv4.3*)
7563 lt_prog_compiler_wl='-Wl,'
7564 lt_prog_compiler_pic='-KPIC'
7565 lt_prog_compiler_static='-Bstatic'
7569 if test -d /usr/nec ;then
7570 lt_prog_compiler_pic='-Kconform_pic'
7571 lt_prog_compiler_static='-Bstatic'
7575 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7576 lt_prog_compiler_wl='-Wl,'
7577 lt_prog_compiler_pic='-KPIC'
7578 lt_prog_compiler_static='-Bstatic'
7582 lt_prog_compiler_wl='-Wl,'
7583 lt_prog_compiler_can_build_shared=no
7587 lt_prog_compiler_pic='-pic'
7588 lt_prog_compiler_static='-Bstatic'
7592 lt_prog_compiler_can_build_shared=no
7597 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7598 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7601 # Check to make sure the PIC flag actually works.
7603 if test -n "$lt_prog_compiler_pic"; then
7605 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7606 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7607 if test "${lt_prog_compiler_pic_works+set}" = set; then
7608 echo $ECHO_N "(cached) $ECHO_C" >&6
7610 lt_prog_compiler_pic_works=no
7611 ac_outfile=conftest.$ac_objext
7612 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7613 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7614 # Insert the option either (1) after the last *FLAGS variable, or
7615 # (2) before a word containing "conftest.", or (3) at the end.
7616 # Note that $ac_compile itself does not contain backslashes and begins
7617 # with a dollar sign (not a hyphen), so the echo should work correctly.
7618 # The option is referenced via a variable to avoid confusing sed.
7619 lt_compile=`echo "$ac_compile" | $SED \
7620 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7621 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7622 -e 's:$: $lt_compiler_flag:'`
7623 (eval echo "\"\$as_me:7623: $lt_compile\"" >&5)
7624 (eval "$lt_compile" 2>conftest.err)
7626 cat conftest.err >&5
7627 echo "$as_me:7627: \$? = $ac_status" >&5
7628 if (exit $ac_status) && test -s "$ac_outfile"; then
7629 # The compiler can only warn and ignore the option if not recognized
7630 # So say no if there are warnings other than the usual output.
7631 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7632 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7633 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7634 lt_prog_compiler_pic_works=yes
7640 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7641 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7643 if test x"$lt_prog_compiler_pic_works" = xyes; then
7644 case $lt_prog_compiler_pic in
7646 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7649 lt_prog_compiler_pic=
7650 lt_prog_compiler_can_build_shared=no
7655 # For platforms which do not support PIC, -DPIC is meaningless:
7657 lt_prog_compiler_pic=
7660 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7665 # Check to make sure the static flag actually works.
7667 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7668 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7669 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7670 if test "${lt_prog_compiler_static_works+set}" = set; then
7671 echo $ECHO_N "(cached) $ECHO_C" >&6
7673 lt_prog_compiler_static_works=no
7674 save_LDFLAGS="$LDFLAGS"
7675 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7676 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7677 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7678 # The linker can only warn and ignore the option if not recognized
7679 # So say no if there are warnings
7680 if test -s conftest.err; then
7681 # Append any errors to the config.log.
7682 cat conftest.err 1>&5
7683 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7684 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7685 if diff conftest.exp conftest.er2 >/dev/null; then
7686 lt_prog_compiler_static_works=yes
7689 lt_prog_compiler_static_works=yes
7693 LDFLAGS="$save_LDFLAGS"
7696 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7697 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7699 if test x"$lt_prog_compiler_static_works" = xyes; then
7702 lt_prog_compiler_static=
7706 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7707 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7708 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7709 echo $ECHO_N "(cached) $ECHO_C" >&6
7711 lt_cv_prog_compiler_c_o=no
7712 $rm -r conftest 2>/dev/null
7716 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7718 lt_compiler_flag="-o out/conftest2.$ac_objext"
7719 # Insert the option either (1) after the last *FLAGS variable, or
7720 # (2) before a word containing "conftest.", or (3) at the end.
7721 # Note that $ac_compile itself does not contain backslashes and begins
7722 # with a dollar sign (not a hyphen), so the echo should work correctly.
7723 lt_compile=`echo "$ac_compile" | $SED \
7724 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7725 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7726 -e 's:$: $lt_compiler_flag:'`
7727 (eval echo "\"\$as_me:7727: $lt_compile\"" >&5)
7728 (eval "$lt_compile" 2>out/conftest.err)
7730 cat out/conftest.err >&5
7731 echo "$as_me:7731: \$? = $ac_status" >&5
7732 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7734 # The compiler can only warn and ignore the option if not recognized
7735 # So say no if there are warnings
7736 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7737 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7738 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7739 lt_cv_prog_compiler_c_o=yes
7744 # SGI C++ compiler will create directory out/ii_files/ for
7745 # template instantiation
7746 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7747 $rm out/* && rmdir out
7753 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7754 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7757 hard_links="nottested"
7758 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7759 # do not overwrite the value of need_locks provided by the user
7760 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7761 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7764 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7766 ln conftest.a conftest.b 2>&5 || hard_links=no
7767 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7768 { echo "$as_me:$LINENO: result: $hard_links" >&5
7769 echo "${ECHO_T}$hard_links" >&6; }
7770 if test "$hard_links" = no; then
7771 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7772 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7779 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7780 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7783 allow_undefined_flag=
7784 enable_shared_with_static_runtimes=no
7786 archive_expsym_cmds=
7787 old_archive_From_new_cmds=
7788 old_archive_from_expsyms_cmds=
7789 export_dynamic_flag_spec=
7790 whole_archive_flag_spec=
7791 thread_safe_flag_spec=
7792 hardcode_libdir_flag_spec=
7793 hardcode_libdir_flag_spec_ld=
7794 hardcode_libdir_separator=
7797 hardcode_shlibpath_var=unsupported
7798 link_all_deplibs=unknown
7799 hardcode_automatic=no
7802 always_export_symbols=no
7803 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7804 # include_expsyms should be a list of space-separated symbols to be *always*
7805 # included in the symbol list
7807 # exclude_expsyms can be an extended regexp of symbols to exclude
7808 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7809 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7810 # as well as any symbol that contains `d'.
7811 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7812 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7813 # platforms (ab)use it in PIC code, but their linkers get confused if
7814 # the symbol is explicitly referenced. Since portable code cannot
7815 # rely on this symbol name, it's probably fine to never include it in
7816 # preloaded symbol tables.
7817 extract_expsyms_cmds=
7818 # Just being paranoid about ensuring that cc_basename is set.
7819 for cc_temp in $compiler""; do
7821 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7822 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7827 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7830 cygwin* | mingw* | pw32*)
7831 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7832 # When not using gcc, we currently assume that we are using
7833 # Microsoft Visual C++.
7834 if test "$GCC" != yes; then
7839 # we just hope/assume this is gcc and not c89 (= MSVC++)
7848 if test "$with_gnu_ld" = yes; then
7849 # If archive_cmds runs LD, not CC, wlarc should be empty
7852 # Set some defaults for GNU ld with shared library support. These
7853 # are reset later if shared libraries are not supported. Putting them
7854 # here allows them to be overridden if necessary.
7855 runpath_var=LD_RUN_PATH
7856 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7857 export_dynamic_flag_spec='${wl}--export-dynamic'
7858 # ancient GNU ld didn't support --whole-archive et. al.
7859 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7860 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7862 whole_archive_flag_spec=
7864 supports_anon_versioning=no
7865 case `$LD -v 2>/dev/null` in
7866 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7867 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7868 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7869 *\ 2.11.*) ;; # other 2.11 versions
7870 *) supports_anon_versioning=yes ;;
7873 # See if GNU ld supports shared libraries.
7875 aix3* | aix4* | aix5*)
7876 # On AIX/PPC, the GNU linker is very broken
7877 if test "$host_cpu" != ia64; then
7881 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7882 *** to be unable to reliably create shared libraries on AIX.
7883 *** Therefore, libtool is disabling shared libraries support. If you
7884 *** really care for shared libraries, you may want to modify your PATH
7885 *** so that a non-GNU linker is found, and then restart.
7892 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)'
7893 hardcode_libdir_flag_spec='-L$libdir'
7894 hardcode_minus_L=yes
7896 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7897 # that the semantics of dynamic libraries on AmigaOS, at least up
7898 # to version 4, is to share data among multiple programs linked
7899 # with the same dynamic library. Since this doesn't match the
7900 # behavior of shared libraries on other platforms, we can't use
7906 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7907 allow_undefined_flag=unsupported
7908 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7909 # support --undefined. This deserves some investigation. FIXME
7910 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7916 cygwin* | mingw* | pw32*)
7917 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7918 # as there is no search path for DLLs.
7919 hardcode_libdir_flag_spec='-L$libdir'
7920 allow_undefined_flag=unsupported
7921 always_export_symbols=no
7922 enable_shared_with_static_runtimes=yes
7923 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7925 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7926 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7927 # If the export-symbols file already is a .def file (1st line
7928 # is EXPORTS), use it as is; otherwise, prepend...
7929 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7930 cp $export_symbols $output_objdir/$soname.def;
7932 echo EXPORTS > $output_objdir/$soname.def;
7933 cat $export_symbols >> $output_objdir/$soname.def;
7935 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7943 hardcode_shlibpath_var=no
7944 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7945 export_dynamic_flag_spec='${wl}-E'
7946 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7947 # Instead, shared libraries are loaded at an image base (0x10000000 by
7948 # default) and relocated if they conflict, which is a slow very memory
7949 # consuming and fragmenting process. To avoid this, we pick a random,
7950 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7951 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7952 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7953 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'
7956 linux* | k*bsd*-gnu)
7957 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7959 case $cc_basename,$host_cpu in
7960 pgcc*) # Portland Group C compiler
7961 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'
7962 tmp_addflag=' $pic_flag'
7964 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7965 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'
7966 tmp_addflag=' $pic_flag -Mnomain' ;;
7967 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7968 tmp_addflag=' -i_dynamic' ;;
7969 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7970 tmp_addflag=' -i_dynamic -nofor_main' ;;
7971 ifc* | ifort*) # Intel Fortran compiler
7972 tmp_addflag=' -nofor_main' ;;
7974 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7976 if test $supports_anon_versioning = yes; then
7977 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7978 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7979 $echo "local: *; };" >> $output_objdir/$libname.ver~
7980 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7988 netbsd* | netbsdelf*-gnu)
7989 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7990 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7993 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7994 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7999 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8003 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8004 *** create shared libraries on Solaris systems. Therefore, libtool
8005 *** is disabling shared libraries support. We urge you to upgrade GNU
8006 *** binutils to release 2.9.1 or newer. Another option is to modify
8007 *** your PATH or compiler configuration so that the native linker is
8008 *** used, and then restart.
8011 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8012 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8013 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8019 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8020 case `$LD -v 2>&1` in
8021 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8025 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8026 *** reliably create shared libraries on SCO systems. Therefore, libtool
8027 *** is disabling shared libraries support. We urge you to upgrade GNU
8028 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8029 *** your PATH or compiler configuration so that the native linker is
8030 *** used, and then restart.
8035 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8036 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8037 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8038 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8047 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8050 hardcode_shlibpath_var=no
8054 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8055 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8056 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8063 if test "$ld_shlibs" = no; then
8065 hardcode_libdir_flag_spec=
8066 export_dynamic_flag_spec=
8067 whole_archive_flag_spec=
8070 # PORTME fill in a description of your system's linker (not GNU ld)
8073 allow_undefined_flag=unsupported
8074 always_export_symbols=yes
8075 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'
8076 # Note: this linker hardcodes the directories in LIBPATH if there
8077 # are no directories specified by -L.
8078 hardcode_minus_L=yes
8079 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8080 # Neither direct hardcoding nor static linking is supported with a
8082 hardcode_direct=unsupported
8087 if test "$host_cpu" = ia64; then
8088 # On IA64, the linker does run time linking by default, so we don't
8089 # have to do anything special.
8090 aix_use_runtimelinking=no
8091 exp_sym_flag='-Bexport'
8094 # If we're using GNU nm, then we don't want the "-C" option.
8095 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8096 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8097 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'
8099 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'
8101 aix_use_runtimelinking=no
8103 # Test if we are trying to use run time linking or normal
8104 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8105 # need to do runtime linking.
8106 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8107 for ld_flag in $LDFLAGS; do
8108 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8109 aix_use_runtimelinking=yes
8116 exp_sym_flag='-bexport'
8117 no_entry_flag='-bnoentry'
8120 # When large executables or shared objects are built, AIX ld can
8121 # have problems creating the table of contents. If linking a library
8122 # or program results in "error TOC overflow" add -mminimal-toc to
8123 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8124 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8128 hardcode_libdir_separator=':'
8129 link_all_deplibs=yes
8131 if test "$GCC" = yes; then
8132 case $host_os in aix4.[012]|aix4.[012].*)
8133 # We only want to do this on AIX 4.2 and lower, the check
8134 # below for broken collect2 doesn't work under 4.3+
8135 collect2name=`${CC} -print-prog-name=collect2`
8136 if test -f "$collect2name" && \
8137 strings "$collect2name" | grep resolve_lib_name >/dev/null
8139 # We have reworked collect2
8142 # We have old collect2
8143 hardcode_direct=unsupported
8144 # It fails to find uninstalled libraries when the uninstalled
8145 # path is not listed in the libpath. Setting hardcode_minus_L
8146 # to unsupported forces relinking
8147 hardcode_minus_L=yes
8148 hardcode_libdir_flag_spec='-L$libdir'
8149 hardcode_libdir_separator=
8153 shared_flag='-shared'
8154 if test "$aix_use_runtimelinking" = yes; then
8155 shared_flag="$shared_flag "'${wl}-G'
8159 if test "$host_cpu" = ia64; then
8160 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8161 # chokes on -Wl,-G. The following line is correct:
8164 if test "$aix_use_runtimelinking" = yes; then
8165 shared_flag='${wl}-G'
8167 shared_flag='${wl}-bM:SRE'
8172 # It seems that -bexpall does not export symbols beginning with
8173 # underscore (_), so it is better to generate a list of symbols to export.
8174 always_export_symbols=yes
8175 if test "$aix_use_runtimelinking" = yes; then
8176 # Warning - without using the other runtime loading flags (-brtl),
8177 # -berok will link without error, but may produce a broken library.
8178 allow_undefined_flag='-berok'
8179 # Determine the default libpath from the value encoded in an empty executable.
8180 cat >conftest.$ac_ext <<_ACEOF
8183 cat confdefs.h >>conftest.$ac_ext
8184 cat >>conftest.$ac_ext <<_ACEOF
8185 /* end confdefs.h. */
8195 rm -f conftest.$ac_objext conftest$ac_exeext
8196 if { (ac_try="$ac_link"
8198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8199 *) ac_try_echo=$ac_try;;
8201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8202 (eval "$ac_link") 2>conftest.er1
8204 grep -v '^ *+' conftest.er1 >conftest.err
8206 cat conftest.err >&5
8207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208 (exit $ac_status); } && {
8209 test -z "$ac_c_werror_flag" ||
8210 test ! -s conftest.err
8211 } && test -s conftest$ac_exeext &&
8212 $as_test_x conftest$ac_exeext; then
8214 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8216 # Check for a 64-bit object if we didn't find anything.
8217 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8220 echo "$as_me: failed program was:" >&5
8221 sed 's/^/| /' conftest.$ac_ext >&5
8226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8227 conftest$ac_exeext conftest.$ac_ext
8228 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8230 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8231 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"
8233 if test "$host_cpu" = ia64; then
8234 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8235 allow_undefined_flag="-z nodefs"
8236 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"
8238 # Determine the default libpath from the value encoded in an empty executable.
8239 cat >conftest.$ac_ext <<_ACEOF
8242 cat confdefs.h >>conftest.$ac_ext
8243 cat >>conftest.$ac_ext <<_ACEOF
8244 /* end confdefs.h. */
8254 rm -f conftest.$ac_objext conftest$ac_exeext
8255 if { (ac_try="$ac_link"
8257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8258 *) ac_try_echo=$ac_try;;
8260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8261 (eval "$ac_link") 2>conftest.er1
8263 grep -v '^ *+' conftest.er1 >conftest.err
8265 cat conftest.err >&5
8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267 (exit $ac_status); } && {
8268 test -z "$ac_c_werror_flag" ||
8269 test ! -s conftest.err
8270 } && test -s conftest$ac_exeext &&
8271 $as_test_x conftest$ac_exeext; then
8273 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8275 # Check for a 64-bit object if we didn't find anything.
8276 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8279 echo "$as_me: failed program was:" >&5
8280 sed 's/^/| /' conftest.$ac_ext >&5
8285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8286 conftest$ac_exeext conftest.$ac_ext
8287 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8289 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8290 # Warning - without using the other run time loading flags,
8291 # -berok will link without error, but may produce a broken library.
8292 no_undefined_flag=' ${wl}-bernotok'
8293 allow_undefined_flag=' ${wl}-berok'
8294 # Exported symbols can be pulled into shared objects from archives
8295 whole_archive_flag_spec='$convenience'
8296 archive_cmds_need_lc=yes
8297 # This is similar to how AIX traditionally builds its shared libraries.
8298 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'
8304 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)'
8305 hardcode_libdir_flag_spec='-L$libdir'
8306 hardcode_minus_L=yes
8307 # see comment about different semantics on the GNU ld section
8312 export_dynamic_flag_spec=-rdynamic
8315 cygwin* | mingw* | pw32*)
8316 # When not using gcc, we currently assume that we are using
8317 # Microsoft Visual C++.
8318 # hardcode_libdir_flag_spec is actually meaningless, as there is
8319 # no search path for DLLs.
8320 hardcode_libdir_flag_spec=' '
8321 allow_undefined_flag=unsupported
8322 # Tell ltmain to make .lib files, not .a files.
8324 # Tell ltmain to make .dll files, not .so files.
8326 # FIXME: Setting linknames here is a bad hack.
8327 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8328 # The linker will automatically build a .lib file if we build a DLL.
8329 old_archive_From_new_cmds='true'
8330 # FIXME: Should let the user specify the lib program.
8331 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8332 fix_srcfile_path='`cygpath -w "$srcfile"`'
8333 enable_shared_with_static_runtimes=yes
8336 darwin* | rhapsody*)
8338 rhapsody* | darwin1.[012])
8339 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8342 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8343 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8345 case ${MACOSX_DEPLOYMENT_TARGET} in
8347 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8350 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8356 archive_cmds_need_lc=no
8358 hardcode_automatic=yes
8359 hardcode_shlibpath_var=unsupported
8360 whole_archive_flag_spec=''
8361 link_all_deplibs=yes
8362 if test "$GCC" = yes ; then
8363 output_verbose_link_cmd='echo'
8364 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8365 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8366 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8367 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8368 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}'
8370 case $cc_basename in
8372 output_verbose_link_cmd='echo'
8373 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8374 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8375 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8376 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8377 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}'
8387 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8388 hardcode_libdir_flag_spec='-L$libdir'
8389 hardcode_shlibpath_var=no
8396 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8397 # support. Future versions do this automatically, but an explicit c++rt0.o
8398 # does not break anything, and helps significantly (at the cost of a little
8401 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8402 hardcode_libdir_flag_spec='-R$libdir'
8404 hardcode_shlibpath_var=no
8407 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8409 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8411 hardcode_minus_L=yes
8412 hardcode_shlibpath_var=no
8415 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8416 freebsd* | dragonfly*)
8417 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8418 hardcode_libdir_flag_spec='-R$libdir'
8420 hardcode_shlibpath_var=no
8424 if test "$GCC" = yes; then
8425 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'
8427 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'
8429 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8430 hardcode_libdir_separator=:
8433 # hardcode_minus_L: Not really in the search PATH,
8434 # but as the default location of the library.
8435 hardcode_minus_L=yes
8436 export_dynamic_flag_spec='${wl}-E'
8440 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8441 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8443 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8445 if test "$with_gnu_ld" = no; then
8446 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8447 hardcode_libdir_separator=:
8450 export_dynamic_flag_spec='${wl}-E'
8452 # hardcode_minus_L: Not really in the search PATH,
8453 # but as the default location of the library.
8454 hardcode_minus_L=yes
8459 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8462 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8465 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8468 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8474 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8477 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8480 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8484 if test "$with_gnu_ld" = no; then
8485 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8486 hardcode_libdir_separator=:
8490 hardcode_libdir_flag_spec_ld='+b $libdir'
8492 hardcode_shlibpath_var=no
8496 export_dynamic_flag_spec='${wl}-E'
8498 # hardcode_minus_L: Not really in the search PATH,
8499 # but as the default location of the library.
8500 hardcode_minus_L=yes
8506 irix5* | irix6* | nonstopux*)
8507 if test "$GCC" = yes; then
8508 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'
8510 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'
8511 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8513 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8514 hardcode_libdir_separator=:
8515 link_all_deplibs=yes
8518 netbsd* | netbsdelf*-gnu)
8519 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8520 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8522 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8524 hardcode_libdir_flag_spec='-R$libdir'
8526 hardcode_shlibpath_var=no
8530 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8532 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8533 hardcode_libdir_separator=:
8534 hardcode_shlibpath_var=no
8539 hardcode_shlibpath_var=no
8540 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8541 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8542 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8543 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8544 export_dynamic_flag_spec='${wl}-E'
8547 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8548 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8549 hardcode_libdir_flag_spec='-R$libdir'
8552 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8553 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8560 hardcode_libdir_flag_spec='-L$libdir'
8561 hardcode_minus_L=yes
8562 allow_undefined_flag=unsupported
8563 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'
8564 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8568 if test "$GCC" = yes; then
8569 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8570 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'
8572 allow_undefined_flag=' -expect_unresolved \*'
8573 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'
8575 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8576 hardcode_libdir_separator=:
8579 osf4* | osf5*) # as osf3* with the addition of -msym flag
8580 if test "$GCC" = yes; then
8581 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8582 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'
8583 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8585 allow_undefined_flag=' -expect_unresolved \*'
8586 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'
8587 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8588 $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'
8590 # Both c and cxx compiler support -rpath directly
8591 hardcode_libdir_flag_spec='-rpath $libdir'
8593 hardcode_libdir_separator=:
8597 no_undefined_flag=' -z text'
8598 if test "$GCC" = yes; then
8600 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8601 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8602 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8605 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8606 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8607 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8609 hardcode_libdir_flag_spec='-R$libdir'
8610 hardcode_shlibpath_var=no
8612 solaris2.[0-5] | solaris2.[0-5].*) ;;
8614 # The compiler driver will combine linker options so we
8615 # cannot just pass the convience library names through
8616 # without $wl, iff we do not link with $LD.
8617 # Luckily, gcc supports the same syntax we need for Sun Studio.
8618 # Supported since Solaris 2.6 (maybe 2.5.1?)
8621 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8623 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8626 link_all_deplibs=yes
8630 if test "x$host_vendor" = xsequent; then
8631 # Use $CC to link under sequent, because it throws in some extra .o
8632 # files that make .init and .fini sections work.
8633 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8635 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8637 hardcode_libdir_flag_spec='-L$libdir'
8639 hardcode_minus_L=yes
8640 hardcode_shlibpath_var=no
8644 case $host_vendor in
8646 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8647 hardcode_direct=yes # is this really true???
8650 ## LD is ld it makes a PLAMLIB
8651 ## CC just makes a GrossModule.
8652 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8653 reload_cmds='$CC -r -o $output$reload_objs'
8657 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8658 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8661 runpath_var='LD_RUN_PATH'
8662 hardcode_shlibpath_var=no
8666 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8667 hardcode_shlibpath_var=no
8668 export_dynamic_flag_spec='-Bexport'
8672 if test -d /usr/nec; then
8673 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8674 hardcode_shlibpath_var=no
8675 runpath_var=LD_RUN_PATH
8676 hardcode_runpath_var=yes
8681 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8682 no_undefined_flag='${wl}-z,text'
8683 archive_cmds_need_lc=no
8684 hardcode_shlibpath_var=no
8685 runpath_var='LD_RUN_PATH'
8687 if test "$GCC" = yes; then
8688 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8689 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8691 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8692 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8696 sysv5* | sco3.2v5* | sco5v6*)
8697 # Note: We can NOT use -z defs as we might desire, because we do not
8698 # link with -lc, and that would cause any symbols used from libc to
8699 # always be unresolved, which means just about no library would
8700 # ever link correctly. If we're not using GNU ld we use -z text
8701 # though, which does catch some bad symbols but isn't as heavy-handed
8703 no_undefined_flag='${wl}-z,text'
8704 allow_undefined_flag='${wl}-z,nodefs'
8705 archive_cmds_need_lc=no
8706 hardcode_shlibpath_var=no
8707 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8708 hardcode_libdir_separator=':'
8709 link_all_deplibs=yes
8710 export_dynamic_flag_spec='${wl}-Bexport'
8711 runpath_var='LD_RUN_PATH'
8713 if test "$GCC" = yes; then
8714 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8715 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8717 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8718 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8723 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8724 hardcode_libdir_flag_spec='-L$libdir'
8725 hardcode_shlibpath_var=no
8734 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8735 echo "${ECHO_T}$ld_shlibs" >&6; }
8736 test "$ld_shlibs" = no && can_build_shared=no
8739 # Do we need to explicitly link libc?
8741 case "x$archive_cmds_need_lc" in
8743 # Assume -lc should be added
8744 archive_cmds_need_lc=yes
8746 if test "$enable_shared" = yes && test "$GCC" = yes; then
8747 case $archive_cmds in
8749 # FIXME: we may have to deal with multi-command sequences.
8752 # Test whether the compiler implicitly links with -lc since on some
8753 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8754 # to ld, don't add -lc before -lgcc.
8755 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8756 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8758 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8761 (eval $ac_compile) 2>&5
8763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); } 2>conftest.err; then
8767 libobjs=conftest.$ac_objext
8769 wl=$lt_prog_compiler_wl
8770 pic_flag=$lt_prog_compiler_pic
8776 lt_save_allow_undefined_flag=$allow_undefined_flag
8777 allow_undefined_flag=
8778 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8779 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782 (exit $ac_status); }
8784 archive_cmds_need_lc=no
8786 archive_cmds_need_lc=yes
8788 allow_undefined_flag=$lt_save_allow_undefined_flag
8790 cat conftest.err 1>&5
8793 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8794 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8801 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8802 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8804 libname_spec='lib$name'
8812 shlibpath_overrides_runpath=unknown
8814 dynamic_linker="$host_os ld.so"
8815 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8816 if test "$GCC" = yes; then
8817 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8818 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8819 # if the path contains ";" then we assume it to be the separator
8820 # otherwise default to the standard path separator (i.e. ":") - it is
8821 # assumed that no part of a normal pathname contains ";" but that should
8822 # okay in the real world where ";" in dirpaths is itself problematic.
8823 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8825 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8828 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8830 need_lib_prefix=unknown
8831 hardcode_into_libs=no
8833 # when you set need_version to no, make sure it does not cause -set_version
8834 # flags to be left without arguments
8835 need_version=unknown
8840 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8841 shlibpath_var=LIBPATH
8843 # AIX 3 has no versioning support, so we append a major version to the name.
8844 soname_spec='${libname}${release}${shared_ext}$major'
8851 hardcode_into_libs=yes
8852 if test "$host_cpu" = ia64; then
8853 # AIX 5 supports IA64
8854 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8855 shlibpath_var=LD_LIBRARY_PATH
8857 # With GCC up to 2.95.x, collect2 would create an import file
8858 # for dependence libraries. The import file would start with
8859 # the line `#! .'. This would cause the generated library to
8860 # depend on `.', always an invalid library. This was fixed in
8861 # development snapshots of GCC prior to 3.0.
8863 aix4 | aix4.[01] | aix4.[01].*)
8864 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8866 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8873 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8874 # soname into executable. Probably we can add versioning support to
8875 # collect2, so additional links can be useful in future.
8876 if test "$aix_use_runtimelinking" = yes; then
8877 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8878 # instead of lib<name>.a to let people know that these are not
8879 # typical AIX shared libraries.
8880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8882 # We preserve .a as extension for shared libraries through AIX4.2
8883 # and later when we are not doing run time linking.
8884 library_names_spec='${libname}${release}.a $libname.a'
8885 soname_spec='${libname}${release}${shared_ext}$major'
8887 shlibpath_var=LIBPATH
8892 library_names_spec='$libname.ixlibrary $libname.a'
8893 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8894 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'
8898 library_names_spec='${libname}${shared_ext}'
8899 dynamic_linker="$host_os ld.so"
8900 shlibpath_var=LIBRARY_PATH
8906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8907 soname_spec='${libname}${release}${shared_ext}$major'
8908 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8909 shlibpath_var=LD_LIBRARY_PATH
8910 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8911 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8912 # the default ld.so.conf also contains /usr/contrib/lib and
8913 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8914 # libtool to hard-code these into programs
8917 cygwin* | mingw* | pw32*)
8918 version_type=windows
8923 case $GCC,$host_os in
8924 yes,cygwin* | yes,mingw* | yes,pw32*)
8925 library_names_spec='$libname.dll.a'
8926 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8927 postinstall_cmds='base_file=`basename \${file}`~
8928 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8929 dldir=$destdir/`dirname \$dlpath`~
8930 test -d \$dldir || mkdir -p \$dldir~
8931 $install_prog $dir/$dlname \$dldir/$dlname~
8932 chmod a+x \$dldir/$dlname'
8933 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8934 dlpath=$dir/\$dldll~
8936 shlibpath_overrides_runpath=yes
8940 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8941 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8942 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8945 # MinGW DLLs use traditional 'lib' prefix
8946 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8947 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8948 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8949 # It is most probably a Windows format PATH printed by
8950 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8951 # path with ; separators, and with drive letters. We can handle the
8952 # drive letters (cygwin fileutils understands them), so leave them,
8953 # especially as we might pass files found there to a mingw objdump,
8954 # which wouldn't understand a cygwinified path. Ahh.
8955 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8957 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8961 # pw32 DLLs use 'pw' prefix rather than 'lib'
8962 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8968 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8971 dynamic_linker='Win32 ld.exe'
8972 # FIXME: first we should search . and the directory the executable is in
8976 darwin* | rhapsody*)
8977 dynamic_linker="$host_os dyld"
8981 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8982 soname_spec='${libname}${release}${major}$shared_ext'
8983 shlibpath_overrides_runpath=yes
8984 shlibpath_var=DYLD_LIBRARY_PATH
8985 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8986 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8987 if test "$GCC" = yes; then
8988 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8990 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8992 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9000 soname_spec='${libname}${release}${shared_ext}$major'
9001 shlibpath_var=LD_LIBRARY_PATH
9008 freebsd* | dragonfly*)
9009 # DragonFly does not have aout. When/if they implement a new
9010 # versioning mechanism, adjust this.
9011 if test -x /usr/bin/objformat; then
9012 objformat=`/usr/bin/objformat`
9015 freebsd[123]*) objformat=aout ;;
9019 version_type=freebsd-$objformat
9020 case $version_type in
9022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9027 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9031 shlibpath_var=LD_LIBRARY_PATH
9034 shlibpath_overrides_runpath=yes
9036 freebsd3.[01]* | freebsdelf3.[01]*)
9037 shlibpath_overrides_runpath=yes
9038 hardcode_into_libs=yes
9040 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9041 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9042 shlibpath_overrides_runpath=no
9043 hardcode_into_libs=yes
9045 freebsd*) # from 4.6 on
9046 shlibpath_overrides_runpath=yes
9047 hardcode_into_libs=yes
9056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9057 soname_spec='${libname}${release}${shared_ext}$major'
9058 shlibpath_var=LD_LIBRARY_PATH
9059 hardcode_into_libs=yes
9062 hpux9* | hpux10* | hpux11*)
9063 # Give a soname corresponding to the major version so that dld.sl refuses to
9064 # link against other versions.
9071 hardcode_into_libs=yes
9072 dynamic_linker="$host_os dld.so"
9073 shlibpath_var=LD_LIBRARY_PATH
9074 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9076 soname_spec='${libname}${release}${shared_ext}$major'
9077 if test "X$HPUX_IA64_MODE" = X32; then
9078 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9080 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9082 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9086 hardcode_into_libs=yes
9087 dynamic_linker="$host_os dld.sl"
9088 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9089 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9091 soname_spec='${libname}${release}${shared_ext}$major'
9092 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9093 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9097 dynamic_linker="$host_os dld.sl"
9098 shlibpath_var=SHLIB_PATH
9099 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9101 soname_spec='${libname}${release}${shared_ext}$major'
9104 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9105 postinstall_cmds='chmod 555 $lib'
9112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9113 soname_spec='${libname}${release}${shared_ext}$major'
9114 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9115 shlibpath_var=LD_LIBRARY_PATH
9116 shlibpath_overrides_runpath=no
9117 hardcode_into_libs=yes
9120 irix5* | irix6* | nonstopux*)
9122 nonstopux*) version_type=nonstopux ;;
9124 if test "$lt_cv_prog_gnu_ld" = yes; then
9132 soname_spec='${libname}${release}${shared_ext}$major'
9133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9135 irix5* | nonstopux*)
9139 case $LD in # libtool.m4 will add one of these switches to LD
9140 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9141 libsuff= shlibsuff= libmagic=32-bit;;
9142 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9143 libsuff=32 shlibsuff=N32 libmagic=N32;;
9144 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9145 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9146 *) libsuff= shlibsuff= libmagic=never-match;;
9150 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9151 shlibpath_overrides_runpath=no
9152 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9153 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9154 hardcode_into_libs=yes
9157 # No shared lib support for Linux oldld, aout, or coff.
9158 linux*oldld* | linux*aout* | linux*coff*)
9162 # This must be Linux ELF.
9163 linux* | k*bsd*-gnu)
9167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9168 soname_spec='${libname}${release}${shared_ext}$major'
9169 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9170 shlibpath_var=LD_LIBRARY_PATH
9171 shlibpath_overrides_runpath=no
9172 # This implies no fast_install, which is unacceptable.
9173 # Some rework will be needed to allow for fast_install
9174 # before this can be enabled.
9175 hardcode_into_libs=yes
9177 # Append ld.so.conf contents to the search path
9178 if test -f /etc/ld.so.conf; then
9179 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9180 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9183 # We used to test for /lib/ld.so.1 and disable shared libraries on
9184 # powerpc, because MkLinux only supported shared libraries with the
9185 # GNU dynamic linker. Since this was broken with cross compilers,
9186 # most powerpc-linux boxes support dynamic linking these days and
9187 # people can always --disable-shared, the test was removed, and we
9188 # assume the GNU/Linux dynamic linker is in use.
9189 dynamic_linker='GNU/Linux ld.so'
9196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9197 soname_spec='${libname}${release}${shared_ext}$major'
9198 shlibpath_var=LD_LIBRARY_PATH
9199 shlibpath_overrides_runpath=no
9200 hardcode_into_libs=yes
9201 dynamic_linker='NetBSD ld.elf_so'
9208 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9210 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9211 dynamic_linker='NetBSD (a.out) ld.so'
9213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9214 soname_spec='${libname}${release}${shared_ext}$major'
9215 dynamic_linker='NetBSD ld.elf_so'
9217 shlibpath_var=LD_LIBRARY_PATH
9218 shlibpath_overrides_runpath=yes
9219 hardcode_into_libs=yes
9224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9225 shlibpath_var=LD_LIBRARY_PATH
9226 shlibpath_overrides_runpath=yes
9233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9234 soname_spec='${libname}${release}${shared_ext}$major'
9235 shlibpath_var=LD_LIBRARY_PATH
9236 shlibpath_overrides_runpath=yes
9241 sys_lib_dlsearch_path_spec="/usr/lib"
9243 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9245 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9246 *) need_version=no ;;
9248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9249 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9250 shlibpath_var=LD_LIBRARY_PATH
9251 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9253 openbsd2.[89] | openbsd2.[89].*)
9254 shlibpath_overrides_runpath=no
9257 shlibpath_overrides_runpath=yes
9261 shlibpath_overrides_runpath=yes
9266 libname_spec='$name'
9269 library_names_spec='$libname${shared_ext} $libname.a'
9270 dynamic_linker='OS/2 ld.exe'
9271 shlibpath_var=LIBPATH
9274 osf3* | osf4* | osf5*)
9278 soname_spec='${libname}${release}${shared_ext}$major'
9279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9280 shlibpath_var=LD_LIBRARY_PATH
9281 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9282 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9290 soname_spec='${libname}${release}${shared_ext}$major'
9291 shlibpath_var=LD_LIBRARY_PATH
9292 shlibpath_overrides_runpath=yes
9293 hardcode_into_libs=yes
9294 # ldd complains unless libraries are executable
9295 postinstall_cmds='chmod +x $lib'
9300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9301 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9302 shlibpath_var=LD_LIBRARY_PATH
9303 shlibpath_overrides_runpath=yes
9304 if test "$with_gnu_ld" = yes; then
9312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9313 soname_spec='${libname}${release}${shared_ext}$major'
9314 shlibpath_var=LD_LIBRARY_PATH
9315 case $host_vendor in
9317 shlibpath_overrides_runpath=no
9319 export_dynamic_flag_spec='${wl}-Blargedynsym'
9320 runpath_var=LD_RUN_PATH
9328 shlibpath_overrides_runpath=no
9329 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9335 if test -d /usr/nec ;then
9337 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9338 soname_spec='$libname${shared_ext}.$major'
9339 shlibpath_var=LD_LIBRARY_PATH
9343 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9344 version_type=freebsd-elf
9347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9348 soname_spec='${libname}${release}${shared_ext}$major'
9349 shlibpath_var=LD_LIBRARY_PATH
9350 hardcode_into_libs=yes
9351 if test "$with_gnu_ld" = yes; then
9352 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9353 shlibpath_overrides_runpath=no
9355 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9356 shlibpath_overrides_runpath=yes
9359 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9363 sys_lib_dlsearch_path_spec='/usr/lib'
9368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9369 soname_spec='${libname}${release}${shared_ext}$major'
9370 shlibpath_var=LD_LIBRARY_PATH
9377 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9378 echo "${ECHO_T}$dynamic_linker" >&6; }
9379 test "$dynamic_linker" = no && can_build_shared=no
9381 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9382 if test "$GCC" = yes; then
9383 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9386 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9387 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9389 if test -n "$hardcode_libdir_flag_spec" || \
9390 test -n "$runpath_var" || \
9391 test "X$hardcode_automatic" = "Xyes" ; then
9393 # We can hardcode non-existant directories.
9394 if test "$hardcode_direct" != no &&
9395 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9396 # have to relink, otherwise we might link with an installed library
9397 # when we should be linking with a yet-to-be-installed one
9398 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9399 test "$hardcode_minus_L" != no; then
9400 # Linking always hardcodes the temporary library directory.
9401 hardcode_action=relink
9403 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9404 hardcode_action=immediate
9407 # We cannot hardcode anything, or else we can only hardcode existing
9409 hardcode_action=unsupported
9411 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9412 echo "${ECHO_T}$hardcode_action" >&6; }
9414 if test "$hardcode_action" = relink; then
9415 # Fast installation is not supported
9416 enable_fast_install=no
9417 elif test "$shlibpath_overrides_runpath" = yes ||
9418 test "$enable_shared" = no; then
9419 # Fast installation is not necessary
9420 enable_fast_install=needless
9425 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9426 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9427 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9428 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9429 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9430 { echo "$as_me:$LINENO: result: yes" >&5
9431 echo "${ECHO_T}yes" >&6; }
9433 # FIXME - insert some real tests, host_os isn't really good enough
9436 if test -n "$STRIP" ; then
9437 striplib="$STRIP -x"
9438 { echo "$as_me:$LINENO: result: yes" >&5
9439 echo "${ECHO_T}yes" >&6; }
9441 { echo "$as_me:$LINENO: result: no" >&5
9442 echo "${ECHO_T}no" >&6; }
9446 { echo "$as_me:$LINENO: result: no" >&5
9447 echo "${ECHO_T}no" >&6; }
9452 if test "x$enable_dlopen" != xyes; then
9453 enable_dlopen=unknown
9454 enable_dlopen_self=unknown
9455 enable_dlopen_self_static=unknown
9462 lt_cv_dlopen="load_add_on"
9464 lt_cv_dlopen_self=yes
9468 lt_cv_dlopen="LoadLibrary"
9473 lt_cv_dlopen="dlopen"
9478 # if libdl is installed we need to link against it
9479 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9480 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9481 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9482 echo $ECHO_N "(cached) $ECHO_C" >&6
9484 ac_check_lib_save_LIBS=$LIBS
9486 cat >conftest.$ac_ext <<_ACEOF
9489 cat confdefs.h >>conftest.$ac_ext
9490 cat >>conftest.$ac_ext <<_ACEOF
9491 /* end confdefs.h. */
9493 /* Override any GCC internal prototype to avoid an error.
9494 Use char because int might match the return type of a GCC
9495 builtin and then its argument prototype would still apply. */
9508 rm -f conftest.$ac_objext conftest$ac_exeext
9509 if { (ac_try="$ac_link"
9511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9512 *) ac_try_echo=$ac_try;;
9514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9515 (eval "$ac_link") 2>conftest.er1
9517 grep -v '^ *+' conftest.er1 >conftest.err
9519 cat conftest.err >&5
9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 (exit $ac_status); } && {
9522 test -z "$ac_c_werror_flag" ||
9523 test ! -s conftest.err
9524 } && test -s conftest$ac_exeext &&
9525 $as_test_x conftest$ac_exeext; then
9526 ac_cv_lib_dl_dlopen=yes
9528 echo "$as_me: failed program was:" >&5
9529 sed 's/^/| /' conftest.$ac_ext >&5
9531 ac_cv_lib_dl_dlopen=no
9534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9535 conftest$ac_exeext conftest.$ac_ext
9536 LIBS=$ac_check_lib_save_LIBS
9538 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9539 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9540 if test $ac_cv_lib_dl_dlopen = yes; then
9541 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9546 lt_cv_dlopen_self=yes
9553 { echo "$as_me:$LINENO: checking for shl_load" >&5
9554 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9555 if test "${ac_cv_func_shl_load+set}" = set; then
9556 echo $ECHO_N "(cached) $ECHO_C" >&6
9558 cat >conftest.$ac_ext <<_ACEOF
9561 cat confdefs.h >>conftest.$ac_ext
9562 cat >>conftest.$ac_ext <<_ACEOF
9563 /* end confdefs.h. */
9564 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9566 #define shl_load innocuous_shl_load
9568 /* System header to define __stub macros and hopefully few prototypes,
9569 which can conflict with char shl_load (); below.
9570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9571 <limits.h> exists even on freestanding compilers. */
9574 # include <limits.h>
9576 # include <assert.h>
9581 /* Override any GCC internal prototype to avoid an error.
9582 Use char because int might match the return type of a GCC
9583 builtin and then its argument prototype would still apply. */
9588 /* The GNU C library defines this for functions which it implements
9589 to always fail with ENOSYS. Some functions are actually named
9590 something starting with __ and the normal name is an alias. */
9591 #if defined __stub_shl_load || defined __stub___shl_load
9603 rm -f conftest.$ac_objext conftest$ac_exeext
9604 if { (ac_try="$ac_link"
9606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9607 *) ac_try_echo=$ac_try;;
9609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9610 (eval "$ac_link") 2>conftest.er1
9612 grep -v '^ *+' conftest.er1 >conftest.err
9614 cat conftest.err >&5
9615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616 (exit $ac_status); } && {
9617 test -z "$ac_c_werror_flag" ||
9618 test ! -s conftest.err
9619 } && test -s conftest$ac_exeext &&
9620 $as_test_x conftest$ac_exeext; then
9621 ac_cv_func_shl_load=yes
9623 echo "$as_me: failed program was:" >&5
9624 sed 's/^/| /' conftest.$ac_ext >&5
9626 ac_cv_func_shl_load=no
9629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9630 conftest$ac_exeext conftest.$ac_ext
9632 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9633 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9634 if test $ac_cv_func_shl_load = yes; then
9635 lt_cv_dlopen="shl_load"
9637 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9638 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9639 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9640 echo $ECHO_N "(cached) $ECHO_C" >&6
9642 ac_check_lib_save_LIBS=$LIBS
9644 cat >conftest.$ac_ext <<_ACEOF
9647 cat confdefs.h >>conftest.$ac_ext
9648 cat >>conftest.$ac_ext <<_ACEOF
9649 /* end confdefs.h. */
9651 /* Override any GCC internal prototype to avoid an error.
9652 Use char because int might match the return type of a GCC
9653 builtin and then its argument prototype would still apply. */
9666 rm -f conftest.$ac_objext conftest$ac_exeext
9667 if { (ac_try="$ac_link"
9669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9670 *) ac_try_echo=$ac_try;;
9672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9673 (eval "$ac_link") 2>conftest.er1
9675 grep -v '^ *+' conftest.er1 >conftest.err
9677 cat conftest.err >&5
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); } && {
9680 test -z "$ac_c_werror_flag" ||
9681 test ! -s conftest.err
9682 } && test -s conftest$ac_exeext &&
9683 $as_test_x conftest$ac_exeext; then
9684 ac_cv_lib_dld_shl_load=yes
9686 echo "$as_me: failed program was:" >&5
9687 sed 's/^/| /' conftest.$ac_ext >&5
9689 ac_cv_lib_dld_shl_load=no
9692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9693 conftest$ac_exeext conftest.$ac_ext
9694 LIBS=$ac_check_lib_save_LIBS
9696 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9697 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9698 if test $ac_cv_lib_dld_shl_load = yes; then
9699 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9701 { echo "$as_me:$LINENO: checking for dlopen" >&5
9702 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9703 if test "${ac_cv_func_dlopen+set}" = set; then
9704 echo $ECHO_N "(cached) $ECHO_C" >&6
9706 cat >conftest.$ac_ext <<_ACEOF
9709 cat confdefs.h >>conftest.$ac_ext
9710 cat >>conftest.$ac_ext <<_ACEOF
9711 /* end confdefs.h. */
9712 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9713 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9714 #define dlopen innocuous_dlopen
9716 /* System header to define __stub macros and hopefully few prototypes,
9717 which can conflict with char dlopen (); below.
9718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9719 <limits.h> exists even on freestanding compilers. */
9722 # include <limits.h>
9724 # include <assert.h>
9729 /* Override any GCC internal prototype to avoid an error.
9730 Use char because int might match the return type of a GCC
9731 builtin and then its argument prototype would still apply. */
9736 /* The GNU C library defines this for functions which it implements
9737 to always fail with ENOSYS. Some functions are actually named
9738 something starting with __ and the normal name is an alias. */
9739 #if defined __stub_dlopen || defined __stub___dlopen
9751 rm -f conftest.$ac_objext conftest$ac_exeext
9752 if { (ac_try="$ac_link"
9754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9755 *) ac_try_echo=$ac_try;;
9757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9758 (eval "$ac_link") 2>conftest.er1
9760 grep -v '^ *+' conftest.er1 >conftest.err
9762 cat conftest.err >&5
9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 (exit $ac_status); } && {
9765 test -z "$ac_c_werror_flag" ||
9766 test ! -s conftest.err
9767 } && test -s conftest$ac_exeext &&
9768 $as_test_x conftest$ac_exeext; then
9769 ac_cv_func_dlopen=yes
9771 echo "$as_me: failed program was:" >&5
9772 sed 's/^/| /' conftest.$ac_ext >&5
9774 ac_cv_func_dlopen=no
9777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9778 conftest$ac_exeext conftest.$ac_ext
9780 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9781 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9782 if test $ac_cv_func_dlopen = yes; then
9783 lt_cv_dlopen="dlopen"
9785 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9786 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9787 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9788 echo $ECHO_N "(cached) $ECHO_C" >&6
9790 ac_check_lib_save_LIBS=$LIBS
9792 cat >conftest.$ac_ext <<_ACEOF
9795 cat confdefs.h >>conftest.$ac_ext
9796 cat >>conftest.$ac_ext <<_ACEOF
9797 /* end confdefs.h. */
9799 /* Override any GCC internal prototype to avoid an error.
9800 Use char because int might match the return type of a GCC
9801 builtin and then its argument prototype would still apply. */
9814 rm -f conftest.$ac_objext conftest$ac_exeext
9815 if { (ac_try="$ac_link"
9817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9818 *) ac_try_echo=$ac_try;;
9820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9821 (eval "$ac_link") 2>conftest.er1
9823 grep -v '^ *+' conftest.er1 >conftest.err
9825 cat conftest.err >&5
9826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827 (exit $ac_status); } && {
9828 test -z "$ac_c_werror_flag" ||
9829 test ! -s conftest.err
9830 } && test -s conftest$ac_exeext &&
9831 $as_test_x conftest$ac_exeext; then
9832 ac_cv_lib_dl_dlopen=yes
9834 echo "$as_me: failed program was:" >&5
9835 sed 's/^/| /' conftest.$ac_ext >&5
9837 ac_cv_lib_dl_dlopen=no
9840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9841 conftest$ac_exeext conftest.$ac_ext
9842 LIBS=$ac_check_lib_save_LIBS
9844 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9845 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9846 if test $ac_cv_lib_dl_dlopen = yes; then
9847 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9849 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9850 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9851 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9852 echo $ECHO_N "(cached) $ECHO_C" >&6
9854 ac_check_lib_save_LIBS=$LIBS
9856 cat >conftest.$ac_ext <<_ACEOF
9859 cat confdefs.h >>conftest.$ac_ext
9860 cat >>conftest.$ac_ext <<_ACEOF
9861 /* end confdefs.h. */
9863 /* Override any GCC internal prototype to avoid an error.
9864 Use char because int might match the return type of a GCC
9865 builtin and then its argument prototype would still apply. */
9878 rm -f conftest.$ac_objext conftest$ac_exeext
9879 if { (ac_try="$ac_link"
9881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9882 *) ac_try_echo=$ac_try;;
9884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9885 (eval "$ac_link") 2>conftest.er1
9887 grep -v '^ *+' conftest.er1 >conftest.err
9889 cat conftest.err >&5
9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891 (exit $ac_status); } && {
9892 test -z "$ac_c_werror_flag" ||
9893 test ! -s conftest.err
9894 } && test -s conftest$ac_exeext &&
9895 $as_test_x conftest$ac_exeext; then
9896 ac_cv_lib_svld_dlopen=yes
9898 echo "$as_me: failed program was:" >&5
9899 sed 's/^/| /' conftest.$ac_ext >&5
9901 ac_cv_lib_svld_dlopen=no
9904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9905 conftest$ac_exeext conftest.$ac_ext
9906 LIBS=$ac_check_lib_save_LIBS
9908 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9909 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9910 if test $ac_cv_lib_svld_dlopen = yes; then
9911 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9913 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9914 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9915 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9916 echo $ECHO_N "(cached) $ECHO_C" >&6
9918 ac_check_lib_save_LIBS=$LIBS
9920 cat >conftest.$ac_ext <<_ACEOF
9923 cat confdefs.h >>conftest.$ac_ext
9924 cat >>conftest.$ac_ext <<_ACEOF
9925 /* end confdefs.h. */
9927 /* Override any GCC internal prototype to avoid an error.
9928 Use char because int might match the return type of a GCC
9929 builtin and then its argument prototype would still apply. */
9942 rm -f conftest.$ac_objext conftest$ac_exeext
9943 if { (ac_try="$ac_link"
9945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9946 *) ac_try_echo=$ac_try;;
9948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9949 (eval "$ac_link") 2>conftest.er1
9951 grep -v '^ *+' conftest.er1 >conftest.err
9953 cat conftest.err >&5
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 (exit $ac_status); } && {
9956 test -z "$ac_c_werror_flag" ||
9957 test ! -s conftest.err
9958 } && test -s conftest$ac_exeext &&
9959 $as_test_x conftest$ac_exeext; then
9960 ac_cv_lib_dld_dld_link=yes
9962 echo "$as_me: failed program was:" >&5
9963 sed 's/^/| /' conftest.$ac_ext >&5
9965 ac_cv_lib_dld_dld_link=no
9968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9969 conftest$ac_exeext conftest.$ac_ext
9970 LIBS=$ac_check_lib_save_LIBS
9972 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9973 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9974 if test $ac_cv_lib_dld_dld_link = yes; then
9975 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9996 if test "x$lt_cv_dlopen" != xno; then
10002 case $lt_cv_dlopen in
10004 save_CPPFLAGS="$CPPFLAGS"
10005 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10007 save_LDFLAGS="$LDFLAGS"
10008 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10011 LIBS="$lt_cv_dlopen_libs $LIBS"
10013 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10014 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10015 if test "${lt_cv_dlopen_self+set}" = set; then
10016 echo $ECHO_N "(cached) $ECHO_C" >&6
10018 if test "$cross_compiling" = yes; then :
10019 lt_cv_dlopen_self=cross
10021 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10022 lt_status=$lt_dlunknown
10023 cat > conftest.$ac_ext <<EOF
10024 #line 10024 "configure"
10025 #include "confdefs.h"
10034 # define LT_DLGLOBAL RTLD_GLOBAL
10037 # define LT_DLGLOBAL DL_GLOBAL
10039 # define LT_DLGLOBAL 0
10043 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10044 find out it does not work in some platform. */
10045 #ifndef LT_DLLAZY_OR_NOW
10047 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10050 # define LT_DLLAZY_OR_NOW DL_LAZY
10053 # define LT_DLLAZY_OR_NOW RTLD_NOW
10056 # define LT_DLLAZY_OR_NOW DL_NOW
10058 # define LT_DLLAZY_OR_NOW 0
10066 extern "C" void exit (int);
10069 void fnord() { int i=42;}
10072 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10073 int status = $lt_dlunknown;
10077 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10078 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10079 /* dlclose (self); */
10087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10088 (eval $ac_link) 2>&5
10090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10092 (./conftest; exit; ) >&5 2>/dev/null
10094 case x$lt_status in
10095 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10096 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10097 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10100 # compilation failed
10101 lt_cv_dlopen_self=no
10108 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10109 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10111 if test "x$lt_cv_dlopen_self" = xyes; then
10112 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10113 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10114 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10115 if test "${lt_cv_dlopen_self_static+set}" = set; then
10116 echo $ECHO_N "(cached) $ECHO_C" >&6
10118 if test "$cross_compiling" = yes; then :
10119 lt_cv_dlopen_self_static=cross
10121 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10122 lt_status=$lt_dlunknown
10123 cat > conftest.$ac_ext <<EOF
10124 #line 10124 "configure"
10125 #include "confdefs.h"
10134 # define LT_DLGLOBAL RTLD_GLOBAL
10137 # define LT_DLGLOBAL DL_GLOBAL
10139 # define LT_DLGLOBAL 0
10143 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10144 find out it does not work in some platform. */
10145 #ifndef LT_DLLAZY_OR_NOW
10147 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10150 # define LT_DLLAZY_OR_NOW DL_LAZY
10153 # define LT_DLLAZY_OR_NOW RTLD_NOW
10156 # define LT_DLLAZY_OR_NOW DL_NOW
10158 # define LT_DLLAZY_OR_NOW 0
10166 extern "C" void exit (int);
10169 void fnord() { int i=42;}
10172 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10173 int status = $lt_dlunknown;
10177 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10178 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10179 /* dlclose (self); */
10187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10188 (eval $ac_link) 2>&5
10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10192 (./conftest; exit; ) >&5 2>/dev/null
10194 case x$lt_status in
10195 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10196 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10197 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10200 # compilation failed
10201 lt_cv_dlopen_self_static=no
10208 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10209 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10212 CPPFLAGS="$save_CPPFLAGS"
10213 LDFLAGS="$save_LDFLAGS"
10218 case $lt_cv_dlopen_self in
10219 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10220 *) enable_dlopen_self=unknown ;;
10223 case $lt_cv_dlopen_self_static in
10224 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10225 *) enable_dlopen_self_static=unknown ;;
10230 # Report which library types will actually be built
10231 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10232 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10233 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10234 echo "${ECHO_T}$can_build_shared" >&6; }
10236 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10237 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10238 test "$can_build_shared" = "no" && enable_shared=no
10240 # On AIX, shared libraries and static libraries use the same namespace, and
10241 # are all built from PIC.
10244 test "$enable_shared" = yes && enable_static=no
10245 if test -n "$RANLIB"; then
10246 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10247 postinstall_cmds='$RANLIB $lib'
10252 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10253 test "$enable_shared" = yes && enable_static=no
10257 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10258 echo "${ECHO_T}$enable_shared" >&6; }
10260 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10261 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10262 # Make sure either enable_shared or enable_static is yes.
10263 test "$enable_shared" = yes || enable_static=yes
10264 { echo "$as_me:$LINENO: result: $enable_static" >&5
10265 echo "${ECHO_T}$enable_static" >&6; }
10267 # The else clause should only fire when bootstrapping the
10268 # libtool distribution, otherwise you forgot to ship ltmain.sh
10269 # with your package, and you will get complaints that there are
10270 # no rules to generate ltmain.sh.
10271 if test -f "$ltmain"; then
10272 # See if we are running on zsh, and set the options which allow our commands through
10273 # without removal of \ escapes.
10274 if test -n "${ZSH_VERSION+set}" ; then
10275 setopt NO_GLOB_SUBST
10277 # Now quote all the things that may contain metacharacters while being
10278 # careful not to overquote the AC_SUBSTed values. We take copies of the
10279 # variables and quote the copies for generation of the libtool script.
10280 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10282 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10283 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10284 deplibs_check_method reload_flag reload_cmds need_locks \
10285 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10286 lt_cv_sys_global_symbol_to_c_name_address \
10287 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10288 old_postinstall_cmds old_postuninstall_cmds \
10292 lt_prog_compiler_wl \
10293 lt_prog_compiler_pic \
10294 lt_prog_compiler_static \
10295 lt_prog_compiler_no_builtin_flag \
10296 export_dynamic_flag_spec \
10297 thread_safe_flag_spec \
10298 whole_archive_flag_spec \
10299 enable_shared_with_static_runtimes \
10301 old_archive_from_new_cmds \
10306 compiler_lib_search_path \
10308 archive_expsym_cmds \
10310 postuninstall_cmds \
10311 old_archive_from_expsyms_cmds \
10312 allow_undefined_flag \
10313 no_undefined_flag \
10314 export_symbols_cmds \
10315 hardcode_libdir_flag_spec \
10316 hardcode_libdir_flag_spec_ld \
10317 hardcode_libdir_separator \
10318 hardcode_automatic \
10320 module_expsym_cmds \
10321 lt_cv_prog_compiler_c_o \
10323 include_expsyms; do
10326 old_archive_cmds | \
10327 old_archive_from_new_cmds | \
10329 archive_expsym_cmds | \
10331 module_expsym_cmds | \
10332 old_archive_from_expsyms_cmds | \
10333 export_symbols_cmds | \
10334 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10335 postinstall_cmds | postuninstall_cmds | \
10336 old_postinstall_cmds | old_postuninstall_cmds | \
10337 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10338 # Double-quote double-evaled strings.
10339 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10342 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10348 *'\$0 --fallback-echo"')
10349 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10353 cfgfile="${ofile}T"
10354 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10356 { echo "$as_me:$LINENO: creating $ofile" >&5
10357 echo "$as_me: creating $ofile" >&6;}
10359 cat <<__EOF__ >> "$cfgfile"
10362 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10363 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10364 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10366 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10367 # Free Software Foundation, Inc.
10369 # This file is part of GNU Libtool:
10370 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10372 # This program is free software; you can redistribute it and/or modify
10373 # it under the terms of the GNU General Public License as published by
10374 # the Free Software Foundation; either version 2 of the License, or
10375 # (at your option) any later version.
10377 # This program is distributed in the hope that it will be useful, but
10378 # WITHOUT ANY WARRANTY; without even the implied warranty of
10379 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10380 # General Public License for more details.
10382 # You should have received a copy of the GNU General Public License
10383 # along with this program; if not, write to the Free Software
10384 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10386 # As a special exception to the GNU General Public License, if you
10387 # distribute this file as part of a program that contains a
10388 # configuration script generated by Autoconf, you may include it under
10389 # the same distribution terms that you use for the rest of that program.
10391 # A sed program that does not truncate output.
10394 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10395 Xsed="$SED -e 1s/^X//"
10397 # The HP-UX ksh and POSIX shell print the target directory to stdout
10398 # if CDPATH is set.
10399 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10401 # The names of the tagged configurations supported by this script.
10404 # ### BEGIN LIBTOOL CONFIG
10406 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10408 # Shell to use when invoking shell scripts.
10411 # Whether or not to build shared libraries.
10412 build_libtool_libs=$enable_shared
10414 # Whether or not to build static libraries.
10415 build_old_libs=$enable_static
10417 # Whether or not to add -lc for building shared libraries.
10418 build_libtool_need_lc=$archive_cmds_need_lc
10420 # Whether or not to disallow shared libs when runtime libs are static
10421 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10423 # Whether or not to optimize for fast installation.
10424 fast_install=$enable_fast_install
10427 host_alias=$host_alias
10431 # The build system.
10432 build_alias=$build_alias
10436 # An echo program that does not interpret backslashes.
10441 AR_FLAGS=$lt_AR_FLAGS
10446 # LTCC compiler flags.
10447 LTCFLAGS=$lt_LTCFLAGS
10449 # A language-specific compiler.
10452 # Is the compiler the GNU C compiler?
10458 # The linker used to build libraries.
10461 # Whether we need hard or soft links.
10464 # A BSD-compatible nm program.
10467 # A symbol stripping program
10470 # Used to examine libraries when file_magic_cmd begins "file"
10471 MAGIC_CMD=$MAGIC_CMD
10473 # Used on cygwin: DLL creation program.
10476 # Used on cygwin: object dumper.
10479 # Used on cygwin: assembler.
10482 # The name of the directory that contains temporary libtool files.
10485 # How to create reloadable object files.
10486 reload_flag=$lt_reload_flag
10487 reload_cmds=$lt_reload_cmds
10489 # How to pass a linker flag through the compiler.
10490 wl=$lt_lt_prog_compiler_wl
10492 # Object file suffix (normally "o").
10493 objext="$ac_objext"
10495 # Old archive suffix (normally "a").
10498 # Shared library suffix (normally ".so").
10499 shrext_cmds='$shrext_cmds'
10501 # Executable file suffix (normally "").
10504 # Additional compiler flags for building library objects.
10505 pic_flag=$lt_lt_prog_compiler_pic
10508 # What is the maximum length of a command?
10509 max_cmd_len=$lt_cv_sys_max_cmd_len
10511 # Does compiler simultaneously support -c and -o options?
10512 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10514 # Must we lock files when doing compilation?
10515 need_locks=$lt_need_locks
10517 # Do we need the lib prefix for modules?
10518 need_lib_prefix=$need_lib_prefix
10520 # Do we need a version for libraries?
10521 need_version=$need_version
10523 # Whether dlopen is supported.
10524 dlopen_support=$enable_dlopen
10526 # Whether dlopen of programs is supported.
10527 dlopen_self=$enable_dlopen_self
10529 # Whether dlopen of statically linked programs is supported.
10530 dlopen_self_static=$enable_dlopen_self_static
10532 # Compiler flag to prevent dynamic linking.
10533 link_static_flag=$lt_lt_prog_compiler_static
10535 # Compiler flag to turn off builtin functions.
10536 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10538 # Compiler flag to allow reflexive dlopens.
10539 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10541 # Compiler flag to generate shared objects directly from archives.
10542 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10544 # Compiler flag to generate thread-safe objects.
10545 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10547 # Library versioning type.
10548 version_type=$version_type
10550 # Format of library name prefix.
10551 libname_spec=$lt_libname_spec
10553 # List of archive names. First name is the real one, the rest are links.
10554 # The last name is the one that the linker finds with -lNAME.
10555 library_names_spec=$lt_library_names_spec
10557 # The coded name of the library, if different from the real name.
10558 soname_spec=$lt_soname_spec
10560 # Commands used to build and install an old-style archive.
10562 old_archive_cmds=$lt_old_archive_cmds
10563 old_postinstall_cmds=$lt_old_postinstall_cmds
10564 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10566 # Create an old-style archive from a shared archive.
10567 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10569 # Create a temporary old-style archive to link instead of a shared archive.
10570 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10572 # Commands used to build and install a shared archive.
10573 archive_cmds=$lt_archive_cmds
10574 archive_expsym_cmds=$lt_archive_expsym_cmds
10575 postinstall_cmds=$lt_postinstall_cmds
10576 postuninstall_cmds=$lt_postuninstall_cmds
10578 # Commands used to build a loadable module (assumed same as above if empty)
10579 module_cmds=$lt_module_cmds
10580 module_expsym_cmds=$lt_module_expsym_cmds
10582 # Commands to strip libraries.
10583 old_striplib=$lt_old_striplib
10584 striplib=$lt_striplib
10586 # Dependencies to place before the objects being linked to create a
10588 predep_objects=$lt_predep_objects
10590 # Dependencies to place after the objects being linked to create a
10592 postdep_objects=$lt_postdep_objects
10594 # Dependencies to place before the objects being linked to create a
10596 predeps=$lt_predeps
10598 # Dependencies to place after the objects being linked to create a
10600 postdeps=$lt_postdeps
10602 # The library search path used internally by the compiler when linking
10603 # a shared library.
10604 compiler_lib_search_path=$lt_compiler_lib_search_path
10606 # Method to check whether dependent libraries are shared objects.
10607 deplibs_check_method=$lt_deplibs_check_method
10609 # Command to use when deplibs_check_method == file_magic.
10610 file_magic_cmd=$lt_file_magic_cmd
10612 # Flag that allows shared libraries with undefined symbols to be built.
10613 allow_undefined_flag=$lt_allow_undefined_flag
10615 # Flag that forces no undefined symbols.
10616 no_undefined_flag=$lt_no_undefined_flag
10618 # Commands used to finish a libtool library installation in a directory.
10619 finish_cmds=$lt_finish_cmds
10621 # Same as above, but a single script fragment to be evaled but not shown.
10622 finish_eval=$lt_finish_eval
10624 # Take the output of nm and produce a listing of raw symbols and C names.
10625 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10627 # Transform the output of nm in a proper C declaration
10628 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10630 # Transform the output of nm in a C name address pair
10631 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10633 # This is the shared library runtime path variable.
10634 runpath_var=$runpath_var
10636 # This is the shared library path variable.
10637 shlibpath_var=$shlibpath_var
10639 # Is shlibpath searched before the hard-coded library search path?
10640 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10642 # How to hardcode a shared library path into an executable.
10643 hardcode_action=$hardcode_action
10645 # Whether we should hardcode library paths into libraries.
10646 hardcode_into_libs=$hardcode_into_libs
10648 # Flag to hardcode \$libdir into a binary during linking.
10649 # This must work even if \$libdir does not exist.
10650 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10652 # If ld is used when linking, flag to hardcode \$libdir into
10653 # a binary during linking. This must work even if \$libdir does
10655 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10657 # Whether we need a single -rpath flag with a separated argument.
10658 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10660 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10661 # resulting binary.
10662 hardcode_direct=$hardcode_direct
10664 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10665 # resulting binary.
10666 hardcode_minus_L=$hardcode_minus_L
10668 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10669 # the resulting binary.
10670 hardcode_shlibpath_var=$hardcode_shlibpath_var
10672 # Set to yes if building a shared library automatically hardcodes DIR into the library
10673 # and all subsequent libraries and executables linked against it.
10674 hardcode_automatic=$hardcode_automatic
10676 # Variables whose values should be saved in libtool wrapper scripts and
10677 # restored at relink time.
10678 variables_saved_for_relink="$variables_saved_for_relink"
10680 # Whether libtool must link a program against all its dependency libraries.
10681 link_all_deplibs=$link_all_deplibs
10683 # Compile-time system search path for libraries
10684 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10686 # Run-time system search path for libraries
10687 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10689 # Fix the shell variable \$srcfile for the compiler.
10690 fix_srcfile_path="$fix_srcfile_path"
10692 # Set to yes if exported symbols are required.
10693 always_export_symbols=$always_export_symbols
10695 # The commands to list exported symbols.
10696 export_symbols_cmds=$lt_export_symbols_cmds
10698 # The commands to extract the exported symbol list from a shared archive.
10699 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10701 # Symbols that should not be listed in the preloaded symbols.
10702 exclude_expsyms=$lt_exclude_expsyms
10704 # Symbols that must always be exported.
10705 include_expsyms=$lt_include_expsyms
10707 # ### END LIBTOOL CONFIG
10714 cat <<\EOF >> "$cfgfile"
10716 # AIX sometimes has problems with the GCC collect2 program. For some
10717 # reason, if we set the COLLECT_NAMES environment variable, the problems
10718 # vanish in a puff of smoke.
10719 if test "X${COLLECT_NAMES+set}" != Xset; then
10721 export COLLECT_NAMES
10727 # We use sed instead of cat because bash on DJGPP gets confused if
10728 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10729 # text mode, it properly converts lines to CR/LF. This bash problem
10730 # is reportedly fixed, but why not run on old versions too?
10731 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10733 mv -f "$cfgfile" "$ofile" || \
10734 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10738 # If there is no Makefile yet, we rely on a make rule to execute
10739 # `config.status --recheck' to rerun these tests and create the
10740 # libtool script then.
10741 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10742 if test -f "$ltmain_in"; then
10743 test -f Makefile && make "$ltmain"
10749 ac_cpp='$CPP $CPPFLAGS'
10750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10757 # Check whether --with-tags was given.
10758 if test "${with_tags+set}" = set; then
10759 withval=$with_tags; tagnames="$withval"
10763 if test -f "$ltmain" && test -n "$tagnames"; then
10764 if test ! -f "${ofile}"; then
10765 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10766 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10769 if test -z "$LTCC"; then
10770 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10771 if test -z "$LTCC"; then
10772 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10773 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10775 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10776 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10779 if test -z "$LTCFLAGS"; then
10780 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10783 # Extract list of available tagged configurations in $ofile.
10784 # Note that this assumes the entire list is on one line.
10785 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10787 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10788 for tagname in $tagnames; do
10790 # Check whether tagname contains only valid characters
10791 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10793 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10794 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10795 { (exit 1); exit 1; }; }
10799 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10801 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10802 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10803 { (exit 1); exit 1; }; }
10806 # Update the list of available tags.
10807 if test -n "$tagname"; then
10808 echo appending configuration tag \"$tagname\" to $ofile
10812 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10813 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10814 (test "X$CXX" != "Xg++"))) ; then
10816 ac_cpp='$CXXCPP $CPPFLAGS'
10817 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10818 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10819 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10824 archive_cmds_need_lc_CXX=no
10825 allow_undefined_flag_CXX=
10826 always_export_symbols_CXX=no
10827 archive_expsym_cmds_CXX=
10828 export_dynamic_flag_spec_CXX=
10829 hardcode_direct_CXX=no
10830 hardcode_libdir_flag_spec_CXX=
10831 hardcode_libdir_flag_spec_ld_CXX=
10832 hardcode_libdir_separator_CXX=
10833 hardcode_minus_L_CXX=no
10834 hardcode_shlibpath_var_CXX=unsupported
10835 hardcode_automatic_CXX=no
10837 module_expsym_cmds_CXX=
10838 link_all_deplibs_CXX=unknown
10839 old_archive_cmds_CXX=$old_archive_cmds
10840 no_undefined_flag_CXX=
10841 whole_archive_flag_spec_CXX=
10842 enable_shared_with_static_runtimes_CXX=no
10844 # Dependencies to place before and after the object being linked:
10845 predep_objects_CXX=
10846 postdep_objects_CXX=
10849 compiler_lib_search_path_CXX=
10851 # Source file extension for C++ test sources.
10854 # Object file extension for compiled C++ test sources.
10858 # Code to be used in simple compile tests
10859 lt_simple_compile_test_code="int some_variable = 0;\n"
10861 # Code to be used in simple link tests
10862 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10864 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10866 # If no C compiler was specified, use CC.
10869 # If no C compiler flags were specified, use CFLAGS.
10870 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10872 # Allow CC to be a program name with arguments.
10876 # save warnings/boilerplate of simple test code
10877 ac_outfile=conftest.$ac_objext
10878 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10879 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10880 _lt_compiler_boilerplate=`cat conftest.err`
10883 ac_outfile=conftest.$ac_objext
10884 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10885 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10886 _lt_linker_boilerplate=`cat conftest.err`
10890 # Allow CC to be a program name with arguments.
10895 lt_save_with_gnu_ld=$with_gnu_ld
10896 lt_save_path_LD=$lt_cv_path_LD
10897 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10898 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10900 $as_unset lt_cv_prog_gnu_ld
10902 if test -n "${lt_cv_path_LDCXX+set}"; then
10903 lt_cv_path_LD=$lt_cv_path_LDCXX
10905 $as_unset lt_cv_path_LD
10907 test -z "${LDCXX+set}" || LD=$LDCXX
10911 for cc_temp in $compiler""; do
10913 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10914 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10919 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10922 # We don't want -fno-exception wen compiling C++ code, so set the
10923 # no_builtin_flag separately
10924 if test "$GXX" = yes; then
10925 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10927 lt_prog_compiler_no_builtin_flag_CXX=
10930 if test "$GXX" = yes; then
10931 # Set up default GNU C++ configuration
10934 # Check whether --with-gnu-ld was given.
10935 if test "${with_gnu_ld+set}" = set; then
10936 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10942 if test "$GCC" = yes; then
10943 # Check if gcc -print-prog-name=ld gives a path.
10944 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10945 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10948 # gcc leaves a trailing carriage return which upsets mingw
10949 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10951 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10954 # Accept absolute paths.
10956 re_direlt='/[^/][^/]*/\.\./'
10957 # Canonicalize the pathname of ld
10958 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10959 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10960 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10962 test -z "$LD" && LD="$ac_prog"
10965 # If it fails, then pretend we aren't using GCC.
10969 # If it is relative, then search for the first ld in PATH.
10970 with_gnu_ld=unknown
10973 elif test "$with_gnu_ld" = yes; then
10974 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10975 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10977 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10978 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10980 if test "${lt_cv_path_LD+set}" = set; then
10981 echo $ECHO_N "(cached) $ECHO_C" >&6
10983 if test -z "$LD"; then
10984 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10985 for ac_dir in $PATH; do
10987 test -z "$ac_dir" && ac_dir=.
10988 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10989 lt_cv_path_LD="$ac_dir/$ac_prog"
10990 # Check to see if the program is GNU ld. I'd rather use --version,
10991 # but apparently some variants of GNU ld only accept -v.
10992 # Break only if it was the GNU/non-GNU ld that we prefer.
10993 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10994 *GNU* | *'with BFD'*)
10995 test "$with_gnu_ld" != no && break
10998 test "$with_gnu_ld" != yes && break
11005 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11009 LD="$lt_cv_path_LD"
11010 if test -n "$LD"; then
11011 { echo "$as_me:$LINENO: result: $LD" >&5
11012 echo "${ECHO_T}$LD" >&6; }
11014 { echo "$as_me:$LINENO: result: no" >&5
11015 echo "${ECHO_T}no" >&6; }
11017 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11018 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11019 { (exit 1); exit 1; }; }
11020 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11021 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11022 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11023 echo $ECHO_N "(cached) $ECHO_C" >&6
11025 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11026 case `$LD -v 2>&1 </dev/null` in
11027 *GNU* | *'with BFD'*)
11028 lt_cv_prog_gnu_ld=yes
11031 lt_cv_prog_gnu_ld=no
11035 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11036 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11037 with_gnu_ld=$lt_cv_prog_gnu_ld
11041 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11042 # archiving commands below assume that GNU ld is being used.
11043 if test "$with_gnu_ld" = yes; then
11044 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11045 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'
11047 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11048 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11050 # If archive_cmds runs LD, not CC, wlarc should be empty
11051 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11052 # investigate it a little bit more. (MM)
11055 # ancient GNU ld didn't support --whole-archive et. al.
11056 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11057 grep 'no-whole-archive' > /dev/null; then
11058 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11060 whole_archive_flag_spec_CXX=
11066 # A generic and very simple default shared library creation
11067 # command for GNU C++ for the case where it uses the native
11068 # linker, instead of GNU ld. If possible, this setting should
11069 # overridden to take advantage of the native linker features on
11070 # the platform it is being used on.
11071 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11074 # Commands to make compiler produce verbose output that lists
11075 # what "hidden" libraries, object files and flags are used when
11076 # linking a shared library.
11077 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11085 # PORTME: fill in a description of your system's C++ link characteristics
11086 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11087 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11091 # FIXME: insert proper C++ library support
11095 if test "$host_cpu" = ia64; then
11096 # On IA64, the linker does run time linking by default, so we don't
11097 # have to do anything special.
11098 aix_use_runtimelinking=no
11099 exp_sym_flag='-Bexport'
11102 aix_use_runtimelinking=no
11104 # Test if we are trying to use run time linking or normal
11105 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11106 # need to do runtime linking.
11107 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11108 for ld_flag in $LDFLAGS; do
11111 aix_use_runtimelinking=yes
11119 exp_sym_flag='-bexport'
11120 no_entry_flag='-bnoentry'
11123 # When large executables or shared objects are built, AIX ld can
11124 # have problems creating the table of contents. If linking a library
11125 # or program results in "error TOC overflow" add -mminimal-toc to
11126 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11127 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11129 archive_cmds_CXX=''
11130 hardcode_direct_CXX=yes
11131 hardcode_libdir_separator_CXX=':'
11132 link_all_deplibs_CXX=yes
11134 if test "$GXX" = yes; then
11135 case $host_os in aix4.[012]|aix4.[012].*)
11136 # We only want to do this on AIX 4.2 and lower, the check
11137 # below for broken collect2 doesn't work under 4.3+
11138 collect2name=`${CC} -print-prog-name=collect2`
11139 if test -f "$collect2name" && \
11140 strings "$collect2name" | grep resolve_lib_name >/dev/null
11142 # We have reworked collect2
11143 hardcode_direct_CXX=yes
11145 # We have old collect2
11146 hardcode_direct_CXX=unsupported
11147 # It fails to find uninstalled libraries when the uninstalled
11148 # path is not listed in the libpath. Setting hardcode_minus_L
11149 # to unsupported forces relinking
11150 hardcode_minus_L_CXX=yes
11151 hardcode_libdir_flag_spec_CXX='-L$libdir'
11152 hardcode_libdir_separator_CXX=
11156 shared_flag='-shared'
11157 if test "$aix_use_runtimelinking" = yes; then
11158 shared_flag="$shared_flag "'${wl}-G'
11162 if test "$host_cpu" = ia64; then
11163 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11164 # chokes on -Wl,-G. The following line is correct:
11167 if test "$aix_use_runtimelinking" = yes; then
11168 shared_flag='${wl}-G'
11170 shared_flag='${wl}-bM:SRE'
11175 # It seems that -bexpall does not export symbols beginning with
11176 # underscore (_), so it is better to generate a list of symbols to export.
11177 always_export_symbols_CXX=yes
11178 if test "$aix_use_runtimelinking" = yes; then
11179 # Warning - without using the other runtime loading flags (-brtl),
11180 # -berok will link without error, but may produce a broken library.
11181 allow_undefined_flag_CXX='-berok'
11182 # Determine the default libpath from the value encoded in an empty executable.
11183 cat >conftest.$ac_ext <<_ACEOF
11186 cat confdefs.h >>conftest.$ac_ext
11187 cat >>conftest.$ac_ext <<_ACEOF
11188 /* end confdefs.h. */
11198 rm -f conftest.$ac_objext conftest$ac_exeext
11199 if { (ac_try="$ac_link"
11200 case "(($ac_try" in
11201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11202 *) ac_try_echo=$ac_try;;
11204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11205 (eval "$ac_link") 2>conftest.er1
11207 grep -v '^ *+' conftest.er1 >conftest.err
11209 cat conftest.err >&5
11210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11211 (exit $ac_status); } && {
11212 test -z "$ac_cxx_werror_flag" ||
11213 test ! -s conftest.err
11214 } && test -s conftest$ac_exeext &&
11215 $as_test_x conftest$ac_exeext; then
11217 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11219 # Check for a 64-bit object if we didn't find anything.
11220 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11223 echo "$as_me: failed program was:" >&5
11224 sed 's/^/| /' conftest.$ac_ext >&5
11229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11230 conftest$ac_exeext conftest.$ac_ext
11231 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11233 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11235 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"
11237 if test "$host_cpu" = ia64; then
11238 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11239 allow_undefined_flag_CXX="-z nodefs"
11240 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"
11242 # Determine the default libpath from the value encoded in an empty executable.
11243 cat >conftest.$ac_ext <<_ACEOF
11246 cat confdefs.h >>conftest.$ac_ext
11247 cat >>conftest.$ac_ext <<_ACEOF
11248 /* end confdefs.h. */
11258 rm -f conftest.$ac_objext conftest$ac_exeext
11259 if { (ac_try="$ac_link"
11260 case "(($ac_try" in
11261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11262 *) ac_try_echo=$ac_try;;
11264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11265 (eval "$ac_link") 2>conftest.er1
11267 grep -v '^ *+' conftest.er1 >conftest.err
11269 cat conftest.err >&5
11270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271 (exit $ac_status); } && {
11272 test -z "$ac_cxx_werror_flag" ||
11273 test ! -s conftest.err
11274 } && test -s conftest$ac_exeext &&
11275 $as_test_x conftest$ac_exeext; then
11277 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11279 # Check for a 64-bit object if we didn't find anything.
11280 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11283 echo "$as_me: failed program was:" >&5
11284 sed 's/^/| /' conftest.$ac_ext >&5
11289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11290 conftest$ac_exeext conftest.$ac_ext
11291 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11293 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11294 # Warning - without using the other run time loading flags,
11295 # -berok will link without error, but may produce a broken library.
11296 no_undefined_flag_CXX=' ${wl}-bernotok'
11297 allow_undefined_flag_CXX=' ${wl}-berok'
11298 # Exported symbols can be pulled into shared objects from archives
11299 whole_archive_flag_spec_CXX='$convenience'
11300 archive_cmds_need_lc_CXX=yes
11301 # This is similar to how AIX traditionally builds its shared libraries.
11302 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'
11308 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11309 allow_undefined_flag_CXX=unsupported
11310 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11311 # support --undefined. This deserves some investigation. FIXME
11312 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11319 case $cc_basename in
11321 # FIXME: insert proper C++ library support
11327 cygwin* | mingw* | pw32*)
11328 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11329 # as there is no search path for DLLs.
11330 hardcode_libdir_flag_spec_CXX='-L$libdir'
11331 allow_undefined_flag_CXX=unsupported
11332 always_export_symbols_CXX=no
11333 enable_shared_with_static_runtimes_CXX=yes
11335 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11336 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'
11337 # If the export-symbols file already is a .def file (1st line
11338 # is EXPORTS), use it as is; otherwise, prepend...
11339 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11340 cp $export_symbols $output_objdir/$soname.def;
11342 echo EXPORTS > $output_objdir/$soname.def;
11343 cat $export_symbols >> $output_objdir/$soname.def;
11345 $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'
11350 darwin* | rhapsody*)
11352 rhapsody* | darwin1.[012])
11353 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11356 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11357 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11359 case ${MACOSX_DEPLOYMENT_TARGET} in
11361 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11364 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11370 archive_cmds_need_lc_CXX=no
11371 hardcode_direct_CXX=no
11372 hardcode_automatic_CXX=yes
11373 hardcode_shlibpath_var_CXX=unsupported
11374 whole_archive_flag_spec_CXX=''
11375 link_all_deplibs_CXX=yes
11377 if test "$GXX" = yes ; then
11378 lt_int_apple_cc_single_mod=no
11379 output_verbose_link_cmd='echo'
11380 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11381 lt_int_apple_cc_single_mod=yes
11383 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11384 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11386 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'
11388 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11389 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11390 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11391 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11393 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11395 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}'
11397 case $cc_basename in
11399 output_verbose_link_cmd='echo'
11400 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11401 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11402 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11403 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11404 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}'
11414 case $cc_basename in
11416 # FIXME: insert proper C++ library support
11420 # Green Hills C++ Compiler
11421 # FIXME: insert proper C++ library support
11425 # FIXME: insert proper C++ library support
11431 # C++ shared libraries reported to be fairly broken before switch to ELF
11435 archive_cmds_need_lc_CXX=no
11437 freebsd* | dragonfly*)
11438 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11445 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11446 hardcode_libdir_separator_CXX=:
11447 export_dynamic_flag_spec_CXX='${wl}-E'
11448 hardcode_direct_CXX=yes
11449 hardcode_minus_L_CXX=yes # Not in the search PATH,
11450 # but as the default
11451 # location of the library.
11453 case $cc_basename in
11455 # FIXME: insert proper C++ library support
11459 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'
11460 # Commands to make compiler produce verbose output that lists
11461 # what "hidden" libraries, object files and flags are used when
11462 # linking a shared library.
11464 # There doesn't appear to be a way to prevent this compiler from
11465 # explicitly linking system object files so we need to strip them
11466 # from the output so that they don't get included in the library
11468 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'
11471 if test "$GXX" = yes; then
11472 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'
11474 # FIXME: insert proper C++ library support
11481 if test $with_gnu_ld = no; then
11482 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11483 hardcode_libdir_separator_CXX=:
11487 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11490 export_dynamic_flag_spec_CXX='${wl}-E'
11496 hardcode_direct_CXX=no
11497 hardcode_shlibpath_var_CXX=no
11500 hardcode_direct_CXX=yes
11501 hardcode_minus_L_CXX=yes # Not in the search PATH,
11502 # but as the default
11503 # location of the library.
11507 case $cc_basename in
11509 # FIXME: insert proper C++ library support
11515 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11518 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11521 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11524 # Commands to make compiler produce verbose output that lists
11525 # what "hidden" libraries, object files and flags are used when
11526 # linking a shared library.
11528 # There doesn't appear to be a way to prevent this compiler from
11529 # explicitly linking system object files so we need to strip them
11530 # from the output so that they don't get included in the library
11532 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'
11535 if test "$GXX" = yes; then
11536 if test $with_gnu_ld = no; then
11539 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11542 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11545 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'
11550 # FIXME: insert proper C++ library support
11557 hardcode_direct_CXX=no
11558 hardcode_shlibpath_var_CXX=no
11559 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11560 export_dynamic_flag_spec_CXX='${wl}-E'
11561 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11562 # Instead, shared libraries are loaded at an image base (0x10000000 by
11563 # default) and relocated if they conflict, which is a slow very memory
11564 # consuming and fragmenting process. To avoid this, we pick a random,
11565 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11566 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11567 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'
11568 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'
11571 case $cc_basename in
11574 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'
11576 # Archives containing C++ object files must be created using
11577 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11578 # necessary to make sure instantiated templates are included
11580 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11583 if test "$GXX" = yes; then
11584 if test "$with_gnu_ld" = no; then
11585 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'
11587 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'
11590 link_all_deplibs_CXX=yes
11593 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11594 hardcode_libdir_separator_CXX=:
11596 linux* | k*bsd*-gnu)
11597 case $cc_basename in
11599 # Kuck and Associates, Inc. (KAI) C++ Compiler
11601 # KCC will only create a shared library if the output file
11602 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11603 # to its proper name (with version) after linking.
11604 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'
11605 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'
11606 # Commands to make compiler produce verbose output that lists
11607 # what "hidden" libraries, object files and flags are used when
11608 # linking a shared library.
11610 # There doesn't appear to be a way to prevent this compiler from
11611 # explicitly linking system object files so we need to strip them
11612 # from the output so that they don't get included in the library
11614 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'
11616 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11617 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11619 # Archives containing C++ object files must be created using
11620 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11621 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11626 # version 8.0 and above of icpc choke on multiply defined symbols
11627 # if we add $predep_objects and $postdep_objects, however 7.1 and
11628 # earlier do not add the objects themselves.
11629 case `$CC -V 2>&1` in
11631 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11632 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'
11634 *) # Version 8.0 or newer
11637 ia64*) tmp_idyn=' -i_dynamic';;
11639 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11640 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'
11643 archive_cmds_need_lc_CXX=no
11644 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11645 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11646 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11649 # Portland Group C++ compiler
11650 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11651 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'
11653 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11654 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11655 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'
11659 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11660 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'
11662 runpath_var=LD_RUN_PATH
11663 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11664 hardcode_libdir_separator_CXX=:
11666 # Commands to make compiler produce verbose output that lists
11667 # what "hidden" libraries, object files and flags are used when
11668 # linking a shared library.
11670 # There doesn't appear to be a way to prevent this compiler from
11671 # explicitly linking system object files so we need to strip them
11672 # from the output so that they don't get included in the library
11674 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'
11679 # FIXME: insert proper C++ library support
11683 # FIXME: insert proper C++ library support
11687 case $cc_basename in
11689 # FIXME: insert proper C++ library support
11693 # FIXME: insert proper C++ library support
11698 netbsd* | netbsdelf*-gnu)
11699 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11700 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11702 hardcode_libdir_flag_spec_CXX='-R$libdir'
11703 hardcode_direct_CXX=yes
11704 hardcode_shlibpath_var_CXX=no
11706 # Workaround some broken pre-1.5 toolchains
11707 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11710 # C++ shared libraries are fairly broken
11714 hardcode_direct_CXX=yes
11715 hardcode_shlibpath_var_CXX=no
11716 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11717 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11718 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11719 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11720 export_dynamic_flag_spec_CXX='${wl}-E'
11721 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11723 output_verbose_link_cmd='echo'
11726 case $cc_basename in
11728 # Kuck and Associates, Inc. (KAI) C++ Compiler
11730 # KCC will only create a shared library if the output file
11731 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11732 # to its proper name (with version) after linking.
11733 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'
11735 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11736 hardcode_libdir_separator_CXX=:
11738 # Archives containing C++ object files must be created using
11739 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11740 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11744 # Rational C++ 2.4.1
11745 # FIXME: insert proper C++ library support
11749 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11750 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'
11752 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11753 hardcode_libdir_separator_CXX=:
11755 # Commands to make compiler produce verbose output that lists
11756 # what "hidden" libraries, object files and flags are used when
11757 # linking a shared library.
11759 # There doesn't appear to be a way to prevent this compiler from
11760 # explicitly linking system object files so we need to strip them
11761 # from the output so that they don't get included in the library
11763 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'
11766 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11767 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11768 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'
11770 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11771 hardcode_libdir_separator_CXX=:
11773 # Commands to make compiler produce verbose output that lists
11774 # what "hidden" libraries, object files and flags are used when
11775 # linking a shared library.
11776 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11779 # FIXME: insert proper C++ library support
11786 case $cc_basename in
11788 # Kuck and Associates, Inc. (KAI) C++ Compiler
11790 # KCC will only create a shared library if the output file
11791 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11792 # to its proper name (with version) after linking.
11793 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'
11795 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11796 hardcode_libdir_separator_CXX=:
11798 # Archives containing C++ object files must be created using
11799 # the KAI C++ compiler.
11800 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11803 # Rational C++ 2.4.1
11804 # FIXME: insert proper C++ library support
11808 allow_undefined_flag_CXX=' -expect_unresolved \*'
11809 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'
11810 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11811 echo "-hidden">> $lib.exp~
11812 $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~
11815 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11816 hardcode_libdir_separator_CXX=:
11818 # Commands to make compiler produce verbose output that lists
11819 # what "hidden" libraries, object files and flags are used when
11820 # linking a shared library.
11822 # There doesn't appear to be a way to prevent this compiler from
11823 # explicitly linking system object files so we need to strip them
11824 # from the output so that they don't get included in the library
11826 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'
11829 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11830 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11831 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'
11833 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11834 hardcode_libdir_separator_CXX=:
11836 # Commands to make compiler produce verbose output that lists
11837 # what "hidden" libraries, object files and flags are used when
11838 # linking a shared library.
11839 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11842 # FIXME: insert proper C++ library support
11849 # FIXME: insert proper C++ library support
11853 case $cc_basename in
11856 # FIXME: insert proper C++ library support
11861 # FIXME: insert proper C++ library support
11865 # FIXME: insert proper C++ library support
11871 case $cc_basename in
11873 # Sun C++ 4.2, 5.x and Centerline C++
11874 archive_cmds_need_lc_CXX=yes
11875 no_undefined_flag_CXX=' -zdefs'
11876 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11877 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11878 $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'
11880 hardcode_libdir_flag_spec_CXX='-R$libdir'
11881 hardcode_shlibpath_var_CXX=no
11883 solaris2.[0-5] | solaris2.[0-5].*) ;;
11885 # The C++ compiler is used as linker so we must use $wl
11886 # flag to pass the commands to the underlying system
11887 # linker. We must also pass each convience library through
11888 # to the system linker between allextract/defaultextract.
11889 # The C++ compiler will combine linker options so we
11890 # cannot just pass the convience library names through
11892 # Supported since Solaris 2.6 (maybe 2.5.1?)
11893 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11896 link_all_deplibs_CXX=yes
11898 output_verbose_link_cmd='echo'
11900 # Archives containing C++ object files must be created using
11901 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11902 # necessary to make sure instantiated templates are included
11904 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11907 # Green Hills C++ Compiler
11908 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11910 # The C++ compiler must be used to create the archive.
11911 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11914 # GNU C++ compiler with Solaris linker
11915 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11916 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11917 if $CC --version | grep -v '^2\.7' > /dev/null; then
11918 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11919 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11920 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11922 # Commands to make compiler produce verbose output that lists
11923 # what "hidden" libraries, object files and flags are used when
11924 # linking a shared library.
11925 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11927 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11929 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11930 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11931 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11933 # Commands to make compiler produce verbose output that lists
11934 # what "hidden" libraries, object files and flags are used when
11935 # linking a shared library.
11936 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11939 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11944 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11945 no_undefined_flag_CXX='${wl}-z,text'
11946 archive_cmds_need_lc_CXX=no
11947 hardcode_shlibpath_var_CXX=no
11948 runpath_var='LD_RUN_PATH'
11950 case $cc_basename in
11952 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11953 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11956 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11957 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11961 sysv5* | sco3.2v5* | sco5v6*)
11962 # Note: We can NOT use -z defs as we might desire, because we do not
11963 # link with -lc, and that would cause any symbols used from libc to
11964 # always be unresolved, which means just about no library would
11965 # ever link correctly. If we're not using GNU ld we use -z text
11966 # though, which does catch some bad symbols but isn't as heavy-handed
11968 # For security reasons, it is highly recommended that you always
11969 # use absolute paths for naming shared libraries, and exclude the
11970 # DT_RUNPATH tag from executables and libraries. But doing so
11971 # requires that you compile everything twice, which is a pain.
11972 # So that behaviour is only enabled if SCOABSPATH is set to a
11973 # non-empty value in the environment. Most likely only useful for
11974 # creating official distributions of packages.
11975 # This is a hack until libtool officially supports absolute path
11976 # names for shared libraries.
11977 no_undefined_flag_CXX='${wl}-z,text'
11978 allow_undefined_flag_CXX='${wl}-z,nodefs'
11979 archive_cmds_need_lc_CXX=no
11980 hardcode_shlibpath_var_CXX=no
11981 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11982 hardcode_libdir_separator_CXX=':'
11983 link_all_deplibs_CXX=yes
11984 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11985 runpath_var='LD_RUN_PATH'
11987 case $cc_basename in
11989 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11990 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11993 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11994 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11999 case $cc_basename in
12001 # NonStop-UX NCC 3.20
12002 # FIXME: insert proper C++ library support
12006 # FIXME: insert proper C++ library support
12012 # FIXME: insert proper C++ library support
12016 # FIXME: insert proper C++ library support
12020 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12021 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12022 test "$ld_shlibs_CXX" = no && can_build_shared=no
12028 cat > conftest.$ac_ext <<EOF
12032 Foo (void) { a = 0; }
12038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12039 (eval $ac_compile) 2>&5
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); }; then
12043 # Parse the compiler output and extract the necessary
12044 # objects, libraries and library flags.
12046 # Sentinel used to keep track of whether or not we are before
12047 # the conftest object file.
12048 pre_test_object_deps_done=no
12050 # The `*' in the case matches for architectures that use `case' in
12051 # $output_verbose_cmd can trigger glob expansion during the loop
12052 # eval without this substitution.
12053 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12055 for p in `eval $output_verbose_link_cmd`; do
12059 # Some compilers place space between "-{L,R}" and the path.
12060 # Remove the space.
12061 if test $p = "-L" \
12062 || test $p = "-R"; then
12069 if test "$pre_test_object_deps_done" = no; then
12072 # Internal compiler library paths should come after those
12073 # provided the user. The postdeps already come after the
12074 # user supplied libs so there is no need to process them.
12075 if test -z "$compiler_lib_search_path_CXX"; then
12076 compiler_lib_search_path_CXX="${prev}${p}"
12078 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12081 # The "-l" case would never come before the object being
12082 # linked, so don't bother handling this case.
12085 if test -z "$postdeps_CXX"; then
12086 postdeps_CXX="${prev}${p}"
12088 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12094 # This assumes that the test object file only shows up
12095 # once in the compiler output.
12096 if test "$p" = "conftest.$objext"; then
12097 pre_test_object_deps_done=yes
12101 if test "$pre_test_object_deps_done" = no; then
12102 if test -z "$predep_objects_CXX"; then
12103 predep_objects_CXX="$p"
12105 predep_objects_CXX="$predep_objects_CXX $p"
12108 if test -z "$postdep_objects_CXX"; then
12109 postdep_objects_CXX="$p"
12111 postdep_objects_CXX="$postdep_objects_CXX $p"
12116 *) ;; # Ignore the rest.
12124 echo "libtool.m4: error: problem compiling CXX test program"
12127 $rm -f confest.$objext
12129 # PORTME: override above test on systems where it is broken
12132 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12133 # hack all around it, let's just trust "g++" to DTRT.
12134 predep_objects_CXX=
12135 postdep_objects_CXX=
12140 case $cc_basename in
12142 # Adding this requires a known-good setup of shared libraries for
12143 # Sun compiler versions before 5.6, else PIC objects from an old
12144 # archive will be linked into the output, leading to subtle bugs.
12145 postdeps_CXX='-lCstd -lCrun'
12152 case " $postdeps_CXX " in
12153 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12156 lt_prog_compiler_wl_CXX=
12157 lt_prog_compiler_pic_CXX=
12158 lt_prog_compiler_static_CXX=
12160 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12161 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12163 # C++ specific cases for pic, static, wl, etc.
12164 if test "$GXX" = yes; then
12165 lt_prog_compiler_wl_CXX='-Wl,'
12166 lt_prog_compiler_static_CXX='-static'
12170 # All AIX code is PIC.
12171 if test "$host_cpu" = ia64; then
12172 # AIX 5 now supports IA64 processor
12173 lt_prog_compiler_static_CXX='-Bstatic'
12177 # FIXME: we need at least 68020 code to build shared libraries, but
12178 # adding the `-m68020' flag to GCC prevents building anything better,
12180 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12182 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12183 # PIC is the default for these OSes.
12185 mingw* | os2* | pw32*)
12186 # This hack is so that the source file can tell whether it is being
12187 # built for inclusion in a dll (and should export symbols for example).
12188 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12190 darwin* | rhapsody*)
12191 # PIC is the default on this platform
12192 # Common symbols not allowed in MH_DYLIB files
12193 lt_prog_compiler_pic_CXX='-fno-common'
12196 # DJGPP does not support shared libraries at all
12197 lt_prog_compiler_pic_CXX=
12200 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12201 # Instead, we relocate shared libraries at runtime.
12204 if test -d /usr/nec; then
12205 lt_prog_compiler_pic_CXX=-Kconform_pic
12209 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12210 # not for PA HP-UX.
12215 lt_prog_compiler_pic_CXX='-fPIC'
12220 lt_prog_compiler_pic_CXX='-fPIC'
12226 # All AIX code is PIC.
12227 if test "$host_cpu" = ia64; then
12228 # AIX 5 now supports IA64 processor
12229 lt_prog_compiler_static_CXX='-Bstatic'
12231 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12235 case $cc_basename in
12237 # Green Hills C++ Compiler
12238 # _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"
12243 # PIC is the default on this platform
12244 # Common symbols not allowed in MH_DYLIB files
12245 case $cc_basename in
12247 lt_prog_compiler_pic_CXX='-qnocommon'
12248 lt_prog_compiler_wl_CXX='-Wl,'
12253 case $cc_basename in
12255 lt_prog_compiler_pic_CXX='-KPIC'
12258 # Green Hills C++ Compiler
12259 lt_prog_compiler_pic_CXX='-pic'
12265 freebsd* | dragonfly*)
12266 # FreeBSD uses GNU C++
12268 hpux9* | hpux10* | hpux11*)
12269 case $cc_basename in
12271 lt_prog_compiler_wl_CXX='-Wl,'
12272 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12273 if test "$host_cpu" != ia64; then
12274 lt_prog_compiler_pic_CXX='+Z'
12278 lt_prog_compiler_wl_CXX='-Wl,'
12279 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12285 lt_prog_compiler_pic_CXX='+Z'
12294 # This is c89, which is MS Visual C++ (no shared libs)
12295 # Anyone wants to do a port?
12297 irix5* | irix6* | nonstopux*)
12298 case $cc_basename in
12300 lt_prog_compiler_wl_CXX='-Wl,'
12301 lt_prog_compiler_static_CXX='-non_shared'
12302 # CC pic flag -KPIC is the default.
12308 linux* | k*bsd*-gnu)
12309 case $cc_basename in
12312 lt_prog_compiler_wl_CXX='--backend -Wl,'
12313 lt_prog_compiler_pic_CXX='-fPIC'
12317 lt_prog_compiler_wl_CXX='-Wl,'
12318 lt_prog_compiler_pic_CXX='-KPIC'
12319 lt_prog_compiler_static_CXX='-static'
12322 # Portland Group C++ compiler.
12323 lt_prog_compiler_wl_CXX='-Wl,'
12324 lt_prog_compiler_pic_CXX='-fpic'
12325 lt_prog_compiler_static_CXX='-Bstatic'
12329 # Make sure the PIC flag is empty. It appears that all Alpha
12330 # Linux and Compaq Tru64 Unix objects are PIC.
12331 lt_prog_compiler_pic_CXX=
12332 lt_prog_compiler_static_CXX='-non_shared'
12343 case $cc_basename in
12345 lt_prog_compiler_pic_CXX='-W c,exportall'
12351 netbsd* | netbsdelf*-gnu)
12353 osf3* | osf4* | osf5*)
12354 case $cc_basename in
12356 lt_prog_compiler_wl_CXX='--backend -Wl,'
12359 # Rational C++ 2.4.1
12360 lt_prog_compiler_pic_CXX='-pic'
12363 # Digital/Compaq C++
12364 lt_prog_compiler_wl_CXX='-Wl,'
12365 # Make sure the PIC flag is empty. It appears that all Alpha
12366 # Linux and Compaq Tru64 Unix objects are PIC.
12367 lt_prog_compiler_pic_CXX=
12368 lt_prog_compiler_static_CXX='-non_shared'
12377 case $cc_basename in
12379 # Sun C++ 4.2, 5.x and Centerline C++
12380 lt_prog_compiler_pic_CXX='-KPIC'
12381 lt_prog_compiler_static_CXX='-Bstatic'
12382 lt_prog_compiler_wl_CXX='-Qoption ld '
12385 # Green Hills C++ Compiler
12386 lt_prog_compiler_pic_CXX='-PIC'
12393 case $cc_basename in
12396 lt_prog_compiler_pic_CXX='-pic'
12397 lt_prog_compiler_static_CXX='-Bstatic'
12401 lt_prog_compiler_pic_CXX='-pic'
12408 case $cc_basename in
12410 # NonStop-UX NCC 3.20
12411 lt_prog_compiler_pic_CXX='-KPIC'
12417 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12418 case $cc_basename in
12420 lt_prog_compiler_wl_CXX='-Wl,'
12421 lt_prog_compiler_pic_CXX='-KPIC'
12422 lt_prog_compiler_static_CXX='-Bstatic'
12429 lt_prog_compiler_can_build_shared_CXX=no
12434 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12435 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12438 # Check to make sure the PIC flag actually works.
12440 if test -n "$lt_prog_compiler_pic_CXX"; then
12442 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12443 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12444 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12445 echo $ECHO_N "(cached) $ECHO_C" >&6
12447 lt_prog_compiler_pic_works_CXX=no
12448 ac_outfile=conftest.$ac_objext
12449 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12450 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12451 # Insert the option either (1) after the last *FLAGS variable, or
12452 # (2) before a word containing "conftest.", or (3) at the end.
12453 # Note that $ac_compile itself does not contain backslashes and begins
12454 # with a dollar sign (not a hyphen), so the echo should work correctly.
12455 # The option is referenced via a variable to avoid confusing sed.
12456 lt_compile=`echo "$ac_compile" | $SED \
12457 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12458 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12459 -e 's:$: $lt_compiler_flag:'`
12460 (eval echo "\"\$as_me:12460: $lt_compile\"" >&5)
12461 (eval "$lt_compile" 2>conftest.err)
12463 cat conftest.err >&5
12464 echo "$as_me:12464: \$? = $ac_status" >&5
12465 if (exit $ac_status) && test -s "$ac_outfile"; then
12466 # The compiler can only warn and ignore the option if not recognized
12467 # So say no if there are warnings other than the usual output.
12468 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12469 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12470 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12471 lt_prog_compiler_pic_works_CXX=yes
12477 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12478 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12480 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12481 case $lt_prog_compiler_pic_CXX in
12483 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12486 lt_prog_compiler_pic_CXX=
12487 lt_prog_compiler_can_build_shared_CXX=no
12492 # For platforms which do not support PIC, -DPIC is meaningless:
12494 lt_prog_compiler_pic_CXX=
12497 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12502 # Check to make sure the static flag actually works.
12504 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12505 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12506 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12507 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12508 echo $ECHO_N "(cached) $ECHO_C" >&6
12510 lt_prog_compiler_static_works_CXX=no
12511 save_LDFLAGS="$LDFLAGS"
12512 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12513 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12514 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12515 # The linker can only warn and ignore the option if not recognized
12516 # So say no if there are warnings
12517 if test -s conftest.err; then
12518 # Append any errors to the config.log.
12519 cat conftest.err 1>&5
12520 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12521 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12522 if diff conftest.exp conftest.er2 >/dev/null; then
12523 lt_prog_compiler_static_works_CXX=yes
12526 lt_prog_compiler_static_works_CXX=yes
12530 LDFLAGS="$save_LDFLAGS"
12533 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12534 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12536 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12539 lt_prog_compiler_static_CXX=
12543 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12544 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12545 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12546 echo $ECHO_N "(cached) $ECHO_C" >&6
12548 lt_cv_prog_compiler_c_o_CXX=no
12549 $rm -r conftest 2>/dev/null
12553 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12555 lt_compiler_flag="-o out/conftest2.$ac_objext"
12556 # Insert the option either (1) after the last *FLAGS variable, or
12557 # (2) before a word containing "conftest.", or (3) at the end.
12558 # Note that $ac_compile itself does not contain backslashes and begins
12559 # with a dollar sign (not a hyphen), so the echo should work correctly.
12560 lt_compile=`echo "$ac_compile" | $SED \
12561 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12562 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12563 -e 's:$: $lt_compiler_flag:'`
12564 (eval echo "\"\$as_me:12564: $lt_compile\"" >&5)
12565 (eval "$lt_compile" 2>out/conftest.err)
12567 cat out/conftest.err >&5
12568 echo "$as_me:12568: \$? = $ac_status" >&5
12569 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12571 # The compiler can only warn and ignore the option if not recognized
12572 # So say no if there are warnings
12573 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12574 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12575 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12576 lt_cv_prog_compiler_c_o_CXX=yes
12581 # SGI C++ compiler will create directory out/ii_files/ for
12582 # template instantiation
12583 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12584 $rm out/* && rmdir out
12590 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12591 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12594 hard_links="nottested"
12595 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12596 # do not overwrite the value of need_locks provided by the user
12597 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12598 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12601 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12603 ln conftest.a conftest.b 2>&5 || hard_links=no
12604 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12605 { echo "$as_me:$LINENO: result: $hard_links" >&5
12606 echo "${ECHO_T}$hard_links" >&6; }
12607 if test "$hard_links" = no; then
12608 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12609 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12616 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12617 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12619 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12622 # If we're using GNU nm, then we don't want the "-C" option.
12623 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12624 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12625 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'
12627 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'
12631 export_symbols_cmds_CXX="$ltdll_cmds"
12634 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'
12636 linux* | k*bsd*-gnu)
12637 link_all_deplibs_CXX=no
12640 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12644 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12645 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12646 test "$ld_shlibs_CXX" = no && can_build_shared=no
12649 # Do we need to explicitly link libc?
12651 case "x$archive_cmds_need_lc_CXX" in
12653 # Assume -lc should be added
12654 archive_cmds_need_lc_CXX=yes
12656 if test "$enable_shared" = yes && test "$GCC" = yes; then
12657 case $archive_cmds_CXX in
12659 # FIXME: we may have to deal with multi-command sequences.
12662 # Test whether the compiler implicitly links with -lc since on some
12663 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12664 # to ld, don't add -lc before -lgcc.
12665 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12666 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12668 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12671 (eval $ac_compile) 2>&5
12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); } 2>conftest.err; then
12677 libobjs=conftest.$ac_objext
12679 wl=$lt_prog_compiler_wl_CXX
12680 pic_flag=$lt_prog_compiler_pic_CXX
12686 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12687 allow_undefined_flag_CXX=
12688 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12689 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12692 (exit $ac_status); }
12694 archive_cmds_need_lc_CXX=no
12696 archive_cmds_need_lc_CXX=yes
12698 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12700 cat conftest.err 1>&5
12703 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12704 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12711 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12712 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12713 library_names_spec=
12714 libname_spec='lib$name'
12718 postuninstall_cmds=
12722 shlibpath_overrides_runpath=unknown
12724 dynamic_linker="$host_os ld.so"
12725 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12726 if test "$GCC" = yes; then
12727 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12728 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12729 # if the path contains ";" then we assume it to be the separator
12730 # otherwise default to the standard path separator (i.e. ":") - it is
12731 # assumed that no part of a normal pathname contains ";" but that should
12732 # okay in the real world where ";" in dirpaths is itself problematic.
12733 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12735 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12738 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12740 need_lib_prefix=unknown
12741 hardcode_into_libs=no
12743 # when you set need_version to no, make sure it does not cause -set_version
12744 # flags to be left without arguments
12745 need_version=unknown
12750 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12751 shlibpath_var=LIBPATH
12753 # AIX 3 has no versioning support, so we append a major version to the name.
12754 soname_spec='${libname}${release}${shared_ext}$major'
12761 hardcode_into_libs=yes
12762 if test "$host_cpu" = ia64; then
12763 # AIX 5 supports IA64
12764 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12765 shlibpath_var=LD_LIBRARY_PATH
12767 # With GCC up to 2.95.x, collect2 would create an import file
12768 # for dependence libraries. The import file would start with
12769 # the line `#! .'. This would cause the generated library to
12770 # depend on `.', always an invalid library. This was fixed in
12771 # development snapshots of GCC prior to 3.0.
12773 aix4 | aix4.[01] | aix4.[01].*)
12774 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12776 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12779 can_build_shared=no
12783 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12784 # soname into executable. Probably we can add versioning support to
12785 # collect2, so additional links can be useful in future.
12786 if test "$aix_use_runtimelinking" = yes; then
12787 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12788 # instead of lib<name>.a to let people know that these are not
12789 # typical AIX shared libraries.
12790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12792 # We preserve .a as extension for shared libraries through AIX4.2
12793 # and later when we are not doing run time linking.
12794 library_names_spec='${libname}${release}.a $libname.a'
12795 soname_spec='${libname}${release}${shared_ext}$major'
12797 shlibpath_var=LIBPATH
12802 library_names_spec='$libname.ixlibrary $libname.a'
12803 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12804 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'
12808 library_names_spec='${libname}${shared_ext}'
12809 dynamic_linker="$host_os ld.so"
12810 shlibpath_var=LIBRARY_PATH
12816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12817 soname_spec='${libname}${release}${shared_ext}$major'
12818 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12819 shlibpath_var=LD_LIBRARY_PATH
12820 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12821 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12822 # the default ld.so.conf also contains /usr/contrib/lib and
12823 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12824 # libtool to hard-code these into programs
12827 cygwin* | mingw* | pw32*)
12828 version_type=windows
12833 case $GCC,$host_os in
12834 yes,cygwin* | yes,mingw* | yes,pw32*)
12835 library_names_spec='$libname.dll.a'
12836 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12837 postinstall_cmds='base_file=`basename \${file}`~
12838 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12839 dldir=$destdir/`dirname \$dlpath`~
12840 test -d \$dldir || mkdir -p \$dldir~
12841 $install_prog $dir/$dlname \$dldir/$dlname~
12842 chmod a+x \$dldir/$dlname'
12843 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12844 dlpath=$dir/\$dldll~
12846 shlibpath_overrides_runpath=yes
12850 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12851 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12852 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12855 # MinGW DLLs use traditional 'lib' prefix
12856 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12857 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12858 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12859 # It is most probably a Windows format PATH printed by
12860 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12861 # path with ; separators, and with drive letters. We can handle the
12862 # drive letters (cygwin fileutils understands them), so leave them,
12863 # especially as we might pass files found there to a mingw objdump,
12864 # which wouldn't understand a cygwinified path. Ahh.
12865 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12867 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12871 # pw32 DLLs use 'pw' prefix rather than 'lib'
12872 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12878 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12881 dynamic_linker='Win32 ld.exe'
12882 # FIXME: first we should search . and the directory the executable is in
12886 darwin* | rhapsody*)
12887 dynamic_linker="$host_os dyld"
12888 version_type=darwin
12891 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12892 soname_spec='${libname}${release}${major}$shared_ext'
12893 shlibpath_overrides_runpath=yes
12894 shlibpath_var=DYLD_LIBRARY_PATH
12895 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12896 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12897 if test "$GCC" = yes; then
12898 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12900 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12902 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12910 soname_spec='${libname}${release}${shared_ext}$major'
12911 shlibpath_var=LD_LIBRARY_PATH
12918 freebsd* | dragonfly*)
12919 # DragonFly does not have aout. When/if they implement a new
12920 # versioning mechanism, adjust this.
12921 if test -x /usr/bin/objformat; then
12922 objformat=`/usr/bin/objformat`
12925 freebsd[123]*) objformat=aout ;;
12926 *) objformat=elf ;;
12929 version_type=freebsd-$objformat
12930 case $version_type in
12932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12937 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12941 shlibpath_var=LD_LIBRARY_PATH
12944 shlibpath_overrides_runpath=yes
12946 freebsd3.[01]* | freebsdelf3.[01]*)
12947 shlibpath_overrides_runpath=yes
12948 hardcode_into_libs=yes
12950 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12951 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12952 shlibpath_overrides_runpath=no
12953 hardcode_into_libs=yes
12955 freebsd*) # from 4.6 on
12956 shlibpath_overrides_runpath=yes
12957 hardcode_into_libs=yes
12966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12967 soname_spec='${libname}${release}${shared_ext}$major'
12968 shlibpath_var=LD_LIBRARY_PATH
12969 hardcode_into_libs=yes
12972 hpux9* | hpux10* | hpux11*)
12973 # Give a soname corresponding to the major version so that dld.sl refuses to
12974 # link against other versions.
12981 hardcode_into_libs=yes
12982 dynamic_linker="$host_os dld.so"
12983 shlibpath_var=LD_LIBRARY_PATH
12984 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12986 soname_spec='${libname}${release}${shared_ext}$major'
12987 if test "X$HPUX_IA64_MODE" = X32; then
12988 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12990 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12992 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12996 hardcode_into_libs=yes
12997 dynamic_linker="$host_os dld.sl"
12998 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12999 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13001 soname_spec='${libname}${release}${shared_ext}$major'
13002 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13003 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13007 dynamic_linker="$host_os dld.sl"
13008 shlibpath_var=SHLIB_PATH
13009 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13011 soname_spec='${libname}${release}${shared_ext}$major'
13014 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13015 postinstall_cmds='chmod 555 $lib'
13022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13023 soname_spec='${libname}${release}${shared_ext}$major'
13024 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13025 shlibpath_var=LD_LIBRARY_PATH
13026 shlibpath_overrides_runpath=no
13027 hardcode_into_libs=yes
13030 irix5* | irix6* | nonstopux*)
13032 nonstopux*) version_type=nonstopux ;;
13034 if test "$lt_cv_prog_gnu_ld" = yes; then
13042 soname_spec='${libname}${release}${shared_ext}$major'
13043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13045 irix5* | nonstopux*)
13046 libsuff= shlibsuff=
13049 case $LD in # libtool.m4 will add one of these switches to LD
13050 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13051 libsuff= shlibsuff= libmagic=32-bit;;
13052 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13053 libsuff=32 shlibsuff=N32 libmagic=N32;;
13054 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13055 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13056 *) libsuff= shlibsuff= libmagic=never-match;;
13060 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13061 shlibpath_overrides_runpath=no
13062 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13063 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13064 hardcode_into_libs=yes
13067 # No shared lib support for Linux oldld, aout, or coff.
13068 linux*oldld* | linux*aout* | linux*coff*)
13072 # This must be Linux ELF.
13073 linux* | k*bsd*-gnu)
13077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13078 soname_spec='${libname}${release}${shared_ext}$major'
13079 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13080 shlibpath_var=LD_LIBRARY_PATH
13081 shlibpath_overrides_runpath=no
13082 # This implies no fast_install, which is unacceptable.
13083 # Some rework will be needed to allow for fast_install
13084 # before this can be enabled.
13085 hardcode_into_libs=yes
13087 # Append ld.so.conf contents to the search path
13088 if test -f /etc/ld.so.conf; then
13089 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13090 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13093 # We used to test for /lib/ld.so.1 and disable shared libraries on
13094 # powerpc, because MkLinux only supported shared libraries with the
13095 # GNU dynamic linker. Since this was broken with cross compilers,
13096 # most powerpc-linux boxes support dynamic linking these days and
13097 # people can always --disable-shared, the test was removed, and we
13098 # assume the GNU/Linux dynamic linker is in use.
13099 dynamic_linker='GNU/Linux ld.so'
13106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13107 soname_spec='${libname}${release}${shared_ext}$major'
13108 shlibpath_var=LD_LIBRARY_PATH
13109 shlibpath_overrides_runpath=no
13110 hardcode_into_libs=yes
13111 dynamic_linker='NetBSD ld.elf_so'
13118 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13120 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13121 dynamic_linker='NetBSD (a.out) ld.so'
13123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13124 soname_spec='${libname}${release}${shared_ext}$major'
13125 dynamic_linker='NetBSD ld.elf_so'
13127 shlibpath_var=LD_LIBRARY_PATH
13128 shlibpath_overrides_runpath=yes
13129 hardcode_into_libs=yes
13134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13135 shlibpath_var=LD_LIBRARY_PATH
13136 shlibpath_overrides_runpath=yes
13143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13144 soname_spec='${libname}${release}${shared_ext}$major'
13145 shlibpath_var=LD_LIBRARY_PATH
13146 shlibpath_overrides_runpath=yes
13151 sys_lib_dlsearch_path_spec="/usr/lib"
13153 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13155 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13156 *) need_version=no ;;
13158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13159 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13160 shlibpath_var=LD_LIBRARY_PATH
13161 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13163 openbsd2.[89] | openbsd2.[89].*)
13164 shlibpath_overrides_runpath=no
13167 shlibpath_overrides_runpath=yes
13171 shlibpath_overrides_runpath=yes
13176 libname_spec='$name'
13179 library_names_spec='$libname${shared_ext} $libname.a'
13180 dynamic_linker='OS/2 ld.exe'
13181 shlibpath_var=LIBPATH
13184 osf3* | osf4* | osf5*)
13188 soname_spec='${libname}${release}${shared_ext}$major'
13189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13190 shlibpath_var=LD_LIBRARY_PATH
13191 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13192 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13200 soname_spec='${libname}${release}${shared_ext}$major'
13201 shlibpath_var=LD_LIBRARY_PATH
13202 shlibpath_overrides_runpath=yes
13203 hardcode_into_libs=yes
13204 # ldd complains unless libraries are executable
13205 postinstall_cmds='chmod +x $lib'
13210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13211 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13212 shlibpath_var=LD_LIBRARY_PATH
13213 shlibpath_overrides_runpath=yes
13214 if test "$with_gnu_ld" = yes; then
13222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13223 soname_spec='${libname}${release}${shared_ext}$major'
13224 shlibpath_var=LD_LIBRARY_PATH
13225 case $host_vendor in
13227 shlibpath_overrides_runpath=no
13229 export_dynamic_flag_spec='${wl}-Blargedynsym'
13230 runpath_var=LD_RUN_PATH
13238 shlibpath_overrides_runpath=no
13239 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13245 if test -d /usr/nec ;then
13247 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13248 soname_spec='$libname${shared_ext}.$major'
13249 shlibpath_var=LD_LIBRARY_PATH
13253 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13254 version_type=freebsd-elf
13257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13258 soname_spec='${libname}${release}${shared_ext}$major'
13259 shlibpath_var=LD_LIBRARY_PATH
13260 hardcode_into_libs=yes
13261 if test "$with_gnu_ld" = yes; then
13262 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13263 shlibpath_overrides_runpath=no
13265 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13266 shlibpath_overrides_runpath=yes
13269 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13273 sys_lib_dlsearch_path_spec='/usr/lib'
13278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13279 soname_spec='${libname}${release}${shared_ext}$major'
13280 shlibpath_var=LD_LIBRARY_PATH
13287 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13288 echo "${ECHO_T}$dynamic_linker" >&6; }
13289 test "$dynamic_linker" = no && can_build_shared=no
13291 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13292 if test "$GCC" = yes; then
13293 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13296 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13297 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13298 hardcode_action_CXX=
13299 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13300 test -n "$runpath_var_CXX" || \
13301 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13303 # We can hardcode non-existant directories.
13304 if test "$hardcode_direct_CXX" != no &&
13305 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13306 # have to relink, otherwise we might link with an installed library
13307 # when we should be linking with a yet-to-be-installed one
13308 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13309 test "$hardcode_minus_L_CXX" != no; then
13310 # Linking always hardcodes the temporary library directory.
13311 hardcode_action_CXX=relink
13313 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13314 hardcode_action_CXX=immediate
13317 # We cannot hardcode anything, or else we can only hardcode existing
13319 hardcode_action_CXX=unsupported
13321 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13322 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13324 if test "$hardcode_action_CXX" = relink; then
13325 # Fast installation is not supported
13326 enable_fast_install=no
13327 elif test "$shlibpath_overrides_runpath" = yes ||
13328 test "$enable_shared" = no; then
13329 # Fast installation is not necessary
13330 enable_fast_install=needless
13334 # The else clause should only fire when bootstrapping the
13335 # libtool distribution, otherwise you forgot to ship ltmain.sh
13336 # with your package, and you will get complaints that there are
13337 # no rules to generate ltmain.sh.
13338 if test -f "$ltmain"; then
13339 # See if we are running on zsh, and set the options which allow our commands through
13340 # without removal of \ escapes.
13341 if test -n "${ZSH_VERSION+set}" ; then
13342 setopt NO_GLOB_SUBST
13344 # Now quote all the things that may contain metacharacters while being
13345 # careful not to overquote the AC_SUBSTed values. We take copies of the
13346 # variables and quote the copies for generation of the libtool script.
13347 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13349 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13350 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13351 deplibs_check_method reload_flag reload_cmds need_locks \
13352 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13353 lt_cv_sys_global_symbol_to_c_name_address \
13354 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13355 old_postinstall_cmds old_postuninstall_cmds \
13359 lt_prog_compiler_wl_CXX \
13360 lt_prog_compiler_pic_CXX \
13361 lt_prog_compiler_static_CXX \
13362 lt_prog_compiler_no_builtin_flag_CXX \
13363 export_dynamic_flag_spec_CXX \
13364 thread_safe_flag_spec_CXX \
13365 whole_archive_flag_spec_CXX \
13366 enable_shared_with_static_runtimes_CXX \
13367 old_archive_cmds_CXX \
13368 old_archive_from_new_cmds_CXX \
13369 predep_objects_CXX \
13370 postdep_objects_CXX \
13373 compiler_lib_search_path_CXX \
13375 archive_expsym_cmds_CXX \
13376 postinstall_cmds_CXX \
13377 postuninstall_cmds_CXX \
13378 old_archive_from_expsyms_cmds_CXX \
13379 allow_undefined_flag_CXX \
13380 no_undefined_flag_CXX \
13381 export_symbols_cmds_CXX \
13382 hardcode_libdir_flag_spec_CXX \
13383 hardcode_libdir_flag_spec_ld_CXX \
13384 hardcode_libdir_separator_CXX \
13385 hardcode_automatic_CXX \
13387 module_expsym_cmds_CXX \
13388 lt_cv_prog_compiler_c_o_CXX \
13389 exclude_expsyms_CXX \
13390 include_expsyms_CXX; do
13393 old_archive_cmds_CXX | \
13394 old_archive_from_new_cmds_CXX | \
13395 archive_cmds_CXX | \
13396 archive_expsym_cmds_CXX | \
13397 module_cmds_CXX | \
13398 module_expsym_cmds_CXX | \
13399 old_archive_from_expsyms_cmds_CXX | \
13400 export_symbols_cmds_CXX | \
13401 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13402 postinstall_cmds | postuninstall_cmds | \
13403 old_postinstall_cmds | old_postuninstall_cmds | \
13404 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13405 # Double-quote double-evaled strings.
13406 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13409 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13415 *'\$0 --fallback-echo"')
13416 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13422 cat <<__EOF__ >> "$cfgfile"
13423 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13425 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13427 # Shell to use when invoking shell scripts.
13430 # Whether or not to build shared libraries.
13431 build_libtool_libs=$enable_shared
13433 # Whether or not to build static libraries.
13434 build_old_libs=$enable_static
13436 # Whether or not to add -lc for building shared libraries.
13437 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13439 # Whether or not to disallow shared libs when runtime libs are static
13440 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13442 # Whether or not to optimize for fast installation.
13443 fast_install=$enable_fast_install
13446 host_alias=$host_alias
13450 # The build system.
13451 build_alias=$build_alias
13455 # An echo program that does not interpret backslashes.
13460 AR_FLAGS=$lt_AR_FLAGS
13465 # LTCC compiler flags.
13466 LTCFLAGS=$lt_LTCFLAGS
13468 # A language-specific compiler.
13469 CC=$lt_compiler_CXX
13471 # Is the compiler the GNU C compiler?
13477 # The linker used to build libraries.
13480 # Whether we need hard or soft links.
13483 # A BSD-compatible nm program.
13486 # A symbol stripping program
13489 # Used to examine libraries when file_magic_cmd begins "file"
13490 MAGIC_CMD=$MAGIC_CMD
13492 # Used on cygwin: DLL creation program.
13495 # Used on cygwin: object dumper.
13498 # Used on cygwin: assembler.
13501 # The name of the directory that contains temporary libtool files.
13504 # How to create reloadable object files.
13505 reload_flag=$lt_reload_flag
13506 reload_cmds=$lt_reload_cmds
13508 # How to pass a linker flag through the compiler.
13509 wl=$lt_lt_prog_compiler_wl_CXX
13511 # Object file suffix (normally "o").
13512 objext="$ac_objext"
13514 # Old archive suffix (normally "a").
13517 # Shared library suffix (normally ".so").
13518 shrext_cmds='$shrext_cmds'
13520 # Executable file suffix (normally "").
13523 # Additional compiler flags for building library objects.
13524 pic_flag=$lt_lt_prog_compiler_pic_CXX
13527 # What is the maximum length of a command?
13528 max_cmd_len=$lt_cv_sys_max_cmd_len
13530 # Does compiler simultaneously support -c and -o options?
13531 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13533 # Must we lock files when doing compilation?
13534 need_locks=$lt_need_locks
13536 # Do we need the lib prefix for modules?
13537 need_lib_prefix=$need_lib_prefix
13539 # Do we need a version for libraries?
13540 need_version=$need_version
13542 # Whether dlopen is supported.
13543 dlopen_support=$enable_dlopen
13545 # Whether dlopen of programs is supported.
13546 dlopen_self=$enable_dlopen_self
13548 # Whether dlopen of statically linked programs is supported.
13549 dlopen_self_static=$enable_dlopen_self_static
13551 # Compiler flag to prevent dynamic linking.
13552 link_static_flag=$lt_lt_prog_compiler_static_CXX
13554 # Compiler flag to turn off builtin functions.
13555 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13557 # Compiler flag to allow reflexive dlopens.
13558 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13560 # Compiler flag to generate shared objects directly from archives.
13561 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13563 # Compiler flag to generate thread-safe objects.
13564 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13566 # Library versioning type.
13567 version_type=$version_type
13569 # Format of library name prefix.
13570 libname_spec=$lt_libname_spec
13572 # List of archive names. First name is the real one, the rest are links.
13573 # The last name is the one that the linker finds with -lNAME.
13574 library_names_spec=$lt_library_names_spec
13576 # The coded name of the library, if different from the real name.
13577 soname_spec=$lt_soname_spec
13579 # Commands used to build and install an old-style archive.
13581 old_archive_cmds=$lt_old_archive_cmds_CXX
13582 old_postinstall_cmds=$lt_old_postinstall_cmds
13583 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13585 # Create an old-style archive from a shared archive.
13586 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13588 # Create a temporary old-style archive to link instead of a shared archive.
13589 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13591 # Commands used to build and install a shared archive.
13592 archive_cmds=$lt_archive_cmds_CXX
13593 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13594 postinstall_cmds=$lt_postinstall_cmds
13595 postuninstall_cmds=$lt_postuninstall_cmds
13597 # Commands used to build a loadable module (assumed same as above if empty)
13598 module_cmds=$lt_module_cmds_CXX
13599 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13601 # Commands to strip libraries.
13602 old_striplib=$lt_old_striplib
13603 striplib=$lt_striplib
13605 # Dependencies to place before the objects being linked to create a
13607 predep_objects=$lt_predep_objects_CXX
13609 # Dependencies to place after the objects being linked to create a
13611 postdep_objects=$lt_postdep_objects_CXX
13613 # Dependencies to place before the objects being linked to create a
13615 predeps=$lt_predeps_CXX
13617 # Dependencies to place after the objects being linked to create a
13619 postdeps=$lt_postdeps_CXX
13621 # The library search path used internally by the compiler when linking
13622 # a shared library.
13623 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13625 # Method to check whether dependent libraries are shared objects.
13626 deplibs_check_method=$lt_deplibs_check_method
13628 # Command to use when deplibs_check_method == file_magic.
13629 file_magic_cmd=$lt_file_magic_cmd
13631 # Flag that allows shared libraries with undefined symbols to be built.
13632 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13634 # Flag that forces no undefined symbols.
13635 no_undefined_flag=$lt_no_undefined_flag_CXX
13637 # Commands used to finish a libtool library installation in a directory.
13638 finish_cmds=$lt_finish_cmds
13640 # Same as above, but a single script fragment to be evaled but not shown.
13641 finish_eval=$lt_finish_eval
13643 # Take the output of nm and produce a listing of raw symbols and C names.
13644 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13646 # Transform the output of nm in a proper C declaration
13647 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13649 # Transform the output of nm in a C name address pair
13650 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13652 # This is the shared library runtime path variable.
13653 runpath_var=$runpath_var
13655 # This is the shared library path variable.
13656 shlibpath_var=$shlibpath_var
13658 # Is shlibpath searched before the hard-coded library search path?
13659 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13661 # How to hardcode a shared library path into an executable.
13662 hardcode_action=$hardcode_action_CXX
13664 # Whether we should hardcode library paths into libraries.
13665 hardcode_into_libs=$hardcode_into_libs
13667 # Flag to hardcode \$libdir into a binary during linking.
13668 # This must work even if \$libdir does not exist.
13669 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13671 # If ld is used when linking, flag to hardcode \$libdir into
13672 # a binary during linking. This must work even if \$libdir does
13674 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13676 # Whether we need a single -rpath flag with a separated argument.
13677 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13679 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13680 # resulting binary.
13681 hardcode_direct=$hardcode_direct_CXX
13683 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13684 # resulting binary.
13685 hardcode_minus_L=$hardcode_minus_L_CXX
13687 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13688 # the resulting binary.
13689 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13691 # Set to yes if building a shared library automatically hardcodes DIR into the library
13692 # and all subsequent libraries and executables linked against it.
13693 hardcode_automatic=$hardcode_automatic_CXX
13695 # Variables whose values should be saved in libtool wrapper scripts and
13696 # restored at relink time.
13697 variables_saved_for_relink="$variables_saved_for_relink"
13699 # Whether libtool must link a program against all its dependency libraries.
13700 link_all_deplibs=$link_all_deplibs_CXX
13702 # Compile-time system search path for libraries
13703 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13705 # Run-time system search path for libraries
13706 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13708 # Fix the shell variable \$srcfile for the compiler.
13709 fix_srcfile_path="$fix_srcfile_path_CXX"
13711 # Set to yes if exported symbols are required.
13712 always_export_symbols=$always_export_symbols_CXX
13714 # The commands to list exported symbols.
13715 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13717 # The commands to extract the exported symbol list from a shared archive.
13718 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13720 # Symbols that should not be listed in the preloaded symbols.
13721 exclude_expsyms=$lt_exclude_expsyms_CXX
13723 # Symbols that must always be exported.
13724 include_expsyms=$lt_include_expsyms_CXX
13726 # ### END LIBTOOL TAG CONFIG: $tagname
13732 # If there is no Makefile yet, we rely on a make rule to execute
13733 # `config.status --recheck' to rerun these tests and create the
13734 # libtool script then.
13735 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13736 if test -f "$ltmain_in"; then
13737 test -f Makefile && make "$ltmain"
13743 ac_cpp='$CPP $CPPFLAGS'
13744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13752 with_gnu_ldcxx=$with_gnu_ld
13753 with_gnu_ld=$lt_save_with_gnu_ld
13754 lt_cv_path_LDCXX=$lt_cv_path_LD
13755 lt_cv_path_LD=$lt_save_path_LD
13756 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13757 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13765 if test -n "$F77" && test "X$F77" != "Xno"; then
13768 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13769 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13770 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13773 archive_cmds_need_lc_F77=no
13774 allow_undefined_flag_F77=
13775 always_export_symbols_F77=no
13776 archive_expsym_cmds_F77=
13777 export_dynamic_flag_spec_F77=
13778 hardcode_direct_F77=no
13779 hardcode_libdir_flag_spec_F77=
13780 hardcode_libdir_flag_spec_ld_F77=
13781 hardcode_libdir_separator_F77=
13782 hardcode_minus_L_F77=no
13783 hardcode_automatic_F77=no
13785 module_expsym_cmds_F77=
13786 link_all_deplibs_F77=unknown
13787 old_archive_cmds_F77=$old_archive_cmds
13788 no_undefined_flag_F77=
13789 whole_archive_flag_spec_F77=
13790 enable_shared_with_static_runtimes_F77=no
13792 # Source file extension for f77 test sources.
13795 # Object file extension for compiled f77 test sources.
13799 # Code to be used in simple compile tests
13800 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13802 # Code to be used in simple link tests
13803 lt_simple_link_test_code=" program t\n end\n"
13805 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13807 # If no C compiler was specified, use CC.
13810 # If no C compiler flags were specified, use CFLAGS.
13811 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13813 # Allow CC to be a program name with arguments.
13817 # save warnings/boilerplate of simple test code
13818 ac_outfile=conftest.$ac_objext
13819 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13820 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13821 _lt_compiler_boilerplate=`cat conftest.err`
13824 ac_outfile=conftest.$ac_objext
13825 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13826 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13827 _lt_linker_boilerplate=`cat conftest.err`
13831 # Allow CC to be a program name with arguments.
13836 for cc_temp in $compiler""; do
13838 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13839 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13844 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13847 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13848 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13849 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13850 echo "${ECHO_T}$can_build_shared" >&6; }
13852 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13853 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13854 test "$can_build_shared" = "no" && enable_shared=no
13856 # On AIX, shared libraries and static libraries use the same namespace, and
13857 # are all built from PIC.
13860 test "$enable_shared" = yes && enable_static=no
13861 if test -n "$RANLIB"; then
13862 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13863 postinstall_cmds='$RANLIB $lib'
13867 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13868 test "$enable_shared" = yes && enable_static=no
13872 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13873 echo "${ECHO_T}$enable_shared" >&6; }
13875 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13876 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13877 # Make sure either enable_shared or enable_static is yes.
13878 test "$enable_shared" = yes || enable_static=yes
13879 { echo "$as_me:$LINENO: result: $enable_static" >&5
13880 echo "${ECHO_T}$enable_static" >&6; }
13885 lt_prog_compiler_wl_F77=
13886 lt_prog_compiler_pic_F77=
13887 lt_prog_compiler_static_F77=
13889 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13890 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13892 if test "$GCC" = yes; then
13893 lt_prog_compiler_wl_F77='-Wl,'
13894 lt_prog_compiler_static_F77='-static'
13898 # All AIX code is PIC.
13899 if test "$host_cpu" = ia64; then
13900 # AIX 5 now supports IA64 processor
13901 lt_prog_compiler_static_F77='-Bstatic'
13906 # FIXME: we need at least 68020 code to build shared libraries, but
13907 # adding the `-m68020' flag to GCC prevents building anything better,
13909 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13912 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13913 # PIC is the default for these OSes.
13916 mingw* | pw32* | os2*)
13917 # This hack is so that the source file can tell whether it is being
13918 # built for inclusion in a dll (and should export symbols for example).
13919 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13922 darwin* | rhapsody*)
13923 # PIC is the default on this platform
13924 # Common symbols not allowed in MH_DYLIB files
13925 lt_prog_compiler_pic_F77='-fno-common'
13929 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13930 # Instead, we relocate shared libraries at runtime.
13934 # Just because we use GCC doesn't mean we suddenly get shared libraries
13935 # on systems that don't support them.
13936 lt_prog_compiler_can_build_shared_F77=no
13941 if test -d /usr/nec; then
13942 lt_prog_compiler_pic_F77=-Kconform_pic
13947 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13948 # not for PA HP-UX.
13954 lt_prog_compiler_pic_F77='-fPIC'
13960 lt_prog_compiler_pic_F77='-fPIC'
13964 # PORTME Check for flag to pass linker flags through the system compiler.
13967 lt_prog_compiler_wl_F77='-Wl,'
13968 if test "$host_cpu" = ia64; then
13969 # AIX 5 now supports IA64 processor
13970 lt_prog_compiler_static_F77='-Bstatic'
13972 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13976 # PIC is the default on this platform
13977 # Common symbols not allowed in MH_DYLIB files
13978 case $cc_basename in
13980 lt_prog_compiler_pic_F77='-qnocommon'
13981 lt_prog_compiler_wl_F77='-Wl,'
13986 mingw* | pw32* | os2*)
13987 # This hack is so that the source file can tell whether it is being
13988 # built for inclusion in a dll (and should export symbols for example).
13989 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13992 hpux9* | hpux10* | hpux11*)
13993 lt_prog_compiler_wl_F77='-Wl,'
13994 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13995 # not for PA HP-UX.
14001 lt_prog_compiler_pic_F77='+Z'
14004 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14005 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14008 irix5* | irix6* | nonstopux*)
14009 lt_prog_compiler_wl_F77='-Wl,'
14010 # PIC (with -KPIC) is the default.
14011 lt_prog_compiler_static_F77='-non_shared'
14015 lt_prog_compiler_pic_F77='-KPIC'
14016 lt_prog_compiler_static_F77='-Bstatic'
14019 linux* | k*bsd*-gnu)
14020 case $cc_basename in
14022 lt_prog_compiler_wl_F77='-Wl,'
14023 lt_prog_compiler_pic_F77='-KPIC'
14024 lt_prog_compiler_static_F77='-static'
14026 pgcc* | pgf77* | pgf90* | pgf95*)
14027 # Portland Group compilers (*not* the Pentium gcc compiler,
14028 # which looks to be a dead project)
14029 lt_prog_compiler_wl_F77='-Wl,'
14030 lt_prog_compiler_pic_F77='-fpic'
14031 lt_prog_compiler_static_F77='-Bstatic'
14034 lt_prog_compiler_wl_F77='-Wl,'
14035 # All Alpha code is PIC.
14036 lt_prog_compiler_static_F77='-non_shared'
14041 osf3* | osf4* | osf5*)
14042 lt_prog_compiler_wl_F77='-Wl,'
14043 # All OSF/1 code is PIC.
14044 lt_prog_compiler_static_F77='-non_shared'
14048 lt_prog_compiler_pic_F77='-KPIC'
14049 lt_prog_compiler_static_F77='-Bstatic'
14050 case $cc_basename in
14051 f77* | f90* | f95*)
14052 lt_prog_compiler_wl_F77='-Qoption ld ';;
14054 lt_prog_compiler_wl_F77='-Wl,';;
14059 lt_prog_compiler_wl_F77='-Qoption ld '
14060 lt_prog_compiler_pic_F77='-PIC'
14061 lt_prog_compiler_static_F77='-Bstatic'
14064 sysv4 | sysv4.2uw2* | sysv4.3*)
14065 lt_prog_compiler_wl_F77='-Wl,'
14066 lt_prog_compiler_pic_F77='-KPIC'
14067 lt_prog_compiler_static_F77='-Bstatic'
14071 if test -d /usr/nec ;then
14072 lt_prog_compiler_pic_F77='-Kconform_pic'
14073 lt_prog_compiler_static_F77='-Bstatic'
14077 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14078 lt_prog_compiler_wl_F77='-Wl,'
14079 lt_prog_compiler_pic_F77='-KPIC'
14080 lt_prog_compiler_static_F77='-Bstatic'
14084 lt_prog_compiler_wl_F77='-Wl,'
14085 lt_prog_compiler_can_build_shared_F77=no
14089 lt_prog_compiler_pic_F77='-pic'
14090 lt_prog_compiler_static_F77='-Bstatic'
14094 lt_prog_compiler_can_build_shared_F77=no
14099 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14100 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14103 # Check to make sure the PIC flag actually works.
14105 if test -n "$lt_prog_compiler_pic_F77"; then
14107 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14108 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14109 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14110 echo $ECHO_N "(cached) $ECHO_C" >&6
14112 lt_prog_compiler_pic_works_F77=no
14113 ac_outfile=conftest.$ac_objext
14114 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14115 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14116 # Insert the option either (1) after the last *FLAGS variable, or
14117 # (2) before a word containing "conftest.", or (3) at the end.
14118 # Note that $ac_compile itself does not contain backslashes and begins
14119 # with a dollar sign (not a hyphen), so the echo should work correctly.
14120 # The option is referenced via a variable to avoid confusing sed.
14121 lt_compile=`echo "$ac_compile" | $SED \
14122 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14123 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14124 -e 's:$: $lt_compiler_flag:'`
14125 (eval echo "\"\$as_me:14125: $lt_compile\"" >&5)
14126 (eval "$lt_compile" 2>conftest.err)
14128 cat conftest.err >&5
14129 echo "$as_me:14129: \$? = $ac_status" >&5
14130 if (exit $ac_status) && test -s "$ac_outfile"; then
14131 # The compiler can only warn and ignore the option if not recognized
14132 # So say no if there are warnings other than the usual output.
14133 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14134 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14135 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14136 lt_prog_compiler_pic_works_F77=yes
14142 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14143 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14145 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14146 case $lt_prog_compiler_pic_F77 in
14148 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14151 lt_prog_compiler_pic_F77=
14152 lt_prog_compiler_can_build_shared_F77=no
14157 # For platforms which do not support PIC, -DPIC is meaningless:
14159 lt_prog_compiler_pic_F77=
14162 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14167 # Check to make sure the static flag actually works.
14169 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14170 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14171 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14172 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14173 echo $ECHO_N "(cached) $ECHO_C" >&6
14175 lt_prog_compiler_static_works_F77=no
14176 save_LDFLAGS="$LDFLAGS"
14177 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14178 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14179 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14180 # The linker can only warn and ignore the option if not recognized
14181 # So say no if there are warnings
14182 if test -s conftest.err; then
14183 # Append any errors to the config.log.
14184 cat conftest.err 1>&5
14185 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14186 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14187 if diff conftest.exp conftest.er2 >/dev/null; then
14188 lt_prog_compiler_static_works_F77=yes
14191 lt_prog_compiler_static_works_F77=yes
14195 LDFLAGS="$save_LDFLAGS"
14198 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14199 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14201 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14204 lt_prog_compiler_static_F77=
14208 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14209 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14210 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14211 echo $ECHO_N "(cached) $ECHO_C" >&6
14213 lt_cv_prog_compiler_c_o_F77=no
14214 $rm -r conftest 2>/dev/null
14218 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14220 lt_compiler_flag="-o out/conftest2.$ac_objext"
14221 # Insert the option either (1) after the last *FLAGS variable, or
14222 # (2) before a word containing "conftest.", or (3) at the end.
14223 # Note that $ac_compile itself does not contain backslashes and begins
14224 # with a dollar sign (not a hyphen), so the echo should work correctly.
14225 lt_compile=`echo "$ac_compile" | $SED \
14226 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14227 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14228 -e 's:$: $lt_compiler_flag:'`
14229 (eval echo "\"\$as_me:14229: $lt_compile\"" >&5)
14230 (eval "$lt_compile" 2>out/conftest.err)
14232 cat out/conftest.err >&5
14233 echo "$as_me:14233: \$? = $ac_status" >&5
14234 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14236 # The compiler can only warn and ignore the option if not recognized
14237 # So say no if there are warnings
14238 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14239 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14240 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14241 lt_cv_prog_compiler_c_o_F77=yes
14246 # SGI C++ compiler will create directory out/ii_files/ for
14247 # template instantiation
14248 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14249 $rm out/* && rmdir out
14255 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14256 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14259 hard_links="nottested"
14260 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14261 # do not overwrite the value of need_locks provided by the user
14262 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14263 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14266 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14268 ln conftest.a conftest.b 2>&5 || hard_links=no
14269 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14270 { echo "$as_me:$LINENO: result: $hard_links" >&5
14271 echo "${ECHO_T}$hard_links" >&6; }
14272 if test "$hard_links" = no; then
14273 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14274 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14281 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14282 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14285 allow_undefined_flag_F77=
14286 enable_shared_with_static_runtimes_F77=no
14288 archive_expsym_cmds_F77=
14289 old_archive_From_new_cmds_F77=
14290 old_archive_from_expsyms_cmds_F77=
14291 export_dynamic_flag_spec_F77=
14292 whole_archive_flag_spec_F77=
14293 thread_safe_flag_spec_F77=
14294 hardcode_libdir_flag_spec_F77=
14295 hardcode_libdir_flag_spec_ld_F77=
14296 hardcode_libdir_separator_F77=
14297 hardcode_direct_F77=no
14298 hardcode_minus_L_F77=no
14299 hardcode_shlibpath_var_F77=unsupported
14300 link_all_deplibs_F77=unknown
14301 hardcode_automatic_F77=no
14303 module_expsym_cmds_F77=
14304 always_export_symbols_F77=no
14305 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14306 # include_expsyms should be a list of space-separated symbols to be *always*
14307 # included in the symbol list
14308 include_expsyms_F77=
14309 # exclude_expsyms can be an extended regexp of symbols to exclude
14310 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14311 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14312 # as well as any symbol that contains `d'.
14313 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14314 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14315 # platforms (ab)use it in PIC code, but their linkers get confused if
14316 # the symbol is explicitly referenced. Since portable code cannot
14317 # rely on this symbol name, it's probably fine to never include it in
14318 # preloaded symbol tables.
14319 extract_expsyms_cmds=
14320 # Just being paranoid about ensuring that cc_basename is set.
14321 for cc_temp in $compiler""; do
14323 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14324 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14329 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14332 cygwin* | mingw* | pw32*)
14333 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14334 # When not using gcc, we currently assume that we are using
14335 # Microsoft Visual C++.
14336 if test "$GCC" != yes; then
14341 # we just hope/assume this is gcc and not c89 (= MSVC++)
14350 if test "$with_gnu_ld" = yes; then
14351 # If archive_cmds runs LD, not CC, wlarc should be empty
14354 # Set some defaults for GNU ld with shared library support. These
14355 # are reset later if shared libraries are not supported. Putting them
14356 # here allows them to be overridden if necessary.
14357 runpath_var=LD_RUN_PATH
14358 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14359 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14360 # ancient GNU ld didn't support --whole-archive et. al.
14361 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14362 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14364 whole_archive_flag_spec_F77=
14366 supports_anon_versioning=no
14367 case `$LD -v 2>/dev/null` in
14368 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14369 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14370 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14371 *\ 2.11.*) ;; # other 2.11 versions
14372 *) supports_anon_versioning=yes ;;
14375 # See if GNU ld supports shared libraries.
14377 aix3* | aix4* | aix5*)
14378 # On AIX/PPC, the GNU linker is very broken
14379 if test "$host_cpu" != ia64; then
14383 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14384 *** to be unable to reliably create shared libraries on AIX.
14385 *** Therefore, libtool is disabling shared libraries support. If you
14386 *** really care for shared libraries, you may want to modify your PATH
14387 *** so that a non-GNU linker is found, and then restart.
14394 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)'
14395 hardcode_libdir_flag_spec_F77='-L$libdir'
14396 hardcode_minus_L_F77=yes
14398 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14399 # that the semantics of dynamic libraries on AmigaOS, at least up
14400 # to version 4, is to share data among multiple programs linked
14401 # with the same dynamic library. Since this doesn't match the
14402 # behavior of shared libraries on other platforms, we can't use
14408 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14409 allow_undefined_flag_F77=unsupported
14410 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14411 # support --undefined. This deserves some investigation. FIXME
14412 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14418 cygwin* | mingw* | pw32*)
14419 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14420 # as there is no search path for DLLs.
14421 hardcode_libdir_flag_spec_F77='-L$libdir'
14422 allow_undefined_flag_F77=unsupported
14423 always_export_symbols_F77=no
14424 enable_shared_with_static_runtimes_F77=yes
14425 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14427 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14428 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14429 # If the export-symbols file already is a .def file (1st line
14430 # is EXPORTS), use it as is; otherwise, prepend...
14431 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14432 cp $export_symbols $output_objdir/$soname.def;
14434 echo EXPORTS > $output_objdir/$soname.def;
14435 cat $export_symbols >> $output_objdir/$soname.def;
14437 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14444 hardcode_direct_F77=no
14445 hardcode_shlibpath_var_F77=no
14446 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14447 export_dynamic_flag_spec_F77='${wl}-E'
14448 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14449 # Instead, shared libraries are loaded at an image base (0x10000000 by
14450 # default) and relocated if they conflict, which is a slow very memory
14451 # consuming and fragmenting process. To avoid this, we pick a random,
14452 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14453 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14454 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'
14455 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'
14458 linux* | k*bsd*-gnu)
14459 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14461 case $cc_basename,$host_cpu in
14462 pgcc*) # Portland Group C compiler
14463 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'
14464 tmp_addflag=' $pic_flag'
14466 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14467 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'
14468 tmp_addflag=' $pic_flag -Mnomain' ;;
14469 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14470 tmp_addflag=' -i_dynamic' ;;
14471 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14472 tmp_addflag=' -i_dynamic -nofor_main' ;;
14473 ifc* | ifort*) # Intel Fortran compiler
14474 tmp_addflag=' -nofor_main' ;;
14476 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14478 if test $supports_anon_versioning = yes; then
14479 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14480 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14481 $echo "local: *; };" >> $output_objdir/$libname.ver~
14482 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14484 link_all_deplibs_F77=no
14490 netbsd* | netbsdelf*-gnu)
14491 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14492 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14495 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14496 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14501 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14505 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14506 *** create shared libraries on Solaris systems. Therefore, libtool
14507 *** is disabling shared libraries support. We urge you to upgrade GNU
14508 *** binutils to release 2.9.1 or newer. Another option is to modify
14509 *** your PATH or compiler configuration so that the native linker is
14510 *** used, and then restart.
14513 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14514 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14515 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14521 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14522 case `$LD -v 2>&1` in
14523 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14527 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14528 *** reliably create shared libraries on SCO systems. Therefore, libtool
14529 *** is disabling shared libraries support. We urge you to upgrade GNU
14530 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14531 *** your PATH or compiler configuration so that the native linker is
14532 *** used, and then restart.
14537 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14538 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14539 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14540 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14549 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14551 hardcode_direct_F77=yes
14552 hardcode_shlibpath_var_F77=no
14556 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14557 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14558 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14565 if test "$ld_shlibs_F77" = no; then
14567 hardcode_libdir_flag_spec_F77=
14568 export_dynamic_flag_spec_F77=
14569 whole_archive_flag_spec_F77=
14572 # PORTME fill in a description of your system's linker (not GNU ld)
14575 allow_undefined_flag_F77=unsupported
14576 always_export_symbols_F77=yes
14577 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'
14578 # Note: this linker hardcodes the directories in LIBPATH if there
14579 # are no directories specified by -L.
14580 hardcode_minus_L_F77=yes
14581 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14582 # Neither direct hardcoding nor static linking is supported with a
14584 hardcode_direct_F77=unsupported
14589 if test "$host_cpu" = ia64; then
14590 # On IA64, the linker does run time linking by default, so we don't
14591 # have to do anything special.
14592 aix_use_runtimelinking=no
14593 exp_sym_flag='-Bexport'
14596 # If we're using GNU nm, then we don't want the "-C" option.
14597 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14598 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14599 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'
14601 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'
14603 aix_use_runtimelinking=no
14605 # Test if we are trying to use run time linking or normal
14606 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14607 # need to do runtime linking.
14608 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14609 for ld_flag in $LDFLAGS; do
14610 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14611 aix_use_runtimelinking=yes
14618 exp_sym_flag='-bexport'
14619 no_entry_flag='-bnoentry'
14622 # When large executables or shared objects are built, AIX ld can
14623 # have problems creating the table of contents. If linking a library
14624 # or program results in "error TOC overflow" add -mminimal-toc to
14625 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14626 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14628 archive_cmds_F77=''
14629 hardcode_direct_F77=yes
14630 hardcode_libdir_separator_F77=':'
14631 link_all_deplibs_F77=yes
14633 if test "$GCC" = yes; then
14634 case $host_os in aix4.[012]|aix4.[012].*)
14635 # We only want to do this on AIX 4.2 and lower, the check
14636 # below for broken collect2 doesn't work under 4.3+
14637 collect2name=`${CC} -print-prog-name=collect2`
14638 if test -f "$collect2name" && \
14639 strings "$collect2name" | grep resolve_lib_name >/dev/null
14641 # We have reworked collect2
14642 hardcode_direct_F77=yes
14644 # We have old collect2
14645 hardcode_direct_F77=unsupported
14646 # It fails to find uninstalled libraries when the uninstalled
14647 # path is not listed in the libpath. Setting hardcode_minus_L
14648 # to unsupported forces relinking
14649 hardcode_minus_L_F77=yes
14650 hardcode_libdir_flag_spec_F77='-L$libdir'
14651 hardcode_libdir_separator_F77=
14655 shared_flag='-shared'
14656 if test "$aix_use_runtimelinking" = yes; then
14657 shared_flag="$shared_flag "'${wl}-G'
14661 if test "$host_cpu" = ia64; then
14662 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14663 # chokes on -Wl,-G. The following line is correct:
14666 if test "$aix_use_runtimelinking" = yes; then
14667 shared_flag='${wl}-G'
14669 shared_flag='${wl}-bM:SRE'
14674 # It seems that -bexpall does not export symbols beginning with
14675 # underscore (_), so it is better to generate a list of symbols to export.
14676 always_export_symbols_F77=yes
14677 if test "$aix_use_runtimelinking" = yes; then
14678 # Warning - without using the other runtime loading flags (-brtl),
14679 # -berok will link without error, but may produce a broken library.
14680 allow_undefined_flag_F77='-berok'
14681 # Determine the default libpath from the value encoded in an empty executable.
14682 cat >conftest.$ac_ext <<_ACEOF
14687 rm -f conftest.$ac_objext conftest$ac_exeext
14688 if { (ac_try="$ac_link"
14689 case "(($ac_try" in
14690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14691 *) ac_try_echo=$ac_try;;
14693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14694 (eval "$ac_link") 2>conftest.er1
14696 grep -v '^ *+' conftest.er1 >conftest.err
14698 cat conftest.err >&5
14699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700 (exit $ac_status); } && {
14701 test -z "$ac_f77_werror_flag" ||
14702 test ! -s conftest.err
14703 } && test -s conftest$ac_exeext &&
14704 $as_test_x conftest$ac_exeext; then
14706 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14708 # Check for a 64-bit object if we didn't find anything.
14709 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14712 echo "$as_me: failed program was:" >&5
14713 sed 's/^/| /' conftest.$ac_ext >&5
14718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14719 conftest$ac_exeext conftest.$ac_ext
14720 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14722 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14723 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"
14725 if test "$host_cpu" = ia64; then
14726 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14727 allow_undefined_flag_F77="-z nodefs"
14728 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"
14730 # Determine the default libpath from the value encoded in an empty executable.
14731 cat >conftest.$ac_ext <<_ACEOF
14736 rm -f conftest.$ac_objext conftest$ac_exeext
14737 if { (ac_try="$ac_link"
14738 case "(($ac_try" in
14739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14740 *) ac_try_echo=$ac_try;;
14742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14743 (eval "$ac_link") 2>conftest.er1
14745 grep -v '^ *+' conftest.er1 >conftest.err
14747 cat conftest.err >&5
14748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749 (exit $ac_status); } && {
14750 test -z "$ac_f77_werror_flag" ||
14751 test ! -s conftest.err
14752 } && test -s conftest$ac_exeext &&
14753 $as_test_x conftest$ac_exeext; then
14755 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14757 # Check for a 64-bit object if we didn't find anything.
14758 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14761 echo "$as_me: failed program was:" >&5
14762 sed 's/^/| /' conftest.$ac_ext >&5
14767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14768 conftest$ac_exeext conftest.$ac_ext
14769 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14771 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14772 # Warning - without using the other run time loading flags,
14773 # -berok will link without error, but may produce a broken library.
14774 no_undefined_flag_F77=' ${wl}-bernotok'
14775 allow_undefined_flag_F77=' ${wl}-berok'
14776 # Exported symbols can be pulled into shared objects from archives
14777 whole_archive_flag_spec_F77='$convenience'
14778 archive_cmds_need_lc_F77=yes
14779 # This is similar to how AIX traditionally builds its shared libraries.
14780 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'
14786 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)'
14787 hardcode_libdir_flag_spec_F77='-L$libdir'
14788 hardcode_minus_L_F77=yes
14789 # see comment about different semantics on the GNU ld section
14794 export_dynamic_flag_spec_F77=-rdynamic
14797 cygwin* | mingw* | pw32*)
14798 # When not using gcc, we currently assume that we are using
14799 # Microsoft Visual C++.
14800 # hardcode_libdir_flag_spec is actually meaningless, as there is
14801 # no search path for DLLs.
14802 hardcode_libdir_flag_spec_F77=' '
14803 allow_undefined_flag_F77=unsupported
14804 # Tell ltmain to make .lib files, not .a files.
14806 # Tell ltmain to make .dll files, not .so files.
14808 # FIXME: Setting linknames here is a bad hack.
14809 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14810 # The linker will automatically build a .lib file if we build a DLL.
14811 old_archive_From_new_cmds_F77='true'
14812 # FIXME: Should let the user specify the lib program.
14813 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14814 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14815 enable_shared_with_static_runtimes_F77=yes
14818 darwin* | rhapsody*)
14820 rhapsody* | darwin1.[012])
14821 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14824 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14825 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14827 case ${MACOSX_DEPLOYMENT_TARGET} in
14829 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14832 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14838 archive_cmds_need_lc_F77=no
14839 hardcode_direct_F77=no
14840 hardcode_automatic_F77=yes
14841 hardcode_shlibpath_var_F77=unsupported
14842 whole_archive_flag_spec_F77=''
14843 link_all_deplibs_F77=yes
14844 if test "$GCC" = yes ; then
14845 output_verbose_link_cmd='echo'
14846 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14847 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14848 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14849 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14850 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}'
14852 case $cc_basename in
14854 output_verbose_link_cmd='echo'
14855 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14856 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14857 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14858 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14859 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}'
14869 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14870 hardcode_libdir_flag_spec_F77='-L$libdir'
14871 hardcode_shlibpath_var_F77=no
14878 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14879 # support. Future versions do this automatically, but an explicit c++rt0.o
14880 # does not break anything, and helps significantly (at the cost of a little
14883 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14884 hardcode_libdir_flag_spec_F77='-R$libdir'
14885 hardcode_direct_F77=yes
14886 hardcode_shlibpath_var_F77=no
14889 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14891 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14892 hardcode_direct_F77=yes
14893 hardcode_minus_L_F77=yes
14894 hardcode_shlibpath_var_F77=no
14897 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14898 freebsd* | dragonfly*)
14899 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14900 hardcode_libdir_flag_spec_F77='-R$libdir'
14901 hardcode_direct_F77=yes
14902 hardcode_shlibpath_var_F77=no
14906 if test "$GCC" = yes; then
14907 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'
14909 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'
14911 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14912 hardcode_libdir_separator_F77=:
14913 hardcode_direct_F77=yes
14915 # hardcode_minus_L: Not really in the search PATH,
14916 # but as the default location of the library.
14917 hardcode_minus_L_F77=yes
14918 export_dynamic_flag_spec_F77='${wl}-E'
14922 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14923 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14925 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14927 if test "$with_gnu_ld" = no; then
14928 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14929 hardcode_libdir_separator_F77=:
14931 hardcode_direct_F77=yes
14932 export_dynamic_flag_spec_F77='${wl}-E'
14934 # hardcode_minus_L: Not really in the search PATH,
14935 # but as the default location of the library.
14936 hardcode_minus_L_F77=yes
14941 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14944 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14947 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14950 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14956 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14959 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14962 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14966 if test "$with_gnu_ld" = no; then
14967 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14968 hardcode_libdir_separator_F77=:
14972 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14973 hardcode_direct_F77=no
14974 hardcode_shlibpath_var_F77=no
14977 hardcode_direct_F77=yes
14978 export_dynamic_flag_spec_F77='${wl}-E'
14980 # hardcode_minus_L: Not really in the search PATH,
14981 # but as the default location of the library.
14982 hardcode_minus_L_F77=yes
14988 irix5* | irix6* | nonstopux*)
14989 if test "$GCC" = yes; then
14990 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'
14992 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'
14993 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14995 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14996 hardcode_libdir_separator_F77=:
14997 link_all_deplibs_F77=yes
15000 netbsd* | netbsdelf*-gnu)
15001 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15002 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15004 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15006 hardcode_libdir_flag_spec_F77='-R$libdir'
15007 hardcode_direct_F77=yes
15008 hardcode_shlibpath_var_F77=no
15012 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15013 hardcode_direct_F77=yes
15014 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15015 hardcode_libdir_separator_F77=:
15016 hardcode_shlibpath_var_F77=no
15020 hardcode_direct_F77=yes
15021 hardcode_shlibpath_var_F77=no
15022 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15023 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15024 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15025 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15026 export_dynamic_flag_spec_F77='${wl}-E'
15029 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15030 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15031 hardcode_libdir_flag_spec_F77='-R$libdir'
15034 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15035 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15042 hardcode_libdir_flag_spec_F77='-L$libdir'
15043 hardcode_minus_L_F77=yes
15044 allow_undefined_flag_F77=unsupported
15045 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'
15046 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15050 if test "$GCC" = yes; then
15051 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15052 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15054 allow_undefined_flag_F77=' -expect_unresolved \*'
15055 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'
15057 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15058 hardcode_libdir_separator_F77=:
15061 osf4* | osf5*) # as osf3* with the addition of -msym flag
15062 if test "$GCC" = yes; then
15063 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15064 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'
15065 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15067 allow_undefined_flag_F77=' -expect_unresolved \*'
15068 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'
15069 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~
15070 $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'
15072 # Both c and cxx compiler support -rpath directly
15073 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15075 hardcode_libdir_separator_F77=:
15079 no_undefined_flag_F77=' -z text'
15080 if test "$GCC" = yes; then
15082 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15083 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15084 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15087 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15088 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15089 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15091 hardcode_libdir_flag_spec_F77='-R$libdir'
15092 hardcode_shlibpath_var_F77=no
15094 solaris2.[0-5] | solaris2.[0-5].*) ;;
15096 # The compiler driver will combine linker options so we
15097 # cannot just pass the convience library names through
15098 # without $wl, iff we do not link with $LD.
15099 # Luckily, gcc supports the same syntax we need for Sun Studio.
15100 # Supported since Solaris 2.6 (maybe 2.5.1?)
15103 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15105 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15108 link_all_deplibs_F77=yes
15112 if test "x$host_vendor" = xsequent; then
15113 # Use $CC to link under sequent, because it throws in some extra .o
15114 # files that make .init and .fini sections work.
15115 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15117 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15119 hardcode_libdir_flag_spec_F77='-L$libdir'
15120 hardcode_direct_F77=yes
15121 hardcode_minus_L_F77=yes
15122 hardcode_shlibpath_var_F77=no
15126 case $host_vendor in
15128 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15129 hardcode_direct_F77=yes # is this really true???
15132 ## LD is ld it makes a PLAMLIB
15133 ## CC just makes a GrossModule.
15134 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15135 reload_cmds_F77='$CC -r -o $output$reload_objs'
15136 hardcode_direct_F77=no
15139 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15140 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15143 runpath_var='LD_RUN_PATH'
15144 hardcode_shlibpath_var_F77=no
15148 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15149 hardcode_shlibpath_var_F77=no
15150 export_dynamic_flag_spec_F77='-Bexport'
15154 if test -d /usr/nec; then
15155 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15156 hardcode_shlibpath_var_F77=no
15157 runpath_var=LD_RUN_PATH
15158 hardcode_runpath_var=yes
15163 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15164 no_undefined_flag_F77='${wl}-z,text'
15165 archive_cmds_need_lc_F77=no
15166 hardcode_shlibpath_var_F77=no
15167 runpath_var='LD_RUN_PATH'
15169 if test "$GCC" = yes; then
15170 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15171 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15173 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15174 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15178 sysv5* | sco3.2v5* | sco5v6*)
15179 # Note: We can NOT use -z defs as we might desire, because we do not
15180 # link with -lc, and that would cause any symbols used from libc to
15181 # always be unresolved, which means just about no library would
15182 # ever link correctly. If we're not using GNU ld we use -z text
15183 # though, which does catch some bad symbols but isn't as heavy-handed
15185 no_undefined_flag_F77='${wl}-z,text'
15186 allow_undefined_flag_F77='${wl}-z,nodefs'
15187 archive_cmds_need_lc_F77=no
15188 hardcode_shlibpath_var_F77=no
15189 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15190 hardcode_libdir_separator_F77=':'
15191 link_all_deplibs_F77=yes
15192 export_dynamic_flag_spec_F77='${wl}-Bexport'
15193 runpath_var='LD_RUN_PATH'
15195 if test "$GCC" = yes; then
15196 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15197 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15199 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15200 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15205 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15206 hardcode_libdir_flag_spec_F77='-L$libdir'
15207 hardcode_shlibpath_var_F77=no
15216 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15217 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15218 test "$ld_shlibs_F77" = no && can_build_shared=no
15221 # Do we need to explicitly link libc?
15223 case "x$archive_cmds_need_lc_F77" in
15225 # Assume -lc should be added
15226 archive_cmds_need_lc_F77=yes
15228 if test "$enable_shared" = yes && test "$GCC" = yes; then
15229 case $archive_cmds_F77 in
15231 # FIXME: we may have to deal with multi-command sequences.
15234 # Test whether the compiler implicitly links with -lc since on some
15235 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15236 # to ld, don't add -lc before -lgcc.
15237 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15238 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15240 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15243 (eval $ac_compile) 2>&5
15245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246 (exit $ac_status); } 2>conftest.err; then
15249 libobjs=conftest.$ac_objext
15251 wl=$lt_prog_compiler_wl_F77
15252 pic_flag=$lt_prog_compiler_pic_F77
15258 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15259 allow_undefined_flag_F77=
15260 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15261 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15264 (exit $ac_status); }
15266 archive_cmds_need_lc_F77=no
15268 archive_cmds_need_lc_F77=yes
15270 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15272 cat conftest.err 1>&5
15275 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15276 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15283 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15284 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15285 library_names_spec=
15286 libname_spec='lib$name'
15290 postuninstall_cmds=
15294 shlibpath_overrides_runpath=unknown
15296 dynamic_linker="$host_os ld.so"
15297 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15298 if test "$GCC" = yes; then
15299 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15300 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15301 # if the path contains ";" then we assume it to be the separator
15302 # otherwise default to the standard path separator (i.e. ":") - it is
15303 # assumed that no part of a normal pathname contains ";" but that should
15304 # okay in the real world where ";" in dirpaths is itself problematic.
15305 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15307 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15310 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15312 need_lib_prefix=unknown
15313 hardcode_into_libs=no
15315 # when you set need_version to no, make sure it does not cause -set_version
15316 # flags to be left without arguments
15317 need_version=unknown
15322 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15323 shlibpath_var=LIBPATH
15325 # AIX 3 has no versioning support, so we append a major version to the name.
15326 soname_spec='${libname}${release}${shared_ext}$major'
15333 hardcode_into_libs=yes
15334 if test "$host_cpu" = ia64; then
15335 # AIX 5 supports IA64
15336 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15337 shlibpath_var=LD_LIBRARY_PATH
15339 # With GCC up to 2.95.x, collect2 would create an import file
15340 # for dependence libraries. The import file would start with
15341 # the line `#! .'. This would cause the generated library to
15342 # depend on `.', always an invalid library. This was fixed in
15343 # development snapshots of GCC prior to 3.0.
15345 aix4 | aix4.[01] | aix4.[01].*)
15346 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15348 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15351 can_build_shared=no
15355 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15356 # soname into executable. Probably we can add versioning support to
15357 # collect2, so additional links can be useful in future.
15358 if test "$aix_use_runtimelinking" = yes; then
15359 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15360 # instead of lib<name>.a to let people know that these are not
15361 # typical AIX shared libraries.
15362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15364 # We preserve .a as extension for shared libraries through AIX4.2
15365 # and later when we are not doing run time linking.
15366 library_names_spec='${libname}${release}.a $libname.a'
15367 soname_spec='${libname}${release}${shared_ext}$major'
15369 shlibpath_var=LIBPATH
15374 library_names_spec='$libname.ixlibrary $libname.a'
15375 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15376 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'
15380 library_names_spec='${libname}${shared_ext}'
15381 dynamic_linker="$host_os ld.so"
15382 shlibpath_var=LIBRARY_PATH
15388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15389 soname_spec='${libname}${release}${shared_ext}$major'
15390 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15391 shlibpath_var=LD_LIBRARY_PATH
15392 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15393 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15394 # the default ld.so.conf also contains /usr/contrib/lib and
15395 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15396 # libtool to hard-code these into programs
15399 cygwin* | mingw* | pw32*)
15400 version_type=windows
15405 case $GCC,$host_os in
15406 yes,cygwin* | yes,mingw* | yes,pw32*)
15407 library_names_spec='$libname.dll.a'
15408 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15409 postinstall_cmds='base_file=`basename \${file}`~
15410 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15411 dldir=$destdir/`dirname \$dlpath`~
15412 test -d \$dldir || mkdir -p \$dldir~
15413 $install_prog $dir/$dlname \$dldir/$dlname~
15414 chmod a+x \$dldir/$dlname'
15415 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15416 dlpath=$dir/\$dldll~
15418 shlibpath_overrides_runpath=yes
15422 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15423 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15424 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15427 # MinGW DLLs use traditional 'lib' prefix
15428 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15429 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15430 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15431 # It is most probably a Windows format PATH printed by
15432 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15433 # path with ; separators, and with drive letters. We can handle the
15434 # drive letters (cygwin fileutils understands them), so leave them,
15435 # especially as we might pass files found there to a mingw objdump,
15436 # which wouldn't understand a cygwinified path. Ahh.
15437 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15439 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15443 # pw32 DLLs use 'pw' prefix rather than 'lib'
15444 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15450 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15453 dynamic_linker='Win32 ld.exe'
15454 # FIXME: first we should search . and the directory the executable is in
15458 darwin* | rhapsody*)
15459 dynamic_linker="$host_os dyld"
15460 version_type=darwin
15463 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15464 soname_spec='${libname}${release}${major}$shared_ext'
15465 shlibpath_overrides_runpath=yes
15466 shlibpath_var=DYLD_LIBRARY_PATH
15467 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15468 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15469 if test "$GCC" = yes; then
15470 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15472 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15474 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15482 soname_spec='${libname}${release}${shared_ext}$major'
15483 shlibpath_var=LD_LIBRARY_PATH
15490 freebsd* | dragonfly*)
15491 # DragonFly does not have aout. When/if they implement a new
15492 # versioning mechanism, adjust this.
15493 if test -x /usr/bin/objformat; then
15494 objformat=`/usr/bin/objformat`
15497 freebsd[123]*) objformat=aout ;;
15498 *) objformat=elf ;;
15501 version_type=freebsd-$objformat
15502 case $version_type in
15504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15509 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15513 shlibpath_var=LD_LIBRARY_PATH
15516 shlibpath_overrides_runpath=yes
15518 freebsd3.[01]* | freebsdelf3.[01]*)
15519 shlibpath_overrides_runpath=yes
15520 hardcode_into_libs=yes
15522 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15523 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15524 shlibpath_overrides_runpath=no
15525 hardcode_into_libs=yes
15527 freebsd*) # from 4.6 on
15528 shlibpath_overrides_runpath=yes
15529 hardcode_into_libs=yes
15538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15539 soname_spec='${libname}${release}${shared_ext}$major'
15540 shlibpath_var=LD_LIBRARY_PATH
15541 hardcode_into_libs=yes
15544 hpux9* | hpux10* | hpux11*)
15545 # Give a soname corresponding to the major version so that dld.sl refuses to
15546 # link against other versions.
15553 hardcode_into_libs=yes
15554 dynamic_linker="$host_os dld.so"
15555 shlibpath_var=LD_LIBRARY_PATH
15556 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15558 soname_spec='${libname}${release}${shared_ext}$major'
15559 if test "X$HPUX_IA64_MODE" = X32; then
15560 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15562 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15564 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15568 hardcode_into_libs=yes
15569 dynamic_linker="$host_os dld.sl"
15570 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15571 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15573 soname_spec='${libname}${release}${shared_ext}$major'
15574 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15575 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15579 dynamic_linker="$host_os dld.sl"
15580 shlibpath_var=SHLIB_PATH
15581 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15583 soname_spec='${libname}${release}${shared_ext}$major'
15586 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15587 postinstall_cmds='chmod 555 $lib'
15594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15595 soname_spec='${libname}${release}${shared_ext}$major'
15596 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15597 shlibpath_var=LD_LIBRARY_PATH
15598 shlibpath_overrides_runpath=no
15599 hardcode_into_libs=yes
15602 irix5* | irix6* | nonstopux*)
15604 nonstopux*) version_type=nonstopux ;;
15606 if test "$lt_cv_prog_gnu_ld" = yes; then
15614 soname_spec='${libname}${release}${shared_ext}$major'
15615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15617 irix5* | nonstopux*)
15618 libsuff= shlibsuff=
15621 case $LD in # libtool.m4 will add one of these switches to LD
15622 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15623 libsuff= shlibsuff= libmagic=32-bit;;
15624 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15625 libsuff=32 shlibsuff=N32 libmagic=N32;;
15626 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15627 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15628 *) libsuff= shlibsuff= libmagic=never-match;;
15632 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15633 shlibpath_overrides_runpath=no
15634 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15635 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15636 hardcode_into_libs=yes
15639 # No shared lib support for Linux oldld, aout, or coff.
15640 linux*oldld* | linux*aout* | linux*coff*)
15644 # This must be Linux ELF.
15645 linux* | k*bsd*-gnu)
15649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15650 soname_spec='${libname}${release}${shared_ext}$major'
15651 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15652 shlibpath_var=LD_LIBRARY_PATH
15653 shlibpath_overrides_runpath=no
15654 # This implies no fast_install, which is unacceptable.
15655 # Some rework will be needed to allow for fast_install
15656 # before this can be enabled.
15657 hardcode_into_libs=yes
15659 # Append ld.so.conf contents to the search path
15660 if test -f /etc/ld.so.conf; then
15661 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15662 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15665 # We used to test for /lib/ld.so.1 and disable shared libraries on
15666 # powerpc, because MkLinux only supported shared libraries with the
15667 # GNU dynamic linker. Since this was broken with cross compilers,
15668 # most powerpc-linux boxes support dynamic linking these days and
15669 # people can always --disable-shared, the test was removed, and we
15670 # assume the GNU/Linux dynamic linker is in use.
15671 dynamic_linker='GNU/Linux ld.so'
15678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15679 soname_spec='${libname}${release}${shared_ext}$major'
15680 shlibpath_var=LD_LIBRARY_PATH
15681 shlibpath_overrides_runpath=no
15682 hardcode_into_libs=yes
15683 dynamic_linker='NetBSD ld.elf_so'
15690 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15692 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15693 dynamic_linker='NetBSD (a.out) ld.so'
15695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15696 soname_spec='${libname}${release}${shared_ext}$major'
15697 dynamic_linker='NetBSD ld.elf_so'
15699 shlibpath_var=LD_LIBRARY_PATH
15700 shlibpath_overrides_runpath=yes
15701 hardcode_into_libs=yes
15706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15707 shlibpath_var=LD_LIBRARY_PATH
15708 shlibpath_overrides_runpath=yes
15715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15716 soname_spec='${libname}${release}${shared_ext}$major'
15717 shlibpath_var=LD_LIBRARY_PATH
15718 shlibpath_overrides_runpath=yes
15723 sys_lib_dlsearch_path_spec="/usr/lib"
15725 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15727 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15728 *) need_version=no ;;
15730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15731 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15732 shlibpath_var=LD_LIBRARY_PATH
15733 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15735 openbsd2.[89] | openbsd2.[89].*)
15736 shlibpath_overrides_runpath=no
15739 shlibpath_overrides_runpath=yes
15743 shlibpath_overrides_runpath=yes
15748 libname_spec='$name'
15751 library_names_spec='$libname${shared_ext} $libname.a'
15752 dynamic_linker='OS/2 ld.exe'
15753 shlibpath_var=LIBPATH
15756 osf3* | osf4* | osf5*)
15760 soname_spec='${libname}${release}${shared_ext}$major'
15761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15762 shlibpath_var=LD_LIBRARY_PATH
15763 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15764 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15772 soname_spec='${libname}${release}${shared_ext}$major'
15773 shlibpath_var=LD_LIBRARY_PATH
15774 shlibpath_overrides_runpath=yes
15775 hardcode_into_libs=yes
15776 # ldd complains unless libraries are executable
15777 postinstall_cmds='chmod +x $lib'
15782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15783 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15784 shlibpath_var=LD_LIBRARY_PATH
15785 shlibpath_overrides_runpath=yes
15786 if test "$with_gnu_ld" = yes; then
15794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15795 soname_spec='${libname}${release}${shared_ext}$major'
15796 shlibpath_var=LD_LIBRARY_PATH
15797 case $host_vendor in
15799 shlibpath_overrides_runpath=no
15801 export_dynamic_flag_spec='${wl}-Blargedynsym'
15802 runpath_var=LD_RUN_PATH
15810 shlibpath_overrides_runpath=no
15811 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15817 if test -d /usr/nec ;then
15819 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15820 soname_spec='$libname${shared_ext}.$major'
15821 shlibpath_var=LD_LIBRARY_PATH
15825 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15826 version_type=freebsd-elf
15829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15830 soname_spec='${libname}${release}${shared_ext}$major'
15831 shlibpath_var=LD_LIBRARY_PATH
15832 hardcode_into_libs=yes
15833 if test "$with_gnu_ld" = yes; then
15834 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15835 shlibpath_overrides_runpath=no
15837 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15838 shlibpath_overrides_runpath=yes
15841 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15845 sys_lib_dlsearch_path_spec='/usr/lib'
15850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15851 soname_spec='${libname}${release}${shared_ext}$major'
15852 shlibpath_var=LD_LIBRARY_PATH
15859 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15860 echo "${ECHO_T}$dynamic_linker" >&6; }
15861 test "$dynamic_linker" = no && can_build_shared=no
15863 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15864 if test "$GCC" = yes; then
15865 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15868 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15869 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15870 hardcode_action_F77=
15871 if test -n "$hardcode_libdir_flag_spec_F77" || \
15872 test -n "$runpath_var_F77" || \
15873 test "X$hardcode_automatic_F77" = "Xyes" ; then
15875 # We can hardcode non-existant directories.
15876 if test "$hardcode_direct_F77" != no &&
15877 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15878 # have to relink, otherwise we might link with an installed library
15879 # when we should be linking with a yet-to-be-installed one
15880 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15881 test "$hardcode_minus_L_F77" != no; then
15882 # Linking always hardcodes the temporary library directory.
15883 hardcode_action_F77=relink
15885 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15886 hardcode_action_F77=immediate
15889 # We cannot hardcode anything, or else we can only hardcode existing
15891 hardcode_action_F77=unsupported
15893 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15894 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15896 if test "$hardcode_action_F77" = relink; then
15897 # Fast installation is not supported
15898 enable_fast_install=no
15899 elif test "$shlibpath_overrides_runpath" = yes ||
15900 test "$enable_shared" = no; then
15901 # Fast installation is not necessary
15902 enable_fast_install=needless
15906 # The else clause should only fire when bootstrapping the
15907 # libtool distribution, otherwise you forgot to ship ltmain.sh
15908 # with your package, and you will get complaints that there are
15909 # no rules to generate ltmain.sh.
15910 if test -f "$ltmain"; then
15911 # See if we are running on zsh, and set the options which allow our commands through
15912 # without removal of \ escapes.
15913 if test -n "${ZSH_VERSION+set}" ; then
15914 setopt NO_GLOB_SUBST
15916 # Now quote all the things that may contain metacharacters while being
15917 # careful not to overquote the AC_SUBSTed values. We take copies of the
15918 # variables and quote the copies for generation of the libtool script.
15919 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15921 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15922 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15923 deplibs_check_method reload_flag reload_cmds need_locks \
15924 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15925 lt_cv_sys_global_symbol_to_c_name_address \
15926 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15927 old_postinstall_cmds old_postuninstall_cmds \
15931 lt_prog_compiler_wl_F77 \
15932 lt_prog_compiler_pic_F77 \
15933 lt_prog_compiler_static_F77 \
15934 lt_prog_compiler_no_builtin_flag_F77 \
15935 export_dynamic_flag_spec_F77 \
15936 thread_safe_flag_spec_F77 \
15937 whole_archive_flag_spec_F77 \
15938 enable_shared_with_static_runtimes_F77 \
15939 old_archive_cmds_F77 \
15940 old_archive_from_new_cmds_F77 \
15941 predep_objects_F77 \
15942 postdep_objects_F77 \
15945 compiler_lib_search_path_F77 \
15947 archive_expsym_cmds_F77 \
15948 postinstall_cmds_F77 \
15949 postuninstall_cmds_F77 \
15950 old_archive_from_expsyms_cmds_F77 \
15951 allow_undefined_flag_F77 \
15952 no_undefined_flag_F77 \
15953 export_symbols_cmds_F77 \
15954 hardcode_libdir_flag_spec_F77 \
15955 hardcode_libdir_flag_spec_ld_F77 \
15956 hardcode_libdir_separator_F77 \
15957 hardcode_automatic_F77 \
15959 module_expsym_cmds_F77 \
15960 lt_cv_prog_compiler_c_o_F77 \
15961 exclude_expsyms_F77 \
15962 include_expsyms_F77; do
15965 old_archive_cmds_F77 | \
15966 old_archive_from_new_cmds_F77 | \
15967 archive_cmds_F77 | \
15968 archive_expsym_cmds_F77 | \
15969 module_cmds_F77 | \
15970 module_expsym_cmds_F77 | \
15971 old_archive_from_expsyms_cmds_F77 | \
15972 export_symbols_cmds_F77 | \
15973 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15974 postinstall_cmds | postuninstall_cmds | \
15975 old_postinstall_cmds | old_postuninstall_cmds | \
15976 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15977 # Double-quote double-evaled strings.
15978 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15981 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15987 *'\$0 --fallback-echo"')
15988 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15994 cat <<__EOF__ >> "$cfgfile"
15995 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15997 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15999 # Shell to use when invoking shell scripts.
16002 # Whether or not to build shared libraries.
16003 build_libtool_libs=$enable_shared
16005 # Whether or not to build static libraries.
16006 build_old_libs=$enable_static
16008 # Whether or not to add -lc for building shared libraries.
16009 build_libtool_need_lc=$archive_cmds_need_lc_F77
16011 # Whether or not to disallow shared libs when runtime libs are static
16012 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16014 # Whether or not to optimize for fast installation.
16015 fast_install=$enable_fast_install
16018 host_alias=$host_alias
16022 # The build system.
16023 build_alias=$build_alias
16027 # An echo program that does not interpret backslashes.
16032 AR_FLAGS=$lt_AR_FLAGS
16037 # LTCC compiler flags.
16038 LTCFLAGS=$lt_LTCFLAGS
16040 # A language-specific compiler.
16041 CC=$lt_compiler_F77
16043 # Is the compiler the GNU C compiler?
16049 # The linker used to build libraries.
16052 # Whether we need hard or soft links.
16055 # A BSD-compatible nm program.
16058 # A symbol stripping program
16061 # Used to examine libraries when file_magic_cmd begins "file"
16062 MAGIC_CMD=$MAGIC_CMD
16064 # Used on cygwin: DLL creation program.
16067 # Used on cygwin: object dumper.
16070 # Used on cygwin: assembler.
16073 # The name of the directory that contains temporary libtool files.
16076 # How to create reloadable object files.
16077 reload_flag=$lt_reload_flag
16078 reload_cmds=$lt_reload_cmds
16080 # How to pass a linker flag through the compiler.
16081 wl=$lt_lt_prog_compiler_wl_F77
16083 # Object file suffix (normally "o").
16084 objext="$ac_objext"
16086 # Old archive suffix (normally "a").
16089 # Shared library suffix (normally ".so").
16090 shrext_cmds='$shrext_cmds'
16092 # Executable file suffix (normally "").
16095 # Additional compiler flags for building library objects.
16096 pic_flag=$lt_lt_prog_compiler_pic_F77
16099 # What is the maximum length of a command?
16100 max_cmd_len=$lt_cv_sys_max_cmd_len
16102 # Does compiler simultaneously support -c and -o options?
16103 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16105 # Must we lock files when doing compilation?
16106 need_locks=$lt_need_locks
16108 # Do we need the lib prefix for modules?
16109 need_lib_prefix=$need_lib_prefix
16111 # Do we need a version for libraries?
16112 need_version=$need_version
16114 # Whether dlopen is supported.
16115 dlopen_support=$enable_dlopen
16117 # Whether dlopen of programs is supported.
16118 dlopen_self=$enable_dlopen_self
16120 # Whether dlopen of statically linked programs is supported.
16121 dlopen_self_static=$enable_dlopen_self_static
16123 # Compiler flag to prevent dynamic linking.
16124 link_static_flag=$lt_lt_prog_compiler_static_F77
16126 # Compiler flag to turn off builtin functions.
16127 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16129 # Compiler flag to allow reflexive dlopens.
16130 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16132 # Compiler flag to generate shared objects directly from archives.
16133 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16135 # Compiler flag to generate thread-safe objects.
16136 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16138 # Library versioning type.
16139 version_type=$version_type
16141 # Format of library name prefix.
16142 libname_spec=$lt_libname_spec
16144 # List of archive names. First name is the real one, the rest are links.
16145 # The last name is the one that the linker finds with -lNAME.
16146 library_names_spec=$lt_library_names_spec
16148 # The coded name of the library, if different from the real name.
16149 soname_spec=$lt_soname_spec
16151 # Commands used to build and install an old-style archive.
16153 old_archive_cmds=$lt_old_archive_cmds_F77
16154 old_postinstall_cmds=$lt_old_postinstall_cmds
16155 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16157 # Create an old-style archive from a shared archive.
16158 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16160 # Create a temporary old-style archive to link instead of a shared archive.
16161 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16163 # Commands used to build and install a shared archive.
16164 archive_cmds=$lt_archive_cmds_F77
16165 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16166 postinstall_cmds=$lt_postinstall_cmds
16167 postuninstall_cmds=$lt_postuninstall_cmds
16169 # Commands used to build a loadable module (assumed same as above if empty)
16170 module_cmds=$lt_module_cmds_F77
16171 module_expsym_cmds=$lt_module_expsym_cmds_F77
16173 # Commands to strip libraries.
16174 old_striplib=$lt_old_striplib
16175 striplib=$lt_striplib
16177 # Dependencies to place before the objects being linked to create a
16179 predep_objects=$lt_predep_objects_F77
16181 # Dependencies to place after the objects being linked to create a
16183 postdep_objects=$lt_postdep_objects_F77
16185 # Dependencies to place before the objects being linked to create a
16187 predeps=$lt_predeps_F77
16189 # Dependencies to place after the objects being linked to create a
16191 postdeps=$lt_postdeps_F77
16193 # The library search path used internally by the compiler when linking
16194 # a shared library.
16195 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16197 # Method to check whether dependent libraries are shared objects.
16198 deplibs_check_method=$lt_deplibs_check_method
16200 # Command to use when deplibs_check_method == file_magic.
16201 file_magic_cmd=$lt_file_magic_cmd
16203 # Flag that allows shared libraries with undefined symbols to be built.
16204 allow_undefined_flag=$lt_allow_undefined_flag_F77
16206 # Flag that forces no undefined symbols.
16207 no_undefined_flag=$lt_no_undefined_flag_F77
16209 # Commands used to finish a libtool library installation in a directory.
16210 finish_cmds=$lt_finish_cmds
16212 # Same as above, but a single script fragment to be evaled but not shown.
16213 finish_eval=$lt_finish_eval
16215 # Take the output of nm and produce a listing of raw symbols and C names.
16216 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16218 # Transform the output of nm in a proper C declaration
16219 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16221 # Transform the output of nm in a C name address pair
16222 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16224 # This is the shared library runtime path variable.
16225 runpath_var=$runpath_var
16227 # This is the shared library path variable.
16228 shlibpath_var=$shlibpath_var
16230 # Is shlibpath searched before the hard-coded library search path?
16231 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16233 # How to hardcode a shared library path into an executable.
16234 hardcode_action=$hardcode_action_F77
16236 # Whether we should hardcode library paths into libraries.
16237 hardcode_into_libs=$hardcode_into_libs
16239 # Flag to hardcode \$libdir into a binary during linking.
16240 # This must work even if \$libdir does not exist.
16241 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16243 # If ld is used when linking, flag to hardcode \$libdir into
16244 # a binary during linking. This must work even if \$libdir does
16246 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16248 # Whether we need a single -rpath flag with a separated argument.
16249 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16251 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16252 # resulting binary.
16253 hardcode_direct=$hardcode_direct_F77
16255 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16256 # resulting binary.
16257 hardcode_minus_L=$hardcode_minus_L_F77
16259 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16260 # the resulting binary.
16261 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16263 # Set to yes if building a shared library automatically hardcodes DIR into the library
16264 # and all subsequent libraries and executables linked against it.
16265 hardcode_automatic=$hardcode_automatic_F77
16267 # Variables whose values should be saved in libtool wrapper scripts and
16268 # restored at relink time.
16269 variables_saved_for_relink="$variables_saved_for_relink"
16271 # Whether libtool must link a program against all its dependency libraries.
16272 link_all_deplibs=$link_all_deplibs_F77
16274 # Compile-time system search path for libraries
16275 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16277 # Run-time system search path for libraries
16278 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16280 # Fix the shell variable \$srcfile for the compiler.
16281 fix_srcfile_path="$fix_srcfile_path_F77"
16283 # Set to yes if exported symbols are required.
16284 always_export_symbols=$always_export_symbols_F77
16286 # The commands to list exported symbols.
16287 export_symbols_cmds=$lt_export_symbols_cmds_F77
16289 # The commands to extract the exported symbol list from a shared archive.
16290 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16292 # Symbols that should not be listed in the preloaded symbols.
16293 exclude_expsyms=$lt_exclude_expsyms_F77
16295 # Symbols that must always be exported.
16296 include_expsyms=$lt_include_expsyms_F77
16298 # ### END LIBTOOL TAG CONFIG: $tagname
16304 # If there is no Makefile yet, we rely on a make rule to execute
16305 # `config.status --recheck' to rerun these tests and create the
16306 # libtool script then.
16307 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16308 if test -f "$ltmain_in"; then
16309 test -f Makefile && make "$ltmain"
16315 ac_cpp='$CPP $CPPFLAGS'
16316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16328 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16331 # Source file extension for Java test sources.
16334 # Object file extension for compiled Java test sources.
16338 # Code to be used in simple compile tests
16339 lt_simple_compile_test_code="class foo {}\n"
16341 # Code to be used in simple link tests
16342 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16344 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16346 # If no C compiler was specified, use CC.
16349 # If no C compiler flags were specified, use CFLAGS.
16350 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16352 # Allow CC to be a program name with arguments.
16356 # save warnings/boilerplate of simple test code
16357 ac_outfile=conftest.$ac_objext
16358 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16359 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16360 _lt_compiler_boilerplate=`cat conftest.err`
16363 ac_outfile=conftest.$ac_objext
16364 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16365 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16366 _lt_linker_boilerplate=`cat conftest.err`
16370 # Allow CC to be a program name with arguments.
16375 for cc_temp in $compiler""; do
16377 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16378 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16383 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16386 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16387 archive_cmds_need_lc_GCJ=no
16389 old_archive_cmds_GCJ=$old_archive_cmds
16392 lt_prog_compiler_no_builtin_flag_GCJ=
16394 if test "$GCC" = yes; then
16395 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16398 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16399 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16400 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16401 echo $ECHO_N "(cached) $ECHO_C" >&6
16403 lt_cv_prog_compiler_rtti_exceptions=no
16404 ac_outfile=conftest.$ac_objext
16405 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16406 lt_compiler_flag="-fno-rtti -fno-exceptions"
16407 # Insert the option either (1) after the last *FLAGS variable, or
16408 # (2) before a word containing "conftest.", or (3) at the end.
16409 # Note that $ac_compile itself does not contain backslashes and begins
16410 # with a dollar sign (not a hyphen), so the echo should work correctly.
16411 # The option is referenced via a variable to avoid confusing sed.
16412 lt_compile=`echo "$ac_compile" | $SED \
16413 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16414 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16415 -e 's:$: $lt_compiler_flag:'`
16416 (eval echo "\"\$as_me:16416: $lt_compile\"" >&5)
16417 (eval "$lt_compile" 2>conftest.err)
16419 cat conftest.err >&5
16420 echo "$as_me:16420: \$? = $ac_status" >&5
16421 if (exit $ac_status) && test -s "$ac_outfile"; then
16422 # The compiler can only warn and ignore the option if not recognized
16423 # So say no if there are warnings other than the usual output.
16424 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16425 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16426 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16427 lt_cv_prog_compiler_rtti_exceptions=yes
16433 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16434 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16436 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16437 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16444 lt_prog_compiler_wl_GCJ=
16445 lt_prog_compiler_pic_GCJ=
16446 lt_prog_compiler_static_GCJ=
16448 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16449 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16451 if test "$GCC" = yes; then
16452 lt_prog_compiler_wl_GCJ='-Wl,'
16453 lt_prog_compiler_static_GCJ='-static'
16457 # All AIX code is PIC.
16458 if test "$host_cpu" = ia64; then
16459 # AIX 5 now supports IA64 processor
16460 lt_prog_compiler_static_GCJ='-Bstatic'
16465 # FIXME: we need at least 68020 code to build shared libraries, but
16466 # adding the `-m68020' flag to GCC prevents building anything better,
16468 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16471 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16472 # PIC is the default for these OSes.
16475 mingw* | pw32* | os2*)
16476 # This hack is so that the source file can tell whether it is being
16477 # built for inclusion in a dll (and should export symbols for example).
16478 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16481 darwin* | rhapsody*)
16482 # PIC is the default on this platform
16483 # Common symbols not allowed in MH_DYLIB files
16484 lt_prog_compiler_pic_GCJ='-fno-common'
16488 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16489 # Instead, we relocate shared libraries at runtime.
16493 # Just because we use GCC doesn't mean we suddenly get shared libraries
16494 # on systems that don't support them.
16495 lt_prog_compiler_can_build_shared_GCJ=no
16500 if test -d /usr/nec; then
16501 lt_prog_compiler_pic_GCJ=-Kconform_pic
16506 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16507 # not for PA HP-UX.
16513 lt_prog_compiler_pic_GCJ='-fPIC'
16519 lt_prog_compiler_pic_GCJ='-fPIC'
16523 # PORTME Check for flag to pass linker flags through the system compiler.
16526 lt_prog_compiler_wl_GCJ='-Wl,'
16527 if test "$host_cpu" = ia64; then
16528 # AIX 5 now supports IA64 processor
16529 lt_prog_compiler_static_GCJ='-Bstatic'
16531 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16535 # PIC is the default on this platform
16536 # Common symbols not allowed in MH_DYLIB files
16537 case $cc_basename in
16539 lt_prog_compiler_pic_GCJ='-qnocommon'
16540 lt_prog_compiler_wl_GCJ='-Wl,'
16545 mingw* | pw32* | os2*)
16546 # This hack is so that the source file can tell whether it is being
16547 # built for inclusion in a dll (and should export symbols for example).
16548 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16551 hpux9* | hpux10* | hpux11*)
16552 lt_prog_compiler_wl_GCJ='-Wl,'
16553 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16554 # not for PA HP-UX.
16560 lt_prog_compiler_pic_GCJ='+Z'
16563 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16564 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16567 irix5* | irix6* | nonstopux*)
16568 lt_prog_compiler_wl_GCJ='-Wl,'
16569 # PIC (with -KPIC) is the default.
16570 lt_prog_compiler_static_GCJ='-non_shared'
16574 lt_prog_compiler_pic_GCJ='-KPIC'
16575 lt_prog_compiler_static_GCJ='-Bstatic'
16578 linux* | k*bsd*-gnu)
16579 case $cc_basename in
16581 lt_prog_compiler_wl_GCJ='-Wl,'
16582 lt_prog_compiler_pic_GCJ='-KPIC'
16583 lt_prog_compiler_static_GCJ='-static'
16585 pgcc* | pgf77* | pgf90* | pgf95*)
16586 # Portland Group compilers (*not* the Pentium gcc compiler,
16587 # which looks to be a dead project)
16588 lt_prog_compiler_wl_GCJ='-Wl,'
16589 lt_prog_compiler_pic_GCJ='-fpic'
16590 lt_prog_compiler_static_GCJ='-Bstatic'
16593 lt_prog_compiler_wl_GCJ='-Wl,'
16594 # All Alpha code is PIC.
16595 lt_prog_compiler_static_GCJ='-non_shared'
16600 osf3* | osf4* | osf5*)
16601 lt_prog_compiler_wl_GCJ='-Wl,'
16602 # All OSF/1 code is PIC.
16603 lt_prog_compiler_static_GCJ='-non_shared'
16607 lt_prog_compiler_pic_GCJ='-KPIC'
16608 lt_prog_compiler_static_GCJ='-Bstatic'
16609 case $cc_basename in
16610 f77* | f90* | f95*)
16611 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16613 lt_prog_compiler_wl_GCJ='-Wl,';;
16618 lt_prog_compiler_wl_GCJ='-Qoption ld '
16619 lt_prog_compiler_pic_GCJ='-PIC'
16620 lt_prog_compiler_static_GCJ='-Bstatic'
16623 sysv4 | sysv4.2uw2* | sysv4.3*)
16624 lt_prog_compiler_wl_GCJ='-Wl,'
16625 lt_prog_compiler_pic_GCJ='-KPIC'
16626 lt_prog_compiler_static_GCJ='-Bstatic'
16630 if test -d /usr/nec ;then
16631 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16632 lt_prog_compiler_static_GCJ='-Bstatic'
16636 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16637 lt_prog_compiler_wl_GCJ='-Wl,'
16638 lt_prog_compiler_pic_GCJ='-KPIC'
16639 lt_prog_compiler_static_GCJ='-Bstatic'
16643 lt_prog_compiler_wl_GCJ='-Wl,'
16644 lt_prog_compiler_can_build_shared_GCJ=no
16648 lt_prog_compiler_pic_GCJ='-pic'
16649 lt_prog_compiler_static_GCJ='-Bstatic'
16653 lt_prog_compiler_can_build_shared_GCJ=no
16658 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16659 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16662 # Check to make sure the PIC flag actually works.
16664 if test -n "$lt_prog_compiler_pic_GCJ"; then
16666 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16667 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16668 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16669 echo $ECHO_N "(cached) $ECHO_C" >&6
16671 lt_prog_compiler_pic_works_GCJ=no
16672 ac_outfile=conftest.$ac_objext
16673 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16674 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16675 # Insert the option either (1) after the last *FLAGS variable, or
16676 # (2) before a word containing "conftest.", or (3) at the end.
16677 # Note that $ac_compile itself does not contain backslashes and begins
16678 # with a dollar sign (not a hyphen), so the echo should work correctly.
16679 # The option is referenced via a variable to avoid confusing sed.
16680 lt_compile=`echo "$ac_compile" | $SED \
16681 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16682 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16683 -e 's:$: $lt_compiler_flag:'`
16684 (eval echo "\"\$as_me:16684: $lt_compile\"" >&5)
16685 (eval "$lt_compile" 2>conftest.err)
16687 cat conftest.err >&5
16688 echo "$as_me:16688: \$? = $ac_status" >&5
16689 if (exit $ac_status) && test -s "$ac_outfile"; then
16690 # The compiler can only warn and ignore the option if not recognized
16691 # So say no if there are warnings other than the usual output.
16692 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16693 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16694 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16695 lt_prog_compiler_pic_works_GCJ=yes
16701 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16702 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16704 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16705 case $lt_prog_compiler_pic_GCJ in
16707 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16710 lt_prog_compiler_pic_GCJ=
16711 lt_prog_compiler_can_build_shared_GCJ=no
16716 # For platforms which do not support PIC, -DPIC is meaningless:
16718 lt_prog_compiler_pic_GCJ=
16721 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16726 # Check to make sure the static flag actually works.
16728 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16729 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16730 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16731 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16732 echo $ECHO_N "(cached) $ECHO_C" >&6
16734 lt_prog_compiler_static_works_GCJ=no
16735 save_LDFLAGS="$LDFLAGS"
16736 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16737 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16738 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16739 # The linker can only warn and ignore the option if not recognized
16740 # So say no if there are warnings
16741 if test -s conftest.err; then
16742 # Append any errors to the config.log.
16743 cat conftest.err 1>&5
16744 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16745 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16746 if diff conftest.exp conftest.er2 >/dev/null; then
16747 lt_prog_compiler_static_works_GCJ=yes
16750 lt_prog_compiler_static_works_GCJ=yes
16754 LDFLAGS="$save_LDFLAGS"
16757 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16758 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16760 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16763 lt_prog_compiler_static_GCJ=
16767 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16768 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16769 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16770 echo $ECHO_N "(cached) $ECHO_C" >&6
16772 lt_cv_prog_compiler_c_o_GCJ=no
16773 $rm -r conftest 2>/dev/null
16777 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16779 lt_compiler_flag="-o out/conftest2.$ac_objext"
16780 # Insert the option either (1) after the last *FLAGS variable, or
16781 # (2) before a word containing "conftest.", or (3) at the end.
16782 # Note that $ac_compile itself does not contain backslashes and begins
16783 # with a dollar sign (not a hyphen), so the echo should work correctly.
16784 lt_compile=`echo "$ac_compile" | $SED \
16785 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16786 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16787 -e 's:$: $lt_compiler_flag:'`
16788 (eval echo "\"\$as_me:16788: $lt_compile\"" >&5)
16789 (eval "$lt_compile" 2>out/conftest.err)
16791 cat out/conftest.err >&5
16792 echo "$as_me:16792: \$? = $ac_status" >&5
16793 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16795 # The compiler can only warn and ignore the option if not recognized
16796 # So say no if there are warnings
16797 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16798 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16799 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16800 lt_cv_prog_compiler_c_o_GCJ=yes
16805 # SGI C++ compiler will create directory out/ii_files/ for
16806 # template instantiation
16807 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16808 $rm out/* && rmdir out
16814 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16815 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16818 hard_links="nottested"
16819 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16820 # do not overwrite the value of need_locks provided by the user
16821 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16822 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16825 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16827 ln conftest.a conftest.b 2>&5 || hard_links=no
16828 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16829 { echo "$as_me:$LINENO: result: $hard_links" >&5
16830 echo "${ECHO_T}$hard_links" >&6; }
16831 if test "$hard_links" = no; then
16832 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16833 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16840 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16841 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16844 allow_undefined_flag_GCJ=
16845 enable_shared_with_static_runtimes_GCJ=no
16847 archive_expsym_cmds_GCJ=
16848 old_archive_From_new_cmds_GCJ=
16849 old_archive_from_expsyms_cmds_GCJ=
16850 export_dynamic_flag_spec_GCJ=
16851 whole_archive_flag_spec_GCJ=
16852 thread_safe_flag_spec_GCJ=
16853 hardcode_libdir_flag_spec_GCJ=
16854 hardcode_libdir_flag_spec_ld_GCJ=
16855 hardcode_libdir_separator_GCJ=
16856 hardcode_direct_GCJ=no
16857 hardcode_minus_L_GCJ=no
16858 hardcode_shlibpath_var_GCJ=unsupported
16859 link_all_deplibs_GCJ=unknown
16860 hardcode_automatic_GCJ=no
16862 module_expsym_cmds_GCJ=
16863 always_export_symbols_GCJ=no
16864 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16865 # include_expsyms should be a list of space-separated symbols to be *always*
16866 # included in the symbol list
16867 include_expsyms_GCJ=
16868 # exclude_expsyms can be an extended regexp of symbols to exclude
16869 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16870 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16871 # as well as any symbol that contains `d'.
16872 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16873 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16874 # platforms (ab)use it in PIC code, but their linkers get confused if
16875 # the symbol is explicitly referenced. Since portable code cannot
16876 # rely on this symbol name, it's probably fine to never include it in
16877 # preloaded symbol tables.
16878 extract_expsyms_cmds=
16879 # Just being paranoid about ensuring that cc_basename is set.
16880 for cc_temp in $compiler""; do
16882 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16883 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16888 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16891 cygwin* | mingw* | pw32*)
16892 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16893 # When not using gcc, we currently assume that we are using
16894 # Microsoft Visual C++.
16895 if test "$GCC" != yes; then
16900 # we just hope/assume this is gcc and not c89 (= MSVC++)
16909 if test "$with_gnu_ld" = yes; then
16910 # If archive_cmds runs LD, not CC, wlarc should be empty
16913 # Set some defaults for GNU ld with shared library support. These
16914 # are reset later if shared libraries are not supported. Putting them
16915 # here allows them to be overridden if necessary.
16916 runpath_var=LD_RUN_PATH
16917 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16918 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16919 # ancient GNU ld didn't support --whole-archive et. al.
16920 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16921 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16923 whole_archive_flag_spec_GCJ=
16925 supports_anon_versioning=no
16926 case `$LD -v 2>/dev/null` in
16927 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16928 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16929 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16930 *\ 2.11.*) ;; # other 2.11 versions
16931 *) supports_anon_versioning=yes ;;
16934 # See if GNU ld supports shared libraries.
16936 aix3* | aix4* | aix5*)
16937 # On AIX/PPC, the GNU linker is very broken
16938 if test "$host_cpu" != ia64; then
16942 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16943 *** to be unable to reliably create shared libraries on AIX.
16944 *** Therefore, libtool is disabling shared libraries support. If you
16945 *** really care for shared libraries, you may want to modify your PATH
16946 *** so that a non-GNU linker is found, and then restart.
16953 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)'
16954 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16955 hardcode_minus_L_GCJ=yes
16957 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16958 # that the semantics of dynamic libraries on AmigaOS, at least up
16959 # to version 4, is to share data among multiple programs linked
16960 # with the same dynamic library. Since this doesn't match the
16961 # behavior of shared libraries on other platforms, we can't use
16967 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16968 allow_undefined_flag_GCJ=unsupported
16969 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16970 # support --undefined. This deserves some investigation. FIXME
16971 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16977 cygwin* | mingw* | pw32*)
16978 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16979 # as there is no search path for DLLs.
16980 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16981 allow_undefined_flag_GCJ=unsupported
16982 always_export_symbols_GCJ=no
16983 enable_shared_with_static_runtimes_GCJ=yes
16984 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16986 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16987 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16988 # If the export-symbols file already is a .def file (1st line
16989 # is EXPORTS), use it as is; otherwise, prepend...
16990 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16991 cp $export_symbols $output_objdir/$soname.def;
16993 echo EXPORTS > $output_objdir/$soname.def;
16994 cat $export_symbols >> $output_objdir/$soname.def;
16996 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17003 hardcode_direct_GCJ=no
17004 hardcode_shlibpath_var_GCJ=no
17005 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17006 export_dynamic_flag_spec_GCJ='${wl}-E'
17007 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17008 # Instead, shared libraries are loaded at an image base (0x10000000 by
17009 # default) and relocated if they conflict, which is a slow very memory
17010 # consuming and fragmenting process. To avoid this, we pick a random,
17011 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17012 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17013 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'
17014 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'
17017 linux* | k*bsd*-gnu)
17018 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17020 case $cc_basename,$host_cpu in
17021 pgcc*) # Portland Group C compiler
17022 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'
17023 tmp_addflag=' $pic_flag'
17025 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17026 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'
17027 tmp_addflag=' $pic_flag -Mnomain' ;;
17028 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17029 tmp_addflag=' -i_dynamic' ;;
17030 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17031 tmp_addflag=' -i_dynamic -nofor_main' ;;
17032 ifc* | ifort*) # Intel Fortran compiler
17033 tmp_addflag=' -nofor_main' ;;
17035 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17037 if test $supports_anon_versioning = yes; then
17038 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17039 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17040 $echo "local: *; };" >> $output_objdir/$libname.ver~
17041 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17043 link_all_deplibs_GCJ=no
17049 netbsd* | netbsdelf*-gnu)
17050 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17051 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17054 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17055 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17060 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17064 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17065 *** create shared libraries on Solaris systems. Therefore, libtool
17066 *** is disabling shared libraries support. We urge you to upgrade GNU
17067 *** binutils to release 2.9.1 or newer. Another option is to modify
17068 *** your PATH or compiler configuration so that the native linker is
17069 *** used, and then restart.
17072 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17073 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17074 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17080 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17081 case `$LD -v 2>&1` in
17082 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17086 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17087 *** reliably create shared libraries on SCO systems. Therefore, libtool
17088 *** is disabling shared libraries support. We urge you to upgrade GNU
17089 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17090 *** your PATH or compiler configuration so that the native linker is
17091 *** used, and then restart.
17096 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17097 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17098 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17099 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17108 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17110 hardcode_direct_GCJ=yes
17111 hardcode_shlibpath_var_GCJ=no
17115 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17116 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17117 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17124 if test "$ld_shlibs_GCJ" = no; then
17126 hardcode_libdir_flag_spec_GCJ=
17127 export_dynamic_flag_spec_GCJ=
17128 whole_archive_flag_spec_GCJ=
17131 # PORTME fill in a description of your system's linker (not GNU ld)
17134 allow_undefined_flag_GCJ=unsupported
17135 always_export_symbols_GCJ=yes
17136 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'
17137 # Note: this linker hardcodes the directories in LIBPATH if there
17138 # are no directories specified by -L.
17139 hardcode_minus_L_GCJ=yes
17140 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17141 # Neither direct hardcoding nor static linking is supported with a
17143 hardcode_direct_GCJ=unsupported
17148 if test "$host_cpu" = ia64; then
17149 # On IA64, the linker does run time linking by default, so we don't
17150 # have to do anything special.
17151 aix_use_runtimelinking=no
17152 exp_sym_flag='-Bexport'
17155 # If we're using GNU nm, then we don't want the "-C" option.
17156 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17157 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17158 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'
17160 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'
17162 aix_use_runtimelinking=no
17164 # Test if we are trying to use run time linking or normal
17165 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17166 # need to do runtime linking.
17167 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17168 for ld_flag in $LDFLAGS; do
17169 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17170 aix_use_runtimelinking=yes
17177 exp_sym_flag='-bexport'
17178 no_entry_flag='-bnoentry'
17181 # When large executables or shared objects are built, AIX ld can
17182 # have problems creating the table of contents. If linking a library
17183 # or program results in "error TOC overflow" add -mminimal-toc to
17184 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17185 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17187 archive_cmds_GCJ=''
17188 hardcode_direct_GCJ=yes
17189 hardcode_libdir_separator_GCJ=':'
17190 link_all_deplibs_GCJ=yes
17192 if test "$GCC" = yes; then
17193 case $host_os in aix4.[012]|aix4.[012].*)
17194 # We only want to do this on AIX 4.2 and lower, the check
17195 # below for broken collect2 doesn't work under 4.3+
17196 collect2name=`${CC} -print-prog-name=collect2`
17197 if test -f "$collect2name" && \
17198 strings "$collect2name" | grep resolve_lib_name >/dev/null
17200 # We have reworked collect2
17201 hardcode_direct_GCJ=yes
17203 # We have old collect2
17204 hardcode_direct_GCJ=unsupported
17205 # It fails to find uninstalled libraries when the uninstalled
17206 # path is not listed in the libpath. Setting hardcode_minus_L
17207 # to unsupported forces relinking
17208 hardcode_minus_L_GCJ=yes
17209 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17210 hardcode_libdir_separator_GCJ=
17214 shared_flag='-shared'
17215 if test "$aix_use_runtimelinking" = yes; then
17216 shared_flag="$shared_flag "'${wl}-G'
17220 if test "$host_cpu" = ia64; then
17221 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17222 # chokes on -Wl,-G. The following line is correct:
17225 if test "$aix_use_runtimelinking" = yes; then
17226 shared_flag='${wl}-G'
17228 shared_flag='${wl}-bM:SRE'
17233 # It seems that -bexpall does not export symbols beginning with
17234 # underscore (_), so it is better to generate a list of symbols to export.
17235 always_export_symbols_GCJ=yes
17236 if test "$aix_use_runtimelinking" = yes; then
17237 # Warning - without using the other runtime loading flags (-brtl),
17238 # -berok will link without error, but may produce a broken library.
17239 allow_undefined_flag_GCJ='-berok'
17240 # Determine the default libpath from the value encoded in an empty executable.
17241 cat >conftest.$ac_ext <<_ACEOF
17244 cat confdefs.h >>conftest.$ac_ext
17245 cat >>conftest.$ac_ext <<_ACEOF
17246 /* end confdefs.h. */
17256 rm -f conftest.$ac_objext conftest$ac_exeext
17257 if { (ac_try="$ac_link"
17258 case "(($ac_try" in
17259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17260 *) ac_try_echo=$ac_try;;
17262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17263 (eval "$ac_link") 2>conftest.er1
17265 grep -v '^ *+' conftest.er1 >conftest.err
17267 cat conftest.err >&5
17268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17269 (exit $ac_status); } && {
17270 test -z "$ac_c_werror_flag" ||
17271 test ! -s conftest.err
17272 } && test -s conftest$ac_exeext &&
17273 $as_test_x conftest$ac_exeext; then
17275 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17277 # Check for a 64-bit object if we didn't find anything.
17278 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17281 echo "$as_me: failed program was:" >&5
17282 sed 's/^/| /' conftest.$ac_ext >&5
17287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17288 conftest$ac_exeext conftest.$ac_ext
17289 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17291 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17292 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"
17294 if test "$host_cpu" = ia64; then
17295 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17296 allow_undefined_flag_GCJ="-z nodefs"
17297 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"
17299 # Determine the default libpath from the value encoded in an empty executable.
17300 cat >conftest.$ac_ext <<_ACEOF
17303 cat confdefs.h >>conftest.$ac_ext
17304 cat >>conftest.$ac_ext <<_ACEOF
17305 /* end confdefs.h. */
17315 rm -f conftest.$ac_objext conftest$ac_exeext
17316 if { (ac_try="$ac_link"
17317 case "(($ac_try" in
17318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17319 *) ac_try_echo=$ac_try;;
17321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17322 (eval "$ac_link") 2>conftest.er1
17324 grep -v '^ *+' conftest.er1 >conftest.err
17326 cat conftest.err >&5
17327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328 (exit $ac_status); } && {
17329 test -z "$ac_c_werror_flag" ||
17330 test ! -s conftest.err
17331 } && test -s conftest$ac_exeext &&
17332 $as_test_x conftest$ac_exeext; then
17334 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17336 # Check for a 64-bit object if we didn't find anything.
17337 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17340 echo "$as_me: failed program was:" >&5
17341 sed 's/^/| /' conftest.$ac_ext >&5
17346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17347 conftest$ac_exeext conftest.$ac_ext
17348 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17350 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17351 # Warning - without using the other run time loading flags,
17352 # -berok will link without error, but may produce a broken library.
17353 no_undefined_flag_GCJ=' ${wl}-bernotok'
17354 allow_undefined_flag_GCJ=' ${wl}-berok'
17355 # Exported symbols can be pulled into shared objects from archives
17356 whole_archive_flag_spec_GCJ='$convenience'
17357 archive_cmds_need_lc_GCJ=yes
17358 # This is similar to how AIX traditionally builds its shared libraries.
17359 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'
17365 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)'
17366 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17367 hardcode_minus_L_GCJ=yes
17368 # see comment about different semantics on the GNU ld section
17373 export_dynamic_flag_spec_GCJ=-rdynamic
17376 cygwin* | mingw* | pw32*)
17377 # When not using gcc, we currently assume that we are using
17378 # Microsoft Visual C++.
17379 # hardcode_libdir_flag_spec is actually meaningless, as there is
17380 # no search path for DLLs.
17381 hardcode_libdir_flag_spec_GCJ=' '
17382 allow_undefined_flag_GCJ=unsupported
17383 # Tell ltmain to make .lib files, not .a files.
17385 # Tell ltmain to make .dll files, not .so files.
17387 # FIXME: Setting linknames here is a bad hack.
17388 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17389 # The linker will automatically build a .lib file if we build a DLL.
17390 old_archive_From_new_cmds_GCJ='true'
17391 # FIXME: Should let the user specify the lib program.
17392 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17393 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17394 enable_shared_with_static_runtimes_GCJ=yes
17397 darwin* | rhapsody*)
17399 rhapsody* | darwin1.[012])
17400 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17403 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17404 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17406 case ${MACOSX_DEPLOYMENT_TARGET} in
17408 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17411 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17417 archive_cmds_need_lc_GCJ=no
17418 hardcode_direct_GCJ=no
17419 hardcode_automatic_GCJ=yes
17420 hardcode_shlibpath_var_GCJ=unsupported
17421 whole_archive_flag_spec_GCJ=''
17422 link_all_deplibs_GCJ=yes
17423 if test "$GCC" = yes ; then
17424 output_verbose_link_cmd='echo'
17425 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17426 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17427 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17428 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17429 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}'
17431 case $cc_basename in
17433 output_verbose_link_cmd='echo'
17434 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17435 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17436 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17437 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17438 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}'
17448 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17449 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17450 hardcode_shlibpath_var_GCJ=no
17457 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17458 # support. Future versions do this automatically, but an explicit c++rt0.o
17459 # does not break anything, and helps significantly (at the cost of a little
17462 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17463 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17464 hardcode_direct_GCJ=yes
17465 hardcode_shlibpath_var_GCJ=no
17468 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17470 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17471 hardcode_direct_GCJ=yes
17472 hardcode_minus_L_GCJ=yes
17473 hardcode_shlibpath_var_GCJ=no
17476 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17477 freebsd* | dragonfly*)
17478 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17479 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17480 hardcode_direct_GCJ=yes
17481 hardcode_shlibpath_var_GCJ=no
17485 if test "$GCC" = yes; then
17486 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'
17488 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'
17490 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17491 hardcode_libdir_separator_GCJ=:
17492 hardcode_direct_GCJ=yes
17494 # hardcode_minus_L: Not really in the search PATH,
17495 # but as the default location of the library.
17496 hardcode_minus_L_GCJ=yes
17497 export_dynamic_flag_spec_GCJ='${wl}-E'
17501 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17502 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17504 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17506 if test "$with_gnu_ld" = no; then
17507 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17508 hardcode_libdir_separator_GCJ=:
17510 hardcode_direct_GCJ=yes
17511 export_dynamic_flag_spec_GCJ='${wl}-E'
17513 # hardcode_minus_L: Not really in the search PATH,
17514 # but as the default location of the library.
17515 hardcode_minus_L_GCJ=yes
17520 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17523 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17526 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17529 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17535 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17538 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17541 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17545 if test "$with_gnu_ld" = no; then
17546 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17547 hardcode_libdir_separator_GCJ=:
17551 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17552 hardcode_direct_GCJ=no
17553 hardcode_shlibpath_var_GCJ=no
17556 hardcode_direct_GCJ=yes
17557 export_dynamic_flag_spec_GCJ='${wl}-E'
17559 # hardcode_minus_L: Not really in the search PATH,
17560 # but as the default location of the library.
17561 hardcode_minus_L_GCJ=yes
17567 irix5* | irix6* | nonstopux*)
17568 if test "$GCC" = yes; then
17569 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'
17571 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'
17572 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17574 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17575 hardcode_libdir_separator_GCJ=:
17576 link_all_deplibs_GCJ=yes
17579 netbsd* | netbsdelf*-gnu)
17580 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17581 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17583 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17585 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17586 hardcode_direct_GCJ=yes
17587 hardcode_shlibpath_var_GCJ=no
17591 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17592 hardcode_direct_GCJ=yes
17593 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17594 hardcode_libdir_separator_GCJ=:
17595 hardcode_shlibpath_var_GCJ=no
17599 hardcode_direct_GCJ=yes
17600 hardcode_shlibpath_var_GCJ=no
17601 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17602 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17603 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17604 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17605 export_dynamic_flag_spec_GCJ='${wl}-E'
17608 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17609 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17610 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17613 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17614 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17621 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17622 hardcode_minus_L_GCJ=yes
17623 allow_undefined_flag_GCJ=unsupported
17624 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'
17625 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17629 if test "$GCC" = yes; then
17630 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17631 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'
17633 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17634 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'
17636 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17637 hardcode_libdir_separator_GCJ=:
17640 osf4* | osf5*) # as osf3* with the addition of -msym flag
17641 if test "$GCC" = yes; then
17642 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17643 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'
17644 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17646 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17647 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'
17648 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~
17649 $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'
17651 # Both c and cxx compiler support -rpath directly
17652 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17654 hardcode_libdir_separator_GCJ=:
17658 no_undefined_flag_GCJ=' -z text'
17659 if test "$GCC" = yes; then
17661 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17662 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17663 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17666 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17667 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17668 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17670 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17671 hardcode_shlibpath_var_GCJ=no
17673 solaris2.[0-5] | solaris2.[0-5].*) ;;
17675 # The compiler driver will combine linker options so we
17676 # cannot just pass the convience library names through
17677 # without $wl, iff we do not link with $LD.
17678 # Luckily, gcc supports the same syntax we need for Sun Studio.
17679 # Supported since Solaris 2.6 (maybe 2.5.1?)
17682 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17684 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17687 link_all_deplibs_GCJ=yes
17691 if test "x$host_vendor" = xsequent; then
17692 # Use $CC to link under sequent, because it throws in some extra .o
17693 # files that make .init and .fini sections work.
17694 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17696 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17698 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17699 hardcode_direct_GCJ=yes
17700 hardcode_minus_L_GCJ=yes
17701 hardcode_shlibpath_var_GCJ=no
17705 case $host_vendor in
17707 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17708 hardcode_direct_GCJ=yes # is this really true???
17711 ## LD is ld it makes a PLAMLIB
17712 ## CC just makes a GrossModule.
17713 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17714 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17715 hardcode_direct_GCJ=no
17718 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17719 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17722 runpath_var='LD_RUN_PATH'
17723 hardcode_shlibpath_var_GCJ=no
17727 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17728 hardcode_shlibpath_var_GCJ=no
17729 export_dynamic_flag_spec_GCJ='-Bexport'
17733 if test -d /usr/nec; then
17734 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17735 hardcode_shlibpath_var_GCJ=no
17736 runpath_var=LD_RUN_PATH
17737 hardcode_runpath_var=yes
17742 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17743 no_undefined_flag_GCJ='${wl}-z,text'
17744 archive_cmds_need_lc_GCJ=no
17745 hardcode_shlibpath_var_GCJ=no
17746 runpath_var='LD_RUN_PATH'
17748 if test "$GCC" = yes; then
17749 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17750 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17752 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17753 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17757 sysv5* | sco3.2v5* | sco5v6*)
17758 # Note: We can NOT use -z defs as we might desire, because we do not
17759 # link with -lc, and that would cause any symbols used from libc to
17760 # always be unresolved, which means just about no library would
17761 # ever link correctly. If we're not using GNU ld we use -z text
17762 # though, which does catch some bad symbols but isn't as heavy-handed
17764 no_undefined_flag_GCJ='${wl}-z,text'
17765 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17766 archive_cmds_need_lc_GCJ=no
17767 hardcode_shlibpath_var_GCJ=no
17768 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17769 hardcode_libdir_separator_GCJ=':'
17770 link_all_deplibs_GCJ=yes
17771 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17772 runpath_var='LD_RUN_PATH'
17774 if test "$GCC" = yes; then
17775 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17776 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17778 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17779 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17784 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17785 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17786 hardcode_shlibpath_var_GCJ=no
17795 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17796 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17797 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17800 # Do we need to explicitly link libc?
17802 case "x$archive_cmds_need_lc_GCJ" in
17804 # Assume -lc should be added
17805 archive_cmds_need_lc_GCJ=yes
17807 if test "$enable_shared" = yes && test "$GCC" = yes; then
17808 case $archive_cmds_GCJ in
17810 # FIXME: we may have to deal with multi-command sequences.
17813 # Test whether the compiler implicitly links with -lc since on some
17814 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17815 # to ld, don't add -lc before -lgcc.
17816 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17817 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17819 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17822 (eval $ac_compile) 2>&5
17824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825 (exit $ac_status); } 2>conftest.err; then
17828 libobjs=conftest.$ac_objext
17830 wl=$lt_prog_compiler_wl_GCJ
17831 pic_flag=$lt_prog_compiler_pic_GCJ
17837 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17838 allow_undefined_flag_GCJ=
17839 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17840 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843 (exit $ac_status); }
17845 archive_cmds_need_lc_GCJ=no
17847 archive_cmds_need_lc_GCJ=yes
17849 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17851 cat conftest.err 1>&5
17854 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17855 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17862 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17863 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17864 library_names_spec=
17865 libname_spec='lib$name'
17869 postuninstall_cmds=
17873 shlibpath_overrides_runpath=unknown
17875 dynamic_linker="$host_os ld.so"
17876 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17877 if test "$GCC" = yes; then
17878 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17879 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17880 # if the path contains ";" then we assume it to be the separator
17881 # otherwise default to the standard path separator (i.e. ":") - it is
17882 # assumed that no part of a normal pathname contains ";" but that should
17883 # okay in the real world where ";" in dirpaths is itself problematic.
17884 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17886 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17889 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17891 need_lib_prefix=unknown
17892 hardcode_into_libs=no
17894 # when you set need_version to no, make sure it does not cause -set_version
17895 # flags to be left without arguments
17896 need_version=unknown
17901 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17902 shlibpath_var=LIBPATH
17904 # AIX 3 has no versioning support, so we append a major version to the name.
17905 soname_spec='${libname}${release}${shared_ext}$major'
17912 hardcode_into_libs=yes
17913 if test "$host_cpu" = ia64; then
17914 # AIX 5 supports IA64
17915 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17916 shlibpath_var=LD_LIBRARY_PATH
17918 # With GCC up to 2.95.x, collect2 would create an import file
17919 # for dependence libraries. The import file would start with
17920 # the line `#! .'. This would cause the generated library to
17921 # depend on `.', always an invalid library. This was fixed in
17922 # development snapshots of GCC prior to 3.0.
17924 aix4 | aix4.[01] | aix4.[01].*)
17925 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17927 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17930 can_build_shared=no
17934 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17935 # soname into executable. Probably we can add versioning support to
17936 # collect2, so additional links can be useful in future.
17937 if test "$aix_use_runtimelinking" = yes; then
17938 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17939 # instead of lib<name>.a to let people know that these are not
17940 # typical AIX shared libraries.
17941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17943 # We preserve .a as extension for shared libraries through AIX4.2
17944 # and later when we are not doing run time linking.
17945 library_names_spec='${libname}${release}.a $libname.a'
17946 soname_spec='${libname}${release}${shared_ext}$major'
17948 shlibpath_var=LIBPATH
17953 library_names_spec='$libname.ixlibrary $libname.a'
17954 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17955 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'
17959 library_names_spec='${libname}${shared_ext}'
17960 dynamic_linker="$host_os ld.so"
17961 shlibpath_var=LIBRARY_PATH
17967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17968 soname_spec='${libname}${release}${shared_ext}$major'
17969 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17970 shlibpath_var=LD_LIBRARY_PATH
17971 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17972 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17973 # the default ld.so.conf also contains /usr/contrib/lib and
17974 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17975 # libtool to hard-code these into programs
17978 cygwin* | mingw* | pw32*)
17979 version_type=windows
17984 case $GCC,$host_os in
17985 yes,cygwin* | yes,mingw* | yes,pw32*)
17986 library_names_spec='$libname.dll.a'
17987 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17988 postinstall_cmds='base_file=`basename \${file}`~
17989 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17990 dldir=$destdir/`dirname \$dlpath`~
17991 test -d \$dldir || mkdir -p \$dldir~
17992 $install_prog $dir/$dlname \$dldir/$dlname~
17993 chmod a+x \$dldir/$dlname'
17994 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17995 dlpath=$dir/\$dldll~
17997 shlibpath_overrides_runpath=yes
18001 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18002 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18003 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18006 # MinGW DLLs use traditional 'lib' prefix
18007 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18008 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18009 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18010 # It is most probably a Windows format PATH printed by
18011 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18012 # path with ; separators, and with drive letters. We can handle the
18013 # drive letters (cygwin fileutils understands them), so leave them,
18014 # especially as we might pass files found there to a mingw objdump,
18015 # which wouldn't understand a cygwinified path. Ahh.
18016 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18018 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18022 # pw32 DLLs use 'pw' prefix rather than 'lib'
18023 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18029 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18032 dynamic_linker='Win32 ld.exe'
18033 # FIXME: first we should search . and the directory the executable is in
18037 darwin* | rhapsody*)
18038 dynamic_linker="$host_os dyld"
18039 version_type=darwin
18042 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18043 soname_spec='${libname}${release}${major}$shared_ext'
18044 shlibpath_overrides_runpath=yes
18045 shlibpath_var=DYLD_LIBRARY_PATH
18046 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18047 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18048 if test "$GCC" = yes; then
18049 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18051 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18053 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18061 soname_spec='${libname}${release}${shared_ext}$major'
18062 shlibpath_var=LD_LIBRARY_PATH
18069 freebsd* | dragonfly*)
18070 # DragonFly does not have aout. When/if they implement a new
18071 # versioning mechanism, adjust this.
18072 if test -x /usr/bin/objformat; then
18073 objformat=`/usr/bin/objformat`
18076 freebsd[123]*) objformat=aout ;;
18077 *) objformat=elf ;;
18080 version_type=freebsd-$objformat
18081 case $version_type in
18083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18088 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18092 shlibpath_var=LD_LIBRARY_PATH
18095 shlibpath_overrides_runpath=yes
18097 freebsd3.[01]* | freebsdelf3.[01]*)
18098 shlibpath_overrides_runpath=yes
18099 hardcode_into_libs=yes
18101 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18102 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18103 shlibpath_overrides_runpath=no
18104 hardcode_into_libs=yes
18106 freebsd*) # from 4.6 on
18107 shlibpath_overrides_runpath=yes
18108 hardcode_into_libs=yes
18117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18118 soname_spec='${libname}${release}${shared_ext}$major'
18119 shlibpath_var=LD_LIBRARY_PATH
18120 hardcode_into_libs=yes
18123 hpux9* | hpux10* | hpux11*)
18124 # Give a soname corresponding to the major version so that dld.sl refuses to
18125 # link against other versions.
18132 hardcode_into_libs=yes
18133 dynamic_linker="$host_os dld.so"
18134 shlibpath_var=LD_LIBRARY_PATH
18135 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18137 soname_spec='${libname}${release}${shared_ext}$major'
18138 if test "X$HPUX_IA64_MODE" = X32; then
18139 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18141 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18143 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18147 hardcode_into_libs=yes
18148 dynamic_linker="$host_os dld.sl"
18149 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18150 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18152 soname_spec='${libname}${release}${shared_ext}$major'
18153 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18154 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18158 dynamic_linker="$host_os dld.sl"
18159 shlibpath_var=SHLIB_PATH
18160 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18162 soname_spec='${libname}${release}${shared_ext}$major'
18165 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18166 postinstall_cmds='chmod 555 $lib'
18173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18174 soname_spec='${libname}${release}${shared_ext}$major'
18175 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18176 shlibpath_var=LD_LIBRARY_PATH
18177 shlibpath_overrides_runpath=no
18178 hardcode_into_libs=yes
18181 irix5* | irix6* | nonstopux*)
18183 nonstopux*) version_type=nonstopux ;;
18185 if test "$lt_cv_prog_gnu_ld" = yes; then
18193 soname_spec='${libname}${release}${shared_ext}$major'
18194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18196 irix5* | nonstopux*)
18197 libsuff= shlibsuff=
18200 case $LD in # libtool.m4 will add one of these switches to LD
18201 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18202 libsuff= shlibsuff= libmagic=32-bit;;
18203 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18204 libsuff=32 shlibsuff=N32 libmagic=N32;;
18205 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18206 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18207 *) libsuff= shlibsuff= libmagic=never-match;;
18211 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18212 shlibpath_overrides_runpath=no
18213 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18214 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18215 hardcode_into_libs=yes
18218 # No shared lib support for Linux oldld, aout, or coff.
18219 linux*oldld* | linux*aout* | linux*coff*)
18223 # This must be Linux ELF.
18224 linux* | k*bsd*-gnu)
18228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18229 soname_spec='${libname}${release}${shared_ext}$major'
18230 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18231 shlibpath_var=LD_LIBRARY_PATH
18232 shlibpath_overrides_runpath=no
18233 # This implies no fast_install, which is unacceptable.
18234 # Some rework will be needed to allow for fast_install
18235 # before this can be enabled.
18236 hardcode_into_libs=yes
18238 # Append ld.so.conf contents to the search path
18239 if test -f /etc/ld.so.conf; then
18240 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18241 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18244 # We used to test for /lib/ld.so.1 and disable shared libraries on
18245 # powerpc, because MkLinux only supported shared libraries with the
18246 # GNU dynamic linker. Since this was broken with cross compilers,
18247 # most powerpc-linux boxes support dynamic linking these days and
18248 # people can always --disable-shared, the test was removed, and we
18249 # assume the GNU/Linux dynamic linker is in use.
18250 dynamic_linker='GNU/Linux ld.so'
18257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18258 soname_spec='${libname}${release}${shared_ext}$major'
18259 shlibpath_var=LD_LIBRARY_PATH
18260 shlibpath_overrides_runpath=no
18261 hardcode_into_libs=yes
18262 dynamic_linker='NetBSD ld.elf_so'
18269 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18271 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18272 dynamic_linker='NetBSD (a.out) ld.so'
18274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18275 soname_spec='${libname}${release}${shared_ext}$major'
18276 dynamic_linker='NetBSD ld.elf_so'
18278 shlibpath_var=LD_LIBRARY_PATH
18279 shlibpath_overrides_runpath=yes
18280 hardcode_into_libs=yes
18285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18286 shlibpath_var=LD_LIBRARY_PATH
18287 shlibpath_overrides_runpath=yes
18294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18295 soname_spec='${libname}${release}${shared_ext}$major'
18296 shlibpath_var=LD_LIBRARY_PATH
18297 shlibpath_overrides_runpath=yes
18302 sys_lib_dlsearch_path_spec="/usr/lib"
18304 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18306 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18307 *) need_version=no ;;
18309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18310 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18311 shlibpath_var=LD_LIBRARY_PATH
18312 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18314 openbsd2.[89] | openbsd2.[89].*)
18315 shlibpath_overrides_runpath=no
18318 shlibpath_overrides_runpath=yes
18322 shlibpath_overrides_runpath=yes
18327 libname_spec='$name'
18330 library_names_spec='$libname${shared_ext} $libname.a'
18331 dynamic_linker='OS/2 ld.exe'
18332 shlibpath_var=LIBPATH
18335 osf3* | osf4* | osf5*)
18339 soname_spec='${libname}${release}${shared_ext}$major'
18340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18341 shlibpath_var=LD_LIBRARY_PATH
18342 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18343 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18351 soname_spec='${libname}${release}${shared_ext}$major'
18352 shlibpath_var=LD_LIBRARY_PATH
18353 shlibpath_overrides_runpath=yes
18354 hardcode_into_libs=yes
18355 # ldd complains unless libraries are executable
18356 postinstall_cmds='chmod +x $lib'
18361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18362 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18363 shlibpath_var=LD_LIBRARY_PATH
18364 shlibpath_overrides_runpath=yes
18365 if test "$with_gnu_ld" = yes; then
18373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18374 soname_spec='${libname}${release}${shared_ext}$major'
18375 shlibpath_var=LD_LIBRARY_PATH
18376 case $host_vendor in
18378 shlibpath_overrides_runpath=no
18380 export_dynamic_flag_spec='${wl}-Blargedynsym'
18381 runpath_var=LD_RUN_PATH
18389 shlibpath_overrides_runpath=no
18390 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18396 if test -d /usr/nec ;then
18398 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18399 soname_spec='$libname${shared_ext}.$major'
18400 shlibpath_var=LD_LIBRARY_PATH
18404 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18405 version_type=freebsd-elf
18408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18409 soname_spec='${libname}${release}${shared_ext}$major'
18410 shlibpath_var=LD_LIBRARY_PATH
18411 hardcode_into_libs=yes
18412 if test "$with_gnu_ld" = yes; then
18413 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18414 shlibpath_overrides_runpath=no
18416 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18417 shlibpath_overrides_runpath=yes
18420 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18424 sys_lib_dlsearch_path_spec='/usr/lib'
18429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18430 soname_spec='${libname}${release}${shared_ext}$major'
18431 shlibpath_var=LD_LIBRARY_PATH
18438 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18439 echo "${ECHO_T}$dynamic_linker" >&6; }
18440 test "$dynamic_linker" = no && can_build_shared=no
18442 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18443 if test "$GCC" = yes; then
18444 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18447 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18448 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18449 hardcode_action_GCJ=
18450 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18451 test -n "$runpath_var_GCJ" || \
18452 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18454 # We can hardcode non-existant directories.
18455 if test "$hardcode_direct_GCJ" != no &&
18456 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18457 # have to relink, otherwise we might link with an installed library
18458 # when we should be linking with a yet-to-be-installed one
18459 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18460 test "$hardcode_minus_L_GCJ" != no; then
18461 # Linking always hardcodes the temporary library directory.
18462 hardcode_action_GCJ=relink
18464 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18465 hardcode_action_GCJ=immediate
18468 # We cannot hardcode anything, or else we can only hardcode existing
18470 hardcode_action_GCJ=unsupported
18472 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18473 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18475 if test "$hardcode_action_GCJ" = relink; then
18476 # Fast installation is not supported
18477 enable_fast_install=no
18478 elif test "$shlibpath_overrides_runpath" = yes ||
18479 test "$enable_shared" = no; then
18480 # Fast installation is not necessary
18481 enable_fast_install=needless
18485 # The else clause should only fire when bootstrapping the
18486 # libtool distribution, otherwise you forgot to ship ltmain.sh
18487 # with your package, and you will get complaints that there are
18488 # no rules to generate ltmain.sh.
18489 if test -f "$ltmain"; then
18490 # See if we are running on zsh, and set the options which allow our commands through
18491 # without removal of \ escapes.
18492 if test -n "${ZSH_VERSION+set}" ; then
18493 setopt NO_GLOB_SUBST
18495 # Now quote all the things that may contain metacharacters while being
18496 # careful not to overquote the AC_SUBSTed values. We take copies of the
18497 # variables and quote the copies for generation of the libtool script.
18498 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18500 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18501 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18502 deplibs_check_method reload_flag reload_cmds need_locks \
18503 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18504 lt_cv_sys_global_symbol_to_c_name_address \
18505 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18506 old_postinstall_cmds old_postuninstall_cmds \
18510 lt_prog_compiler_wl_GCJ \
18511 lt_prog_compiler_pic_GCJ \
18512 lt_prog_compiler_static_GCJ \
18513 lt_prog_compiler_no_builtin_flag_GCJ \
18514 export_dynamic_flag_spec_GCJ \
18515 thread_safe_flag_spec_GCJ \
18516 whole_archive_flag_spec_GCJ \
18517 enable_shared_with_static_runtimes_GCJ \
18518 old_archive_cmds_GCJ \
18519 old_archive_from_new_cmds_GCJ \
18520 predep_objects_GCJ \
18521 postdep_objects_GCJ \
18524 compiler_lib_search_path_GCJ \
18526 archive_expsym_cmds_GCJ \
18527 postinstall_cmds_GCJ \
18528 postuninstall_cmds_GCJ \
18529 old_archive_from_expsyms_cmds_GCJ \
18530 allow_undefined_flag_GCJ \
18531 no_undefined_flag_GCJ \
18532 export_symbols_cmds_GCJ \
18533 hardcode_libdir_flag_spec_GCJ \
18534 hardcode_libdir_flag_spec_ld_GCJ \
18535 hardcode_libdir_separator_GCJ \
18536 hardcode_automatic_GCJ \
18538 module_expsym_cmds_GCJ \
18539 lt_cv_prog_compiler_c_o_GCJ \
18540 exclude_expsyms_GCJ \
18541 include_expsyms_GCJ; do
18544 old_archive_cmds_GCJ | \
18545 old_archive_from_new_cmds_GCJ | \
18546 archive_cmds_GCJ | \
18547 archive_expsym_cmds_GCJ | \
18548 module_cmds_GCJ | \
18549 module_expsym_cmds_GCJ | \
18550 old_archive_from_expsyms_cmds_GCJ | \
18551 export_symbols_cmds_GCJ | \
18552 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18553 postinstall_cmds | postuninstall_cmds | \
18554 old_postinstall_cmds | old_postuninstall_cmds | \
18555 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18556 # Double-quote double-evaled strings.
18557 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18560 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18566 *'\$0 --fallback-echo"')
18567 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18573 cat <<__EOF__ >> "$cfgfile"
18574 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18576 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18578 # Shell to use when invoking shell scripts.
18581 # Whether or not to build shared libraries.
18582 build_libtool_libs=$enable_shared
18584 # Whether or not to build static libraries.
18585 build_old_libs=$enable_static
18587 # Whether or not to add -lc for building shared libraries.
18588 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18590 # Whether or not to disallow shared libs when runtime libs are static
18591 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18593 # Whether or not to optimize for fast installation.
18594 fast_install=$enable_fast_install
18597 host_alias=$host_alias
18601 # The build system.
18602 build_alias=$build_alias
18606 # An echo program that does not interpret backslashes.
18611 AR_FLAGS=$lt_AR_FLAGS
18616 # LTCC compiler flags.
18617 LTCFLAGS=$lt_LTCFLAGS
18619 # A language-specific compiler.
18620 CC=$lt_compiler_GCJ
18622 # Is the compiler the GNU C compiler?
18628 # The linker used to build libraries.
18631 # Whether we need hard or soft links.
18634 # A BSD-compatible nm program.
18637 # A symbol stripping program
18640 # Used to examine libraries when file_magic_cmd begins "file"
18641 MAGIC_CMD=$MAGIC_CMD
18643 # Used on cygwin: DLL creation program.
18646 # Used on cygwin: object dumper.
18649 # Used on cygwin: assembler.
18652 # The name of the directory that contains temporary libtool files.
18655 # How to create reloadable object files.
18656 reload_flag=$lt_reload_flag
18657 reload_cmds=$lt_reload_cmds
18659 # How to pass a linker flag through the compiler.
18660 wl=$lt_lt_prog_compiler_wl_GCJ
18662 # Object file suffix (normally "o").
18663 objext="$ac_objext"
18665 # Old archive suffix (normally "a").
18668 # Shared library suffix (normally ".so").
18669 shrext_cmds='$shrext_cmds'
18671 # Executable file suffix (normally "").
18674 # Additional compiler flags for building library objects.
18675 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18678 # What is the maximum length of a command?
18679 max_cmd_len=$lt_cv_sys_max_cmd_len
18681 # Does compiler simultaneously support -c and -o options?
18682 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18684 # Must we lock files when doing compilation?
18685 need_locks=$lt_need_locks
18687 # Do we need the lib prefix for modules?
18688 need_lib_prefix=$need_lib_prefix
18690 # Do we need a version for libraries?
18691 need_version=$need_version
18693 # Whether dlopen is supported.
18694 dlopen_support=$enable_dlopen
18696 # Whether dlopen of programs is supported.
18697 dlopen_self=$enable_dlopen_self
18699 # Whether dlopen of statically linked programs is supported.
18700 dlopen_self_static=$enable_dlopen_self_static
18702 # Compiler flag to prevent dynamic linking.
18703 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18705 # Compiler flag to turn off builtin functions.
18706 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18708 # Compiler flag to allow reflexive dlopens.
18709 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18711 # Compiler flag to generate shared objects directly from archives.
18712 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18714 # Compiler flag to generate thread-safe objects.
18715 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18717 # Library versioning type.
18718 version_type=$version_type
18720 # Format of library name prefix.
18721 libname_spec=$lt_libname_spec
18723 # List of archive names. First name is the real one, the rest are links.
18724 # The last name is the one that the linker finds with -lNAME.
18725 library_names_spec=$lt_library_names_spec
18727 # The coded name of the library, if different from the real name.
18728 soname_spec=$lt_soname_spec
18730 # Commands used to build and install an old-style archive.
18732 old_archive_cmds=$lt_old_archive_cmds_GCJ
18733 old_postinstall_cmds=$lt_old_postinstall_cmds
18734 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18736 # Create an old-style archive from a shared archive.
18737 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18739 # Create a temporary old-style archive to link instead of a shared archive.
18740 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18742 # Commands used to build and install a shared archive.
18743 archive_cmds=$lt_archive_cmds_GCJ
18744 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18745 postinstall_cmds=$lt_postinstall_cmds
18746 postuninstall_cmds=$lt_postuninstall_cmds
18748 # Commands used to build a loadable module (assumed same as above if empty)
18749 module_cmds=$lt_module_cmds_GCJ
18750 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18752 # Commands to strip libraries.
18753 old_striplib=$lt_old_striplib
18754 striplib=$lt_striplib
18756 # Dependencies to place before the objects being linked to create a
18758 predep_objects=$lt_predep_objects_GCJ
18760 # Dependencies to place after the objects being linked to create a
18762 postdep_objects=$lt_postdep_objects_GCJ
18764 # Dependencies to place before the objects being linked to create a
18766 predeps=$lt_predeps_GCJ
18768 # Dependencies to place after the objects being linked to create a
18770 postdeps=$lt_postdeps_GCJ
18772 # The library search path used internally by the compiler when linking
18773 # a shared library.
18774 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18776 # Method to check whether dependent libraries are shared objects.
18777 deplibs_check_method=$lt_deplibs_check_method
18779 # Command to use when deplibs_check_method == file_magic.
18780 file_magic_cmd=$lt_file_magic_cmd
18782 # Flag that allows shared libraries with undefined symbols to be built.
18783 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18785 # Flag that forces no undefined symbols.
18786 no_undefined_flag=$lt_no_undefined_flag_GCJ
18788 # Commands used to finish a libtool library installation in a directory.
18789 finish_cmds=$lt_finish_cmds
18791 # Same as above, but a single script fragment to be evaled but not shown.
18792 finish_eval=$lt_finish_eval
18794 # Take the output of nm and produce a listing of raw symbols and C names.
18795 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18797 # Transform the output of nm in a proper C declaration
18798 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18800 # Transform the output of nm in a C name address pair
18801 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18803 # This is the shared library runtime path variable.
18804 runpath_var=$runpath_var
18806 # This is the shared library path variable.
18807 shlibpath_var=$shlibpath_var
18809 # Is shlibpath searched before the hard-coded library search path?
18810 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18812 # How to hardcode a shared library path into an executable.
18813 hardcode_action=$hardcode_action_GCJ
18815 # Whether we should hardcode library paths into libraries.
18816 hardcode_into_libs=$hardcode_into_libs
18818 # Flag to hardcode \$libdir into a binary during linking.
18819 # This must work even if \$libdir does not exist.
18820 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18822 # If ld is used when linking, flag to hardcode \$libdir into
18823 # a binary during linking. This must work even if \$libdir does
18825 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18827 # Whether we need a single -rpath flag with a separated argument.
18828 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18830 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18831 # resulting binary.
18832 hardcode_direct=$hardcode_direct_GCJ
18834 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18835 # resulting binary.
18836 hardcode_minus_L=$hardcode_minus_L_GCJ
18838 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18839 # the resulting binary.
18840 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18842 # Set to yes if building a shared library automatically hardcodes DIR into the library
18843 # and all subsequent libraries and executables linked against it.
18844 hardcode_automatic=$hardcode_automatic_GCJ
18846 # Variables whose values should be saved in libtool wrapper scripts and
18847 # restored at relink time.
18848 variables_saved_for_relink="$variables_saved_for_relink"
18850 # Whether libtool must link a program against all its dependency libraries.
18851 link_all_deplibs=$link_all_deplibs_GCJ
18853 # Compile-time system search path for libraries
18854 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18856 # Run-time system search path for libraries
18857 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18859 # Fix the shell variable \$srcfile for the compiler.
18860 fix_srcfile_path="$fix_srcfile_path_GCJ"
18862 # Set to yes if exported symbols are required.
18863 always_export_symbols=$always_export_symbols_GCJ
18865 # The commands to list exported symbols.
18866 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18868 # The commands to extract the exported symbol list from a shared archive.
18869 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18871 # Symbols that should not be listed in the preloaded symbols.
18872 exclude_expsyms=$lt_exclude_expsyms_GCJ
18874 # Symbols that must always be exported.
18875 include_expsyms=$lt_include_expsyms_GCJ
18877 # ### END LIBTOOL TAG CONFIG: $tagname
18883 # If there is no Makefile yet, we rely on a make rule to execute
18884 # `config.status --recheck' to rerun these tests and create the
18885 # libtool script then.
18886 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18887 if test -f "$ltmain_in"; then
18888 test -f Makefile && make "$ltmain"
18894 ac_cpp='$CPP $CPPFLAGS'
18895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18909 # Source file extension for RC test sources.
18912 # Object file extension for compiled RC test sources.
18916 # Code to be used in simple compile tests
18917 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18919 # Code to be used in simple link tests
18920 lt_simple_link_test_code="$lt_simple_compile_test_code"
18922 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18924 # If no C compiler was specified, use CC.
18927 # If no C compiler flags were specified, use CFLAGS.
18928 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18930 # Allow CC to be a program name with arguments.
18934 # save warnings/boilerplate of simple test code
18935 ac_outfile=conftest.$ac_objext
18936 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18937 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18938 _lt_compiler_boilerplate=`cat conftest.err`
18941 ac_outfile=conftest.$ac_objext
18942 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18943 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18944 _lt_linker_boilerplate=`cat conftest.err`
18948 # Allow CC to be a program name with arguments.
18953 for cc_temp in $compiler""; do
18955 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18956 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18961 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18963 lt_cv_prog_compiler_c_o_RC=yes
18965 # The else clause should only fire when bootstrapping the
18966 # libtool distribution, otherwise you forgot to ship ltmain.sh
18967 # with your package, and you will get complaints that there are
18968 # no rules to generate ltmain.sh.
18969 if test -f "$ltmain"; then
18970 # See if we are running on zsh, and set the options which allow our commands through
18971 # without removal of \ escapes.
18972 if test -n "${ZSH_VERSION+set}" ; then
18973 setopt NO_GLOB_SUBST
18975 # Now quote all the things that may contain metacharacters while being
18976 # careful not to overquote the AC_SUBSTed values. We take copies of the
18977 # variables and quote the copies for generation of the libtool script.
18978 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18980 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18981 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18982 deplibs_check_method reload_flag reload_cmds need_locks \
18983 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18984 lt_cv_sys_global_symbol_to_c_name_address \
18985 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18986 old_postinstall_cmds old_postuninstall_cmds \
18990 lt_prog_compiler_wl_RC \
18991 lt_prog_compiler_pic_RC \
18992 lt_prog_compiler_static_RC \
18993 lt_prog_compiler_no_builtin_flag_RC \
18994 export_dynamic_flag_spec_RC \
18995 thread_safe_flag_spec_RC \
18996 whole_archive_flag_spec_RC \
18997 enable_shared_with_static_runtimes_RC \
18998 old_archive_cmds_RC \
18999 old_archive_from_new_cmds_RC \
19000 predep_objects_RC \
19001 postdep_objects_RC \
19004 compiler_lib_search_path_RC \
19006 archive_expsym_cmds_RC \
19007 postinstall_cmds_RC \
19008 postuninstall_cmds_RC \
19009 old_archive_from_expsyms_cmds_RC \
19010 allow_undefined_flag_RC \
19011 no_undefined_flag_RC \
19012 export_symbols_cmds_RC \
19013 hardcode_libdir_flag_spec_RC \
19014 hardcode_libdir_flag_spec_ld_RC \
19015 hardcode_libdir_separator_RC \
19016 hardcode_automatic_RC \
19018 module_expsym_cmds_RC \
19019 lt_cv_prog_compiler_c_o_RC \
19020 exclude_expsyms_RC \
19021 include_expsyms_RC; do
19024 old_archive_cmds_RC | \
19025 old_archive_from_new_cmds_RC | \
19026 archive_cmds_RC | \
19027 archive_expsym_cmds_RC | \
19029 module_expsym_cmds_RC | \
19030 old_archive_from_expsyms_cmds_RC | \
19031 export_symbols_cmds_RC | \
19032 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19033 postinstall_cmds | postuninstall_cmds | \
19034 old_postinstall_cmds | old_postuninstall_cmds | \
19035 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19036 # Double-quote double-evaled strings.
19037 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19040 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19046 *'\$0 --fallback-echo"')
19047 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19053 cat <<__EOF__ >> "$cfgfile"
19054 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19056 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19058 # Shell to use when invoking shell scripts.
19061 # Whether or not to build shared libraries.
19062 build_libtool_libs=$enable_shared
19064 # Whether or not to build static libraries.
19065 build_old_libs=$enable_static
19067 # Whether or not to add -lc for building shared libraries.
19068 build_libtool_need_lc=$archive_cmds_need_lc_RC
19070 # Whether or not to disallow shared libs when runtime libs are static
19071 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19073 # Whether or not to optimize for fast installation.
19074 fast_install=$enable_fast_install
19077 host_alias=$host_alias
19081 # The build system.
19082 build_alias=$build_alias
19086 # An echo program that does not interpret backslashes.
19091 AR_FLAGS=$lt_AR_FLAGS
19096 # LTCC compiler flags.
19097 LTCFLAGS=$lt_LTCFLAGS
19099 # A language-specific compiler.
19102 # Is the compiler the GNU C compiler?
19108 # The linker used to build libraries.
19111 # Whether we need hard or soft links.
19114 # A BSD-compatible nm program.
19117 # A symbol stripping program
19120 # Used to examine libraries when file_magic_cmd begins "file"
19121 MAGIC_CMD=$MAGIC_CMD
19123 # Used on cygwin: DLL creation program.
19126 # Used on cygwin: object dumper.
19129 # Used on cygwin: assembler.
19132 # The name of the directory that contains temporary libtool files.
19135 # How to create reloadable object files.
19136 reload_flag=$lt_reload_flag
19137 reload_cmds=$lt_reload_cmds
19139 # How to pass a linker flag through the compiler.
19140 wl=$lt_lt_prog_compiler_wl_RC
19142 # Object file suffix (normally "o").
19143 objext="$ac_objext"
19145 # Old archive suffix (normally "a").
19148 # Shared library suffix (normally ".so").
19149 shrext_cmds='$shrext_cmds'
19151 # Executable file suffix (normally "").
19154 # Additional compiler flags for building library objects.
19155 pic_flag=$lt_lt_prog_compiler_pic_RC
19158 # What is the maximum length of a command?
19159 max_cmd_len=$lt_cv_sys_max_cmd_len
19161 # Does compiler simultaneously support -c and -o options?
19162 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19164 # Must we lock files when doing compilation?
19165 need_locks=$lt_need_locks
19167 # Do we need the lib prefix for modules?
19168 need_lib_prefix=$need_lib_prefix
19170 # Do we need a version for libraries?
19171 need_version=$need_version
19173 # Whether dlopen is supported.
19174 dlopen_support=$enable_dlopen
19176 # Whether dlopen of programs is supported.
19177 dlopen_self=$enable_dlopen_self
19179 # Whether dlopen of statically linked programs is supported.
19180 dlopen_self_static=$enable_dlopen_self_static
19182 # Compiler flag to prevent dynamic linking.
19183 link_static_flag=$lt_lt_prog_compiler_static_RC
19185 # Compiler flag to turn off builtin functions.
19186 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19188 # Compiler flag to allow reflexive dlopens.
19189 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19191 # Compiler flag to generate shared objects directly from archives.
19192 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19194 # Compiler flag to generate thread-safe objects.
19195 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19197 # Library versioning type.
19198 version_type=$version_type
19200 # Format of library name prefix.
19201 libname_spec=$lt_libname_spec
19203 # List of archive names. First name is the real one, the rest are links.
19204 # The last name is the one that the linker finds with -lNAME.
19205 library_names_spec=$lt_library_names_spec
19207 # The coded name of the library, if different from the real name.
19208 soname_spec=$lt_soname_spec
19210 # Commands used to build and install an old-style archive.
19212 old_archive_cmds=$lt_old_archive_cmds_RC
19213 old_postinstall_cmds=$lt_old_postinstall_cmds
19214 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19216 # Create an old-style archive from a shared archive.
19217 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19219 # Create a temporary old-style archive to link instead of a shared archive.
19220 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19222 # Commands used to build and install a shared archive.
19223 archive_cmds=$lt_archive_cmds_RC
19224 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19225 postinstall_cmds=$lt_postinstall_cmds
19226 postuninstall_cmds=$lt_postuninstall_cmds
19228 # Commands used to build a loadable module (assumed same as above if empty)
19229 module_cmds=$lt_module_cmds_RC
19230 module_expsym_cmds=$lt_module_expsym_cmds_RC
19232 # Commands to strip libraries.
19233 old_striplib=$lt_old_striplib
19234 striplib=$lt_striplib
19236 # Dependencies to place before the objects being linked to create a
19238 predep_objects=$lt_predep_objects_RC
19240 # Dependencies to place after the objects being linked to create a
19242 postdep_objects=$lt_postdep_objects_RC
19244 # Dependencies to place before the objects being linked to create a
19246 predeps=$lt_predeps_RC
19248 # Dependencies to place after the objects being linked to create a
19250 postdeps=$lt_postdeps_RC
19252 # The library search path used internally by the compiler when linking
19253 # a shared library.
19254 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19256 # Method to check whether dependent libraries are shared objects.
19257 deplibs_check_method=$lt_deplibs_check_method
19259 # Command to use when deplibs_check_method == file_magic.
19260 file_magic_cmd=$lt_file_magic_cmd
19262 # Flag that allows shared libraries with undefined symbols to be built.
19263 allow_undefined_flag=$lt_allow_undefined_flag_RC
19265 # Flag that forces no undefined symbols.
19266 no_undefined_flag=$lt_no_undefined_flag_RC
19268 # Commands used to finish a libtool library installation in a directory.
19269 finish_cmds=$lt_finish_cmds
19271 # Same as above, but a single script fragment to be evaled but not shown.
19272 finish_eval=$lt_finish_eval
19274 # Take the output of nm and produce a listing of raw symbols and C names.
19275 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19277 # Transform the output of nm in a proper C declaration
19278 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19280 # Transform the output of nm in a C name address pair
19281 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19283 # This is the shared library runtime path variable.
19284 runpath_var=$runpath_var
19286 # This is the shared library path variable.
19287 shlibpath_var=$shlibpath_var
19289 # Is shlibpath searched before the hard-coded library search path?
19290 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19292 # How to hardcode a shared library path into an executable.
19293 hardcode_action=$hardcode_action_RC
19295 # Whether we should hardcode library paths into libraries.
19296 hardcode_into_libs=$hardcode_into_libs
19298 # Flag to hardcode \$libdir into a binary during linking.
19299 # This must work even if \$libdir does not exist.
19300 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19302 # If ld is used when linking, flag to hardcode \$libdir into
19303 # a binary during linking. This must work even if \$libdir does
19305 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19307 # Whether we need a single -rpath flag with a separated argument.
19308 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19310 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19311 # resulting binary.
19312 hardcode_direct=$hardcode_direct_RC
19314 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19315 # resulting binary.
19316 hardcode_minus_L=$hardcode_minus_L_RC
19318 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19319 # the resulting binary.
19320 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19322 # Set to yes if building a shared library automatically hardcodes DIR into the library
19323 # and all subsequent libraries and executables linked against it.
19324 hardcode_automatic=$hardcode_automatic_RC
19326 # Variables whose values should be saved in libtool wrapper scripts and
19327 # restored at relink time.
19328 variables_saved_for_relink="$variables_saved_for_relink"
19330 # Whether libtool must link a program against all its dependency libraries.
19331 link_all_deplibs=$link_all_deplibs_RC
19333 # Compile-time system search path for libraries
19334 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19336 # Run-time system search path for libraries
19337 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19339 # Fix the shell variable \$srcfile for the compiler.
19340 fix_srcfile_path="$fix_srcfile_path_RC"
19342 # Set to yes if exported symbols are required.
19343 always_export_symbols=$always_export_symbols_RC
19345 # The commands to list exported symbols.
19346 export_symbols_cmds=$lt_export_symbols_cmds_RC
19348 # The commands to extract the exported symbol list from a shared archive.
19349 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19351 # Symbols that should not be listed in the preloaded symbols.
19352 exclude_expsyms=$lt_exclude_expsyms_RC
19354 # Symbols that must always be exported.
19355 include_expsyms=$lt_include_expsyms_RC
19357 # ### END LIBTOOL TAG CONFIG: $tagname
19363 # If there is no Makefile yet, we rely on a make rule to execute
19364 # `config.status --recheck' to rerun these tests and create the
19365 # libtool script then.
19366 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19367 if test -f "$ltmain_in"; then
19368 test -f Makefile && make "$ltmain"
19374 ac_cpp='$CPP $CPPFLAGS'
19375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19384 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19385 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19386 { (exit 1); exit 1; }; }
19390 # Append the new tag name to the list of available tags.
19391 if test -n "$tagname" ; then
19392 available_tags="$available_tags $tagname"
19398 # Now substitute the updated list of available tags.
19399 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19400 mv "${ofile}T" "$ofile"
19404 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19405 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19406 { (exit 1); exit 1; }; }
19412 # This can be used to rebuild libtool when needed
19413 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19415 # Always use our own libtool.
19416 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19418 # Prevent multiple expansion
19447 { echo "$as_me:$LINENO: result: " >&5
19448 echo "${ECHO_T}" >&6; }
19449 { echo "$as_me:$LINENO: result: ${T_MD}System checks...${T_ME}" >&5
19450 echo "${ECHO_T}${T_MD}System checks...${T_ME}" >&6; }
19453 ac_cpp='$CPP $CPPFLAGS'
19454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19457 if test -n "$ac_tool_prefix"; then
19458 for ac_prog in xlC gcc cc
19460 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19461 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19464 if test "${ac_cv_prog_CC+set}" = set; then
19465 echo $ECHO_N "(cached) $ECHO_C" >&6
19467 if test -n "$CC"; then
19468 ac_cv_prog_CC="$CC" # Let the user override the test.
19470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19471 for as_dir in $PATH
19474 test -z "$as_dir" && as_dir=.
19475 for ac_exec_ext in '' $ac_executable_extensions; do
19476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19477 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19488 if test -n "$CC"; then
19489 { echo "$as_me:$LINENO: result: $CC" >&5
19490 echo "${ECHO_T}$CC" >&6; }
19492 { echo "$as_me:$LINENO: result: no" >&5
19493 echo "${ECHO_T}no" >&6; }
19497 test -n "$CC" && break
19500 if test -z "$CC"; then
19502 for ac_prog in xlC gcc cc
19504 # Extract the first word of "$ac_prog", so it can be a program name with args.
19505 set dummy $ac_prog; ac_word=$2
19506 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19508 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19509 echo $ECHO_N "(cached) $ECHO_C" >&6
19511 if test -n "$ac_ct_CC"; then
19512 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19515 for as_dir in $PATH
19518 test -z "$as_dir" && as_dir=.
19519 for ac_exec_ext in '' $ac_executable_extensions; do
19520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19521 ac_cv_prog_ac_ct_CC="$ac_prog"
19522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19531 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19532 if test -n "$ac_ct_CC"; then
19533 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19534 echo "${ECHO_T}$ac_ct_CC" >&6; }
19536 { echo "$as_me:$LINENO: result: no" >&5
19537 echo "${ECHO_T}no" >&6; }
19541 test -n "$ac_ct_CC" && break
19544 if test "x$ac_ct_CC" = x; then
19547 case $cross_compiling:$ac_tool_warned in
19549 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19550 whose name does not start with the host triplet. If you think this
19551 configuration is useful to you, please write to autoconf@gnu.org." >&5
19552 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19553 whose name does not start with the host triplet. If you think this
19554 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19555 ac_tool_warned=yes ;;
19562 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19563 See \`config.log' for more details." >&5
19564 echo "$as_me: error: no acceptable C compiler found in \$PATH
19565 See \`config.log' for more details." >&2;}
19566 { (exit 1); exit 1; }; }
19568 # Provide some information about the compiler.
19569 echo "$as_me:$LINENO: checking for C compiler version" >&5
19570 ac_compiler=`set X $ac_compile; echo $2`
19571 { (ac_try="$ac_compiler --version >&5"
19572 case "(($ac_try" in
19573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19574 *) ac_try_echo=$ac_try;;
19576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19577 (eval "$ac_compiler --version >&5") 2>&5
19579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19580 (exit $ac_status); }
19581 { (ac_try="$ac_compiler -v >&5"
19582 case "(($ac_try" in
19583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19584 *) ac_try_echo=$ac_try;;
19586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19587 (eval "$ac_compiler -v >&5") 2>&5
19589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19590 (exit $ac_status); }
19591 { (ac_try="$ac_compiler -V >&5"
19592 case "(($ac_try" in
19593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19594 *) ac_try_echo=$ac_try;;
19596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19597 (eval "$ac_compiler -V >&5") 2>&5
19599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600 (exit $ac_status); }
19602 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19603 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
19604 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19605 echo $ECHO_N "(cached) $ECHO_C" >&6
19607 cat >conftest.$ac_ext <<_ACEOF
19610 cat confdefs.h >>conftest.$ac_ext
19611 cat >>conftest.$ac_ext <<_ACEOF
19612 /* end confdefs.h. */
19625 rm -f conftest.$ac_objext
19626 if { (ac_try="$ac_compile"
19627 case "(($ac_try" in
19628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19629 *) ac_try_echo=$ac_try;;
19631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19632 (eval "$ac_compile") 2>conftest.er1
19634 grep -v '^ *+' conftest.er1 >conftest.err
19636 cat conftest.err >&5
19637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638 (exit $ac_status); } && {
19639 test -z "$ac_c_werror_flag" ||
19640 test ! -s conftest.err
19641 } && test -s conftest.$ac_objext; then
19642 ac_compiler_gnu=yes
19644 echo "$as_me: failed program was:" >&5
19645 sed 's/^/| /' conftest.$ac_ext >&5
19650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19651 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19654 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19655 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
19656 GCC=`test $ac_compiler_gnu = yes && echo yes`
19657 ac_test_CFLAGS=${CFLAGS+set}
19658 ac_save_CFLAGS=$CFLAGS
19659 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19660 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
19661 if test "${ac_cv_prog_cc_g+set}" = set; then
19662 echo $ECHO_N "(cached) $ECHO_C" >&6
19664 ac_save_c_werror_flag=$ac_c_werror_flag
19665 ac_c_werror_flag=yes
19668 cat >conftest.$ac_ext <<_ACEOF
19671 cat confdefs.h >>conftest.$ac_ext
19672 cat >>conftest.$ac_ext <<_ACEOF
19673 /* end confdefs.h. */
19683 rm -f conftest.$ac_objext
19684 if { (ac_try="$ac_compile"
19685 case "(($ac_try" in
19686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19687 *) ac_try_echo=$ac_try;;
19689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19690 (eval "$ac_compile") 2>conftest.er1
19692 grep -v '^ *+' conftest.er1 >conftest.err
19694 cat conftest.err >&5
19695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19696 (exit $ac_status); } && {
19697 test -z "$ac_c_werror_flag" ||
19698 test ! -s conftest.err
19699 } && test -s conftest.$ac_objext; then
19700 ac_cv_prog_cc_g=yes
19702 echo "$as_me: failed program was:" >&5
19703 sed 's/^/| /' conftest.$ac_ext >&5
19706 cat >conftest.$ac_ext <<_ACEOF
19709 cat confdefs.h >>conftest.$ac_ext
19710 cat >>conftest.$ac_ext <<_ACEOF
19711 /* end confdefs.h. */
19721 rm -f conftest.$ac_objext
19722 if { (ac_try="$ac_compile"
19723 case "(($ac_try" in
19724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19725 *) ac_try_echo=$ac_try;;
19727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19728 (eval "$ac_compile") 2>conftest.er1
19730 grep -v '^ *+' conftest.er1 >conftest.err
19732 cat conftest.err >&5
19733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734 (exit $ac_status); } && {
19735 test -z "$ac_c_werror_flag" ||
19736 test ! -s conftest.err
19737 } && test -s conftest.$ac_objext; then
19740 echo "$as_me: failed program was:" >&5
19741 sed 's/^/| /' conftest.$ac_ext >&5
19743 ac_c_werror_flag=$ac_save_c_werror_flag
19745 cat >conftest.$ac_ext <<_ACEOF
19748 cat confdefs.h >>conftest.$ac_ext
19749 cat >>conftest.$ac_ext <<_ACEOF
19750 /* end confdefs.h. */
19760 rm -f conftest.$ac_objext
19761 if { (ac_try="$ac_compile"
19762 case "(($ac_try" in
19763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19764 *) ac_try_echo=$ac_try;;
19766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19767 (eval "$ac_compile") 2>conftest.er1
19769 grep -v '^ *+' conftest.er1 >conftest.err
19771 cat conftest.err >&5
19772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19773 (exit $ac_status); } && {
19774 test -z "$ac_c_werror_flag" ||
19775 test ! -s conftest.err
19776 } && test -s conftest.$ac_objext; then
19777 ac_cv_prog_cc_g=yes
19779 echo "$as_me: failed program was:" >&5
19780 sed 's/^/| /' conftest.$ac_ext >&5
19785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19792 ac_c_werror_flag=$ac_save_c_werror_flag
19794 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19795 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
19796 if test "$ac_test_CFLAGS" = set; then
19797 CFLAGS=$ac_save_CFLAGS
19798 elif test $ac_cv_prog_cc_g = yes; then
19799 if test "$GCC" = yes; then
19805 if test "$GCC" = yes; then
19811 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
19812 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
19813 if test "${ac_cv_prog_cc_c89+set}" = set; then
19814 echo $ECHO_N "(cached) $ECHO_C" >&6
19816 ac_cv_prog_cc_c89=no
19818 cat >conftest.$ac_ext <<_ACEOF
19821 cat confdefs.h >>conftest.$ac_ext
19822 cat >>conftest.$ac_ext <<_ACEOF
19823 /* end confdefs.h. */
19824 #include <stdarg.h>
19826 #include <sys/types.h>
19827 #include <sys/stat.h>
19828 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19829 struct buf { int x; };
19830 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19831 static char *e (p, i)
19837 static char *f (char * (*g) (char **, int), char **p, ...)
19842 s = g (p, va_arg (v,int));
19847 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19848 function prototypes and stuff, but not '\xHH' hex character constants.
19849 These don't provoke an error unfortunately, instead are silently treated
19850 as 'x'. The following induces an error, until -std is added to get
19851 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
19852 array size at least. It's necessary to write '\x00'==0 to get something
19853 that's true only with -std. */
19854 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19856 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
19857 inside strings and character constants. */
19859 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
19861 int test (int i, double x);
19862 struct s1 {int (*f) (int a);};
19863 struct s2 {int (*f) (double a);};
19864 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19870 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19875 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
19876 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19878 CC="$ac_save_CC $ac_arg"
19879 rm -f conftest.$ac_objext
19880 if { (ac_try="$ac_compile"
19881 case "(($ac_try" in
19882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19883 *) ac_try_echo=$ac_try;;
19885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19886 (eval "$ac_compile") 2>conftest.er1
19888 grep -v '^ *+' conftest.er1 >conftest.err
19890 cat conftest.err >&5
19891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892 (exit $ac_status); } && {
19893 test -z "$ac_c_werror_flag" ||
19894 test ! -s conftest.err
19895 } && test -s conftest.$ac_objext; then
19896 ac_cv_prog_cc_c89=$ac_arg
19898 echo "$as_me: failed program was:" >&5
19899 sed 's/^/| /' conftest.$ac_ext >&5
19904 rm -f core conftest.err conftest.$ac_objext
19905 test "x$ac_cv_prog_cc_c89" != "xno" && break
19907 rm -f conftest.$ac_ext
19912 case "x$ac_cv_prog_cc_c89" in
19914 { echo "$as_me:$LINENO: result: none needed" >&5
19915 echo "${ECHO_T}none needed" >&6; } ;;
19917 { echo "$as_me:$LINENO: result: unsupported" >&5
19918 echo "${ECHO_T}unsupported" >&6; } ;;
19920 CC="$CC $ac_cv_prog_cc_c89"
19921 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
19922 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
19927 ac_cpp='$CPP $CPPFLAGS'
19928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19932 depcc="$CC" am_compiler_list=
19934 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19935 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
19936 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19937 echo $ECHO_N "(cached) $ECHO_C" >&6
19939 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19940 # We make a subdir and do the tests there. Otherwise we can end up
19941 # making bogus files that we don't know about and never remove. For
19942 # instance it was reported that on HP-UX the gcc test will end up
19943 # making a dummy file named `D' -- because `-MD' means `put the output
19946 # Copy depcomp to subdir because otherwise we won't find it if we're
19947 # using a relative directory.
19948 cp "$am_depcomp" conftest.dir
19950 # We will build objects and dependencies in a subdirectory because
19951 # it helps to detect inapplicable dependency modes. For instance
19952 # both Tru64's cc and ICC support -MD to output dependencies as a
19953 # side effect of compilation, but ICC will put the dependencies in
19954 # the current directory while Tru64 will put them in the object
19958 am_cv_CC_dependencies_compiler_type=none
19959 if test "$am_compiler_list" = ""; then
19960 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19962 for depmode in $am_compiler_list; do
19963 # Setup a source with many dependencies, because some compilers
19964 # like to wrap large dependency lists on column 80 (with \), and
19965 # we should not choose a depcomp mode which is confused by this.
19967 # We need to recreate these files for each test, as the compiler may
19968 # overwrite some of them when testing with obscure command lines.
19969 # This happens at least with the AIX C compiler.
19971 for i in 1 2 3 4 5 6; do
19972 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19973 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19974 # Solaris 8's {/usr,}/bin/sh.
19975 touch sub/conftst$i.h
19977 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19981 # after this tag, mechanisms are not by side-effect, so they'll
19982 # only be used when explicitly requested
19983 if test "x$enable_dependency_tracking" = xyes; then
19991 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19992 # mode. It turns out that the SunPro C++ compiler does not properly
19993 # handle `-M -o', and we need to detect this.
19994 if depmode=$depmode \
19995 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19996 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19997 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19998 >/dev/null 2>conftest.err &&
19999 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20000 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20001 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20002 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20003 # icc doesn't choke on unknown options, it will just issue warnings
20004 # or remarks (even with -Werror). So we grep stderr for any message
20005 # that says an option was ignored or not supported.
20006 # When given -MP, icc 7.0 and 7.1 complain thusly:
20007 # icc: Command line warning: ignoring option '-M'; no argument required
20008 # The diagnosis changed in icc 8.0:
20009 # icc: Command line remark: option '-MP' not supported
20010 if (grep 'ignoring option' conftest.err ||
20011 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20012 am_cv_CC_dependencies_compiler_type=$depmode
20019 rm -rf conftest.dir
20021 am_cv_CC_dependencies_compiler_type=none
20025 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20026 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
20027 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20030 test "x$enable_dependency_tracking" != xno \
20031 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20032 am__fastdepCC_TRUE=
20033 am__fastdepCC_FALSE='#'
20035 am__fastdepCC_TRUE='#'
20036 am__fastdepCC_FALSE=
20040 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
20041 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
20044 echo timestamp > conftest.file
20045 # Do `set' in a subshell so we don't clobber the current shell's
20046 # arguments. Must try -L first in case configure is actually a
20047 # symlink; some systems play weird games with the mod time of symlinks
20048 # (eg FreeBSD returns the mod time of the symlink's containing
20051 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
20052 if test "$*" = "X"; then
20054 set X `ls -t $srcdir/configure conftest.file`
20056 rm -f conftest.file
20057 if test "$*" != "X $srcdir/configure conftest.file" \
20058 && test "$*" != "X conftest.file $srcdir/configure"; then
20060 # If neither matched, then we have a broken ls. This can happen
20061 # if, for instance, CONFIG_SHELL is bash and it inherits a
20062 # broken ls alias from the environment. This has actually
20063 # happened. Such a system could not be considered "sane".
20064 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
20065 alias in your environment" >&5
20066 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
20067 alias in your environment" >&2;}
20068 { (exit 1); exit 1; }; }
20071 test "$2" = conftest.file
20077 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
20078 Check your system clock" >&5
20079 echo "$as_me: error: newly created file is older than distributed files!
20080 Check your system clock" >&2;}
20081 { (exit 1); exit 1; }; }
20083 { echo "$as_me:$LINENO: result: yes" >&5
20084 echo "${ECHO_T}yes" >&6; }
20085 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20086 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
20087 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
20088 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
20089 echo $ECHO_N "(cached) $ECHO_C" >&6
20091 cat >conftest.make <<\_ACEOF
20094 @echo '@@@%%%=$(MAKE)=@@@%%%'
20096 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20097 case `${MAKE-make} -f conftest.make 2>/dev/null` in
20098 *@@@%%%=?*=@@@%%%*)
20099 eval ac_cv_prog_make_${ac_make}_set=yes;;
20101 eval ac_cv_prog_make_${ac_make}_set=no;;
20103 rm -f conftest.make
20105 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
20106 { echo "$as_me:$LINENO: result: yes" >&5
20107 echo "${ECHO_T}yes" >&6; }
20110 { echo "$as_me:$LINENO: result: no" >&5
20111 echo "${ECHO_T}no" >&6; }
20112 SET_MAKE="MAKE=${MAKE-make}"
20116 { echo "$as_me:$LINENO: checking whether printf(\"%s\",NULL) works..." >&5
20117 echo $ECHO_N "checking whether printf(\"%s\",NULL) works...... $ECHO_C" >&6; }
20118 if test "$cross_compiling" = yes; then
20119 { echo "$as_me:$LINENO: result: assuming the worse in cross-compilation" >&5
20120 echo "${ECHO_T}assuming the worse in cross-compilation" >&6; }
20122 cat >conftest.$ac_ext <<_ACEOF
20125 cat confdefs.h >>conftest.$ac_ext
20126 cat >>conftest.$ac_ext <<_ACEOF
20127 /* end confdefs.h. */
20137 rm -f conftest$ac_exeext
20138 if { (ac_try="$ac_link"
20139 case "(($ac_try" in
20140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20141 *) ac_try_echo=$ac_try;;
20143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20144 (eval "$ac_link") 2>&5
20146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20148 { (case "(($ac_try" in
20149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20150 *) ac_try_echo=$ac_try;;
20152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20153 (eval "$ac_try") 2>&5
20155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156 (exit $ac_status); }; }; then
20158 cat >>confdefs.h <<\_ACEOF
20159 #define PRINTF_NULL_WORKING 1
20162 { echo "$as_me:$LINENO: result: yes" >&5
20163 echo "${ECHO_T}yes" >&6; }
20165 echo "$as_me: program exited with status $ac_status" >&5
20166 echo "$as_me: failed program was:" >&5
20167 sed 's/^/| /' conftest.$ac_ext >&5
20169 ( exit $ac_status )
20170 { echo "$as_me:$LINENO: result: no" >&5
20171 echo "${ECHO_T}no" >&6; }
20173 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20179 { echo "$as_me:$LINENO: checking for va_copy() function" >&5
20180 echo $ECHO_N "checking for va_copy() function... $ECHO_C" >&6; }
20181 if test "${ac_cv_va_copy+set}" = set; then
20182 echo $ECHO_N "(cached) $ECHO_C" >&6
20189 if test ".$ac_cv_va_copy" = .; then
20190 if test "$cross_compiling" = yes; then
20191 ac_cv_va_copy="C99"
20193 cat >conftest.$ac_ext <<_ACEOF
20196 cat confdefs.h >>conftest.$ac_ext
20197 cat >>conftest.$ac_ext <<_ACEOF
20198 /* end confdefs.h. */
20200 #include <stdlib.h>
20201 #include <stdarg.h>
20202 #include <string.h>
20203 #define DO_VA_COPY(d, s) va_copy((d), (s))
20204 void test(char *str, ...)
20209 DO_VA_COPY(ap2, ap);
20210 for (i = 1; i <= 9; i++) {
20211 int k = (int)va_arg(ap, int);
20215 DO_VA_COPY(ap, ap2);
20216 for (i = 1; i <= 9; i++) {
20217 int k = (int)va_arg(ap, int);
20223 int main(int argc, char *argv[])
20225 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20230 rm -f conftest$ac_exeext
20231 if { (ac_try="$ac_link"
20232 case "(($ac_try" in
20233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20234 *) ac_try_echo=$ac_try;;
20236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20237 (eval "$ac_link") 2>&5
20239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20241 { (case "(($ac_try" in
20242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20243 *) ac_try_echo=$ac_try;;
20245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20246 (eval "$ac_try") 2>&5
20248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20249 (exit $ac_status); }; }; then
20250 ac_cv_va_copy="C99"
20252 echo "$as_me: program exited with status $ac_status" >&5
20253 echo "$as_me: failed program was:" >&5
20254 sed 's/^/| /' conftest.$ac_ext >&5
20257 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20266 if test ".$ac_cv_va_copy" = .; then
20267 if test "$cross_compiling" = yes; then
20268 ac_cv_va_copy="GCM"
20270 cat >conftest.$ac_ext <<_ACEOF
20273 cat confdefs.h >>conftest.$ac_ext
20274 cat >>conftest.$ac_ext <<_ACEOF
20275 /* end confdefs.h. */
20277 #include <stdlib.h>
20278 #include <stdarg.h>
20279 #include <string.h>
20280 #define DO_VA_COPY(d, s) VA_COPY((d), (s))
20281 void test(char *str, ...)
20286 DO_VA_COPY(ap2, ap);
20287 for (i = 1; i <= 9; i++) {
20288 int k = (int)va_arg(ap, int);
20292 DO_VA_COPY(ap, ap2);
20293 for (i = 1; i <= 9; i++) {
20294 int k = (int)va_arg(ap, int);
20300 int main(int argc, char *argv[])
20302 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20307 rm -f conftest$ac_exeext
20308 if { (ac_try="$ac_link"
20309 case "(($ac_try" in
20310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20311 *) ac_try_echo=$ac_try;;
20313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20314 (eval "$ac_link") 2>&5
20316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20318 { (case "(($ac_try" in
20319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20320 *) ac_try_echo=$ac_try;;
20322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20323 (eval "$ac_try") 2>&5
20325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20326 (exit $ac_status); }; }; then
20327 ac_cv_va_copy="GCM"
20329 echo "$as_me: program exited with status $ac_status" >&5
20330 echo "$as_me: failed program was:" >&5
20331 sed 's/^/| /' conftest.$ac_ext >&5
20334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20343 if test ".$ac_cv_va_copy" = .; then
20344 if test "$cross_compiling" = yes; then
20345 ac_cv_va_copy="GCH"
20347 cat >conftest.$ac_ext <<_ACEOF
20350 cat confdefs.h >>conftest.$ac_ext
20351 cat >>conftest.$ac_ext <<_ACEOF
20352 /* end confdefs.h. */
20354 #include <stdlib.h>
20355 #include <stdarg.h>
20356 #include <string.h>
20357 #define DO_VA_COPY(d, s) __va_copy((d), (s))
20358 void test(char *str, ...)
20363 DO_VA_COPY(ap2, ap);
20364 for (i = 1; i <= 9; i++) {
20365 int k = (int)va_arg(ap, int);
20369 DO_VA_COPY(ap, ap2);
20370 for (i = 1; i <= 9; i++) {
20371 int k = (int)va_arg(ap, int);
20377 int main(int argc, char *argv[])
20379 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20384 rm -f conftest$ac_exeext
20385 if { (ac_try="$ac_link"
20386 case "(($ac_try" in
20387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20388 *) ac_try_echo=$ac_try;;
20390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20391 (eval "$ac_link") 2>&5
20393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20395 { (case "(($ac_try" in
20396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20397 *) ac_try_echo=$ac_try;;
20399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20400 (eval "$ac_try") 2>&5
20402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403 (exit $ac_status); }; }; then
20404 ac_cv_va_copy="GCH"
20406 echo "$as_me: program exited with status $ac_status" >&5
20407 echo "$as_me: failed program was:" >&5
20408 sed 's/^/| /' conftest.$ac_ext >&5
20411 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20420 if test ".$ac_cv_va_copy" = .; then
20421 if test "$cross_compiling" = yes; then
20422 ac_cv_va_copy="GCB"
20424 cat >conftest.$ac_ext <<_ACEOF
20427 cat confdefs.h >>conftest.$ac_ext
20428 cat >>conftest.$ac_ext <<_ACEOF
20429 /* end confdefs.h. */
20431 #include <stdlib.h>
20432 #include <stdarg.h>
20433 #include <string.h>
20434 #define DO_VA_COPY(d, s) __builtin_va_copy((d), (s))
20435 void test(char *str, ...)
20440 DO_VA_COPY(ap2, ap);
20441 for (i = 1; i <= 9; i++) {
20442 int k = (int)va_arg(ap, int);
20446 DO_VA_COPY(ap, ap2);
20447 for (i = 1; i <= 9; i++) {
20448 int k = (int)va_arg(ap, int);
20454 int main(int argc, char *argv[])
20456 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20461 rm -f conftest$ac_exeext
20462 if { (ac_try="$ac_link"
20463 case "(($ac_try" in
20464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20465 *) ac_try_echo=$ac_try;;
20467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20468 (eval "$ac_link") 2>&5
20470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20472 { (case "(($ac_try" in
20473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20474 *) ac_try_echo=$ac_try;;
20476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20477 (eval "$ac_try") 2>&5
20479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20480 (exit $ac_status); }; }; then
20481 ac_cv_va_copy="GCB"
20483 echo "$as_me: program exited with status $ac_status" >&5
20484 echo "$as_me: failed program was:" >&5
20485 sed 's/^/| /' conftest.$ac_ext >&5
20488 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20497 if test ".$ac_cv_va_copy" = .; then
20498 if test "$cross_compiling" = yes; then
20499 ac_cv_va_copy="ASS"
20501 cat >conftest.$ac_ext <<_ACEOF
20504 cat confdefs.h >>conftest.$ac_ext
20505 cat >>conftest.$ac_ext <<_ACEOF
20506 /* end confdefs.h. */
20508 #include <stdlib.h>
20509 #include <stdarg.h>
20510 #include <string.h>
20511 #define DO_VA_COPY(d, s) do { (d) = (s); } while (0)
20512 void test(char *str, ...)
20517 DO_VA_COPY(ap2, ap);
20518 for (i = 1; i <= 9; i++) {
20519 int k = (int)va_arg(ap, int);
20523 DO_VA_COPY(ap, ap2);
20524 for (i = 1; i <= 9; i++) {
20525 int k = (int)va_arg(ap, int);
20531 int main(int argc, char *argv[])
20533 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20538 rm -f conftest$ac_exeext
20539 if { (ac_try="$ac_link"
20540 case "(($ac_try" in
20541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20542 *) ac_try_echo=$ac_try;;
20544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20545 (eval "$ac_link") 2>&5
20547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20549 { (case "(($ac_try" in
20550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20551 *) ac_try_echo=$ac_try;;
20553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20554 (eval "$ac_try") 2>&5
20556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20557 (exit $ac_status); }; }; then
20558 ac_cv_va_copy="ASS"
20560 echo "$as_me: program exited with status $ac_status" >&5
20561 echo "$as_me: failed program was:" >&5
20562 sed 's/^/| /' conftest.$ac_ext >&5
20565 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20574 if test ".$ac_cv_va_copy" = .; then
20575 if test "$cross_compiling" = yes; then
20576 ac_cv_va_copy="ASP"
20578 cat >conftest.$ac_ext <<_ACEOF
20581 cat confdefs.h >>conftest.$ac_ext
20582 cat >>conftest.$ac_ext <<_ACEOF
20583 /* end confdefs.h. */
20585 #include <stdlib.h>
20586 #include <stdarg.h>
20587 #include <string.h>
20588 #define DO_VA_COPY(d, s) do { *(d) = *(s); } while (0)
20589 void test(char *str, ...)
20594 DO_VA_COPY(ap2, ap);
20595 for (i = 1; i <= 9; i++) {
20596 int k = (int)va_arg(ap, int);
20600 DO_VA_COPY(ap, ap2);
20601 for (i = 1; i <= 9; i++) {
20602 int k = (int)va_arg(ap, int);
20608 int main(int argc, char *argv[])
20610 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20615 rm -f conftest$ac_exeext
20616 if { (ac_try="$ac_link"
20617 case "(($ac_try" in
20618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20619 *) ac_try_echo=$ac_try;;
20621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20622 (eval "$ac_link") 2>&5
20624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20625 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20626 { (case "(($ac_try" in
20627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20628 *) ac_try_echo=$ac_try;;
20630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20631 (eval "$ac_try") 2>&5
20633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634 (exit $ac_status); }; }; then
20635 ac_cv_va_copy="ASP"
20637 echo "$as_me: program exited with status $ac_status" >&5
20638 echo "$as_me: failed program was:" >&5
20639 sed 's/^/| /' conftest.$ac_ext >&5
20642 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20651 if test ".$ac_cv_va_copy" = .; then
20652 if test "$cross_compiling" = yes; then
20653 ac_cv_va_copy="CPS"
20655 cat >conftest.$ac_ext <<_ACEOF
20658 cat confdefs.h >>conftest.$ac_ext
20659 cat >>conftest.$ac_ext <<_ACEOF
20660 /* end confdefs.h. */
20662 #include <stdlib.h>
20663 #include <stdarg.h>
20664 #include <string.h>
20665 #define DO_VA_COPY(d, s) memcpy((void *)&(d), (void *)&(s))
20666 void test(char *str, ...)
20671 DO_VA_COPY(ap2, ap);
20672 for (i = 1; i <= 9; i++) {
20673 int k = (int)va_arg(ap, int);
20677 DO_VA_COPY(ap, ap2);
20678 for (i = 1; i <= 9; i++) {
20679 int k = (int)va_arg(ap, int);
20685 int main(int argc, char *argv[])
20687 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20692 rm -f conftest$ac_exeext
20693 if { (ac_try="$ac_link"
20694 case "(($ac_try" in
20695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20696 *) ac_try_echo=$ac_try;;
20698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20699 (eval "$ac_link") 2>&5
20701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20703 { (case "(($ac_try" in
20704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20705 *) ac_try_echo=$ac_try;;
20707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20708 (eval "$ac_try") 2>&5
20710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20711 (exit $ac_status); }; }; then
20712 ac_cv_va_copy="CPS"
20714 echo "$as_me: program exited with status $ac_status" >&5
20715 echo "$as_me: failed program was:" >&5
20716 sed 's/^/| /' conftest.$ac_ext >&5
20719 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20728 if test ".$ac_cv_va_copy" = .; then
20729 if test "$cross_compiling" = yes; then
20730 ac_cv_va_copy="CPP"
20732 cat >conftest.$ac_ext <<_ACEOF
20735 cat confdefs.h >>conftest.$ac_ext
20736 cat >>conftest.$ac_ext <<_ACEOF
20737 /* end confdefs.h. */
20739 #include <stdlib.h>
20740 #include <stdarg.h>
20741 #include <string.h>
20742 #define DO_VA_COPY(d, s) memcpy((void *)(d), (void *)(s))
20743 void test(char *str, ...)
20748 DO_VA_COPY(ap2, ap);
20749 for (i = 1; i <= 9; i++) {
20750 int k = (int)va_arg(ap, int);
20754 DO_VA_COPY(ap, ap2);
20755 for (i = 1; i <= 9; i++) {
20756 int k = (int)va_arg(ap, int);
20762 int main(int argc, char *argv[])
20764 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20769 rm -f conftest$ac_exeext
20770 if { (ac_try="$ac_link"
20771 case "(($ac_try" in
20772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20773 *) ac_try_echo=$ac_try;;
20775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20776 (eval "$ac_link") 2>&5
20778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20779 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20780 { (case "(($ac_try" in
20781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20782 *) ac_try_echo=$ac_try;;
20784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20785 (eval "$ac_try") 2>&5
20787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788 (exit $ac_status); }; }; then
20789 ac_cv_va_copy="CPP"
20791 echo "$as_me: program exited with status $ac_status" >&5
20792 echo "$as_me: failed program was:" >&5
20793 sed 's/^/| /' conftest.$ac_ext >&5
20796 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20802 if test ".$ac_cv_va_copy" = .; then
20803 { { echo "$as_me:$LINENO: error: no working implementation found" >&5
20804 echo "$as_me: error: no working implementation found" >&2;}
20805 { (exit 1); exit 1; }; }
20810 if test ".$ac_cv_va_copy" = ".C99"; then
20812 cat >>confdefs.h <<\_ACEOF
20813 #define HAVE_VA_COPY 1
20818 cat >>confdefs.h <<_ACEOF
20819 #define __VA_COPY_USE __VA_COPY_USE_$ac_cv_va_copy
20824 if test ".$ac_cv_va_copy" = ".C99"; then
20825 { echo "$as_me:$LINENO: result: yes" >&5
20826 echo "${ECHO_T}yes" >&6; }
20828 { echo "$as_me:$LINENO: result: no (using fallback implementation)" >&5
20829 echo "${ECHO_T}no (using fallback implementation)" >&6; }
20833 # Checks for header files.
20834 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20835 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20836 if test "${ac_cv_header_stdc+set}" = set; then
20837 echo $ECHO_N "(cached) $ECHO_C" >&6
20839 cat >conftest.$ac_ext <<_ACEOF
20842 cat confdefs.h >>conftest.$ac_ext
20843 cat >>conftest.$ac_ext <<_ACEOF
20844 /* end confdefs.h. */
20845 #include <stdlib.h>
20846 #include <stdarg.h>
20847 #include <string.h>
20858 rm -f conftest.$ac_objext
20859 if { (ac_try="$ac_compile"
20860 case "(($ac_try" in
20861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20862 *) ac_try_echo=$ac_try;;
20864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20865 (eval "$ac_compile") 2>conftest.er1
20867 grep -v '^ *+' conftest.er1 >conftest.err
20869 cat conftest.err >&5
20870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20871 (exit $ac_status); } && {
20872 test -z "$ac_c_werror_flag" ||
20873 test ! -s conftest.err
20874 } && test -s conftest.$ac_objext; then
20875 ac_cv_header_stdc=yes
20877 echo "$as_me: failed program was:" >&5
20878 sed 's/^/| /' conftest.$ac_ext >&5
20880 ac_cv_header_stdc=no
20883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20885 if test $ac_cv_header_stdc = yes; then
20886 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
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 <string.h>
20896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20897 $EGREP "memchr" >/dev/null 2>&1; then
20900 ac_cv_header_stdc=no
20906 if test $ac_cv_header_stdc = yes; then
20907 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20908 cat >conftest.$ac_ext <<_ACEOF
20911 cat confdefs.h >>conftest.$ac_ext
20912 cat >>conftest.$ac_ext <<_ACEOF
20913 /* end confdefs.h. */
20914 #include <stdlib.h>
20917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20918 $EGREP "free" >/dev/null 2>&1; then
20921 ac_cv_header_stdc=no
20927 if test $ac_cv_header_stdc = yes; then
20928 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20929 if test "$cross_compiling" = yes; then
20932 cat >conftest.$ac_ext <<_ACEOF
20935 cat confdefs.h >>conftest.$ac_ext
20936 cat >>conftest.$ac_ext <<_ACEOF
20937 /* end confdefs.h. */
20939 #include <stdlib.h>
20940 #if ((' ' & 0x0FF) == 0x020)
20941 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20942 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20944 # define ISLOWER(c) \
20945 (('a' <= (c) && (c) <= 'i') \
20946 || ('j' <= (c) && (c) <= 'r') \
20947 || ('s' <= (c) && (c) <= 'z'))
20948 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20951 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20956 for (i = 0; i < 256; i++)
20957 if (XOR (islower (i), ISLOWER (i))
20958 || toupper (i) != TOUPPER (i))
20963 rm -f conftest$ac_exeext
20964 if { (ac_try="$ac_link"
20965 case "(($ac_try" in
20966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20967 *) ac_try_echo=$ac_try;;
20969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20970 (eval "$ac_link") 2>&5
20972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20973 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20974 { (case "(($ac_try" in
20975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20976 *) ac_try_echo=$ac_try;;
20978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20979 (eval "$ac_try") 2>&5
20981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982 (exit $ac_status); }; }; then
20985 echo "$as_me: program exited with status $ac_status" >&5
20986 echo "$as_me: failed program was:" >&5
20987 sed 's/^/| /' conftest.$ac_ext >&5
20989 ( exit $ac_status )
20990 ac_cv_header_stdc=no
20992 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20998 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20999 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21000 if test $ac_cv_header_stdc = yes; then
21002 cat >>confdefs.h <<\_ACEOF
21003 #define STDC_HEADERS 1
21008 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21009 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21010 if test "${ac_cv_header_time+set}" = set; then
21011 echo $ECHO_N "(cached) $ECHO_C" >&6
21013 cat >conftest.$ac_ext <<_ACEOF
21016 cat confdefs.h >>conftest.$ac_ext
21017 cat >>conftest.$ac_ext <<_ACEOF
21018 /* end confdefs.h. */
21019 #include <sys/types.h>
21020 #include <sys/time.h>
21026 if ((struct tm *) 0)
21032 rm -f conftest.$ac_objext
21033 if { (ac_try="$ac_compile"
21034 case "(($ac_try" in
21035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21036 *) ac_try_echo=$ac_try;;
21038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21039 (eval "$ac_compile") 2>conftest.er1
21041 grep -v '^ *+' conftest.er1 >conftest.err
21043 cat conftest.err >&5
21044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21045 (exit $ac_status); } && {
21046 test -z "$ac_c_werror_flag" ||
21047 test ! -s conftest.err
21048 } && test -s conftest.$ac_objext; then
21049 ac_cv_header_time=yes
21051 echo "$as_me: failed program was:" >&5
21052 sed 's/^/| /' conftest.$ac_ext >&5
21054 ac_cv_header_time=no
21057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21059 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21060 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21061 if test $ac_cv_header_time = yes; then
21063 cat >>confdefs.h <<\_ACEOF
21064 #define TIME_WITH_SYS_TIME 1
21079 for ac_header in sys/socket.h \
21081 windows.h winsock.h winsock2.h \
21087 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21088 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21089 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21091 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21092 echo $ECHO_N "(cached) $ECHO_C" >&6
21094 ac_res=`eval echo '${'$as_ac_Header'}'`
21095 { echo "$as_me:$LINENO: result: $ac_res" >&5
21096 echo "${ECHO_T}$ac_res" >&6; }
21098 # Is the header compilable?
21099 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21100 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21101 cat >conftest.$ac_ext <<_ACEOF
21104 cat confdefs.h >>conftest.$ac_ext
21105 cat >>conftest.$ac_ext <<_ACEOF
21106 /* end confdefs.h. */
21107 $ac_includes_default
21108 #include <$ac_header>
21110 rm -f conftest.$ac_objext
21111 if { (ac_try="$ac_compile"
21112 case "(($ac_try" in
21113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21114 *) ac_try_echo=$ac_try;;
21116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21117 (eval "$ac_compile") 2>conftest.er1
21119 grep -v '^ *+' conftest.er1 >conftest.err
21121 cat conftest.err >&5
21122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21123 (exit $ac_status); } && {
21124 test -z "$ac_c_werror_flag" ||
21125 test ! -s conftest.err
21126 } && test -s conftest.$ac_objext; then
21127 ac_header_compiler=yes
21129 echo "$as_me: failed program was:" >&5
21130 sed 's/^/| /' conftest.$ac_ext >&5
21132 ac_header_compiler=no
21135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21136 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21137 echo "${ECHO_T}$ac_header_compiler" >&6; }
21139 # Is the header present?
21140 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21141 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21142 cat >conftest.$ac_ext <<_ACEOF
21145 cat confdefs.h >>conftest.$ac_ext
21146 cat >>conftest.$ac_ext <<_ACEOF
21147 /* end confdefs.h. */
21148 #include <$ac_header>
21150 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
21163 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21164 test ! -s conftest.err
21166 ac_header_preproc=yes
21168 echo "$as_me: failed program was:" >&5
21169 sed 's/^/| /' conftest.$ac_ext >&5
21171 ac_header_preproc=no
21174 rm -f conftest.err conftest.$ac_ext
21175 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21176 echo "${ECHO_T}$ac_header_preproc" >&6; }
21178 # So? What about this header?
21179 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21181 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21182 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21184 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21185 ac_header_preproc=yes
21188 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21189 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21190 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21191 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21192 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21193 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21194 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21195 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21197 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21198 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21199 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21201 ## -------------------------------------------------- ##
21202 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
21203 ## -------------------------------------------------- ##
21205 ) | sed "s/^/$as_me: WARNING: /" >&2
21208 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21210 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21211 echo $ECHO_N "(cached) $ECHO_C" >&6
21213 eval "$as_ac_Header=\$ac_header_preproc"
21215 ac_res=`eval echo '${'$as_ac_Header'}'`
21216 { echo "$as_me:$LINENO: result: $ac_res" >&5
21217 echo "${ECHO_T}$ac_res" >&6; }
21220 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21221 cat >>confdefs.h <<_ACEOF
21222 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21237 for ac_func in gettimeofday usleep \
21245 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21246 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21247 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21248 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21249 echo $ECHO_N "(cached) $ECHO_C" >&6
21251 cat >conftest.$ac_ext <<_ACEOF
21254 cat confdefs.h >>conftest.$ac_ext
21255 cat >>conftest.$ac_ext <<_ACEOF
21256 /* end confdefs.h. */
21257 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21259 #define $ac_func innocuous_$ac_func
21261 /* System header to define __stub macros and hopefully few prototypes,
21262 which can conflict with char $ac_func (); below.
21263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21264 <limits.h> exists even on freestanding compilers. */
21267 # include <limits.h>
21269 # include <assert.h>
21274 /* Override any GCC internal prototype to avoid an error.
21275 Use char because int might match the return type of a GCC
21276 builtin and then its argument prototype would still apply. */
21281 /* The GNU C library defines this for functions which it implements
21282 to always fail with ENOSYS. Some functions are actually named
21283 something starting with __ and the normal name is an alias. */
21284 #if defined __stub_$ac_func || defined __stub___$ac_func
21291 return $ac_func ();
21296 rm -f conftest.$ac_objext conftest$ac_exeext
21297 if { (ac_try="$ac_link"
21298 case "(($ac_try" in
21299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21300 *) ac_try_echo=$ac_try;;
21302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21303 (eval "$ac_link") 2>conftest.er1
21305 grep -v '^ *+' conftest.er1 >conftest.err
21307 cat conftest.err >&5
21308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21309 (exit $ac_status); } && {
21310 test -z "$ac_c_werror_flag" ||
21311 test ! -s conftest.err
21312 } && test -s conftest$ac_exeext &&
21313 $as_test_x conftest$ac_exeext; then
21314 eval "$as_ac_var=yes"
21316 echo "$as_me: failed program was:" >&5
21317 sed 's/^/| /' conftest.$ac_ext >&5
21319 eval "$as_ac_var=no"
21322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21323 conftest$ac_exeext conftest.$ac_ext
21325 ac_res=`eval echo '${'$as_ac_var'}'`
21326 { echo "$as_me:$LINENO: result: $ac_res" >&5
21327 echo "${ECHO_T}$ac_res" >&6; }
21328 if test `eval echo '${'$as_ac_var'}'` = yes; then
21329 cat >>confdefs.h <<_ACEOF
21330 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21337 # check for a working snprintf (or use xbt/snprintf.c, which comes from http://www.ijs.si/software/snprintf/)
21340 for ac_func in snprintf vsnprintf
21342 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21343 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21344 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21345 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21346 echo $ECHO_N "(cached) $ECHO_C" >&6
21348 cat >conftest.$ac_ext <<_ACEOF
21351 cat confdefs.h >>conftest.$ac_ext
21352 cat >>conftest.$ac_ext <<_ACEOF
21353 /* end confdefs.h. */
21354 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21355 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21356 #define $ac_func innocuous_$ac_func
21358 /* System header to define __stub macros and hopefully few prototypes,
21359 which can conflict with char $ac_func (); below.
21360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21361 <limits.h> exists even on freestanding compilers. */
21364 # include <limits.h>
21366 # include <assert.h>
21371 /* Override any GCC internal prototype to avoid an error.
21372 Use char because int might match the return type of a GCC
21373 builtin and then its argument prototype would still apply. */
21378 /* The GNU C library defines this for functions which it implements
21379 to always fail with ENOSYS. Some functions are actually named
21380 something starting with __ and the normal name is an alias. */
21381 #if defined __stub_$ac_func || defined __stub___$ac_func
21388 return $ac_func ();
21393 rm -f conftest.$ac_objext conftest$ac_exeext
21394 if { (ac_try="$ac_link"
21395 case "(($ac_try" in
21396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21397 *) ac_try_echo=$ac_try;;
21399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21400 (eval "$ac_link") 2>conftest.er1
21402 grep -v '^ *+' conftest.er1 >conftest.err
21404 cat conftest.err >&5
21405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21406 (exit $ac_status); } && {
21407 test -z "$ac_c_werror_flag" ||
21408 test ! -s conftest.err
21409 } && test -s conftest$ac_exeext &&
21410 $as_test_x conftest$ac_exeext; then
21411 eval "$as_ac_var=yes"
21413 echo "$as_me: failed program was:" >&5
21414 sed 's/^/| /' conftest.$ac_ext >&5
21416 eval "$as_ac_var=no"
21419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21420 conftest$ac_exeext conftest.$ac_ext
21422 ac_res=`eval echo '${'$as_ac_var'}'`
21423 { echo "$as_me:$LINENO: result: $ac_res" >&5
21424 echo "${ECHO_T}$ac_res" >&6; }
21425 if test `eval echo '${'$as_ac_var'}'` = yes; then
21426 cat >>confdefs.h <<_ACEOF
21427 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21433 { echo "$as_me:$LINENO: checking for working snprintf" >&5
21434 echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6; }
21435 if test "${ac_cv_have_working_snprintf+set}" = set; then
21436 echo $ECHO_N "(cached) $ECHO_C" >&6
21438 if test "$cross_compiling" = yes; then
21439 ac_cv_have_working_snprintf=cross
21441 cat >conftest.$ac_ext <<_ACEOF
21444 cat confdefs.h >>conftest.$ac_ext
21445 cat >>conftest.$ac_ext <<_ACEOF
21446 /* end confdefs.h. */
21451 char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
21452 char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
21454 i = snprintf (bufs, 2, "%s", "111");
21455 if (strcmp (bufs, "1")) exit (1);
21456 if (i != 3) exit (1);
21457 i = snprintf (bufd, 2, "%d", 111);
21458 if (strcmp (bufd, "1")) exit (1);
21459 if (i != 3) exit (1);
21463 rm -f conftest$ac_exeext
21464 if { (ac_try="$ac_link"
21465 case "(($ac_try" in
21466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21467 *) ac_try_echo=$ac_try;;
21469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21470 (eval "$ac_link") 2>&5
21472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21473 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21474 { (case "(($ac_try" in
21475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21476 *) ac_try_echo=$ac_try;;
21478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21479 (eval "$ac_try") 2>&5
21481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21482 (exit $ac_status); }; }; then
21483 ac_cv_have_working_snprintf=yes
21485 echo "$as_me: program exited with status $ac_status" >&5
21486 echo "$as_me: failed program was:" >&5
21487 sed 's/^/| /' conftest.$ac_ext >&5
21489 ( exit $ac_status )
21490 ac_cv_have_working_snprintf=no
21492 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21498 { echo "$as_me:$LINENO: result: $ac_cv_have_working_snprintf" >&5
21499 echo "${ECHO_T}$ac_cv_have_working_snprintf" >&6; }
21500 { echo "$as_me:$LINENO: checking for working vsnprintf" >&5
21501 echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6; }
21502 if test "${ac_cv_have_working_vsnprintf+set}" = set; then
21503 echo $ECHO_N "(cached) $ECHO_C" >&6
21505 if test "$cross_compiling" = yes; then
21506 ac_cv_have_working_vsnprintf=cross
21508 cat >conftest.$ac_ext <<_ACEOF
21511 cat confdefs.h >>conftest.$ac_ext
21512 cat >>conftest.$ac_ext <<_ACEOF
21513 /* end confdefs.h. */
21515 #include <stdarg.h>
21517 int my_vsnprintf (char *buf, const char *tmpl, ...)
21521 va_start (args, tmpl);
21522 i = vsnprintf (buf, 2, tmpl, args);
21529 char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
21530 char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
21532 i = my_vsnprintf (bufs, "%s", "111");
21533 if (strcmp (bufs, "1")) exit (1);
21534 if (i != 3) exit (1);
21535 i = my_vsnprintf (bufd, "%d", 111);
21536 if (strcmp (bufd, "1")) exit (1);
21537 if (i != 3) exit (1);
21541 rm -f conftest$ac_exeext
21542 if { (ac_try="$ac_link"
21543 case "(($ac_try" in
21544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21545 *) ac_try_echo=$ac_try;;
21547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21548 (eval "$ac_link") 2>&5
21550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21551 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21552 { (case "(($ac_try" in
21553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21554 *) ac_try_echo=$ac_try;;
21556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21557 (eval "$ac_try") 2>&5
21559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21560 (exit $ac_status); }; }; then
21561 ac_cv_have_working_vsnprintf=yes
21563 echo "$as_me: program exited with status $ac_status" >&5
21564 echo "$as_me: failed program was:" >&5
21565 sed 's/^/| /' conftest.$ac_ext >&5
21567 ( exit $ac_status )
21568 ac_cv_have_working_vsnprintf=no
21570 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21576 { echo "$as_me:$LINENO: result: $ac_cv_have_working_vsnprintf" >&5
21577 echo "${ECHO_T}$ac_cv_have_working_vsnprintf" >&6; }
21578 if test x$ac_cv_have_working_snprintf$ac_cv_have_working_vsnprintf != "xyesyes"; then
21579 case " $LIBOBJS " in
21580 *" snprintf.$ac_objext "* ) ;;
21581 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
21585 { echo "$as_me:$LINENO: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&5
21586 echo "$as_me: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&2;}
21588 cat >>confdefs.h <<\_ACEOF
21589 #define PREFER_PORTABLE_SNPRINTF 1
21593 # check for asprintf function familly (or request the replacements from xbt/snprintf.c)
21594 { echo "$as_me:$LINENO: checking for asprintf" >&5
21595 echo $ECHO_N "checking for asprintf... $ECHO_C" >&6; }
21596 if test "${ac_cv_func_asprintf+set}" = set; then
21597 echo $ECHO_N "(cached) $ECHO_C" >&6
21599 cat >conftest.$ac_ext <<_ACEOF
21602 cat confdefs.h >>conftest.$ac_ext
21603 cat >>conftest.$ac_ext <<_ACEOF
21604 /* end confdefs.h. */
21605 /* Define asprintf to an innocuous variant, in case <limits.h> declares asprintf.
21606 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21607 #define asprintf innocuous_asprintf
21609 /* System header to define __stub macros and hopefully few prototypes,
21610 which can conflict with char asprintf (); below.
21611 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21612 <limits.h> exists even on freestanding compilers. */
21615 # include <limits.h>
21617 # include <assert.h>
21622 /* Override any GCC internal prototype to avoid an error.
21623 Use char because int might match the return type of a GCC
21624 builtin and then its argument prototype would still apply. */
21629 /* The GNU C library defines this for functions which it implements
21630 to always fail with ENOSYS. Some functions are actually named
21631 something starting with __ and the normal name is an alias. */
21632 #if defined __stub_asprintf || defined __stub___asprintf
21639 return asprintf ();
21644 rm -f conftest.$ac_objext conftest$ac_exeext
21645 if { (ac_try="$ac_link"
21646 case "(($ac_try" in
21647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21648 *) ac_try_echo=$ac_try;;
21650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21651 (eval "$ac_link") 2>conftest.er1
21653 grep -v '^ *+' conftest.er1 >conftest.err
21655 cat conftest.err >&5
21656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21657 (exit $ac_status); } && {
21658 test -z "$ac_c_werror_flag" ||
21659 test ! -s conftest.err
21660 } && test -s conftest$ac_exeext &&
21661 $as_test_x conftest$ac_exeext; then
21662 ac_cv_func_asprintf=yes
21664 echo "$as_me: failed program was:" >&5
21665 sed 's/^/| /' conftest.$ac_ext >&5
21667 ac_cv_func_asprintf=no
21670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21671 conftest$ac_exeext conftest.$ac_ext
21673 { echo "$as_me:$LINENO: result: $ac_cv_func_asprintf" >&5
21674 echo "${ECHO_T}$ac_cv_func_asprintf" >&6; }
21675 if test $ac_cv_func_asprintf = yes; then
21679 cat >>confdefs.h <<\_ACEOF
21680 #define NEED_ASPRINTF 1
21685 { echo "$as_me:$LINENO: checking for vasprintf" >&5
21686 echo $ECHO_N "checking for vasprintf... $ECHO_C" >&6; }
21687 if test "${ac_cv_func_vasprintf+set}" = set; then
21688 echo $ECHO_N "(cached) $ECHO_C" >&6
21690 cat >conftest.$ac_ext <<_ACEOF
21693 cat confdefs.h >>conftest.$ac_ext
21694 cat >>conftest.$ac_ext <<_ACEOF
21695 /* end confdefs.h. */
21696 /* Define vasprintf to an innocuous variant, in case <limits.h> declares vasprintf.
21697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21698 #define vasprintf innocuous_vasprintf
21700 /* System header to define __stub macros and hopefully few prototypes,
21701 which can conflict with char vasprintf (); below.
21702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21703 <limits.h> exists even on freestanding compilers. */
21706 # include <limits.h>
21708 # include <assert.h>
21713 /* Override any GCC internal prototype to avoid an error.
21714 Use char because int might match the return type of a GCC
21715 builtin and then its argument prototype would still apply. */
21720 /* The GNU C library defines this for functions which it implements
21721 to always fail with ENOSYS. Some functions are actually named
21722 something starting with __ and the normal name is an alias. */
21723 #if defined __stub_vasprintf || defined __stub___vasprintf
21730 return vasprintf ();
21735 rm -f conftest.$ac_objext conftest$ac_exeext
21736 if { (ac_try="$ac_link"
21737 case "(($ac_try" in
21738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21739 *) ac_try_echo=$ac_try;;
21741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21742 (eval "$ac_link") 2>conftest.er1
21744 grep -v '^ *+' conftest.er1 >conftest.err
21746 cat conftest.err >&5
21747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21748 (exit $ac_status); } && {
21749 test -z "$ac_c_werror_flag" ||
21750 test ! -s conftest.err
21751 } && test -s conftest$ac_exeext &&
21752 $as_test_x conftest$ac_exeext; then
21753 ac_cv_func_vasprintf=yes
21755 echo "$as_me: failed program was:" >&5
21756 sed 's/^/| /' conftest.$ac_ext >&5
21758 ac_cv_func_vasprintf=no
21761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21762 conftest$ac_exeext conftest.$ac_ext
21764 { echo "$as_me:$LINENO: result: $ac_cv_func_vasprintf" >&5
21765 echo "${ECHO_T}$ac_cv_func_vasprintf" >&6; }
21766 if test $ac_cv_func_vasprintf = yes; then
21770 cat >>confdefs.h <<\_ACEOF
21771 #define NEED_VASPRINTF 1
21777 # Checks for typedefs, structures, and compiler characteristics.
21778 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21779 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21780 if test "${ac_cv_c_const+set}" = set; then
21781 echo $ECHO_N "(cached) $ECHO_C" >&6
21783 cat >conftest.$ac_ext <<_ACEOF
21786 cat confdefs.h >>conftest.$ac_ext
21787 cat >>conftest.$ac_ext <<_ACEOF
21788 /* end confdefs.h. */
21793 /* FIXME: Include the comments suggested by Paul. */
21794 #ifndef __cplusplus
21795 /* Ultrix mips cc rejects this. */
21796 typedef int charset[2];
21798 /* SunOS 4.1.1 cc rejects this. */
21799 char const *const *pcpcc;
21801 /* NEC SVR4.0.2 mips cc rejects this. */
21802 struct point {int x, y;};
21803 static struct point const zero = {0,0};
21804 /* AIX XL C 1.02.0.0 rejects this.
21805 It does not let you subtract one const X* pointer from another in
21806 an arm of an if-expression whose if-part is not a constant
21808 const char *g = "string";
21809 pcpcc = &g + (g ? g-g : 0);
21810 /* HPUX 7.0 cc rejects these. */
21812 ppc = (char**) pcpcc;
21813 pcpcc = (char const *const *) ppc;
21814 { /* SCO 3.2v4 cc rejects this. */
21816 char const *s = 0 ? (char *) 0 : (char const *) 0;
21821 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21822 int x[] = {25, 17};
21823 const int *foo = &x[0];
21826 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21827 typedef const int *iptr;
21831 { /* AIX XL C 1.02.0.0 rejects this saying
21832 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21833 struct s { int j; const int *ap[3]; };
21834 struct s *b; b->j = 5;
21836 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21837 const int foo = 10;
21838 if (!foo) return 0;
21840 return !cs[0] && !zero.x;
21847 rm -f conftest.$ac_objext
21848 if { (ac_try="$ac_compile"
21849 case "(($ac_try" in
21850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21851 *) ac_try_echo=$ac_try;;
21853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21854 (eval "$ac_compile") 2>conftest.er1
21856 grep -v '^ *+' conftest.er1 >conftest.err
21858 cat conftest.err >&5
21859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21860 (exit $ac_status); } && {
21861 test -z "$ac_c_werror_flag" ||
21862 test ! -s conftest.err
21863 } && test -s conftest.$ac_objext; then
21866 echo "$as_me: failed program was:" >&5
21867 sed 's/^/| /' conftest.$ac_ext >&5
21872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21874 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21875 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21876 if test $ac_cv_c_const = no; then
21878 cat >>confdefs.h <<\_ACEOF
21884 { echo "$as_me:$LINENO: checking for inline" >&5
21885 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
21886 if test "${ac_cv_c_inline+set}" = set; then
21887 echo $ECHO_N "(cached) $ECHO_C" >&6
21890 for ac_kw in inline __inline__ __inline; do
21891 cat >conftest.$ac_ext <<_ACEOF
21894 cat confdefs.h >>conftest.$ac_ext
21895 cat >>conftest.$ac_ext <<_ACEOF
21896 /* end confdefs.h. */
21897 #ifndef __cplusplus
21899 static $ac_kw foo_t static_foo () {return 0; }
21900 $ac_kw foo_t foo () {return 0; }
21904 rm -f conftest.$ac_objext
21905 if { (ac_try="$ac_compile"
21906 case "(($ac_try" in
21907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21908 *) ac_try_echo=$ac_try;;
21910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21911 (eval "$ac_compile") 2>conftest.er1
21913 grep -v '^ *+' conftest.er1 >conftest.err
21915 cat conftest.err >&5
21916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21917 (exit $ac_status); } && {
21918 test -z "$ac_c_werror_flag" ||
21919 test ! -s conftest.err
21920 } && test -s conftest.$ac_objext; then
21921 ac_cv_c_inline=$ac_kw
21923 echo "$as_me: failed program was:" >&5
21924 sed 's/^/| /' conftest.$ac_ext >&5
21929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21930 test "$ac_cv_c_inline" != no && break
21934 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21935 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
21938 case $ac_cv_c_inline in
21941 case $ac_cv_c_inline in
21943 *) ac_val=$ac_cv_c_inline;;
21945 cat >>confdefs.h <<_ACEOF
21946 #ifndef __cplusplus
21947 #define inline $ac_val
21953 { echo "$as_me:$LINENO: checking for size_t" >&5
21954 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21955 if test "${ac_cv_type_size_t+set}" = set; then
21956 echo $ECHO_N "(cached) $ECHO_C" >&6
21958 cat >conftest.$ac_ext <<_ACEOF
21961 cat confdefs.h >>conftest.$ac_ext
21962 cat >>conftest.$ac_ext <<_ACEOF
21963 /* end confdefs.h. */
21964 $ac_includes_default
21965 typedef size_t ac__type_new_;
21969 if ((ac__type_new_ *) 0)
21971 if (sizeof (ac__type_new_))
21977 rm -f conftest.$ac_objext
21978 if { (ac_try="$ac_compile"
21979 case "(($ac_try" in
21980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21981 *) ac_try_echo=$ac_try;;
21983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21984 (eval "$ac_compile") 2>conftest.er1
21986 grep -v '^ *+' conftest.er1 >conftest.err
21988 cat conftest.err >&5
21989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21990 (exit $ac_status); } && {
21991 test -z "$ac_c_werror_flag" ||
21992 test ! -s conftest.err
21993 } && test -s conftest.$ac_objext; then
21994 ac_cv_type_size_t=yes
21996 echo "$as_me: failed program was:" >&5
21997 sed 's/^/| /' conftest.$ac_ext >&5
21999 ac_cv_type_size_t=no
22002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22004 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22005 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22006 if test $ac_cv_type_size_t = yes; then
22010 cat >>confdefs.h <<_ACEOF
22011 #define size_t unsigned int
22017 ###################################
22018 ## SimGrid and GRAS specific checks
22022 { echo "$as_me:$LINENO: result: " >&5
22023 echo "${ECHO_T}" >&6; }
22024 { echo "$as_me:$LINENO: result: ${T_MD}Checking GRAS architecture signature...${T_ME}" >&5
22025 echo "${ECHO_T}${T_MD}Checking GRAS architecture signature...${T_ME}" >&6; }
22027 # Check architecture signature begin
22029 # Check for the architecture
22030 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22031 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
22032 if test "${ac_cv_c_bigendian+set}" = set; then
22033 echo $ECHO_N "(cached) $ECHO_C" >&6
22035 # See if sys/param.h defines the BYTE_ORDER macro.
22036 cat >conftest.$ac_ext <<_ACEOF
22039 cat confdefs.h >>conftest.$ac_ext
22040 cat >>conftest.$ac_ext <<_ACEOF
22041 /* end confdefs.h. */
22042 #include <sys/types.h>
22043 #include <sys/param.h>
22048 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
22049 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
22050 bogus endian macros
22057 rm -f conftest.$ac_objext
22058 if { (ac_try="$ac_compile"
22059 case "(($ac_try" in
22060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22061 *) ac_try_echo=$ac_try;;
22063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22064 (eval "$ac_compile") 2>conftest.er1
22066 grep -v '^ *+' conftest.er1 >conftest.err
22068 cat conftest.err >&5
22069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22070 (exit $ac_status); } && {
22071 test -z "$ac_c_werror_flag" ||
22072 test ! -s conftest.err
22073 } && test -s conftest.$ac_objext; then
22074 # It does; now see whether it defined to BIG_ENDIAN or not.
22075 cat >conftest.$ac_ext <<_ACEOF
22078 cat confdefs.h >>conftest.$ac_ext
22079 cat >>conftest.$ac_ext <<_ACEOF
22080 /* end confdefs.h. */
22081 #include <sys/types.h>
22082 #include <sys/param.h>
22087 #if BYTE_ORDER != BIG_ENDIAN
22095 rm -f conftest.$ac_objext
22096 if { (ac_try="$ac_compile"
22097 case "(($ac_try" in
22098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22099 *) ac_try_echo=$ac_try;;
22101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22102 (eval "$ac_compile") 2>conftest.er1
22104 grep -v '^ *+' conftest.er1 >conftest.err
22106 cat conftest.err >&5
22107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22108 (exit $ac_status); } && {
22109 test -z "$ac_c_werror_flag" ||
22110 test ! -s conftest.err
22111 } && test -s conftest.$ac_objext; then
22112 ac_cv_c_bigendian=yes
22114 echo "$as_me: failed program was:" >&5
22115 sed 's/^/| /' conftest.$ac_ext >&5
22117 ac_cv_c_bigendian=no
22120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22122 echo "$as_me: failed program was:" >&5
22123 sed 's/^/| /' conftest.$ac_ext >&5
22125 # It does not; compile a test program.
22126 if test "$cross_compiling" = yes; then
22127 # try to guess the endianness by grepping values into an object file
22128 ac_cv_c_bigendian=unknown
22129 cat >conftest.$ac_ext <<_ACEOF
22132 cat confdefs.h >>conftest.$ac_ext
22133 cat >>conftest.$ac_ext <<_ACEOF
22134 /* end confdefs.h. */
22135 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22136 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22137 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
22138 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22139 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22140 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
22144 _ascii (); _ebcdic ();
22149 rm -f conftest.$ac_objext
22150 if { (ac_try="$ac_compile"
22151 case "(($ac_try" in
22152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22153 *) ac_try_echo=$ac_try;;
22155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22156 (eval "$ac_compile") 2>conftest.er1
22158 grep -v '^ *+' conftest.er1 >conftest.err
22160 cat conftest.err >&5
22161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22162 (exit $ac_status); } && {
22163 test -z "$ac_c_werror_flag" ||
22164 test ! -s conftest.err
22165 } && test -s conftest.$ac_objext; then
22166 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
22167 ac_cv_c_bigendian=yes
22169 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22170 if test "$ac_cv_c_bigendian" = unknown; then
22171 ac_cv_c_bigendian=no
22173 # finding both strings is unlikely to happen, but who knows?
22174 ac_cv_c_bigendian=unknown
22178 echo "$as_me: failed program was:" >&5
22179 sed 's/^/| /' conftest.$ac_ext >&5
22184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22186 cat >conftest.$ac_ext <<_ACEOF
22189 cat confdefs.h >>conftest.$ac_ext
22190 cat >>conftest.$ac_ext <<_ACEOF
22191 /* end confdefs.h. */
22192 $ac_includes_default
22197 /* Are we little or big endian? From Harbison&Steele. */
22201 char c[sizeof (long int)];
22204 return u.c[sizeof (long int) - 1] == 1;
22210 rm -f conftest$ac_exeext
22211 if { (ac_try="$ac_link"
22212 case "(($ac_try" in
22213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22214 *) ac_try_echo=$ac_try;;
22216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22217 (eval "$ac_link") 2>&5
22219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22220 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22221 { (case "(($ac_try" in
22222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22223 *) ac_try_echo=$ac_try;;
22225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22226 (eval "$ac_try") 2>&5
22228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22229 (exit $ac_status); }; }; then
22230 ac_cv_c_bigendian=no
22232 echo "$as_me: program exited with status $ac_status" >&5
22233 echo "$as_me: failed program was:" >&5
22234 sed 's/^/| /' conftest.$ac_ext >&5
22236 ( exit $ac_status )
22237 ac_cv_c_bigendian=yes
22239 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22247 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22248 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
22249 case $ac_cv_c_bigendian in
22255 { { echo "$as_me:$LINENO: error: GRAS works only for little or big endian systems (yet)" >&5
22256 echo "$as_me: error: GRAS works only for little or big endian systems (yet)" >&2;}
22257 { (exit 1); exit 1; }; } ;;
22261 cat >>confdefs.h <<_ACEOF
22262 #define GRAS_BIGENDIAN $endian
22266 { echo "$as_me:$LINENO: checking size of char" >&5
22267 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
22268 if test "${ac_cv_sizeof_char+set}" = set; then
22269 echo $ECHO_N "(cached) $ECHO_C" >&6
22271 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22272 cat >conftest.$ac_ext <<_ACEOF
22275 cat confdefs.h >>conftest.$ac_ext
22276 cat >>conftest.$ac_ext <<_ACEOF
22277 /* end confdefs.h. */
22278 #include "confdefs.h"
22279 #include <sys/types.h>
22285 switch (0) case 0: case (sizeof (char) == $ac_size):;
22290 rm -f conftest.$ac_objext
22291 if { (ac_try="$ac_compile"
22292 case "(($ac_try" in
22293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22294 *) ac_try_echo=$ac_try;;
22296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22297 (eval "$ac_compile") 2>conftest.er1
22299 grep -v '^ *+' conftest.er1 >conftest.err
22301 cat conftest.err >&5
22302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22303 (exit $ac_status); } && {
22304 test -z "$ac_c_werror_flag" ||
22305 test ! -s conftest.err
22306 } && test -s conftest.$ac_objext; then
22307 ac_cv_sizeof_char=$ac_size
22309 echo "$as_me: failed program was:" >&5
22310 sed 's/^/| /' conftest.$ac_ext >&5
22315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22316 if test x$ac_cv_sizeof_char != x ; then break; fi
22322 unspecif=$ac_cv_sizeof_char
22323 if test x$unspecif = x ; then
22324 { { echo "$as_me:$LINENO: error: cannot determine a size for char" >&5
22325 echo "$as_me: error: cannot determine a size for char" >&2;}
22326 { (exit 1); exit 1; }; }
22329 if test "${ac_cv_sizeof_signed_char+set}" = set; then
22330 echo $ECHO_N "(cached) $ECHO_C" >&6
22332 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22333 cat >conftest.$ac_ext <<_ACEOF
22336 cat confdefs.h >>conftest.$ac_ext
22337 cat >>conftest.$ac_ext <<_ACEOF
22338 /* end confdefs.h. */
22339 #include "confdefs.h"
22340 #include <sys/types.h>
22346 switch (0) case 0: case (sizeof (signed char) == $ac_size):;
22351 rm -f conftest.$ac_objext
22352 if { (ac_try="$ac_compile"
22353 case "(($ac_try" in
22354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22355 *) ac_try_echo=$ac_try;;
22357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22358 (eval "$ac_compile") 2>conftest.er1
22360 grep -v '^ *+' conftest.er1 >conftest.err
22362 cat conftest.err >&5
22363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22364 (exit $ac_status); } && {
22365 test -z "$ac_c_werror_flag" ||
22366 test ! -s conftest.err
22367 } && test -s conftest.$ac_objext; then
22368 ac_cv_sizeof_signed_char=$ac_size
22370 echo "$as_me: failed program was:" >&5
22371 sed 's/^/| /' conftest.$ac_ext >&5
22376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22377 if test x$ac_cv_sizeof_signed_char != x ; then break; fi
22383 signed=$ac_cv_sizeof_signed_char
22384 if test x$signed = x ; then
22385 { { echo "$as_me:$LINENO: error: cannot determine a size for signed char" >&5
22386 echo "$as_me: error: cannot determine a size for signed char" >&2;}
22387 { (exit 1); exit 1; }; }
22389 if test x$unspecif != x$signed ; then
22390 { { echo "$as_me:$LINENO: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&5
22391 echo "$as_me: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&2;}
22392 { (exit 1); exit 1; }; }
22395 if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
22396 echo $ECHO_N "(cached) $ECHO_C" >&6
22398 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22399 cat >conftest.$ac_ext <<_ACEOF
22402 cat confdefs.h >>conftest.$ac_ext
22403 cat >>conftest.$ac_ext <<_ACEOF
22404 /* end confdefs.h. */
22405 #include "confdefs.h"
22406 #include <sys/types.h>
22412 switch (0) case 0: case (sizeof (unsigned char) == $ac_size):;
22417 rm -f conftest.$ac_objext
22418 if { (ac_try="$ac_compile"
22419 case "(($ac_try" in
22420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22421 *) ac_try_echo=$ac_try;;
22423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22424 (eval "$ac_compile") 2>conftest.er1
22426 grep -v '^ *+' conftest.er1 >conftest.err
22428 cat conftest.err >&5
22429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22430 (exit $ac_status); } && {
22431 test -z "$ac_c_werror_flag" ||
22432 test ! -s conftest.err
22433 } && test -s conftest.$ac_objext; then
22434 ac_cv_sizeof_unsigned_char=$ac_size
22436 echo "$as_me: failed program was:" >&5
22437 sed 's/^/| /' conftest.$ac_ext >&5
22442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22443 if test x$ac_cv_sizeof_unsigned_char != x ; then break; fi
22449 unsigned=$ac_cv_sizeof_unsigned_char
22450 if test x$unsigned = x ; then
22451 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned char" >&5
22452 echo "$as_me: error: cannot determine a size for unsigned char" >&2;}
22453 { (exit 1); exit 1; }; }
22455 if test x$unsigned != x$signed ; then
22456 { { echo "$as_me:$LINENO: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&5
22457 echo "$as_me: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&2;}
22458 { (exit 1); exit 1; }; }
22461 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
22462 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6; }
22463 { echo "$as_me:$LINENO: checking for the minimal structure boundary of char" >&5
22464 echo $ECHO_N "checking for the minimal structure boundary of char... $ECHO_C" >&6; }
22466 if test "${ac_cv_struct_boundary_char+set}" = set; then
22467 echo $ECHO_N "(cached) $ECHO_C" >&6
22469 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22470 cat >conftest.$ac_ext <<_ACEOF
22473 cat confdefs.h >>conftest.$ac_ext
22474 cat >>conftest.$ac_ext <<_ACEOF
22475 /* end confdefs.h. */
22476 #include "confdefs.h"
22477 #include <sys/types.h>
22478 struct s { char c; char i; };
22483 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(char)):;
22488 rm -f conftest.$ac_objext
22489 if { (ac_try="$ac_compile"
22490 case "(($ac_try" in
22491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22492 *) ac_try_echo=$ac_try;;
22494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22495 (eval "$ac_compile") 2>conftest.er1
22497 grep -v '^ *+' conftest.er1 >conftest.err
22499 cat conftest.err >&5
22500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22501 (exit $ac_status); } && {
22502 test -z "$ac_c_werror_flag" ||
22503 test ! -s conftest.err
22504 } && test -s conftest.$ac_objext; then
22505 ac_cv_struct_boundary_char=$ac_size
22507 echo "$as_me: failed program was:" >&5
22508 sed 's/^/| /' conftest.$ac_ext >&5
22513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22514 if test x$ac_cv_struct_boundary_char != x ; then break; fi
22519 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_char" >&5
22520 echo "${ECHO_T}$ac_cv_struct_boundary_char" >&6; }
22521 if test x$ac_cv_struct_boundary_char = x ; then
22522 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of char in structures" >&5
22523 echo "$as_me: error: Cannot determine the minimal alignment boundary of char in structures" >&2;}
22524 { (exit 1); exit 1; }; }
22527 { echo "$as_me:$LINENO: checking size of short int" >&5
22528 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
22529 if test "${ac_cv_sizeof_short_int+set}" = set; then
22530 echo $ECHO_N "(cached) $ECHO_C" >&6
22532 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22533 cat >conftest.$ac_ext <<_ACEOF
22536 cat confdefs.h >>conftest.$ac_ext
22537 cat >>conftest.$ac_ext <<_ACEOF
22538 /* end confdefs.h. */
22539 #include "confdefs.h"
22540 #include <sys/types.h>
22546 switch (0) case 0: case (sizeof (short int) == $ac_size):;
22551 rm -f conftest.$ac_objext
22552 if { (ac_try="$ac_compile"
22553 case "(($ac_try" in
22554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22555 *) ac_try_echo=$ac_try;;
22557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22558 (eval "$ac_compile") 2>conftest.er1
22560 grep -v '^ *+' conftest.er1 >conftest.err
22562 cat conftest.err >&5
22563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22564 (exit $ac_status); } && {
22565 test -z "$ac_c_werror_flag" ||
22566 test ! -s conftest.err
22567 } && test -s conftest.$ac_objext; then
22568 ac_cv_sizeof_short_int=$ac_size
22570 echo "$as_me: failed program was:" >&5
22571 sed 's/^/| /' conftest.$ac_ext >&5
22576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22577 if test x$ac_cv_sizeof_short_int != x ; then break; fi
22583 unspecif=$ac_cv_sizeof_short_int
22584 if test x$unspecif = x ; then
22585 { { echo "$as_me:$LINENO: error: cannot determine a size for short int" >&5
22586 echo "$as_me: error: cannot determine a size for short int" >&2;}
22587 { (exit 1); exit 1; }; }
22590 if test "${ac_cv_sizeof_signed_short_int+set}" = set; then
22591 echo $ECHO_N "(cached) $ECHO_C" >&6
22593 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22594 cat >conftest.$ac_ext <<_ACEOF
22597 cat confdefs.h >>conftest.$ac_ext
22598 cat >>conftest.$ac_ext <<_ACEOF
22599 /* end confdefs.h. */
22600 #include "confdefs.h"
22601 #include <sys/types.h>
22607 switch (0) case 0: case (sizeof (signed short int) == $ac_size):;
22612 rm -f conftest.$ac_objext
22613 if { (ac_try="$ac_compile"
22614 case "(($ac_try" in
22615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22616 *) ac_try_echo=$ac_try;;
22618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22619 (eval "$ac_compile") 2>conftest.er1
22621 grep -v '^ *+' conftest.er1 >conftest.err
22623 cat conftest.err >&5
22624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22625 (exit $ac_status); } && {
22626 test -z "$ac_c_werror_flag" ||
22627 test ! -s conftest.err
22628 } && test -s conftest.$ac_objext; then
22629 ac_cv_sizeof_signed_short_int=$ac_size
22631 echo "$as_me: failed program was:" >&5
22632 sed 's/^/| /' conftest.$ac_ext >&5
22637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22638 if test x$ac_cv_sizeof_signed_short_int != x ; then break; fi
22644 signed=$ac_cv_sizeof_signed_short_int
22645 if test x$signed = x ; then
22646 { { echo "$as_me:$LINENO: error: cannot determine a size for signed short int" >&5
22647 echo "$as_me: error: cannot determine a size for signed short int" >&2;}
22648 { (exit 1); exit 1; }; }
22650 if test x$unspecif != x$signed ; then
22651 { { echo "$as_me:$LINENO: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&5
22652 echo "$as_me: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&2;}
22653 { (exit 1); exit 1; }; }
22656 if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then
22657 echo $ECHO_N "(cached) $ECHO_C" >&6
22659 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22660 cat >conftest.$ac_ext <<_ACEOF
22663 cat confdefs.h >>conftest.$ac_ext
22664 cat >>conftest.$ac_ext <<_ACEOF
22665 /* end confdefs.h. */
22666 #include "confdefs.h"
22667 #include <sys/types.h>
22673 switch (0) case 0: case (sizeof (unsigned short int) == $ac_size):;
22678 rm -f conftest.$ac_objext
22679 if { (ac_try="$ac_compile"
22680 case "(($ac_try" in
22681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22682 *) ac_try_echo=$ac_try;;
22684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22685 (eval "$ac_compile") 2>conftest.er1
22687 grep -v '^ *+' conftest.er1 >conftest.err
22689 cat conftest.err >&5
22690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22691 (exit $ac_status); } && {
22692 test -z "$ac_c_werror_flag" ||
22693 test ! -s conftest.err
22694 } && test -s conftest.$ac_objext; then
22695 ac_cv_sizeof_unsigned_short_int=$ac_size
22697 echo "$as_me: failed program was:" >&5
22698 sed 's/^/| /' conftest.$ac_ext >&5
22703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22704 if test x$ac_cv_sizeof_unsigned_short_int != x ; then break; fi
22710 unsigned=$ac_cv_sizeof_unsigned_short_int
22711 if test x$unsigned = x ; then
22712 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned short int" >&5
22713 echo "$as_me: error: cannot determine a size for unsigned short int" >&2;}
22714 { (exit 1); exit 1; }; }
22716 if test x$unsigned != x$signed ; then
22717 { { echo "$as_me:$LINENO: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&5
22718 echo "$as_me: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&2;}
22719 { (exit 1); exit 1; }; }
22722 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short_int" >&5
22723 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short_int" >&6; }
22724 { echo "$as_me:$LINENO: checking for the minimal structure boundary of short int" >&5
22725 echo $ECHO_N "checking for the minimal structure boundary of short int... $ECHO_C" >&6; }
22727 if test "${ac_cv_struct_boundary_short_int+set}" = set; then
22728 echo $ECHO_N "(cached) $ECHO_C" >&6
22730 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22731 cat >conftest.$ac_ext <<_ACEOF
22734 cat confdefs.h >>conftest.$ac_ext
22735 cat >>conftest.$ac_ext <<_ACEOF
22736 /* end confdefs.h. */
22737 #include "confdefs.h"
22738 #include <sys/types.h>
22739 struct s { char c; short int i; };
22744 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(short int)):;
22749 rm -f conftest.$ac_objext
22750 if { (ac_try="$ac_compile"
22751 case "(($ac_try" in
22752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22753 *) ac_try_echo=$ac_try;;
22755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22756 (eval "$ac_compile") 2>conftest.er1
22758 grep -v '^ *+' conftest.er1 >conftest.err
22760 cat conftest.err >&5
22761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22762 (exit $ac_status); } && {
22763 test -z "$ac_c_werror_flag" ||
22764 test ! -s conftest.err
22765 } && test -s conftest.$ac_objext; then
22766 ac_cv_struct_boundary_short_int=$ac_size
22768 echo "$as_me: failed program was:" >&5
22769 sed 's/^/| /' conftest.$ac_ext >&5
22774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22775 if test x$ac_cv_struct_boundary_short_int != x ; then break; fi
22780 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_short_int" >&5
22781 echo "${ECHO_T}$ac_cv_struct_boundary_short_int" >&6; }
22782 if test x$ac_cv_struct_boundary_short_int = x ; then
22783 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of short int in structures" >&5
22784 echo "$as_me: error: Cannot determine the minimal alignment boundary of short int in structures" >&2;}
22785 { (exit 1); exit 1; }; }
22788 { echo "$as_me:$LINENO: checking size of int" >&5
22789 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
22790 if test "${ac_cv_sizeof_int+set}" = set; then
22791 echo $ECHO_N "(cached) $ECHO_C" >&6
22793 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22794 cat >conftest.$ac_ext <<_ACEOF
22797 cat confdefs.h >>conftest.$ac_ext
22798 cat >>conftest.$ac_ext <<_ACEOF
22799 /* end confdefs.h. */
22800 #include "confdefs.h"
22801 #include <sys/types.h>
22807 switch (0) case 0: case (sizeof (int) == $ac_size):;
22812 rm -f conftest.$ac_objext
22813 if { (ac_try="$ac_compile"
22814 case "(($ac_try" in
22815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22816 *) ac_try_echo=$ac_try;;
22818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22819 (eval "$ac_compile") 2>conftest.er1
22821 grep -v '^ *+' conftest.er1 >conftest.err
22823 cat conftest.err >&5
22824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22825 (exit $ac_status); } && {
22826 test -z "$ac_c_werror_flag" ||
22827 test ! -s conftest.err
22828 } && test -s conftest.$ac_objext; then
22829 ac_cv_sizeof_int=$ac_size
22831 echo "$as_me: failed program was:" >&5
22832 sed 's/^/| /' conftest.$ac_ext >&5
22837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22838 if test x$ac_cv_sizeof_int != x ; then break; fi
22844 unspecif=$ac_cv_sizeof_int
22845 if test x$unspecif = x ; then
22846 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
22847 echo "$as_me: error: cannot determine a size for int" >&2;}
22848 { (exit 1); exit 1; }; }
22851 if test "${ac_cv_sizeof_signed_int+set}" = set; then
22852 echo $ECHO_N "(cached) $ECHO_C" >&6
22854 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22855 cat >conftest.$ac_ext <<_ACEOF
22858 cat confdefs.h >>conftest.$ac_ext
22859 cat >>conftest.$ac_ext <<_ACEOF
22860 /* end confdefs.h. */
22861 #include "confdefs.h"
22862 #include <sys/types.h>
22868 switch (0) case 0: case (sizeof (signed int) == $ac_size):;
22873 rm -f conftest.$ac_objext
22874 if { (ac_try="$ac_compile"
22875 case "(($ac_try" in
22876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22877 *) ac_try_echo=$ac_try;;
22879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22880 (eval "$ac_compile") 2>conftest.er1
22882 grep -v '^ *+' conftest.er1 >conftest.err
22884 cat conftest.err >&5
22885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22886 (exit $ac_status); } && {
22887 test -z "$ac_c_werror_flag" ||
22888 test ! -s conftest.err
22889 } && test -s conftest.$ac_objext; then
22890 ac_cv_sizeof_signed_int=$ac_size
22892 echo "$as_me: failed program was:" >&5
22893 sed 's/^/| /' conftest.$ac_ext >&5
22898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22899 if test x$ac_cv_sizeof_signed_int != x ; then break; fi
22905 signed=$ac_cv_sizeof_signed_int
22906 if test x$signed = x ; then
22907 { { echo "$as_me:$LINENO: error: cannot determine a size for signed int" >&5
22908 echo "$as_me: error: cannot determine a size for signed int" >&2;}
22909 { (exit 1); exit 1; }; }
22911 if test x$unspecif != x$signed ; then
22912 { { echo "$as_me:$LINENO: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&5
22913 echo "$as_me: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&2;}
22914 { (exit 1); exit 1; }; }
22917 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
22918 echo $ECHO_N "(cached) $ECHO_C" >&6
22920 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22921 cat >conftest.$ac_ext <<_ACEOF
22924 cat confdefs.h >>conftest.$ac_ext
22925 cat >>conftest.$ac_ext <<_ACEOF
22926 /* end confdefs.h. */
22927 #include "confdefs.h"
22928 #include <sys/types.h>
22934 switch (0) case 0: case (sizeof (unsigned int) == $ac_size):;
22939 rm -f conftest.$ac_objext
22940 if { (ac_try="$ac_compile"
22941 case "(($ac_try" in
22942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22943 *) ac_try_echo=$ac_try;;
22945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22946 (eval "$ac_compile") 2>conftest.er1
22948 grep -v '^ *+' conftest.er1 >conftest.err
22950 cat conftest.err >&5
22951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22952 (exit $ac_status); } && {
22953 test -z "$ac_c_werror_flag" ||
22954 test ! -s conftest.err
22955 } && test -s conftest.$ac_objext; then
22956 ac_cv_sizeof_unsigned_int=$ac_size
22958 echo "$as_me: failed program was:" >&5
22959 sed 's/^/| /' conftest.$ac_ext >&5
22964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22965 if test x$ac_cv_sizeof_unsigned_int != x ; then break; fi
22971 unsigned=$ac_cv_sizeof_unsigned_int
22972 if test x$unsigned = x ; then
22973 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned int" >&5
22974 echo "$as_me: error: cannot determine a size for unsigned int" >&2;}
22975 { (exit 1); exit 1; }; }
22977 if test x$unsigned != x$signed ; then
22978 { { echo "$as_me:$LINENO: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&5
22979 echo "$as_me: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&2;}
22980 { (exit 1); exit 1; }; }
22983 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
22984 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6; }
22985 { echo "$as_me:$LINENO: checking for the minimal structure boundary of int" >&5
22986 echo $ECHO_N "checking for the minimal structure boundary of int... $ECHO_C" >&6; }
22988 if test "${ac_cv_struct_boundary_int+set}" = set; then
22989 echo $ECHO_N "(cached) $ECHO_C" >&6
22991 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22992 cat >conftest.$ac_ext <<_ACEOF
22995 cat confdefs.h >>conftest.$ac_ext
22996 cat >>conftest.$ac_ext <<_ACEOF
22997 /* end confdefs.h. */
22998 #include "confdefs.h"
22999 #include <sys/types.h>
23000 struct s { char c; int i; };
23005 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(int)):;
23010 rm -f conftest.$ac_objext
23011 if { (ac_try="$ac_compile"
23012 case "(($ac_try" in
23013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23014 *) ac_try_echo=$ac_try;;
23016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23017 (eval "$ac_compile") 2>conftest.er1
23019 grep -v '^ *+' conftest.er1 >conftest.err
23021 cat conftest.err >&5
23022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23023 (exit $ac_status); } && {
23024 test -z "$ac_c_werror_flag" ||
23025 test ! -s conftest.err
23026 } && test -s conftest.$ac_objext; then
23027 ac_cv_struct_boundary_int=$ac_size
23029 echo "$as_me: failed program was:" >&5
23030 sed 's/^/| /' conftest.$ac_ext >&5
23035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23036 if test x$ac_cv_struct_boundary_int != x ; then break; fi
23041 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_int" >&5
23042 echo "${ECHO_T}$ac_cv_struct_boundary_int" >&6; }
23043 if test x$ac_cv_struct_boundary_int = x ; then
23044 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of int in structures" >&5
23045 echo "$as_me: error: Cannot determine the minimal alignment boundary of int in structures" >&2;}
23046 { (exit 1); exit 1; }; }
23049 { echo "$as_me:$LINENO: checking size of long int" >&5
23050 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
23051 if test "${ac_cv_sizeof_long_int+set}" = set; then
23052 echo $ECHO_N "(cached) $ECHO_C" >&6
23054 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23055 cat >conftest.$ac_ext <<_ACEOF
23058 cat confdefs.h >>conftest.$ac_ext
23059 cat >>conftest.$ac_ext <<_ACEOF
23060 /* end confdefs.h. */
23061 #include "confdefs.h"
23062 #include <sys/types.h>
23068 switch (0) case 0: case (sizeof (long int) == $ac_size):;
23073 rm -f conftest.$ac_objext
23074 if { (ac_try="$ac_compile"
23075 case "(($ac_try" in
23076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23077 *) ac_try_echo=$ac_try;;
23079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23080 (eval "$ac_compile") 2>conftest.er1
23082 grep -v '^ *+' conftest.er1 >conftest.err
23084 cat conftest.err >&5
23085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23086 (exit $ac_status); } && {
23087 test -z "$ac_c_werror_flag" ||
23088 test ! -s conftest.err
23089 } && test -s conftest.$ac_objext; then
23090 ac_cv_sizeof_long_int=$ac_size
23092 echo "$as_me: failed program was:" >&5
23093 sed 's/^/| /' conftest.$ac_ext >&5
23098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23099 if test x$ac_cv_sizeof_long_int != x ; then break; fi
23105 unspecif=$ac_cv_sizeof_long_int
23106 if test x$unspecif = x ; then
23107 { { echo "$as_me:$LINENO: error: cannot determine a size for long int" >&5
23108 echo "$as_me: error: cannot determine a size for long int" >&2;}
23109 { (exit 1); exit 1; }; }
23112 if test "${ac_cv_sizeof_signed_long_int+set}" = set; then
23113 echo $ECHO_N "(cached) $ECHO_C" >&6
23115 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23116 cat >conftest.$ac_ext <<_ACEOF
23119 cat confdefs.h >>conftest.$ac_ext
23120 cat >>conftest.$ac_ext <<_ACEOF
23121 /* end confdefs.h. */
23122 #include "confdefs.h"
23123 #include <sys/types.h>
23129 switch (0) case 0: case (sizeof (signed long int) == $ac_size):;
23134 rm -f conftest.$ac_objext
23135 if { (ac_try="$ac_compile"
23136 case "(($ac_try" in
23137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23138 *) ac_try_echo=$ac_try;;
23140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23141 (eval "$ac_compile") 2>conftest.er1
23143 grep -v '^ *+' conftest.er1 >conftest.err
23145 cat conftest.err >&5
23146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23147 (exit $ac_status); } && {
23148 test -z "$ac_c_werror_flag" ||
23149 test ! -s conftest.err
23150 } && test -s conftest.$ac_objext; then
23151 ac_cv_sizeof_signed_long_int=$ac_size
23153 echo "$as_me: failed program was:" >&5
23154 sed 's/^/| /' conftest.$ac_ext >&5
23159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23160 if test x$ac_cv_sizeof_signed_long_int != x ; then break; fi
23166 signed=$ac_cv_sizeof_signed_long_int
23167 if test x$signed = x ; then
23168 { { echo "$as_me:$LINENO: error: cannot determine a size for signed long int" >&5
23169 echo "$as_me: error: cannot determine a size for signed long int" >&2;}
23170 { (exit 1); exit 1; }; }
23172 if test x$unspecif != x$signed ; then
23173 { { echo "$as_me:$LINENO: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&5
23174 echo "$as_me: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&2;}
23175 { (exit 1); exit 1; }; }
23178 if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then
23179 echo $ECHO_N "(cached) $ECHO_C" >&6
23181 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23182 cat >conftest.$ac_ext <<_ACEOF
23185 cat confdefs.h >>conftest.$ac_ext
23186 cat >>conftest.$ac_ext <<_ACEOF
23187 /* end confdefs.h. */
23188 #include "confdefs.h"
23189 #include <sys/types.h>
23195 switch (0) case 0: case (sizeof (unsigned long int) == $ac_size):;
23200 rm -f conftest.$ac_objext
23201 if { (ac_try="$ac_compile"
23202 case "(($ac_try" in
23203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23204 *) ac_try_echo=$ac_try;;
23206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23207 (eval "$ac_compile") 2>conftest.er1
23209 grep -v '^ *+' conftest.er1 >conftest.err
23211 cat conftest.err >&5
23212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23213 (exit $ac_status); } && {
23214 test -z "$ac_c_werror_flag" ||
23215 test ! -s conftest.err
23216 } && test -s conftest.$ac_objext; then
23217 ac_cv_sizeof_unsigned_long_int=$ac_size
23219 echo "$as_me: failed program was:" >&5
23220 sed 's/^/| /' conftest.$ac_ext >&5
23225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23226 if test x$ac_cv_sizeof_unsigned_long_int != x ; then break; fi
23232 unsigned=$ac_cv_sizeof_unsigned_long_int
23233 if test x$unsigned = x ; then
23234 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long int" >&5
23235 echo "$as_me: error: cannot determine a size for unsigned long int" >&2;}
23236 { (exit 1); exit 1; }; }
23238 if test x$unsigned != x$signed ; then
23239 { { echo "$as_me:$LINENO: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&5
23240 echo "$as_me: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&2;}
23241 { (exit 1); exit 1; }; }
23244 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_int" >&5
23245 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_int" >&6; }
23246 { echo "$as_me:$LINENO: checking for the minimal structure boundary of long int" >&5
23247 echo $ECHO_N "checking for the minimal structure boundary of long int... $ECHO_C" >&6; }
23249 if test "${ac_cv_struct_boundary_long_int+set}" = set; then
23250 echo $ECHO_N "(cached) $ECHO_C" >&6
23252 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23253 cat >conftest.$ac_ext <<_ACEOF
23256 cat confdefs.h >>conftest.$ac_ext
23257 cat >>conftest.$ac_ext <<_ACEOF
23258 /* end confdefs.h. */
23259 #include "confdefs.h"
23260 #include <sys/types.h>
23261 struct s { char c; long int i; };
23266 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long int)):;
23271 rm -f conftest.$ac_objext
23272 if { (ac_try="$ac_compile"
23273 case "(($ac_try" in
23274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23275 *) ac_try_echo=$ac_try;;
23277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23278 (eval "$ac_compile") 2>conftest.er1
23280 grep -v '^ *+' conftest.er1 >conftest.err
23282 cat conftest.err >&5
23283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23284 (exit $ac_status); } && {
23285 test -z "$ac_c_werror_flag" ||
23286 test ! -s conftest.err
23287 } && test -s conftest.$ac_objext; then
23288 ac_cv_struct_boundary_long_int=$ac_size
23290 echo "$as_me: failed program was:" >&5
23291 sed 's/^/| /' conftest.$ac_ext >&5
23296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23297 if test x$ac_cv_struct_boundary_long_int != x ; then break; fi
23302 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_int" >&5
23303 echo "${ECHO_T}$ac_cv_struct_boundary_long_int" >&6; }
23304 if test x$ac_cv_struct_boundary_long_int = x ; then
23305 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long int in structures" >&5
23306 echo "$as_me: error: Cannot determine the minimal alignment boundary of long int in structures" >&2;}
23307 { (exit 1); exit 1; }; }
23310 { echo "$as_me:$LINENO: checking size of long long int" >&5
23311 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
23312 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
23313 echo $ECHO_N "(cached) $ECHO_C" >&6
23315 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23316 cat >conftest.$ac_ext <<_ACEOF
23319 cat confdefs.h >>conftest.$ac_ext
23320 cat >>conftest.$ac_ext <<_ACEOF
23321 /* end confdefs.h. */
23322 #include "confdefs.h"
23323 #include <sys/types.h>
23329 switch (0) case 0: case (sizeof (long long int) == $ac_size):;
23334 rm -f conftest.$ac_objext
23335 if { (ac_try="$ac_compile"
23336 case "(($ac_try" in
23337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23338 *) ac_try_echo=$ac_try;;
23340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23341 (eval "$ac_compile") 2>conftest.er1
23343 grep -v '^ *+' conftest.er1 >conftest.err
23345 cat conftest.err >&5
23346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23347 (exit $ac_status); } && {
23348 test -z "$ac_c_werror_flag" ||
23349 test ! -s conftest.err
23350 } && test -s conftest.$ac_objext; then
23351 ac_cv_sizeof_long_long_int=$ac_size
23353 echo "$as_me: failed program was:" >&5
23354 sed 's/^/| /' conftest.$ac_ext >&5
23359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23360 if test x$ac_cv_sizeof_long_long_int != x ; then break; fi
23366 unspecif=$ac_cv_sizeof_long_long_int
23367 if test x$unspecif = x ; then
23368 { { echo "$as_me:$LINENO: error: cannot determine a size for long long int" >&5
23369 echo "$as_me: error: cannot determine a size for long long int" >&2;}
23370 { (exit 1); exit 1; }; }
23373 if test "${ac_cv_sizeof_signed_long_long_int+set}" = set; then
23374 echo $ECHO_N "(cached) $ECHO_C" >&6
23376 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23377 cat >conftest.$ac_ext <<_ACEOF
23380 cat confdefs.h >>conftest.$ac_ext
23381 cat >>conftest.$ac_ext <<_ACEOF
23382 /* end confdefs.h. */
23383 #include "confdefs.h"
23384 #include <sys/types.h>
23390 switch (0) case 0: case (sizeof (signed long long int) == $ac_size):;
23395 rm -f conftest.$ac_objext
23396 if { (ac_try="$ac_compile"
23397 case "(($ac_try" in
23398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23399 *) ac_try_echo=$ac_try;;
23401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23402 (eval "$ac_compile") 2>conftest.er1
23404 grep -v '^ *+' conftest.er1 >conftest.err
23406 cat conftest.err >&5
23407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23408 (exit $ac_status); } && {
23409 test -z "$ac_c_werror_flag" ||
23410 test ! -s conftest.err
23411 } && test -s conftest.$ac_objext; then
23412 ac_cv_sizeof_signed_long_long_int=$ac_size
23414 echo "$as_me: failed program was:" >&5
23415 sed 's/^/| /' conftest.$ac_ext >&5
23420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23421 if test x$ac_cv_sizeof_signed_long_long_int != x ; then break; fi
23427 signed=$ac_cv_sizeof_signed_long_long_int
23428 if test x$signed = x ; then
23429 { { echo "$as_me:$LINENO: error: cannot determine a size for signed long long int" >&5
23430 echo "$as_me: error: cannot determine a size for signed long long int" >&2;}
23431 { (exit 1); exit 1; }; }
23433 if test x$unspecif != x$signed ; then
23434 { { echo "$as_me:$LINENO: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&5
23435 echo "$as_me: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&2;}
23436 { (exit 1); exit 1; }; }
23439 if test "${ac_cv_sizeof_unsigned_long_long_int+set}" = set; then
23440 echo $ECHO_N "(cached) $ECHO_C" >&6
23442 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23443 cat >conftest.$ac_ext <<_ACEOF
23446 cat confdefs.h >>conftest.$ac_ext
23447 cat >>conftest.$ac_ext <<_ACEOF
23448 /* end confdefs.h. */
23449 #include "confdefs.h"
23450 #include <sys/types.h>
23456 switch (0) case 0: case (sizeof (unsigned long long int) == $ac_size):;
23461 rm -f conftest.$ac_objext
23462 if { (ac_try="$ac_compile"
23463 case "(($ac_try" in
23464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23465 *) ac_try_echo=$ac_try;;
23467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23468 (eval "$ac_compile") 2>conftest.er1
23470 grep -v '^ *+' conftest.er1 >conftest.err
23472 cat conftest.err >&5
23473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23474 (exit $ac_status); } && {
23475 test -z "$ac_c_werror_flag" ||
23476 test ! -s conftest.err
23477 } && test -s conftest.$ac_objext; then
23478 ac_cv_sizeof_unsigned_long_long_int=$ac_size
23480 echo "$as_me: failed program was:" >&5
23481 sed 's/^/| /' conftest.$ac_ext >&5
23486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23487 if test x$ac_cv_sizeof_unsigned_long_long_int != x ; then break; fi
23493 unsigned=$ac_cv_sizeof_unsigned_long_long_int
23494 if test x$unsigned = x ; then
23495 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long long int" >&5
23496 echo "$as_me: error: cannot determine a size for unsigned long long int" >&2;}
23497 { (exit 1); exit 1; }; }
23499 if test x$unsigned != x$signed ; then
23500 { { echo "$as_me:$LINENO: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&5
23501 echo "$as_me: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&2;}
23502 { (exit 1); exit 1; }; }
23505 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long_int" >&5
23506 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long_int" >&6; }
23507 { echo "$as_me:$LINENO: checking for the minimal structure boundary of long long int" >&5
23508 echo $ECHO_N "checking for the minimal structure boundary of long long int... $ECHO_C" >&6; }
23510 if test "${ac_cv_struct_boundary_long_long_int+set}" = set; then
23511 echo $ECHO_N "(cached) $ECHO_C" >&6
23513 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23514 cat >conftest.$ac_ext <<_ACEOF
23517 cat confdefs.h >>conftest.$ac_ext
23518 cat >>conftest.$ac_ext <<_ACEOF
23519 /* end confdefs.h. */
23520 #include "confdefs.h"
23521 #include <sys/types.h>
23522 struct s { char c; long long int i; };
23527 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long long int)):;
23532 rm -f conftest.$ac_objext
23533 if { (ac_try="$ac_compile"
23534 case "(($ac_try" in
23535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23536 *) ac_try_echo=$ac_try;;
23538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23539 (eval "$ac_compile") 2>conftest.er1
23541 grep -v '^ *+' conftest.er1 >conftest.err
23543 cat conftest.err >&5
23544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23545 (exit $ac_status); } && {
23546 test -z "$ac_c_werror_flag" ||
23547 test ! -s conftest.err
23548 } && test -s conftest.$ac_objext; then
23549 ac_cv_struct_boundary_long_long_int=$ac_size
23551 echo "$as_me: failed program was:" >&5
23552 sed 's/^/| /' conftest.$ac_ext >&5
23557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23558 if test x$ac_cv_struct_boundary_long_long_int != x ; then break; fi
23563 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_long_int" >&5
23564 echo "${ECHO_T}$ac_cv_struct_boundary_long_long_int" >&6; }
23565 if test x$ac_cv_struct_boundary_long_long_int = x ; then
23566 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long long int in structures" >&5
23567 echo "$as_me: error: Cannot determine the minimal alignment boundary of long long int in structures" >&2;}
23568 { (exit 1); exit 1; }; }
23572 { echo "$as_me:$LINENO: checking for the minimal structure boundary of float" >&5
23573 echo $ECHO_N "checking for the minimal structure boundary of float... $ECHO_C" >&6; }
23575 if test "${ac_cv_struct_boundary_float+set}" = set; then
23576 echo $ECHO_N "(cached) $ECHO_C" >&6
23578 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23579 cat >conftest.$ac_ext <<_ACEOF
23582 cat confdefs.h >>conftest.$ac_ext
23583 cat >>conftest.$ac_ext <<_ACEOF
23584 /* end confdefs.h. */
23585 #include "confdefs.h"
23586 #include <sys/types.h>
23587 struct s { char c; float i; };
23592 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(float)):;
23597 rm -f conftest.$ac_objext
23598 if { (ac_try="$ac_compile"
23599 case "(($ac_try" in
23600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23601 *) ac_try_echo=$ac_try;;
23603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23604 (eval "$ac_compile") 2>conftest.er1
23606 grep -v '^ *+' conftest.er1 >conftest.err
23608 cat conftest.err >&5
23609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23610 (exit $ac_status); } && {
23611 test -z "$ac_c_werror_flag" ||
23612 test ! -s conftest.err
23613 } && test -s conftest.$ac_objext; then
23614 ac_cv_struct_boundary_float=$ac_size
23616 echo "$as_me: failed program was:" >&5
23617 sed 's/^/| /' conftest.$ac_ext >&5
23622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23623 if test x$ac_cv_struct_boundary_float != x ; then break; fi
23628 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_float" >&5
23629 echo "${ECHO_T}$ac_cv_struct_boundary_float" >&6; }
23630 if test x$ac_cv_struct_boundary_float = x ; then
23631 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of float in structures" >&5
23632 echo "$as_me: error: Cannot determine the minimal alignment boundary of float in structures" >&2;}
23633 { (exit 1); exit 1; }; }
23635 { echo "$as_me:$LINENO: checking for the minimal structure boundary of double" >&5
23636 echo $ECHO_N "checking for the minimal structure boundary of double... $ECHO_C" >&6; }
23638 if test "${ac_cv_struct_boundary_double+set}" = set; then
23639 echo $ECHO_N "(cached) $ECHO_C" >&6
23641 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23642 cat >conftest.$ac_ext <<_ACEOF
23645 cat confdefs.h >>conftest.$ac_ext
23646 cat >>conftest.$ac_ext <<_ACEOF
23647 /* end confdefs.h. */
23648 #include "confdefs.h"
23649 #include <sys/types.h>
23650 struct s { char c; double i; };
23655 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(double)):;
23660 rm -f conftest.$ac_objext
23661 if { (ac_try="$ac_compile"
23662 case "(($ac_try" in
23663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23664 *) ac_try_echo=$ac_try;;
23666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23667 (eval "$ac_compile") 2>conftest.er1
23669 grep -v '^ *+' conftest.er1 >conftest.err
23671 cat conftest.err >&5
23672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23673 (exit $ac_status); } && {
23674 test -z "$ac_c_werror_flag" ||
23675 test ! -s conftest.err
23676 } && test -s conftest.$ac_objext; then
23677 ac_cv_struct_boundary_double=$ac_size
23679 echo "$as_me: failed program was:" >&5
23680 sed 's/^/| /' conftest.$ac_ext >&5
23685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23686 if test x$ac_cv_struct_boundary_double != x ; then break; fi
23691 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_double" >&5
23692 echo "${ECHO_T}$ac_cv_struct_boundary_double" >&6; }
23693 if test x$ac_cv_struct_boundary_double = x ; then
23694 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of double in structures" >&5
23695 echo "$as_me: error: Cannot determine the minimal alignment boundary of double in structures" >&2;}
23696 { (exit 1); exit 1; }; }
23700 { echo "$as_me:$LINENO: checking size of void *" >&5
23701 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
23702 if test "${ac_cv_sizeof_void_p+set}" = set; then
23703 echo $ECHO_N "(cached) $ECHO_C" >&6
23705 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23706 cat >conftest.$ac_ext <<_ACEOF
23709 cat confdefs.h >>conftest.$ac_ext
23710 cat >>conftest.$ac_ext <<_ACEOF
23711 /* end confdefs.h. */
23712 #include "confdefs.h"
23713 #include <sys/types.h>
23719 switch (0) case 0: case (sizeof (void *) == $ac_size):;
23724 rm -f conftest.$ac_objext
23725 if { (ac_try="$ac_compile"
23726 case "(($ac_try" in
23727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23728 *) ac_try_echo=$ac_try;;
23730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23731 (eval "$ac_compile") 2>conftest.er1
23733 grep -v '^ *+' conftest.er1 >conftest.err
23735 cat conftest.err >&5
23736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23737 (exit $ac_status); } && {
23738 test -z "$ac_c_werror_flag" ||
23739 test ! -s conftest.err
23740 } && test -s conftest.$ac_objext; then
23741 ac_cv_sizeof_void_p=$ac_size
23743 echo "$as_me: failed program was:" >&5
23744 sed 's/^/| /' conftest.$ac_ext >&5
23749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23750 if test x$ac_cv_sizeof_void_p != x ; then break; fi
23756 if test x$ac_cv_sizeof_void_p = x ; then
23757 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
23758 echo "$as_me: error: cannot determine a size for void *" >&2;}
23759 { (exit 1); exit 1; }; }
23761 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
23762 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
23763 { echo "$as_me:$LINENO: checking for the minimal structure boundary of void *" >&5
23764 echo $ECHO_N "checking for the minimal structure boundary of void *... $ECHO_C" >&6; }
23766 if test "${ac_cv_struct_boundary_void_p+set}" = set; then
23767 echo $ECHO_N "(cached) $ECHO_C" >&6
23769 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23770 cat >conftest.$ac_ext <<_ACEOF
23773 cat confdefs.h >>conftest.$ac_ext
23774 cat >>conftest.$ac_ext <<_ACEOF
23775 /* end confdefs.h. */
23776 #include "confdefs.h"
23777 #include <sys/types.h>
23778 struct s { char c; void * i; };
23783 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(void *)):;
23788 rm -f conftest.$ac_objext
23789 if { (ac_try="$ac_compile"
23790 case "(($ac_try" in
23791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23792 *) ac_try_echo=$ac_try;;
23794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23795 (eval "$ac_compile") 2>conftest.er1
23797 grep -v '^ *+' conftest.er1 >conftest.err
23799 cat conftest.err >&5
23800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23801 (exit $ac_status); } && {
23802 test -z "$ac_c_werror_flag" ||
23803 test ! -s conftest.err
23804 } && test -s conftest.$ac_objext; then
23805 ac_cv_struct_boundary_void_p=$ac_size
23807 echo "$as_me: failed program was:" >&5
23808 sed 's/^/| /' conftest.$ac_ext >&5
23813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23814 if test x$ac_cv_struct_boundary_void_p != x ; then break; fi
23819 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_void_p" >&5
23820 echo "${ECHO_T}$ac_cv_struct_boundary_void_p" >&6; }
23821 if test x$ac_cv_struct_boundary_void_p = x ; then
23822 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of void * in structures" >&5
23823 echo "$as_me: error: Cannot determine the minimal alignment boundary of void * in structures" >&2;}
23824 { (exit 1); exit 1; }; }
23827 { echo "$as_me:$LINENO: checking size of void (*) (void)" >&5
23828 echo $ECHO_N "checking size of void (*) (void)... $ECHO_C" >&6; }
23829 if test "${ac_cv_sizeof_void_LpR_LvoidR+set}" = set; then
23830 echo $ECHO_N "(cached) $ECHO_C" >&6
23832 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23833 cat >conftest.$ac_ext <<_ACEOF
23836 cat confdefs.h >>conftest.$ac_ext
23837 cat >>conftest.$ac_ext <<_ACEOF
23838 /* end confdefs.h. */
23839 #include "confdefs.h"
23840 #include <sys/types.h>
23846 switch (0) case 0: case (sizeof (void (*) (void)) == $ac_size):;
23851 rm -f conftest.$ac_objext
23852 if { (ac_try="$ac_compile"
23853 case "(($ac_try" in
23854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23855 *) ac_try_echo=$ac_try;;
23857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23858 (eval "$ac_compile") 2>conftest.er1
23860 grep -v '^ *+' conftest.er1 >conftest.err
23862 cat conftest.err >&5
23863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23864 (exit $ac_status); } && {
23865 test -z "$ac_c_werror_flag" ||
23866 test ! -s conftest.err
23867 } && test -s conftest.$ac_objext; then
23868 ac_cv_sizeof_void_LpR_LvoidR=$ac_size
23870 echo "$as_me: failed program was:" >&5
23871 sed 's/^/| /' conftest.$ac_ext >&5
23876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23877 if test x$ac_cv_sizeof_void_LpR_LvoidR != x ; then break; fi
23883 if test x$ac_cv_sizeof_void_LpR_LvoidR = x ; then
23884 { { echo "$as_me:$LINENO: error: cannot determine a size for void (*) (void)" >&5
23885 echo "$as_me: error: cannot determine a size for void (*) (void)" >&2;}
23886 { (exit 1); exit 1; }; }
23888 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_LpR_LvoidR" >&5
23889 echo "${ECHO_T}$ac_cv_sizeof_void_LpR_LvoidR" >&6; }
23893 { echo "$as_me:$LINENO: checking the GRAS signature of this architecture" >&5
23894 echo $ECHO_N "checking the GRAS signature of this architecture... $ECHO_C" >&6; }
23895 if test x$endian = x1 ; then
23901 trace="$trace_endian"
23903 trace="${trace}_C:${ac_cv_sizeof_char}/${ac_cv_struct_boundary_char}:"
23905 trace="${trace}_I:${ac_cv_sizeof_short_int}/${ac_cv_struct_boundary_short_int}"
23906 trace="${trace}:${ac_cv_sizeof_int}/${ac_cv_struct_boundary_int}"
23907 trace="${trace}:${ac_cv_sizeof_long_int}/${ac_cv_struct_boundary_long_int}"
23908 trace="${trace}:${ac_cv_sizeof_long_long_int}/${ac_cv_struct_boundary_long_long_int}:"
23910 trace="${trace}_P:${ac_cv_sizeof_void_p}/${ac_cv_struct_boundary_void_p}"
23911 trace="${trace}:${ac_cv_sizeof_void_LpR_LvoidR}/${ac_cv_struct_boundary_void_p}:"
23913 trace="${trace}_D:4/${ac_cv_struct_boundary_float}:8/${ac_cv_struct_boundary_double}:"
23915 # sizeof float/double are not tested since IEEE 754 is assumed.
23916 # Check README.IEEE for rational.
23918 # The numbers after the _ in the arch name are the maximal packing boundary.
23919 # big32_2 means that all data are aligned on a 2 bytes boundary. (ARM)
23920 # big32_8_4 means that some or them are aligned on 8 bytes, some are on 4 bytes (AIX)
23922 l_C:1/1:_I:2/1:4/1:4/1:8/1:_P:4/1:4/1:_D:4/1:8/1:) gras_arch=0; gras_size=32; gras_arch_name=little32_1;;
23923 l_C:1/1:_I:2/2:4/2:4/2:8/2:_P:4/2:4/2:_D:4/2:8/2:) gras_arch=1; gras_size=32; gras_arch_name=little32_2;;
23924 l_C:1/1:_I:2/2:4/4:4/4:8/4:_P:4/4:4/4:_D:4/4:8/4:) gras_arch=2; gras_size=32; gras_arch_name=little32_4;;
23925 l_C:1/1:_I:2/2:4/4:4/4:8/8:_P:4/4:4/4:_D:4/4:8/8:) gras_arch=3; gras_size=32; gras_arch_name=little32_8;;
23927 l_C:1/1:_I:2/2:4/4:8/8:8/8:_P:8/8:8/8:_D:4/4:8/8:) gras_arch=4; gras_size=64; gras_arch_name=little64;;
23929 B_C:1/1:_I:2/2:4/4:4/4:8/8:_P:4/4:4/4:_D:4/4:8/8:) gras_arch=5; gras_size=32; gras_arch_name=big32;;
23930 B_C:1/1:_I:2/2:4/4:4/4:8/8:_P:4/4:4/4:_D:4/4:8/4:) gras_arch=6; gras_size=32; gras_arch_name=big32_8_4;;
23931 B_C:1/1:_I:2/2:4/4:4/4:8/4:_P:4/4:4/4:_D:4/4:8/4:) gras_arch=7; gras_size=32; gras_arch_name=big32_4;;
23932 B_C:1/1:_I:2/2:4/2:4/2:8/2:_P:4/2:4/2:_D:4/2:8/2:) gras_arch=8; gras_size=32; gras_arch_name=big32_2;;
23934 B_C:1/1:_I:2/2:4/4:8/8:8/8:_P:8/8:8/8:_D:4/4:8/8:) gras_arch=9; gras_size=64; gras_arch_name=big64;;
23935 B_C:1/1:_I:2/2:4/4:8/8:8/8:_P:8/8:8/8:_D:4/4:8/4:) gras_arch=10;gras_size=64; gras_arch_name=big64_8_4;;
23937 if test x$gras_arch = xunknown ; then
23938 { echo "$as_me:$LINENO: result: damnit ($trace)" >&5
23939 echo "${ECHO_T}damnit ($trace)" >&6; }
23940 { { echo "$as_me:$LINENO: error: Impossible to determine the GRAS architecture signature.
23941 Please report this architecture trace ($trace) and what it corresponds to." >&5
23942 echo "$as_me: error: Impossible to determine the GRAS architecture signature.
23943 Please report this architecture trace ($trace) and what it corresponds to." >&2;}
23944 { (exit 1); exit 1; }; }
23946 echo "$as_me:$LINENO: GRAS trace of this machine: $trace" >&5
23948 cat >>confdefs.h <<_ACEOF
23949 #define GRAS_THISARCH $gras_arch
23952 { echo "$as_me:$LINENO: result: $gras_arch ($gras_arch_name)" >&5
23953 echo "${ECHO_T}$gras_arch ($gras_arch_name)" >&6; }
23955 if test "$gras_size" = 32; then
23956 GRAS_ARCH_32_BITS_TRUE=
23957 GRAS_ARCH_32_BITS_FALSE='#'
23959 GRAS_ARCH_32_BITS_TRUE='#'
23960 GRAS_ARCH_32_BITS_FALSE=
23964 { echo "$as_me:$LINENO: checking the maximal size of scalar" >&5
23965 echo $ECHO_N "checking the maximal size of scalar... $ECHO_C" >&6; }
23967 for s in $ac_cv_sizeof_char \
23968 $ac_cv_sizeof_short_int $ac_cv_sizeof_int $ac_cv_sizeof_long_int $ac_cv_sizeof_long_long_int \
23969 $ac_cv_sizeof_void_p $ac_cv_sizeof_void_LpR_LvoidR \
23972 if test $ac_cv_sizeof_max -lt $s ; then
23973 ac_cv_sizeof_max=$s
23976 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_max" >&5
23977 echo "${ECHO_T}$ac_cv_sizeof_max" >&6; }
23979 cat >>confdefs.h <<_ACEOF
23980 #define SIZEOF_MAX $ac_cv_sizeof_max
23985 # Check architecture signature end
23986 { echo "$as_me:$LINENO: checking whether the struct gets packed" >&5
23987 echo $ECHO_N "checking whether the struct gets packed... $ECHO_C" >&6; }
23988 cat >conftest.$ac_ext <<_ACEOF
23991 cat confdefs.h >>conftest.$ac_ext
23992 cat >>conftest.$ac_ext <<_ACEOF
23993 /* end confdefs.h. */
23994 #include "confdefs.h"
23995 #include <sys/types.h>
23996 #include <stddef.h> /* offsetof() */
23997 struct s {char c; double d;};
24004 case (sizeof(struct s) == sizeof(double)+sizeof(char)):;
24010 rm -f conftest.$ac_objext
24011 if { (ac_try="$ac_compile"
24012 case "(($ac_try" in
24013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24014 *) ac_try_echo=$ac_try;;
24016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24017 (eval "$ac_compile") 2>conftest.er1
24019 grep -v '^ *+' conftest.er1 >conftest.err
24021 cat conftest.err >&5
24022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24023 (exit $ac_status); } && {
24024 test -z "$ac_c_werror_flag" ||
24025 test ! -s conftest.err
24026 } && test -s conftest.$ac_objext; then
24027 gras_struct_packed=yes
24029 echo "$as_me: failed program was:" >&5
24030 sed 's/^/| /' conftest.$ac_ext >&5
24032 gras_struct_packed=no
24035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24037 { echo "$as_me:$LINENO: result: $gras_struct_packed" >&5
24038 echo "${ECHO_T}$gras_struct_packed" >&6; }
24039 if test x$gras_struct_packed = "xyes" ; then
24040 { { echo "$as_me:$LINENO: error: GRAS does not support packed structures since it leads to nasty misalignments" >&5
24041 echo "$as_me: error: GRAS does not support packed structures since it leads to nasty misalignments" >&2;}
24042 { (exit 1); exit 1; }; }
24045 { echo "$as_me:$LINENO: checking whether the struct gets compacted" >&5
24046 echo $ECHO_N "checking whether the struct gets compacted... $ECHO_C" >&6; }
24047 cat >conftest.$ac_ext <<_ACEOF
24050 cat confdefs.h >>conftest.$ac_ext
24051 cat >>conftest.$ac_ext <<_ACEOF
24052 /* end confdefs.h. */
24053 #include "confdefs.h"
24054 #include <sys/types.h>
24055 #include <stddef.h> /* offsetof() */
24056 struct s {double d; int i; char c;};
24063 case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
24069 rm -f conftest.$ac_objext
24070 if { (ac_try="$ac_compile"
24071 case "(($ac_try" in
24072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24073 *) ac_try_echo=$ac_try;;
24075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24076 (eval "$ac_compile") 2>conftest.er1
24078 grep -v '^ *+' conftest.er1 >conftest.err
24080 cat conftest.err >&5
24081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24082 (exit $ac_status); } && {
24083 test -z "$ac_c_werror_flag" ||
24084 test ! -s conftest.err
24085 } && test -s conftest.$ac_objext; then
24086 gras_struct_compact=yes
24088 echo "$as_me: failed program was:" >&5
24089 sed 's/^/| /' conftest.$ac_ext >&5
24091 gras_struct_compact=no
24094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24096 { echo "$as_me:$LINENO: result: $gras_struct_compact" >&5
24097 echo "${ECHO_T}$gras_struct_compact" >&6; }
24099 if test x$gras_struct_compact != xyes ; then
24100 { { echo "$as_me:$LINENO: error: GRAS works only on structure compacting architectures (yet)" >&5
24101 echo "$as_me: error: GRAS works only on structure compacting architectures (yet)" >&2;}
24102 { (exit 1); exit 1; }; }
24105 cat >>confdefs.h <<_ACEOF
24106 #define GRAS_STRUCT_COMPACT 1
24109 { echo "$as_me:$LINENO: checking whether arrays can straddle struct alignment boundaries" >&5
24110 echo $ECHO_N "checking whether arrays can straddle struct alignment boundaries... $ECHO_C" >&6; }
24112 cat >conftest.$ac_ext <<_ACEOF
24115 cat confdefs.h >>conftest.$ac_ext
24116 cat >>conftest.$ac_ext <<_ACEOF
24117 /* end confdefs.h. */
24118 #include "confdefs.h"
24119 #include <sys/types.h>
24120 #include <stddef.h> /* offsetof() */
24121 struct s { double d; int i; char c[6]; };
24128 case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
24134 rm -f conftest.$ac_objext
24135 if { (ac_try="$ac_compile"
24136 case "(($ac_try" in
24137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24138 *) ac_try_echo=$ac_try;;
24140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24141 (eval "$ac_compile") 2>conftest.er1
24143 grep -v '^ *+' conftest.er1 >conftest.err
24145 cat conftest.err >&5
24146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24147 (exit $ac_status); } && {
24148 test -z "$ac_c_werror_flag" ||
24149 test ! -s conftest.err
24150 } && test -s conftest.$ac_objext; then
24151 gras_array_straddle_struct=yes
24153 echo "$as_me: failed program was:" >&5
24154 sed 's/^/| /' conftest.$ac_ext >&5
24156 gras_array_straddle_struct=no
24159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24161 { echo "$as_me:$LINENO: result: $gras_array_straddle_struct" >&5
24162 echo "${ECHO_T}$gras_array_straddle_struct" >&6; }
24164 if test x$gras_array_straddle_struct = xyes ; then
24166 cat >>confdefs.h <<_ACEOF
24167 #define GRAS_ARRAY_STRADDLE_STRUCT 1
24171 { { echo "$as_me:$LINENO: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&5
24172 echo "$as_me: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&2;}
24173 { (exit 1); exit 1; }; }
24180 { echo "$as_me:$LINENO: result: " >&5
24181 echo "${ECHO_T}" >&6; }
24182 { echo "$as_me:$LINENO: result: ${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&5
24183 echo "${ECHO_T}${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&6; }
24188 { echo "$as_me:$LINENO: checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)" >&5
24189 echo $ECHO_N "checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)... $ECHO_C" >&6; }
24190 if test "${ac_cv_check_mcsc+set}" = set; then
24191 echo $ECHO_N "(cached) $ECHO_C" >&6
24194 if test "$cross_compiling" = yes; then
24195 ac_cv_check_mcsc=no
24198 cat >conftest.$ac_ext <<_ACEOF
24201 cat confdefs.h >>conftest.$ac_ext
24202 cat >>conftest.$ac_ext <<_ACEOF
24203 /* end confdefs.h. */
24207 #include <stdlib.h>
24208 #include <ucontext.h>
24210 ucontext_t uc_child;
24211 ucontext_t uc_main;
24213 void child(void *arg)
24215 if (arg != (void *)12345)
24217 if (swapcontext(&uc_child, &uc_main) != 0)
24221 int main(int argc, char *argv[])
24226 /* the default is that it fails */
24227 if ((fp = fopen("conftestval", "w")) == NULL)
24229 fprintf(fp, "no\n");
24232 /* configure a child user-space context */
24233 if ((stack = malloc(64*1024)) == NULL)
24235 if (getcontext(&uc_child) != 0)
24237 uc_child.uc_link = NULL;
24238 uc_child.uc_stack.ss_sp = (char *)stack+(32*1024);
24239 uc_child.uc_stack.ss_size = 32*1024;
24240 uc_child.uc_stack.ss_flags = 0;
24241 makecontext(&uc_child, child, 2, (void *)12345);
24243 /* switch into the user context */
24244 if (swapcontext(&uc_main, &uc_child) != 0)
24247 /* Fine, child came home */
24248 if ((fp = fopen("conftestval", "w")) == NULL)
24250 fprintf(fp, "yes\n");
24253 /* die successfully */
24258 rm -f conftest$ac_exeext
24259 if { (ac_try="$ac_link"
24260 case "(($ac_try" in
24261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24262 *) ac_try_echo=$ac_try;;
24264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24265 (eval "$ac_link") 2>&5
24267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24268 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24269 { (case "(($ac_try" in
24270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24271 *) ac_try_echo=$ac_try;;
24273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24274 (eval "$ac_try") 2>&5
24276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24277 (exit $ac_status); }; }; then
24278 ac_cv_check_mcsc=`cat conftestval`
24280 echo "$as_me: program exited with status $ac_status" >&5
24281 echo "$as_me: failed program was:" >&5
24282 sed 's/^/| /' conftest.$ac_ext >&5
24284 ( exit $ac_status )
24285 ac_cv_check_mcsc=no
24287 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24292 { echo "$as_me:$LINENO: result: $ac_cv_check_mcsc" >&5
24293 echo "${ECHO_T}$ac_cv_check_mcsc" >&6; }
24294 if test ".$ac_cv_check_mcsc" = .yes; then
24302 for ac_header in pthread.h
24304 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24306 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24309 echo $ECHO_N "(cached) $ECHO_C" >&6
24311 ac_res=`eval echo '${'$as_ac_Header'}'`
24312 { echo "$as_me:$LINENO: result: $ac_res" >&5
24313 echo "${ECHO_T}$ac_res" >&6; }
24315 # Is the header compilable?
24316 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24317 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24318 cat >conftest.$ac_ext <<_ACEOF
24321 cat confdefs.h >>conftest.$ac_ext
24322 cat >>conftest.$ac_ext <<_ACEOF
24323 /* end confdefs.h. */
24324 $ac_includes_default
24325 #include <$ac_header>
24327 rm -f conftest.$ac_objext
24328 if { (ac_try="$ac_compile"
24329 case "(($ac_try" in
24330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24331 *) ac_try_echo=$ac_try;;
24333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24334 (eval "$ac_compile") 2>conftest.er1
24336 grep -v '^ *+' conftest.er1 >conftest.err
24338 cat conftest.err >&5
24339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24340 (exit $ac_status); } && {
24341 test -z "$ac_c_werror_flag" ||
24342 test ! -s conftest.err
24343 } && test -s conftest.$ac_objext; then
24344 ac_header_compiler=yes
24346 echo "$as_me: failed program was:" >&5
24347 sed 's/^/| /' conftest.$ac_ext >&5
24349 ac_header_compiler=no
24352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24353 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24354 echo "${ECHO_T}$ac_header_compiler" >&6; }
24356 # Is the header present?
24357 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24358 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24359 cat >conftest.$ac_ext <<_ACEOF
24362 cat confdefs.h >>conftest.$ac_ext
24363 cat >>conftest.$ac_ext <<_ACEOF
24364 /* end confdefs.h. */
24365 #include <$ac_header>
24367 if { (ac_try="$ac_cpp conftest.$ac_ext"
24368 case "(($ac_try" in
24369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24370 *) ac_try_echo=$ac_try;;
24372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24373 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24375 grep -v '^ *+' conftest.er1 >conftest.err
24377 cat conftest.err >&5
24378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24379 (exit $ac_status); } >/dev/null && {
24380 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24381 test ! -s conftest.err
24383 ac_header_preproc=yes
24385 echo "$as_me: failed program was:" >&5
24386 sed 's/^/| /' conftest.$ac_ext >&5
24388 ac_header_preproc=no
24391 rm -f conftest.err conftest.$ac_ext
24392 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24393 echo "${ECHO_T}$ac_header_preproc" >&6; }
24395 # So? What about this header?
24396 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24398 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24399 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24401 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24402 ac_header_preproc=yes
24405 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24406 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24407 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24408 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24409 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24410 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24411 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24412 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24414 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24415 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24416 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24418 ## -------------------------------------------------- ##
24419 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
24420 ## -------------------------------------------------- ##
24422 ) | sed "s/^/$as_me: WARNING: /" >&2
24425 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24428 echo $ECHO_N "(cached) $ECHO_C" >&6
24430 eval "$as_ac_Header=\$ac_header_preproc"
24432 ac_res=`eval echo '${'$as_ac_Header'}'`
24433 { echo "$as_me:$LINENO: result: $ac_res" >&5
24434 echo "${ECHO_T}$ac_res" >&6; }
24437 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24438 cat >>confdefs.h <<_ACEOF
24439 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24446 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
24447 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
24448 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
24449 echo $ECHO_N "(cached) $ECHO_C" >&6
24451 ac_check_lib_save_LIBS=$LIBS
24452 LIBS="-lpthread $LIBS"
24453 cat >conftest.$ac_ext <<_ACEOF
24456 cat confdefs.h >>conftest.$ac_ext
24457 cat >>conftest.$ac_ext <<_ACEOF
24458 /* end confdefs.h. */
24460 /* Override any GCC internal prototype to avoid an error.
24461 Use char because int might match the return type of a GCC
24462 builtin and then its argument prototype would still apply. */
24466 char pthread_create ();
24470 return pthread_create ();
24475 rm -f conftest.$ac_objext conftest$ac_exeext
24476 if { (ac_try="$ac_link"
24477 case "(($ac_try" in
24478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24479 *) ac_try_echo=$ac_try;;
24481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24482 (eval "$ac_link") 2>conftest.er1
24484 grep -v '^ *+' conftest.er1 >conftest.err
24486 cat conftest.err >&5
24487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24488 (exit $ac_status); } && {
24489 test -z "$ac_c_werror_flag" ||
24490 test ! -s conftest.err
24491 } && test -s conftest$ac_exeext &&
24492 $as_test_x conftest$ac_exeext; then
24493 ac_cv_lib_pthread_pthread_create=yes
24495 echo "$as_me: failed program was:" >&5
24496 sed 's/^/| /' conftest.$ac_ext >&5
24498 ac_cv_lib_pthread_pthread_create=no
24501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24502 conftest$ac_exeext conftest.$ac_ext
24503 LIBS=$ac_check_lib_save_LIBS
24505 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
24506 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
24507 if test $ac_cv_lib_pthread_pthread_create = yes; then
24515 if test ".$mcsc" = .yes; then
24517 elif test ".$pthread" = .yes; then
24520 ac_header=windows.h
24521 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24522 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24523 windows_context=yes
24525 { { echo "$as_me:$LINENO: error: no appropriate backend found" >&5
24526 echo "$as_me: error: no appropriate backend found" >&2;}
24527 { (exit 1); exit 1; }; }
24532 { echo "$as_me:$LINENO: checking what kind of backend should we use" >&5
24533 echo $ECHO_N "checking what kind of backend should we use... $ECHO_C" >&6; }
24536 # Check whether --with-pthread was given.
24537 if test "${with_pthread+set}" = set; then
24538 withval=$with_pthread; with_context=pthread
24542 # Check whether --with-pthread was given.
24543 if test "${with_pthread+set}" = set; then
24544 withval=$with_pthread; with_context=pthread
24549 # Check whether --with-context was given.
24550 if test "${with_context+set}" = set; then
24551 withval=$with_context;
24557 if test "x$with_context$mcsc" = "xucontextno" ; then
24558 { { echo "$as_me:$LINENO: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&5
24559 echo "$as_me: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&2;}
24560 { (exit 77); exit 77; }; }
24563 case $with_context in
24568 auto) with_context=ucontext;;
24569 *) { { echo "$as_me:$LINENO: error: --with-context must be either ucontext or pthread" >&5
24570 echo "$as_me: error: --with-context must be either ucontext or pthread" >&2;}
24571 { (exit 1); exit 1; }; } ;;
24574 if test "x$with_context" = "xucontext" ; then
24575 if test ".$mcsc" = .yes; then
24576 { echo "$as_me:$LINENO: result: found working ucontext. Great!" >&5
24577 echo "${ECHO_T}found working ucontext. Great!" >&6; }
24579 cat >>confdefs.h <<\_ACEOF
24580 #define CONTEXT_UCONTEXT 1
24584 if test ".$windows_context" = .yes ; then
24585 { echo "$as_me:$LINENO: result: use windows context portability layer." >&5
24586 echo "${ECHO_T}use windows context portability layer." >&6; }
24587 with_context=windows
24589 { echo "$as_me:$LINENO: result: no working ucontext found. Try pthreads as a fallback" >&5
24590 echo "${ECHO_T}no working ucontext found. Try pthreads as a fallback" >&6; }
24591 with_context=pthread
24596 if test "x$with_context" = "xpthreads"; then
24597 with_context=pthread
24599 if test "x$with_context" = "xpthread"; then
24601 for ac_header in pthread.h
24603 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24605 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24607 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24608 echo $ECHO_N "(cached) $ECHO_C" >&6
24610 ac_res=`eval echo '${'$as_ac_Header'}'`
24611 { echo "$as_me:$LINENO: result: $ac_res" >&5
24612 echo "${ECHO_T}$ac_res" >&6; }
24614 # Is the header compilable?
24615 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24616 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24617 cat >conftest.$ac_ext <<_ACEOF
24620 cat confdefs.h >>conftest.$ac_ext
24621 cat >>conftest.$ac_ext <<_ACEOF
24622 /* end confdefs.h. */
24623 $ac_includes_default
24624 #include <$ac_header>
24626 rm -f conftest.$ac_objext
24627 if { (ac_try="$ac_compile"
24628 case "(($ac_try" in
24629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24630 *) ac_try_echo=$ac_try;;
24632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24633 (eval "$ac_compile") 2>conftest.er1
24635 grep -v '^ *+' conftest.er1 >conftest.err
24637 cat conftest.err >&5
24638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24639 (exit $ac_status); } && {
24640 test -z "$ac_c_werror_flag" ||
24641 test ! -s conftest.err
24642 } && test -s conftest.$ac_objext; then
24643 ac_header_compiler=yes
24645 echo "$as_me: failed program was:" >&5
24646 sed 's/^/| /' conftest.$ac_ext >&5
24648 ac_header_compiler=no
24651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24652 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24653 echo "${ECHO_T}$ac_header_compiler" >&6; }
24655 # Is the header present?
24656 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24657 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24658 cat >conftest.$ac_ext <<_ACEOF
24661 cat confdefs.h >>conftest.$ac_ext
24662 cat >>conftest.$ac_ext <<_ACEOF
24663 /* end confdefs.h. */
24664 #include <$ac_header>
24666 if { (ac_try="$ac_cpp conftest.$ac_ext"
24667 case "(($ac_try" in
24668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24669 *) ac_try_echo=$ac_try;;
24671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24674 grep -v '^ *+' conftest.er1 >conftest.err
24676 cat conftest.err >&5
24677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24678 (exit $ac_status); } >/dev/null && {
24679 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24680 test ! -s conftest.err
24682 ac_header_preproc=yes
24684 echo "$as_me: failed program was:" >&5
24685 sed 's/^/| /' conftest.$ac_ext >&5
24687 ac_header_preproc=no
24690 rm -f conftest.err conftest.$ac_ext
24691 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24692 echo "${ECHO_T}$ac_header_preproc" >&6; }
24694 # So? What about this header?
24695 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24697 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24698 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24699 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24700 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24701 ac_header_preproc=yes
24704 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24705 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24706 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24707 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24708 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24709 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24710 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24711 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24713 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24714 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24715 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24717 ## -------------------------------------------------- ##
24718 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
24719 ## -------------------------------------------------- ##
24721 ) | sed "s/^/$as_me: WARNING: /" >&2
24724 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24727 echo $ECHO_N "(cached) $ECHO_C" >&6
24729 eval "$as_ac_Header=\$ac_header_preproc"
24731 ac_res=`eval echo '${'$as_ac_Header'}'`
24732 { echo "$as_me:$LINENO: result: $ac_res" >&5
24733 echo "${ECHO_T}$ac_res" >&6; }
24736 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24737 cat >>confdefs.h <<_ACEOF
24738 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24746 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
24747 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
24748 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
24749 echo $ECHO_N "(cached) $ECHO_C" >&6
24751 ac_check_lib_save_LIBS=$LIBS
24752 LIBS="-lpthread $LIBS"
24753 cat >conftest.$ac_ext <<_ACEOF
24756 cat confdefs.h >>conftest.$ac_ext
24757 cat >>conftest.$ac_ext <<_ACEOF
24758 /* end confdefs.h. */
24760 /* Override any GCC internal prototype to avoid an error.
24761 Use char because int might match the return type of a GCC
24762 builtin and then its argument prototype would still apply. */
24766 char pthread_create ();
24770 return pthread_create ();
24775 rm -f conftest.$ac_objext conftest$ac_exeext
24776 if { (ac_try="$ac_link"
24777 case "(($ac_try" in
24778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24779 *) ac_try_echo=$ac_try;;
24781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24782 (eval "$ac_link") 2>conftest.er1
24784 grep -v '^ *+' conftest.er1 >conftest.err
24786 cat conftest.err >&5
24787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24788 (exit $ac_status); } && {
24789 test -z "$ac_c_werror_flag" ||
24790 test ! -s conftest.err
24791 } && test -s conftest$ac_exeext &&
24792 $as_test_x conftest$ac_exeext; then
24793 ac_cv_lib_pthread_pthread_create=yes
24795 echo "$as_me: failed program was:" >&5
24796 sed 's/^/| /' conftest.$ac_ext >&5
24798 ac_cv_lib_pthread_pthread_create=no
24801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24802 conftest$ac_exeext conftest.$ac_ext
24803 LIBS=$ac_check_lib_save_LIBS
24805 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
24806 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
24807 if test $ac_cv_lib_pthread_pthread_create = yes; then
24808 cat >>confdefs.h <<_ACEOF
24809 #define HAVE_LIBPTHREAD 1
24812 LIBS="-lpthread $LIBS"
24815 { { echo "$as_me:$LINENO: error: Cannot find pthreads (try --with-context=ucontext if you haven't already tried)." >&5
24816 echo "$as_me: error: Cannot find pthreads (try --with-context=ucontext if you haven't already tried)." >&2;}
24817 { (exit 1); exit 1; }; }
24821 cat >>confdefs.h <<\_ACEOF
24822 #define CONTEXT_THREADS 1
24825 { echo "$as_me:$LINENO: result: You have pthreads and requested for them. Fine." >&5
24826 echo "${ECHO_T}You have pthreads and requested for them. Fine." >&6; }
24828 if test "x$with_context" != xucontext; then
24829 CONTEXT_THREADS_TRUE=
24830 CONTEXT_THREADS_FALSE='#'
24832 CONTEXT_THREADS_TRUE='#'
24833 CONTEXT_THREADS_FALSE=
24838 if test "x$with_context" = "xucontext" ; then
24839 { echo "$as_me:$LINENO: checking for direction of stack growth" >&5
24840 echo $ECHO_N "checking for direction of stack growth... $ECHO_C" >&6; }
24841 if test "${ac_cv_check_stackgrowth+set}" = set; then
24842 echo $ECHO_N "(cached) $ECHO_C" >&6
24846 if test "$cross_compiling" = yes; then
24847 ac_cv_check_stackgrowth=down
24850 cat >conftest.$ac_ext <<_ACEOF
24853 cat confdefs.h >>conftest.$ac_ext
24854 cat >>conftest.$ac_ext <<_ACEOF
24855 /* end confdefs.h. */
24858 #include <stdlib.h>
24859 static int iterate = 10;
24860 static int growsdown(int *x)
24870 int main(int argc, char *argv[])
24874 if ((f = fopen("conftestval", "w")) == NULL)
24876 fprintf(f, "%s\n", growsdown(&x) ? "down" : "up");;
24883 rm -f conftest$ac_exeext
24884 if { (ac_try="$ac_link"
24885 case "(($ac_try" in
24886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24887 *) ac_try_echo=$ac_try;;
24889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24890 (eval "$ac_link") 2>&5
24892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24893 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24894 { (case "(($ac_try" in
24895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24896 *) ac_try_echo=$ac_try;;
24898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24899 (eval "$ac_try") 2>&5
24901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24902 (exit $ac_status); }; }; then
24903 ac_cv_check_stackgrowth=`cat conftestval`
24905 echo "$as_me: program exited with status $ac_status" >&5
24906 echo "$as_me: failed program was:" >&5
24907 sed 's/^/| /' conftest.$ac_ext >&5
24909 ( exit $ac_status )
24910 ac_cv_check_stackgrowth=down
24912 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24917 { echo "$as_me:$LINENO: result: $ac_cv_check_stackgrowth" >&5
24918 echo "${ECHO_T}$ac_cv_check_stackgrowth" >&6; }
24919 if test ".$ac_cv_check_stackgrowth" = ".down"; then
24925 cat >>confdefs.h <<_ACEOF
24926 #define PTH_STACKGROWTH $val
24930 if test ".$ac_cv_check_stackgrowth" = ".down"; then
24931 PTH_STACK_GROWTH="down"
24933 PTH_STACK_GROWTH="up"
24941 for ac_func in makecontext
24943 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24944 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24945 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24946 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24947 echo $ECHO_N "(cached) $ECHO_C" >&6
24949 cat >conftest.$ac_ext <<_ACEOF
24952 cat confdefs.h >>conftest.$ac_ext
24953 cat >>conftest.$ac_ext <<_ACEOF
24954 /* end confdefs.h. */
24955 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24956 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24957 #define $ac_func innocuous_$ac_func
24959 /* System header to define __stub macros and hopefully few prototypes,
24960 which can conflict with char $ac_func (); below.
24961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24962 <limits.h> exists even on freestanding compilers. */
24965 # include <limits.h>
24967 # include <assert.h>
24972 /* Override any GCC internal prototype to avoid an error.
24973 Use char because int might match the return type of a GCC
24974 builtin and then its argument prototype would still apply. */
24979 /* The GNU C library defines this for functions which it implements
24980 to always fail with ENOSYS. Some functions are actually named
24981 something starting with __ and the normal name is an alias. */
24982 #if defined __stub_$ac_func || defined __stub___$ac_func
24989 return $ac_func ();
24994 rm -f conftest.$ac_objext conftest$ac_exeext
24995 if { (ac_try="$ac_link"
24996 case "(($ac_try" in
24997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24998 *) ac_try_echo=$ac_try;;
25000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25001 (eval "$ac_link") 2>conftest.er1
25003 grep -v '^ *+' conftest.er1 >conftest.err
25005 cat conftest.err >&5
25006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25007 (exit $ac_status); } && {
25008 test -z "$ac_c_werror_flag" ||
25009 test ! -s conftest.err
25010 } && test -s conftest$ac_exeext &&
25011 $as_test_x conftest$ac_exeext; then
25012 eval "$as_ac_var=yes"
25014 echo "$as_me: failed program was:" >&5
25015 sed 's/^/| /' conftest.$ac_ext >&5
25017 eval "$as_ac_var=no"
25020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25021 conftest$ac_exeext conftest.$ac_ext
25023 ac_res=`eval echo '${'$as_ac_var'}'`
25024 { echo "$as_me:$LINENO: result: $ac_res" >&5
25025 echo "${ECHO_T}$ac_res" >&6; }
25026 if test `eval echo '${'$as_ac_var'}'` = yes; then
25027 cat >>confdefs.h <<_ACEOF
25028 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25035 { echo "$as_me:$LINENO: checking for stack setup via makecontext" >&5
25036 echo $ECHO_N "checking for stack setup via makecontext... $ECHO_C" >&6; }
25037 if test "${ac_cv_stacksetup_makecontext+set}" = set; then
25038 echo $ECHO_N "(cached) $ECHO_C" >&6
25041 if test ".$ac_cv_func_makecontext" = .no; then
25042 ac_cv_stacksetup_makecontext="N.A.:/*N.A.*/,/*N.A.*/"
25045 CFLAGS="$CFLAGS -DTEST_makecontext"
25047 if test "$cross_compiling" = yes; then
25049 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
25052 cat >conftest.$ac_ext <<_ACEOF
25055 cat confdefs.h >>conftest.$ac_ext
25056 cat >>conftest.$ac_ext <<_ACEOF
25057 /* end confdefs.h. */
25060 #include <stdlib.h>
25061 #include <string.h>
25062 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25063 #include <sys/types.h>
25064 #include <signal.h>
25065 #include <unistd.h>
25067 #if defined(TEST_makecontext)
25068 #include <ucontext.h>
25077 static volatile char *handler_addr = (char *)0xDEAD;
25078 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25079 static volatile int handler_done = 0;
25080 void handler(int sig)
25082 char garbage[1024];
25085 for (i = 0; i < 1024; i++)
25087 handler_addr = (char *)&dummy;
25092 #if defined(TEST_makecontext)
25093 static ucontext_t uc_handler;
25094 static ucontext_t uc_main;
25097 char garbage[1024];
25100 for (i = 0; i < 1024; i++)
25102 handler_addr = (char *)&dummy;
25103 swapcontext(&uc_handler, &uc_main);
25107 int main(int argc, char *argv[])
25116 skbuf = (char *)malloc(sksize*2+2*sizeof(union alltypes));
25119 for (i = 0; i < sksize*2+2*sizeof(union alltypes); i++)
25121 skaddr = skbuf+sizeof(union alltypes);
25122 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25124 struct sigaction sa;
25125 #if defined(TEST_sigstack)
25126 struct sigstack ss;
25127 #elif defined(TEST_sigaltstack) && defined(HAVE_STACK_T)
25130 struct sigaltstack ss;
25132 #if defined(TEST_sigstack)
25133 ss.ss_sp = (void *)(skaddr + sksize);
25135 if (sigstack(&ss, NULL) < 0)
25137 #elif defined(TEST_sigaltstack)
25138 ss.ss_sp = (void *)(skaddr + sksize);
25139 ss.ss_size = sksize;
25141 if (sigaltstack(&ss, NULL) < 0)
25144 memset((void *)&sa, 0, sizeof(struct sigaction));
25145 sa.sa_handler = handler;
25146 sa.sa_flags = SA_ONSTACK;
25147 sigemptyset(&sa.sa_mask);
25148 sigaction(SIGUSR1, &sa, NULL);
25149 kill(getpid(), SIGUSR1);
25150 while (!handler_done)
25154 #if defined(TEST_makecontext)
25156 if (getcontext(&uc_handler) != 0)
25158 uc_handler.uc_link = NULL;
25159 uc_handler.uc_stack.ss_sp = (void *)(skaddr + sksize);
25160 uc_handler.uc_stack.ss_size = sksize;
25161 uc_handler.uc_stack.ss_flags = 0;
25162 makecontext(&uc_handler, handler, 1);
25163 swapcontext(&uc_main, &uc_handler);
25166 if (handler_addr == (char *)0xDEAD)
25168 if (handler_addr < skaddr+sksize) {
25169 /* stack was placed into lower area */
25170 if (*(skaddr+sksize) != 'A')
25171 sprintf(result, "(skaddr)+(sksize)-%d,(sksize)-%d",
25172 sizeof(union alltypes), sizeof(union alltypes));
25174 strcpy(result, "(skaddr)+(sksize),(sksize)");
25177 /* stack was placed into higher area */
25178 if (*(skaddr+sksize*2) != 'A')
25179 sprintf(result, "(skaddr),(sksize)-%d", sizeof(union alltypes));
25181 strcpy(result, "(skaddr),(sksize)");
25183 if ((f = fopen("conftestval", "w")) == NULL)
25185 fprintf(f, "%s\n", result);
25191 rm -f conftest$ac_exeext
25192 if { (ac_try="$ac_link"
25193 case "(($ac_try" in
25194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25195 *) ac_try_echo=$ac_try;;
25197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25198 (eval "$ac_link") 2>&5
25200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25201 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25202 { (case "(($ac_try" in
25203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25204 *) ac_try_echo=$ac_try;;
25206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25207 (eval "$ac_try") 2>&5
25209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25210 (exit $ac_status); }; }; then
25212 ac_cv_stacksetup_makecontext=`cat conftestval`
25213 ac_cv_stacksetup_makecontext="ok:$ac_cv_stacksetup_makecontext"
25216 echo "$as_me: program exited with status $ac_status" >&5
25217 echo "$as_me: failed program was:" >&5
25218 sed 's/^/| /' conftest.$ac_ext >&5
25220 ( exit $ac_status )
25222 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
25225 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25233 type=`echo $ac_cv_stacksetup_makecontext | sed -e 's;:.*$;;'`
25234 addr=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;,.*$;;'`
25235 size=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;^.*,;;'`
25236 pth_skaddr_makecontext="#define pth_skaddr_makecontext(skaddr,sksize) ($addr)"
25237 pth_sksize_makecontext="#define pth_sksize_makecontext(skaddr,sksize) ($size)"
25238 { echo "$as_me:$LINENO: result: $type" >&5
25239 echo "${ECHO_T}$type" >&6; }
25240 if test ".$verbose" = .yes; then
25241 { echo "$as_me:$LINENO: result: $pth_skaddr_makecontext" >&5
25242 echo "${ECHO_T} $pth_skaddr_makecontext" >&6; }
25245 if test ".$verbose" = .yes; then
25246 { echo "$as_me:$LINENO: result: $pth_sksize_makecontext" >&5
25247 echo "${ECHO_T} $pth_sksize_makecontext" >&6; }
25253 #########################################
25254 ## Check for libraries extra-dependencies
25258 { echo "$as_me:$LINENO: result: " >&5
25259 echo "${ECHO_T}" >&6; }
25260 { echo "$as_me:$LINENO: result: ${T_MD}Checking extra libraries dependencies...${T_ME}" >&5
25261 echo "${ECHO_T}${T_MD}Checking extra libraries dependencies...${T_ME}" >&6; }
25267 if test xpthread=xyes ; then
25268 # if the pthreads are usable
25269 if test "x$with_context" = "xpthread" ; then
25270 # if we use them to implement the xbt_context
25271 SIMGRID_DEP="-lpthread"
25273 # we need them in any case for the gras lib (which is multithreaded), but on windows (of course)
25274 if test "x$with_context" != "xwindows" ; then
25275 GRAS_DEP="-lpthread"
25279 #########################################
25280 ## Build optional modules (gtnets)
25284 # Check whether --with-gtnets was given.
25285 if test "${with_gtnets+set}" = set; then
25286 withval=$with_gtnets; gtnets_path="$withval"
25291 if test "x$gtnets_path" = "xno" ; then
25292 { echo "$as_me:$LINENO: result: Eventually you will come to GTNetS." >&5
25293 echo "${ECHO_T}Eventually you will come to GTNetS." >&6; }
25295 { echo "$as_me:$LINENO: result: ***** You have decided to use the experimental GTNetS. We hope you know what you're doing.. *****" >&5
25296 echo "${ECHO_T}***** You have decided to use the experimental GTNetS. We hope you know what you're doing.. *****" >&6; }
25297 { echo "$as_me:$LINENO: checking for gtnets" >&5
25298 echo $ECHO_N "checking for gtnets... $ECHO_C" >&6; }
25300 ac_cpp='$CXXCPP $CPPFLAGS'
25301 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25302 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25303 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25305 GTNETS_LDFLAGS="-lgtnets -L$gtnets_path/lib"
25306 GTNETS_CPPFLAGS="-I$gtnets_path/include -I$gtnets_path/include/gtnets"
25307 LDFLAGS_SAV=$LDFLAGS
25308 CPPFLAGS_SAV=$CPPFLAGS
25309 CPPFLAGS+=$GTNETS_CPPFLAGS
25310 LDFLAGS+=$GTNETS_LDFLAGS
25311 cat >conftest.$ac_ext <<_ACEOF
25314 cat confdefs.h >>conftest.$ac_ext
25315 cat >>conftest.$ac_ext <<_ACEOF
25316 /* end confdefs.h. */
25317 #include <simulator.h>
25322 Simulator s; s.RunUntilNextCompletion();
25327 rm -f conftest.$ac_objext conftest$ac_exeext
25328 if { (ac_try="$ac_link"
25329 case "(($ac_try" in
25330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25331 *) ac_try_echo=$ac_try;;
25333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25334 (eval "$ac_link") 2>conftest.er1
25336 grep -v '^ *+' conftest.er1 >conftest.err
25338 cat conftest.err >&5
25339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25340 (exit $ac_status); } && {
25341 test -z "$ac_cxx_werror_flag" ||
25342 test ! -s conftest.err
25343 } && test -s conftest$ac_exeext &&
25344 $as_test_x conftest$ac_exeext; then
25347 echo "$as_me: failed program was:" >&5
25348 sed 's/^/| /' conftest.$ac_ext >&5
25353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25354 conftest$ac_exeext conftest.$ac_ext
25355 CPPFLAGS=$CPPFLAGS_SAV
25356 LDFLAGS=$LDFLAGS_SAV
25358 ac_cpp='$CPP $CPPFLAGS'
25359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25364 if test "x$gtnets" = xyes ; then
25365 AM_CPPFLAGS="$AM_CPPFLAGS $GTNETS_CPPFLAGS"
25366 SIMGRID_DEP="$SIMGRID_DEP $GTNETS_LDFLAGS"
25367 { echo "$as_me:$LINENO: result: Found working gtnets library." >&5
25368 echo "${ECHO_T}Found working gtnets library." >&6; }
25370 cat >>confdefs.h <<\_ACEOF
25371 #define HAVE_GTNETS 1
25375 { echo "$as_me:$LINENO: result: Could not find any working gtnets library or not patched version" >&5
25376 echo "${ECHO_T}Could not find any working gtnets library or not patched version" >&6; }
25379 if test "x$gtnets" != xno; then
25381 HAVE_GTNETS_FALSE='#'
25383 HAVE_GTNETS_TRUE='#'
25388 #########################################
25389 ## Build optional modules (csdp)
25393 # Check whether --with-csdp was given.
25394 if test "${with_csdp+set}" = set; then
25395 withval=$with_csdp; csdp_path="$withval"
25400 if test "x$csdp_path" = "xno" ; then
25401 { echo "$as_me:$LINENO: result: Eventually you will come to csdp." >&5
25402 echo "${ECHO_T}Eventually you will come to csdp." >&6; }
25404 { echo "$as_me:$LINENO: result: ***** You have decided to use csdp. Let's check whether it works or not *****" >&5
25405 echo "${ECHO_T}***** You have decided to use csdp. Let's check whether it works or not *****" >&6; }
25406 { echo "$as_me:$LINENO: checking for csdp" >&5
25407 echo $ECHO_N "checking for csdp... $ECHO_C" >&6; }
25408 CSDP_LDFLAGS="-L$csdp_path/lib -lsdp -llapack -lblas -lm"
25409 CSDP_CPPFLAGS="-I$csdp_path/include -I$csdp_path/include/csdp"
25411 { echo "$as_me:$LINENO: checking for easy_sdp in -lsdp" >&5
25412 echo $ECHO_N "checking for easy_sdp in -lsdp... $ECHO_C" >&6; }
25413 if test "${ac_cv_lib_sdp_easy_sdp+set}" = set; then
25414 echo $ECHO_N "(cached) $ECHO_C" >&6
25416 ac_check_lib_save_LIBS=$LIBS
25417 LIBS="-lsdp $CSDP_LDFLAGS $LIBS"
25418 cat >conftest.$ac_ext <<_ACEOF
25421 cat confdefs.h >>conftest.$ac_ext
25422 cat >>conftest.$ac_ext <<_ACEOF
25423 /* end confdefs.h. */
25425 /* Override any GCC internal prototype to avoid an error.
25426 Use char because int might match the return type of a GCC
25427 builtin and then its argument prototype would still apply. */
25435 return easy_sdp ();
25440 rm -f conftest.$ac_objext conftest$ac_exeext
25441 if { (ac_try="$ac_link"
25442 case "(($ac_try" in
25443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25444 *) ac_try_echo=$ac_try;;
25446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25447 (eval "$ac_link") 2>conftest.er1
25449 grep -v '^ *+' conftest.er1 >conftest.err
25451 cat conftest.err >&5
25452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25453 (exit $ac_status); } && {
25454 test -z "$ac_c_werror_flag" ||
25455 test ! -s conftest.err
25456 } && test -s conftest$ac_exeext &&
25457 $as_test_x conftest$ac_exeext; then
25458 ac_cv_lib_sdp_easy_sdp=yes
25460 echo "$as_me: failed program was:" >&5
25461 sed 's/^/| /' conftest.$ac_ext >&5
25463 ac_cv_lib_sdp_easy_sdp=no
25466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25467 conftest$ac_exeext conftest.$ac_ext
25468 LIBS=$ac_check_lib_save_LIBS
25470 { echo "$as_me:$LINENO: result: $ac_cv_lib_sdp_easy_sdp" >&5
25471 echo "${ECHO_T}$ac_cv_lib_sdp_easy_sdp" >&6; }
25472 if test $ac_cv_lib_sdp_easy_sdp = yes; then
25479 CPPFLAGS_SAV=$CPPFLAGS
25480 CPPFLAGS+=$CSDP_CPPFLAGS
25481 if test "${ac_cv_header_declarations_h+set}" = set; then
25482 { echo "$as_me:$LINENO: checking for declarations.h" >&5
25483 echo $ECHO_N "checking for declarations.h... $ECHO_C" >&6; }
25484 if test "${ac_cv_header_declarations_h+set}" = set; then
25485 echo $ECHO_N "(cached) $ECHO_C" >&6
25487 { echo "$as_me:$LINENO: result: $ac_cv_header_declarations_h" >&5
25488 echo "${ECHO_T}$ac_cv_header_declarations_h" >&6; }
25490 # Is the header compilable?
25491 { echo "$as_me:$LINENO: checking declarations.h usability" >&5
25492 echo $ECHO_N "checking declarations.h usability... $ECHO_C" >&6; }
25493 cat >conftest.$ac_ext <<_ACEOF
25496 cat confdefs.h >>conftest.$ac_ext
25497 cat >>conftest.$ac_ext <<_ACEOF
25498 /* end confdefs.h. */
25499 $ac_includes_default
25500 #include <declarations.h>
25502 rm -f conftest.$ac_objext
25503 if { (ac_try="$ac_compile"
25504 case "(($ac_try" in
25505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25506 *) ac_try_echo=$ac_try;;
25508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25509 (eval "$ac_compile") 2>conftest.er1
25511 grep -v '^ *+' conftest.er1 >conftest.err
25513 cat conftest.err >&5
25514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25515 (exit $ac_status); } && {
25516 test -z "$ac_c_werror_flag" ||
25517 test ! -s conftest.err
25518 } && test -s conftest.$ac_objext; then
25519 ac_header_compiler=yes
25521 echo "$as_me: failed program was:" >&5
25522 sed 's/^/| /' conftest.$ac_ext >&5
25524 ac_header_compiler=no
25527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25528 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25529 echo "${ECHO_T}$ac_header_compiler" >&6; }
25531 # Is the header present?
25532 { echo "$as_me:$LINENO: checking declarations.h presence" >&5
25533 echo $ECHO_N "checking declarations.h presence... $ECHO_C" >&6; }
25534 cat >conftest.$ac_ext <<_ACEOF
25537 cat confdefs.h >>conftest.$ac_ext
25538 cat >>conftest.$ac_ext <<_ACEOF
25539 /* end confdefs.h. */
25540 #include <declarations.h>
25542 if { (ac_try="$ac_cpp conftest.$ac_ext"
25543 case "(($ac_try" in
25544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25545 *) ac_try_echo=$ac_try;;
25547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25548 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25550 grep -v '^ *+' conftest.er1 >conftest.err
25552 cat conftest.err >&5
25553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25554 (exit $ac_status); } >/dev/null && {
25555 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25556 test ! -s conftest.err
25558 ac_header_preproc=yes
25560 echo "$as_me: failed program was:" >&5
25561 sed 's/^/| /' conftest.$ac_ext >&5
25563 ac_header_preproc=no
25566 rm -f conftest.err conftest.$ac_ext
25567 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25568 echo "${ECHO_T}$ac_header_preproc" >&6; }
25570 # So? What about this header?
25571 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25573 { echo "$as_me:$LINENO: WARNING: declarations.h: accepted by the compiler, rejected by the preprocessor!" >&5
25574 echo "$as_me: WARNING: declarations.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25575 { echo "$as_me:$LINENO: WARNING: declarations.h: proceeding with the compiler's result" >&5
25576 echo "$as_me: WARNING: declarations.h: proceeding with the compiler's result" >&2;}
25577 ac_header_preproc=yes
25580 { echo "$as_me:$LINENO: WARNING: declarations.h: present but cannot be compiled" >&5
25581 echo "$as_me: WARNING: declarations.h: present but cannot be compiled" >&2;}
25582 { echo "$as_me:$LINENO: WARNING: declarations.h: check for missing prerequisite headers?" >&5
25583 echo "$as_me: WARNING: declarations.h: check for missing prerequisite headers?" >&2;}
25584 { echo "$as_me:$LINENO: WARNING: declarations.h: see the Autoconf documentation" >&5
25585 echo "$as_me: WARNING: declarations.h: see the Autoconf documentation" >&2;}
25586 { echo "$as_me:$LINENO: WARNING: declarations.h: section \"Present But Cannot Be Compiled\"" >&5
25587 echo "$as_me: WARNING: declarations.h: section \"Present But Cannot Be Compiled\"" >&2;}
25588 { echo "$as_me:$LINENO: WARNING: declarations.h: proceeding with the preprocessor's result" >&5
25589 echo "$as_me: WARNING: declarations.h: proceeding with the preprocessor's result" >&2;}
25590 { echo "$as_me:$LINENO: WARNING: declarations.h: in the future, the compiler will take precedence" >&5
25591 echo "$as_me: WARNING: declarations.h: in the future, the compiler will take precedence" >&2;}
25593 ## -------------------------------------------------- ##
25594 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
25595 ## -------------------------------------------------- ##
25597 ) | sed "s/^/$as_me: WARNING: /" >&2
25600 { echo "$as_me:$LINENO: checking for declarations.h" >&5
25601 echo $ECHO_N "checking for declarations.h... $ECHO_C" >&6; }
25602 if test "${ac_cv_header_declarations_h+set}" = set; then
25603 echo $ECHO_N "(cached) $ECHO_C" >&6
25605 ac_cv_header_declarations_h=$ac_header_preproc
25607 { echo "$as_me:$LINENO: result: $ac_cv_header_declarations_h" >&5
25608 echo "${ECHO_T}$ac_cv_header_declarations_h" >&6; }
25611 if test $ac_cv_header_declarations_h = yes; then
25618 CPPFLAGS=$CPPFLAGS_SAV
25622 if test "x$csdp_lib = xyes" -a "x$csdp_header = xyes" ; then
25627 if test "x$csdp" = xyes; then
25628 AM_CPPFLAGS="$AM_CPPFLAGS $CSDP_CPPFLAGS"
25629 SIMGRID_DEP="$SIMGRID_DEP $CSDP_LDFLAGS"
25630 { echo "$as_me:$LINENO: result: Found working sdp library." >&5
25631 echo "${ECHO_T}Found working sdp library." >&6; }
25633 cat >>confdefs.h <<\_ACEOF
25638 { echo "$as_me:$LINENO: result: Could not find any working sdp library." >&5
25639 echo "${ECHO_T}Could not find any working sdp library." >&6; }
25642 if test x$csdp != xno; then
25653 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
25654 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
25655 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
25656 echo $ECHO_N "(cached) $ECHO_C" >&6
25658 ac_check_lib_save_LIBS=$LIBS
25660 cat >conftest.$ac_ext <<_ACEOF
25663 cat confdefs.h >>conftest.$ac_ext
25664 cat >>conftest.$ac_ext <<_ACEOF
25665 /* end confdefs.h. */
25667 /* Override any GCC internal prototype to avoid an error.
25668 Use char because int might match the return type of a GCC
25669 builtin and then its argument prototype would still apply. */
25673 char gethostbyname ();
25677 return gethostbyname ();
25682 rm -f conftest.$ac_objext conftest$ac_exeext
25683 if { (ac_try="$ac_link"
25684 case "(($ac_try" in
25685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25686 *) ac_try_echo=$ac_try;;
25688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25689 (eval "$ac_link") 2>conftest.er1
25691 grep -v '^ *+' conftest.er1 >conftest.err
25693 cat conftest.err >&5
25694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25695 (exit $ac_status); } && {
25696 test -z "$ac_c_werror_flag" ||
25697 test ! -s conftest.err
25698 } && test -s conftest$ac_exeext &&
25699 $as_test_x conftest$ac_exeext; then
25700 ac_cv_lib_nsl_gethostbyname=yes
25702 echo "$as_me: failed program was:" >&5
25703 sed 's/^/| /' conftest.$ac_ext >&5
25705 ac_cv_lib_nsl_gethostbyname=no
25708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25709 conftest$ac_exeext conftest.$ac_ext
25710 LIBS=$ac_check_lib_save_LIBS
25712 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
25713 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
25714 if test $ac_cv_lib_nsl_gethostbyname = yes; then
25715 GRAS_DEP="$GRAS_DEP -lnsl"
25718 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
25719 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
25720 if test "${ac_cv_lib_socket_connect+set}" = set; then
25721 echo $ECHO_N "(cached) $ECHO_C" >&6
25723 ac_check_lib_save_LIBS=$LIBS
25724 LIBS="-lsocket $LIBS"
25725 cat >conftest.$ac_ext <<_ACEOF
25728 cat confdefs.h >>conftest.$ac_ext
25729 cat >>conftest.$ac_ext <<_ACEOF
25730 /* end confdefs.h. */
25732 /* Override any GCC internal prototype to avoid an error.
25733 Use char because int might match the return type of a GCC
25734 builtin and then its argument prototype would still apply. */
25747 rm -f conftest.$ac_objext conftest$ac_exeext
25748 if { (ac_try="$ac_link"
25749 case "(($ac_try" in
25750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25751 *) ac_try_echo=$ac_try;;
25753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25754 (eval "$ac_link") 2>conftest.er1
25756 grep -v '^ *+' conftest.er1 >conftest.err
25758 cat conftest.err >&5
25759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25760 (exit $ac_status); } && {
25761 test -z "$ac_c_werror_flag" ||
25762 test ! -s conftest.err
25763 } && test -s conftest$ac_exeext &&
25764 $as_test_x conftest$ac_exeext; then
25765 ac_cv_lib_socket_connect=yes
25767 echo "$as_me: failed program was:" >&5
25768 sed 's/^/| /' conftest.$ac_ext >&5
25770 ac_cv_lib_socket_connect=no
25773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25774 conftest$ac_exeext conftest.$ac_ext
25775 LIBS=$ac_check_lib_save_LIBS
25777 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
25778 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
25779 if test $ac_cv_lib_socket_connect = yes; then
25780 GRAS_DEP="$GRAS_DEP -lsocket"
25784 { echo "$as_me:$LINENO: checking for extra dependencies of libgras" >&5
25785 echo $ECHO_N "checking for extra dependencies of libgras... $ECHO_C" >&6; }
25787 *mingw* ) GRAS_DEP="$GRAS_DEP -lws2_32" ; SIMGRID_DEP="$SIMGRID_DEP -lws2_32";
25788 AM_CPPFLAGS="$AM_CPPFLAGS -DDLL_EXPORT"
25789 cat >>confdefs.h <<\_ACEOF
25790 #define CONTEXT_THREADS 1
25795 if test "x$GRAS_DEP" = x; then
25796 { echo "$as_me:$LINENO: result: none" >&5
25797 echo "${ECHO_T}none" >&6; }
25799 { echo "$as_me:$LINENO: result: $GRAS_DEP" >&5
25800 echo "${ECHO_T}$GRAS_DEP" >&6; }
25804 ##############################################
25805 ## Enhance maintainer mode and SUBST variables
25806 ## (must be placed after any compilation tests since our overprotective flags
25807 ## let some tests fail)
25809 # Check whether we are doing a regular build or a GRAMINE (minimal) one
25810 # Next line is modified by sed when building gramine source tree
25812 if test x$gramine_mode = xyes
25814 USE_MAINTAINER_MODE=no
25816 if test x$gramine_mode != xno; then
25818 GRAMINE_MODE_FALSE='#'
25820 GRAMINE_MODE_TRUE='#'
25821 GRAMINE_MODE_FALSE=
25826 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
25827 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
25828 # Check whether --enable-maintainer-mode was given.
25829 if test "${enable_maintainer_mode+set}" = set; then
25830 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
25832 USE_MAINTAINER_MODE=no
25835 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
25836 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
25837 if test $USE_MAINTAINER_MODE = yes; then
25838 MAINTAINER_MODE_TRUE=
25839 MAINTAINER_MODE_FALSE='#'
25841 MAINTAINER_MODE_TRUE='#'
25842 MAINTAINER_MODE_FALSE=
25845 MAINT=$MAINTAINER_MODE_TRUE
25848 if test x$USE_MAINTAINER_MODE = xyes
25850 # Maintainers have no choice ! I'm a BOFH, and I plainly assume. [Mt]
25851 enable_compile_warnings=yes
25854 # Check whether --enable-compile-warnings was given.
25855 if test "${enable_compile_warnings+set}" = set; then
25856 enableval=$enable_compile_warnings; enable_compile_warnings=$enableval
25858 enable_compile_warnings=no
25862 # Check whether --enable-compile-optimizations was given.
25863 if test "${enable_compile_optimizations+set}" = set; then
25864 enableval=$enable_compile_optimizations; enable_compile_optimizations=$enableval
25866 enable_compile_optimizations=auto
25870 if test "x$cflags_set" != "xyes" ; then
25871 # if user didn't specify CFLAGS explicitely
25873 # AC PROG CC tests whether -g is accepted.
25874 # Cool, but it also tries to set -O2. I don't want it with gcc
25875 saveCFLAGS="$CFLAGS"
25877 case " $saveCFLAGS " in
25878 *-g*) CFLAGS="-g" ;;
25880 case " $saveCFLAGS " in
25881 *-O2*) test "x$CC" = xgcc || CFLAGS="$CFLAGS -O2" ;;
25884 # damn AC PROG CC, why did you set -O??
25888 if test "x$enable_compile_warnings" = "xyes" ; then
25889 { echo "$as_me:$LINENO: checking the warning flags for this compiler" >&5
25890 echo $ECHO_N "checking the warning flags for this compiler... $ECHO_C" >&6; }
25892 if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
25893 case " $CFLAGS " in
25895 *) warnCFLAGS="-Wall -Wunused" ;;
25898 ## -W is not all that useful. And it cannot be controlled
25899 ## with individual -Wno-xxx flags, unlike -Wall
25901 ##Â -Wformat=2 chokes on the snprintf replacement because the format is passed to real sprintf
25902 ## -Wshadow chokes on try{ try{} } constructs
25903 if test "x$enable_compile_warnings" = "xyes"; then
25904 warnCFLAGS=`echo $warnCFLAGS -Wmissing-prototypes -Wmissing-declarations \
25905 -Wpointer-arith -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings \
25906 -Wno-unused-function \
25909 # -Wno-unused-variable -Wno-unused-label
25912 { echo "$as_me:$LINENO: result: $warnCFLAGS" >&5
25913 echo "${ECHO_T}$warnCFLAGS" >&6; }
25914 # placed before since gcc remembers the last one on conflict
25915 CFLAGS="$warnCFLAGS $CFLAGS"
25918 if test "x$enable_compile_optimizations" = "xyes" ||
25919 test "x$enable_compile_optimizations" = "xauto" ; then
25920 { echo "$as_me:$LINENO: checking the optimization flags for this compiler" >&5
25921 echo $ECHO_N "checking the optimization flags for this compiler... $ECHO_C" >&6; }
25923 if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
25924 case " $CFLAGS " in
25926 *) optCFLAGS="$optCFLAGS -O3" ;;
25928 optCFLAGS="$optCFLAGS -finline-functions -ffast-math -funroll-loops -fno-strict-aliasing"
25930 GCC_VER=`gcc --version | head -n 1 | sed 's/^^0-9*\(^ *\).*$/\1/'`
25931 GCC_VER_MAJ=`echo $GCC_VER | sed 's/^\(.\).*$/\1/'`
25932 if test "x$target_cpu" = "xpowerpc" && test "x$GCC_VER_MAJ" == "x3" ; then
25933 # avoid gcc bug #12828, which apeared in 3.x branch and is fixed in 3.4.0
25934 # but the check would be too complicated to get 3.4.
25935 # Instead, rule out any 3.x compiler.
25937 # Note that the flag didn't exist before gcc 3.0
25938 optCFLAGS="$optCFLAGS -fno-loop-optimize"
25941 { echo "$as_me:$LINENO: result: $optCFLAGS" >&5
25942 echo "${ECHO_T}$optCFLAGS" >&6; }
25943 # Take it only if CFLAGS not explicitly set. Unless the flag was explicitly given
25944 if test "x$cflags_set" != "xyes" ; then
25945 CFLAGS="$optCFLAGS $CFLAGS"
25949 if test x$lt_cv_prog_gnu_ld = xyes ; then
25950 LD_DYNAMIC_FLAGS=-Wl,--export-dynamic
25970 { echo "$as_me:$LINENO: result: " >&5
25971 echo "${ECHO_T}" >&6; }
25972 { echo "$as_me:$LINENO: result: ${T_MD}Check for Java bindings...${T_ME}" >&5
25973 echo "${ECHO_T}${T_MD}Check for Java bindings...${T_ME}" >&6; }
25976 # Check whether --enable-java was given.
25977 if test "${enable_java+set}" = set; then
25978 enableval=$enable_java; want_java=$enableval
25983 if test "x$want_java" != "xyes" ; then
25984 { echo "$as_me:$LINENO: checking whether to compile java bindings" >&5
25985 echo $ECHO_N "checking whether to compile java bindings... $ECHO_C" >&6; }
25986 { echo "$as_me:$LINENO: result: disabled by user" >&5
25987 echo "${ECHO_T}disabled by user" >&6; }
25988 use_java="disabled by user"
25990 # Extract the first word of "javac", so it can be a program name with args.
25991 set dummy javac; ac_word=$2
25992 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25994 if test "${ac_cv_path_JAVAC+set}" = set; then
25995 echo $ECHO_N "(cached) $ECHO_C" >&6
25999 ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
26002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26003 for as_dir in $PATH
26006 test -z "$as_dir" && as_dir=.
26007 for ac_exec_ext in '' $ac_executable_extensions; do
26008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26009 ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext"
26010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26017 test -z "$ac_cv_path_JAVAC" && ac_cv_path_JAVAC="`which javac`"
26021 JAVAC=$ac_cv_path_JAVAC
26022 if test -n "$JAVAC"; then
26023 { echo "$as_me:$LINENO: result: $JAVAC" >&5
26024 echo "${ECHO_T}$JAVAC" >&6; }
26026 { echo "$as_me:$LINENO: result: no" >&5
26027 echo "${ECHO_T}no" >&6; }
26031 # Extract the first word of "java ", so it can be a program name with args.
26032 set dummy java ; ac_word=$2
26033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26035 if test "${ac_cv_path_JAVA+set}" = set; then
26036 echo $ECHO_N "(cached) $ECHO_C" >&6
26040 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.
26043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26044 for as_dir in $PATH
26047 test -z "$as_dir" && as_dir=.
26048 for ac_exec_ext in '' $ac_executable_extensions; do
26049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26050 ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext"
26051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26058 test -z "$ac_cv_path_JAVA" && ac_cv_path_JAVA="`which java`"
26062 JAVA=$ac_cv_path_JAVA
26063 if test -n "$JAVA"; then
26064 { echo "$as_me:$LINENO: result: $JAVA" >&5
26065 echo "${ECHO_T}$JAVA" >&6; }
26067 { echo "$as_me:$LINENO: result: no" >&5
26068 echo "${ECHO_T}no" >&6; }
26072 # Extract the first word of "jar ", so it can be a program name with args.
26073 set dummy jar ; ac_word=$2
26074 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26076 if test "${ac_cv_path_JAR+set}" = set; then
26077 echo $ECHO_N "(cached) $ECHO_C" >&6
26081 ac_cv_path_JAR="$JAR" # Let the user override the test with a path.
26084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26085 for as_dir in $PATH
26088 test -z "$as_dir" && as_dir=.
26089 for ac_exec_ext in '' $ac_executable_extensions; do
26090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26091 ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext"
26092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26099 test -z "$ac_cv_path_JAR" && ac_cv_path_JAR="`which jar`"
26103 JAR=$ac_cv_path_JAR
26104 if test -n "$JAR"; then
26105 { echo "$as_me:$LINENO: result: $JAR" >&5
26106 echo "${ECHO_T}$JAR" >&6; }
26108 { echo "$as_me:$LINENO: result: no" >&5
26109 echo "${ECHO_T}no" >&6; }
26114 for ac_header in jni.h
26116 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26118 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26119 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26121 echo $ECHO_N "(cached) $ECHO_C" >&6
26123 ac_res=`eval echo '${'$as_ac_Header'}'`
26124 { echo "$as_me:$LINENO: result: $ac_res" >&5
26125 echo "${ECHO_T}$ac_res" >&6; }
26127 # Is the header compilable?
26128 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26129 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26130 cat >conftest.$ac_ext <<_ACEOF
26133 cat confdefs.h >>conftest.$ac_ext
26134 cat >>conftest.$ac_ext <<_ACEOF
26135 /* end confdefs.h. */
26136 $ac_includes_default
26137 #include <$ac_header>
26139 rm -f conftest.$ac_objext
26140 if { (ac_try="$ac_compile"
26141 case "(($ac_try" in
26142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26143 *) ac_try_echo=$ac_try;;
26145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26146 (eval "$ac_compile") 2>conftest.er1
26148 grep -v '^ *+' conftest.er1 >conftest.err
26150 cat conftest.err >&5
26151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26152 (exit $ac_status); } && {
26153 test -z "$ac_c_werror_flag" ||
26154 test ! -s conftest.err
26155 } && test -s conftest.$ac_objext; then
26156 ac_header_compiler=yes
26158 echo "$as_me: failed program was:" >&5
26159 sed 's/^/| /' conftest.$ac_ext >&5
26161 ac_header_compiler=no
26164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26165 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26166 echo "${ECHO_T}$ac_header_compiler" >&6; }
26168 # Is the header present?
26169 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26170 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26171 cat >conftest.$ac_ext <<_ACEOF
26174 cat confdefs.h >>conftest.$ac_ext
26175 cat >>conftest.$ac_ext <<_ACEOF
26176 /* end confdefs.h. */
26177 #include <$ac_header>
26179 if { (ac_try="$ac_cpp conftest.$ac_ext"
26180 case "(($ac_try" in
26181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26182 *) ac_try_echo=$ac_try;;
26184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26185 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26187 grep -v '^ *+' conftest.er1 >conftest.err
26189 cat conftest.err >&5
26190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26191 (exit $ac_status); } >/dev/null && {
26192 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26193 test ! -s conftest.err
26195 ac_header_preproc=yes
26197 echo "$as_me: failed program was:" >&5
26198 sed 's/^/| /' conftest.$ac_ext >&5
26200 ac_header_preproc=no
26203 rm -f conftest.err conftest.$ac_ext
26204 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26205 echo "${ECHO_T}$ac_header_preproc" >&6; }
26207 # So? What about this header?
26208 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26210 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26211 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26212 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26213 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26214 ac_header_preproc=yes
26217 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26218 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26219 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26220 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26221 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26222 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26223 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26224 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26225 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26226 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26227 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26228 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26230 ## -------------------------------------------------- ##
26231 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
26232 ## -------------------------------------------------- ##
26234 ) | sed "s/^/$as_me: WARNING: /" >&2
26237 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26240 echo $ECHO_N "(cached) $ECHO_C" >&6
26242 eval "$as_ac_Header=\$ac_header_preproc"
26244 ac_res=`eval echo '${'$as_ac_Header'}'`
26245 { echo "$as_me:$LINENO: result: $ac_res" >&5
26246 echo "${ECHO_T}$ac_res" >&6; }
26249 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26250 cat >>confdefs.h <<_ACEOF
26251 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26258 { echo "$as_me:$LINENO: checking whether to compile java bindings" >&5
26259 echo $ECHO_N "checking whether to compile java bindings... $ECHO_C" >&6; }
26260 if test -n "$JAVAC" \
26261 && test -n "$JAVA" \
26262 && test -n "$JAR" \
26263 && test "x$ac_cv_header_jni_h" = "xyes" ; then
26269 { echo "$as_me:$LINENO: result: $use_java" >&5
26270 echo "${ECHO_T}$use_java" >&6; }
26272 if test "x$use_java" = "xyes"; then
26274 HAVE_JAVA_FALSE='#'
26281 #####################
26282 ## Check for programs
26286 { echo "$as_me:$LINENO: result: " >&5
26287 echo "${ECHO_T}" >&6; }
26288 { echo "$as_me:$LINENO: result: ${T_MD}Check for programs...${T_ME}" >&5
26289 echo "${ECHO_T}${T_MD}Check for programs...${T_ME}" >&6; }
26291 # Extract the first word of "bash", so it can be a program name with args.
26292 set dummy bash; ac_word=$2
26293 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26295 if test "${ac_cv_prog_BASH+set}" = set; then
26296 echo $ECHO_N "(cached) $ECHO_C" >&6
26298 if test -n "$BASH"; then
26299 ac_cv_prog_BASH="$BASH" # Let the user override the test.
26301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26302 for as_dir in $PATH
26305 test -z "$as_dir" && as_dir=.
26306 for ac_exec_ext in '' $ac_executable_extensions; do
26307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26308 ac_cv_prog_BASH="`which bash`"
26309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26316 test -z "$ac_cv_prog_BASH" && ac_cv_prog_BASH="/bin/sh"
26319 BASH=$ac_cv_prog_BASH
26320 if test -n "$BASH"; then
26321 { echo "$as_me:$LINENO: result: $BASH" >&5
26322 echo "${ECHO_T}$BASH" >&6; }
26324 { echo "$as_me:$LINENO: result: no" >&5
26325 echo "${ECHO_T}no" >&6; }
26329 WARNING="This file is generated, do not edit"
26333 # Can we rebuild the parsers?
26334 # We really want flex and refuse other lex. So, the parser is portable and
26335 # does not induce extra lib dependency
26336 for ac_prog in flex lex
26338 # Extract the first word of "$ac_prog", so it can be a program name with args.
26339 set dummy $ac_prog; ac_word=$2
26340 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26342 if test "${ac_cv_prog_LEX+set}" = set; then
26343 echo $ECHO_N "(cached) $ECHO_C" >&6
26345 if test -n "$LEX"; then
26346 ac_cv_prog_LEX="$LEX" # Let the user override the test.
26348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26349 for as_dir in $PATH
26352 test -z "$as_dir" && as_dir=.
26353 for ac_exec_ext in '' $ac_executable_extensions; do
26354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26355 ac_cv_prog_LEX="$ac_prog"
26356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26365 LEX=$ac_cv_prog_LEX
26366 if test -n "$LEX"; then
26367 { echo "$as_me:$LINENO: result: $LEX" >&5
26368 echo "${ECHO_T}$LEX" >&6; }
26370 { echo "$as_me:$LINENO: result: no" >&5
26371 echo "${ECHO_T}no" >&6; }
26375 test -n "$LEX" && break
26377 test -n "$LEX" || LEX=":"
26379 if test "x$LEX" != "x:"; then
26380 cat >conftest.l <<_ACEOF
26386 e { yyless (input () != 0); }
26387 f { unput (yytext[0]); }
26388 . { BEGIN INITIAL; }
26390 #ifdef YYTEXT_POINTER
26391 extern char *yytext;
26396 return ! yylex () + ! yywrap ();
26399 { (ac_try="$LEX conftest.l"
26400 case "(($ac_try" in
26401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26402 *) ac_try_echo=$ac_try;;
26404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26405 (eval "$LEX conftest.l") 2>&5
26407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26408 (exit $ac_status); }
26409 { echo "$as_me:$LINENO: checking lex output file root" >&5
26410 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
26411 if test "${ac_cv_prog_lex_root+set}" = set; then
26412 echo $ECHO_N "(cached) $ECHO_C" >&6
26415 if test -f lex.yy.c; then
26416 ac_cv_prog_lex_root=lex.yy
26417 elif test -f lexyy.c; then
26418 ac_cv_prog_lex_root=lexyy
26420 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
26421 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
26422 { (exit 1); exit 1; }; }
26425 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
26426 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
26427 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
26429 if test -z "${LEXLIB+set}"; then
26430 { echo "$as_me:$LINENO: checking lex library" >&5
26431 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
26432 if test "${ac_cv_lib_lex+set}" = set; then
26433 echo $ECHO_N "(cached) $ECHO_C" >&6
26437 ac_cv_lib_lex='none needed'
26438 for ac_lib in '' -lfl -ll; do
26439 LIBS="$ac_lib $ac_save_LIBS"
26440 cat >conftest.$ac_ext <<_ACEOF
26441 `cat $LEX_OUTPUT_ROOT.c`
26443 rm -f conftest.$ac_objext conftest$ac_exeext
26444 if { (ac_try="$ac_link"
26445 case "(($ac_try" in
26446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26447 *) ac_try_echo=$ac_try;;
26449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26450 (eval "$ac_link") 2>conftest.er1
26452 grep -v '^ *+' conftest.er1 >conftest.err
26454 cat conftest.err >&5
26455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26456 (exit $ac_status); } && {
26457 test -z "$ac_c_werror_flag" ||
26458 test ! -s conftest.err
26459 } && test -s conftest$ac_exeext &&
26460 $as_test_x conftest$ac_exeext; then
26461 ac_cv_lib_lex=$ac_lib
26463 echo "$as_me: failed program was:" >&5
26464 sed 's/^/| /' conftest.$ac_ext >&5
26469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26470 conftest$ac_exeext conftest.$ac_ext
26471 test "$ac_cv_lib_lex" != 'none needed' && break
26476 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
26477 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
26478 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
26482 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
26483 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
26484 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
26485 echo $ECHO_N "(cached) $ECHO_C" >&6
26487 # POSIX says lex can declare yytext either as a pointer or an array; the
26488 # default is implementation-dependent. Figure out which it is, since
26489 # not all implementations provide the %pointer and %array declarations.
26490 ac_cv_prog_lex_yytext_pointer=no
26492 LIBS="$LEXLIB $ac_save_LIBS"
26493 cat >conftest.$ac_ext <<_ACEOF
26494 #define YYTEXT_POINTER 1
26495 `cat $LEX_OUTPUT_ROOT.c`
26497 rm -f conftest.$ac_objext conftest$ac_exeext
26498 if { (ac_try="$ac_link"
26499 case "(($ac_try" in
26500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26501 *) ac_try_echo=$ac_try;;
26503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26504 (eval "$ac_link") 2>conftest.er1
26506 grep -v '^ *+' conftest.er1 >conftest.err
26508 cat conftest.err >&5
26509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26510 (exit $ac_status); } && {
26511 test -z "$ac_c_werror_flag" ||
26512 test ! -s conftest.err
26513 } && test -s conftest$ac_exeext &&
26514 $as_test_x conftest$ac_exeext; then
26515 ac_cv_prog_lex_yytext_pointer=yes
26517 echo "$as_me: failed program was:" >&5
26518 sed 's/^/| /' conftest.$ac_ext >&5
26523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26524 conftest$ac_exeext conftest.$ac_ext
26528 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
26529 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
26530 if test $ac_cv_prog_lex_yytext_pointer = yes; then
26532 cat >>confdefs.h <<\_ACEOF
26533 #define YYTEXT_POINTER 1
26537 rm -f conftest.l $LEX_OUTPUT_ROOT.c
26541 if test "$LEX" != flex; then
26542 { echo "$as_me:$LINENO: Flex not found. Parsers won't get updated." >&5
26543 echo "$as_me: Flex not found. Parsers won't get updated." >&6;}
26544 LEX=${am_missing_run}flex
26548 if test "x2.5.30" != "x" ; then
26549 FLEX_VERSION=`flex --version | sed -e 's/^[^0-9]*//' -e 's/[^0-9]*$//'`
26551 FLEX_VER_MAJ=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
26552 FLEX_VER_MED=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
26553 FLEX_VER_MIN=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
26555 WANT_VER_MAJ=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`;
26556 WANT_VER_MED=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`;
26557 WANT_VER_MIN=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`;
26559 if test "$FLEX_VER_MAJ" -lt "$WANT_VER_MAJ" ||
26560 test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -lt "$WANT_VER_MED" ||
26561 test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -eq "$WANT_VER_MED" -a "$FLEX_VER_MIN" -lt "$WANT_VER_MIN" ;
26563 { echo "$as_me:$LINENO: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&5
26564 echo "$as_me: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&6;}
26565 LEX=${am_missing_run}flex
26569 { echo "$as_me:$LINENO: Flex found. Parsers will get updated" >&5
26570 echo "$as_me: Flex found. Parsers will get updated" >&6;}
26576 # Can we rebuild the xml-lexers from the XML specification?
26577 # if not, simply touch the flex source files (which are distributed in
26578 # tarballs even if generated by flexml) and hope for the best.
26579 # Extract the first word of "flexml", so it can be a program name with args.
26580 set dummy flexml; ac_word=$2
26581 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26583 if test "${ac_cv_prog_FLEXML+set}" = set; then
26584 echo $ECHO_N "(cached) $ECHO_C" >&6
26586 if test -n "$FLEXML"; then
26587 ac_cv_prog_FLEXML="$FLEXML" # Let the user override the test.
26589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26590 for as_dir in $PATH
26593 test -z "$as_dir" && as_dir=.
26594 for ac_exec_ext in '' $ac_executable_extensions; do
26595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26596 ac_cv_prog_FLEXML="`which flexml`"
26597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26604 test -z "$ac_cv_prog_FLEXML" && ac_cv_prog_FLEXML="NOTFOUND"
26607 FLEXML=$ac_cv_prog_FLEXML
26608 if test -n "$FLEXML"; then
26609 { echo "$as_me:$LINENO: result: $FLEXML" >&5
26610 echo "${ECHO_T}$FLEXML" >&6; }
26612 { echo "$as_me:$LINENO: result: no" >&5
26613 echo "${ECHO_T}no" >&6; }
26617 if test x$FLEXML != xNOTFOUND; then
26619 HAVE_FLEXML_FALSE='#'
26621 HAVE_FLEXML_TRUE='#'
26626 if test x$USE_MAINTAINER_MODE = xyes
26628 # Check for doxygen when in maintainer mode since dist* targets fail
26630 # Extract the first word of "doxygen", so it can be a program name with args.
26631 set dummy doxygen; ac_word=$2
26632 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26634 if test "${ac_cv_path_DOXYGEN+set}" = set; then
26635 echo $ECHO_N "(cached) $ECHO_C" >&6
26639 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
26642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26643 for as_dir in $PATH
26646 test -z "$as_dir" && as_dir=.
26647 for ac_exec_ext in '' $ac_executable_extensions; do
26648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26649 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
26650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26657 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="`which doxygen`"
26661 DOXYGEN=$ac_cv_path_DOXYGEN
26662 if test -n "$DOXYGEN"; then
26663 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
26664 echo "${ECHO_T}$DOXYGEN" >&6; }
26666 { echo "$as_me:$LINENO: result: no" >&5
26667 echo "${ECHO_T}no" >&6; }
26671 if test x$DOXYGEN = x ; then
26672 { { echo "$as_me:$LINENO: error: doxygen is mandatory in maintainer mode" >&5
26673 echo "$as_me: error: doxygen is mandatory in maintainer mode" >&2;}
26674 { (exit 1); exit 1; }; }
26678 # Can we extract really usable backtraces? (also need the popen function)
26679 # Extract the first word of "addr2line", so it can be a program name with args.
26680 set dummy addr2line; ac_word=$2
26681 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26683 if test "${ac_cv_path_ADDR2LINE+set}" = set; then
26684 echo $ECHO_N "(cached) $ECHO_C" >&6
26688 ac_cv_path_ADDR2LINE="$ADDR2LINE" # Let the user override the test with a path.
26691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26692 for as_dir in $PATH
26695 test -z "$as_dir" && as_dir=.
26696 for ac_exec_ext in '' $ac_executable_extensions; do
26697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26698 ac_cv_path_ADDR2LINE="$as_dir/$ac_word$ac_exec_ext"
26699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26709 ADDR2LINE=$ac_cv_path_ADDR2LINE
26710 if test -n "$ADDR2LINE"; then
26711 { echo "$as_me:$LINENO: result: $ADDR2LINE" >&5
26712 echo "${ECHO_T}$ADDR2LINE" >&6; }
26714 { echo "$as_me:$LINENO: result: no" >&5
26715 echo "${ECHO_T}no" >&6; }
26719 if test x$ADDR2LINE != x ; then
26721 cat >>confdefs.h <<_ACEOF
26722 #define ADDR2LINE "$ADDR2LINE"
26728 # Can we make status line about the compilation result?
26729 # Extract the first word of "md5sum", so it can be a program name with args.
26730 set dummy md5sum; ac_word=$2
26731 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26733 if test "${ac_cv_prog_MD5SUM+set}" = set; then
26734 echo $ECHO_N "(cached) $ECHO_C" >&6
26736 if test -n "$MD5SUM"; then
26737 ac_cv_prog_MD5SUM="$MD5SUM" # Let the user override the test.
26739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26740 for as_dir in $PATH
26743 test -z "$as_dir" && as_dir=.
26744 for ac_exec_ext in '' $ac_executable_extensions; do
26745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26746 ac_cv_prog_MD5SUM="`which md5sum`"
26747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26756 MD5SUM=$ac_cv_prog_MD5SUM
26757 if test -n "$MD5SUM"; then
26758 { echo "$as_me:$LINENO: result: $MD5SUM" >&5
26759 echo "${ECHO_T}$MD5SUM" >&6; }
26761 { echo "$as_me:$LINENO: result: no" >&5
26762 echo "${ECHO_T}no" >&6; }
26766 if test x$MD5SUM != xno ; then
26767 build_version=`find -name '*.ch' |grep -v src/ucontext_stack.h | grep -v src/gras_config.h |\
26768 xargs cat| $MD5SUM | sed 's/ .*$//'`
26770 build_version="no_md5sum_binary"
26772 build_id="$PACKAGE ver=$VERSION build=$build_version args=\"$ac_configure_args\""
26775 ###################
26776 ## Makes the output
26781 # examples/gras/chord/Makefile examples/gras/chord/test_sg examples/gras/chord/test_rl
26782 # src/amok/Makefile
26785 { echo "$as_me:$LINENO: result: " >&5
26786 echo "${ECHO_T}" >&6; }
26787 { echo "$as_me:$LINENO: result: ${T_MD}Generating files...${T_ME}" >&5
26788 echo "${ECHO_T}${T_MD}Generating files...${T_ME}" >&6; }
26791 # Core of the libraries
26793 ac_config_files="$ac_config_files Makefile include/Makefile src/Makefile src/ucontext_stack.h"
26796 # Tools being embeeded in gramine (stub generator)
26797 ac_config_files="$ac_config_files tools/Makefile tools/gras/Makefile tools/tesh/Makefile"
26801 # GRAMINE_CUT_BEGIN
26803 # Tools NOT being embeeded in gramine
26804 ac_config_files="$ac_config_files tools/graspe-slave"
26809 ac_config_files="$ac_config_files testsuite/Makefile testsuite/run_tests testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage"
26813 ac_config_files="$ac_config_files doc/Makefile doc/Doxyfile"
26818 # examples/gras/p2p/Makefile
26819 # examples/gras/p2p/chord/Makefile
26820 # examples/gras/p2p/can/Makefile
26822 if test "x$use_java" = "xyes" ; then
26823 ac_config_files="$ac_config_files examples/java/Makefile examples/java/basic/Makefile examples/java/comm_time/Makefile examples/java/suspend/Makefile examples/java/ping_pong/Makefile"
26827 ac_config_files="$ac_config_files examples/Makefile examples/msg/Makefile examples/simdag/Makefile examples/simdag/test_simdag examples/gras/Makefile examples/gras/ping/Makefile examples/gras/rpc/Makefile examples/gras/spawn/Makefile examples/gras/synchro/Makefile examples/gras/timer/Makefile examples/gras/chrono/Makefile examples/gras/mutual_exclusion/simple_token/Makefile examples/gras/mmrpc/Makefile examples/gras/pmm/Makefile examples/gras/all2all/Makefile examples/amok/Makefile examples/amok/bandwidth/Makefile examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl examples/amok/saturate/Makefile examples/amok/saturate/test_sg examples/amok/saturate/test_rl"
26833 cat >confcache <<\_ACEOF
26834 # This file is a shell script that caches the results of configure
26835 # tests run on this system so they can be shared between configure
26836 # scripts and configure runs, see configure's option --config-cache.
26837 # It is not useful on other systems. If it contains results you don't
26838 # want to keep, you may remove or edit it.
26840 # config.status only pays attention to the cache file if you give it
26841 # the --recheck option to rerun configure.
26843 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26844 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26845 # following values.
26849 # The following way of writing the cache mishandles newlines in values,
26850 # but we know of no workaround that is simple, portable, and efficient.
26851 # So, we kill variables containing newlines.
26852 # Ultrix sh set writes to stderr and can't be redirected directly,
26853 # and sets the high bit in the cache file unless we assign to the vars.
26855 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26856 eval ac_val=\$$ac_var
26860 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26861 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26864 _ | IFS | as_nl) ;; #(
26865 *) $as_unset $ac_var ;;
26871 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26872 *${as_nl}ac_space=\ *)
26873 # `set' does not quote correctly, so add quotes (double-quote
26874 # substitution turns \\\\ into \\, and sed turns \\ into \).
26877 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26880 # `set' quotes correctly as required by POSIX, so do not add quotes.
26881 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26890 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26892 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26894 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26895 if test -w "$cache_file"; then
26896 test "x$cache_file" != "x/dev/null" &&
26897 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26898 echo "$as_me: updating cache $cache_file" >&6;}
26899 cat confcache >$cache_file
26901 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26902 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26907 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26908 # Let make expand exec_prefix.
26909 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26911 DEFS=-DHAVE_CONFIG_H
26915 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26916 # 1. Remove the extension, and $U if already installed.
26917 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26918 ac_i=`echo "$ac_i" | sed "$ac_script"`
26919 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26920 # will be set to the directory where LIBOBJS objects are built.
26921 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26922 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26924 LIBOBJS=$ac_libobjs
26926 LTLIBOBJS=$ac_ltlibobjs
26929 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26930 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
26931 Usually this means the macro was only invoked conditionally." >&5
26932 echo "$as_me: error: conditional \"AMDEP\" was never defined.
26933 Usually this means the macro was only invoked conditionally." >&2;}
26934 { (exit 1); exit 1; }; }
26936 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
26937 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
26938 Usually this means the macro was only invoked conditionally." >&5
26939 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
26940 Usually this means the macro was only invoked conditionally." >&2;}
26941 { (exit 1); exit 1; }; }
26943 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26944 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26945 Usually this means the macro was only invoked conditionally." >&5
26946 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26947 Usually this means the macro was only invoked conditionally." >&2;}
26948 { (exit 1); exit 1; }; }
26950 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26951 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
26952 Usually this means the macro was only invoked conditionally." >&5
26953 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
26954 Usually this means the macro was only invoked conditionally." >&2;}
26955 { (exit 1); exit 1; }; }
26957 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26958 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26959 Usually this means the macro was only invoked conditionally." >&5
26960 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26961 Usually this means the macro was only invoked conditionally." >&2;}
26962 { (exit 1); exit 1; }; }
26964 if test -z "${GRAS_ARCH_32_BITS_TRUE}" && test -z "${GRAS_ARCH_32_BITS_FALSE}"; then
26965 { { echo "$as_me:$LINENO: error: conditional \"GRAS_ARCH_32_BITS\" was never defined.
26966 Usually this means the macro was only invoked conditionally." >&5
26967 echo "$as_me: error: conditional \"GRAS_ARCH_32_BITS\" was never defined.
26968 Usually this means the macro was only invoked conditionally." >&2;}
26969 { (exit 1); exit 1; }; }
26971 if test -z "${CONTEXT_THREADS_TRUE}" && test -z "${CONTEXT_THREADS_FALSE}"; then
26972 { { echo "$as_me:$LINENO: error: conditional \"CONTEXT_THREADS\" was never defined.
26973 Usually this means the macro was only invoked conditionally." >&5
26974 echo "$as_me: error: conditional \"CONTEXT_THREADS\" was never defined.
26975 Usually this means the macro was only invoked conditionally." >&2;}
26976 { (exit 1); exit 1; }; }
26978 if test -z "${HAVE_GTNETS_TRUE}" && test -z "${HAVE_GTNETS_FALSE}"; then
26979 { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTNETS\" was never defined.
26980 Usually this means the macro was only invoked conditionally." >&5
26981 echo "$as_me: error: conditional \"HAVE_GTNETS\" was never defined.
26982 Usually this means the macro was only invoked conditionally." >&2;}
26983 { (exit 1); exit 1; }; }
26985 if test -z "${HAVE_SDP_TRUE}" && test -z "${HAVE_SDP_FALSE}"; then
26986 { { echo "$as_me:$LINENO: error: conditional \"HAVE_SDP\" was never defined.
26987 Usually this means the macro was only invoked conditionally." >&5
26988 echo "$as_me: error: conditional \"HAVE_SDP\" was never defined.
26989 Usually this means the macro was only invoked conditionally." >&2;}
26990 { (exit 1); exit 1; }; }
26992 if test -z "${GRAMINE_MODE_TRUE}" && test -z "${GRAMINE_MODE_FALSE}"; then
26993 { { echo "$as_me:$LINENO: error: conditional \"GRAMINE_MODE\" was never defined.
26994 Usually this means the macro was only invoked conditionally." >&5
26995 echo "$as_me: error: conditional \"GRAMINE_MODE\" was never defined.
26996 Usually this means the macro was only invoked conditionally." >&2;}
26997 { (exit 1); exit 1; }; }
26999 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
27000 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
27001 Usually this means the macro was only invoked conditionally." >&5
27002 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
27003 Usually this means the macro was only invoked conditionally." >&2;}
27004 { (exit 1); exit 1; }; }
27006 if test -z "${HAVE_JAVA_TRUE}" && test -z "${HAVE_JAVA_FALSE}"; then
27007 { { echo "$as_me:$LINENO: error: conditional \"HAVE_JAVA\" was never defined.
27008 Usually this means the macro was only invoked conditionally." >&5
27009 echo "$as_me: error: conditional \"HAVE_JAVA\" was never defined.
27010 Usually this means the macro was only invoked conditionally." >&2;}
27011 { (exit 1); exit 1; }; }
27013 if test -z "${HAVE_FLEXML_TRUE}" && test -z "${HAVE_FLEXML_FALSE}"; then
27014 { { echo "$as_me:$LINENO: error: conditional \"HAVE_FLEXML\" was never defined.
27015 Usually this means the macro was only invoked conditionally." >&5
27016 echo "$as_me: error: conditional \"HAVE_FLEXML\" was never defined.
27017 Usually this means the macro was only invoked conditionally." >&2;}
27018 { (exit 1); exit 1; }; }
27021 : ${CONFIG_STATUS=./config.status}
27022 ac_clean_files_save=$ac_clean_files
27023 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27024 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27025 echo "$as_me: creating $CONFIG_STATUS" >&6;}
27026 cat >$CONFIG_STATUS <<_ACEOF
27028 # Generated by $as_me.
27029 # Run this file to recreate the current configuration.
27030 # Compiler output produced by configure, useful for debugging
27031 # configure, is in config.log if it exists.
27034 ac_cs_recheck=false
27036 SHELL=\${CONFIG_SHELL-$SHELL}
27039 cat >>$CONFIG_STATUS <<\_ACEOF
27040 ## --------------------- ##
27041 ## M4sh Initialization. ##
27042 ## --------------------- ##
27044 # Be more Bourne compatible
27045 DUALCASE=1; export DUALCASE # for MKS sh
27046 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27049 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27050 # is contrary to our usage. Disable this feature.
27051 alias -g '${1+"$@"}'='"$@"'
27052 setopt NO_GLOB_SUBST
27054 case `(set -o) 2>/dev/null` in
27055 *posix*) set -o posix ;;
27064 # Avoid depending upon Character Ranges.
27065 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27066 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27067 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27068 as_cr_digits='0123456789'
27069 as_cr_alnum=$as_cr_Letters$as_cr_digits
27071 # The user is always right.
27072 if test "${PATH_SEPARATOR+set}" != set; then
27073 echo "#! /bin/sh" >conf$$.sh
27074 echo "exit 0" >>conf$$.sh
27076 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27084 # Support unset when possible.
27085 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27093 # We need space, tab and new line, in precisely that order. Quoting is
27094 # there to prevent editors from complaining about space-tab.
27095 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27096 # splitting by setting IFS to empty value.)
27101 # Find who we are. Look in the path if we contain no directory separator.
27103 *[\\/]* ) as_myself=$0 ;;
27104 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27105 for as_dir in $PATH
27108 test -z "$as_dir" && as_dir=.
27109 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27115 # We did not find ourselves, most probably we were run as `sh COMMAND'
27116 # in which case we are not to be found in the path.
27117 if test "x$as_myself" = x; then
27120 if test ! -f "$as_myself"; then
27121 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27122 { (exit 1); exit 1; }
27125 # Work around bugs in pre-3.0 UWIN ksh.
27126 for as_var in ENV MAIL MAILPATH
27127 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27135 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27136 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27137 LC_TELEPHONE LC_TIME
27139 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27140 eval $as_var=C; export $as_var
27142 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27146 # Required to use basename.
27147 if expr a : '\(a\)' >/dev/null 2>&1 &&
27148 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27154 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27155 as_basename=basename
27161 # Name of the executable.
27162 as_me=`$as_basename -- "$0" ||
27163 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27164 X"$0" : 'X\(//\)$' \| \
27165 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27167 sed '/^.*\/\([^/][^/]*\)\/*$/{
27186 as_lineno_1=$LINENO
27187 as_lineno_2=$LINENO
27188 test "x$as_lineno_1" != "x$as_lineno_2" &&
27189 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
27191 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27192 # uniformly replaced by the line number. The first 'sed' inserts a
27193 # line-number line after each line using $LINENO; the second 'sed'
27194 # does the real work. The second script uses 'N' to pair each
27195 # line-number line with the line containing $LINENO, and appends
27196 # trailing '-' during substitution so that $LINENO is not a special
27197 # case at line end.
27198 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27199 # scripts with optimization help from Paolo Bonzini. Blame Lee
27200 # E. McMahon (1931-1989) for sed's syntax. :-)
27212 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27215 ' >$as_me.lineno &&
27216 chmod +x "$as_me.lineno" ||
27217 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27218 { (exit 1); exit 1; }; }
27220 # Don't try to exec as it changes $[0], causing all sort of problems
27221 # (the dirname of $[0] is not the place where we might find the
27222 # original and so on. Autoconf is especially sensitive to this).
27223 . "./$as_me.lineno"
27224 # Exit status is that of the last command.
27229 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27235 ECHO_C= ECHO_N= ECHO_T=
27236 case `echo -n x` in
27238 case `echo 'x\c'` in
27239 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27246 if expr a : '\(a\)' >/dev/null 2>&1 &&
27247 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27253 rm -f conf$$ conf$$.exe conf$$.file
27254 if test -d conf$$.dir; then
27255 rm -f conf$$.dir/conf$$.file
27261 if ln -s conf$$.file conf$$ 2>/dev/null; then
27263 # ... but there are two gotchas:
27264 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27265 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27266 # In both cases, we have to default to `cp -p'.
27267 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27269 elif ln conf$$.file conf$$ 2>/dev/null; then
27274 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27275 rmdir conf$$.dir 2>/dev/null
27277 if mkdir -p . 2>/dev/null; then
27280 test -d ./-p && rmdir ./-p
27284 if test -x / >/dev/null 2>&1; then
27285 as_test_x='test -x'
27287 if ls -dL / >/dev/null 2>&1; then
27294 if test -d "$1"; then
27300 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27301 ???[sx]*):;;*)false;;esac;fi
27305 as_executable_p=$as_test_x
27307 # Sed expression to map a string onto a valid CPP name.
27308 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27310 # Sed expression to map a string onto a valid variable name.
27311 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27316 # Save the log message, to keep $[0] and so on meaningful, and to
27317 # report actual input values of CONFIG_FILES etc. instead of their
27318 # values after options handling.
27320 This file was extended by simgrid $as_me 3.3-cvs, which was
27321 generated by GNU Autoconf 2.61. Invocation command line was
27323 CONFIG_FILES = $CONFIG_FILES
27324 CONFIG_HEADERS = $CONFIG_HEADERS
27325 CONFIG_LINKS = $CONFIG_LINKS
27326 CONFIG_COMMANDS = $CONFIG_COMMANDS
27329 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27334 cat >>$CONFIG_STATUS <<_ACEOF
27335 # Files that config.status was made for.
27336 config_files="$ac_config_files"
27337 config_headers="$ac_config_headers"
27338 config_commands="$ac_config_commands"
27342 cat >>$CONFIG_STATUS <<\_ACEOF
27344 \`$as_me' instantiates files from templates according to the
27345 current configuration.
27347 Usage: $0 [OPTIONS] [FILE]...
27349 -h, --help print this help, then exit
27350 -V, --version print version number and configuration settings, then exit
27351 -q, --quiet do not print progress messages
27352 -d, --debug don't remove temporary files
27353 --recheck update $as_me by reconfiguring in the same conditions
27354 --file=FILE[:TEMPLATE]
27355 instantiate the configuration file FILE
27356 --header=FILE[:TEMPLATE]
27357 instantiate the configuration header FILE
27359 Configuration files:
27362 Configuration headers:
27365 Configuration commands:
27368 Report bugs to <bug-autoconf@gnu.org>."
27371 cat >>$CONFIG_STATUS <<_ACEOF
27373 simgrid config.status 3.3-cvs
27374 configured by $0, generated by GNU Autoconf 2.61,
27375 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27377 Copyright (C) 2006 Free Software Foundation, Inc.
27378 This config.status script is free software; the Free Software Foundation
27379 gives unlimited permission to copy, distribute and modify it."
27387 cat >>$CONFIG_STATUS <<\_ACEOF
27388 # If no file are specified by the user, then we need to provide default
27389 # value. By we need to know if files were specified by the user.
27395 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27396 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27407 # Handling of the options.
27408 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27410 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27411 echo "$ac_cs_version"; exit ;;
27412 --debug | --debu | --deb | --de | --d | -d )
27414 --file | --fil | --fi | --f )
27416 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27417 ac_need_defaults=false;;
27418 --header | --heade | --head | --hea )
27420 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27421 ac_need_defaults=false;;
27423 # Conflict between --help and --header
27424 { echo "$as_me: error: ambiguous option: $1
27425 Try \`$0 --help' for more information." >&2
27426 { (exit 1); exit 1; }; };;
27427 --help | --hel | -h )
27428 echo "$ac_cs_usage"; exit ;;
27429 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27430 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27433 # This is an error.
27434 -*) { echo "$as_me: error: unrecognized option: $1
27435 Try \`$0 --help' for more information." >&2
27436 { (exit 1); exit 1; }; } ;;
27438 *) ac_config_targets="$ac_config_targets $1"
27439 ac_need_defaults=false ;;
27445 ac_configure_extra_args=
27447 if $ac_cs_silent; then
27449 ac_configure_extra_args="$ac_configure_extra_args --silent"
27453 cat >>$CONFIG_STATUS <<_ACEOF
27454 if \$ac_cs_recheck; then
27455 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27456 CONFIG_SHELL=$SHELL
27457 export CONFIG_SHELL
27458 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27462 cat >>$CONFIG_STATUS <<\_ACEOF
27466 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27467 ## Running $as_me. ##
27473 cat >>$CONFIG_STATUS <<_ACEOF
27477 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27481 cat >>$CONFIG_STATUS <<\_ACEOF
27483 # Handling of arguments.
27484 for ac_config_target in $ac_config_targets
27486 case $ac_config_target in
27487 "src/gras_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/gras_config.h" ;;
27488 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27489 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27490 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
27491 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
27492 "src/ucontext_stack.h") CONFIG_FILES="$CONFIG_FILES src/ucontext_stack.h" ;;
27493 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
27494 "tools/gras/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gras/Makefile" ;;
27495 "tools/tesh/Makefile") CONFIG_FILES="$CONFIG_FILES tools/tesh/Makefile" ;;
27496 "tools/graspe-slave") CONFIG_FILES="$CONFIG_FILES tools/graspe-slave" ;;
27497 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
27498 "testsuite/run_tests") CONFIG_FILES="$CONFIG_FILES testsuite/run_tests" ;;
27499 "testsuite/gras/trp_tcp_usage") CONFIG_FILES="$CONFIG_FILES testsuite/gras/trp_tcp_usage" ;;
27500 "testsuite/gras/trp_file_usage") CONFIG_FILES="$CONFIG_FILES testsuite/gras/trp_file_usage" ;;
27501 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
27502 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
27503 "examples/java/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/Makefile" ;;
27504 "examples/java/basic/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/basic/Makefile" ;;
27505 "examples/java/comm_time/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/comm_time/Makefile" ;;
27506 "examples/java/suspend/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/suspend/Makefile" ;;
27507 "examples/java/ping_pong/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/ping_pong/Makefile" ;;
27508 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
27509 "examples/msg/Makefile") CONFIG_FILES="$CONFIG_FILES examples/msg/Makefile" ;;
27510 "examples/simdag/Makefile") CONFIG_FILES="$CONFIG_FILES examples/simdag/Makefile" ;;
27511 "examples/simdag/test_simdag") CONFIG_FILES="$CONFIG_FILES examples/simdag/test_simdag" ;;
27512 "examples/gras/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/Makefile" ;;
27513 "examples/gras/ping/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/ping/Makefile" ;;
27514 "examples/gras/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/rpc/Makefile" ;;
27515 "examples/gras/spawn/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/spawn/Makefile" ;;
27516 "examples/gras/synchro/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/synchro/Makefile" ;;
27517 "examples/gras/timer/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/timer/Makefile" ;;
27518 "examples/gras/chrono/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/chrono/Makefile" ;;
27519 "examples/gras/mutual_exclusion/simple_token/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/mutual_exclusion/simple_token/Makefile" ;;
27520 "examples/gras/mmrpc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/mmrpc/Makefile" ;;
27521 "examples/gras/pmm/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/pmm/Makefile" ;;
27522 "examples/gras/all2all/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/all2all/Makefile" ;;
27523 "examples/amok/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/Makefile" ;;
27524 "examples/amok/bandwidth/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/Makefile" ;;
27525 "examples/amok/bandwidth/test_sg") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/test_sg" ;;
27526 "examples/amok/bandwidth/test_rl") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/test_rl" ;;
27527 "examples/amok/saturate/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/Makefile" ;;
27528 "examples/amok/saturate/test_sg") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/test_sg" ;;
27529 "examples/amok/saturate/test_rl") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/test_rl" ;;
27531 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27532 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27533 { (exit 1); exit 1; }; };;
27538 # If the user did not use the arguments to specify the items to instantiate,
27539 # then the envvar interface is used. Set only those that are not.
27540 # We use the long form for the default assignment because of an extremely
27541 # bizarre bug on SunOS 4.1.3.
27542 if $ac_need_defaults; then
27543 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27544 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27545 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27548 # Have a temporary directory for convenience. Make it in the build tree
27549 # simply because there is no reason against having it here, and in addition,
27550 # creating and moving files from /tmp can sometimes cause problems.
27551 # Hook for its removal unless debugging.
27552 # Note that there is a small window in which the directory will not be cleaned:
27553 # after its creation but before its name has been assigned to `$tmp'.
27557 trap 'exit_status=$?
27558 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27560 trap '{ (exit 1); exit 1; }' 1 2 13 15
27562 # Create a (secure) tmp directory for tmp files.
27565 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27566 test -n "$tmp" && test -d "$tmp"
27569 tmp=./conf$$-$RANDOM
27570 (umask 077 && mkdir "$tmp")
27573 echo "$me: cannot create a temporary directory in ." >&2
27574 { (exit 1); exit 1; }
27578 # Set up the sed scripts for CONFIG_FILES section.
27581 # No need to generate the scripts if there are no CONFIG_FILES.
27582 # This happens for instance when ./config.status config.h
27583 if test -n "$CONFIG_FILES"; then
27590 for ac_last_try in false false false false false :; do
27591 cat >conf$$subs.sed <<_ACEOF
27592 SHELL!$SHELL$ac_delim
27593 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
27594 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
27595 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
27596 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
27597 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
27598 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
27599 exec_prefix!$exec_prefix$ac_delim
27600 prefix!$prefix$ac_delim
27601 program_transform_name!$program_transform_name$ac_delim
27602 bindir!$bindir$ac_delim
27603 sbindir!$sbindir$ac_delim
27604 libexecdir!$libexecdir$ac_delim
27605 datarootdir!$datarootdir$ac_delim
27606 datadir!$datadir$ac_delim
27607 sysconfdir!$sysconfdir$ac_delim
27608 sharedstatedir!$sharedstatedir$ac_delim
27609 localstatedir!$localstatedir$ac_delim
27610 includedir!$includedir$ac_delim
27611 oldincludedir!$oldincludedir$ac_delim
27612 docdir!$docdir$ac_delim
27613 infodir!$infodir$ac_delim
27614 htmldir!$htmldir$ac_delim
27615 dvidir!$dvidir$ac_delim
27616 pdfdir!$pdfdir$ac_delim
27617 psdir!$psdir$ac_delim
27618 libdir!$libdir$ac_delim
27619 localedir!$localedir$ac_delim
27620 mandir!$mandir$ac_delim
27621 DEFS!$DEFS$ac_delim
27622 ECHO_C!$ECHO_C$ac_delim
27623 ECHO_N!$ECHO_N$ac_delim
27624 ECHO_T!$ECHO_T$ac_delim
27625 LIBS!$LIBS$ac_delim
27626 build_alias!$build_alias$ac_delim
27627 host_alias!$host_alias$ac_delim
27628 target_alias!$target_alias$ac_delim
27629 build!$build$ac_delim
27630 build_cpu!$build_cpu$ac_delim
27631 build_vendor!$build_vendor$ac_delim
27632 build_os!$build_os$ac_delim
27633 host!$host$ac_delim
27634 host_cpu!$host_cpu$ac_delim
27635 host_vendor!$host_vendor$ac_delim
27636 host_os!$host_os$ac_delim
27637 target!$target$ac_delim
27638 target_cpu!$target_cpu$ac_delim
27639 target_vendor!$target_vendor$ac_delim
27640 target_os!$target_os$ac_delim
27642 GCJFLAGS!$GCJFLAGS$ac_delim
27643 am__leading_dot!$am__leading_dot$ac_delim
27644 DEPDIR!$DEPDIR$ac_delim
27645 am__include!$am__include$ac_delim
27646 am__quote!$am__quote$ac_delim
27647 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
27648 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
27649 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
27650 GCJDEPMODE!$GCJDEPMODE$ac_delim
27651 am__fastdepGCJ_TRUE!$am__fastdepGCJ_TRUE$ac_delim
27652 am__fastdepGCJ_FALSE!$am__fastdepGCJ_FALSE$ac_delim
27653 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
27654 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
27655 INSTALL_DATA!$INSTALL_DATA$ac_delim
27656 am__isrc!$am__isrc$ac_delim
27657 CYGPATH_W!$CYGPATH_W$ac_delim
27658 PACKAGE!$PACKAGE$ac_delim
27659 VERSION!$VERSION$ac_delim
27660 ACLOCAL!$ACLOCAL$ac_delim
27661 AUTOCONF!$AUTOCONF$ac_delim
27662 AUTOMAKE!$AUTOMAKE$ac_delim
27663 AUTOHEADER!$AUTOHEADER$ac_delim
27664 MAKEINFO!$MAKEINFO$ac_delim
27665 install_sh!$install_sh$ac_delim
27666 STRIP!$STRIP$ac_delim
27667 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
27668 mkdir_p!$mkdir_p$ac_delim
27670 SET_MAKE!$SET_MAKE$ac_delim
27671 AMTAR!$AMTAR$ac_delim
27672 am__tar!$am__tar$ac_delim
27673 am__untar!$am__untar$ac_delim
27675 CFLAGS!$CFLAGS$ac_delim
27676 LDFLAGS!$LDFLAGS$ac_delim
27677 CPPFLAGS!$CPPFLAGS$ac_delim
27678 ac_ct_CC!$ac_ct_CC$ac_delim
27679 EXEEXT!$EXEEXT$ac_delim
27680 OBJEXT!$OBJEXT$ac_delim
27681 CCDEPMODE!$CCDEPMODE$ac_delim
27682 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
27683 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
27684 GREP!$GREP$ac_delim
27685 EGREP!$EGREP$ac_delim
27686 LN_S!$LN_S$ac_delim
27687 ECHO!$ECHO$ac_delim
27691 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27693 elif $ac_last_try; then
27694 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27695 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27696 { (exit 1); exit 1; }; }
27698 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27702 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27703 if test -n "$ac_eof"; then
27704 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27705 ac_eof=`expr $ac_eof + 1`
27708 cat >>$CONFIG_STATUS <<_ACEOF
27709 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27710 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27713 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27714 s/^/s,@/; s/!/@,|#_!!_#|/
27717 s/'"$ac_delim"'$/,g/; t
27719 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27720 ' >>$CONFIG_STATUS <conf$$subs.sed
27721 rm -f conf$$subs.sed
27722 cat >>$CONFIG_STATUS <<_ACEOF
27728 for ac_last_try in false false false false false :; do
27729 cat >conf$$subs.sed <<_ACEOF
27730 RANLIB!$RANLIB$ac_delim
27731 DLLTOOL!$DLLTOOL$ac_delim
27733 OBJDUMP!$OBJDUMP$ac_delim
27736 CXXFLAGS!$CXXFLAGS$ac_delim
27737 ac_ct_CXX!$ac_ct_CXX$ac_delim
27738 CXXDEPMODE!$CXXDEPMODE$ac_delim
27739 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
27740 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
27741 CXXCPP!$CXXCPP$ac_delim
27742 LIBTOOL!$LIBTOOL$ac_delim
27743 LIBOBJS!$LIBOBJS$ac_delim
27744 GRAS_ARCH_32_BITS_TRUE!$GRAS_ARCH_32_BITS_TRUE$ac_delim
27745 GRAS_ARCH_32_BITS_FALSE!$GRAS_ARCH_32_BITS_FALSE$ac_delim
27746 CONTEXT_THREADS_TRUE!$CONTEXT_THREADS_TRUE$ac_delim
27747 CONTEXT_THREADS_FALSE!$CONTEXT_THREADS_FALSE$ac_delim
27748 PTH_STACK_GROWTH!$PTH_STACK_GROWTH$ac_delim
27749 pth_skaddr_makecontext!$pth_skaddr_makecontext$ac_delim
27750 pth_sksize_makecontext!$pth_sksize_makecontext$ac_delim
27751 HAVE_GTNETS_TRUE!$HAVE_GTNETS_TRUE$ac_delim
27752 HAVE_GTNETS_FALSE!$HAVE_GTNETS_FALSE$ac_delim
27753 HAVE_SDP_TRUE!$HAVE_SDP_TRUE$ac_delim
27754 HAVE_SDP_FALSE!$HAVE_SDP_FALSE$ac_delim
27755 SIMGRID_DEP!$SIMGRID_DEP$ac_delim
27756 GRAS_DEP!$GRAS_DEP$ac_delim
27757 GRAMINE_MODE_TRUE!$GRAMINE_MODE_TRUE$ac_delim
27758 GRAMINE_MODE_FALSE!$GRAMINE_MODE_FALSE$ac_delim
27759 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
27760 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
27761 MAINT!$MAINT$ac_delim
27762 LD_DYNAMIC_FLAGS!$LD_DYNAMIC_FLAGS$ac_delim
27763 AM_CPPFLAGS!$AM_CPPFLAGS$ac_delim
27764 abs_builddir!$abs_builddir$ac_delim
27765 abs_srcdir!$abs_srcdir$ac_delim
27766 abs_top_builddir!$abs_top_builddir$ac_delim
27767 abs_top_srcdir!$abs_top_srcdir$ac_delim
27768 JAVAC!$JAVAC$ac_delim
27769 JAVA!$JAVA$ac_delim
27771 HAVE_JAVA_TRUE!$HAVE_JAVA_TRUE$ac_delim
27772 HAVE_JAVA_FALSE!$HAVE_JAVA_FALSE$ac_delim
27773 BASH!$BASH$ac_delim
27774 WARNING!$WARNING$ac_delim
27776 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
27777 LEXLIB!$LEXLIB$ac_delim
27778 FLEXML!$FLEXML$ac_delim
27779 HAVE_FLEXML_TRUE!$HAVE_FLEXML_TRUE$ac_delim
27780 HAVE_FLEXML_FALSE!$HAVE_FLEXML_FALSE$ac_delim
27781 DOXYGEN!$DOXYGEN$ac_delim
27782 ADDR2LINE!$ADDR2LINE$ac_delim
27783 ac_configure_args!$ac_configure_args$ac_delim
27784 MD5SUM!$MD5SUM$ac_delim
27785 build_id!$build_id$ac_delim
27786 LTLIBOBJS!$LTLIBOBJS$ac_delim
27789 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 57; then
27791 elif $ac_last_try; then
27792 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27793 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27794 { (exit 1); exit 1; }; }
27796 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27800 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27801 if test -n "$ac_eof"; then
27802 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27803 ac_eof=`expr $ac_eof + 1`
27806 cat >>$CONFIG_STATUS <<_ACEOF
27807 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27808 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27811 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27812 s/^/s,@/; s/!/@,|#_!!_#|/
27815 s/'"$ac_delim"'$/,g/; t
27817 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27818 ' >>$CONFIG_STATUS <conf$$subs.sed
27819 rm -f conf$$subs.sed
27820 cat >>$CONFIG_STATUS <<_ACEOF
27827 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27828 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27829 # trailing colons and then remove the whole line if VPATH becomes empty
27830 # (actually we leave an empty line to preserve line numbers).
27831 if test "x$srcdir" = x.; then
27832 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27833 s/:*\$(srcdir):*/:/
27834 s/:*\${srcdir}:*/:/
27836 s/^\([^=]*=[ ]*\):*/\1/
27842 cat >>$CONFIG_STATUS <<\_ACEOF
27843 fi # test -n "$CONFIG_FILES"
27846 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
27849 :[FHLC]) ac_mode=$ac_tag; continue;;
27851 case $ac_mode$ac_tag in
27853 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27854 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27855 { (exit 1); exit 1; }; };;
27856 :[FH]-) ac_tag=-:-;;
27857 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27874 -) ac_f="$tmp/stdin";;
27875 *) # Look for the file first in the build tree, then in the source tree
27876 # (if the path is not absolute). The absolute path cannot be DOS-style,
27877 # because $ac_f cannot contain `:'.
27881 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27883 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27884 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27885 { (exit 1); exit 1; }; };;
27887 ac_file_inputs="$ac_file_inputs $ac_f"
27890 # Let's still pretend it is `configure' which instantiates (i.e., don't
27891 # use $as_me), people would be surprised to read:
27892 # /* config.h. Generated by config.status. */
27893 configure_input="Generated from "`IFS=:
27894 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27895 if test x"$ac_file" != x-; then
27896 configure_input="$ac_file. $configure_input"
27897 { echo "$as_me:$LINENO: creating $ac_file" >&5
27898 echo "$as_me: creating $ac_file" >&6;}
27902 *:-:* | *:-) cat >"$tmp/stdin";;
27907 ac_dir=`$as_dirname -- "$ac_file" ||
27908 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27909 X"$ac_file" : 'X\(//\)[^/]' \| \
27910 X"$ac_file" : 'X\(//\)$' \| \
27911 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27913 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27917 /^X\(\/\/\)[^/].*/{
27932 -*) as_dir=./$as_dir;;
27934 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27938 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27939 *) as_qdir=$as_dir;;
27941 as_dirs="'$as_qdir' $as_dirs"
27942 as_dir=`$as_dirname -- "$as_dir" ||
27943 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27944 X"$as_dir" : 'X\(//\)[^/]' \| \
27945 X"$as_dir" : 'X\(//\)$' \| \
27946 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27948 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27952 /^X\(\/\/\)[^/].*/{
27965 test -d "$as_dir" && break
27967 test -z "$as_dirs" || eval "mkdir $as_dirs"
27968 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27969 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27970 { (exit 1); exit 1; }; }; }
27974 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27976 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27977 # A ".." for each directory in $ac_dir_suffix.
27978 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27979 case $ac_top_builddir_sub in
27980 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27981 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27984 ac_abs_top_builddir=$ac_pwd
27985 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27986 # for backward compatibility:
27987 ac_top_builddir=$ac_top_build_prefix
27990 .) # We are building in place.
27992 ac_top_srcdir=$ac_top_builddir_sub
27993 ac_abs_top_srcdir=$ac_pwd ;;
27994 [\\/]* | ?:[\\/]* ) # Absolute name.
27995 ac_srcdir=$srcdir$ac_dir_suffix;
27996 ac_top_srcdir=$srcdir
27997 ac_abs_top_srcdir=$srcdir ;;
27998 *) # Relative name.
27999 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28000 ac_top_srcdir=$ac_top_build_prefix$srcdir
28001 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28003 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28013 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28014 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28016 ac_MKDIR_P=$MKDIR_P
28018 [\\/$]* | ?:[\\/]* ) ;;
28019 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28023 cat >>$CONFIG_STATUS <<\_ACEOF
28024 # If the template does not know about datarootdir, expand it.
28025 # FIXME: This hack should be removed a few years after 2.60.
28026 ac_datarootdir_hack=; ac_datarootdir_seen=
28028 case `sed -n '/datarootdir/ {
28037 ' $ac_file_inputs` in
28038 *datarootdir*) ac_datarootdir_seen=yes;;
28039 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28040 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28041 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28043 cat >>$CONFIG_STATUS <<_ACEOF
28044 ac_datarootdir_hack='
28045 s&@datadir@&$datadir&g
28046 s&@docdir@&$docdir&g
28047 s&@infodir@&$infodir&g
28048 s&@localedir@&$localedir&g
28049 s&@mandir@&$mandir&g
28050 s&\\\${datarootdir}&$datarootdir&g' ;;
28054 # Neutralize VPATH when `$srcdir' = `.'.
28055 # Shell code in configure.ac might set extrasub.
28056 # FIXME: do we really want to maintain this feature?
28057 cat >>$CONFIG_STATUS <<_ACEOF
28061 cat >>$CONFIG_STATUS <<\_ACEOF
28063 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28064 s&@configure_input@&$configure_input&;t t
28065 s&@top_builddir@&$ac_top_builddir_sub&;t t
28066 s&@srcdir@&$ac_srcdir&;t t
28067 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28068 s&@top_srcdir@&$ac_top_srcdir&;t t
28069 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28070 s&@builddir@&$ac_builddir&;t t
28071 s&@abs_builddir@&$ac_abs_builddir&;t t
28072 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28073 s&@INSTALL@&$ac_INSTALL&;t t
28074 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28075 $ac_datarootdir_hack
28076 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
28078 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28079 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28080 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28081 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28082 which seems to be undefined. Please make sure it is defined." >&5
28083 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28084 which seems to be undefined. Please make sure it is defined." >&2;}
28088 -) cat "$tmp/out"; rm -f "$tmp/out";;
28089 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
28098 # Transform confdefs.h into a sed script `conftest.defines', that
28099 # substitutes the proper values into config.h.in to produce config.h.
28100 rm -f conftest.defines conftest.tail
28101 # First, append a space to every undef/define line, to ease matching.
28102 echo 's/$/ /' >conftest.defines
28103 # Then, protect against being on the right side of a sed subst, or in
28104 # an unquoted here document, in config.status. If some macros were
28105 # called several times there might be several #defines for the same
28106 # symbol, which is useless. But do not sort them, since the last
28107 # AC_DEFINE must be honored.
28108 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28109 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
28110 # NAME is the cpp macro being defined, VALUE is the value it is being given.
28111 # PARAMS is the parameter list in the macro definition--in most cases, it's
28112 # just an empty string.
28113 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
28114 ac_dB='\\)[ (].*,\\1define\\2'
28122 s/^[ ]*#[ ]*define[ ][ ]*//
28127 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
28128 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
28129 ' >>conftest.defines
28131 # Remove the space that was appended to ease matching.
28132 # Then replace #undef with comments. This is necessary, for
28133 # example, in the case of _POSIX_SOURCE, which is predefined and required
28134 # on some systems where configure will not decide to define it.
28135 # (The regexp can be short, since the line contains either #define or #undef.)
28137 s,^[ #]*u.*,/* & */,' >>conftest.defines
28139 # Break up conftest.defines:
28140 ac_max_sed_lines=50
28142 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
28143 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
28144 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
28146 ac_in='$ac_file_inputs'
28147 ac_out='"$tmp/out1"'
28148 ac_nxt='"$tmp/out2"'
28152 # Write a here document:
28153 cat >>$CONFIG_STATUS <<_ACEOF
28154 # First, check the format of the line:
28155 cat >"\$tmp/defines.sed" <<\\CEOF
28156 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
28157 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
28161 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
28163 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
28164 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
28165 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
28166 grep . conftest.tail >/dev/null || break
28167 rm -f conftest.defines
28168 mv conftest.tail conftest.defines
28170 rm -f conftest.defines conftest.tail
28172 echo "ac_result=$ac_in" >>$CONFIG_STATUS
28173 cat >>$CONFIG_STATUS <<\_ACEOF
28174 if test x"$ac_file" != x-; then
28175 echo "/* $configure_input */" >"$tmp/config.h"
28176 cat "$ac_result" >>"$tmp/config.h"
28177 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
28178 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28179 echo "$as_me: $ac_file is unchanged" >&6;}
28182 mv "$tmp/config.h" $ac_file
28185 echo "/* $configure_input */"
28189 # Compute $ac_file's index in $config_headers.
28191 for _am_header in $config_headers :; do
28192 case $_am_header in
28193 $ac_file | $ac_file:* )
28196 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28199 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
28200 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28201 X$ac_file : 'X\(//\)[^/]' \| \
28202 X$ac_file : 'X\(//\)$' \| \
28203 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
28205 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28209 /^X\(\/\/\)[^/].*/{
28221 s/.*/./; q'`/stamp-h$_am_stamp_count
28224 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
28225 echo "$as_me: executing $ac_file commands" >&6;}
28230 case $ac_file$ac_mode in
28231 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
28232 # Strip MF so we end up with the name of the file.
28233 mf=`echo "$mf" | sed -e 's/:.*$//'`
28234 # Check whether this is an Automake generated Makefile or not.
28235 # We used to match only the files named `Makefile.in', but
28236 # some people rename them; so instead we look at the file content.
28237 # Grep'ing the first line is not enough: some people post-process
28238 # each Makefile.in and add a new line on top of each file to say so.
28239 # Grep'ing the whole file is not good either: AIX grep has a line
28240 # limit of 2048, but all sed's we know have understand at least 4000.
28241 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
28242 dirpart=`$as_dirname -- "$mf" ||
28243 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28244 X"$mf" : 'X\(//\)[^/]' \| \
28245 X"$mf" : 'X\(//\)$' \| \
28246 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28252 /^X\(\/\/\)[^/].*/{
28268 # Extract the definition of DEPDIR, am__include, and am__quote
28269 # from the Makefile without running `make'.
28270 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28271 test -z "$DEPDIR" && continue
28272 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28273 test -z "am__include" && continue
28274 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28275 # When using ansi2knr, U may be empty or an underscore; expand it
28276 U=`sed -n 's/^U = //p' < "$mf"`
28277 # Find all dependency output files, they are included files with
28278 # $(DEPDIR) in their names. We invoke sed twice because it is the
28279 # simplest approach to changing $(DEPDIR) to its actual value in the
28281 for file in `sed -n "
28282 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28283 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28284 # Make sure the directory exists.
28285 test -f "$dirpart/$file" && continue
28286 fdir=`$as_dirname -- "$file" ||
28287 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28288 X"$file" : 'X\(//\)[^/]' \| \
28289 X"$file" : 'X\(//\)$' \| \
28290 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28296 /^X\(\/\/\)[^/].*/{
28309 { as_dir=$dirpart/$fdir
28311 -*) as_dir=./$as_dir;;
28313 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
28317 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
28318 *) as_qdir=$as_dir;;
28320 as_dirs="'$as_qdir' $as_dirs"
28321 as_dir=`$as_dirname -- "$as_dir" ||
28322 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28323 X"$as_dir" : 'X\(//\)[^/]' \| \
28324 X"$as_dir" : 'X\(//\)$' \| \
28325 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28331 /^X\(\/\/\)[^/].*/{
28344 test -d "$as_dir" && break
28346 test -z "$as_dirs" || eval "mkdir $as_dirs"
28347 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28348 echo "$as_me: error: cannot create directory $as_dir" >&2;}
28349 { (exit 1); exit 1; }; }; }
28350 # echo "creating $dirpart/$file"
28351 echo '# dummy' > "$dirpart/$file"
28355 "tools/graspe-slave":F)
28357 tools/graspe-slave tools/graspe-master \
28359 test -e $file && chmod +x $file; \
28362 "testsuite/Makefile":F)
28364 testsuite/run_tests \
28365 testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
28367 test -e $file && chmod +x $file; \
28370 "testsuite/run_tests":F)
28372 testsuite/run_tests \
28373 testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
28375 test -e $file && chmod +x $file; \
28378 "testsuite/gras/trp_tcp_usage":F)
28380 testsuite/run_tests \
28381 testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
28383 test -e $file && chmod +x $file; \
28386 "testsuite/gras/trp_file_usage":F)
28388 testsuite/run_tests \
28389 testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
28391 test -e $file && chmod +x $file; \
28394 "examples/Makefile":F)
28397 examples/simdag/test_simdag \
28398 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28399 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28401 test -e $file && chmod +x $file; \
28404 "examples/msg/Makefile":F)
28407 examples/simdag/test_simdag \
28408 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28409 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28411 test -e $file && chmod +x $file; \
28414 "examples/simdag/Makefile":F)
28417 examples/simdag/test_simdag \
28418 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28419 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28421 test -e $file && chmod +x $file; \
28424 "examples/simdag/test_simdag":F)
28427 examples/simdag/test_simdag \
28428 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28429 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28431 test -e $file && chmod +x $file; \
28434 "examples/gras/Makefile":F)
28437 examples/simdag/test_simdag \
28438 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28439 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28441 test -e $file && chmod +x $file; \
28444 "examples/gras/ping/Makefile":F)
28447 examples/simdag/test_simdag \
28448 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28449 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28451 test -e $file && chmod +x $file; \
28454 "examples/gras/rpc/Makefile":F)
28457 examples/simdag/test_simdag \
28458 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28459 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28461 test -e $file && chmod +x $file; \
28464 "examples/gras/spawn/Makefile":F)
28467 examples/simdag/test_simdag \
28468 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28469 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28471 test -e $file && chmod +x $file; \
28474 "examples/gras/synchro/Makefile":F)
28477 examples/simdag/test_simdag \
28478 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28479 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28481 test -e $file && chmod +x $file; \
28484 "examples/gras/timer/Makefile":F)
28487 examples/simdag/test_simdag \
28488 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28489 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28491 test -e $file && chmod +x $file; \
28494 "examples/gras/chrono/Makefile":F)
28497 examples/simdag/test_simdag \
28498 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28499 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28501 test -e $file && chmod +x $file; \
28504 "examples/gras/mutual_exclusion/simple_token/Makefile":F)
28507 examples/simdag/test_simdag \
28508 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28509 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28511 test -e $file && chmod +x $file; \
28514 "examples/gras/mmrpc/Makefile":F)
28517 examples/simdag/test_simdag \
28518 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28519 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28521 test -e $file && chmod +x $file; \
28524 "examples/gras/pmm/Makefile":F)
28527 examples/simdag/test_simdag \
28528 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28529 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28531 test -e $file && chmod +x $file; \
28534 "examples/gras/all2all/Makefile":F)
28537 examples/simdag/test_simdag \
28538 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28539 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28541 test -e $file && chmod +x $file; \
28544 "examples/amok/Makefile":F)
28547 examples/simdag/test_simdag \
28548 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28549 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28551 test -e $file && chmod +x $file; \
28554 "examples/amok/bandwidth/Makefile":F)
28557 examples/simdag/test_simdag \
28558 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28559 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28561 test -e $file && chmod +x $file; \
28564 "examples/amok/bandwidth/test_sg":F)
28567 examples/simdag/test_simdag \
28568 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28569 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28571 test -e $file && chmod +x $file; \
28574 "examples/amok/bandwidth/test_rl":F)
28577 examples/simdag/test_simdag \
28578 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28579 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28581 test -e $file && chmod +x $file; \
28584 "examples/amok/saturate/Makefile":F)
28587 examples/simdag/test_simdag \
28588 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28589 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28591 test -e $file && chmod +x $file; \
28594 "examples/amok/saturate/test_sg":F)
28597 examples/simdag/test_simdag \
28598 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28599 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28601 test -e $file && chmod +x $file; \
28604 "examples/amok/saturate/test_rl":F)
28607 examples/simdag/test_simdag \
28608 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28609 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28611 test -e $file && chmod +x $file; \
28619 { (exit 0); exit 0; }
28621 chmod +x $CONFIG_STATUS
28622 ac_clean_files=$ac_clean_files_save
28625 # configure is writing to config.log, and then calls config.status.
28626 # config.status does its own redirection, appending to config.log.
28627 # Unfortunately, on DOS this fails, as config.log is still kept open
28628 # by configure, so config.status won't be able to write to it; its
28629 # output is simply discarded. So we exec the FD to /dev/null,
28630 # effectively closing config.log, so it can be properly (re)opened and
28631 # appended to by config.status. When coming back to configure, we
28632 # need to make the FD available again.
28633 if test "$no_create" != yes; then
28635 ac_config_status_args=
28636 test "$silent" = yes &&
28637 ac_config_status_args="$ac_config_status_args --quiet"
28639 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28641 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28642 # would make configure fail if this is the last instruction.
28643 $ac_cs_success || { (exit 1); exit 1; }
28649 Configuration of package \`${PACKAGE}' (version ${VERSION}) on $gras_arch_name (=$gras_arch):
28651 Compiler: ${CC} (version: ${GCC_VERSION})
28654 CPPFlags: ${CPPFLAGS}
28655 LDFlags: ${LDFLAGS}
28657 Context backend: ${with_context}
28660 if test -e CVS && test x$USE_MAINTAINER_MODE != xyes ; then
28662 echo "WARNING: you seem to compile the CVS version without the maintainer mode."
28663 echo "WARNING: You won't be able to build archives that way (make dist is likely to fail). "
28664 echo "WARNING: If you want to enable the maintainer mode, juste specify it like this:"
28666 echo "WARNING: ./configure '--enable-maintainer-mode' $ac_configure_args"
28669 echo $build_id > stamp.configure