2 # From configure.ac Revision: 1.182 .
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
891 CONTEXT_THREADS_FALSE
893 pth_skaddr_makecontext
894 pth_sksize_makecontext
905 MAINTAINER_MODE_FALSE
933 ac_precious_vars='build_alias
948 # Initialize some variables set by options.
950 ac_init_version=false
951 # The variables have the same names as the options, with
952 # dashes changed to underlines.
960 program_transform_name=s,x,x,
968 # Installation directory options.
969 # These are left unexpanded so users can "make install exec_prefix=/foo"
970 # and all the variables that are supposed to be based on exec_prefix
971 # by default will actually change.
972 # Use braces instead of parens because sh, perl, etc. also accept them.
973 # (The list follows the same order as the GNU Coding Standards.)
974 bindir='${exec_prefix}/bin'
975 sbindir='${exec_prefix}/sbin'
976 libexecdir='${exec_prefix}/libexec'
977 datarootdir='${prefix}/share'
978 datadir='${datarootdir}'
979 sysconfdir='${prefix}/etc'
980 sharedstatedir='${prefix}/com'
981 localstatedir='${prefix}/var'
982 includedir='${prefix}/include'
983 oldincludedir='/usr/include'
984 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
985 infodir='${datarootdir}/info'
990 libdir='${exec_prefix}/lib'
991 localedir='${datarootdir}/locale'
992 mandir='${datarootdir}/man'
998 # If the previous option needs an argument, assign it.
999 if test -n "$ac_prev"; then
1000 eval $ac_prev=\$ac_option
1006 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1010 # Accept the important Cygnus configure options, so we can diagnose typos.
1012 case $ac_dashdash$ac_option in
1016 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1018 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1019 bindir=$ac_optarg ;;
1021 -build | --build | --buil | --bui | --bu)
1022 ac_prev=build_alias ;;
1023 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1024 build_alias=$ac_optarg ;;
1026 -cache-file | --cache-file | --cache-fil | --cache-fi \
1027 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1028 ac_prev=cache_file ;;
1029 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1030 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1031 cache_file=$ac_optarg ;;
1033 --config-cache | -C)
1034 cache_file=config.cache ;;
1036 -datadir | --datadir | --datadi | --datad)
1038 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1039 datadir=$ac_optarg ;;
1041 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1042 | --dataroo | --dataro | --datar)
1043 ac_prev=datarootdir ;;
1044 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1045 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1046 datarootdir=$ac_optarg ;;
1048 -disable-* | --disable-*)
1049 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1050 # Reject names that are not valid shell variable names.
1051 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1052 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1053 { (exit 1); exit 1; }; }
1054 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1055 eval enable_$ac_feature=no ;;
1057 -docdir | --docdir | --docdi | --doc | --do)
1059 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1060 docdir=$ac_optarg ;;
1062 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1064 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1065 dvidir=$ac_optarg ;;
1067 -enable-* | --enable-*)
1068 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1071 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1072 { (exit 1); exit 1; }; }
1073 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1074 eval enable_$ac_feature=\$ac_optarg ;;
1076 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1077 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1078 | --exec | --exe | --ex)
1079 ac_prev=exec_prefix ;;
1080 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1081 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1082 | --exec=* | --exe=* | --ex=*)
1083 exec_prefix=$ac_optarg ;;
1085 -gas | --gas | --ga | --g)
1086 # Obsolete; use --with-gas.
1089 -help | --help | --hel | --he | -h)
1090 ac_init_help=long ;;
1091 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1092 ac_init_help=recursive ;;
1093 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1094 ac_init_help=short ;;
1096 -host | --host | --hos | --ho)
1097 ac_prev=host_alias ;;
1098 -host=* | --host=* | --hos=* | --ho=*)
1099 host_alias=$ac_optarg ;;
1101 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1103 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1105 htmldir=$ac_optarg ;;
1107 -includedir | --includedir | --includedi | --included | --include \
1108 | --includ | --inclu | --incl | --inc)
1109 ac_prev=includedir ;;
1110 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1111 | --includ=* | --inclu=* | --incl=* | --inc=*)
1112 includedir=$ac_optarg ;;
1114 -infodir | --infodir | --infodi | --infod | --info | --inf)
1116 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1117 infodir=$ac_optarg ;;
1119 -libdir | --libdir | --libdi | --libd)
1121 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1122 libdir=$ac_optarg ;;
1124 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1125 | --libexe | --libex | --libe)
1126 ac_prev=libexecdir ;;
1127 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1128 | --libexe=* | --libex=* | --libe=*)
1129 libexecdir=$ac_optarg ;;
1131 -localedir | --localedir | --localedi | --localed | --locale)
1132 ac_prev=localedir ;;
1133 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1134 localedir=$ac_optarg ;;
1136 -localstatedir | --localstatedir | --localstatedi | --localstated \
1137 | --localstate | --localstat | --localsta | --localst | --locals)
1138 ac_prev=localstatedir ;;
1139 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1140 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1141 localstatedir=$ac_optarg ;;
1143 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1145 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1146 mandir=$ac_optarg ;;
1148 -nfp | --nfp | --nf)
1149 # Obsolete; use --without-fp.
1152 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1153 | --no-cr | --no-c | -n)
1156 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1157 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1160 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1161 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1162 | --oldin | --oldi | --old | --ol | --o)
1163 ac_prev=oldincludedir ;;
1164 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1165 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1166 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1167 oldincludedir=$ac_optarg ;;
1169 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1171 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1172 prefix=$ac_optarg ;;
1174 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1175 | --program-pre | --program-pr | --program-p)
1176 ac_prev=program_prefix ;;
1177 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1178 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1179 program_prefix=$ac_optarg ;;
1181 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1182 | --program-suf | --program-su | --program-s)
1183 ac_prev=program_suffix ;;
1184 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1185 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1186 program_suffix=$ac_optarg ;;
1188 -program-transform-name | --program-transform-name \
1189 | --program-transform-nam | --program-transform-na \
1190 | --program-transform-n | --program-transform- \
1191 | --program-transform | --program-transfor \
1192 | --program-transfo | --program-transf \
1193 | --program-trans | --program-tran \
1194 | --progr-tra | --program-tr | --program-t)
1195 ac_prev=program_transform_name ;;
1196 -program-transform-name=* | --program-transform-name=* \
1197 | --program-transform-nam=* | --program-transform-na=* \
1198 | --program-transform-n=* | --program-transform-=* \
1199 | --program-transform=* | --program-transfor=* \
1200 | --program-transfo=* | --program-transf=* \
1201 | --program-trans=* | --program-tran=* \
1202 | --progr-tra=* | --program-tr=* | --program-t=*)
1203 program_transform_name=$ac_optarg ;;
1205 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1207 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1208 pdfdir=$ac_optarg ;;
1210 -psdir | --psdir | --psdi | --psd | --ps)
1212 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1215 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1216 | -silent | --silent | --silen | --sile | --sil)
1219 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1221 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1223 sbindir=$ac_optarg ;;
1225 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1226 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1227 | --sharedst | --shareds | --shared | --share | --shar \
1229 ac_prev=sharedstatedir ;;
1230 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1231 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1232 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1234 sharedstatedir=$ac_optarg ;;
1236 -site | --site | --sit)
1238 -site=* | --site=* | --sit=*)
1241 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1243 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1244 srcdir=$ac_optarg ;;
1246 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1247 | --syscon | --sysco | --sysc | --sys | --sy)
1248 ac_prev=sysconfdir ;;
1249 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1250 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1251 sysconfdir=$ac_optarg ;;
1253 -target | --target | --targe | --targ | --tar | --ta | --t)
1254 ac_prev=target_alias ;;
1255 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1256 target_alias=$ac_optarg ;;
1258 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1261 -version | --version | --versio | --versi | --vers | -V)
1262 ac_init_version=: ;;
1265 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1266 # Reject names that are not valid shell variable names.
1267 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1268 { echo "$as_me: error: invalid package name: $ac_package" >&2
1269 { (exit 1); exit 1; }; }
1270 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1271 eval with_$ac_package=\$ac_optarg ;;
1273 -without-* | --without-*)
1274 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1275 # Reject names that are not valid shell variable names.
1276 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1277 { echo "$as_me: error: invalid package name: $ac_package" >&2
1278 { (exit 1); exit 1; }; }
1279 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1280 eval with_$ac_package=no ;;
1283 # Obsolete; use --with-x.
1286 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1287 | --x-incl | --x-inc | --x-in | --x-i)
1288 ac_prev=x_includes ;;
1289 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1290 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1291 x_includes=$ac_optarg ;;
1293 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1294 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1295 ac_prev=x_libraries ;;
1296 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1297 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1298 x_libraries=$ac_optarg ;;
1300 -*) { echo "$as_me: error: unrecognized option: $ac_option
1301 Try \`$0 --help' for more information." >&2
1302 { (exit 1); exit 1; }; }
1306 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1307 # Reject names that are not valid shell variable names.
1308 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1309 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1310 { (exit 1); exit 1; }; }
1311 eval $ac_envvar=\$ac_optarg
1312 export $ac_envvar ;;
1315 # FIXME: should be removed in autoconf 3.0.
1316 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1317 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1318 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1319 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1325 if test -n "$ac_prev"; then
1326 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1327 { echo "$as_me: error: missing argument to $ac_option" >&2
1328 { (exit 1); exit 1; }; }
1331 # Be sure to have absolute directory names.
1332 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1333 datadir sysconfdir sharedstatedir localstatedir includedir \
1334 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1335 libdir localedir mandir
1337 eval ac_val=\$$ac_var
1339 [\\/$]* | ?:[\\/]* ) continue;;
1340 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1342 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1343 { (exit 1); exit 1; }; }
1346 # There might be people who depend on the old broken behavior: `$host'
1347 # used to hold the argument of --host etc.
1348 # FIXME: To remove some day.
1351 target=$target_alias
1353 # FIXME: To remove some day.
1354 if test "x$host_alias" != x; then
1355 if test "x$build_alias" = x; then
1356 cross_compiling=maybe
1357 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1358 If a cross compiler is detected then cross compile mode will be used." >&2
1359 elif test "x$build_alias" != "x$host_alias"; then
1365 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1367 test "$silent" = yes && exec 6>/dev/null
1370 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1371 ac_ls_di=`ls -di .` &&
1372 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1373 { echo "$as_me: error: Working directory cannot be determined" >&2
1374 { (exit 1); exit 1; }; }
1375 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1376 { echo "$as_me: error: pwd does not report name of working directory" >&2
1377 { (exit 1); exit 1; }; }
1380 # Find the source files, if location was not specified.
1381 if test -z "$srcdir"; then
1382 ac_srcdir_defaulted=yes
1383 # Try the directory containing this script, then the parent directory.
1384 ac_confdir=`$as_dirname -- "$0" ||
1385 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1386 X"$0" : 'X\(//\)[^/]' \| \
1387 X"$0" : 'X\(//\)$' \| \
1388 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1408 if test ! -r "$srcdir/$ac_unique_file"; then
1412 ac_srcdir_defaulted=no
1414 if test ! -r "$srcdir/$ac_unique_file"; then
1415 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1416 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1417 { (exit 1); exit 1; }; }
1419 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1421 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1422 { (exit 1); exit 1; }; }
1424 # When building in place, set srcdir=.
1425 if test "$ac_abs_confdir" = "$ac_pwd"; then
1428 # Remove unnecessary trailing slashes from srcdir.
1429 # Double slashes in file names in object file debugging info
1430 # mess up M-x gdb in Emacs.
1432 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1434 for ac_var in $ac_precious_vars; do
1435 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1436 eval ac_env_${ac_var}_value=\$${ac_var}
1437 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1438 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1442 # Report the --help message.
1444 if test "$ac_init_help" = "long"; then
1445 # Omit some internal or obsolete options to make the list less imposing.
1446 # This message is too long to be a string in the A/UX 3.1 sh.
1448 \`configure' configures simgrid 3.3-cvs to adapt to many kinds of systems.
1450 Usage: $0 [OPTION]... [VAR=VALUE]...
1452 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1453 VAR=VALUE. See below for descriptions of some of the useful variables.
1455 Defaults for the options are specified in brackets.
1458 -h, --help display this help and exit
1459 --help=short display options specific to this package
1460 --help=recursive display the short help of all the included packages
1461 -V, --version display version information and exit
1462 -q, --quiet, --silent do not print \`checking...' messages
1463 --cache-file=FILE cache test results in FILE [disabled]
1464 -C, --config-cache alias for \`--cache-file=config.cache'
1465 -n, --no-create do not create output files
1466 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1468 Installation directories:
1469 --prefix=PREFIX install architecture-independent files in PREFIX
1470 [$ac_default_prefix]
1471 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1474 By default, \`make install' will install all the files in
1475 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1476 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1477 for instance \`--prefix=\$HOME'.
1479 For better control, use the options below.
1481 Fine tuning of the installation directories:
1482 --bindir=DIR user executables [EPREFIX/bin]
1483 --sbindir=DIR system admin executables [EPREFIX/sbin]
1484 --libexecdir=DIR program executables [EPREFIX/libexec]
1485 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1486 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1487 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1488 --libdir=DIR object code libraries [EPREFIX/lib]
1489 --includedir=DIR C header files [PREFIX/include]
1490 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1491 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1492 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1493 --infodir=DIR info documentation [DATAROOTDIR/info]
1494 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1495 --mandir=DIR man documentation [DATAROOTDIR/man]
1496 --docdir=DIR documentation root [DATAROOTDIR/doc/simgrid]
1497 --htmldir=DIR html documentation [DOCDIR]
1498 --dvidir=DIR dvi documentation [DOCDIR]
1499 --pdfdir=DIR pdf documentation [DOCDIR]
1500 --psdir=DIR ps documentation [DOCDIR]
1506 --program-prefix=PREFIX prepend PREFIX to installed program names
1507 --program-suffix=SUFFIX append SUFFIX to installed program names
1508 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1511 --build=BUILD configure for building on BUILD [guessed]
1512 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1513 --target=TARGET configure for building compilers for TARGET [HOST]
1517 if test -n "$ac_init_help"; then
1518 case $ac_init_help in
1519 short | recursive ) echo "Configuration of simgrid 3.3-cvs:";;
1524 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1525 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1526 --disable-dependency-tracking speeds up one-time build
1527 --enable-dependency-tracking do not reject slow dependency extractors
1528 --enable-shared[=PKGS] build shared libraries [default=yes]
1529 --enable-static[=PKGS] build static libraries [default=yes]
1530 --enable-fast-install[=PKGS]
1531 optimize for fast installation [default=yes]
1532 --disable-libtool-lock avoid locking (might break parallel builds)
1533 --enable-maintainer-mode enable make rules and dependencies not useful
1534 (and sometimes confusing) to the casual installer
1535 --enable-compile-warnings
1536 use compiler warnings (default=no, unless in
1538 --disable-compile-optimizations
1539 use compiler optimizations (default=yes, unless if
1540 CFLAGS is explicitly set)
1541 --disable-java To not compile the Java bindings even if the tools
1545 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1546 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1547 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1548 --with-pic try to use only PIC/non-PIC objects [default=use
1550 --with-tags[=TAGS] include additional configurations [automatic]
1551 --with-pthread Use pthread instead of ucontext.
1552 --with-pthreads Use pthread instead of ucontext.
1553 --with-context=ucontext/pthread Use either (System V) swapcontext or pthread [default=auto].
1554 --with-gtnets Path to GTNetS installation (default to empty, ie
1556 --with-csdp Path to csdp installation (default to empty, i.e.
1559 Some influential environment variables:
1560 CC C compiler command
1561 CFLAGS C compiler flags
1562 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1563 nonstandard directory <lib dir>
1564 LIBS libraries to pass to the linker, e.g. -l<library>
1565 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1566 you have headers in a nonstandard directory <include dir>
1568 CXX C++ compiler command
1569 CXXFLAGS C++ compiler flags
1570 CXXCPP C++ preprocessor
1572 Use these variables to override the choices made by `configure' or to help
1573 it to find libraries and programs with nonstandard names/locations.
1575 Report bugs to <simgrid-devel@lists.gforge.inria.fr>.
1580 if test "$ac_init_help" = "recursive"; then
1581 # If there are subdirs, report their specific --help.
1582 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1583 test -d "$ac_dir" || continue
1587 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1589 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1590 # A ".." for each directory in $ac_dir_suffix.
1591 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1592 case $ac_top_builddir_sub in
1593 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1594 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1597 ac_abs_top_builddir=$ac_pwd
1598 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1599 # for backward compatibility:
1600 ac_top_builddir=$ac_top_build_prefix
1603 .) # We are building in place.
1605 ac_top_srcdir=$ac_top_builddir_sub
1606 ac_abs_top_srcdir=$ac_pwd ;;
1607 [\\/]* | ?:[\\/]* ) # Absolute name.
1608 ac_srcdir=$srcdir$ac_dir_suffix;
1609 ac_top_srcdir=$srcdir
1610 ac_abs_top_srcdir=$srcdir ;;
1612 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1613 ac_top_srcdir=$ac_top_build_prefix$srcdir
1614 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1616 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1618 cd "$ac_dir" || { ac_status=$?; continue; }
1619 # Check for guested configure.
1620 if test -f "$ac_srcdir/configure.gnu"; then
1622 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1623 elif test -f "$ac_srcdir/configure"; then
1625 $SHELL "$ac_srcdir/configure" --help=recursive
1627 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1629 cd "$ac_pwd" || { ac_status=$?; break; }
1633 test -n "$ac_init_help" && exit $ac_status
1634 if $ac_init_version; then
1636 simgrid configure 3.3-cvs
1637 generated by GNU Autoconf 2.61
1639 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1640 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1641 This configure script is free software; the Free Software Foundation
1642 gives unlimited permission to copy, distribute and modify it.
1646 cat >config.log <<_ACEOF
1647 This file contains any messages produced by compilers while
1648 running configure, to aid debugging if configure makes a mistake.
1650 It was created by simgrid $as_me 3.3-cvs, which was
1651 generated by GNU Autoconf 2.61. Invocation command line was
1663 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1664 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1665 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1666 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1667 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1669 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1670 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1672 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1673 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1674 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1675 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1676 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1677 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1678 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1686 test -z "$as_dir" && as_dir=.
1687 echo "PATH: $as_dir"
1703 # Keep a trace of the command line.
1704 # Strip out --no-create and --no-recursion so they do not pile up.
1705 # Strip out --silent because we don't want to record it for future runs.
1706 # Also quote any args containing shell meta-characters.
1707 # Make two passes to allow for proper duplicate-argument suppression.
1711 ac_must_keep_next=false
1717 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1718 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1719 | -silent | --silent | --silen | --sile | --sil)
1722 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1725 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1727 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1728 if test $ac_must_keep_next = true; then
1729 ac_must_keep_next=false # Got value, back to normal.
1732 *=* | --config-cache | -C | -disable-* | --disable-* \
1733 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1734 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1735 | -with-* | --with-* | -without-* | --without-* | --x)
1736 case "$ac_configure_args0 " in
1737 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1740 -* ) ac_must_keep_next=true ;;
1743 ac_configure_args="$ac_configure_args '$ac_arg'"
1748 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1749 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1751 # When interrupted or exit'd, cleanup temporary files, and complete
1752 # config.log. We remove comments because anyway the quotes in there
1753 # would cause problems or look ugly.
1754 # WARNING: Use '\'' to represent an apostrophe within the trap.
1755 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1756 trap 'exit_status=$?
1757 # Save into config.log some information that might help in debugging.
1762 ## ---------------- ##
1763 ## Cache variables. ##
1764 ## ---------------- ##
1767 # The following way of writing the cache mishandles newlines in values,
1769 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1770 eval ac_val=\$$ac_var
1774 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1775 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1778 _ | IFS | as_nl) ;; #(
1779 *) $as_unset $ac_var ;;
1784 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1785 *${as_nl}ac_space=\ *)
1787 "s/'\''/'\''\\\\'\'''\''/g;
1788 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1791 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1799 ## ----------------- ##
1800 ## Output variables. ##
1801 ## ----------------- ##
1804 for ac_var in $ac_subst_vars
1806 eval ac_val=\$$ac_var
1808 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1810 echo "$ac_var='\''$ac_val'\''"
1814 if test -n "$ac_subst_files"; then
1816 ## ------------------- ##
1817 ## File substitutions. ##
1818 ## ------------------- ##
1821 for ac_var in $ac_subst_files
1823 eval ac_val=\$$ac_var
1825 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1827 echo "$ac_var='\''$ac_val'\''"
1832 if test -s confdefs.h; then
1842 test "$ac_signal" != 0 &&
1843 echo "$as_me: caught signal $ac_signal"
1844 echo "$as_me: exit $exit_status"
1846 rm -f core *.core core.conftest.* &&
1847 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1850 for ac_signal in 1 2 13 15; do
1851 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1855 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1856 rm -f -r conftest* confdefs.h
1858 # Predefined preprocessor variables.
1860 cat >>confdefs.h <<_ACEOF
1861 #define PACKAGE_NAME "$PACKAGE_NAME"
1865 cat >>confdefs.h <<_ACEOF
1866 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1870 cat >>confdefs.h <<_ACEOF
1871 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1875 cat >>confdefs.h <<_ACEOF
1876 #define PACKAGE_STRING "$PACKAGE_STRING"
1880 cat >>confdefs.h <<_ACEOF
1881 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1885 # Let the site file select an alternate cache file if it wants to.
1886 # Prefer explicitly selected file to automatically selected ones.
1887 if test -n "$CONFIG_SITE"; then
1888 set x "$CONFIG_SITE"
1889 elif test "x$prefix" != xNONE; then
1890 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1892 set x "$ac_default_prefix/share/config.site" \
1893 "$ac_default_prefix/etc/config.site"
1898 if test -r "$ac_site_file"; then
1899 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1900 echo "$as_me: loading site script $ac_site_file" >&6;}
1901 sed 's/^/| /' "$ac_site_file" >&5
1906 if test -r "$cache_file"; then
1907 # Some versions of bash will fail to source /dev/null (special
1908 # files actually), so we avoid doing that.
1909 if test -f "$cache_file"; then
1910 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1911 echo "$as_me: loading cache $cache_file" >&6;}
1913 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1914 *) . "./$cache_file";;
1918 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1919 echo "$as_me: creating cache $cache_file" >&6;}
1923 # Check that the precious variables saved in the cache have kept the same
1925 ac_cache_corrupted=false
1926 for ac_var in $ac_precious_vars; do
1927 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1928 eval ac_new_set=\$ac_env_${ac_var}_set
1929 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1930 eval ac_new_val=\$ac_env_${ac_var}_value
1931 case $ac_old_set,$ac_new_set in
1933 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1934 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1935 ac_cache_corrupted=: ;;
1937 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1938 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1939 ac_cache_corrupted=: ;;
1942 if test "x$ac_old_val" != "x$ac_new_val"; then
1943 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1944 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1945 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1946 echo "$as_me: former value: $ac_old_val" >&2;}
1947 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1948 echo "$as_me: current value: $ac_new_val" >&2;}
1949 ac_cache_corrupted=:
1952 # Pass precious variables to config.status.
1953 if test "$ac_new_set" = set; then
1955 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1956 *) ac_arg=$ac_var=$ac_new_val ;;
1958 case " $ac_configure_args " in
1959 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1960 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1964 if $ac_cache_corrupted; then
1965 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1966 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1967 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1968 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1969 { (exit 1); exit 1; }; }
1997 ac_cpp='$CPP $CPPFLAGS'
1998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2004 ac_config_headers="$ac_config_headers src/gras_config.h"
2006 # A CI_PREREQ(2003.01.16) # We need a recent ACI when having sub-modules
2010 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2011 if test -f "$ac_dir/install-sh"; then
2013 ac_install_sh="$ac_aux_dir/install-sh -c"
2015 elif test -f "$ac_dir/install.sh"; then
2017 ac_install_sh="$ac_aux_dir/install.sh -c"
2019 elif test -f "$ac_dir/shtool"; then
2021 ac_install_sh="$ac_aux_dir/shtool install -c"
2025 if test -z "$ac_aux_dir"; then
2026 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2027 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2028 { (exit 1); exit 1; }; }
2031 # These three variables are undocumented and unsupported,
2032 # and are intended to be withdrawn in a future Autoconf release.
2033 # They can cause serious problems if a builder's source tree is in a directory
2034 # whose full name contains unusual characters.
2035 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2036 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2037 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2040 # Make sure we can run config.sub.
2041 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2042 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2043 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2044 { (exit 1); exit 1; }; }
2046 { echo "$as_me:$LINENO: checking build system type" >&5
2047 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2048 if test "${ac_cv_build+set}" = set; then
2049 echo $ECHO_N "(cached) $ECHO_C" >&6
2051 ac_build_alias=$build_alias
2052 test "x$ac_build_alias" = x &&
2053 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2054 test "x$ac_build_alias" = x &&
2055 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2056 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2057 { (exit 1); exit 1; }; }
2058 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2059 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2060 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2061 { (exit 1); exit 1; }; }
2064 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2065 echo "${ECHO_T}$ac_cv_build" >&6; }
2066 case $ac_cv_build in
2068 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2069 echo "$as_me: error: invalid value of canonical build" >&2;}
2070 { (exit 1); exit 1; }; };;
2073 ac_save_IFS=$IFS; IFS='-'
2079 # Remember, the first character of IFS is used to create $*,
2080 # except with old shells:
2083 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2086 { echo "$as_me:$LINENO: checking host system type" >&5
2087 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2088 if test "${ac_cv_host+set}" = set; then
2089 echo $ECHO_N "(cached) $ECHO_C" >&6
2091 if test "x$host_alias" = x; then
2092 ac_cv_host=$ac_cv_build
2094 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2095 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2096 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2097 { (exit 1); exit 1; }; }
2101 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2102 echo "${ECHO_T}$ac_cv_host" >&6; }
2105 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2106 echo "$as_me: error: invalid value of canonical host" >&2;}
2107 { (exit 1); exit 1; }; };;
2110 ac_save_IFS=$IFS; IFS='-'
2116 # Remember, the first character of IFS is used to create $*,
2117 # except with old shells:
2120 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2123 { echo "$as_me:$LINENO: checking target system type" >&5
2124 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2125 if test "${ac_cv_target+set}" = set; then
2126 echo $ECHO_N "(cached) $ECHO_C" >&6
2128 if test "x$target_alias" = x; then
2129 ac_cv_target=$ac_cv_host
2131 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2132 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2133 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2134 { (exit 1); exit 1; }; }
2138 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2139 echo "${ECHO_T}$ac_cv_target" >&6; }
2140 case $ac_cv_target in
2142 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2143 echo "$as_me: error: invalid value of canonical target" >&2;}
2144 { (exit 1); exit 1; }; };;
2146 target=$ac_cv_target
2147 ac_save_IFS=$IFS; IFS='-'
2153 # Remember, the first character of IFS is used to create $*,
2154 # except with old shells:
2157 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2160 # The aliases save the names the user supplied, while $host etc.
2161 # will get canonicalized.
2162 test -n "$target_alias" &&
2163 test "$program_prefix$program_suffix$program_transform_name" = \
2165 program_prefix=${target_alias}-
2167 ac_cpp='$CPP $CPPFLAGS'
2168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2172 rm -rf .tst 2>/dev/null
2173 mkdir .tst 2>/dev/null
2174 if test -d .tst; then
2179 rmdir .tst 2>/dev/null
2181 DEPDIR="${am__leading_dot}deps"
2183 ac_config_commands="$ac_config_commands depfiles"
2186 am_make=${MAKE-make}
2187 cat > confinc << 'END'
2192 # If we don't find an include directive, just comment out the code.
2193 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2194 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2198 # First try GNU make style include.
2199 echo "include confinc" > confmf
2200 # We grep out `Entering directory' and `Leaving directory'
2201 # messages which can occur if `w' ends up in MAKEFLAGS.
2202 # In particular we don't look at `^make:' because GNU make might
2203 # be invoked under some other name (usually "gmake"), in which
2204 # case it prints its new name instead of `make'.
2205 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2210 # Now try BSD make style include.
2211 if test "$am__include" = "#"; then
2212 echo '.include "confinc"' > confmf
2213 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2214 am__include=.include
2221 { echo "$as_me:$LINENO: result: $_am_result" >&5
2222 echo "${ECHO_T}$_am_result" >&6; }
2223 rm -f confinc confmf
2225 # Check whether --enable-dependency-tracking was given.
2226 if test "${enable_dependency_tracking+set}" = set; then
2227 enableval=$enable_dependency_tracking;
2230 if test "x$enable_dependency_tracking" != xno; then
2231 am_depcomp="$ac_aux_dir/depcomp"
2234 if test "x$enable_dependency_tracking" != xno; then
2244 for ac_prog in gcj gcj-3.2 gcj-3.1 gcj-3.0 gcj-2.95
2246 # Extract the first word of "$ac_prog", so it can be a program name with args.
2247 set dummy $ac_prog; ac_word=$2
2248 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2250 if test "${ac_cv_prog_GCJ+set}" = set; then
2251 echo $ECHO_N "(cached) $ECHO_C" >&6
2253 if test -n "$GCJ"; then
2254 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
2256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2260 test -z "$as_dir" && as_dir=.
2261 for ac_exec_ext in '' $ac_executable_extensions; do
2262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2263 ac_cv_prog_GCJ="$ac_prog"
2264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2274 if test -n "$GCJ"; then
2275 { echo "$as_me:$LINENO: result: $GCJ" >&5
2276 echo "${ECHO_T}$GCJ" >&6; }
2278 { echo "$as_me:$LINENO: result: no" >&5
2279 echo "${ECHO_T}no" >&6; }
2283 test -n "$GCJ" && break
2285 test -n "$GCJ" || GCJ="gcj"
2287 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
2288 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
2289 { (exit 1); exit 1; }; }
2290 if test "x${GCJFLAGS-unset}" = xunset; then
2295 depcc="$GCJ" am_compiler_list='gcc3 gcc'
2297 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2298 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
2299 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
2300 echo $ECHO_N "(cached) $ECHO_C" >&6
2302 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2303 # We make a subdir and do the tests there. Otherwise we can end up
2304 # making bogus files that we don't know about and never remove. For
2305 # instance it was reported that on HP-UX the gcc test will end up
2306 # making a dummy file named `D' -- because `-MD' means `put the output
2309 # Copy depcomp to subdir because otherwise we won't find it if we're
2310 # using a relative directory.
2311 cp "$am_depcomp" conftest.dir
2313 # We will build objects and dependencies in a subdirectory because
2314 # it helps to detect inapplicable dependency modes. For instance
2315 # both Tru64's cc and ICC support -MD to output dependencies as a
2316 # side effect of compilation, but ICC will put the dependencies in
2317 # the current directory while Tru64 will put them in the object
2321 am_cv_GCJ_dependencies_compiler_type=none
2322 if test "$am_compiler_list" = ""; then
2323 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2325 for depmode in $am_compiler_list; do
2326 # Setup a source with many dependencies, because some compilers
2327 # like to wrap large dependency lists on column 80 (with \), and
2328 # we should not choose a depcomp mode which is confused by this.
2330 # We need to recreate these files for each test, as the compiler may
2331 # overwrite some of them when testing with obscure command lines.
2332 # This happens at least with the AIX C compiler.
2334 for i in 1 2 3 4 5 6; do
2335 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2336 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2337 # Solaris 8's {/usr,}/bin/sh.
2338 touch sub/conftst$i.h
2340 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2344 # after this tag, mechanisms are not by side-effect, so they'll
2345 # only be used when explicitly requested
2346 if test "x$enable_dependency_tracking" = xyes; then
2354 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2355 # mode. It turns out that the SunPro C++ compiler does not properly
2356 # handle `-M -o', and we need to detect this.
2357 if depmode=$depmode \
2358 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2359 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2360 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2361 >/dev/null 2>conftest.err &&
2362 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
2363 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2364 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2365 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2366 # icc doesn't choke on unknown options, it will just issue warnings
2367 # or remarks (even with -Werror). So we grep stderr for any message
2368 # that says an option was ignored or not supported.
2369 # When given -MP, icc 7.0 and 7.1 complain thusly:
2370 # icc: Command line warning: ignoring option '-M'; no argument required
2371 # The diagnosis changed in icc 8.0:
2372 # icc: Command line remark: option '-MP' not supported
2373 if (grep 'ignoring option' conftest.err ||
2374 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2375 am_cv_GCJ_dependencies_compiler_type=$depmode
2384 am_cv_GCJ_dependencies_compiler_type=none
2388 { echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
2389 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6; }
2390 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
2393 test "x$enable_dependency_tracking" != xno \
2394 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
2395 am__fastdepGCJ_TRUE=
2396 am__fastdepGCJ_FALSE='#'
2398 am__fastdepGCJ_TRUE='#'
2399 am__fastdepGCJ_FALSE=
2405 am__api_version='1.10'
2407 # Find a good install program. We prefer a C program (faster),
2408 # so one script is as good as another. But avoid the broken or
2409 # incompatible versions:
2410 # SysV /etc/install, /usr/sbin/install
2411 # SunOS /usr/etc/install
2412 # IRIX /sbin/install
2414 # AmigaOS /C/install, which installs bootblocks on floppy discs
2415 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2416 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2417 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2418 # OS/2's system install, which has a completely different semantic
2419 # ./install, which can be erroneously created by make from ./install.sh.
2420 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2421 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2422 if test -z "$INSTALL"; then
2423 if test "${ac_cv_path_install+set}" = set; then
2424 echo $ECHO_N "(cached) $ECHO_C" >&6
2426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2430 test -z "$as_dir" && as_dir=.
2431 # Account for people who put trailing slashes in PATH elements.
2433 ./ | .// | /cC/* | \
2434 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2435 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2438 # OSF1 and SCO ODT 3.0 have their own names for install.
2439 # Don't use installbsd from OSF since it installs stuff as root
2441 for ac_prog in ginstall scoinst install; do
2442 for ac_exec_ext in '' $ac_executable_extensions; do
2443 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2444 if test $ac_prog = install &&
2445 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2446 # AIX install. It has an incompatible calling convention.
2448 elif test $ac_prog = install &&
2449 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2450 # program-specific install script used by HP pwplus--don't use.
2453 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2466 if test "${ac_cv_path_install+set}" = set; then
2467 INSTALL=$ac_cv_path_install
2469 # As a last resort, use the slow shell script. Don't cache a
2470 # value for INSTALL within a source directory, because that will
2471 # break other packages using the cache if that directory is
2472 # removed, or if the value is a relative name.
2473 INSTALL=$ac_install_sh
2476 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2477 echo "${ECHO_T}$INSTALL" >&6; }
2479 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2480 # It thinks the first close brace ends the variable substitution.
2481 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2483 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2485 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2487 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2488 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2491 echo timestamp > conftest.file
2492 # Do `set' in a subshell so we don't clobber the current shell's
2493 # arguments. Must try -L first in case configure is actually a
2494 # symlink; some systems play weird games with the mod time of symlinks
2495 # (eg FreeBSD returns the mod time of the symlink's containing
2498 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2499 if test "$*" = "X"; then
2501 set X `ls -t $srcdir/configure conftest.file`
2504 if test "$*" != "X $srcdir/configure conftest.file" \
2505 && test "$*" != "X conftest.file $srcdir/configure"; then
2507 # If neither matched, then we have a broken ls. This can happen
2508 # if, for instance, CONFIG_SHELL is bash and it inherits a
2509 # broken ls alias from the environment. This has actually
2510 # happened. Such a system could not be considered "sane".
2511 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2512 alias in your environment" >&5
2513 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2514 alias in your environment" >&2;}
2515 { (exit 1); exit 1; }; }
2518 test "$2" = conftest.file
2524 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2525 Check your system clock" >&5
2526 echo "$as_me: error: newly created file is older than distributed files!
2527 Check your system clock" >&2;}
2528 { (exit 1); exit 1; }; }
2530 { echo "$as_me:$LINENO: result: yes" >&5
2531 echo "${ECHO_T}yes" >&6; }
2532 test "$program_prefix" != NONE &&
2533 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2534 # Use a double $ so make ignores it.
2535 test "$program_suffix" != NONE &&
2536 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2537 # Double any \ or $. echo might interpret backslashes.
2538 # By default was `s,x,x', remove it if useless.
2539 cat <<\_ACEOF >conftest.sed
2540 s/[\\$]/&&/g;s/;s,x,x,$//
2542 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2545 # expand $ac_aux_dir to an absolute path
2546 am_aux_dir=`cd $ac_aux_dir && pwd`
2548 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2549 # Use eval to expand $SHELL
2550 if eval "$MISSING --run true"; then
2551 am_missing_run="$MISSING --run "
2554 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2555 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2558 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2559 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2560 if test -z "$MKDIR_P"; then
2561 if test "${ac_cv_path_mkdir+set}" = set; then
2562 echo $ECHO_N "(cached) $ECHO_C" >&6
2564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2568 test -z "$as_dir" && as_dir=.
2569 for ac_prog in mkdir gmkdir; do
2570 for ac_exec_ext in '' $ac_executable_extensions; do
2571 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2572 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2573 'mkdir (GNU coreutils) '* | \
2574 'mkdir (coreutils) '* | \
2575 'mkdir (fileutils) '4.1*)
2576 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2586 if test "${ac_cv_path_mkdir+set}" = set; then
2587 MKDIR_P="$ac_cv_path_mkdir -p"
2589 # As a last resort, use the slow shell script. Don't cache a
2590 # value for MKDIR_P within a source directory, because that will
2591 # break other packages using the cache if that directory is
2592 # removed, or if the value is a relative name.
2593 test -d ./--version && rmdir ./--version
2594 MKDIR_P="$ac_install_sh -d"
2597 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2598 echo "${ECHO_T}$MKDIR_P" >&6; }
2602 [\\/$]* | ?:[\\/]*) ;;
2603 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2606 for ac_prog in gawk mawk nawk awk
2608 # Extract the first word of "$ac_prog", so it can be a program name with args.
2609 set dummy $ac_prog; ac_word=$2
2610 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2612 if test "${ac_cv_prog_AWK+set}" = set; then
2613 echo $ECHO_N "(cached) $ECHO_C" >&6
2615 if test -n "$AWK"; then
2616 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622 test -z "$as_dir" && as_dir=.
2623 for ac_exec_ext in '' $ac_executable_extensions; do
2624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2625 ac_cv_prog_AWK="$ac_prog"
2626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2636 if test -n "$AWK"; then
2637 { echo "$as_me:$LINENO: result: $AWK" >&5
2638 echo "${ECHO_T}$AWK" >&6; }
2640 { echo "$as_me:$LINENO: result: no" >&5
2641 echo "${ECHO_T}no" >&6; }
2645 test -n "$AWK" && break
2648 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2649 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2650 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2651 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2652 echo $ECHO_N "(cached) $ECHO_C" >&6
2654 cat >conftest.make <<\_ACEOF
2657 @echo '@@@%%%=$(MAKE)=@@@%%%'
2659 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2660 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2662 eval ac_cv_prog_make_${ac_make}_set=yes;;
2664 eval ac_cv_prog_make_${ac_make}_set=no;;
2668 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2669 { echo "$as_me:$LINENO: result: yes" >&5
2670 echo "${ECHO_T}yes" >&6; }
2673 { echo "$as_me:$LINENO: result: no" >&5
2674 echo "${ECHO_T}no" >&6; }
2675 SET_MAKE="MAKE=${MAKE-make}"
2678 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2679 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2680 # is not polluted with repeated "-I."
2681 am__isrc=' -I$(srcdir)'
2682 # test to see if srcdir already configured
2683 if test -f $srcdir/config.status; then
2684 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2685 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2686 { (exit 1); exit 1; }; }
2690 # test whether we have cygpath
2691 if test -z "$CYGPATH_W"; then
2692 if (cygpath --version) >/dev/null 2>/dev/null; then
2693 CYGPATH_W='cygpath -w'
2700 # Define the identity of the package.
2705 cat >>confdefs.h <<_ACEOF
2706 #define PACKAGE "$PACKAGE"
2710 cat >>confdefs.h <<_ACEOF
2711 #define VERSION "$VERSION"
2714 # Some tools Automake needs.
2716 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2719 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2722 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2725 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2728 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2730 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2732 # Installed binaries are usually stripped using `strip' when the user
2733 # run `make install-strip'. However `strip' might not be the right
2734 # tool to use in cross-compilation environments, therefore Automake
2735 # will honor the `STRIP' environment variable to overrule this program.
2736 if test "$cross_compiling" != no; then
2737 if test -n "$ac_tool_prefix"; then
2738 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2739 set dummy ${ac_tool_prefix}strip; ac_word=$2
2740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2742 if test "${ac_cv_prog_STRIP+set}" = set; then
2743 echo $ECHO_N "(cached) $ECHO_C" >&6
2745 if test -n "$STRIP"; then
2746 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2752 test -z "$as_dir" && as_dir=.
2753 for ac_exec_ext in '' $ac_executable_extensions; do
2754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2755 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2765 STRIP=$ac_cv_prog_STRIP
2766 if test -n "$STRIP"; then
2767 { echo "$as_me:$LINENO: result: $STRIP" >&5
2768 echo "${ECHO_T}$STRIP" >&6; }
2770 { echo "$as_me:$LINENO: result: no" >&5
2771 echo "${ECHO_T}no" >&6; }
2776 if test -z "$ac_cv_prog_STRIP"; then
2778 # Extract the first word of "strip", so it can be a program name with args.
2779 set dummy strip; ac_word=$2
2780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2782 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2783 echo $ECHO_N "(cached) $ECHO_C" >&6
2785 if test -n "$ac_ct_STRIP"; then
2786 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2792 test -z "$as_dir" && as_dir=.
2793 for ac_exec_ext in '' $ac_executable_extensions; do
2794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2795 ac_cv_prog_ac_ct_STRIP="strip"
2796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2805 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2806 if test -n "$ac_ct_STRIP"; then
2807 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2808 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2810 { echo "$as_me:$LINENO: result: no" >&5
2811 echo "${ECHO_T}no" >&6; }
2814 if test "x$ac_ct_STRIP" = x; then
2817 case $cross_compiling:$ac_tool_warned in
2819 { echo "$as_me:$LINENO: 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." >&5
2822 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2823 whose name does not start with the host triplet. If you think this
2824 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2825 ac_tool_warned=yes ;;
2830 STRIP="$ac_cv_prog_STRIP"
2834 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2836 # We need awk for the "check" target. The system "awk" is bad on
2838 # Always define AMTAR for backward compatibility.
2840 AMTAR=${AMTAR-"${am_missing_run}tar"}
2842 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2849 ACLOCAL="$ACLOCAL -I acmacro"
2856 # Check whether --enable-shared was given.
2857 if test "${enable_shared+set}" = set; then
2858 enableval=$enable_shared; p=${PACKAGE-default}
2860 yes) enable_shared=yes ;;
2861 no) enable_shared=no ;;
2864 # Look at the argument we got. We use all the common list separators.
2865 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2866 for pkg in $enableval; do
2868 if test "X$pkg" = "X$p"; then
2880 # Check whether --enable-static was given.
2881 if test "${enable_static+set}" = set; then
2882 enableval=$enable_static; p=${PACKAGE-default}
2884 yes) enable_static=yes ;;
2885 no) enable_static=no ;;
2888 # Look at the argument we got. We use all the common list separators.
2889 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2890 for pkg in $enableval; do
2892 if test "X$pkg" = "X$p"; then
2904 # Check whether --enable-fast-install was given.
2905 if test "${enable_fast_install+set}" = set; then
2906 enableval=$enable_fast_install; p=${PACKAGE-default}
2908 yes) enable_fast_install=yes ;;
2909 no) enable_fast_install=no ;;
2911 enable_fast_install=no
2912 # Look at the argument we got. We use all the common list separators.
2913 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2914 for pkg in $enableval; do
2916 if test "X$pkg" = "X$p"; then
2917 enable_fast_install=yes
2924 enable_fast_install=yes
2929 ac_cpp='$CPP $CPPFLAGS'
2930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2933 if test -n "$ac_tool_prefix"; then
2934 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2935 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2936 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2938 if test "${ac_cv_prog_CC+set}" = set; then
2939 echo $ECHO_N "(cached) $ECHO_C" >&6
2941 if test -n "$CC"; then
2942 ac_cv_prog_CC="$CC" # Let the user override the test.
2944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948 test -z "$as_dir" && as_dir=.
2949 for ac_exec_ext in '' $ac_executable_extensions; do
2950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2951 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2962 if test -n "$CC"; then
2963 { echo "$as_me:$LINENO: result: $CC" >&5
2964 echo "${ECHO_T}$CC" >&6; }
2966 { echo "$as_me:$LINENO: result: no" >&5
2967 echo "${ECHO_T}no" >&6; }
2972 if test -z "$ac_cv_prog_CC"; then
2974 # Extract the first word of "gcc", so it can be a program name with args.
2975 set dummy gcc; ac_word=$2
2976 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2978 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2979 echo $ECHO_N "(cached) $ECHO_C" >&6
2981 if test -n "$ac_ct_CC"; then
2982 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2988 test -z "$as_dir" && as_dir=.
2989 for ac_exec_ext in '' $ac_executable_extensions; do
2990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2991 ac_cv_prog_ac_ct_CC="gcc"
2992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3001 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3002 if test -n "$ac_ct_CC"; then
3003 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3004 echo "${ECHO_T}$ac_ct_CC" >&6; }
3006 { echo "$as_me:$LINENO: result: no" >&5
3007 echo "${ECHO_T}no" >&6; }
3010 if test "x$ac_ct_CC" = x; then
3013 case $cross_compiling:$ac_tool_warned in
3015 { echo "$as_me:$LINENO: 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." >&5
3018 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3019 whose name does not start with the host triplet. If you think this
3020 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3021 ac_tool_warned=yes ;;
3029 if test -z "$CC"; then
3030 if test -n "$ac_tool_prefix"; then
3031 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3032 set dummy ${ac_tool_prefix}cc; ac_word=$2
3033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3035 if test "${ac_cv_prog_CC+set}" = set; then
3036 echo $ECHO_N "(cached) $ECHO_C" >&6
3038 if test -n "$CC"; then
3039 ac_cv_prog_CC="$CC" # Let the user override the test.
3041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3045 test -z "$as_dir" && as_dir=.
3046 for ac_exec_ext in '' $ac_executable_extensions; do
3047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3048 ac_cv_prog_CC="${ac_tool_prefix}cc"
3049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3059 if test -n "$CC"; then
3060 { echo "$as_me:$LINENO: result: $CC" >&5
3061 echo "${ECHO_T}$CC" >&6; }
3063 { echo "$as_me:$LINENO: result: no" >&5
3064 echo "${ECHO_T}no" >&6; }
3070 if test -z "$CC"; then
3071 # Extract the first word of "cc", so it can be a program name with args.
3072 set dummy cc; ac_word=$2
3073 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3075 if test "${ac_cv_prog_CC+set}" = set; then
3076 echo $ECHO_N "(cached) $ECHO_C" >&6
3078 if test -n "$CC"; then
3079 ac_cv_prog_CC="$CC" # Let the user override the test.
3082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086 test -z "$as_dir" && as_dir=.
3087 for ac_exec_ext in '' $ac_executable_extensions; do
3088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3089 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3090 ac_prog_rejected=yes
3094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3101 if test $ac_prog_rejected = yes; then
3102 # We found a bogon in the path, so make sure we never use it.
3103 set dummy $ac_cv_prog_CC
3105 if test $# != 0; then
3106 # We chose a different compiler from the bogus one.
3107 # However, it has the same basename, so the bogon will be chosen
3108 # first if we set CC to just the basename; use the full file name.
3110 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3116 if test -n "$CC"; then
3117 { echo "$as_me:$LINENO: result: $CC" >&5
3118 echo "${ECHO_T}$CC" >&6; }
3120 { echo "$as_me:$LINENO: result: no" >&5
3121 echo "${ECHO_T}no" >&6; }
3126 if test -z "$CC"; then
3127 if test -n "$ac_tool_prefix"; then
3128 for ac_prog in cl.exe
3130 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3131 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3134 if test "${ac_cv_prog_CC+set}" = set; then
3135 echo $ECHO_N "(cached) $ECHO_C" >&6
3137 if test -n "$CC"; then
3138 ac_cv_prog_CC="$CC" # Let the user override the test.
3140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144 test -z "$as_dir" && as_dir=.
3145 for ac_exec_ext in '' $ac_executable_extensions; do
3146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3147 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3158 if test -n "$CC"; then
3159 { echo "$as_me:$LINENO: result: $CC" >&5
3160 echo "${ECHO_T}$CC" >&6; }
3162 { echo "$as_me:$LINENO: result: no" >&5
3163 echo "${ECHO_T}no" >&6; }
3167 test -n "$CC" && break
3170 if test -z "$CC"; then
3172 for ac_prog in cl.exe
3174 # Extract the first word of "$ac_prog", so it can be a program name with args.
3175 set dummy $ac_prog; ac_word=$2
3176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3178 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3179 echo $ECHO_N "(cached) $ECHO_C" >&6
3181 if test -n "$ac_ct_CC"; then
3182 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188 test -z "$as_dir" && as_dir=.
3189 for ac_exec_ext in '' $ac_executable_extensions; do
3190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3191 ac_cv_prog_ac_ct_CC="$ac_prog"
3192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3201 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3202 if test -n "$ac_ct_CC"; then
3203 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3204 echo "${ECHO_T}$ac_ct_CC" >&6; }
3206 { echo "$as_me:$LINENO: result: no" >&5
3207 echo "${ECHO_T}no" >&6; }
3211 test -n "$ac_ct_CC" && break
3214 if test "x$ac_ct_CC" = x; then
3217 case $cross_compiling:$ac_tool_warned in
3219 { echo "$as_me:$LINENO: 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." >&5
3222 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3223 whose name does not start with the host triplet. If you think this
3224 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3225 ac_tool_warned=yes ;;
3234 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3235 See \`config.log' for more details." >&5
3236 echo "$as_me: error: no acceptable C compiler found in \$PATH
3237 See \`config.log' for more details." >&2;}
3238 { (exit 1); exit 1; }; }
3240 # Provide some information about the compiler.
3241 echo "$as_me:$LINENO: checking for C compiler version" >&5
3242 ac_compiler=`set X $ac_compile; echo $2`
3243 { (ac_try="$ac_compiler --version >&5"
3245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246 *) ac_try_echo=$ac_try;;
3248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3249 (eval "$ac_compiler --version >&5") 2>&5
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); }
3253 { (ac_try="$ac_compiler -v >&5"
3255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3256 *) ac_try_echo=$ac_try;;
3258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3259 (eval "$ac_compiler -v >&5") 2>&5
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); }
3263 { (ac_try="$ac_compiler -V >&5"
3265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266 *) ac_try_echo=$ac_try;;
3268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3269 (eval "$ac_compiler -V >&5") 2>&5
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); }
3274 cat >conftest.$ac_ext <<_ACEOF
3277 cat confdefs.h >>conftest.$ac_ext
3278 cat >>conftest.$ac_ext <<_ACEOF
3279 /* end confdefs.h. */
3289 ac_clean_files_save=$ac_clean_files
3290 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3291 # Try to create an executable without -o first, disregard a.out.
3292 # It will help us diagnose broken compilers, and finding out an intuition
3294 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3295 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3296 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3298 # List of possible output files, starting from the most likely.
3299 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3300 # only as a last resort. b.out is created by i960 compilers.
3301 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3303 # The IRIX 6 linker writes into existing files which may not be
3304 # executable, retaining their permissions. Remove them first so a
3305 # subsequent execution test works.
3307 for ac_file in $ac_files
3310 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3311 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3316 if { (ac_try="$ac_link_default"
3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319 *) ac_try_echo=$ac_try;;
3321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3322 (eval "$ac_link_default") 2>&5
3324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325 (exit $ac_status); }; then
3326 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3327 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3328 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3329 # so that the user can short-circuit this test for compilers unknown to
3331 for ac_file in $ac_files ''
3333 test -f "$ac_file" || continue
3335 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3338 # We found the default executable, but exeext='' is most
3342 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3344 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3346 # We set ac_cv_exeext here because the later test for it is not
3347 # safe: cross compilers may not add the suffix if given an `-o'
3348 # argument, so we may need to know it at that point already.
3349 # Even if this section looks crufty: it has the advantage of
3356 test "$ac_cv_exeext" = no && ac_cv_exeext=
3362 { echo "$as_me:$LINENO: result: $ac_file" >&5
3363 echo "${ECHO_T}$ac_file" >&6; }
3364 if test -z "$ac_file"; then
3365 echo "$as_me: failed program was:" >&5
3366 sed 's/^/| /' conftest.$ac_ext >&5
3368 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3369 See \`config.log' for more details." >&5
3370 echo "$as_me: error: C compiler cannot create executables
3371 See \`config.log' for more details." >&2;}
3372 { (exit 77); exit 77; }; }
3375 ac_exeext=$ac_cv_exeext
3377 # Check that the compiler produces executables we can run. If not, either
3378 # the compiler is broken, or we cross compile.
3379 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3380 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3381 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3382 # If not cross compiling, check that we can run a simple program.
3383 if test "$cross_compiling" != yes; then
3384 if { ac_try='./$ac_file'
3385 { (case "(($ac_try" in
3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387 *) ac_try_echo=$ac_try;;
3389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3390 (eval "$ac_try") 2>&5
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); }; }; then
3396 if test "$cross_compiling" = maybe; then
3399 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3400 If you meant to cross compile, use \`--host'.
3401 See \`config.log' for more details." >&5
3402 echo "$as_me: error: cannot run C compiled programs.
3403 If you meant to cross compile, use \`--host'.
3404 See \`config.log' for more details." >&2;}
3405 { (exit 1); exit 1; }; }
3409 { echo "$as_me:$LINENO: result: yes" >&5
3410 echo "${ECHO_T}yes" >&6; }
3412 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3413 ac_clean_files=$ac_clean_files_save
3414 # Check that the compiler produces executables we can run. If not, either
3415 # the compiler is broken, or we cross compile.
3416 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3417 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3418 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3419 echo "${ECHO_T}$cross_compiling" >&6; }
3421 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3422 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3423 if { (ac_try="$ac_link"
3425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3426 *) ac_try_echo=$ac_try;;
3428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3429 (eval "$ac_link") 2>&5
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); }; then
3433 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3434 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3435 # work properly (i.e., refer to `conftest.exe'), while it won't with
3437 for ac_file in conftest.exe conftest conftest.*; do
3438 test -f "$ac_file" || continue
3440 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3441 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3447 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3448 See \`config.log' for more details." >&5
3449 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3450 See \`config.log' for more details." >&2;}
3451 { (exit 1); exit 1; }; }
3454 rm -f conftest$ac_cv_exeext
3455 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3456 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3458 rm -f conftest.$ac_ext
3459 EXEEXT=$ac_cv_exeext
3461 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3462 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3463 if test "${ac_cv_objext+set}" = set; then
3464 echo $ECHO_N "(cached) $ECHO_C" >&6
3466 cat >conftest.$ac_ext <<_ACEOF
3469 cat confdefs.h >>conftest.$ac_ext
3470 cat >>conftest.$ac_ext <<_ACEOF
3471 /* end confdefs.h. */
3481 rm -f conftest.o conftest.obj
3482 if { (ac_try="$ac_compile"
3484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485 *) ac_try_echo=$ac_try;;
3487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3488 (eval "$ac_compile") 2>&5
3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); }; then
3492 for ac_file in conftest.o conftest.obj conftest.*; do
3493 test -f "$ac_file" || continue;
3495 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3496 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3501 echo "$as_me: failed program was:" >&5
3502 sed 's/^/| /' conftest.$ac_ext >&5
3504 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3505 See \`config.log' for more details." >&5
3506 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3507 See \`config.log' for more details." >&2;}
3508 { (exit 1); exit 1; }; }
3511 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3513 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3514 echo "${ECHO_T}$ac_cv_objext" >&6; }
3515 OBJEXT=$ac_cv_objext
3517 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3518 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3519 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3520 echo $ECHO_N "(cached) $ECHO_C" >&6
3522 cat >conftest.$ac_ext <<_ACEOF
3525 cat confdefs.h >>conftest.$ac_ext
3526 cat >>conftest.$ac_ext <<_ACEOF
3527 /* end confdefs.h. */
3540 rm -f conftest.$ac_objext
3541 if { (ac_try="$ac_compile"
3543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3544 *) ac_try_echo=$ac_try;;
3546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3547 (eval "$ac_compile") 2>conftest.er1
3549 grep -v '^ *+' conftest.er1 >conftest.err
3551 cat conftest.err >&5
3552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553 (exit $ac_status); } && {
3554 test -z "$ac_c_werror_flag" ||
3555 test ! -s conftest.err
3556 } && test -s conftest.$ac_objext; then
3559 echo "$as_me: failed program was:" >&5
3560 sed 's/^/| /' conftest.$ac_ext >&5
3565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3566 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3569 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3570 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3571 GCC=`test $ac_compiler_gnu = yes && echo yes`
3572 ac_test_CFLAGS=${CFLAGS+set}
3573 ac_save_CFLAGS=$CFLAGS
3574 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3575 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3576 if test "${ac_cv_prog_cc_g+set}" = set; then
3577 echo $ECHO_N "(cached) $ECHO_C" >&6
3579 ac_save_c_werror_flag=$ac_c_werror_flag
3580 ac_c_werror_flag=yes
3583 cat >conftest.$ac_ext <<_ACEOF
3586 cat confdefs.h >>conftest.$ac_ext
3587 cat >>conftest.$ac_ext <<_ACEOF
3588 /* end confdefs.h. */
3598 rm -f conftest.$ac_objext
3599 if { (ac_try="$ac_compile"
3601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3602 *) ac_try_echo=$ac_try;;
3604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3605 (eval "$ac_compile") 2>conftest.er1
3607 grep -v '^ *+' conftest.er1 >conftest.err
3609 cat conftest.err >&5
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); } && {
3612 test -z "$ac_c_werror_flag" ||
3613 test ! -s conftest.err
3614 } && test -s conftest.$ac_objext; then
3617 echo "$as_me: failed program was:" >&5
3618 sed 's/^/| /' conftest.$ac_ext >&5
3621 cat >conftest.$ac_ext <<_ACEOF
3624 cat confdefs.h >>conftest.$ac_ext
3625 cat >>conftest.$ac_ext <<_ACEOF
3626 /* end confdefs.h. */
3636 rm -f conftest.$ac_objext
3637 if { (ac_try="$ac_compile"
3639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3640 *) ac_try_echo=$ac_try;;
3642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3643 (eval "$ac_compile") 2>conftest.er1
3645 grep -v '^ *+' conftest.er1 >conftest.err
3647 cat conftest.err >&5
3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); } && {
3650 test -z "$ac_c_werror_flag" ||
3651 test ! -s conftest.err
3652 } && test -s conftest.$ac_objext; then
3655 echo "$as_me: failed program was:" >&5
3656 sed 's/^/| /' conftest.$ac_ext >&5
3658 ac_c_werror_flag=$ac_save_c_werror_flag
3660 cat >conftest.$ac_ext <<_ACEOF
3663 cat confdefs.h >>conftest.$ac_ext
3664 cat >>conftest.$ac_ext <<_ACEOF
3665 /* end confdefs.h. */
3675 rm -f conftest.$ac_objext
3676 if { (ac_try="$ac_compile"
3678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3679 *) ac_try_echo=$ac_try;;
3681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3682 (eval "$ac_compile") 2>conftest.er1
3684 grep -v '^ *+' conftest.er1 >conftest.err
3686 cat conftest.err >&5
3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688 (exit $ac_status); } && {
3689 test -z "$ac_c_werror_flag" ||
3690 test ! -s conftest.err
3691 } && test -s conftest.$ac_objext; then
3694 echo "$as_me: failed program was:" >&5
3695 sed 's/^/| /' conftest.$ac_ext >&5
3700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3707 ac_c_werror_flag=$ac_save_c_werror_flag
3709 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3710 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3711 if test "$ac_test_CFLAGS" = set; then
3712 CFLAGS=$ac_save_CFLAGS
3713 elif test $ac_cv_prog_cc_g = yes; then
3714 if test "$GCC" = yes; then
3720 if test "$GCC" = yes; then
3726 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3727 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3728 if test "${ac_cv_prog_cc_c89+set}" = set; then
3729 echo $ECHO_N "(cached) $ECHO_C" >&6
3731 ac_cv_prog_cc_c89=no
3733 cat >conftest.$ac_ext <<_ACEOF
3736 cat confdefs.h >>conftest.$ac_ext
3737 cat >>conftest.$ac_ext <<_ACEOF
3738 /* end confdefs.h. */
3741 #include <sys/types.h>
3742 #include <sys/stat.h>
3743 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3744 struct buf { int x; };
3745 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3746 static char *e (p, i)
3752 static char *f (char * (*g) (char **, int), char **p, ...)
3757 s = g (p, va_arg (v,int));
3762 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3763 function prototypes and stuff, but not '\xHH' hex character constants.
3764 These don't provoke an error unfortunately, instead are silently treated
3765 as 'x'. The following induces an error, until -std is added to get
3766 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3767 array size at least. It's necessary to write '\x00'==0 to get something
3768 that's true only with -std. */
3769 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3771 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3772 inside strings and character constants. */
3774 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3776 int test (int i, double x);
3777 struct s1 {int (*f) (int a);};
3778 struct s2 {int (*f) (double a);};
3779 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3785 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3790 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3791 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3793 CC="$ac_save_CC $ac_arg"
3794 rm -f conftest.$ac_objext
3795 if { (ac_try="$ac_compile"
3797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3798 *) ac_try_echo=$ac_try;;
3800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3801 (eval "$ac_compile") 2>conftest.er1
3803 grep -v '^ *+' conftest.er1 >conftest.err
3805 cat conftest.err >&5
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); } && {
3808 test -z "$ac_c_werror_flag" ||
3809 test ! -s conftest.err
3810 } && test -s conftest.$ac_objext; then
3811 ac_cv_prog_cc_c89=$ac_arg
3813 echo "$as_me: failed program was:" >&5
3814 sed 's/^/| /' conftest.$ac_ext >&5
3819 rm -f core conftest.err conftest.$ac_objext
3820 test "x$ac_cv_prog_cc_c89" != "xno" && break
3822 rm -f conftest.$ac_ext
3827 case "x$ac_cv_prog_cc_c89" in
3829 { echo "$as_me:$LINENO: result: none needed" >&5
3830 echo "${ECHO_T}none needed" >&6; } ;;
3832 { echo "$as_me:$LINENO: result: unsupported" >&5
3833 echo "${ECHO_T}unsupported" >&6; } ;;
3835 CC="$CC $ac_cv_prog_cc_c89"
3836 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3837 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3842 ac_cpp='$CPP $CPPFLAGS'
3843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3847 depcc="$CC" am_compiler_list=
3849 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3850 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3851 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3852 echo $ECHO_N "(cached) $ECHO_C" >&6
3854 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3855 # We make a subdir and do the tests there. Otherwise we can end up
3856 # making bogus files that we don't know about and never remove. For
3857 # instance it was reported that on HP-UX the gcc test will end up
3858 # making a dummy file named `D' -- because `-MD' means `put the output
3861 # Copy depcomp to subdir because otherwise we won't find it if we're
3862 # using a relative directory.
3863 cp "$am_depcomp" conftest.dir
3865 # We will build objects and dependencies in a subdirectory because
3866 # it helps to detect inapplicable dependency modes. For instance
3867 # both Tru64's cc and ICC support -MD to output dependencies as a
3868 # side effect of compilation, but ICC will put the dependencies in
3869 # the current directory while Tru64 will put them in the object
3873 am_cv_CC_dependencies_compiler_type=none
3874 if test "$am_compiler_list" = ""; then
3875 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3877 for depmode in $am_compiler_list; do
3878 # Setup a source with many dependencies, because some compilers
3879 # like to wrap large dependency lists on column 80 (with \), and
3880 # we should not choose a depcomp mode which is confused by this.
3882 # We need to recreate these files for each test, as the compiler may
3883 # overwrite some of them when testing with obscure command lines.
3884 # This happens at least with the AIX C compiler.
3886 for i in 1 2 3 4 5 6; do
3887 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3888 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3889 # Solaris 8's {/usr,}/bin/sh.
3890 touch sub/conftst$i.h
3892 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3896 # after this tag, mechanisms are not by side-effect, so they'll
3897 # only be used when explicitly requested
3898 if test "x$enable_dependency_tracking" = xyes; then
3906 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3907 # mode. It turns out that the SunPro C++ compiler does not properly
3908 # handle `-M -o', and we need to detect this.
3909 if depmode=$depmode \
3910 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3911 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3912 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3913 >/dev/null 2>conftest.err &&
3914 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3915 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3916 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3917 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3918 # icc doesn't choke on unknown options, it will just issue warnings
3919 # or remarks (even with -Werror). So we grep stderr for any message
3920 # that says an option was ignored or not supported.
3921 # When given -MP, icc 7.0 and 7.1 complain thusly:
3922 # icc: Command line warning: ignoring option '-M'; no argument required
3923 # The diagnosis changed in icc 8.0:
3924 # icc: Command line remark: option '-MP' not supported
3925 if (grep 'ignoring option' conftest.err ||
3926 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3927 am_cv_CC_dependencies_compiler_type=$depmode
3936 am_cv_CC_dependencies_compiler_type=none
3940 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3941 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3942 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3945 test "x$enable_dependency_tracking" != xno \
3946 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3948 am__fastdepCC_FALSE='#'
3950 am__fastdepCC_TRUE='#'
3951 am__fastdepCC_FALSE=
3955 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3956 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3957 if test "${lt_cv_path_SED+set}" = set; then
3958 echo $ECHO_N "(cached) $ECHO_C" >&6
3960 # Loop through the user's path and test for sed and gsed.
3961 # Then use that list of sed's as ones to test for truncation.
3962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3966 test -z "$as_dir" && as_dir=.
3967 for lt_ac_prog in sed gsed; do
3968 for ac_exec_ext in '' $ac_executable_extensions; do
3969 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3970 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3977 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3978 # along with /bin/sed that truncates output.
3979 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3980 test ! -f $lt_ac_sed && continue
3981 cat /dev/null > conftest.in
3983 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3984 # Check for GNU sed and select it if it is found.
3985 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3986 lt_cv_path_SED=$lt_ac_sed
3990 cat conftest.in conftest.in >conftest.tmp
3991 mv conftest.tmp conftest.in
3992 cp conftest.in conftest.nl
3994 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3995 cmp -s conftest.out conftest.nl || break
3996 # 10000 chars as input seems more than enough
3997 test $lt_ac_count -gt 10 && break
3998 lt_ac_count=`expr $lt_ac_count + 1`
3999 if test $lt_ac_count -gt $lt_ac_max; then
4000 lt_ac_max=$lt_ac_count
4001 lt_cv_path_SED=$lt_ac_sed
4009 { echo "$as_me:$LINENO: result: $SED" >&5
4010 echo "${ECHO_T}$SED" >&6; }
4012 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4013 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4014 if test "${ac_cv_path_GREP+set}" = set; then
4015 echo $ECHO_N "(cached) $ECHO_C" >&6
4017 # Extract the first word of "grep ggrep" to use in msg output
4018 if test -z "$GREP"; then
4019 set dummy grep ggrep; ac_prog_name=$2
4020 if test "${ac_cv_path_GREP+set}" = set; then
4021 echo $ECHO_N "(cached) $ECHO_C" >&6
4023 ac_path_GREP_found=false
4024 # Loop through the user's path and test for each of PROGNAME-LIST
4025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4026 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4029 test -z "$as_dir" && as_dir=.
4030 for ac_prog in grep ggrep; do
4031 for ac_exec_ext in '' $ac_executable_extensions; do
4032 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4033 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4034 # Check for GNU ac_path_GREP and select it if it is found.
4035 # Check for GNU $ac_path_GREP
4036 case `"$ac_path_GREP" --version 2>&1` in
4038 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4041 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4044 cat "conftest.in" "conftest.in" >"conftest.tmp"
4045 mv "conftest.tmp" "conftest.in"
4046 cp "conftest.in" "conftest.nl"
4047 echo 'GREP' >> "conftest.nl"
4048 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4049 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4050 ac_count=`expr $ac_count + 1`
4051 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4052 # Best one so far, save it but keep looking for a better one
4053 ac_cv_path_GREP="$ac_path_GREP"
4054 ac_path_GREP_max=$ac_count
4056 # 10*(2^10) chars as input seems more than enough
4057 test $ac_count -gt 10 && break
4059 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4063 $ac_path_GREP_found && break 3
4073 GREP="$ac_cv_path_GREP"
4074 if test -z "$GREP"; then
4075 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4076 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4077 { (exit 1); exit 1; }; }
4081 ac_cv_path_GREP=$GREP
4086 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4087 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4088 GREP="$ac_cv_path_GREP"
4091 { echo "$as_me:$LINENO: checking for egrep" >&5
4092 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4093 if test "${ac_cv_path_EGREP+set}" = set; then
4094 echo $ECHO_N "(cached) $ECHO_C" >&6
4096 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4097 then ac_cv_path_EGREP="$GREP -E"
4099 # Extract the first word of "egrep" to use in msg output
4100 if test -z "$EGREP"; then
4101 set dummy egrep; ac_prog_name=$2
4102 if test "${ac_cv_path_EGREP+set}" = set; then
4103 echo $ECHO_N "(cached) $ECHO_C" >&6
4105 ac_path_EGREP_found=false
4106 # Loop through the user's path and test for each of PROGNAME-LIST
4107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4111 test -z "$as_dir" && as_dir=.
4112 for ac_prog in egrep; do
4113 for ac_exec_ext in '' $ac_executable_extensions; do
4114 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4115 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4116 # Check for GNU ac_path_EGREP and select it if it is found.
4117 # Check for GNU $ac_path_EGREP
4118 case `"$ac_path_EGREP" --version 2>&1` in
4120 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4123 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4126 cat "conftest.in" "conftest.in" >"conftest.tmp"
4127 mv "conftest.tmp" "conftest.in"
4128 cp "conftest.in" "conftest.nl"
4129 echo 'EGREP' >> "conftest.nl"
4130 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4131 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4132 ac_count=`expr $ac_count + 1`
4133 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4134 # Best one so far, save it but keep looking for a better one
4135 ac_cv_path_EGREP="$ac_path_EGREP"
4136 ac_path_EGREP_max=$ac_count
4138 # 10*(2^10) chars as input seems more than enough
4139 test $ac_count -gt 10 && break
4141 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4145 $ac_path_EGREP_found && break 3
4155 EGREP="$ac_cv_path_EGREP"
4156 if test -z "$EGREP"; then
4157 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4158 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4159 { (exit 1); exit 1; }; }
4163 ac_cv_path_EGREP=$EGREP
4169 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4170 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4171 EGREP="$ac_cv_path_EGREP"
4175 # Check whether --with-gnu-ld was given.
4176 if test "${with_gnu_ld+set}" = set; then
4177 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4183 if test "$GCC" = yes; then
4184 # Check if gcc -print-prog-name=ld gives a path.
4185 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4186 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4189 # gcc leaves a trailing carriage return which upsets mingw
4190 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4192 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4195 # Accept absolute paths.
4197 re_direlt='/[^/][^/]*/\.\./'
4198 # Canonicalize the pathname of ld
4199 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4200 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4201 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4203 test -z "$LD" && LD="$ac_prog"
4206 # If it fails, then pretend we aren't using GCC.
4210 # If it is relative, then search for the first ld in PATH.
4214 elif test "$with_gnu_ld" = yes; then
4215 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4216 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4218 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4219 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4221 if test "${lt_cv_path_LD+set}" = set; then
4222 echo $ECHO_N "(cached) $ECHO_C" >&6
4224 if test -z "$LD"; then
4225 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4226 for ac_dir in $PATH; do
4228 test -z "$ac_dir" && ac_dir=.
4229 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4230 lt_cv_path_LD="$ac_dir/$ac_prog"
4231 # Check to see if the program is GNU ld. I'd rather use --version,
4232 # but apparently some variants of GNU ld only accept -v.
4233 # Break only if it was the GNU/non-GNU ld that we prefer.
4234 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4235 *GNU* | *'with BFD'*)
4236 test "$with_gnu_ld" != no && break
4239 test "$with_gnu_ld" != yes && break
4246 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4251 if test -n "$LD"; then
4252 { echo "$as_me:$LINENO: result: $LD" >&5
4253 echo "${ECHO_T}$LD" >&6; }
4255 { echo "$as_me:$LINENO: result: no" >&5
4256 echo "${ECHO_T}no" >&6; }
4258 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4259 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4260 { (exit 1); exit 1; }; }
4261 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4262 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4263 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4264 echo $ECHO_N "(cached) $ECHO_C" >&6
4266 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4267 case `$LD -v 2>&1 </dev/null` in
4268 *GNU* | *'with BFD'*)
4269 lt_cv_prog_gnu_ld=yes
4272 lt_cv_prog_gnu_ld=no
4276 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4277 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4278 with_gnu_ld=$lt_cv_prog_gnu_ld
4281 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4282 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4283 if test "${lt_cv_ld_reload_flag+set}" = set; then
4284 echo $ECHO_N "(cached) $ECHO_C" >&6
4286 lt_cv_ld_reload_flag='-r'
4288 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4289 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4290 reload_flag=$lt_cv_ld_reload_flag
4291 case $reload_flag in
4293 *) reload_flag=" $reload_flag" ;;
4295 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4298 if test "$GCC" = yes; then
4299 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4301 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4306 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4307 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4308 if test "${lt_cv_path_NM+set}" = set; then
4309 echo $ECHO_N "(cached) $ECHO_C" >&6
4311 if test -n "$NM"; then
4312 # Let the user override the test.
4315 lt_nm_to_check="${ac_tool_prefix}nm"
4316 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4317 lt_nm_to_check="$lt_nm_to_check nm"
4319 for lt_tmp_nm in $lt_nm_to_check; do
4320 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4321 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4323 test -z "$ac_dir" && ac_dir=.
4324 tmp_nm="$ac_dir/$lt_tmp_nm"
4325 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4326 # Check to see if the nm accepts a BSD-compat flag.
4327 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4328 # nm: unknown option "B" ignored
4329 # Tru64's nm complains that /dev/null is an invalid object file
4330 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4331 */dev/null* | *'Invalid file or object type'*)
4332 lt_cv_path_NM="$tmp_nm -B"
4336 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4338 lt_cv_path_NM="$tmp_nm -p"
4342 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4343 continue # so that we can try to find one that supports BSD flags
4352 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4355 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4356 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4359 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4360 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4362 if test "$LN_S" = "ln -s"; then
4363 { echo "$as_me:$LINENO: result: yes" >&5
4364 echo "${ECHO_T}yes" >&6; }
4366 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4367 echo "${ECHO_T}no, using $LN_S" >&6; }
4370 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4371 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4372 if test "${lt_cv_deplibs_check_method+set}" = set; then
4373 echo $ECHO_N "(cached) $ECHO_C" >&6
4375 lt_cv_file_magic_cmd='$MAGIC_CMD'
4376 lt_cv_file_magic_test_file=
4377 lt_cv_deplibs_check_method='unknown'
4378 # Need to set the preceding variable on all platforms that support
4379 # interlibrary dependencies.
4380 # 'none' -- dependencies not supported.
4381 # `unknown' -- same as none, but documents that we really don't know.
4382 # 'pass_all' -- all dependencies passed with no checks.
4383 # 'test_compile' -- check by making test program.
4384 # 'file_magic [[regex]]' -- check by looking for files in library path
4385 # which responds to the $file_magic_cmd with a given extended regex.
4386 # If you have `file' or equivalent on your system and you're not sure
4387 # whether `pass_all' will *always* work, you probably want this one.
4391 lt_cv_deplibs_check_method=pass_all
4395 lt_cv_deplibs_check_method=pass_all
4399 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4400 lt_cv_file_magic_cmd='/usr/bin/file -L'
4401 lt_cv_file_magic_test_file=/shlib/libc.so
4405 # func_win32_libid is a shell function defined in ltmain.sh
4406 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4407 lt_cv_file_magic_cmd='func_win32_libid'
4411 # Base MSYS/MinGW do not provide the 'file' command needed by
4412 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4413 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4414 lt_cv_file_magic_cmd='$OBJDUMP -f'
4417 darwin* | rhapsody*)
4418 lt_cv_deplibs_check_method=pass_all
4421 freebsd* | dragonfly*)
4422 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4425 # Not sure whether the presence of OpenBSD here was a mistake.
4426 # Let's accept both of them until this is cleared up.
4427 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4428 lt_cv_file_magic_cmd=/usr/bin/file
4429 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4433 lt_cv_deplibs_check_method=pass_all
4438 lt_cv_deplibs_check_method=pass_all
4441 hpux10.20* | hpux11*)
4442 lt_cv_file_magic_cmd=/usr/bin/file
4445 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4446 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4449 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]'
4450 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4453 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4454 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4460 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4461 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4464 irix5* | irix6* | nonstopux*)
4466 *-32|*"-32 ") libmagic=32-bit;;
4467 *-n32|*"-n32 ") libmagic=N32;;
4468 *-64|*"-64 ") libmagic=64-bit;;
4469 *) libmagic=never-match;;
4471 lt_cv_deplibs_check_method=pass_all
4474 # This must be Linux ELF.
4475 linux* | k*bsd*-gnu)
4476 lt_cv_deplibs_check_method=pass_all
4479 netbsd* | netbsdelf*-gnu)
4480 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4481 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4483 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4488 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4489 lt_cv_file_magic_cmd=/usr/bin/file
4490 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4494 lt_cv_deplibs_check_method=unknown
4498 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4499 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4501 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4505 osf3* | osf4* | osf5*)
4506 lt_cv_deplibs_check_method=pass_all
4510 lt_cv_deplibs_check_method=pass_all
4514 case $host_vendor in
4516 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]'
4517 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4520 lt_cv_deplibs_check_method=pass_all
4523 lt_cv_file_magic_cmd='/bin/file'
4524 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4527 lt_cv_file_magic_cmd='/bin/file'
4528 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4529 lt_cv_file_magic_test_file=/lib/libc.so
4532 lt_cv_deplibs_check_method=pass_all
4535 lt_cv_deplibs_check_method=pass_all
4540 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4541 lt_cv_deplibs_check_method=pass_all
4546 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4547 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4548 file_magic_cmd=$lt_cv_file_magic_cmd
4549 deplibs_check_method=$lt_cv_deplibs_check_method
4550 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4555 # If no C compiler was specified, use CC.
4558 # If no C compiler flags were specified, use CFLAGS.
4559 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4561 # Allow CC to be a program name with arguments.
4565 # Check whether --enable-libtool-lock was given.
4566 if test "${enable_libtool_lock+set}" = set; then
4567 enableval=$enable_libtool_lock;
4570 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4572 # Some flags need to be propagated to the compiler or linker for good
4576 # Find out which ABI we are using.
4577 echo 'int i;' > conftest.$ac_ext
4578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4579 (eval $ac_compile) 2>&5
4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); }; then
4583 case `/usr/bin/file conftest.$ac_objext` in
4595 # Find out which ABI we are using.
4596 echo '#line 4596 "configure"' > conftest.$ac_ext
4597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4598 (eval $ac_compile) 2>&5
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); }; then
4602 if test "$lt_cv_prog_gnu_ld" = yes; then
4603 case `/usr/bin/file conftest.$ac_objext` in
4605 LD="${LD-ld} -melf32bsmip"
4608 LD="${LD-ld} -melf32bmipn32"
4611 LD="${LD-ld} -melf64bmip"
4615 case `/usr/bin/file conftest.$ac_objext` in
4631 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4632 # Find out which ABI we are using.
4633 echo 'int i;' > conftest.$ac_ext
4634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4635 (eval $ac_compile) 2>&5
4637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638 (exit $ac_status); }; then
4639 case `/usr/bin/file conftest.o` in
4643 LD="${LD-ld} -m elf_i386"
4645 ppc64-*linux*|powerpc64-*linux*)
4646 LD="${LD-ld} -m elf32ppclinux"
4649 LD="${LD-ld} -m elf_s390"
4652 LD="${LD-ld} -m elf32_sparc"
4659 LD="${LD-ld} -m elf_x86_64"
4661 ppc*-*linux*|powerpc*-*linux*)
4662 LD="${LD-ld} -m elf64ppc"
4665 LD="${LD-ld} -m elf64_s390"
4668 LD="${LD-ld} -m elf64_sparc"
4678 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4679 SAVE_CFLAGS="$CFLAGS"
4680 CFLAGS="$CFLAGS -belf"
4681 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4682 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4683 if test "${lt_cv_cc_needs_belf+set}" = set; then
4684 echo $ECHO_N "(cached) $ECHO_C" >&6
4687 ac_cpp='$CPP $CPPFLAGS'
4688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4692 cat >conftest.$ac_ext <<_ACEOF
4695 cat confdefs.h >>conftest.$ac_ext
4696 cat >>conftest.$ac_ext <<_ACEOF
4697 /* end confdefs.h. */
4707 rm -f conftest.$ac_objext conftest$ac_exeext
4708 if { (ac_try="$ac_link"
4710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4711 *) ac_try_echo=$ac_try;;
4713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4714 (eval "$ac_link") 2>conftest.er1
4716 grep -v '^ *+' conftest.er1 >conftest.err
4718 cat conftest.err >&5
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); } && {
4721 test -z "$ac_c_werror_flag" ||
4722 test ! -s conftest.err
4723 } && test -s conftest$ac_exeext &&
4724 $as_test_x conftest$ac_exeext; then
4725 lt_cv_cc_needs_belf=yes
4727 echo "$as_me: failed program was:" >&5
4728 sed 's/^/| /' conftest.$ac_ext >&5
4730 lt_cv_cc_needs_belf=no
4733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4734 conftest$ac_exeext conftest.$ac_ext
4736 ac_cpp='$CPP $CPPFLAGS'
4737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4742 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4743 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4744 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4745 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4746 CFLAGS="$SAVE_CFLAGS"
4750 # Find out which ABI we are using.
4751 echo 'int i;' > conftest.$ac_ext
4752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4753 (eval $ac_compile) 2>&5
4755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756 (exit $ac_status); }; then
4757 case `/usr/bin/file conftest.o` in
4759 case $lt_cv_prog_gnu_ld in
4760 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4761 *) LD="${LD-ld} -64" ;;
4769 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4770 if test -n "$ac_tool_prefix"; then
4771 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4772 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4775 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4776 echo $ECHO_N "(cached) $ECHO_C" >&6
4778 if test -n "$DLLTOOL"; then
4779 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785 test -z "$as_dir" && as_dir=.
4786 for ac_exec_ext in '' $ac_executable_extensions; do
4787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4788 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4798 DLLTOOL=$ac_cv_prog_DLLTOOL
4799 if test -n "$DLLTOOL"; then
4800 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4801 echo "${ECHO_T}$DLLTOOL" >&6; }
4803 { echo "$as_me:$LINENO: result: no" >&5
4804 echo "${ECHO_T}no" >&6; }
4809 if test -z "$ac_cv_prog_DLLTOOL"; then
4810 ac_ct_DLLTOOL=$DLLTOOL
4811 # Extract the first word of "dlltool", so it can be a program name with args.
4812 set dummy dlltool; ac_word=$2
4813 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4815 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4816 echo $ECHO_N "(cached) $ECHO_C" >&6
4818 if test -n "$ac_ct_DLLTOOL"; then
4819 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825 test -z "$as_dir" && as_dir=.
4826 for ac_exec_ext in '' $ac_executable_extensions; do
4827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4828 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4838 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4839 if test -n "$ac_ct_DLLTOOL"; then
4840 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4841 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
4843 { echo "$as_me:$LINENO: result: no" >&5
4844 echo "${ECHO_T}no" >&6; }
4847 if test "x$ac_ct_DLLTOOL" = x; then
4850 case $cross_compiling:$ac_tool_warned in
4852 { echo "$as_me:$LINENO: 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." >&5
4855 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4856 whose name does not start with the host triplet. If you think this
4857 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4858 ac_tool_warned=yes ;;
4860 DLLTOOL=$ac_ct_DLLTOOL
4863 DLLTOOL="$ac_cv_prog_DLLTOOL"
4866 if test -n "$ac_tool_prefix"; then
4867 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4868 set dummy ${ac_tool_prefix}as; ac_word=$2
4869 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4871 if test "${ac_cv_prog_AS+set}" = set; then
4872 echo $ECHO_N "(cached) $ECHO_C" >&6
4874 if test -n "$AS"; then
4875 ac_cv_prog_AS="$AS" # Let the user override the test.
4877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881 test -z "$as_dir" && as_dir=.
4882 for ac_exec_ext in '' $ac_executable_extensions; do
4883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4884 ac_cv_prog_AS="${ac_tool_prefix}as"
4885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4895 if test -n "$AS"; then
4896 { echo "$as_me:$LINENO: result: $AS" >&5
4897 echo "${ECHO_T}$AS" >&6; }
4899 { echo "$as_me:$LINENO: result: no" >&5
4900 echo "${ECHO_T}no" >&6; }
4905 if test -z "$ac_cv_prog_AS"; then
4907 # Extract the first word of "as", so it can be a program name with args.
4908 set dummy as; ac_word=$2
4909 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4911 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4912 echo $ECHO_N "(cached) $ECHO_C" >&6
4914 if test -n "$ac_ct_AS"; then
4915 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4921 test -z "$as_dir" && as_dir=.
4922 for ac_exec_ext in '' $ac_executable_extensions; do
4923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4924 ac_cv_prog_ac_ct_AS="as"
4925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4934 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4935 if test -n "$ac_ct_AS"; then
4936 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4937 echo "${ECHO_T}$ac_ct_AS" >&6; }
4939 { echo "$as_me:$LINENO: result: no" >&5
4940 echo "${ECHO_T}no" >&6; }
4943 if test "x$ac_ct_AS" = x; then
4946 case $cross_compiling:$ac_tool_warned in
4948 { echo "$as_me:$LINENO: 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." >&5
4951 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4952 whose name does not start with the host triplet. If you think this
4953 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4954 ac_tool_warned=yes ;;
4962 if test -n "$ac_tool_prefix"; then
4963 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4964 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4965 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4967 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4968 echo $ECHO_N "(cached) $ECHO_C" >&6
4970 if test -n "$OBJDUMP"; then
4971 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977 test -z "$as_dir" && as_dir=.
4978 for ac_exec_ext in '' $ac_executable_extensions; do
4979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4980 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4990 OBJDUMP=$ac_cv_prog_OBJDUMP
4991 if test -n "$OBJDUMP"; then
4992 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4993 echo "${ECHO_T}$OBJDUMP" >&6; }
4995 { echo "$as_me:$LINENO: result: no" >&5
4996 echo "${ECHO_T}no" >&6; }
5001 if test -z "$ac_cv_prog_OBJDUMP"; then
5002 ac_ct_OBJDUMP=$OBJDUMP
5003 # Extract the first word of "objdump", so it can be a program name with args.
5004 set dummy objdump; ac_word=$2
5005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5007 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5008 echo $ECHO_N "(cached) $ECHO_C" >&6
5010 if test -n "$ac_ct_OBJDUMP"; then
5011 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5017 test -z "$as_dir" && as_dir=.
5018 for ac_exec_ext in '' $ac_executable_extensions; do
5019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5020 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5030 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5031 if test -n "$ac_ct_OBJDUMP"; then
5032 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5033 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
5035 { echo "$as_me:$LINENO: result: no" >&5
5036 echo "${ECHO_T}no" >&6; }
5039 if test "x$ac_ct_OBJDUMP" = x; then
5042 case $cross_compiling:$ac_tool_warned in
5044 { echo "$as_me:$LINENO: 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." >&5
5047 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5048 whose name does not start with the host triplet. If you think this
5049 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5050 ac_tool_warned=yes ;;
5052 OBJDUMP=$ac_ct_OBJDUMP
5055 OBJDUMP="$ac_cv_prog_OBJDUMP"
5062 need_locks="$enable_libtool_lock"
5066 ac_cpp='$CPP $CPPFLAGS'
5067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5070 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5071 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5072 # On Suns, sometimes $CPP names a directory.
5073 if test -n "$CPP" && test -d "$CPP"; then
5076 if test -z "$CPP"; then
5077 if test "${ac_cv_prog_CPP+set}" = set; then
5078 echo $ECHO_N "(cached) $ECHO_C" >&6
5080 # Double quotes because CPP needs to be expanded
5081 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5084 for ac_c_preproc_warn_flag in '' yes
5086 # Use a header file that comes with gcc, so configuring glibc
5087 # with a fresh cross-compiler works.
5088 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5089 # <limits.h> exists even on freestanding compilers.
5090 # On the NeXT, cc -E runs the code through the compiler's parser,
5091 # not just through cpp. "Syntax error" is here to catch this case.
5092 cat >conftest.$ac_ext <<_ACEOF
5095 cat confdefs.h >>conftest.$ac_ext
5096 cat >>conftest.$ac_ext <<_ACEOF
5097 /* end confdefs.h. */
5099 # include <limits.h>
5101 # include <assert.h>
5105 if { (ac_try="$ac_cpp conftest.$ac_ext"
5107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5108 *) ac_try_echo=$ac_try;;
5110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5111 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5113 grep -v '^ *+' conftest.er1 >conftest.err
5115 cat conftest.err >&5
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); } >/dev/null && {
5118 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5119 test ! -s conftest.err
5123 echo "$as_me: failed program was:" >&5
5124 sed 's/^/| /' conftest.$ac_ext >&5
5126 # Broken: fails on valid input.
5130 rm -f conftest.err conftest.$ac_ext
5132 # OK, works on sane cases. Now check whether nonexistent headers
5133 # can be detected and how.
5134 cat >conftest.$ac_ext <<_ACEOF
5137 cat confdefs.h >>conftest.$ac_ext
5138 cat >>conftest.$ac_ext <<_ACEOF
5139 /* end confdefs.h. */
5140 #include <ac_nonexistent.h>
5142 if { (ac_try="$ac_cpp conftest.$ac_ext"
5144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5145 *) ac_try_echo=$ac_try;;
5147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5148 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5150 grep -v '^ *+' conftest.er1 >conftest.err
5152 cat conftest.err >&5
5153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154 (exit $ac_status); } >/dev/null && {
5155 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5156 test ! -s conftest.err
5158 # Broken: success on invalid input.
5161 echo "$as_me: failed program was:" >&5
5162 sed 's/^/| /' conftest.$ac_ext >&5
5164 # Passes both tests.
5169 rm -f conftest.err conftest.$ac_ext
5172 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5173 rm -f conftest.err conftest.$ac_ext
5174 if $ac_preproc_ok; then
5186 { echo "$as_me:$LINENO: result: $CPP" >&5
5187 echo "${ECHO_T}$CPP" >&6; }
5189 for ac_c_preproc_warn_flag in '' yes
5191 # Use a header file that comes with gcc, so configuring glibc
5192 # with a fresh cross-compiler works.
5193 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5194 # <limits.h> exists even on freestanding compilers.
5195 # On the NeXT, cc -E runs the code through the compiler's parser,
5196 # not just through cpp. "Syntax error" is here to catch this case.
5197 cat >conftest.$ac_ext <<_ACEOF
5200 cat confdefs.h >>conftest.$ac_ext
5201 cat >>conftest.$ac_ext <<_ACEOF
5202 /* end confdefs.h. */
5204 # include <limits.h>
5206 # include <assert.h>
5210 if { (ac_try="$ac_cpp conftest.$ac_ext"
5212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5213 *) ac_try_echo=$ac_try;;
5215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5218 grep -v '^ *+' conftest.er1 >conftest.err
5220 cat conftest.err >&5
5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); } >/dev/null && {
5223 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5224 test ! -s conftest.err
5228 echo "$as_me: failed program was:" >&5
5229 sed 's/^/| /' conftest.$ac_ext >&5
5231 # Broken: fails on valid input.
5235 rm -f conftest.err conftest.$ac_ext
5237 # OK, works on sane cases. Now check whether nonexistent headers
5238 # can be detected and how.
5239 cat >conftest.$ac_ext <<_ACEOF
5242 cat confdefs.h >>conftest.$ac_ext
5243 cat >>conftest.$ac_ext <<_ACEOF
5244 /* end confdefs.h. */
5245 #include <ac_nonexistent.h>
5247 if { (ac_try="$ac_cpp conftest.$ac_ext"
5249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5250 *) ac_try_echo=$ac_try;;
5252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5253 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5255 grep -v '^ *+' conftest.er1 >conftest.err
5257 cat conftest.err >&5
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); } >/dev/null && {
5260 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5261 test ! -s conftest.err
5263 # Broken: success on invalid input.
5266 echo "$as_me: failed program was:" >&5
5267 sed 's/^/| /' conftest.$ac_ext >&5
5269 # Passes both tests.
5274 rm -f conftest.err conftest.$ac_ext
5277 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5278 rm -f conftest.err conftest.$ac_ext
5279 if $ac_preproc_ok; then
5282 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5283 See \`config.log' for more details." >&5
5284 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5285 See \`config.log' for more details." >&2;}
5286 { (exit 1); exit 1; }; }
5290 ac_cpp='$CPP $CPPFLAGS'
5291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5296 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5297 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5298 if test "${ac_cv_header_stdc+set}" = set; then
5299 echo $ECHO_N "(cached) $ECHO_C" >&6
5301 cat >conftest.$ac_ext <<_ACEOF
5304 cat confdefs.h >>conftest.$ac_ext
5305 cat >>conftest.$ac_ext <<_ACEOF
5306 /* end confdefs.h. */
5320 rm -f conftest.$ac_objext
5321 if { (ac_try="$ac_compile"
5323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5324 *) ac_try_echo=$ac_try;;
5326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5327 (eval "$ac_compile") 2>conftest.er1
5329 grep -v '^ *+' conftest.er1 >conftest.err
5331 cat conftest.err >&5
5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333 (exit $ac_status); } && {
5334 test -z "$ac_c_werror_flag" ||
5335 test ! -s conftest.err
5336 } && test -s conftest.$ac_objext; then
5337 ac_cv_header_stdc=yes
5339 echo "$as_me: failed program was:" >&5
5340 sed 's/^/| /' conftest.$ac_ext >&5
5342 ac_cv_header_stdc=no
5345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5347 if test $ac_cv_header_stdc = yes; then
5348 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5349 cat >conftest.$ac_ext <<_ACEOF
5352 cat confdefs.h >>conftest.$ac_ext
5353 cat >>conftest.$ac_ext <<_ACEOF
5354 /* end confdefs.h. */
5358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5359 $EGREP "memchr" >/dev/null 2>&1; then
5362 ac_cv_header_stdc=no
5368 if test $ac_cv_header_stdc = yes; then
5369 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5370 cat >conftest.$ac_ext <<_ACEOF
5373 cat confdefs.h >>conftest.$ac_ext
5374 cat >>conftest.$ac_ext <<_ACEOF
5375 /* end confdefs.h. */
5379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5380 $EGREP "free" >/dev/null 2>&1; then
5383 ac_cv_header_stdc=no
5389 if test $ac_cv_header_stdc = yes; then
5390 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5391 if test "$cross_compiling" = yes; then
5394 cat >conftest.$ac_ext <<_ACEOF
5397 cat confdefs.h >>conftest.$ac_ext
5398 cat >>conftest.$ac_ext <<_ACEOF
5399 /* end confdefs.h. */
5402 #if ((' ' & 0x0FF) == 0x020)
5403 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5404 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5406 # define ISLOWER(c) \
5407 (('a' <= (c) && (c) <= 'i') \
5408 || ('j' <= (c) && (c) <= 'r') \
5409 || ('s' <= (c) && (c) <= 'z'))
5410 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5413 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5418 for (i = 0; i < 256; i++)
5419 if (XOR (islower (i), ISLOWER (i))
5420 || toupper (i) != TOUPPER (i))
5425 rm -f conftest$ac_exeext
5426 if { (ac_try="$ac_link"
5428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5429 *) ac_try_echo=$ac_try;;
5431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5432 (eval "$ac_link") 2>&5
5434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5436 { (case "(($ac_try" in
5437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5438 *) ac_try_echo=$ac_try;;
5440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5441 (eval "$ac_try") 2>&5
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); }; }; then
5447 echo "$as_me: program exited with status $ac_status" >&5
5448 echo "$as_me: failed program was:" >&5
5449 sed 's/^/| /' conftest.$ac_ext >&5
5452 ac_cv_header_stdc=no
5454 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5460 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5461 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5462 if test $ac_cv_header_stdc = yes; then
5464 cat >>confdefs.h <<\_ACEOF
5465 #define STDC_HEADERS 1
5470 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5480 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5481 inttypes.h stdint.h unistd.h
5483 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5484 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5486 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5487 echo $ECHO_N "(cached) $ECHO_C" >&6
5489 cat >conftest.$ac_ext <<_ACEOF
5492 cat confdefs.h >>conftest.$ac_ext
5493 cat >>conftest.$ac_ext <<_ACEOF
5494 /* end confdefs.h. */
5495 $ac_includes_default
5497 #include <$ac_header>
5499 rm -f conftest.$ac_objext
5500 if { (ac_try="$ac_compile"
5502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5503 *) ac_try_echo=$ac_try;;
5505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5506 (eval "$ac_compile") 2>conftest.er1
5508 grep -v '^ *+' conftest.er1 >conftest.err
5510 cat conftest.err >&5
5511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512 (exit $ac_status); } && {
5513 test -z "$ac_c_werror_flag" ||
5514 test ! -s conftest.err
5515 } && test -s conftest.$ac_objext; then
5516 eval "$as_ac_Header=yes"
5518 echo "$as_me: failed program was:" >&5
5519 sed 's/^/| /' conftest.$ac_ext >&5
5521 eval "$as_ac_Header=no"
5524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5526 ac_res=`eval echo '${'$as_ac_Header'}'`
5527 { echo "$as_me:$LINENO: result: $ac_res" >&5
5528 echo "${ECHO_T}$ac_res" >&6; }
5529 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5530 cat >>confdefs.h <<_ACEOF
5531 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5540 for ac_header in dlfcn.h
5542 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5543 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5544 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5546 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5547 echo $ECHO_N "(cached) $ECHO_C" >&6
5549 ac_res=`eval echo '${'$as_ac_Header'}'`
5550 { echo "$as_me:$LINENO: result: $ac_res" >&5
5551 echo "${ECHO_T}$ac_res" >&6; }
5553 # Is the header compilable?
5554 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5555 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5556 cat >conftest.$ac_ext <<_ACEOF
5559 cat confdefs.h >>conftest.$ac_ext
5560 cat >>conftest.$ac_ext <<_ACEOF
5561 /* end confdefs.h. */
5562 $ac_includes_default
5563 #include <$ac_header>
5565 rm -f conftest.$ac_objext
5566 if { (ac_try="$ac_compile"
5568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5569 *) ac_try_echo=$ac_try;;
5571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5572 (eval "$ac_compile") 2>conftest.er1
5574 grep -v '^ *+' conftest.er1 >conftest.err
5576 cat conftest.err >&5
5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578 (exit $ac_status); } && {
5579 test -z "$ac_c_werror_flag" ||
5580 test ! -s conftest.err
5581 } && test -s conftest.$ac_objext; then
5582 ac_header_compiler=yes
5584 echo "$as_me: failed program was:" >&5
5585 sed 's/^/| /' conftest.$ac_ext >&5
5587 ac_header_compiler=no
5590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5591 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5592 echo "${ECHO_T}$ac_header_compiler" >&6; }
5594 # Is the header present?
5595 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5596 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5597 cat >conftest.$ac_ext <<_ACEOF
5600 cat confdefs.h >>conftest.$ac_ext
5601 cat >>conftest.$ac_ext <<_ACEOF
5602 /* end confdefs.h. */
5603 #include <$ac_header>
5605 if { (ac_try="$ac_cpp conftest.$ac_ext"
5607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5608 *) ac_try_echo=$ac_try;;
5610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5611 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5613 grep -v '^ *+' conftest.er1 >conftest.err
5615 cat conftest.err >&5
5616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617 (exit $ac_status); } >/dev/null && {
5618 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5619 test ! -s conftest.err
5621 ac_header_preproc=yes
5623 echo "$as_me: failed program was:" >&5
5624 sed 's/^/| /' conftest.$ac_ext >&5
5626 ac_header_preproc=no
5629 rm -f conftest.err conftest.$ac_ext
5630 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5631 echo "${ECHO_T}$ac_header_preproc" >&6; }
5633 # So? What about this header?
5634 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5636 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5637 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5638 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5639 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5640 ac_header_preproc=yes
5643 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5644 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5645 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5646 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5647 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5648 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5649 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5650 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5651 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5652 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5653 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5654 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5656 ## -------------------------------------------------- ##
5657 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
5658 ## -------------------------------------------------- ##
5660 ) | sed "s/^/$as_me: WARNING: /" >&2
5663 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5666 echo $ECHO_N "(cached) $ECHO_C" >&6
5668 eval "$as_ac_Header=\$ac_header_preproc"
5670 ac_res=`eval echo '${'$as_ac_Header'}'`
5671 { echo "$as_me:$LINENO: result: $ac_res" >&5
5672 echo "${ECHO_T}$ac_res" >&6; }
5675 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5676 cat >>confdefs.h <<_ACEOF
5677 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5685 ac_cpp='$CXXCPP $CPPFLAGS'
5686 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5687 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5688 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5689 if test -z "$CXX"; then
5690 if test -n "$CCC"; then
5693 if test -n "$ac_tool_prefix"; then
5694 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5696 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5697 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5700 if test "${ac_cv_prog_CXX+set}" = set; then
5701 echo $ECHO_N "(cached) $ECHO_C" >&6
5703 if test -n "$CXX"; then
5704 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5710 test -z "$as_dir" && as_dir=.
5711 for ac_exec_ext in '' $ac_executable_extensions; do
5712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5713 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5724 if test -n "$CXX"; then
5725 { echo "$as_me:$LINENO: result: $CXX" >&5
5726 echo "${ECHO_T}$CXX" >&6; }
5728 { echo "$as_me:$LINENO: result: no" >&5
5729 echo "${ECHO_T}no" >&6; }
5733 test -n "$CXX" && break
5736 if test -z "$CXX"; then
5738 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5740 # Extract the first word of "$ac_prog", so it can be a program name with args.
5741 set dummy $ac_prog; ac_word=$2
5742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5744 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5745 echo $ECHO_N "(cached) $ECHO_C" >&6
5747 if test -n "$ac_ct_CXX"; then
5748 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5754 test -z "$as_dir" && as_dir=.
5755 for ac_exec_ext in '' $ac_executable_extensions; do
5756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5757 ac_cv_prog_ac_ct_CXX="$ac_prog"
5758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5767 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5768 if test -n "$ac_ct_CXX"; then
5769 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5770 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5772 { echo "$as_me:$LINENO: result: no" >&5
5773 echo "${ECHO_T}no" >&6; }
5777 test -n "$ac_ct_CXX" && break
5780 if test "x$ac_ct_CXX" = x; then
5783 case $cross_compiling:$ac_tool_warned in
5785 { echo "$as_me:$LINENO: 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." >&5
5788 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5789 whose name does not start with the host triplet. If you think this
5790 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5791 ac_tool_warned=yes ;;
5799 # Provide some information about the compiler.
5800 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5801 ac_compiler=`set X $ac_compile; echo $2`
5802 { (ac_try="$ac_compiler --version >&5"
5804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5805 *) ac_try_echo=$ac_try;;
5807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5808 (eval "$ac_compiler --version >&5") 2>&5
5810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); }
5812 { (ac_try="$ac_compiler -v >&5"
5814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5815 *) ac_try_echo=$ac_try;;
5817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5818 (eval "$ac_compiler -v >&5") 2>&5
5820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821 (exit $ac_status); }
5822 { (ac_try="$ac_compiler -V >&5"
5824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5825 *) ac_try_echo=$ac_try;;
5827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5828 (eval "$ac_compiler -V >&5") 2>&5
5830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831 (exit $ac_status); }
5833 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5834 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5835 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5836 echo $ECHO_N "(cached) $ECHO_C" >&6
5838 cat >conftest.$ac_ext <<_ACEOF
5841 cat confdefs.h >>conftest.$ac_ext
5842 cat >>conftest.$ac_ext <<_ACEOF
5843 /* end confdefs.h. */
5856 rm -f conftest.$ac_objext
5857 if { (ac_try="$ac_compile"
5859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5860 *) ac_try_echo=$ac_try;;
5862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5863 (eval "$ac_compile") 2>conftest.er1
5865 grep -v '^ *+' conftest.er1 >conftest.err
5867 cat conftest.err >&5
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); } && {
5870 test -z "$ac_cxx_werror_flag" ||
5871 test ! -s conftest.err
5872 } && test -s conftest.$ac_objext; then
5875 echo "$as_me: failed program was:" >&5
5876 sed 's/^/| /' conftest.$ac_ext >&5
5881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5882 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5885 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5886 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5887 GXX=`test $ac_compiler_gnu = yes && echo yes`
5888 ac_test_CXXFLAGS=${CXXFLAGS+set}
5889 ac_save_CXXFLAGS=$CXXFLAGS
5890 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5891 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5892 if test "${ac_cv_prog_cxx_g+set}" = set; then
5893 echo $ECHO_N "(cached) $ECHO_C" >&6
5895 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5896 ac_cxx_werror_flag=yes
5899 cat >conftest.$ac_ext <<_ACEOF
5902 cat confdefs.h >>conftest.$ac_ext
5903 cat >>conftest.$ac_ext <<_ACEOF
5904 /* end confdefs.h. */
5914 rm -f conftest.$ac_objext
5915 if { (ac_try="$ac_compile"
5917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5918 *) ac_try_echo=$ac_try;;
5920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5921 (eval "$ac_compile") 2>conftest.er1
5923 grep -v '^ *+' conftest.er1 >conftest.err
5925 cat conftest.err >&5
5926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927 (exit $ac_status); } && {
5928 test -z "$ac_cxx_werror_flag" ||
5929 test ! -s conftest.err
5930 } && test -s conftest.$ac_objext; then
5931 ac_cv_prog_cxx_g=yes
5933 echo "$as_me: failed program was:" >&5
5934 sed 's/^/| /' conftest.$ac_ext >&5
5937 cat >conftest.$ac_ext <<_ACEOF
5940 cat confdefs.h >>conftest.$ac_ext
5941 cat >>conftest.$ac_ext <<_ACEOF
5942 /* end confdefs.h. */
5952 rm -f conftest.$ac_objext
5953 if { (ac_try="$ac_compile"
5955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5956 *) ac_try_echo=$ac_try;;
5958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5959 (eval "$ac_compile") 2>conftest.er1
5961 grep -v '^ *+' conftest.er1 >conftest.err
5963 cat conftest.err >&5
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); } && {
5966 test -z "$ac_cxx_werror_flag" ||
5967 test ! -s conftest.err
5968 } && test -s conftest.$ac_objext; then
5971 echo "$as_me: failed program was:" >&5
5972 sed 's/^/| /' conftest.$ac_ext >&5
5974 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5976 cat >conftest.$ac_ext <<_ACEOF
5979 cat confdefs.h >>conftest.$ac_ext
5980 cat >>conftest.$ac_ext <<_ACEOF
5981 /* end confdefs.h. */
5991 rm -f conftest.$ac_objext
5992 if { (ac_try="$ac_compile"
5994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5995 *) ac_try_echo=$ac_try;;
5997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5998 (eval "$ac_compile") 2>conftest.er1
6000 grep -v '^ *+' conftest.er1 >conftest.err
6002 cat conftest.err >&5
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); } && {
6005 test -z "$ac_cxx_werror_flag" ||
6006 test ! -s conftest.err
6007 } && test -s conftest.$ac_objext; then
6008 ac_cv_prog_cxx_g=yes
6010 echo "$as_me: failed program was:" >&5
6011 sed 's/^/| /' conftest.$ac_ext >&5
6016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6023 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6025 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6026 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6027 if test "$ac_test_CXXFLAGS" = set; then
6028 CXXFLAGS=$ac_save_CXXFLAGS
6029 elif test $ac_cv_prog_cxx_g = yes; then
6030 if test "$GXX" = yes; then
6036 if test "$GXX" = yes; then
6043 ac_cpp='$CXXCPP $CPPFLAGS'
6044 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6045 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6046 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6048 depcc="$CXX" am_compiler_list=
6050 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6051 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6052 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6053 echo $ECHO_N "(cached) $ECHO_C" >&6
6055 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6056 # We make a subdir and do the tests there. Otherwise we can end up
6057 # making bogus files that we don't know about and never remove. For
6058 # instance it was reported that on HP-UX the gcc test will end up
6059 # making a dummy file named `D' -- because `-MD' means `put the output
6062 # Copy depcomp to subdir because otherwise we won't find it if we're
6063 # using a relative directory.
6064 cp "$am_depcomp" conftest.dir
6066 # We will build objects and dependencies in a subdirectory because
6067 # it helps to detect inapplicable dependency modes. For instance
6068 # both Tru64's cc and ICC support -MD to output dependencies as a
6069 # side effect of compilation, but ICC will put the dependencies in
6070 # the current directory while Tru64 will put them in the object
6074 am_cv_CXX_dependencies_compiler_type=none
6075 if test "$am_compiler_list" = ""; then
6076 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6078 for depmode in $am_compiler_list; do
6079 # Setup a source with many dependencies, because some compilers
6080 # like to wrap large dependency lists on column 80 (with \), and
6081 # we should not choose a depcomp mode which is confused by this.
6083 # We need to recreate these files for each test, as the compiler may
6084 # overwrite some of them when testing with obscure command lines.
6085 # This happens at least with the AIX C compiler.
6087 for i in 1 2 3 4 5 6; do
6088 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6089 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6090 # Solaris 8's {/usr,}/bin/sh.
6091 touch sub/conftst$i.h
6093 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6097 # after this tag, mechanisms are not by side-effect, so they'll
6098 # only be used when explicitly requested
6099 if test "x$enable_dependency_tracking" = xyes; then
6107 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6108 # mode. It turns out that the SunPro C++ compiler does not properly
6109 # handle `-M -o', and we need to detect this.
6110 if depmode=$depmode \
6111 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6112 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6113 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6114 >/dev/null 2>conftest.err &&
6115 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6116 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6117 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6118 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6119 # icc doesn't choke on unknown options, it will just issue warnings
6120 # or remarks (even with -Werror). So we grep stderr for any message
6121 # that says an option was ignored or not supported.
6122 # When given -MP, icc 7.0 and 7.1 complain thusly:
6123 # icc: Command line warning: ignoring option '-M'; no argument required
6124 # The diagnosis changed in icc 8.0:
6125 # icc: Command line remark: option '-MP' not supported
6126 if (grep 'ignoring option' conftest.err ||
6127 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6128 am_cv_CXX_dependencies_compiler_type=$depmode
6137 am_cv_CXX_dependencies_compiler_type=none
6141 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6142 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6143 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6146 test "x$enable_dependency_tracking" != xno \
6147 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6148 am__fastdepCXX_TRUE=
6149 am__fastdepCXX_FALSE='#'
6151 am__fastdepCXX_TRUE='#'
6152 am__fastdepCXX_FALSE=
6158 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6159 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6160 (test "X$CXX" != "Xg++"))) ; then
6162 ac_cpp='$CXXCPP $CPPFLAGS'
6163 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6164 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6165 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6166 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6167 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6168 if test -z "$CXXCPP"; then
6169 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6170 echo $ECHO_N "(cached) $ECHO_C" >&6
6172 # Double quotes because CXXCPP needs to be expanded
6173 for CXXCPP in "$CXX -E" "/lib/cpp"
6176 for ac_cxx_preproc_warn_flag in '' yes
6178 # Use a header file that comes with gcc, so configuring glibc
6179 # with a fresh cross-compiler works.
6180 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6181 # <limits.h> exists even on freestanding compilers.
6182 # On the NeXT, cc -E runs the code through the compiler's parser,
6183 # not just through cpp. "Syntax error" is here to catch this case.
6184 cat >conftest.$ac_ext <<_ACEOF
6187 cat confdefs.h >>conftest.$ac_ext
6188 cat >>conftest.$ac_ext <<_ACEOF
6189 /* end confdefs.h. */
6191 # include <limits.h>
6193 # include <assert.h>
6197 if { (ac_try="$ac_cpp conftest.$ac_ext"
6199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6200 *) ac_try_echo=$ac_try;;
6202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6203 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6205 grep -v '^ *+' conftest.er1 >conftest.err
6207 cat conftest.err >&5
6208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209 (exit $ac_status); } >/dev/null && {
6210 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6211 test ! -s conftest.err
6215 echo "$as_me: failed program was:" >&5
6216 sed 's/^/| /' conftest.$ac_ext >&5
6218 # Broken: fails on valid input.
6222 rm -f conftest.err conftest.$ac_ext
6224 # OK, works on sane cases. Now check whether nonexistent headers
6225 # can be detected and how.
6226 cat >conftest.$ac_ext <<_ACEOF
6229 cat confdefs.h >>conftest.$ac_ext
6230 cat >>conftest.$ac_ext <<_ACEOF
6231 /* end confdefs.h. */
6232 #include <ac_nonexistent.h>
6234 if { (ac_try="$ac_cpp conftest.$ac_ext"
6236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6237 *) ac_try_echo=$ac_try;;
6239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6240 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6242 grep -v '^ *+' conftest.er1 >conftest.err
6244 cat conftest.err >&5
6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); } >/dev/null && {
6247 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6248 test ! -s conftest.err
6250 # Broken: success on invalid input.
6253 echo "$as_me: failed program was:" >&5
6254 sed 's/^/| /' conftest.$ac_ext >&5
6256 # Passes both tests.
6261 rm -f conftest.err conftest.$ac_ext
6264 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6265 rm -f conftest.err conftest.$ac_ext
6266 if $ac_preproc_ok; then
6271 ac_cv_prog_CXXCPP=$CXXCPP
6274 CXXCPP=$ac_cv_prog_CXXCPP
6276 ac_cv_prog_CXXCPP=$CXXCPP
6278 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6279 echo "${ECHO_T}$CXXCPP" >&6; }
6281 for ac_cxx_preproc_warn_flag in '' yes
6283 # Use a header file that comes with gcc, so configuring glibc
6284 # with a fresh cross-compiler works.
6285 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6286 # <limits.h> exists even on freestanding compilers.
6287 # On the NeXT, cc -E runs the code through the compiler's parser,
6288 # not just through cpp. "Syntax error" is here to catch this case.
6289 cat >conftest.$ac_ext <<_ACEOF
6292 cat confdefs.h >>conftest.$ac_ext
6293 cat >>conftest.$ac_ext <<_ACEOF
6294 /* end confdefs.h. */
6296 # include <limits.h>
6298 # include <assert.h>
6302 if { (ac_try="$ac_cpp conftest.$ac_ext"
6304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6305 *) ac_try_echo=$ac_try;;
6307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6308 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6310 grep -v '^ *+' conftest.er1 >conftest.err
6312 cat conftest.err >&5
6313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); } >/dev/null && {
6315 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6316 test ! -s conftest.err
6320 echo "$as_me: failed program was:" >&5
6321 sed 's/^/| /' conftest.$ac_ext >&5
6323 # Broken: fails on valid input.
6327 rm -f conftest.err conftest.$ac_ext
6329 # OK, works on sane cases. Now check whether nonexistent headers
6330 # can be detected and how.
6331 cat >conftest.$ac_ext <<_ACEOF
6334 cat confdefs.h >>conftest.$ac_ext
6335 cat >>conftest.$ac_ext <<_ACEOF
6336 /* end confdefs.h. */
6337 #include <ac_nonexistent.h>
6339 if { (ac_try="$ac_cpp conftest.$ac_ext"
6341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6342 *) ac_try_echo=$ac_try;;
6344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6345 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6347 grep -v '^ *+' conftest.er1 >conftest.err
6349 cat conftest.err >&5
6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); } >/dev/null && {
6352 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6353 test ! -s conftest.err
6355 # Broken: success on invalid input.
6358 echo "$as_me: failed program was:" >&5
6359 sed 's/^/| /' conftest.$ac_ext >&5
6361 # Passes both tests.
6366 rm -f conftest.err conftest.$ac_ext
6369 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6370 rm -f conftest.err conftest.$ac_ext
6371 if $ac_preproc_ok; then
6374 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6375 See \`config.log' for more details." >&5
6376 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6377 See \`config.log' for more details." >&2;}
6378 { (exit 1); exit 1; }; }
6382 ac_cpp='$CXXCPP $CPPFLAGS'
6383 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6384 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6385 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6393 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6395 # find the maximum length of command line arguments
6396 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6397 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6398 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6399 echo $ECHO_N "(cached) $ECHO_C" >&6
6406 # On DJGPP, this test can blow up pretty badly due to problems in libc
6407 # (any single argument exceeding 2000 bytes causes a buffer overrun
6408 # during glob expansion). Even if it were fixed, the result of this
6409 # check would be larger than it should be.
6410 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6414 # Under GNU Hurd, this test is not required because there is
6415 # no limit to the length of command line arguments.
6416 # Libtool will interpret -1 as no limit whatsoever
6417 lt_cv_sys_max_cmd_len=-1;
6421 # On Win9x/ME, this test blows up -- it succeeds, but takes
6422 # about 5 minutes as the teststring grows exponentially.
6423 # Worse, since 9x/ME are not pre-emptively multitasking,
6424 # you end up with a "frozen" computer, even though with patience
6425 # the test eventually succeeds (with a max line length of 256k).
6426 # Instead, let's just punt: use the minimum linelength reported by
6427 # all of the supported platforms: 8192 (on NT/2K/XP).
6428 lt_cv_sys_max_cmd_len=8192;
6432 # On AmigaOS with pdksh, this test takes hours, literally.
6433 # So we just punt and use a minimum line length of 8192.
6434 lt_cv_sys_max_cmd_len=8192;
6437 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6438 # This has been around since 386BSD, at least. Likely further.
6439 if test -x /sbin/sysctl; then
6440 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6441 elif test -x /usr/sbin/sysctl; then
6442 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6444 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6446 # And add a safety zone
6447 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6448 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6452 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6453 lt_cv_sys_max_cmd_len=196608
6457 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6458 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6459 # nice to cause kernel panics so lets avoid the loop below.
6460 # First set a reasonable default.
6461 lt_cv_sys_max_cmd_len=16384
6463 if test -x /sbin/sysconfig; then
6464 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6465 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6470 lt_cv_sys_max_cmd_len=102400
6472 sysv5* | sco5v6* | sysv4.2uw2*)
6473 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6474 if test -n "$kargmax"; then
6475 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6477 lt_cv_sys_max_cmd_len=32768
6481 # If test is not a shell built-in, we'll probably end up computing a
6482 # maximum length that is only half of the actual maximum length, but
6484 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6485 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6486 = "XX$teststring") >/dev/null 2>&1 &&
6487 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6488 lt_cv_sys_max_cmd_len=$new_result &&
6489 test $i != 17 # 1/2 MB should be enough
6492 teststring=$teststring$teststring
6495 # Add a significant safety factor because C++ compilers can tack on massive
6496 # amounts of additional arguments before passing them to the linker.
6497 # It appears as though 1/2 is a usable value.
6498 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6504 if test -n $lt_cv_sys_max_cmd_len ; then
6505 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6506 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6508 { echo "$as_me:$LINENO: result: none" >&5
6509 echo "${ECHO_T}none" >&6; }
6515 # Check for command to grab the raw symbol name followed by C symbol from nm.
6516 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6517 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6518 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6519 echo $ECHO_N "(cached) $ECHO_C" >&6
6522 # These are sane defaults that work on at least a few old systems.
6523 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6525 # Character class describing NM global symbol codes.
6526 symcode='[BCDEGRST]'
6528 # Regexp to match symbols that can be accessed directly from C.
6529 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6531 # Transform an extracted symbol line into a proper C declaration
6532 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6534 # Transform an extracted symbol line into symbol name and symbol address
6535 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'"
6537 # Define system-specific variables.
6542 cygwin* | mingw* | pw32*)
6543 symcode='[ABCDGISTW]'
6545 hpux*) # Its linker distinguishes data from code symbols
6546 if test "$host_cpu" = ia64; then
6547 symcode='[ABCDEGRST]'
6549 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6550 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'"
6552 linux* | k*bsd*-gnu)
6553 if test "$host_cpu" = ia64; then
6554 symcode='[ABCDGIRSTW]'
6555 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6556 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'"
6560 symcode='[BCDEGRST]'
6563 symcode='[BCDEGQRST]'
6574 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6582 # Handle CRLF in mingw tool chain
6586 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6590 # If we're using GNU nm, then use its standard symbol codes.
6591 case `$NM -V 2>&1` in
6592 *GNU* | *'with BFD'*)
6593 symcode='[ABCDGIRSTW]' ;;
6596 # Try without a prefix undercore, then with it.
6597 for ac_symprfx in "" "_"; do
6599 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6600 symxfrm="\\1 $ac_symprfx\\2 \\2"
6602 # Write the raw and C identifiers.
6603 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6605 # Check to see that the pipe works correctly.
6609 cat > conftest.$ac_ext <<EOF
6614 void nm_test_func(){}
6618 int main(){nm_test_var='a';nm_test_func();return(0);}
6621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6622 (eval $ac_compile) 2>&5
6624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625 (exit $ac_status); }; then
6626 # Now try to grab the symbols.
6628 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6629 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632 (exit $ac_status); } && test -s "$nlist"; then
6633 # Try sorting and uniquifying the output.
6634 if sort "$nlist" | uniq > "$nlist"T; then
6635 mv -f "$nlist"T "$nlist"
6640 # Make sure that we snagged all the symbols we need.
6641 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6642 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6643 cat <<EOF > conftest.$ac_ext
6649 # Now generate the symbol file.
6650 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6652 cat <<EOF >> conftest.$ac_ext
6653 #if defined (__STDC__) && __STDC__
6654 # define lt_ptr_t void *
6656 # define lt_ptr_t char *
6660 /* The mapping between symbol names and symbols. */
6665 lt_preloaded_symbols[] =
6668 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6669 cat <<\EOF >> conftest.$ac_ext
6677 # Now try linking the two files.
6678 mv conftest.$ac_objext conftstm.$ac_objext
6679 lt_save_LIBS="$LIBS"
6680 lt_save_CFLAGS="$CFLAGS"
6681 LIBS="conftstm.$ac_objext"
6682 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6684 (eval $ac_link) 2>&5
6686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6690 LIBS="$lt_save_LIBS"
6691 CFLAGS="$lt_save_CFLAGS"
6693 echo "cannot find nm_test_func in $nlist" >&5
6696 echo "cannot find nm_test_var in $nlist" >&5
6699 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6702 echo "$progname: failed program was:" >&5
6703 cat conftest.$ac_ext >&5
6705 rm -f conftest* conftst*
6707 # Do not use the global_symbol_pipe unless it works.
6708 if test "$pipe_works" = yes; then
6711 lt_cv_sys_global_symbol_pipe=
6717 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6718 lt_cv_sys_global_symbol_to_cdecl=
6720 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6721 { echo "$as_me:$LINENO: result: failed" >&5
6722 echo "${ECHO_T}failed" >&6; }
6724 { echo "$as_me:$LINENO: result: ok" >&5
6725 echo "${ECHO_T}ok" >&6; }
6728 { echo "$as_me:$LINENO: checking for objdir" >&5
6729 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6730 if test "${lt_cv_objdir+set}" = set; then
6731 echo $ECHO_N "(cached) $ECHO_C" >&6
6733 rm -f .libs 2>/dev/null
6734 mkdir .libs 2>/dev/null
6735 if test -d .libs; then
6738 # MS-DOS does not allow filenames that begin with a dot.
6741 rmdir .libs 2>/dev/null
6743 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6744 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6745 objdir=$lt_cv_objdir
6753 # AIX sometimes has problems with the GCC collect2 program. For some
6754 # reason, if we set the COLLECT_NAMES environment variable, the problems
6755 # vanish in a puff of smoke.
6756 if test "X${COLLECT_NAMES+set}" != Xset; then
6758 export COLLECT_NAMES
6763 # Sed substitution that helps us do robust quoting. It backslashifies
6764 # metacharacters that are still active within double-quoted strings.
6765 Xsed='sed -e 1s/^X//'
6766 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6768 # Same as above, but do not quote variable references.
6769 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6771 # Sed substitution to delay expansion of an escaped shell variable in a
6772 # double_quote_subst'ed string.
6773 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6775 # Sed substitution to avoid accidental globbing in evaled expressions
6776 no_glob_subst='s/\*/\\\*/g'
6782 default_ofile=libtool
6783 can_build_shared=yes
6785 # All known linkers require a `.a' archive for static linking (except MSVC,
6786 # which needs '.lib').
6788 ltmain="$ac_aux_dir/ltmain.sh"
6789 ofile="$default_ofile"
6790 with_gnu_ld="$lt_cv_prog_gnu_ld"
6792 if test -n "$ac_tool_prefix"; then
6793 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6794 set dummy ${ac_tool_prefix}ar; ac_word=$2
6795 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6797 if test "${ac_cv_prog_AR+set}" = set; then
6798 echo $ECHO_N "(cached) $ECHO_C" >&6
6800 if test -n "$AR"; then
6801 ac_cv_prog_AR="$AR" # Let the user override the test.
6803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807 test -z "$as_dir" && as_dir=.
6808 for ac_exec_ext in '' $ac_executable_extensions; do
6809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6810 ac_cv_prog_AR="${ac_tool_prefix}ar"
6811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6821 if test -n "$AR"; then
6822 { echo "$as_me:$LINENO: result: $AR" >&5
6823 echo "${ECHO_T}$AR" >&6; }
6825 { echo "$as_me:$LINENO: result: no" >&5
6826 echo "${ECHO_T}no" >&6; }
6831 if test -z "$ac_cv_prog_AR"; then
6833 # Extract the first word of "ar", so it can be a program name with args.
6834 set dummy ar; ac_word=$2
6835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6837 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6838 echo $ECHO_N "(cached) $ECHO_C" >&6
6840 if test -n "$ac_ct_AR"; then
6841 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6847 test -z "$as_dir" && as_dir=.
6848 for ac_exec_ext in '' $ac_executable_extensions; do
6849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6850 ac_cv_prog_ac_ct_AR="ar"
6851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6860 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6861 if test -n "$ac_ct_AR"; then
6862 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6863 echo "${ECHO_T}$ac_ct_AR" >&6; }
6865 { echo "$as_me:$LINENO: result: no" >&5
6866 echo "${ECHO_T}no" >&6; }
6869 if test "x$ac_ct_AR" = x; then
6872 case $cross_compiling:$ac_tool_warned in
6874 { echo "$as_me:$LINENO: 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." >&5
6877 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6878 whose name does not start with the host triplet. If you think this
6879 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6880 ac_tool_warned=yes ;;
6888 if test -n "$ac_tool_prefix"; then
6889 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6890 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6891 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6893 if test "${ac_cv_prog_RANLIB+set}" = set; then
6894 echo $ECHO_N "(cached) $ECHO_C" >&6
6896 if test -n "$RANLIB"; then
6897 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6903 test -z "$as_dir" && as_dir=.
6904 for ac_exec_ext in '' $ac_executable_extensions; do
6905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6906 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6916 RANLIB=$ac_cv_prog_RANLIB
6917 if test -n "$RANLIB"; then
6918 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6919 echo "${ECHO_T}$RANLIB" >&6; }
6921 { echo "$as_me:$LINENO: result: no" >&5
6922 echo "${ECHO_T}no" >&6; }
6927 if test -z "$ac_cv_prog_RANLIB"; then
6928 ac_ct_RANLIB=$RANLIB
6929 # Extract the first word of "ranlib", so it can be a program name with args.
6930 set dummy ranlib; ac_word=$2
6931 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6933 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6934 echo $ECHO_N "(cached) $ECHO_C" >&6
6936 if test -n "$ac_ct_RANLIB"; then
6937 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943 test -z "$as_dir" && as_dir=.
6944 for ac_exec_ext in '' $ac_executable_extensions; do
6945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6946 ac_cv_prog_ac_ct_RANLIB="ranlib"
6947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6956 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6957 if test -n "$ac_ct_RANLIB"; then
6958 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6959 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6961 { echo "$as_me:$LINENO: result: no" >&5
6962 echo "${ECHO_T}no" >&6; }
6965 if test "x$ac_ct_RANLIB" = x; then
6968 case $cross_compiling:$ac_tool_warned in
6970 { echo "$as_me:$LINENO: 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." >&5
6973 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6974 whose name does not start with the host triplet. If you think this
6975 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6976 ac_tool_warned=yes ;;
6978 RANLIB=$ac_ct_RANLIB
6981 RANLIB="$ac_cv_prog_RANLIB"
6984 if test -n "$ac_tool_prefix"; then
6985 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6986 set dummy ${ac_tool_prefix}strip; ac_word=$2
6987 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6989 if test "${ac_cv_prog_STRIP+set}" = set; then
6990 echo $ECHO_N "(cached) $ECHO_C" >&6
6992 if test -n "$STRIP"; then
6993 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999 test -z "$as_dir" && as_dir=.
7000 for ac_exec_ext in '' $ac_executable_extensions; do
7001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7002 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7012 STRIP=$ac_cv_prog_STRIP
7013 if test -n "$STRIP"; then
7014 { echo "$as_me:$LINENO: result: $STRIP" >&5
7015 echo "${ECHO_T}$STRIP" >&6; }
7017 { echo "$as_me:$LINENO: result: no" >&5
7018 echo "${ECHO_T}no" >&6; }
7023 if test -z "$ac_cv_prog_STRIP"; then
7025 # Extract the first word of "strip", so it can be a program name with args.
7026 set dummy strip; ac_word=$2
7027 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7029 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7030 echo $ECHO_N "(cached) $ECHO_C" >&6
7032 if test -n "$ac_ct_STRIP"; then
7033 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7039 test -z "$as_dir" && as_dir=.
7040 for ac_exec_ext in '' $ac_executable_extensions; do
7041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7042 ac_cv_prog_ac_ct_STRIP="strip"
7043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7052 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7053 if test -n "$ac_ct_STRIP"; then
7054 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7055 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7057 { echo "$as_me:$LINENO: result: no" >&5
7058 echo "${ECHO_T}no" >&6; }
7061 if test "x$ac_ct_STRIP" = x; then
7064 case $cross_compiling:$ac_tool_warned in
7066 { echo "$as_me:$LINENO: 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." >&5
7069 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7070 whose name does not start with the host triplet. If you think this
7071 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7072 ac_tool_warned=yes ;;
7077 STRIP="$ac_cv_prog_STRIP"
7082 old_CFLAGS="$CFLAGS"
7084 # Set sane defaults for various variables
7085 test -z "$AR" && AR=ar
7086 test -z "$AR_FLAGS" && AR_FLAGS=cru
7087 test -z "$AS" && AS=as
7088 test -z "$CC" && CC=cc
7089 test -z "$LTCC" && LTCC=$CC
7090 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7091 test -z "$DLLTOOL" && DLLTOOL=dlltool
7092 test -z "$LD" && LD=ld
7093 test -z "$LN_S" && LN_S="ln -s"
7094 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7095 test -z "$NM" && NM=nm
7096 test -z "$SED" && SED=sed
7097 test -z "$OBJDUMP" && OBJDUMP=objdump
7098 test -z "$RANLIB" && RANLIB=:
7099 test -z "$STRIP" && STRIP=:
7100 test -z "$ac_objext" && ac_objext=o
7102 # Determine commands to create old-style static archives.
7103 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7104 old_postinstall_cmds='chmod 644 $oldlib'
7105 old_postuninstall_cmds=
7107 if test -n "$RANLIB"; then
7110 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7113 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7116 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7119 for cc_temp in $compiler""; do
7121 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7122 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7127 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7130 # Only perform the check for file, if the check method requires it
7131 case $deplibs_check_method in
7133 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7134 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7135 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7136 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7137 echo $ECHO_N "(cached) $ECHO_C" >&6
7141 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7144 lt_save_MAGIC_CMD="$MAGIC_CMD"
7145 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7146 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7147 for ac_dir in $ac_dummy; do
7149 test -z "$ac_dir" && ac_dir=.
7150 if test -f $ac_dir/${ac_tool_prefix}file; then
7151 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7152 if test -n "$file_magic_test_file"; then
7153 case $deplibs_check_method in
7155 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7156 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7157 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7158 $EGREP "$file_magic_regex" > /dev/null; then
7163 *** Warning: the command libtool uses to detect shared libraries,
7164 *** $file_magic_cmd, produces output that libtool cannot recognize.
7165 *** The result is that libtool may fail to recognize shared libraries
7166 *** as such. This will affect the creation of libtool libraries that
7167 *** depend on shared libraries, but programs linked with such libtool
7168 *** libraries will work regardless of this problem. Nevertheless, you
7169 *** may want to report the problem to your system manager and/or to
7170 *** bug-libtool@gnu.org
7180 MAGIC_CMD="$lt_save_MAGIC_CMD"
7185 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7186 if test -n "$MAGIC_CMD"; then
7187 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7188 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7190 { echo "$as_me:$LINENO: result: no" >&5
7191 echo "${ECHO_T}no" >&6; }
7194 if test -z "$lt_cv_path_MAGIC_CMD"; then
7195 if test -n "$ac_tool_prefix"; then
7196 { echo "$as_me:$LINENO: checking for file" >&5
7197 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7198 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7199 echo $ECHO_N "(cached) $ECHO_C" >&6
7203 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7206 lt_save_MAGIC_CMD="$MAGIC_CMD"
7207 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7208 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7209 for ac_dir in $ac_dummy; do
7211 test -z "$ac_dir" && ac_dir=.
7212 if test -f $ac_dir/file; then
7213 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7214 if test -n "$file_magic_test_file"; then
7215 case $deplibs_check_method in
7217 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7218 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7219 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7220 $EGREP "$file_magic_regex" > /dev/null; then
7225 *** Warning: the command libtool uses to detect shared libraries,
7226 *** $file_magic_cmd, produces output that libtool cannot recognize.
7227 *** The result is that libtool may fail to recognize shared libraries
7228 *** as such. This will affect the creation of libtool libraries that
7229 *** depend on shared libraries, but programs linked with such libtool
7230 *** libraries will work regardless of this problem. Nevertheless, you
7231 *** may want to report the problem to your system manager and/or to
7232 *** bug-libtool@gnu.org
7242 MAGIC_CMD="$lt_save_MAGIC_CMD"
7247 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7248 if test -n "$MAGIC_CMD"; then
7249 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7250 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7252 { echo "$as_me:$LINENO: result: no" >&5
7253 echo "${ECHO_T}no" >&6; }
7266 enable_win32_dll=yes
7268 # Check whether --enable-libtool-lock was given.
7269 if test "${enable_libtool_lock+set}" = set; then
7270 enableval=$enable_libtool_lock;
7273 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7276 # Check whether --with-pic was given.
7277 if test "${with_pic+set}" = set; then
7278 withval=$with_pic; pic_mode="$withval"
7283 test -z "$pic_mode" && pic_mode=default
7285 # Use C for the default configuration in the libtool script
7289 ac_cpp='$CPP $CPPFLAGS'
7290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7295 # Source file extension for C test sources.
7298 # Object file extension for compiled C test sources.
7302 # Code to be used in simple compile tests
7303 lt_simple_compile_test_code="int some_variable = 0;\n"
7305 # Code to be used in simple link tests
7306 lt_simple_link_test_code='int main(){return(0);}\n'
7309 # If no C compiler was specified, use CC.
7312 # If no C compiler flags were specified, use CFLAGS.
7313 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7315 # Allow CC to be a program name with arguments.
7319 # save warnings/boilerplate of simple test code
7320 ac_outfile=conftest.$ac_objext
7321 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7322 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7323 _lt_compiler_boilerplate=`cat conftest.err`
7326 ac_outfile=conftest.$ac_objext
7327 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7328 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7329 _lt_linker_boilerplate=`cat conftest.err`
7334 lt_prog_compiler_no_builtin_flag=
7336 if test "$GCC" = yes; then
7337 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7340 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7341 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7342 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7343 echo $ECHO_N "(cached) $ECHO_C" >&6
7345 lt_cv_prog_compiler_rtti_exceptions=no
7346 ac_outfile=conftest.$ac_objext
7347 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7348 lt_compiler_flag="-fno-rtti -fno-exceptions"
7349 # Insert the option either (1) after the last *FLAGS variable, or
7350 # (2) before a word containing "conftest.", or (3) at the end.
7351 # Note that $ac_compile itself does not contain backslashes and begins
7352 # with a dollar sign (not a hyphen), so the echo should work correctly.
7353 # The option is referenced via a variable to avoid confusing sed.
7354 lt_compile=`echo "$ac_compile" | $SED \
7355 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7356 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7357 -e 's:$: $lt_compiler_flag:'`
7358 (eval echo "\"\$as_me:7358: $lt_compile\"" >&5)
7359 (eval "$lt_compile" 2>conftest.err)
7361 cat conftest.err >&5
7362 echo "$as_me:7362: \$? = $ac_status" >&5
7363 if (exit $ac_status) && test -s "$ac_outfile"; then
7364 # The compiler can only warn and ignore the option if not recognized
7365 # So say no if there are warnings other than the usual output.
7366 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7367 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7368 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7369 lt_cv_prog_compiler_rtti_exceptions=yes
7375 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7376 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7378 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7379 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7386 lt_prog_compiler_wl=
7387 lt_prog_compiler_pic=
7388 lt_prog_compiler_static=
7390 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7391 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7393 if test "$GCC" = yes; then
7394 lt_prog_compiler_wl='-Wl,'
7395 lt_prog_compiler_static='-static'
7399 # All AIX code is PIC.
7400 if test "$host_cpu" = ia64; then
7401 # AIX 5 now supports IA64 processor
7402 lt_prog_compiler_static='-Bstatic'
7407 # FIXME: we need at least 68020 code to build shared libraries, but
7408 # adding the `-m68020' flag to GCC prevents building anything better,
7410 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7413 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7414 # PIC is the default for these OSes.
7417 mingw* | pw32* | os2*)
7418 # This hack is so that the source file can tell whether it is being
7419 # built for inclusion in a dll (and should export symbols for example).
7420 lt_prog_compiler_pic='-DDLL_EXPORT'
7423 darwin* | rhapsody*)
7424 # PIC is the default on this platform
7425 # Common symbols not allowed in MH_DYLIB files
7426 lt_prog_compiler_pic='-fno-common'
7430 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7431 # Instead, we relocate shared libraries at runtime.
7435 # Just because we use GCC doesn't mean we suddenly get shared libraries
7436 # on systems that don't support them.
7437 lt_prog_compiler_can_build_shared=no
7442 if test -d /usr/nec; then
7443 lt_prog_compiler_pic=-Kconform_pic
7448 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7455 lt_prog_compiler_pic='-fPIC'
7461 lt_prog_compiler_pic='-fPIC'
7465 # PORTME Check for flag to pass linker flags through the system compiler.
7468 lt_prog_compiler_wl='-Wl,'
7469 if test "$host_cpu" = ia64; then
7470 # AIX 5 now supports IA64 processor
7471 lt_prog_compiler_static='-Bstatic'
7473 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7477 # PIC is the default on this platform
7478 # Common symbols not allowed in MH_DYLIB files
7479 case $cc_basename in
7481 lt_prog_compiler_pic='-qnocommon'
7482 lt_prog_compiler_wl='-Wl,'
7487 mingw* | pw32* | os2*)
7488 # This hack is so that the source file can tell whether it is being
7489 # built for inclusion in a dll (and should export symbols for example).
7490 lt_prog_compiler_pic='-DDLL_EXPORT'
7493 hpux9* | hpux10* | hpux11*)
7494 lt_prog_compiler_wl='-Wl,'
7495 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7502 lt_prog_compiler_pic='+Z'
7505 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7506 lt_prog_compiler_static='${wl}-a ${wl}archive'
7509 irix5* | irix6* | nonstopux*)
7510 lt_prog_compiler_wl='-Wl,'
7511 # PIC (with -KPIC) is the default.
7512 lt_prog_compiler_static='-non_shared'
7516 lt_prog_compiler_pic='-KPIC'
7517 lt_prog_compiler_static='-Bstatic'
7520 linux* | k*bsd*-gnu)
7521 case $cc_basename in
7523 lt_prog_compiler_wl='-Wl,'
7524 lt_prog_compiler_pic='-KPIC'
7525 lt_prog_compiler_static='-static'
7527 pgcc* | pgf77* | pgf90* | pgf95*)
7528 # Portland Group compilers (*not* the Pentium gcc compiler,
7529 # which looks to be a dead project)
7530 lt_prog_compiler_wl='-Wl,'
7531 lt_prog_compiler_pic='-fpic'
7532 lt_prog_compiler_static='-Bstatic'
7535 lt_prog_compiler_wl='-Wl,'
7536 # All Alpha code is PIC.
7537 lt_prog_compiler_static='-non_shared'
7542 osf3* | osf4* | osf5*)
7543 lt_prog_compiler_wl='-Wl,'
7544 # All OSF/1 code is PIC.
7545 lt_prog_compiler_static='-non_shared'
7549 lt_prog_compiler_pic='-KPIC'
7550 lt_prog_compiler_static='-Bstatic'
7551 case $cc_basename in
7553 lt_prog_compiler_wl='-Qoption ld ';;
7555 lt_prog_compiler_wl='-Wl,';;
7560 lt_prog_compiler_wl='-Qoption ld '
7561 lt_prog_compiler_pic='-PIC'
7562 lt_prog_compiler_static='-Bstatic'
7565 sysv4 | sysv4.2uw2* | sysv4.3*)
7566 lt_prog_compiler_wl='-Wl,'
7567 lt_prog_compiler_pic='-KPIC'
7568 lt_prog_compiler_static='-Bstatic'
7572 if test -d /usr/nec ;then
7573 lt_prog_compiler_pic='-Kconform_pic'
7574 lt_prog_compiler_static='-Bstatic'
7578 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7579 lt_prog_compiler_wl='-Wl,'
7580 lt_prog_compiler_pic='-KPIC'
7581 lt_prog_compiler_static='-Bstatic'
7585 lt_prog_compiler_wl='-Wl,'
7586 lt_prog_compiler_can_build_shared=no
7590 lt_prog_compiler_pic='-pic'
7591 lt_prog_compiler_static='-Bstatic'
7595 lt_prog_compiler_can_build_shared=no
7600 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7601 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7604 # Check to make sure the PIC flag actually works.
7606 if test -n "$lt_prog_compiler_pic"; then
7608 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7609 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7610 if test "${lt_prog_compiler_pic_works+set}" = set; then
7611 echo $ECHO_N "(cached) $ECHO_C" >&6
7613 lt_prog_compiler_pic_works=no
7614 ac_outfile=conftest.$ac_objext
7615 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7616 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7617 # Insert the option either (1) after the last *FLAGS variable, or
7618 # (2) before a word containing "conftest.", or (3) at the end.
7619 # Note that $ac_compile itself does not contain backslashes and begins
7620 # with a dollar sign (not a hyphen), so the echo should work correctly.
7621 # The option is referenced via a variable to avoid confusing sed.
7622 lt_compile=`echo "$ac_compile" | $SED \
7623 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7624 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7625 -e 's:$: $lt_compiler_flag:'`
7626 (eval echo "\"\$as_me:7626: $lt_compile\"" >&5)
7627 (eval "$lt_compile" 2>conftest.err)
7629 cat conftest.err >&5
7630 echo "$as_me:7630: \$? = $ac_status" >&5
7631 if (exit $ac_status) && test -s "$ac_outfile"; then
7632 # The compiler can only warn and ignore the option if not recognized
7633 # So say no if there are warnings other than the usual output.
7634 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7635 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7636 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7637 lt_prog_compiler_pic_works=yes
7643 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7644 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7646 if test x"$lt_prog_compiler_pic_works" = xyes; then
7647 case $lt_prog_compiler_pic in
7649 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7652 lt_prog_compiler_pic=
7653 lt_prog_compiler_can_build_shared=no
7658 # For platforms which do not support PIC, -DPIC is meaningless:
7660 lt_prog_compiler_pic=
7663 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7668 # Check to make sure the static flag actually works.
7670 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7671 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7672 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7673 if test "${lt_prog_compiler_static_works+set}" = set; then
7674 echo $ECHO_N "(cached) $ECHO_C" >&6
7676 lt_prog_compiler_static_works=no
7677 save_LDFLAGS="$LDFLAGS"
7678 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7679 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7680 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7681 # The linker can only warn and ignore the option if not recognized
7682 # So say no if there are warnings
7683 if test -s conftest.err; then
7684 # Append any errors to the config.log.
7685 cat conftest.err 1>&5
7686 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7687 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7688 if diff conftest.exp conftest.er2 >/dev/null; then
7689 lt_prog_compiler_static_works=yes
7692 lt_prog_compiler_static_works=yes
7696 LDFLAGS="$save_LDFLAGS"
7699 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7700 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7702 if test x"$lt_prog_compiler_static_works" = xyes; then
7705 lt_prog_compiler_static=
7709 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7710 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7711 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7712 echo $ECHO_N "(cached) $ECHO_C" >&6
7714 lt_cv_prog_compiler_c_o=no
7715 $rm -r conftest 2>/dev/null
7719 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7721 lt_compiler_flag="-o out/conftest2.$ac_objext"
7722 # Insert the option either (1) after the last *FLAGS variable, or
7723 # (2) before a word containing "conftest.", or (3) at the end.
7724 # Note that $ac_compile itself does not contain backslashes and begins
7725 # with a dollar sign (not a hyphen), so the echo should work correctly.
7726 lt_compile=`echo "$ac_compile" | $SED \
7727 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7728 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7729 -e 's:$: $lt_compiler_flag:'`
7730 (eval echo "\"\$as_me:7730: $lt_compile\"" >&5)
7731 (eval "$lt_compile" 2>out/conftest.err)
7733 cat out/conftest.err >&5
7734 echo "$as_me:7734: \$? = $ac_status" >&5
7735 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7737 # The compiler can only warn and ignore the option if not recognized
7738 # So say no if there are warnings
7739 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7740 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7741 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7742 lt_cv_prog_compiler_c_o=yes
7747 # SGI C++ compiler will create directory out/ii_files/ for
7748 # template instantiation
7749 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7750 $rm out/* && rmdir out
7756 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7757 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7760 hard_links="nottested"
7761 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7762 # do not overwrite the value of need_locks provided by the user
7763 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7764 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7767 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7769 ln conftest.a conftest.b 2>&5 || hard_links=no
7770 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7771 { echo "$as_me:$LINENO: result: $hard_links" >&5
7772 echo "${ECHO_T}$hard_links" >&6; }
7773 if test "$hard_links" = no; then
7774 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7775 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7782 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7783 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7786 allow_undefined_flag=
7787 enable_shared_with_static_runtimes=no
7789 archive_expsym_cmds=
7790 old_archive_From_new_cmds=
7791 old_archive_from_expsyms_cmds=
7792 export_dynamic_flag_spec=
7793 whole_archive_flag_spec=
7794 thread_safe_flag_spec=
7795 hardcode_libdir_flag_spec=
7796 hardcode_libdir_flag_spec_ld=
7797 hardcode_libdir_separator=
7800 hardcode_shlibpath_var=unsupported
7801 link_all_deplibs=unknown
7802 hardcode_automatic=no
7805 always_export_symbols=no
7806 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7807 # include_expsyms should be a list of space-separated symbols to be *always*
7808 # included in the symbol list
7810 # exclude_expsyms can be an extended regexp of symbols to exclude
7811 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7812 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7813 # as well as any symbol that contains `d'.
7814 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7815 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7816 # platforms (ab)use it in PIC code, but their linkers get confused if
7817 # the symbol is explicitly referenced. Since portable code cannot
7818 # rely on this symbol name, it's probably fine to never include it in
7819 # preloaded symbol tables.
7820 extract_expsyms_cmds=
7821 # Just being paranoid about ensuring that cc_basename is set.
7822 for cc_temp in $compiler""; do
7824 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7825 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7830 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7833 cygwin* | mingw* | pw32*)
7834 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7835 # When not using gcc, we currently assume that we are using
7836 # Microsoft Visual C++.
7837 if test "$GCC" != yes; then
7842 # we just hope/assume this is gcc and not c89 (= MSVC++)
7851 if test "$with_gnu_ld" = yes; then
7852 # If archive_cmds runs LD, not CC, wlarc should be empty
7855 # Set some defaults for GNU ld with shared library support. These
7856 # are reset later if shared libraries are not supported. Putting them
7857 # here allows them to be overridden if necessary.
7858 runpath_var=LD_RUN_PATH
7859 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7860 export_dynamic_flag_spec='${wl}--export-dynamic'
7861 # ancient GNU ld didn't support --whole-archive et. al.
7862 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7863 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7865 whole_archive_flag_spec=
7867 supports_anon_versioning=no
7868 case `$LD -v 2>/dev/null` in
7869 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7870 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7871 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7872 *\ 2.11.*) ;; # other 2.11 versions
7873 *) supports_anon_versioning=yes ;;
7876 # See if GNU ld supports shared libraries.
7878 aix3* | aix4* | aix5*)
7879 # On AIX/PPC, the GNU linker is very broken
7880 if test "$host_cpu" != ia64; then
7884 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7885 *** to be unable to reliably create shared libraries on AIX.
7886 *** Therefore, libtool is disabling shared libraries support. If you
7887 *** really care for shared libraries, you may want to modify your PATH
7888 *** so that a non-GNU linker is found, and then restart.
7895 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)'
7896 hardcode_libdir_flag_spec='-L$libdir'
7897 hardcode_minus_L=yes
7899 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7900 # that the semantics of dynamic libraries on AmigaOS, at least up
7901 # to version 4, is to share data among multiple programs linked
7902 # with the same dynamic library. Since this doesn't match the
7903 # behavior of shared libraries on other platforms, we can't use
7909 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7910 allow_undefined_flag=unsupported
7911 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7912 # support --undefined. This deserves some investigation. FIXME
7913 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7919 cygwin* | mingw* | pw32*)
7920 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7921 # as there is no search path for DLLs.
7922 hardcode_libdir_flag_spec='-L$libdir'
7923 allow_undefined_flag=unsupported
7924 always_export_symbols=no
7925 enable_shared_with_static_runtimes=yes
7926 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7928 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7929 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7930 # If the export-symbols file already is a .def file (1st line
7931 # is EXPORTS), use it as is; otherwise, prepend...
7932 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7933 cp $export_symbols $output_objdir/$soname.def;
7935 echo EXPORTS > $output_objdir/$soname.def;
7936 cat $export_symbols >> $output_objdir/$soname.def;
7938 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7946 hardcode_shlibpath_var=no
7947 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7948 export_dynamic_flag_spec='${wl}-E'
7949 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7950 # Instead, shared libraries are loaded at an image base (0x10000000 by
7951 # default) and relocated if they conflict, which is a slow very memory
7952 # consuming and fragmenting process. To avoid this, we pick a random,
7953 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7954 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7955 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7956 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'
7959 linux* | k*bsd*-gnu)
7960 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7962 case $cc_basename,$host_cpu in
7963 pgcc*) # Portland Group C compiler
7964 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'
7965 tmp_addflag=' $pic_flag'
7967 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7968 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'
7969 tmp_addflag=' $pic_flag -Mnomain' ;;
7970 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7971 tmp_addflag=' -i_dynamic' ;;
7972 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7973 tmp_addflag=' -i_dynamic -nofor_main' ;;
7974 ifc* | ifort*) # Intel Fortran compiler
7975 tmp_addflag=' -nofor_main' ;;
7977 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7979 if test $supports_anon_versioning = yes; then
7980 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7981 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7982 $echo "local: *; };" >> $output_objdir/$libname.ver~
7983 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7991 netbsd* | netbsdelf*-gnu)
7992 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7993 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7996 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7997 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8002 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8006 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8007 *** create shared libraries on Solaris systems. Therefore, libtool
8008 *** is disabling shared libraries support. We urge you to upgrade GNU
8009 *** binutils to release 2.9.1 or newer. Another option is to modify
8010 *** your PATH or compiler configuration so that the native linker is
8011 *** used, and then restart.
8014 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8015 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8016 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8022 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8023 case `$LD -v 2>&1` in
8024 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8028 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8029 *** reliably create shared libraries on SCO systems. Therefore, libtool
8030 *** is disabling shared libraries support. We urge you to upgrade GNU
8031 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8032 *** your PATH or compiler configuration so that the native linker is
8033 *** used, and then restart.
8038 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8039 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8040 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8041 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8050 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8053 hardcode_shlibpath_var=no
8057 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8058 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8059 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8066 if test "$ld_shlibs" = no; then
8068 hardcode_libdir_flag_spec=
8069 export_dynamic_flag_spec=
8070 whole_archive_flag_spec=
8073 # PORTME fill in a description of your system's linker (not GNU ld)
8076 allow_undefined_flag=unsupported
8077 always_export_symbols=yes
8078 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'
8079 # Note: this linker hardcodes the directories in LIBPATH if there
8080 # are no directories specified by -L.
8081 hardcode_minus_L=yes
8082 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8083 # Neither direct hardcoding nor static linking is supported with a
8085 hardcode_direct=unsupported
8090 if test "$host_cpu" = ia64; then
8091 # On IA64, the linker does run time linking by default, so we don't
8092 # have to do anything special.
8093 aix_use_runtimelinking=no
8094 exp_sym_flag='-Bexport'
8097 # If we're using GNU nm, then we don't want the "-C" option.
8098 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8099 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8100 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'
8102 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'
8104 aix_use_runtimelinking=no
8106 # Test if we are trying to use run time linking or normal
8107 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8108 # need to do runtime linking.
8109 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8110 for ld_flag in $LDFLAGS; do
8111 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8112 aix_use_runtimelinking=yes
8119 exp_sym_flag='-bexport'
8120 no_entry_flag='-bnoentry'
8123 # When large executables or shared objects are built, AIX ld can
8124 # have problems creating the table of contents. If linking a library
8125 # or program results in "error TOC overflow" add -mminimal-toc to
8126 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8127 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8131 hardcode_libdir_separator=':'
8132 link_all_deplibs=yes
8134 if test "$GCC" = yes; then
8135 case $host_os in aix4.[012]|aix4.[012].*)
8136 # We only want to do this on AIX 4.2 and lower, the check
8137 # below for broken collect2 doesn't work under 4.3+
8138 collect2name=`${CC} -print-prog-name=collect2`
8139 if test -f "$collect2name" && \
8140 strings "$collect2name" | grep resolve_lib_name >/dev/null
8142 # We have reworked collect2
8145 # We have old collect2
8146 hardcode_direct=unsupported
8147 # It fails to find uninstalled libraries when the uninstalled
8148 # path is not listed in the libpath. Setting hardcode_minus_L
8149 # to unsupported forces relinking
8150 hardcode_minus_L=yes
8151 hardcode_libdir_flag_spec='-L$libdir'
8152 hardcode_libdir_separator=
8156 shared_flag='-shared'
8157 if test "$aix_use_runtimelinking" = yes; then
8158 shared_flag="$shared_flag "'${wl}-G'
8162 if test "$host_cpu" = ia64; then
8163 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8164 # chokes on -Wl,-G. The following line is correct:
8167 if test "$aix_use_runtimelinking" = yes; then
8168 shared_flag='${wl}-G'
8170 shared_flag='${wl}-bM:SRE'
8175 # It seems that -bexpall does not export symbols beginning with
8176 # underscore (_), so it is better to generate a list of symbols to export.
8177 always_export_symbols=yes
8178 if test "$aix_use_runtimelinking" = yes; then
8179 # Warning - without using the other runtime loading flags (-brtl),
8180 # -berok will link without error, but may produce a broken library.
8181 allow_undefined_flag='-berok'
8182 # Determine the default libpath from the value encoded in an empty executable.
8183 cat >conftest.$ac_ext <<_ACEOF
8186 cat confdefs.h >>conftest.$ac_ext
8187 cat >>conftest.$ac_ext <<_ACEOF
8188 /* end confdefs.h. */
8198 rm -f conftest.$ac_objext conftest$ac_exeext
8199 if { (ac_try="$ac_link"
8201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8202 *) ac_try_echo=$ac_try;;
8204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8205 (eval "$ac_link") 2>conftest.er1
8207 grep -v '^ *+' conftest.er1 >conftest.err
8209 cat conftest.err >&5
8210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8211 (exit $ac_status); } && {
8212 test -z "$ac_c_werror_flag" ||
8213 test ! -s conftest.err
8214 } && test -s conftest$ac_exeext &&
8215 $as_test_x conftest$ac_exeext; then
8217 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8219 # Check for a 64-bit object if we didn't find anything.
8220 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; }
8223 echo "$as_me: failed program was:" >&5
8224 sed 's/^/| /' conftest.$ac_ext >&5
8229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8230 conftest$ac_exeext conftest.$ac_ext
8231 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8233 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8234 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"
8236 if test "$host_cpu" = ia64; then
8237 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8238 allow_undefined_flag="-z nodefs"
8239 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"
8241 # Determine the default libpath from the value encoded in an empty executable.
8242 cat >conftest.$ac_ext <<_ACEOF
8245 cat confdefs.h >>conftest.$ac_ext
8246 cat >>conftest.$ac_ext <<_ACEOF
8247 /* end confdefs.h. */
8257 rm -f conftest.$ac_objext conftest$ac_exeext
8258 if { (ac_try="$ac_link"
8260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8261 *) ac_try_echo=$ac_try;;
8263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8264 (eval "$ac_link") 2>conftest.er1
8266 grep -v '^ *+' conftest.er1 >conftest.err
8268 cat conftest.err >&5
8269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270 (exit $ac_status); } && {
8271 test -z "$ac_c_werror_flag" ||
8272 test ! -s conftest.err
8273 } && test -s conftest$ac_exeext &&
8274 $as_test_x conftest$ac_exeext; then
8276 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8278 # Check for a 64-bit object if we didn't find anything.
8279 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; }
8282 echo "$as_me: failed program was:" >&5
8283 sed 's/^/| /' conftest.$ac_ext >&5
8288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8289 conftest$ac_exeext conftest.$ac_ext
8290 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8292 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8293 # Warning - without using the other run time loading flags,
8294 # -berok will link without error, but may produce a broken library.
8295 no_undefined_flag=' ${wl}-bernotok'
8296 allow_undefined_flag=' ${wl}-berok'
8297 # Exported symbols can be pulled into shared objects from archives
8298 whole_archive_flag_spec='$convenience'
8299 archive_cmds_need_lc=yes
8300 # This is similar to how AIX traditionally builds its shared libraries.
8301 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'
8307 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)'
8308 hardcode_libdir_flag_spec='-L$libdir'
8309 hardcode_minus_L=yes
8310 # see comment about different semantics on the GNU ld section
8315 export_dynamic_flag_spec=-rdynamic
8318 cygwin* | mingw* | pw32*)
8319 # When not using gcc, we currently assume that we are using
8320 # Microsoft Visual C++.
8321 # hardcode_libdir_flag_spec is actually meaningless, as there is
8322 # no search path for DLLs.
8323 hardcode_libdir_flag_spec=' '
8324 allow_undefined_flag=unsupported
8325 # Tell ltmain to make .lib files, not .a files.
8327 # Tell ltmain to make .dll files, not .so files.
8329 # FIXME: Setting linknames here is a bad hack.
8330 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8331 # The linker will automatically build a .lib file if we build a DLL.
8332 old_archive_From_new_cmds='true'
8333 # FIXME: Should let the user specify the lib program.
8334 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8335 fix_srcfile_path='`cygpath -w "$srcfile"`'
8336 enable_shared_with_static_runtimes=yes
8339 darwin* | rhapsody*)
8341 rhapsody* | darwin1.[012])
8342 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8345 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8346 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8348 case ${MACOSX_DEPLOYMENT_TARGET} in
8350 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8353 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8359 archive_cmds_need_lc=no
8361 hardcode_automatic=yes
8362 hardcode_shlibpath_var=unsupported
8363 whole_archive_flag_spec=''
8364 link_all_deplibs=yes
8365 if test "$GCC" = yes ; then
8366 output_verbose_link_cmd='echo'
8367 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8368 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8369 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8370 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}'
8371 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}'
8373 case $cc_basename in
8375 output_verbose_link_cmd='echo'
8376 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8377 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8378 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8379 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}'
8380 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}'
8390 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8391 hardcode_libdir_flag_spec='-L$libdir'
8392 hardcode_shlibpath_var=no
8399 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8400 # support. Future versions do this automatically, but an explicit c++rt0.o
8401 # does not break anything, and helps significantly (at the cost of a little
8404 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8405 hardcode_libdir_flag_spec='-R$libdir'
8407 hardcode_shlibpath_var=no
8410 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8412 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8414 hardcode_minus_L=yes
8415 hardcode_shlibpath_var=no
8418 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8419 freebsd* | dragonfly*)
8420 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8421 hardcode_libdir_flag_spec='-R$libdir'
8423 hardcode_shlibpath_var=no
8427 if test "$GCC" = yes; then
8428 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'
8430 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'
8432 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8433 hardcode_libdir_separator=:
8436 # hardcode_minus_L: Not really in the search PATH,
8437 # but as the default location of the library.
8438 hardcode_minus_L=yes
8439 export_dynamic_flag_spec='${wl}-E'
8443 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8444 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8446 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8448 if test "$with_gnu_ld" = no; then
8449 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8450 hardcode_libdir_separator=:
8453 export_dynamic_flag_spec='${wl}-E'
8455 # hardcode_minus_L: Not really in the search PATH,
8456 # but as the default location of the library.
8457 hardcode_minus_L=yes
8462 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8465 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8468 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8471 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8477 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8480 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8483 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8487 if test "$with_gnu_ld" = no; then
8488 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8489 hardcode_libdir_separator=:
8493 hardcode_libdir_flag_spec_ld='+b $libdir'
8495 hardcode_shlibpath_var=no
8499 export_dynamic_flag_spec='${wl}-E'
8501 # hardcode_minus_L: Not really in the search PATH,
8502 # but as the default location of the library.
8503 hardcode_minus_L=yes
8509 irix5* | irix6* | nonstopux*)
8510 if test "$GCC" = yes; then
8511 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'
8513 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'
8514 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8516 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8517 hardcode_libdir_separator=:
8518 link_all_deplibs=yes
8521 netbsd* | netbsdelf*-gnu)
8522 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8523 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8525 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8527 hardcode_libdir_flag_spec='-R$libdir'
8529 hardcode_shlibpath_var=no
8533 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8535 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8536 hardcode_libdir_separator=:
8537 hardcode_shlibpath_var=no
8542 hardcode_shlibpath_var=no
8543 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8544 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8545 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8546 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8547 export_dynamic_flag_spec='${wl}-E'
8550 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8551 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8552 hardcode_libdir_flag_spec='-R$libdir'
8555 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8556 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8563 hardcode_libdir_flag_spec='-L$libdir'
8564 hardcode_minus_L=yes
8565 allow_undefined_flag=unsupported
8566 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'
8567 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8571 if test "$GCC" = yes; then
8572 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8573 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'
8575 allow_undefined_flag=' -expect_unresolved \*'
8576 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'
8578 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8579 hardcode_libdir_separator=:
8582 osf4* | osf5*) # as osf3* with the addition of -msym flag
8583 if test "$GCC" = yes; then
8584 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8585 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'
8586 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8588 allow_undefined_flag=' -expect_unresolved \*'
8589 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'
8590 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8591 $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'
8593 # Both c and cxx compiler support -rpath directly
8594 hardcode_libdir_flag_spec='-rpath $libdir'
8596 hardcode_libdir_separator=:
8600 no_undefined_flag=' -z text'
8601 if test "$GCC" = yes; then
8603 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8604 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8605 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8608 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8609 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8610 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8612 hardcode_libdir_flag_spec='-R$libdir'
8613 hardcode_shlibpath_var=no
8615 solaris2.[0-5] | solaris2.[0-5].*) ;;
8617 # The compiler driver will combine linker options so we
8618 # cannot just pass the convience library names through
8619 # without $wl, iff we do not link with $LD.
8620 # Luckily, gcc supports the same syntax we need for Sun Studio.
8621 # Supported since Solaris 2.6 (maybe 2.5.1?)
8624 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8626 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' ;;
8629 link_all_deplibs=yes
8633 if test "x$host_vendor" = xsequent; then
8634 # Use $CC to link under sequent, because it throws in some extra .o
8635 # files that make .init and .fini sections work.
8636 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8638 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8640 hardcode_libdir_flag_spec='-L$libdir'
8642 hardcode_minus_L=yes
8643 hardcode_shlibpath_var=no
8647 case $host_vendor in
8649 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8650 hardcode_direct=yes # is this really true???
8653 ## LD is ld it makes a PLAMLIB
8654 ## CC just makes a GrossModule.
8655 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8656 reload_cmds='$CC -r -o $output$reload_objs'
8660 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8661 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8664 runpath_var='LD_RUN_PATH'
8665 hardcode_shlibpath_var=no
8669 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8670 hardcode_shlibpath_var=no
8671 export_dynamic_flag_spec='-Bexport'
8675 if test -d /usr/nec; then
8676 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8677 hardcode_shlibpath_var=no
8678 runpath_var=LD_RUN_PATH
8679 hardcode_runpath_var=yes
8684 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8685 no_undefined_flag='${wl}-z,text'
8686 archive_cmds_need_lc=no
8687 hardcode_shlibpath_var=no
8688 runpath_var='LD_RUN_PATH'
8690 if test "$GCC" = yes; then
8691 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8692 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8694 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8695 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8699 sysv5* | sco3.2v5* | sco5v6*)
8700 # Note: We can NOT use -z defs as we might desire, because we do not
8701 # link with -lc, and that would cause any symbols used from libc to
8702 # always be unresolved, which means just about no library would
8703 # ever link correctly. If we're not using GNU ld we use -z text
8704 # though, which does catch some bad symbols but isn't as heavy-handed
8706 no_undefined_flag='${wl}-z,text'
8707 allow_undefined_flag='${wl}-z,nodefs'
8708 archive_cmds_need_lc=no
8709 hardcode_shlibpath_var=no
8710 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8711 hardcode_libdir_separator=':'
8712 link_all_deplibs=yes
8713 export_dynamic_flag_spec='${wl}-Bexport'
8714 runpath_var='LD_RUN_PATH'
8716 if test "$GCC" = yes; then
8717 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8718 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8720 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8721 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8726 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8727 hardcode_libdir_flag_spec='-L$libdir'
8728 hardcode_shlibpath_var=no
8737 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8738 echo "${ECHO_T}$ld_shlibs" >&6; }
8739 test "$ld_shlibs" = no && can_build_shared=no
8742 # Do we need to explicitly link libc?
8744 case "x$archive_cmds_need_lc" in
8746 # Assume -lc should be added
8747 archive_cmds_need_lc=yes
8749 if test "$enable_shared" = yes && test "$GCC" = yes; then
8750 case $archive_cmds in
8752 # FIXME: we may have to deal with multi-command sequences.
8755 # Test whether the compiler implicitly links with -lc since on some
8756 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8757 # to ld, don't add -lc before -lgcc.
8758 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8759 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8761 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8764 (eval $ac_compile) 2>&5
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); } 2>conftest.err; then
8770 libobjs=conftest.$ac_objext
8772 wl=$lt_prog_compiler_wl
8773 pic_flag=$lt_prog_compiler_pic
8779 lt_save_allow_undefined_flag=$allow_undefined_flag
8780 allow_undefined_flag=
8781 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8782 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785 (exit $ac_status); }
8787 archive_cmds_need_lc=no
8789 archive_cmds_need_lc=yes
8791 allow_undefined_flag=$lt_save_allow_undefined_flag
8793 cat conftest.err 1>&5
8796 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8797 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8804 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8805 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8807 libname_spec='lib$name'
8815 shlibpath_overrides_runpath=unknown
8817 dynamic_linker="$host_os ld.so"
8818 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8819 if test "$GCC" = yes; then
8820 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8821 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8822 # if the path contains ";" then we assume it to be the separator
8823 # otherwise default to the standard path separator (i.e. ":") - it is
8824 # assumed that no part of a normal pathname contains ";" but that should
8825 # okay in the real world where ";" in dirpaths is itself problematic.
8826 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8828 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8831 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8833 need_lib_prefix=unknown
8834 hardcode_into_libs=no
8836 # when you set need_version to no, make sure it does not cause -set_version
8837 # flags to be left without arguments
8838 need_version=unknown
8843 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8844 shlibpath_var=LIBPATH
8846 # AIX 3 has no versioning support, so we append a major version to the name.
8847 soname_spec='${libname}${release}${shared_ext}$major'
8854 hardcode_into_libs=yes
8855 if test "$host_cpu" = ia64; then
8856 # AIX 5 supports IA64
8857 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8858 shlibpath_var=LD_LIBRARY_PATH
8860 # With GCC up to 2.95.x, collect2 would create an import file
8861 # for dependence libraries. The import file would start with
8862 # the line `#! .'. This would cause the generated library to
8863 # depend on `.', always an invalid library. This was fixed in
8864 # development snapshots of GCC prior to 3.0.
8866 aix4 | aix4.[01] | aix4.[01].*)
8867 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8869 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8876 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8877 # soname into executable. Probably we can add versioning support to
8878 # collect2, so additional links can be useful in future.
8879 if test "$aix_use_runtimelinking" = yes; then
8880 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8881 # instead of lib<name>.a to let people know that these are not
8882 # typical AIX shared libraries.
8883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8885 # We preserve .a as extension for shared libraries through AIX4.2
8886 # and later when we are not doing run time linking.
8887 library_names_spec='${libname}${release}.a $libname.a'
8888 soname_spec='${libname}${release}${shared_ext}$major'
8890 shlibpath_var=LIBPATH
8895 library_names_spec='$libname.ixlibrary $libname.a'
8896 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8897 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'
8901 library_names_spec='${libname}${shared_ext}'
8902 dynamic_linker="$host_os ld.so"
8903 shlibpath_var=LIBRARY_PATH
8909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8910 soname_spec='${libname}${release}${shared_ext}$major'
8911 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8912 shlibpath_var=LD_LIBRARY_PATH
8913 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8914 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8915 # the default ld.so.conf also contains /usr/contrib/lib and
8916 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8917 # libtool to hard-code these into programs
8920 cygwin* | mingw* | pw32*)
8921 version_type=windows
8926 case $GCC,$host_os in
8927 yes,cygwin* | yes,mingw* | yes,pw32*)
8928 library_names_spec='$libname.dll.a'
8929 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8930 postinstall_cmds='base_file=`basename \${file}`~
8931 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8932 dldir=$destdir/`dirname \$dlpath`~
8933 test -d \$dldir || mkdir -p \$dldir~
8934 $install_prog $dir/$dlname \$dldir/$dlname~
8935 chmod a+x \$dldir/$dlname'
8936 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8937 dlpath=$dir/\$dldll~
8939 shlibpath_overrides_runpath=yes
8943 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8944 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8945 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8948 # MinGW DLLs use traditional 'lib' prefix
8949 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8950 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8951 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8952 # It is most probably a Windows format PATH printed by
8953 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8954 # path with ; separators, and with drive letters. We can handle the
8955 # drive letters (cygwin fileutils understands them), so leave them,
8956 # especially as we might pass files found there to a mingw objdump,
8957 # which wouldn't understand a cygwinified path. Ahh.
8958 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8960 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8964 # pw32 DLLs use 'pw' prefix rather than 'lib'
8965 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8971 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8974 dynamic_linker='Win32 ld.exe'
8975 # FIXME: first we should search . and the directory the executable is in
8979 darwin* | rhapsody*)
8980 dynamic_linker="$host_os dyld"
8984 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8985 soname_spec='${libname}${release}${major}$shared_ext'
8986 shlibpath_overrides_runpath=yes
8987 shlibpath_var=DYLD_LIBRARY_PATH
8988 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8989 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8990 if test "$GCC" = yes; then
8991 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"`
8993 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8995 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9003 soname_spec='${libname}${release}${shared_ext}$major'
9004 shlibpath_var=LD_LIBRARY_PATH
9011 freebsd* | dragonfly*)
9012 # DragonFly does not have aout. When/if they implement a new
9013 # versioning mechanism, adjust this.
9014 if test -x /usr/bin/objformat; then
9015 objformat=`/usr/bin/objformat`
9018 freebsd[123]*) objformat=aout ;;
9022 version_type=freebsd-$objformat
9023 case $version_type in
9025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9030 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9034 shlibpath_var=LD_LIBRARY_PATH
9037 shlibpath_overrides_runpath=yes
9039 freebsd3.[01]* | freebsdelf3.[01]*)
9040 shlibpath_overrides_runpath=yes
9041 hardcode_into_libs=yes
9043 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9044 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9045 shlibpath_overrides_runpath=no
9046 hardcode_into_libs=yes
9048 freebsd*) # from 4.6 on
9049 shlibpath_overrides_runpath=yes
9050 hardcode_into_libs=yes
9059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9060 soname_spec='${libname}${release}${shared_ext}$major'
9061 shlibpath_var=LD_LIBRARY_PATH
9062 hardcode_into_libs=yes
9065 hpux9* | hpux10* | hpux11*)
9066 # Give a soname corresponding to the major version so that dld.sl refuses to
9067 # link against other versions.
9074 hardcode_into_libs=yes
9075 dynamic_linker="$host_os dld.so"
9076 shlibpath_var=LD_LIBRARY_PATH
9077 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9079 soname_spec='${libname}${release}${shared_ext}$major'
9080 if test "X$HPUX_IA64_MODE" = X32; then
9081 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9083 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9085 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9089 hardcode_into_libs=yes
9090 dynamic_linker="$host_os dld.sl"
9091 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9092 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9094 soname_spec='${libname}${release}${shared_ext}$major'
9095 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9096 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9100 dynamic_linker="$host_os dld.sl"
9101 shlibpath_var=SHLIB_PATH
9102 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9104 soname_spec='${libname}${release}${shared_ext}$major'
9107 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9108 postinstall_cmds='chmod 555 $lib'
9115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9116 soname_spec='${libname}${release}${shared_ext}$major'
9117 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9118 shlibpath_var=LD_LIBRARY_PATH
9119 shlibpath_overrides_runpath=no
9120 hardcode_into_libs=yes
9123 irix5* | irix6* | nonstopux*)
9125 nonstopux*) version_type=nonstopux ;;
9127 if test "$lt_cv_prog_gnu_ld" = yes; then
9135 soname_spec='${libname}${release}${shared_ext}$major'
9136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9138 irix5* | nonstopux*)
9142 case $LD in # libtool.m4 will add one of these switches to LD
9143 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9144 libsuff= shlibsuff= libmagic=32-bit;;
9145 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9146 libsuff=32 shlibsuff=N32 libmagic=N32;;
9147 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9148 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9149 *) libsuff= shlibsuff= libmagic=never-match;;
9153 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9154 shlibpath_overrides_runpath=no
9155 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9156 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9157 hardcode_into_libs=yes
9160 # No shared lib support for Linux oldld, aout, or coff.
9161 linux*oldld* | linux*aout* | linux*coff*)
9165 # This must be Linux ELF.
9166 linux* | k*bsd*-gnu)
9170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9171 soname_spec='${libname}${release}${shared_ext}$major'
9172 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9173 shlibpath_var=LD_LIBRARY_PATH
9174 shlibpath_overrides_runpath=no
9175 # This implies no fast_install, which is unacceptable.
9176 # Some rework will be needed to allow for fast_install
9177 # before this can be enabled.
9178 hardcode_into_libs=yes
9180 # Append ld.so.conf contents to the search path
9181 if test -f /etc/ld.so.conf; then
9182 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' ' '`
9183 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9186 # We used to test for /lib/ld.so.1 and disable shared libraries on
9187 # powerpc, because MkLinux only supported shared libraries with the
9188 # GNU dynamic linker. Since this was broken with cross compilers,
9189 # most powerpc-linux boxes support dynamic linking these days and
9190 # people can always --disable-shared, the test was removed, and we
9191 # assume the GNU/Linux dynamic linker is in use.
9192 dynamic_linker='GNU/Linux ld.so'
9199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9200 soname_spec='${libname}${release}${shared_ext}$major'
9201 shlibpath_var=LD_LIBRARY_PATH
9202 shlibpath_overrides_runpath=no
9203 hardcode_into_libs=yes
9204 dynamic_linker='NetBSD ld.elf_so'
9211 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9213 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9214 dynamic_linker='NetBSD (a.out) ld.so'
9216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9217 soname_spec='${libname}${release}${shared_ext}$major'
9218 dynamic_linker='NetBSD ld.elf_so'
9220 shlibpath_var=LD_LIBRARY_PATH
9221 shlibpath_overrides_runpath=yes
9222 hardcode_into_libs=yes
9227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9228 shlibpath_var=LD_LIBRARY_PATH
9229 shlibpath_overrides_runpath=yes
9236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9237 soname_spec='${libname}${release}${shared_ext}$major'
9238 shlibpath_var=LD_LIBRARY_PATH
9239 shlibpath_overrides_runpath=yes
9244 sys_lib_dlsearch_path_spec="/usr/lib"
9246 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9248 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9249 *) need_version=no ;;
9251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9252 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9253 shlibpath_var=LD_LIBRARY_PATH
9254 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9256 openbsd2.[89] | openbsd2.[89].*)
9257 shlibpath_overrides_runpath=no
9260 shlibpath_overrides_runpath=yes
9264 shlibpath_overrides_runpath=yes
9269 libname_spec='$name'
9272 library_names_spec='$libname${shared_ext} $libname.a'
9273 dynamic_linker='OS/2 ld.exe'
9274 shlibpath_var=LIBPATH
9277 osf3* | osf4* | osf5*)
9281 soname_spec='${libname}${release}${shared_ext}$major'
9282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9283 shlibpath_var=LD_LIBRARY_PATH
9284 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9285 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9293 soname_spec='${libname}${release}${shared_ext}$major'
9294 shlibpath_var=LD_LIBRARY_PATH
9295 shlibpath_overrides_runpath=yes
9296 hardcode_into_libs=yes
9297 # ldd complains unless libraries are executable
9298 postinstall_cmds='chmod +x $lib'
9303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9304 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9305 shlibpath_var=LD_LIBRARY_PATH
9306 shlibpath_overrides_runpath=yes
9307 if test "$with_gnu_ld" = yes; then
9315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9316 soname_spec='${libname}${release}${shared_ext}$major'
9317 shlibpath_var=LD_LIBRARY_PATH
9318 case $host_vendor in
9320 shlibpath_overrides_runpath=no
9322 export_dynamic_flag_spec='${wl}-Blargedynsym'
9323 runpath_var=LD_RUN_PATH
9331 shlibpath_overrides_runpath=no
9332 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9338 if test -d /usr/nec ;then
9340 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9341 soname_spec='$libname${shared_ext}.$major'
9342 shlibpath_var=LD_LIBRARY_PATH
9346 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9347 version_type=freebsd-elf
9350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9351 soname_spec='${libname}${release}${shared_ext}$major'
9352 shlibpath_var=LD_LIBRARY_PATH
9353 hardcode_into_libs=yes
9354 if test "$with_gnu_ld" = yes; then
9355 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9356 shlibpath_overrides_runpath=no
9358 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9359 shlibpath_overrides_runpath=yes
9362 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9366 sys_lib_dlsearch_path_spec='/usr/lib'
9371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9372 soname_spec='${libname}${release}${shared_ext}$major'
9373 shlibpath_var=LD_LIBRARY_PATH
9380 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9381 echo "${ECHO_T}$dynamic_linker" >&6; }
9382 test "$dynamic_linker" = no && can_build_shared=no
9384 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9385 if test "$GCC" = yes; then
9386 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9389 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9390 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9392 if test -n "$hardcode_libdir_flag_spec" || \
9393 test -n "$runpath_var" || \
9394 test "X$hardcode_automatic" = "Xyes" ; then
9396 # We can hardcode non-existant directories.
9397 if test "$hardcode_direct" != no &&
9398 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9399 # have to relink, otherwise we might link with an installed library
9400 # when we should be linking with a yet-to-be-installed one
9401 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9402 test "$hardcode_minus_L" != no; then
9403 # Linking always hardcodes the temporary library directory.
9404 hardcode_action=relink
9406 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9407 hardcode_action=immediate
9410 # We cannot hardcode anything, or else we can only hardcode existing
9412 hardcode_action=unsupported
9414 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9415 echo "${ECHO_T}$hardcode_action" >&6; }
9417 if test "$hardcode_action" = relink; then
9418 # Fast installation is not supported
9419 enable_fast_install=no
9420 elif test "$shlibpath_overrides_runpath" = yes ||
9421 test "$enable_shared" = no; then
9422 # Fast installation is not necessary
9423 enable_fast_install=needless
9428 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9429 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9430 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9431 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9432 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9433 { echo "$as_me:$LINENO: result: yes" >&5
9434 echo "${ECHO_T}yes" >&6; }
9436 # FIXME - insert some real tests, host_os isn't really good enough
9439 if test -n "$STRIP" ; then
9440 striplib="$STRIP -x"
9441 { echo "$as_me:$LINENO: result: yes" >&5
9442 echo "${ECHO_T}yes" >&6; }
9444 { echo "$as_me:$LINENO: result: no" >&5
9445 echo "${ECHO_T}no" >&6; }
9449 { echo "$as_me:$LINENO: result: no" >&5
9450 echo "${ECHO_T}no" >&6; }
9455 if test "x$enable_dlopen" != xyes; then
9456 enable_dlopen=unknown
9457 enable_dlopen_self=unknown
9458 enable_dlopen_self_static=unknown
9465 lt_cv_dlopen="load_add_on"
9467 lt_cv_dlopen_self=yes
9471 lt_cv_dlopen="LoadLibrary"
9476 lt_cv_dlopen="dlopen"
9481 # if libdl is installed we need to link against it
9482 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9483 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9484 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9485 echo $ECHO_N "(cached) $ECHO_C" >&6
9487 ac_check_lib_save_LIBS=$LIBS
9489 cat >conftest.$ac_ext <<_ACEOF
9492 cat confdefs.h >>conftest.$ac_ext
9493 cat >>conftest.$ac_ext <<_ACEOF
9494 /* end confdefs.h. */
9496 /* Override any GCC internal prototype to avoid an error.
9497 Use char because int might match the return type of a GCC
9498 builtin and then its argument prototype would still apply. */
9511 rm -f conftest.$ac_objext conftest$ac_exeext
9512 if { (ac_try="$ac_link"
9514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9515 *) ac_try_echo=$ac_try;;
9517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9518 (eval "$ac_link") 2>conftest.er1
9520 grep -v '^ *+' conftest.er1 >conftest.err
9522 cat conftest.err >&5
9523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9524 (exit $ac_status); } && {
9525 test -z "$ac_c_werror_flag" ||
9526 test ! -s conftest.err
9527 } && test -s conftest$ac_exeext &&
9528 $as_test_x conftest$ac_exeext; then
9529 ac_cv_lib_dl_dlopen=yes
9531 echo "$as_me: failed program was:" >&5
9532 sed 's/^/| /' conftest.$ac_ext >&5
9534 ac_cv_lib_dl_dlopen=no
9537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9538 conftest$ac_exeext conftest.$ac_ext
9539 LIBS=$ac_check_lib_save_LIBS
9541 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9542 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9543 if test $ac_cv_lib_dl_dlopen = yes; then
9544 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9549 lt_cv_dlopen_self=yes
9556 { echo "$as_me:$LINENO: checking for shl_load" >&5
9557 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9558 if test "${ac_cv_func_shl_load+set}" = set; then
9559 echo $ECHO_N "(cached) $ECHO_C" >&6
9561 cat >conftest.$ac_ext <<_ACEOF
9564 cat confdefs.h >>conftest.$ac_ext
9565 cat >>conftest.$ac_ext <<_ACEOF
9566 /* end confdefs.h. */
9567 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9568 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9569 #define shl_load innocuous_shl_load
9571 /* System header to define __stub macros and hopefully few prototypes,
9572 which can conflict with char shl_load (); below.
9573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9574 <limits.h> exists even on freestanding compilers. */
9577 # include <limits.h>
9579 # include <assert.h>
9584 /* Override any GCC internal prototype to avoid an error.
9585 Use char because int might match the return type of a GCC
9586 builtin and then its argument prototype would still apply. */
9591 /* The GNU C library defines this for functions which it implements
9592 to always fail with ENOSYS. Some functions are actually named
9593 something starting with __ and the normal name is an alias. */
9594 #if defined __stub_shl_load || defined __stub___shl_load
9606 rm -f conftest.$ac_objext conftest$ac_exeext
9607 if { (ac_try="$ac_link"
9609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9610 *) ac_try_echo=$ac_try;;
9612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9613 (eval "$ac_link") 2>conftest.er1
9615 grep -v '^ *+' conftest.er1 >conftest.err
9617 cat conftest.err >&5
9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619 (exit $ac_status); } && {
9620 test -z "$ac_c_werror_flag" ||
9621 test ! -s conftest.err
9622 } && test -s conftest$ac_exeext &&
9623 $as_test_x conftest$ac_exeext; then
9624 ac_cv_func_shl_load=yes
9626 echo "$as_me: failed program was:" >&5
9627 sed 's/^/| /' conftest.$ac_ext >&5
9629 ac_cv_func_shl_load=no
9632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9633 conftest$ac_exeext conftest.$ac_ext
9635 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9636 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9637 if test $ac_cv_func_shl_load = yes; then
9638 lt_cv_dlopen="shl_load"
9640 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9641 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9642 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9643 echo $ECHO_N "(cached) $ECHO_C" >&6
9645 ac_check_lib_save_LIBS=$LIBS
9647 cat >conftest.$ac_ext <<_ACEOF
9650 cat confdefs.h >>conftest.$ac_ext
9651 cat >>conftest.$ac_ext <<_ACEOF
9652 /* end confdefs.h. */
9654 /* Override any GCC internal prototype to avoid an error.
9655 Use char because int might match the return type of a GCC
9656 builtin and then its argument prototype would still apply. */
9669 rm -f conftest.$ac_objext conftest$ac_exeext
9670 if { (ac_try="$ac_link"
9672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9673 *) ac_try_echo=$ac_try;;
9675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9676 (eval "$ac_link") 2>conftest.er1
9678 grep -v '^ *+' conftest.er1 >conftest.err
9680 cat conftest.err >&5
9681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682 (exit $ac_status); } && {
9683 test -z "$ac_c_werror_flag" ||
9684 test ! -s conftest.err
9685 } && test -s conftest$ac_exeext &&
9686 $as_test_x conftest$ac_exeext; then
9687 ac_cv_lib_dld_shl_load=yes
9689 echo "$as_me: failed program was:" >&5
9690 sed 's/^/| /' conftest.$ac_ext >&5
9692 ac_cv_lib_dld_shl_load=no
9695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9696 conftest$ac_exeext conftest.$ac_ext
9697 LIBS=$ac_check_lib_save_LIBS
9699 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9700 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9701 if test $ac_cv_lib_dld_shl_load = yes; then
9702 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9704 { echo "$as_me:$LINENO: checking for dlopen" >&5
9705 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9706 if test "${ac_cv_func_dlopen+set}" = set; then
9707 echo $ECHO_N "(cached) $ECHO_C" >&6
9709 cat >conftest.$ac_ext <<_ACEOF
9712 cat confdefs.h >>conftest.$ac_ext
9713 cat >>conftest.$ac_ext <<_ACEOF
9714 /* end confdefs.h. */
9715 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9717 #define dlopen innocuous_dlopen
9719 /* System header to define __stub macros and hopefully few prototypes,
9720 which can conflict with char dlopen (); below.
9721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9722 <limits.h> exists even on freestanding compilers. */
9725 # include <limits.h>
9727 # include <assert.h>
9732 /* Override any GCC internal prototype to avoid an error.
9733 Use char because int might match the return type of a GCC
9734 builtin and then its argument prototype would still apply. */
9739 /* The GNU C library defines this for functions which it implements
9740 to always fail with ENOSYS. Some functions are actually named
9741 something starting with __ and the normal name is an alias. */
9742 #if defined __stub_dlopen || defined __stub___dlopen
9754 rm -f conftest.$ac_objext conftest$ac_exeext
9755 if { (ac_try="$ac_link"
9757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9758 *) ac_try_echo=$ac_try;;
9760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9761 (eval "$ac_link") 2>conftest.er1
9763 grep -v '^ *+' conftest.er1 >conftest.err
9765 cat conftest.err >&5
9766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767 (exit $ac_status); } && {
9768 test -z "$ac_c_werror_flag" ||
9769 test ! -s conftest.err
9770 } && test -s conftest$ac_exeext &&
9771 $as_test_x conftest$ac_exeext; then
9772 ac_cv_func_dlopen=yes
9774 echo "$as_me: failed program was:" >&5
9775 sed 's/^/| /' conftest.$ac_ext >&5
9777 ac_cv_func_dlopen=no
9780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9781 conftest$ac_exeext conftest.$ac_ext
9783 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9784 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9785 if test $ac_cv_func_dlopen = yes; then
9786 lt_cv_dlopen="dlopen"
9788 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9789 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9790 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9791 echo $ECHO_N "(cached) $ECHO_C" >&6
9793 ac_check_lib_save_LIBS=$LIBS
9795 cat >conftest.$ac_ext <<_ACEOF
9798 cat confdefs.h >>conftest.$ac_ext
9799 cat >>conftest.$ac_ext <<_ACEOF
9800 /* end confdefs.h. */
9802 /* Override any GCC internal prototype to avoid an error.
9803 Use char because int might match the return type of a GCC
9804 builtin and then its argument prototype would still apply. */
9817 rm -f conftest.$ac_objext conftest$ac_exeext
9818 if { (ac_try="$ac_link"
9820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9821 *) ac_try_echo=$ac_try;;
9823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9824 (eval "$ac_link") 2>conftest.er1
9826 grep -v '^ *+' conftest.er1 >conftest.err
9828 cat conftest.err >&5
9829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830 (exit $ac_status); } && {
9831 test -z "$ac_c_werror_flag" ||
9832 test ! -s conftest.err
9833 } && test -s conftest$ac_exeext &&
9834 $as_test_x conftest$ac_exeext; then
9835 ac_cv_lib_dl_dlopen=yes
9837 echo "$as_me: failed program was:" >&5
9838 sed 's/^/| /' conftest.$ac_ext >&5
9840 ac_cv_lib_dl_dlopen=no
9843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9844 conftest$ac_exeext conftest.$ac_ext
9845 LIBS=$ac_check_lib_save_LIBS
9847 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9848 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9849 if test $ac_cv_lib_dl_dlopen = yes; then
9850 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9852 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9853 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9854 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9855 echo $ECHO_N "(cached) $ECHO_C" >&6
9857 ac_check_lib_save_LIBS=$LIBS
9859 cat >conftest.$ac_ext <<_ACEOF
9862 cat confdefs.h >>conftest.$ac_ext
9863 cat >>conftest.$ac_ext <<_ACEOF
9864 /* end confdefs.h. */
9866 /* Override any GCC internal prototype to avoid an error.
9867 Use char because int might match the return type of a GCC
9868 builtin and then its argument prototype would still apply. */
9881 rm -f conftest.$ac_objext conftest$ac_exeext
9882 if { (ac_try="$ac_link"
9884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9885 *) ac_try_echo=$ac_try;;
9887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9888 (eval "$ac_link") 2>conftest.er1
9890 grep -v '^ *+' conftest.er1 >conftest.err
9892 cat conftest.err >&5
9893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9894 (exit $ac_status); } && {
9895 test -z "$ac_c_werror_flag" ||
9896 test ! -s conftest.err
9897 } && test -s conftest$ac_exeext &&
9898 $as_test_x conftest$ac_exeext; then
9899 ac_cv_lib_svld_dlopen=yes
9901 echo "$as_me: failed program was:" >&5
9902 sed 's/^/| /' conftest.$ac_ext >&5
9904 ac_cv_lib_svld_dlopen=no
9907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9908 conftest$ac_exeext conftest.$ac_ext
9909 LIBS=$ac_check_lib_save_LIBS
9911 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9912 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9913 if test $ac_cv_lib_svld_dlopen = yes; then
9914 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9916 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9917 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9918 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9919 echo $ECHO_N "(cached) $ECHO_C" >&6
9921 ac_check_lib_save_LIBS=$LIBS
9923 cat >conftest.$ac_ext <<_ACEOF
9926 cat confdefs.h >>conftest.$ac_ext
9927 cat >>conftest.$ac_ext <<_ACEOF
9928 /* end confdefs.h. */
9930 /* Override any GCC internal prototype to avoid an error.
9931 Use char because int might match the return type of a GCC
9932 builtin and then its argument prototype would still apply. */
9945 rm -f conftest.$ac_objext conftest$ac_exeext
9946 if { (ac_try="$ac_link"
9948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9949 *) ac_try_echo=$ac_try;;
9951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9952 (eval "$ac_link") 2>conftest.er1
9954 grep -v '^ *+' conftest.er1 >conftest.err
9956 cat conftest.err >&5
9957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958 (exit $ac_status); } && {
9959 test -z "$ac_c_werror_flag" ||
9960 test ! -s conftest.err
9961 } && test -s conftest$ac_exeext &&
9962 $as_test_x conftest$ac_exeext; then
9963 ac_cv_lib_dld_dld_link=yes
9965 echo "$as_me: failed program was:" >&5
9966 sed 's/^/| /' conftest.$ac_ext >&5
9968 ac_cv_lib_dld_dld_link=no
9971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9972 conftest$ac_exeext conftest.$ac_ext
9973 LIBS=$ac_check_lib_save_LIBS
9975 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9976 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9977 if test $ac_cv_lib_dld_dld_link = yes; then
9978 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9999 if test "x$lt_cv_dlopen" != xno; then
10005 case $lt_cv_dlopen in
10007 save_CPPFLAGS="$CPPFLAGS"
10008 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10010 save_LDFLAGS="$LDFLAGS"
10011 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10014 LIBS="$lt_cv_dlopen_libs $LIBS"
10016 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10017 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10018 if test "${lt_cv_dlopen_self+set}" = set; then
10019 echo $ECHO_N "(cached) $ECHO_C" >&6
10021 if test "$cross_compiling" = yes; then :
10022 lt_cv_dlopen_self=cross
10024 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10025 lt_status=$lt_dlunknown
10026 cat > conftest.$ac_ext <<EOF
10027 #line 10027 "configure"
10028 #include "confdefs.h"
10037 # define LT_DLGLOBAL RTLD_GLOBAL
10040 # define LT_DLGLOBAL DL_GLOBAL
10042 # define LT_DLGLOBAL 0
10046 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10047 find out it does not work in some platform. */
10048 #ifndef LT_DLLAZY_OR_NOW
10050 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10053 # define LT_DLLAZY_OR_NOW DL_LAZY
10056 # define LT_DLLAZY_OR_NOW RTLD_NOW
10059 # define LT_DLLAZY_OR_NOW DL_NOW
10061 # define LT_DLLAZY_OR_NOW 0
10069 extern "C" void exit (int);
10072 void fnord() { int i=42;}
10075 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10076 int status = $lt_dlunknown;
10080 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10081 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10082 /* dlclose (self); */
10090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10091 (eval $ac_link) 2>&5
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10095 (./conftest; exit; ) >&5 2>/dev/null
10097 case x$lt_status in
10098 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10099 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10100 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10103 # compilation failed
10104 lt_cv_dlopen_self=no
10111 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10112 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10114 if test "x$lt_cv_dlopen_self" = xyes; then
10115 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10116 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10117 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10118 if test "${lt_cv_dlopen_self_static+set}" = set; then
10119 echo $ECHO_N "(cached) $ECHO_C" >&6
10121 if test "$cross_compiling" = yes; then :
10122 lt_cv_dlopen_self_static=cross
10124 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10125 lt_status=$lt_dlunknown
10126 cat > conftest.$ac_ext <<EOF
10127 #line 10127 "configure"
10128 #include "confdefs.h"
10137 # define LT_DLGLOBAL RTLD_GLOBAL
10140 # define LT_DLGLOBAL DL_GLOBAL
10142 # define LT_DLGLOBAL 0
10146 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10147 find out it does not work in some platform. */
10148 #ifndef LT_DLLAZY_OR_NOW
10150 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10153 # define LT_DLLAZY_OR_NOW DL_LAZY
10156 # define LT_DLLAZY_OR_NOW RTLD_NOW
10159 # define LT_DLLAZY_OR_NOW DL_NOW
10161 # define LT_DLLAZY_OR_NOW 0
10169 extern "C" void exit (int);
10172 void fnord() { int i=42;}
10175 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10176 int status = $lt_dlunknown;
10180 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10181 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10182 /* dlclose (self); */
10190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10191 (eval $ac_link) 2>&5
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10195 (./conftest; exit; ) >&5 2>/dev/null
10197 case x$lt_status in
10198 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10199 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10200 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10203 # compilation failed
10204 lt_cv_dlopen_self_static=no
10211 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10212 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10215 CPPFLAGS="$save_CPPFLAGS"
10216 LDFLAGS="$save_LDFLAGS"
10221 case $lt_cv_dlopen_self in
10222 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10223 *) enable_dlopen_self=unknown ;;
10226 case $lt_cv_dlopen_self_static in
10227 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10228 *) enable_dlopen_self_static=unknown ;;
10233 # Report which library types will actually be built
10234 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10235 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10236 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10237 echo "${ECHO_T}$can_build_shared" >&6; }
10239 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10240 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10241 test "$can_build_shared" = "no" && enable_shared=no
10243 # On AIX, shared libraries and static libraries use the same namespace, and
10244 # are all built from PIC.
10247 test "$enable_shared" = yes && enable_static=no
10248 if test -n "$RANLIB"; then
10249 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10250 postinstall_cmds='$RANLIB $lib'
10255 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10256 test "$enable_shared" = yes && enable_static=no
10260 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10261 echo "${ECHO_T}$enable_shared" >&6; }
10263 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10264 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10265 # Make sure either enable_shared or enable_static is yes.
10266 test "$enable_shared" = yes || enable_static=yes
10267 { echo "$as_me:$LINENO: result: $enable_static" >&5
10268 echo "${ECHO_T}$enable_static" >&6; }
10270 # The else clause should only fire when bootstrapping the
10271 # libtool distribution, otherwise you forgot to ship ltmain.sh
10272 # with your package, and you will get complaints that there are
10273 # no rules to generate ltmain.sh.
10274 if test -f "$ltmain"; then
10275 # See if we are running on zsh, and set the options which allow our commands through
10276 # without removal of \ escapes.
10277 if test -n "${ZSH_VERSION+set}" ; then
10278 setopt NO_GLOB_SUBST
10280 # Now quote all the things that may contain metacharacters while being
10281 # careful not to overquote the AC_SUBSTed values. We take copies of the
10282 # variables and quote the copies for generation of the libtool script.
10283 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10285 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10286 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10287 deplibs_check_method reload_flag reload_cmds need_locks \
10288 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10289 lt_cv_sys_global_symbol_to_c_name_address \
10290 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10291 old_postinstall_cmds old_postuninstall_cmds \
10295 lt_prog_compiler_wl \
10296 lt_prog_compiler_pic \
10297 lt_prog_compiler_static \
10298 lt_prog_compiler_no_builtin_flag \
10299 export_dynamic_flag_spec \
10300 thread_safe_flag_spec \
10301 whole_archive_flag_spec \
10302 enable_shared_with_static_runtimes \
10304 old_archive_from_new_cmds \
10309 compiler_lib_search_path \
10311 archive_expsym_cmds \
10313 postuninstall_cmds \
10314 old_archive_from_expsyms_cmds \
10315 allow_undefined_flag \
10316 no_undefined_flag \
10317 export_symbols_cmds \
10318 hardcode_libdir_flag_spec \
10319 hardcode_libdir_flag_spec_ld \
10320 hardcode_libdir_separator \
10321 hardcode_automatic \
10323 module_expsym_cmds \
10324 lt_cv_prog_compiler_c_o \
10326 include_expsyms; do
10329 old_archive_cmds | \
10330 old_archive_from_new_cmds | \
10332 archive_expsym_cmds | \
10334 module_expsym_cmds | \
10335 old_archive_from_expsyms_cmds | \
10336 export_symbols_cmds | \
10337 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10338 postinstall_cmds | postuninstall_cmds | \
10339 old_postinstall_cmds | old_postuninstall_cmds | \
10340 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10341 # Double-quote double-evaled strings.
10342 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10345 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10351 *'\$0 --fallback-echo"')
10352 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10356 cfgfile="${ofile}T"
10357 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10359 { echo "$as_me:$LINENO: creating $ofile" >&5
10360 echo "$as_me: creating $ofile" >&6;}
10362 cat <<__EOF__ >> "$cfgfile"
10365 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10366 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10367 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10369 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10370 # Free Software Foundation, Inc.
10372 # This file is part of GNU Libtool:
10373 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10375 # This program is free software; you can redistribute it and/or modify
10376 # it under the terms of the GNU General Public License as published by
10377 # the Free Software Foundation; either version 2 of the License, or
10378 # (at your option) any later version.
10380 # This program is distributed in the hope that it will be useful, but
10381 # WITHOUT ANY WARRANTY; without even the implied warranty of
10382 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10383 # General Public License for more details.
10385 # You should have received a copy of the GNU General Public License
10386 # along with this program; if not, write to the Free Software
10387 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10389 # As a special exception to the GNU General Public License, if you
10390 # distribute this file as part of a program that contains a
10391 # configuration script generated by Autoconf, you may include it under
10392 # the same distribution terms that you use for the rest of that program.
10394 # A sed program that does not truncate output.
10397 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10398 Xsed="$SED -e 1s/^X//"
10400 # The HP-UX ksh and POSIX shell print the target directory to stdout
10401 # if CDPATH is set.
10402 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10404 # The names of the tagged configurations supported by this script.
10407 # ### BEGIN LIBTOOL CONFIG
10409 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10411 # Shell to use when invoking shell scripts.
10414 # Whether or not to build shared libraries.
10415 build_libtool_libs=$enable_shared
10417 # Whether or not to build static libraries.
10418 build_old_libs=$enable_static
10420 # Whether or not to add -lc for building shared libraries.
10421 build_libtool_need_lc=$archive_cmds_need_lc
10423 # Whether or not to disallow shared libs when runtime libs are static
10424 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10426 # Whether or not to optimize for fast installation.
10427 fast_install=$enable_fast_install
10430 host_alias=$host_alias
10434 # The build system.
10435 build_alias=$build_alias
10439 # An echo program that does not interpret backslashes.
10444 AR_FLAGS=$lt_AR_FLAGS
10449 # LTCC compiler flags.
10450 LTCFLAGS=$lt_LTCFLAGS
10452 # A language-specific compiler.
10455 # Is the compiler the GNU C compiler?
10461 # The linker used to build libraries.
10464 # Whether we need hard or soft links.
10467 # A BSD-compatible nm program.
10470 # A symbol stripping program
10473 # Used to examine libraries when file_magic_cmd begins "file"
10474 MAGIC_CMD=$MAGIC_CMD
10476 # Used on cygwin: DLL creation program.
10479 # Used on cygwin: object dumper.
10482 # Used on cygwin: assembler.
10485 # The name of the directory that contains temporary libtool files.
10488 # How to create reloadable object files.
10489 reload_flag=$lt_reload_flag
10490 reload_cmds=$lt_reload_cmds
10492 # How to pass a linker flag through the compiler.
10493 wl=$lt_lt_prog_compiler_wl
10495 # Object file suffix (normally "o").
10496 objext="$ac_objext"
10498 # Old archive suffix (normally "a").
10501 # Shared library suffix (normally ".so").
10502 shrext_cmds='$shrext_cmds'
10504 # Executable file suffix (normally "").
10507 # Additional compiler flags for building library objects.
10508 pic_flag=$lt_lt_prog_compiler_pic
10511 # What is the maximum length of a command?
10512 max_cmd_len=$lt_cv_sys_max_cmd_len
10514 # Does compiler simultaneously support -c and -o options?
10515 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10517 # Must we lock files when doing compilation?
10518 need_locks=$lt_need_locks
10520 # Do we need the lib prefix for modules?
10521 need_lib_prefix=$need_lib_prefix
10523 # Do we need a version for libraries?
10524 need_version=$need_version
10526 # Whether dlopen is supported.
10527 dlopen_support=$enable_dlopen
10529 # Whether dlopen of programs is supported.
10530 dlopen_self=$enable_dlopen_self
10532 # Whether dlopen of statically linked programs is supported.
10533 dlopen_self_static=$enable_dlopen_self_static
10535 # Compiler flag to prevent dynamic linking.
10536 link_static_flag=$lt_lt_prog_compiler_static
10538 # Compiler flag to turn off builtin functions.
10539 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10541 # Compiler flag to allow reflexive dlopens.
10542 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10544 # Compiler flag to generate shared objects directly from archives.
10545 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10547 # Compiler flag to generate thread-safe objects.
10548 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10550 # Library versioning type.
10551 version_type=$version_type
10553 # Format of library name prefix.
10554 libname_spec=$lt_libname_spec
10556 # List of archive names. First name is the real one, the rest are links.
10557 # The last name is the one that the linker finds with -lNAME.
10558 library_names_spec=$lt_library_names_spec
10560 # The coded name of the library, if different from the real name.
10561 soname_spec=$lt_soname_spec
10563 # Commands used to build and install an old-style archive.
10565 old_archive_cmds=$lt_old_archive_cmds
10566 old_postinstall_cmds=$lt_old_postinstall_cmds
10567 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10569 # Create an old-style archive from a shared archive.
10570 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10572 # Create a temporary old-style archive to link instead of a shared archive.
10573 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10575 # Commands used to build and install a shared archive.
10576 archive_cmds=$lt_archive_cmds
10577 archive_expsym_cmds=$lt_archive_expsym_cmds
10578 postinstall_cmds=$lt_postinstall_cmds
10579 postuninstall_cmds=$lt_postuninstall_cmds
10581 # Commands used to build a loadable module (assumed same as above if empty)
10582 module_cmds=$lt_module_cmds
10583 module_expsym_cmds=$lt_module_expsym_cmds
10585 # Commands to strip libraries.
10586 old_striplib=$lt_old_striplib
10587 striplib=$lt_striplib
10589 # Dependencies to place before the objects being linked to create a
10591 predep_objects=$lt_predep_objects
10593 # Dependencies to place after the objects being linked to create a
10595 postdep_objects=$lt_postdep_objects
10597 # Dependencies to place before the objects being linked to create a
10599 predeps=$lt_predeps
10601 # Dependencies to place after the objects being linked to create a
10603 postdeps=$lt_postdeps
10605 # The library search path used internally by the compiler when linking
10606 # a shared library.
10607 compiler_lib_search_path=$lt_compiler_lib_search_path
10609 # Method to check whether dependent libraries are shared objects.
10610 deplibs_check_method=$lt_deplibs_check_method
10612 # Command to use when deplibs_check_method == file_magic.
10613 file_magic_cmd=$lt_file_magic_cmd
10615 # Flag that allows shared libraries with undefined symbols to be built.
10616 allow_undefined_flag=$lt_allow_undefined_flag
10618 # Flag that forces no undefined symbols.
10619 no_undefined_flag=$lt_no_undefined_flag
10621 # Commands used to finish a libtool library installation in a directory.
10622 finish_cmds=$lt_finish_cmds
10624 # Same as above, but a single script fragment to be evaled but not shown.
10625 finish_eval=$lt_finish_eval
10627 # Take the output of nm and produce a listing of raw symbols and C names.
10628 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10630 # Transform the output of nm in a proper C declaration
10631 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10633 # Transform the output of nm in a C name address pair
10634 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10636 # This is the shared library runtime path variable.
10637 runpath_var=$runpath_var
10639 # This is the shared library path variable.
10640 shlibpath_var=$shlibpath_var
10642 # Is shlibpath searched before the hard-coded library search path?
10643 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10645 # How to hardcode a shared library path into an executable.
10646 hardcode_action=$hardcode_action
10648 # Whether we should hardcode library paths into libraries.
10649 hardcode_into_libs=$hardcode_into_libs
10651 # Flag to hardcode \$libdir into a binary during linking.
10652 # This must work even if \$libdir does not exist.
10653 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10655 # If ld is used when linking, flag to hardcode \$libdir into
10656 # a binary during linking. This must work even if \$libdir does
10658 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10660 # Whether we need a single -rpath flag with a separated argument.
10661 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10663 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10664 # resulting binary.
10665 hardcode_direct=$hardcode_direct
10667 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10668 # resulting binary.
10669 hardcode_minus_L=$hardcode_minus_L
10671 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10672 # the resulting binary.
10673 hardcode_shlibpath_var=$hardcode_shlibpath_var
10675 # Set to yes if building a shared library automatically hardcodes DIR into the library
10676 # and all subsequent libraries and executables linked against it.
10677 hardcode_automatic=$hardcode_automatic
10679 # Variables whose values should be saved in libtool wrapper scripts and
10680 # restored at relink time.
10681 variables_saved_for_relink="$variables_saved_for_relink"
10683 # Whether libtool must link a program against all its dependency libraries.
10684 link_all_deplibs=$link_all_deplibs
10686 # Compile-time system search path for libraries
10687 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10689 # Run-time system search path for libraries
10690 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10692 # Fix the shell variable \$srcfile for the compiler.
10693 fix_srcfile_path="$fix_srcfile_path"
10695 # Set to yes if exported symbols are required.
10696 always_export_symbols=$always_export_symbols
10698 # The commands to list exported symbols.
10699 export_symbols_cmds=$lt_export_symbols_cmds
10701 # The commands to extract the exported symbol list from a shared archive.
10702 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10704 # Symbols that should not be listed in the preloaded symbols.
10705 exclude_expsyms=$lt_exclude_expsyms
10707 # Symbols that must always be exported.
10708 include_expsyms=$lt_include_expsyms
10710 # ### END LIBTOOL CONFIG
10717 cat <<\EOF >> "$cfgfile"
10719 # AIX sometimes has problems with the GCC collect2 program. For some
10720 # reason, if we set the COLLECT_NAMES environment variable, the problems
10721 # vanish in a puff of smoke.
10722 if test "X${COLLECT_NAMES+set}" != Xset; then
10724 export COLLECT_NAMES
10730 # We use sed instead of cat because bash on DJGPP gets confused if
10731 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10732 # text mode, it properly converts lines to CR/LF. This bash problem
10733 # is reportedly fixed, but why not run on old versions too?
10734 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10736 mv -f "$cfgfile" "$ofile" || \
10737 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10741 # If there is no Makefile yet, we rely on a make rule to execute
10742 # `config.status --recheck' to rerun these tests and create the
10743 # libtool script then.
10744 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10745 if test -f "$ltmain_in"; then
10746 test -f Makefile && make "$ltmain"
10752 ac_cpp='$CPP $CPPFLAGS'
10753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10760 # Check whether --with-tags was given.
10761 if test "${with_tags+set}" = set; then
10762 withval=$with_tags; tagnames="$withval"
10766 if test -f "$ltmain" && test -n "$tagnames"; then
10767 if test ! -f "${ofile}"; then
10768 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10769 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10772 if test -z "$LTCC"; then
10773 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10774 if test -z "$LTCC"; then
10775 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10776 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10778 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10779 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10782 if test -z "$LTCFLAGS"; then
10783 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10786 # Extract list of available tagged configurations in $ofile.
10787 # Note that this assumes the entire list is on one line.
10788 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10790 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10791 for tagname in $tagnames; do
10793 # Check whether tagname contains only valid characters
10794 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10796 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10797 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10798 { (exit 1); exit 1; }; }
10802 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10804 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10805 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10806 { (exit 1); exit 1; }; }
10809 # Update the list of available tags.
10810 if test -n "$tagname"; then
10811 echo appending configuration tag \"$tagname\" to $ofile
10815 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10816 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10817 (test "X$CXX" != "Xg++"))) ; then
10819 ac_cpp='$CXXCPP $CPPFLAGS'
10820 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10821 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10822 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10827 archive_cmds_need_lc_CXX=no
10828 allow_undefined_flag_CXX=
10829 always_export_symbols_CXX=no
10830 archive_expsym_cmds_CXX=
10831 export_dynamic_flag_spec_CXX=
10832 hardcode_direct_CXX=no
10833 hardcode_libdir_flag_spec_CXX=
10834 hardcode_libdir_flag_spec_ld_CXX=
10835 hardcode_libdir_separator_CXX=
10836 hardcode_minus_L_CXX=no
10837 hardcode_shlibpath_var_CXX=unsupported
10838 hardcode_automatic_CXX=no
10840 module_expsym_cmds_CXX=
10841 link_all_deplibs_CXX=unknown
10842 old_archive_cmds_CXX=$old_archive_cmds
10843 no_undefined_flag_CXX=
10844 whole_archive_flag_spec_CXX=
10845 enable_shared_with_static_runtimes_CXX=no
10847 # Dependencies to place before and after the object being linked:
10848 predep_objects_CXX=
10849 postdep_objects_CXX=
10852 compiler_lib_search_path_CXX=
10854 # Source file extension for C++ test sources.
10857 # Object file extension for compiled C++ test sources.
10861 # Code to be used in simple compile tests
10862 lt_simple_compile_test_code="int some_variable = 0;\n"
10864 # Code to be used in simple link tests
10865 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10867 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10869 # If no C compiler was specified, use CC.
10872 # If no C compiler flags were specified, use CFLAGS.
10873 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10875 # Allow CC to be a program name with arguments.
10879 # save warnings/boilerplate of simple test code
10880 ac_outfile=conftest.$ac_objext
10881 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10882 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10883 _lt_compiler_boilerplate=`cat conftest.err`
10886 ac_outfile=conftest.$ac_objext
10887 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10888 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10889 _lt_linker_boilerplate=`cat conftest.err`
10893 # Allow CC to be a program name with arguments.
10898 lt_save_with_gnu_ld=$with_gnu_ld
10899 lt_save_path_LD=$lt_cv_path_LD
10900 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10901 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10903 $as_unset lt_cv_prog_gnu_ld
10905 if test -n "${lt_cv_path_LDCXX+set}"; then
10906 lt_cv_path_LD=$lt_cv_path_LDCXX
10908 $as_unset lt_cv_path_LD
10910 test -z "${LDCXX+set}" || LD=$LDCXX
10914 for cc_temp in $compiler""; do
10916 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10917 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10922 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10925 # We don't want -fno-exception wen compiling C++ code, so set the
10926 # no_builtin_flag separately
10927 if test "$GXX" = yes; then
10928 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10930 lt_prog_compiler_no_builtin_flag_CXX=
10933 if test "$GXX" = yes; then
10934 # Set up default GNU C++ configuration
10937 # Check whether --with-gnu-ld was given.
10938 if test "${with_gnu_ld+set}" = set; then
10939 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10945 if test "$GCC" = yes; then
10946 # Check if gcc -print-prog-name=ld gives a path.
10947 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10948 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10951 # gcc leaves a trailing carriage return which upsets mingw
10952 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10954 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10957 # Accept absolute paths.
10959 re_direlt='/[^/][^/]*/\.\./'
10960 # Canonicalize the pathname of ld
10961 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10962 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10963 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10965 test -z "$LD" && LD="$ac_prog"
10968 # If it fails, then pretend we aren't using GCC.
10972 # If it is relative, then search for the first ld in PATH.
10973 with_gnu_ld=unknown
10976 elif test "$with_gnu_ld" = yes; then
10977 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10978 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10980 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10981 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10983 if test "${lt_cv_path_LD+set}" = set; then
10984 echo $ECHO_N "(cached) $ECHO_C" >&6
10986 if test -z "$LD"; then
10987 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10988 for ac_dir in $PATH; do
10990 test -z "$ac_dir" && ac_dir=.
10991 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10992 lt_cv_path_LD="$ac_dir/$ac_prog"
10993 # Check to see if the program is GNU ld. I'd rather use --version,
10994 # but apparently some variants of GNU ld only accept -v.
10995 # Break only if it was the GNU/non-GNU ld that we prefer.
10996 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10997 *GNU* | *'with BFD'*)
10998 test "$with_gnu_ld" != no && break
11001 test "$with_gnu_ld" != yes && break
11008 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11012 LD="$lt_cv_path_LD"
11013 if test -n "$LD"; then
11014 { echo "$as_me:$LINENO: result: $LD" >&5
11015 echo "${ECHO_T}$LD" >&6; }
11017 { echo "$as_me:$LINENO: result: no" >&5
11018 echo "${ECHO_T}no" >&6; }
11020 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11021 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11022 { (exit 1); exit 1; }; }
11023 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11024 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11025 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11026 echo $ECHO_N "(cached) $ECHO_C" >&6
11028 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11029 case `$LD -v 2>&1 </dev/null` in
11030 *GNU* | *'with BFD'*)
11031 lt_cv_prog_gnu_ld=yes
11034 lt_cv_prog_gnu_ld=no
11038 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11039 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11040 with_gnu_ld=$lt_cv_prog_gnu_ld
11044 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11045 # archiving commands below assume that GNU ld is being used.
11046 if test "$with_gnu_ld" = yes; then
11047 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11048 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'
11050 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11051 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11053 # If archive_cmds runs LD, not CC, wlarc should be empty
11054 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11055 # investigate it a little bit more. (MM)
11058 # ancient GNU ld didn't support --whole-archive et. al.
11059 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11060 grep 'no-whole-archive' > /dev/null; then
11061 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11063 whole_archive_flag_spec_CXX=
11069 # A generic and very simple default shared library creation
11070 # command for GNU C++ for the case where it uses the native
11071 # linker, instead of GNU ld. If possible, this setting should
11072 # overridden to take advantage of the native linker features on
11073 # the platform it is being used on.
11074 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11077 # Commands to make compiler produce verbose output that lists
11078 # what "hidden" libraries, object files and flags are used when
11079 # linking a shared library.
11080 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11088 # PORTME: fill in a description of your system's C++ link characteristics
11089 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11090 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11094 # FIXME: insert proper C++ library support
11098 if test "$host_cpu" = ia64; then
11099 # On IA64, the linker does run time linking by default, so we don't
11100 # have to do anything special.
11101 aix_use_runtimelinking=no
11102 exp_sym_flag='-Bexport'
11105 aix_use_runtimelinking=no
11107 # Test if we are trying to use run time linking or normal
11108 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11109 # need to do runtime linking.
11110 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11111 for ld_flag in $LDFLAGS; do
11114 aix_use_runtimelinking=yes
11122 exp_sym_flag='-bexport'
11123 no_entry_flag='-bnoentry'
11126 # When large executables or shared objects are built, AIX ld can
11127 # have problems creating the table of contents. If linking a library
11128 # or program results in "error TOC overflow" add -mminimal-toc to
11129 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11130 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11132 archive_cmds_CXX=''
11133 hardcode_direct_CXX=yes
11134 hardcode_libdir_separator_CXX=':'
11135 link_all_deplibs_CXX=yes
11137 if test "$GXX" = yes; then
11138 case $host_os in aix4.[012]|aix4.[012].*)
11139 # We only want to do this on AIX 4.2 and lower, the check
11140 # below for broken collect2 doesn't work under 4.3+
11141 collect2name=`${CC} -print-prog-name=collect2`
11142 if test -f "$collect2name" && \
11143 strings "$collect2name" | grep resolve_lib_name >/dev/null
11145 # We have reworked collect2
11146 hardcode_direct_CXX=yes
11148 # We have old collect2
11149 hardcode_direct_CXX=unsupported
11150 # It fails to find uninstalled libraries when the uninstalled
11151 # path is not listed in the libpath. Setting hardcode_minus_L
11152 # to unsupported forces relinking
11153 hardcode_minus_L_CXX=yes
11154 hardcode_libdir_flag_spec_CXX='-L$libdir'
11155 hardcode_libdir_separator_CXX=
11159 shared_flag='-shared'
11160 if test "$aix_use_runtimelinking" = yes; then
11161 shared_flag="$shared_flag "'${wl}-G'
11165 if test "$host_cpu" = ia64; then
11166 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11167 # chokes on -Wl,-G. The following line is correct:
11170 if test "$aix_use_runtimelinking" = yes; then
11171 shared_flag='${wl}-G'
11173 shared_flag='${wl}-bM:SRE'
11178 # It seems that -bexpall does not export symbols beginning with
11179 # underscore (_), so it is better to generate a list of symbols to export.
11180 always_export_symbols_CXX=yes
11181 if test "$aix_use_runtimelinking" = yes; then
11182 # Warning - without using the other runtime loading flags (-brtl),
11183 # -berok will link without error, but may produce a broken library.
11184 allow_undefined_flag_CXX='-berok'
11185 # Determine the default libpath from the value encoded in an empty executable.
11186 cat >conftest.$ac_ext <<_ACEOF
11189 cat confdefs.h >>conftest.$ac_ext
11190 cat >>conftest.$ac_ext <<_ACEOF
11191 /* end confdefs.h. */
11201 rm -f conftest.$ac_objext conftest$ac_exeext
11202 if { (ac_try="$ac_link"
11203 case "(($ac_try" in
11204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11205 *) ac_try_echo=$ac_try;;
11207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11208 (eval "$ac_link") 2>conftest.er1
11210 grep -v '^ *+' conftest.er1 >conftest.err
11212 cat conftest.err >&5
11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214 (exit $ac_status); } && {
11215 test -z "$ac_cxx_werror_flag" ||
11216 test ! -s conftest.err
11217 } && test -s conftest$ac_exeext &&
11218 $as_test_x conftest$ac_exeext; then
11220 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11222 # Check for a 64-bit object if we didn't find anything.
11223 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; }
11226 echo "$as_me: failed program was:" >&5
11227 sed 's/^/| /' conftest.$ac_ext >&5
11232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11233 conftest$ac_exeext conftest.$ac_ext
11234 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11236 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11238 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"
11240 if test "$host_cpu" = ia64; then
11241 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11242 allow_undefined_flag_CXX="-z nodefs"
11243 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"
11245 # Determine the default libpath from the value encoded in an empty executable.
11246 cat >conftest.$ac_ext <<_ACEOF
11249 cat confdefs.h >>conftest.$ac_ext
11250 cat >>conftest.$ac_ext <<_ACEOF
11251 /* end confdefs.h. */
11261 rm -f conftest.$ac_objext conftest$ac_exeext
11262 if { (ac_try="$ac_link"
11263 case "(($ac_try" in
11264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11265 *) ac_try_echo=$ac_try;;
11267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11268 (eval "$ac_link") 2>conftest.er1
11270 grep -v '^ *+' conftest.er1 >conftest.err
11272 cat conftest.err >&5
11273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274 (exit $ac_status); } && {
11275 test -z "$ac_cxx_werror_flag" ||
11276 test ! -s conftest.err
11277 } && test -s conftest$ac_exeext &&
11278 $as_test_x conftest$ac_exeext; then
11280 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11282 # Check for a 64-bit object if we didn't find anything.
11283 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; }
11286 echo "$as_me: failed program was:" >&5
11287 sed 's/^/| /' conftest.$ac_ext >&5
11292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11293 conftest$ac_exeext conftest.$ac_ext
11294 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11296 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11297 # Warning - without using the other run time loading flags,
11298 # -berok will link without error, but may produce a broken library.
11299 no_undefined_flag_CXX=' ${wl}-bernotok'
11300 allow_undefined_flag_CXX=' ${wl}-berok'
11301 # Exported symbols can be pulled into shared objects from archives
11302 whole_archive_flag_spec_CXX='$convenience'
11303 archive_cmds_need_lc_CXX=yes
11304 # This is similar to how AIX traditionally builds its shared libraries.
11305 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'
11311 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11312 allow_undefined_flag_CXX=unsupported
11313 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11314 # support --undefined. This deserves some investigation. FIXME
11315 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11322 case $cc_basename in
11324 # FIXME: insert proper C++ library support
11330 cygwin* | mingw* | pw32*)
11331 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11332 # as there is no search path for DLLs.
11333 hardcode_libdir_flag_spec_CXX='-L$libdir'
11334 allow_undefined_flag_CXX=unsupported
11335 always_export_symbols_CXX=no
11336 enable_shared_with_static_runtimes_CXX=yes
11338 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11339 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'
11340 # If the export-symbols file already is a .def file (1st line
11341 # is EXPORTS), use it as is; otherwise, prepend...
11342 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11343 cp $export_symbols $output_objdir/$soname.def;
11345 echo EXPORTS > $output_objdir/$soname.def;
11346 cat $export_symbols >> $output_objdir/$soname.def;
11348 $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'
11353 darwin* | rhapsody*)
11355 rhapsody* | darwin1.[012])
11356 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11359 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11360 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11362 case ${MACOSX_DEPLOYMENT_TARGET} in
11364 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11367 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11373 archive_cmds_need_lc_CXX=no
11374 hardcode_direct_CXX=no
11375 hardcode_automatic_CXX=yes
11376 hardcode_shlibpath_var_CXX=unsupported
11377 whole_archive_flag_spec_CXX=''
11378 link_all_deplibs_CXX=yes
11380 if test "$GXX" = yes ; then
11381 lt_int_apple_cc_single_mod=no
11382 output_verbose_link_cmd='echo'
11383 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11384 lt_int_apple_cc_single_mod=yes
11386 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11387 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11389 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'
11391 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11392 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11393 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11394 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}'
11396 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}'
11398 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}'
11400 case $cc_basename in
11402 output_verbose_link_cmd='echo'
11403 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'
11404 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11405 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11406 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}'
11407 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}'
11417 case $cc_basename in
11419 # FIXME: insert proper C++ library support
11423 # Green Hills C++ Compiler
11424 # FIXME: insert proper C++ library support
11428 # FIXME: insert proper C++ library support
11434 # C++ shared libraries reported to be fairly broken before switch to ELF
11438 archive_cmds_need_lc_CXX=no
11440 freebsd* | dragonfly*)
11441 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11448 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11449 hardcode_libdir_separator_CXX=:
11450 export_dynamic_flag_spec_CXX='${wl}-E'
11451 hardcode_direct_CXX=yes
11452 hardcode_minus_L_CXX=yes # Not in the search PATH,
11453 # but as the default
11454 # location of the library.
11456 case $cc_basename in
11458 # FIXME: insert proper C++ library support
11462 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'
11463 # Commands to make compiler produce verbose output that lists
11464 # what "hidden" libraries, object files and flags are used when
11465 # linking a shared library.
11467 # There doesn't appear to be a way to prevent this compiler from
11468 # explicitly linking system object files so we need to strip them
11469 # from the output so that they don't get included in the library
11471 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'
11474 if test "$GXX" = yes; then
11475 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'
11477 # FIXME: insert proper C++ library support
11484 if test $with_gnu_ld = no; then
11485 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11486 hardcode_libdir_separator_CXX=:
11490 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11493 export_dynamic_flag_spec_CXX='${wl}-E'
11499 hardcode_direct_CXX=no
11500 hardcode_shlibpath_var_CXX=no
11503 hardcode_direct_CXX=yes
11504 hardcode_minus_L_CXX=yes # Not in the search PATH,
11505 # but as the default
11506 # location of the library.
11510 case $cc_basename in
11512 # FIXME: insert proper C++ library support
11518 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11521 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11524 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11527 # Commands to make compiler produce verbose output that lists
11528 # what "hidden" libraries, object files and flags are used when
11529 # linking a shared library.
11531 # There doesn't appear to be a way to prevent this compiler from
11532 # explicitly linking system object files so we need to strip them
11533 # from the output so that they don't get included in the library
11535 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'
11538 if test "$GXX" = yes; then
11539 if test $with_gnu_ld = no; then
11542 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11545 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11548 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'
11553 # FIXME: insert proper C++ library support
11560 hardcode_direct_CXX=no
11561 hardcode_shlibpath_var_CXX=no
11562 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11563 export_dynamic_flag_spec_CXX='${wl}-E'
11564 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11565 # Instead, shared libraries are loaded at an image base (0x10000000 by
11566 # default) and relocated if they conflict, which is a slow very memory
11567 # consuming and fragmenting process. To avoid this, we pick a random,
11568 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11569 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11570 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'
11571 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'
11574 case $cc_basename in
11577 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'
11579 # Archives containing C++ object files must be created using
11580 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11581 # necessary to make sure instantiated templates are included
11583 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11586 if test "$GXX" = yes; then
11587 if test "$with_gnu_ld" = no; then
11588 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'
11590 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'
11593 link_all_deplibs_CXX=yes
11596 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11597 hardcode_libdir_separator_CXX=:
11599 linux* | k*bsd*-gnu)
11600 case $cc_basename in
11602 # Kuck and Associates, Inc. (KAI) C++ Compiler
11604 # KCC will only create a shared library if the output file
11605 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11606 # to its proper name (with version) after linking.
11607 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'
11608 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'
11609 # Commands to make compiler produce verbose output that lists
11610 # what "hidden" libraries, object files and flags are used when
11611 # linking a shared library.
11613 # There doesn't appear to be a way to prevent this compiler from
11614 # explicitly linking system object files so we need to strip them
11615 # from the output so that they don't get included in the library
11617 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'
11619 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11620 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11622 # Archives containing C++ object files must be created using
11623 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11624 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11629 # version 8.0 and above of icpc choke on multiply defined symbols
11630 # if we add $predep_objects and $postdep_objects, however 7.1 and
11631 # earlier do not add the objects themselves.
11632 case `$CC -V 2>&1` in
11634 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11635 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'
11637 *) # Version 8.0 or newer
11640 ia64*) tmp_idyn=' -i_dynamic';;
11642 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11643 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'
11646 archive_cmds_need_lc_CXX=no
11647 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11648 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11649 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11652 # Portland Group C++ compiler
11653 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11654 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'
11656 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11657 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11658 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'
11662 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11663 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'
11665 runpath_var=LD_RUN_PATH
11666 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11667 hardcode_libdir_separator_CXX=:
11669 # Commands to make compiler produce verbose output that lists
11670 # what "hidden" libraries, object files and flags are used when
11671 # linking a shared library.
11673 # There doesn't appear to be a way to prevent this compiler from
11674 # explicitly linking system object files so we need to strip them
11675 # from the output so that they don't get included in the library
11677 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'
11682 # FIXME: insert proper C++ library support
11686 # FIXME: insert proper C++ library support
11690 case $cc_basename in
11692 # FIXME: insert proper C++ library support
11696 # FIXME: insert proper C++ library support
11701 netbsd* | netbsdelf*-gnu)
11702 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11703 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11705 hardcode_libdir_flag_spec_CXX='-R$libdir'
11706 hardcode_direct_CXX=yes
11707 hardcode_shlibpath_var_CXX=no
11709 # Workaround some broken pre-1.5 toolchains
11710 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11713 # C++ shared libraries are fairly broken
11717 hardcode_direct_CXX=yes
11718 hardcode_shlibpath_var_CXX=no
11719 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11720 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11721 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11722 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11723 export_dynamic_flag_spec_CXX='${wl}-E'
11724 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11726 output_verbose_link_cmd='echo'
11729 case $cc_basename in
11731 # Kuck and Associates, Inc. (KAI) C++ Compiler
11733 # KCC will only create a shared library if the output file
11734 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11735 # to its proper name (with version) after linking.
11736 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'
11738 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11739 hardcode_libdir_separator_CXX=:
11741 # Archives containing C++ object files must be created using
11742 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11743 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11747 # Rational C++ 2.4.1
11748 # FIXME: insert proper C++ library support
11752 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11753 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'
11755 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11756 hardcode_libdir_separator_CXX=:
11758 # Commands to make compiler produce verbose output that lists
11759 # what "hidden" libraries, object files and flags are used when
11760 # linking a shared library.
11762 # There doesn't appear to be a way to prevent this compiler from
11763 # explicitly linking system object files so we need to strip them
11764 # from the output so that they don't get included in the library
11766 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'
11769 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11770 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11771 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'
11773 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11774 hardcode_libdir_separator_CXX=:
11776 # Commands to make compiler produce verbose output that lists
11777 # what "hidden" libraries, object files and flags are used when
11778 # linking a shared library.
11779 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11782 # FIXME: insert proper C++ library support
11789 case $cc_basename in
11791 # Kuck and Associates, Inc. (KAI) C++ Compiler
11793 # KCC will only create a shared library if the output file
11794 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11795 # to its proper name (with version) after linking.
11796 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'
11798 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11799 hardcode_libdir_separator_CXX=:
11801 # Archives containing C++ object files must be created using
11802 # the KAI C++ compiler.
11803 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11806 # Rational C++ 2.4.1
11807 # FIXME: insert proper C++ library support
11811 allow_undefined_flag_CXX=' -expect_unresolved \*'
11812 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'
11813 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11814 echo "-hidden">> $lib.exp~
11815 $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~
11818 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11819 hardcode_libdir_separator_CXX=:
11821 # Commands to make compiler produce verbose output that lists
11822 # what "hidden" libraries, object files and flags are used when
11823 # linking a shared library.
11825 # There doesn't appear to be a way to prevent this compiler from
11826 # explicitly linking system object files so we need to strip them
11827 # from the output so that they don't get included in the library
11829 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'
11832 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11833 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11834 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'
11836 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11837 hardcode_libdir_separator_CXX=:
11839 # Commands to make compiler produce verbose output that lists
11840 # what "hidden" libraries, object files and flags are used when
11841 # linking a shared library.
11842 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11845 # FIXME: insert proper C++ library support
11852 # FIXME: insert proper C++ library support
11856 case $cc_basename in
11859 # FIXME: insert proper C++ library support
11864 # FIXME: insert proper C++ library support
11868 # FIXME: insert proper C++ library support
11874 case $cc_basename in
11876 # Sun C++ 4.2, 5.x and Centerline C++
11877 archive_cmds_need_lc_CXX=yes
11878 no_undefined_flag_CXX=' -zdefs'
11879 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11880 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11881 $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'
11883 hardcode_libdir_flag_spec_CXX='-R$libdir'
11884 hardcode_shlibpath_var_CXX=no
11886 solaris2.[0-5] | solaris2.[0-5].*) ;;
11888 # The C++ compiler is used as linker so we must use $wl
11889 # flag to pass the commands to the underlying system
11890 # linker. We must also pass each convience library through
11891 # to the system linker between allextract/defaultextract.
11892 # The C++ compiler will combine linker options so we
11893 # cannot just pass the convience library names through
11895 # Supported since Solaris 2.6 (maybe 2.5.1?)
11896 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'
11899 link_all_deplibs_CXX=yes
11901 output_verbose_link_cmd='echo'
11903 # Archives containing C++ object files must be created using
11904 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11905 # necessary to make sure instantiated templates are included
11907 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11910 # Green Hills C++ Compiler
11911 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11913 # The C++ compiler must be used to create the archive.
11914 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11917 # GNU C++ compiler with Solaris linker
11918 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11919 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11920 if $CC --version | grep -v '^2\.7' > /dev/null; then
11921 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11922 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11923 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11925 # Commands to make compiler produce verbose output that lists
11926 # what "hidden" libraries, object files and flags are used when
11927 # linking a shared library.
11928 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11930 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11932 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11933 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11934 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11936 # Commands to make compiler produce verbose output that lists
11937 # what "hidden" libraries, object files and flags are used when
11938 # linking a shared library.
11939 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11942 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11947 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11948 no_undefined_flag_CXX='${wl}-z,text'
11949 archive_cmds_need_lc_CXX=no
11950 hardcode_shlibpath_var_CXX=no
11951 runpath_var='LD_RUN_PATH'
11953 case $cc_basename in
11955 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11956 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11959 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11960 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11964 sysv5* | sco3.2v5* | sco5v6*)
11965 # Note: We can NOT use -z defs as we might desire, because we do not
11966 # link with -lc, and that would cause any symbols used from libc to
11967 # always be unresolved, which means just about no library would
11968 # ever link correctly. If we're not using GNU ld we use -z text
11969 # though, which does catch some bad symbols but isn't as heavy-handed
11971 # For security reasons, it is highly recommended that you always
11972 # use absolute paths for naming shared libraries, and exclude the
11973 # DT_RUNPATH tag from executables and libraries. But doing so
11974 # requires that you compile everything twice, which is a pain.
11975 # So that behaviour is only enabled if SCOABSPATH is set to a
11976 # non-empty value in the environment. Most likely only useful for
11977 # creating official distributions of packages.
11978 # This is a hack until libtool officially supports absolute path
11979 # names for shared libraries.
11980 no_undefined_flag_CXX='${wl}-z,text'
11981 allow_undefined_flag_CXX='${wl}-z,nodefs'
11982 archive_cmds_need_lc_CXX=no
11983 hardcode_shlibpath_var_CXX=no
11984 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11985 hardcode_libdir_separator_CXX=':'
11986 link_all_deplibs_CXX=yes
11987 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11988 runpath_var='LD_RUN_PATH'
11990 case $cc_basename in
11992 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11993 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11996 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11997 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12002 case $cc_basename in
12004 # NonStop-UX NCC 3.20
12005 # FIXME: insert proper C++ library support
12009 # FIXME: insert proper C++ library support
12015 # FIXME: insert proper C++ library support
12019 # FIXME: insert proper C++ library support
12023 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12024 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12025 test "$ld_shlibs_CXX" = no && can_build_shared=no
12031 cat > conftest.$ac_ext <<EOF
12035 Foo (void) { a = 0; }
12041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12042 (eval $ac_compile) 2>&5
12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); }; then
12046 # Parse the compiler output and extract the necessary
12047 # objects, libraries and library flags.
12049 # Sentinel used to keep track of whether or not we are before
12050 # the conftest object file.
12051 pre_test_object_deps_done=no
12053 # The `*' in the case matches for architectures that use `case' in
12054 # $output_verbose_cmd can trigger glob expansion during the loop
12055 # eval without this substitution.
12056 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12058 for p in `eval $output_verbose_link_cmd`; do
12062 # Some compilers place space between "-{L,R}" and the path.
12063 # Remove the space.
12064 if test $p = "-L" \
12065 || test $p = "-R"; then
12072 if test "$pre_test_object_deps_done" = no; then
12075 # Internal compiler library paths should come after those
12076 # provided the user. The postdeps already come after the
12077 # user supplied libs so there is no need to process them.
12078 if test -z "$compiler_lib_search_path_CXX"; then
12079 compiler_lib_search_path_CXX="${prev}${p}"
12081 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12084 # The "-l" case would never come before the object being
12085 # linked, so don't bother handling this case.
12088 if test -z "$postdeps_CXX"; then
12089 postdeps_CXX="${prev}${p}"
12091 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12097 # This assumes that the test object file only shows up
12098 # once in the compiler output.
12099 if test "$p" = "conftest.$objext"; then
12100 pre_test_object_deps_done=yes
12104 if test "$pre_test_object_deps_done" = no; then
12105 if test -z "$predep_objects_CXX"; then
12106 predep_objects_CXX="$p"
12108 predep_objects_CXX="$predep_objects_CXX $p"
12111 if test -z "$postdep_objects_CXX"; then
12112 postdep_objects_CXX="$p"
12114 postdep_objects_CXX="$postdep_objects_CXX $p"
12119 *) ;; # Ignore the rest.
12127 echo "libtool.m4: error: problem compiling CXX test program"
12130 $rm -f confest.$objext
12132 # PORTME: override above test on systems where it is broken
12135 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12136 # hack all around it, let's just trust "g++" to DTRT.
12137 predep_objects_CXX=
12138 postdep_objects_CXX=
12143 case $cc_basename in
12145 # Adding this requires a known-good setup of shared libraries for
12146 # Sun compiler versions before 5.6, else PIC objects from an old
12147 # archive will be linked into the output, leading to subtle bugs.
12148 postdeps_CXX='-lCstd -lCrun'
12155 case " $postdeps_CXX " in
12156 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12159 lt_prog_compiler_wl_CXX=
12160 lt_prog_compiler_pic_CXX=
12161 lt_prog_compiler_static_CXX=
12163 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12164 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12166 # C++ specific cases for pic, static, wl, etc.
12167 if test "$GXX" = yes; then
12168 lt_prog_compiler_wl_CXX='-Wl,'
12169 lt_prog_compiler_static_CXX='-static'
12173 # All AIX code is PIC.
12174 if test "$host_cpu" = ia64; then
12175 # AIX 5 now supports IA64 processor
12176 lt_prog_compiler_static_CXX='-Bstatic'
12180 # FIXME: we need at least 68020 code to build shared libraries, but
12181 # adding the `-m68020' flag to GCC prevents building anything better,
12183 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12185 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12186 # PIC is the default for these OSes.
12188 mingw* | os2* | pw32*)
12189 # This hack is so that the source file can tell whether it is being
12190 # built for inclusion in a dll (and should export symbols for example).
12191 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12193 darwin* | rhapsody*)
12194 # PIC is the default on this platform
12195 # Common symbols not allowed in MH_DYLIB files
12196 lt_prog_compiler_pic_CXX='-fno-common'
12199 # DJGPP does not support shared libraries at all
12200 lt_prog_compiler_pic_CXX=
12203 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12204 # Instead, we relocate shared libraries at runtime.
12207 if test -d /usr/nec; then
12208 lt_prog_compiler_pic_CXX=-Kconform_pic
12212 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12213 # not for PA HP-UX.
12218 lt_prog_compiler_pic_CXX='-fPIC'
12223 lt_prog_compiler_pic_CXX='-fPIC'
12229 # All AIX code is PIC.
12230 if test "$host_cpu" = ia64; then
12231 # AIX 5 now supports IA64 processor
12232 lt_prog_compiler_static_CXX='-Bstatic'
12234 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12238 case $cc_basename in
12240 # Green Hills C++ Compiler
12241 # _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"
12246 # PIC is the default on this platform
12247 # Common symbols not allowed in MH_DYLIB files
12248 case $cc_basename in
12250 lt_prog_compiler_pic_CXX='-qnocommon'
12251 lt_prog_compiler_wl_CXX='-Wl,'
12256 case $cc_basename in
12258 lt_prog_compiler_pic_CXX='-KPIC'
12261 # Green Hills C++ Compiler
12262 lt_prog_compiler_pic_CXX='-pic'
12268 freebsd* | dragonfly*)
12269 # FreeBSD uses GNU C++
12271 hpux9* | hpux10* | hpux11*)
12272 case $cc_basename in
12274 lt_prog_compiler_wl_CXX='-Wl,'
12275 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12276 if test "$host_cpu" != ia64; then
12277 lt_prog_compiler_pic_CXX='+Z'
12281 lt_prog_compiler_wl_CXX='-Wl,'
12282 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12288 lt_prog_compiler_pic_CXX='+Z'
12297 # This is c89, which is MS Visual C++ (no shared libs)
12298 # Anyone wants to do a port?
12300 irix5* | irix6* | nonstopux*)
12301 case $cc_basename in
12303 lt_prog_compiler_wl_CXX='-Wl,'
12304 lt_prog_compiler_static_CXX='-non_shared'
12305 # CC pic flag -KPIC is the default.
12311 linux* | k*bsd*-gnu)
12312 case $cc_basename in
12315 lt_prog_compiler_wl_CXX='--backend -Wl,'
12316 lt_prog_compiler_pic_CXX='-fPIC'
12320 lt_prog_compiler_wl_CXX='-Wl,'
12321 lt_prog_compiler_pic_CXX='-KPIC'
12322 lt_prog_compiler_static_CXX='-static'
12325 # Portland Group C++ compiler.
12326 lt_prog_compiler_wl_CXX='-Wl,'
12327 lt_prog_compiler_pic_CXX='-fpic'
12328 lt_prog_compiler_static_CXX='-Bstatic'
12332 # Make sure the PIC flag is empty. It appears that all Alpha
12333 # Linux and Compaq Tru64 Unix objects are PIC.
12334 lt_prog_compiler_pic_CXX=
12335 lt_prog_compiler_static_CXX='-non_shared'
12346 case $cc_basename in
12348 lt_prog_compiler_pic_CXX='-W c,exportall'
12354 netbsd* | netbsdelf*-gnu)
12356 osf3* | osf4* | osf5*)
12357 case $cc_basename in
12359 lt_prog_compiler_wl_CXX='--backend -Wl,'
12362 # Rational C++ 2.4.1
12363 lt_prog_compiler_pic_CXX='-pic'
12366 # Digital/Compaq C++
12367 lt_prog_compiler_wl_CXX='-Wl,'
12368 # Make sure the PIC flag is empty. It appears that all Alpha
12369 # Linux and Compaq Tru64 Unix objects are PIC.
12370 lt_prog_compiler_pic_CXX=
12371 lt_prog_compiler_static_CXX='-non_shared'
12380 case $cc_basename in
12382 # Sun C++ 4.2, 5.x and Centerline C++
12383 lt_prog_compiler_pic_CXX='-KPIC'
12384 lt_prog_compiler_static_CXX='-Bstatic'
12385 lt_prog_compiler_wl_CXX='-Qoption ld '
12388 # Green Hills C++ Compiler
12389 lt_prog_compiler_pic_CXX='-PIC'
12396 case $cc_basename in
12399 lt_prog_compiler_pic_CXX='-pic'
12400 lt_prog_compiler_static_CXX='-Bstatic'
12404 lt_prog_compiler_pic_CXX='-pic'
12411 case $cc_basename in
12413 # NonStop-UX NCC 3.20
12414 lt_prog_compiler_pic_CXX='-KPIC'
12420 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12421 case $cc_basename in
12423 lt_prog_compiler_wl_CXX='-Wl,'
12424 lt_prog_compiler_pic_CXX='-KPIC'
12425 lt_prog_compiler_static_CXX='-Bstatic'
12432 lt_prog_compiler_can_build_shared_CXX=no
12437 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12438 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12441 # Check to make sure the PIC flag actually works.
12443 if test -n "$lt_prog_compiler_pic_CXX"; then
12445 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12446 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12447 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12448 echo $ECHO_N "(cached) $ECHO_C" >&6
12450 lt_prog_compiler_pic_works_CXX=no
12451 ac_outfile=conftest.$ac_objext
12452 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12453 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12454 # Insert the option either (1) after the last *FLAGS variable, or
12455 # (2) before a word containing "conftest.", or (3) at the end.
12456 # Note that $ac_compile itself does not contain backslashes and begins
12457 # with a dollar sign (not a hyphen), so the echo should work correctly.
12458 # The option is referenced via a variable to avoid confusing sed.
12459 lt_compile=`echo "$ac_compile" | $SED \
12460 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12461 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12462 -e 's:$: $lt_compiler_flag:'`
12463 (eval echo "\"\$as_me:12463: $lt_compile\"" >&5)
12464 (eval "$lt_compile" 2>conftest.err)
12466 cat conftest.err >&5
12467 echo "$as_me:12467: \$? = $ac_status" >&5
12468 if (exit $ac_status) && test -s "$ac_outfile"; then
12469 # The compiler can only warn and ignore the option if not recognized
12470 # So say no if there are warnings other than the usual output.
12471 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12472 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12473 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12474 lt_prog_compiler_pic_works_CXX=yes
12480 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12481 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12483 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12484 case $lt_prog_compiler_pic_CXX in
12486 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12489 lt_prog_compiler_pic_CXX=
12490 lt_prog_compiler_can_build_shared_CXX=no
12495 # For platforms which do not support PIC, -DPIC is meaningless:
12497 lt_prog_compiler_pic_CXX=
12500 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12505 # Check to make sure the static flag actually works.
12507 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12508 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12509 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12510 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12511 echo $ECHO_N "(cached) $ECHO_C" >&6
12513 lt_prog_compiler_static_works_CXX=no
12514 save_LDFLAGS="$LDFLAGS"
12515 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12516 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12517 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12518 # The linker can only warn and ignore the option if not recognized
12519 # So say no if there are warnings
12520 if test -s conftest.err; then
12521 # Append any errors to the config.log.
12522 cat conftest.err 1>&5
12523 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12524 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12525 if diff conftest.exp conftest.er2 >/dev/null; then
12526 lt_prog_compiler_static_works_CXX=yes
12529 lt_prog_compiler_static_works_CXX=yes
12533 LDFLAGS="$save_LDFLAGS"
12536 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12537 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12539 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12542 lt_prog_compiler_static_CXX=
12546 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12547 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12548 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12549 echo $ECHO_N "(cached) $ECHO_C" >&6
12551 lt_cv_prog_compiler_c_o_CXX=no
12552 $rm -r conftest 2>/dev/null
12556 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12558 lt_compiler_flag="-o out/conftest2.$ac_objext"
12559 # Insert the option either (1) after the last *FLAGS variable, or
12560 # (2) before a word containing "conftest.", or (3) at the end.
12561 # Note that $ac_compile itself does not contain backslashes and begins
12562 # with a dollar sign (not a hyphen), so the echo should work correctly.
12563 lt_compile=`echo "$ac_compile" | $SED \
12564 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12565 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12566 -e 's:$: $lt_compiler_flag:'`
12567 (eval echo "\"\$as_me:12567: $lt_compile\"" >&5)
12568 (eval "$lt_compile" 2>out/conftest.err)
12570 cat out/conftest.err >&5
12571 echo "$as_me:12571: \$? = $ac_status" >&5
12572 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12574 # The compiler can only warn and ignore the option if not recognized
12575 # So say no if there are warnings
12576 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12577 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12578 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12579 lt_cv_prog_compiler_c_o_CXX=yes
12584 # SGI C++ compiler will create directory out/ii_files/ for
12585 # template instantiation
12586 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12587 $rm out/* && rmdir out
12593 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12594 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12597 hard_links="nottested"
12598 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12599 # do not overwrite the value of need_locks provided by the user
12600 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12601 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12604 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12606 ln conftest.a conftest.b 2>&5 || hard_links=no
12607 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12608 { echo "$as_me:$LINENO: result: $hard_links" >&5
12609 echo "${ECHO_T}$hard_links" >&6; }
12610 if test "$hard_links" = no; then
12611 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12612 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12619 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12620 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12622 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12625 # If we're using GNU nm, then we don't want the "-C" option.
12626 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12627 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12628 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'
12630 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'
12634 export_symbols_cmds_CXX="$ltdll_cmds"
12637 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'
12639 linux* | k*bsd*-gnu)
12640 link_all_deplibs_CXX=no
12643 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12647 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12648 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12649 test "$ld_shlibs_CXX" = no && can_build_shared=no
12652 # Do we need to explicitly link libc?
12654 case "x$archive_cmds_need_lc_CXX" in
12656 # Assume -lc should be added
12657 archive_cmds_need_lc_CXX=yes
12659 if test "$enable_shared" = yes && test "$GCC" = yes; then
12660 case $archive_cmds_CXX in
12662 # FIXME: we may have to deal with multi-command sequences.
12665 # Test whether the compiler implicitly links with -lc since on some
12666 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12667 # to ld, don't add -lc before -lgcc.
12668 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12669 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12671 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12674 (eval $ac_compile) 2>&5
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); } 2>conftest.err; then
12680 libobjs=conftest.$ac_objext
12682 wl=$lt_prog_compiler_wl_CXX
12683 pic_flag=$lt_prog_compiler_pic_CXX
12689 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12690 allow_undefined_flag_CXX=
12691 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12692 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695 (exit $ac_status); }
12697 archive_cmds_need_lc_CXX=no
12699 archive_cmds_need_lc_CXX=yes
12701 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12703 cat conftest.err 1>&5
12706 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12707 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12714 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12715 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12716 library_names_spec=
12717 libname_spec='lib$name'
12721 postuninstall_cmds=
12725 shlibpath_overrides_runpath=unknown
12727 dynamic_linker="$host_os ld.so"
12728 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12729 if test "$GCC" = yes; then
12730 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12731 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12732 # if the path contains ";" then we assume it to be the separator
12733 # otherwise default to the standard path separator (i.e. ":") - it is
12734 # assumed that no part of a normal pathname contains ";" but that should
12735 # okay in the real world where ";" in dirpaths is itself problematic.
12736 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12738 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12741 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12743 need_lib_prefix=unknown
12744 hardcode_into_libs=no
12746 # when you set need_version to no, make sure it does not cause -set_version
12747 # flags to be left without arguments
12748 need_version=unknown
12753 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12754 shlibpath_var=LIBPATH
12756 # AIX 3 has no versioning support, so we append a major version to the name.
12757 soname_spec='${libname}${release}${shared_ext}$major'
12764 hardcode_into_libs=yes
12765 if test "$host_cpu" = ia64; then
12766 # AIX 5 supports IA64
12767 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12768 shlibpath_var=LD_LIBRARY_PATH
12770 # With GCC up to 2.95.x, collect2 would create an import file
12771 # for dependence libraries. The import file would start with
12772 # the line `#! .'. This would cause the generated library to
12773 # depend on `.', always an invalid library. This was fixed in
12774 # development snapshots of GCC prior to 3.0.
12776 aix4 | aix4.[01] | aix4.[01].*)
12777 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12779 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12782 can_build_shared=no
12786 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12787 # soname into executable. Probably we can add versioning support to
12788 # collect2, so additional links can be useful in future.
12789 if test "$aix_use_runtimelinking" = yes; then
12790 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12791 # instead of lib<name>.a to let people know that these are not
12792 # typical AIX shared libraries.
12793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12795 # We preserve .a as extension for shared libraries through AIX4.2
12796 # and later when we are not doing run time linking.
12797 library_names_spec='${libname}${release}.a $libname.a'
12798 soname_spec='${libname}${release}${shared_ext}$major'
12800 shlibpath_var=LIBPATH
12805 library_names_spec='$libname.ixlibrary $libname.a'
12806 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12807 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'
12811 library_names_spec='${libname}${shared_ext}'
12812 dynamic_linker="$host_os ld.so"
12813 shlibpath_var=LIBRARY_PATH
12819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12820 soname_spec='${libname}${release}${shared_ext}$major'
12821 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12822 shlibpath_var=LD_LIBRARY_PATH
12823 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12824 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12825 # the default ld.so.conf also contains /usr/contrib/lib and
12826 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12827 # libtool to hard-code these into programs
12830 cygwin* | mingw* | pw32*)
12831 version_type=windows
12836 case $GCC,$host_os in
12837 yes,cygwin* | yes,mingw* | yes,pw32*)
12838 library_names_spec='$libname.dll.a'
12839 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12840 postinstall_cmds='base_file=`basename \${file}`~
12841 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12842 dldir=$destdir/`dirname \$dlpath`~
12843 test -d \$dldir || mkdir -p \$dldir~
12844 $install_prog $dir/$dlname \$dldir/$dlname~
12845 chmod a+x \$dldir/$dlname'
12846 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12847 dlpath=$dir/\$dldll~
12849 shlibpath_overrides_runpath=yes
12853 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12854 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12855 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12858 # MinGW DLLs use traditional 'lib' prefix
12859 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12860 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12861 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12862 # It is most probably a Windows format PATH printed by
12863 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12864 # path with ; separators, and with drive letters. We can handle the
12865 # drive letters (cygwin fileutils understands them), so leave them,
12866 # especially as we might pass files found there to a mingw objdump,
12867 # which wouldn't understand a cygwinified path. Ahh.
12868 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12870 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12874 # pw32 DLLs use 'pw' prefix rather than 'lib'
12875 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12881 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12884 dynamic_linker='Win32 ld.exe'
12885 # FIXME: first we should search . and the directory the executable is in
12889 darwin* | rhapsody*)
12890 dynamic_linker="$host_os dyld"
12891 version_type=darwin
12894 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12895 soname_spec='${libname}${release}${major}$shared_ext'
12896 shlibpath_overrides_runpath=yes
12897 shlibpath_var=DYLD_LIBRARY_PATH
12898 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12899 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12900 if test "$GCC" = yes; then
12901 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"`
12903 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12905 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12913 soname_spec='${libname}${release}${shared_ext}$major'
12914 shlibpath_var=LD_LIBRARY_PATH
12921 freebsd* | dragonfly*)
12922 # DragonFly does not have aout. When/if they implement a new
12923 # versioning mechanism, adjust this.
12924 if test -x /usr/bin/objformat; then
12925 objformat=`/usr/bin/objformat`
12928 freebsd[123]*) objformat=aout ;;
12929 *) objformat=elf ;;
12932 version_type=freebsd-$objformat
12933 case $version_type in
12935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12940 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12944 shlibpath_var=LD_LIBRARY_PATH
12947 shlibpath_overrides_runpath=yes
12949 freebsd3.[01]* | freebsdelf3.[01]*)
12950 shlibpath_overrides_runpath=yes
12951 hardcode_into_libs=yes
12953 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12954 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12955 shlibpath_overrides_runpath=no
12956 hardcode_into_libs=yes
12958 freebsd*) # from 4.6 on
12959 shlibpath_overrides_runpath=yes
12960 hardcode_into_libs=yes
12969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12970 soname_spec='${libname}${release}${shared_ext}$major'
12971 shlibpath_var=LD_LIBRARY_PATH
12972 hardcode_into_libs=yes
12975 hpux9* | hpux10* | hpux11*)
12976 # Give a soname corresponding to the major version so that dld.sl refuses to
12977 # link against other versions.
12984 hardcode_into_libs=yes
12985 dynamic_linker="$host_os dld.so"
12986 shlibpath_var=LD_LIBRARY_PATH
12987 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12989 soname_spec='${libname}${release}${shared_ext}$major'
12990 if test "X$HPUX_IA64_MODE" = X32; then
12991 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12993 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12995 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12999 hardcode_into_libs=yes
13000 dynamic_linker="$host_os dld.sl"
13001 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13002 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13004 soname_spec='${libname}${release}${shared_ext}$major'
13005 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13006 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13010 dynamic_linker="$host_os dld.sl"
13011 shlibpath_var=SHLIB_PATH
13012 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13014 soname_spec='${libname}${release}${shared_ext}$major'
13017 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13018 postinstall_cmds='chmod 555 $lib'
13025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13026 soname_spec='${libname}${release}${shared_ext}$major'
13027 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13028 shlibpath_var=LD_LIBRARY_PATH
13029 shlibpath_overrides_runpath=no
13030 hardcode_into_libs=yes
13033 irix5* | irix6* | nonstopux*)
13035 nonstopux*) version_type=nonstopux ;;
13037 if test "$lt_cv_prog_gnu_ld" = yes; then
13045 soname_spec='${libname}${release}${shared_ext}$major'
13046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13048 irix5* | nonstopux*)
13049 libsuff= shlibsuff=
13052 case $LD in # libtool.m4 will add one of these switches to LD
13053 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13054 libsuff= shlibsuff= libmagic=32-bit;;
13055 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13056 libsuff=32 shlibsuff=N32 libmagic=N32;;
13057 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13058 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13059 *) libsuff= shlibsuff= libmagic=never-match;;
13063 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13064 shlibpath_overrides_runpath=no
13065 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13066 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13067 hardcode_into_libs=yes
13070 # No shared lib support for Linux oldld, aout, or coff.
13071 linux*oldld* | linux*aout* | linux*coff*)
13075 # This must be Linux ELF.
13076 linux* | k*bsd*-gnu)
13080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13081 soname_spec='${libname}${release}${shared_ext}$major'
13082 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13083 shlibpath_var=LD_LIBRARY_PATH
13084 shlibpath_overrides_runpath=no
13085 # This implies no fast_install, which is unacceptable.
13086 # Some rework will be needed to allow for fast_install
13087 # before this can be enabled.
13088 hardcode_into_libs=yes
13090 # Append ld.so.conf contents to the search path
13091 if test -f /etc/ld.so.conf; then
13092 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' ' '`
13093 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13096 # We used to test for /lib/ld.so.1 and disable shared libraries on
13097 # powerpc, because MkLinux only supported shared libraries with the
13098 # GNU dynamic linker. Since this was broken with cross compilers,
13099 # most powerpc-linux boxes support dynamic linking these days and
13100 # people can always --disable-shared, the test was removed, and we
13101 # assume the GNU/Linux dynamic linker is in use.
13102 dynamic_linker='GNU/Linux ld.so'
13109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13110 soname_spec='${libname}${release}${shared_ext}$major'
13111 shlibpath_var=LD_LIBRARY_PATH
13112 shlibpath_overrides_runpath=no
13113 hardcode_into_libs=yes
13114 dynamic_linker='NetBSD ld.elf_so'
13121 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13123 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13124 dynamic_linker='NetBSD (a.out) ld.so'
13126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13127 soname_spec='${libname}${release}${shared_ext}$major'
13128 dynamic_linker='NetBSD ld.elf_so'
13130 shlibpath_var=LD_LIBRARY_PATH
13131 shlibpath_overrides_runpath=yes
13132 hardcode_into_libs=yes
13137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13138 shlibpath_var=LD_LIBRARY_PATH
13139 shlibpath_overrides_runpath=yes
13146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13147 soname_spec='${libname}${release}${shared_ext}$major'
13148 shlibpath_var=LD_LIBRARY_PATH
13149 shlibpath_overrides_runpath=yes
13154 sys_lib_dlsearch_path_spec="/usr/lib"
13156 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13158 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13159 *) need_version=no ;;
13161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13162 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13163 shlibpath_var=LD_LIBRARY_PATH
13164 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13166 openbsd2.[89] | openbsd2.[89].*)
13167 shlibpath_overrides_runpath=no
13170 shlibpath_overrides_runpath=yes
13174 shlibpath_overrides_runpath=yes
13179 libname_spec='$name'
13182 library_names_spec='$libname${shared_ext} $libname.a'
13183 dynamic_linker='OS/2 ld.exe'
13184 shlibpath_var=LIBPATH
13187 osf3* | osf4* | osf5*)
13191 soname_spec='${libname}${release}${shared_ext}$major'
13192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13193 shlibpath_var=LD_LIBRARY_PATH
13194 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13195 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13203 soname_spec='${libname}${release}${shared_ext}$major'
13204 shlibpath_var=LD_LIBRARY_PATH
13205 shlibpath_overrides_runpath=yes
13206 hardcode_into_libs=yes
13207 # ldd complains unless libraries are executable
13208 postinstall_cmds='chmod +x $lib'
13213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13214 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13215 shlibpath_var=LD_LIBRARY_PATH
13216 shlibpath_overrides_runpath=yes
13217 if test "$with_gnu_ld" = yes; then
13225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13226 soname_spec='${libname}${release}${shared_ext}$major'
13227 shlibpath_var=LD_LIBRARY_PATH
13228 case $host_vendor in
13230 shlibpath_overrides_runpath=no
13232 export_dynamic_flag_spec='${wl}-Blargedynsym'
13233 runpath_var=LD_RUN_PATH
13241 shlibpath_overrides_runpath=no
13242 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13248 if test -d /usr/nec ;then
13250 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13251 soname_spec='$libname${shared_ext}.$major'
13252 shlibpath_var=LD_LIBRARY_PATH
13256 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13257 version_type=freebsd-elf
13260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13261 soname_spec='${libname}${release}${shared_ext}$major'
13262 shlibpath_var=LD_LIBRARY_PATH
13263 hardcode_into_libs=yes
13264 if test "$with_gnu_ld" = yes; then
13265 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13266 shlibpath_overrides_runpath=no
13268 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13269 shlibpath_overrides_runpath=yes
13272 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13276 sys_lib_dlsearch_path_spec='/usr/lib'
13281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13282 soname_spec='${libname}${release}${shared_ext}$major'
13283 shlibpath_var=LD_LIBRARY_PATH
13290 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13291 echo "${ECHO_T}$dynamic_linker" >&6; }
13292 test "$dynamic_linker" = no && can_build_shared=no
13294 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13295 if test "$GCC" = yes; then
13296 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13299 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13300 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13301 hardcode_action_CXX=
13302 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13303 test -n "$runpath_var_CXX" || \
13304 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13306 # We can hardcode non-existant directories.
13307 if test "$hardcode_direct_CXX" != no &&
13308 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13309 # have to relink, otherwise we might link with an installed library
13310 # when we should be linking with a yet-to-be-installed one
13311 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13312 test "$hardcode_minus_L_CXX" != no; then
13313 # Linking always hardcodes the temporary library directory.
13314 hardcode_action_CXX=relink
13316 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13317 hardcode_action_CXX=immediate
13320 # We cannot hardcode anything, or else we can only hardcode existing
13322 hardcode_action_CXX=unsupported
13324 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13325 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13327 if test "$hardcode_action_CXX" = relink; then
13328 # Fast installation is not supported
13329 enable_fast_install=no
13330 elif test "$shlibpath_overrides_runpath" = yes ||
13331 test "$enable_shared" = no; then
13332 # Fast installation is not necessary
13333 enable_fast_install=needless
13337 # The else clause should only fire when bootstrapping the
13338 # libtool distribution, otherwise you forgot to ship ltmain.sh
13339 # with your package, and you will get complaints that there are
13340 # no rules to generate ltmain.sh.
13341 if test -f "$ltmain"; then
13342 # See if we are running on zsh, and set the options which allow our commands through
13343 # without removal of \ escapes.
13344 if test -n "${ZSH_VERSION+set}" ; then
13345 setopt NO_GLOB_SUBST
13347 # Now quote all the things that may contain metacharacters while being
13348 # careful not to overquote the AC_SUBSTed values. We take copies of the
13349 # variables and quote the copies for generation of the libtool script.
13350 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13352 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13353 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13354 deplibs_check_method reload_flag reload_cmds need_locks \
13355 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13356 lt_cv_sys_global_symbol_to_c_name_address \
13357 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13358 old_postinstall_cmds old_postuninstall_cmds \
13362 lt_prog_compiler_wl_CXX \
13363 lt_prog_compiler_pic_CXX \
13364 lt_prog_compiler_static_CXX \
13365 lt_prog_compiler_no_builtin_flag_CXX \
13366 export_dynamic_flag_spec_CXX \
13367 thread_safe_flag_spec_CXX \
13368 whole_archive_flag_spec_CXX \
13369 enable_shared_with_static_runtimes_CXX \
13370 old_archive_cmds_CXX \
13371 old_archive_from_new_cmds_CXX \
13372 predep_objects_CXX \
13373 postdep_objects_CXX \
13376 compiler_lib_search_path_CXX \
13378 archive_expsym_cmds_CXX \
13379 postinstall_cmds_CXX \
13380 postuninstall_cmds_CXX \
13381 old_archive_from_expsyms_cmds_CXX \
13382 allow_undefined_flag_CXX \
13383 no_undefined_flag_CXX \
13384 export_symbols_cmds_CXX \
13385 hardcode_libdir_flag_spec_CXX \
13386 hardcode_libdir_flag_spec_ld_CXX \
13387 hardcode_libdir_separator_CXX \
13388 hardcode_automatic_CXX \
13390 module_expsym_cmds_CXX \
13391 lt_cv_prog_compiler_c_o_CXX \
13392 exclude_expsyms_CXX \
13393 include_expsyms_CXX; do
13396 old_archive_cmds_CXX | \
13397 old_archive_from_new_cmds_CXX | \
13398 archive_cmds_CXX | \
13399 archive_expsym_cmds_CXX | \
13400 module_cmds_CXX | \
13401 module_expsym_cmds_CXX | \
13402 old_archive_from_expsyms_cmds_CXX | \
13403 export_symbols_cmds_CXX | \
13404 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13405 postinstall_cmds | postuninstall_cmds | \
13406 old_postinstall_cmds | old_postuninstall_cmds | \
13407 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13408 # Double-quote double-evaled strings.
13409 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13412 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13418 *'\$0 --fallback-echo"')
13419 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13425 cat <<__EOF__ >> "$cfgfile"
13426 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13428 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13430 # Shell to use when invoking shell scripts.
13433 # Whether or not to build shared libraries.
13434 build_libtool_libs=$enable_shared
13436 # Whether or not to build static libraries.
13437 build_old_libs=$enable_static
13439 # Whether or not to add -lc for building shared libraries.
13440 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13442 # Whether or not to disallow shared libs when runtime libs are static
13443 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13445 # Whether or not to optimize for fast installation.
13446 fast_install=$enable_fast_install
13449 host_alias=$host_alias
13453 # The build system.
13454 build_alias=$build_alias
13458 # An echo program that does not interpret backslashes.
13463 AR_FLAGS=$lt_AR_FLAGS
13468 # LTCC compiler flags.
13469 LTCFLAGS=$lt_LTCFLAGS
13471 # A language-specific compiler.
13472 CC=$lt_compiler_CXX
13474 # Is the compiler the GNU C compiler?
13480 # The linker used to build libraries.
13483 # Whether we need hard or soft links.
13486 # A BSD-compatible nm program.
13489 # A symbol stripping program
13492 # Used to examine libraries when file_magic_cmd begins "file"
13493 MAGIC_CMD=$MAGIC_CMD
13495 # Used on cygwin: DLL creation program.
13498 # Used on cygwin: object dumper.
13501 # Used on cygwin: assembler.
13504 # The name of the directory that contains temporary libtool files.
13507 # How to create reloadable object files.
13508 reload_flag=$lt_reload_flag
13509 reload_cmds=$lt_reload_cmds
13511 # How to pass a linker flag through the compiler.
13512 wl=$lt_lt_prog_compiler_wl_CXX
13514 # Object file suffix (normally "o").
13515 objext="$ac_objext"
13517 # Old archive suffix (normally "a").
13520 # Shared library suffix (normally ".so").
13521 shrext_cmds='$shrext_cmds'
13523 # Executable file suffix (normally "").
13526 # Additional compiler flags for building library objects.
13527 pic_flag=$lt_lt_prog_compiler_pic_CXX
13530 # What is the maximum length of a command?
13531 max_cmd_len=$lt_cv_sys_max_cmd_len
13533 # Does compiler simultaneously support -c and -o options?
13534 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13536 # Must we lock files when doing compilation?
13537 need_locks=$lt_need_locks
13539 # Do we need the lib prefix for modules?
13540 need_lib_prefix=$need_lib_prefix
13542 # Do we need a version for libraries?
13543 need_version=$need_version
13545 # Whether dlopen is supported.
13546 dlopen_support=$enable_dlopen
13548 # Whether dlopen of programs is supported.
13549 dlopen_self=$enable_dlopen_self
13551 # Whether dlopen of statically linked programs is supported.
13552 dlopen_self_static=$enable_dlopen_self_static
13554 # Compiler flag to prevent dynamic linking.
13555 link_static_flag=$lt_lt_prog_compiler_static_CXX
13557 # Compiler flag to turn off builtin functions.
13558 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13560 # Compiler flag to allow reflexive dlopens.
13561 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13563 # Compiler flag to generate shared objects directly from archives.
13564 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13566 # Compiler flag to generate thread-safe objects.
13567 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13569 # Library versioning type.
13570 version_type=$version_type
13572 # Format of library name prefix.
13573 libname_spec=$lt_libname_spec
13575 # List of archive names. First name is the real one, the rest are links.
13576 # The last name is the one that the linker finds with -lNAME.
13577 library_names_spec=$lt_library_names_spec
13579 # The coded name of the library, if different from the real name.
13580 soname_spec=$lt_soname_spec
13582 # Commands used to build and install an old-style archive.
13584 old_archive_cmds=$lt_old_archive_cmds_CXX
13585 old_postinstall_cmds=$lt_old_postinstall_cmds
13586 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13588 # Create an old-style archive from a shared archive.
13589 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13591 # Create a temporary old-style archive to link instead of a shared archive.
13592 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13594 # Commands used to build and install a shared archive.
13595 archive_cmds=$lt_archive_cmds_CXX
13596 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13597 postinstall_cmds=$lt_postinstall_cmds
13598 postuninstall_cmds=$lt_postuninstall_cmds
13600 # Commands used to build a loadable module (assumed same as above if empty)
13601 module_cmds=$lt_module_cmds_CXX
13602 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13604 # Commands to strip libraries.
13605 old_striplib=$lt_old_striplib
13606 striplib=$lt_striplib
13608 # Dependencies to place before the objects being linked to create a
13610 predep_objects=$lt_predep_objects_CXX
13612 # Dependencies to place after the objects being linked to create a
13614 postdep_objects=$lt_postdep_objects_CXX
13616 # Dependencies to place before the objects being linked to create a
13618 predeps=$lt_predeps_CXX
13620 # Dependencies to place after the objects being linked to create a
13622 postdeps=$lt_postdeps_CXX
13624 # The library search path used internally by the compiler when linking
13625 # a shared library.
13626 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13628 # Method to check whether dependent libraries are shared objects.
13629 deplibs_check_method=$lt_deplibs_check_method
13631 # Command to use when deplibs_check_method == file_magic.
13632 file_magic_cmd=$lt_file_magic_cmd
13634 # Flag that allows shared libraries with undefined symbols to be built.
13635 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13637 # Flag that forces no undefined symbols.
13638 no_undefined_flag=$lt_no_undefined_flag_CXX
13640 # Commands used to finish a libtool library installation in a directory.
13641 finish_cmds=$lt_finish_cmds
13643 # Same as above, but a single script fragment to be evaled but not shown.
13644 finish_eval=$lt_finish_eval
13646 # Take the output of nm and produce a listing of raw symbols and C names.
13647 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13649 # Transform the output of nm in a proper C declaration
13650 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13652 # Transform the output of nm in a C name address pair
13653 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13655 # This is the shared library runtime path variable.
13656 runpath_var=$runpath_var
13658 # This is the shared library path variable.
13659 shlibpath_var=$shlibpath_var
13661 # Is shlibpath searched before the hard-coded library search path?
13662 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13664 # How to hardcode a shared library path into an executable.
13665 hardcode_action=$hardcode_action_CXX
13667 # Whether we should hardcode library paths into libraries.
13668 hardcode_into_libs=$hardcode_into_libs
13670 # Flag to hardcode \$libdir into a binary during linking.
13671 # This must work even if \$libdir does not exist.
13672 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13674 # If ld is used when linking, flag to hardcode \$libdir into
13675 # a binary during linking. This must work even if \$libdir does
13677 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13679 # Whether we need a single -rpath flag with a separated argument.
13680 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13682 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13683 # resulting binary.
13684 hardcode_direct=$hardcode_direct_CXX
13686 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13687 # resulting binary.
13688 hardcode_minus_L=$hardcode_minus_L_CXX
13690 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13691 # the resulting binary.
13692 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13694 # Set to yes if building a shared library automatically hardcodes DIR into the library
13695 # and all subsequent libraries and executables linked against it.
13696 hardcode_automatic=$hardcode_automatic_CXX
13698 # Variables whose values should be saved in libtool wrapper scripts and
13699 # restored at relink time.
13700 variables_saved_for_relink="$variables_saved_for_relink"
13702 # Whether libtool must link a program against all its dependency libraries.
13703 link_all_deplibs=$link_all_deplibs_CXX
13705 # Compile-time system search path for libraries
13706 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13708 # Run-time system search path for libraries
13709 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13711 # Fix the shell variable \$srcfile for the compiler.
13712 fix_srcfile_path="$fix_srcfile_path_CXX"
13714 # Set to yes if exported symbols are required.
13715 always_export_symbols=$always_export_symbols_CXX
13717 # The commands to list exported symbols.
13718 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13720 # The commands to extract the exported symbol list from a shared archive.
13721 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13723 # Symbols that should not be listed in the preloaded symbols.
13724 exclude_expsyms=$lt_exclude_expsyms_CXX
13726 # Symbols that must always be exported.
13727 include_expsyms=$lt_include_expsyms_CXX
13729 # ### END LIBTOOL TAG CONFIG: $tagname
13735 # If there is no Makefile yet, we rely on a make rule to execute
13736 # `config.status --recheck' to rerun these tests and create the
13737 # libtool script then.
13738 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13739 if test -f "$ltmain_in"; then
13740 test -f Makefile && make "$ltmain"
13746 ac_cpp='$CPP $CPPFLAGS'
13747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13755 with_gnu_ldcxx=$with_gnu_ld
13756 with_gnu_ld=$lt_save_with_gnu_ld
13757 lt_cv_path_LDCXX=$lt_cv_path_LD
13758 lt_cv_path_LD=$lt_save_path_LD
13759 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13760 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13768 if test -n "$F77" && test "X$F77" != "Xno"; then
13771 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13772 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13773 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13776 archive_cmds_need_lc_F77=no
13777 allow_undefined_flag_F77=
13778 always_export_symbols_F77=no
13779 archive_expsym_cmds_F77=
13780 export_dynamic_flag_spec_F77=
13781 hardcode_direct_F77=no
13782 hardcode_libdir_flag_spec_F77=
13783 hardcode_libdir_flag_spec_ld_F77=
13784 hardcode_libdir_separator_F77=
13785 hardcode_minus_L_F77=no
13786 hardcode_automatic_F77=no
13788 module_expsym_cmds_F77=
13789 link_all_deplibs_F77=unknown
13790 old_archive_cmds_F77=$old_archive_cmds
13791 no_undefined_flag_F77=
13792 whole_archive_flag_spec_F77=
13793 enable_shared_with_static_runtimes_F77=no
13795 # Source file extension for f77 test sources.
13798 # Object file extension for compiled f77 test sources.
13802 # Code to be used in simple compile tests
13803 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13805 # Code to be used in simple link tests
13806 lt_simple_link_test_code=" program t\n end\n"
13808 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13810 # If no C compiler was specified, use CC.
13813 # If no C compiler flags were specified, use CFLAGS.
13814 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13816 # Allow CC to be a program name with arguments.
13820 # save warnings/boilerplate of simple test code
13821 ac_outfile=conftest.$ac_objext
13822 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13823 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13824 _lt_compiler_boilerplate=`cat conftest.err`
13827 ac_outfile=conftest.$ac_objext
13828 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13829 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13830 _lt_linker_boilerplate=`cat conftest.err`
13834 # Allow CC to be a program name with arguments.
13839 for cc_temp in $compiler""; do
13841 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13842 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13847 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13850 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13851 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13852 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13853 echo "${ECHO_T}$can_build_shared" >&6; }
13855 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13856 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13857 test "$can_build_shared" = "no" && enable_shared=no
13859 # On AIX, shared libraries and static libraries use the same namespace, and
13860 # are all built from PIC.
13863 test "$enable_shared" = yes && enable_static=no
13864 if test -n "$RANLIB"; then
13865 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13866 postinstall_cmds='$RANLIB $lib'
13870 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13871 test "$enable_shared" = yes && enable_static=no
13875 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13876 echo "${ECHO_T}$enable_shared" >&6; }
13878 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13879 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13880 # Make sure either enable_shared or enable_static is yes.
13881 test "$enable_shared" = yes || enable_static=yes
13882 { echo "$as_me:$LINENO: result: $enable_static" >&5
13883 echo "${ECHO_T}$enable_static" >&6; }
13888 lt_prog_compiler_wl_F77=
13889 lt_prog_compiler_pic_F77=
13890 lt_prog_compiler_static_F77=
13892 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13893 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13895 if test "$GCC" = yes; then
13896 lt_prog_compiler_wl_F77='-Wl,'
13897 lt_prog_compiler_static_F77='-static'
13901 # All AIX code is PIC.
13902 if test "$host_cpu" = ia64; then
13903 # AIX 5 now supports IA64 processor
13904 lt_prog_compiler_static_F77='-Bstatic'
13909 # FIXME: we need at least 68020 code to build shared libraries, but
13910 # adding the `-m68020' flag to GCC prevents building anything better,
13912 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13915 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13916 # PIC is the default for these OSes.
13919 mingw* | pw32* | os2*)
13920 # This hack is so that the source file can tell whether it is being
13921 # built for inclusion in a dll (and should export symbols for example).
13922 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13925 darwin* | rhapsody*)
13926 # PIC is the default on this platform
13927 # Common symbols not allowed in MH_DYLIB files
13928 lt_prog_compiler_pic_F77='-fno-common'
13932 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13933 # Instead, we relocate shared libraries at runtime.
13937 # Just because we use GCC doesn't mean we suddenly get shared libraries
13938 # on systems that don't support them.
13939 lt_prog_compiler_can_build_shared_F77=no
13944 if test -d /usr/nec; then
13945 lt_prog_compiler_pic_F77=-Kconform_pic
13950 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13951 # not for PA HP-UX.
13957 lt_prog_compiler_pic_F77='-fPIC'
13963 lt_prog_compiler_pic_F77='-fPIC'
13967 # PORTME Check for flag to pass linker flags through the system compiler.
13970 lt_prog_compiler_wl_F77='-Wl,'
13971 if test "$host_cpu" = ia64; then
13972 # AIX 5 now supports IA64 processor
13973 lt_prog_compiler_static_F77='-Bstatic'
13975 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13979 # PIC is the default on this platform
13980 # Common symbols not allowed in MH_DYLIB files
13981 case $cc_basename in
13983 lt_prog_compiler_pic_F77='-qnocommon'
13984 lt_prog_compiler_wl_F77='-Wl,'
13989 mingw* | pw32* | os2*)
13990 # This hack is so that the source file can tell whether it is being
13991 # built for inclusion in a dll (and should export symbols for example).
13992 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13995 hpux9* | hpux10* | hpux11*)
13996 lt_prog_compiler_wl_F77='-Wl,'
13997 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13998 # not for PA HP-UX.
14004 lt_prog_compiler_pic_F77='+Z'
14007 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14008 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14011 irix5* | irix6* | nonstopux*)
14012 lt_prog_compiler_wl_F77='-Wl,'
14013 # PIC (with -KPIC) is the default.
14014 lt_prog_compiler_static_F77='-non_shared'
14018 lt_prog_compiler_pic_F77='-KPIC'
14019 lt_prog_compiler_static_F77='-Bstatic'
14022 linux* | k*bsd*-gnu)
14023 case $cc_basename in
14025 lt_prog_compiler_wl_F77='-Wl,'
14026 lt_prog_compiler_pic_F77='-KPIC'
14027 lt_prog_compiler_static_F77='-static'
14029 pgcc* | pgf77* | pgf90* | pgf95*)
14030 # Portland Group compilers (*not* the Pentium gcc compiler,
14031 # which looks to be a dead project)
14032 lt_prog_compiler_wl_F77='-Wl,'
14033 lt_prog_compiler_pic_F77='-fpic'
14034 lt_prog_compiler_static_F77='-Bstatic'
14037 lt_prog_compiler_wl_F77='-Wl,'
14038 # All Alpha code is PIC.
14039 lt_prog_compiler_static_F77='-non_shared'
14044 osf3* | osf4* | osf5*)
14045 lt_prog_compiler_wl_F77='-Wl,'
14046 # All OSF/1 code is PIC.
14047 lt_prog_compiler_static_F77='-non_shared'
14051 lt_prog_compiler_pic_F77='-KPIC'
14052 lt_prog_compiler_static_F77='-Bstatic'
14053 case $cc_basename in
14054 f77* | f90* | f95*)
14055 lt_prog_compiler_wl_F77='-Qoption ld ';;
14057 lt_prog_compiler_wl_F77='-Wl,';;
14062 lt_prog_compiler_wl_F77='-Qoption ld '
14063 lt_prog_compiler_pic_F77='-PIC'
14064 lt_prog_compiler_static_F77='-Bstatic'
14067 sysv4 | sysv4.2uw2* | sysv4.3*)
14068 lt_prog_compiler_wl_F77='-Wl,'
14069 lt_prog_compiler_pic_F77='-KPIC'
14070 lt_prog_compiler_static_F77='-Bstatic'
14074 if test -d /usr/nec ;then
14075 lt_prog_compiler_pic_F77='-Kconform_pic'
14076 lt_prog_compiler_static_F77='-Bstatic'
14080 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14081 lt_prog_compiler_wl_F77='-Wl,'
14082 lt_prog_compiler_pic_F77='-KPIC'
14083 lt_prog_compiler_static_F77='-Bstatic'
14087 lt_prog_compiler_wl_F77='-Wl,'
14088 lt_prog_compiler_can_build_shared_F77=no
14092 lt_prog_compiler_pic_F77='-pic'
14093 lt_prog_compiler_static_F77='-Bstatic'
14097 lt_prog_compiler_can_build_shared_F77=no
14102 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14103 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14106 # Check to make sure the PIC flag actually works.
14108 if test -n "$lt_prog_compiler_pic_F77"; then
14110 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14111 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14112 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14113 echo $ECHO_N "(cached) $ECHO_C" >&6
14115 lt_prog_compiler_pic_works_F77=no
14116 ac_outfile=conftest.$ac_objext
14117 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14118 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14119 # Insert the option either (1) after the last *FLAGS variable, or
14120 # (2) before a word containing "conftest.", or (3) at the end.
14121 # Note that $ac_compile itself does not contain backslashes and begins
14122 # with a dollar sign (not a hyphen), so the echo should work correctly.
14123 # The option is referenced via a variable to avoid confusing sed.
14124 lt_compile=`echo "$ac_compile" | $SED \
14125 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14126 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14127 -e 's:$: $lt_compiler_flag:'`
14128 (eval echo "\"\$as_me:14128: $lt_compile\"" >&5)
14129 (eval "$lt_compile" 2>conftest.err)
14131 cat conftest.err >&5
14132 echo "$as_me:14132: \$? = $ac_status" >&5
14133 if (exit $ac_status) && test -s "$ac_outfile"; then
14134 # The compiler can only warn and ignore the option if not recognized
14135 # So say no if there are warnings other than the usual output.
14136 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14137 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14138 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14139 lt_prog_compiler_pic_works_F77=yes
14145 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14146 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14148 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14149 case $lt_prog_compiler_pic_F77 in
14151 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14154 lt_prog_compiler_pic_F77=
14155 lt_prog_compiler_can_build_shared_F77=no
14160 # For platforms which do not support PIC, -DPIC is meaningless:
14162 lt_prog_compiler_pic_F77=
14165 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14170 # Check to make sure the static flag actually works.
14172 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14173 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14174 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14175 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14176 echo $ECHO_N "(cached) $ECHO_C" >&6
14178 lt_prog_compiler_static_works_F77=no
14179 save_LDFLAGS="$LDFLAGS"
14180 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14181 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14182 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14183 # The linker can only warn and ignore the option if not recognized
14184 # So say no if there are warnings
14185 if test -s conftest.err; then
14186 # Append any errors to the config.log.
14187 cat conftest.err 1>&5
14188 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14189 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14190 if diff conftest.exp conftest.er2 >/dev/null; then
14191 lt_prog_compiler_static_works_F77=yes
14194 lt_prog_compiler_static_works_F77=yes
14198 LDFLAGS="$save_LDFLAGS"
14201 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14202 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14204 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14207 lt_prog_compiler_static_F77=
14211 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14212 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14213 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14214 echo $ECHO_N "(cached) $ECHO_C" >&6
14216 lt_cv_prog_compiler_c_o_F77=no
14217 $rm -r conftest 2>/dev/null
14221 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14223 lt_compiler_flag="-o out/conftest2.$ac_objext"
14224 # Insert the option either (1) after the last *FLAGS variable, or
14225 # (2) before a word containing "conftest.", or (3) at the end.
14226 # Note that $ac_compile itself does not contain backslashes and begins
14227 # with a dollar sign (not a hyphen), so the echo should work correctly.
14228 lt_compile=`echo "$ac_compile" | $SED \
14229 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14230 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14231 -e 's:$: $lt_compiler_flag:'`
14232 (eval echo "\"\$as_me:14232: $lt_compile\"" >&5)
14233 (eval "$lt_compile" 2>out/conftest.err)
14235 cat out/conftest.err >&5
14236 echo "$as_me:14236: \$? = $ac_status" >&5
14237 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14239 # The compiler can only warn and ignore the option if not recognized
14240 # So say no if there are warnings
14241 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14242 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14243 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14244 lt_cv_prog_compiler_c_o_F77=yes
14249 # SGI C++ compiler will create directory out/ii_files/ for
14250 # template instantiation
14251 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14252 $rm out/* && rmdir out
14258 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14259 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14262 hard_links="nottested"
14263 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14264 # do not overwrite the value of need_locks provided by the user
14265 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14266 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14269 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14271 ln conftest.a conftest.b 2>&5 || hard_links=no
14272 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14273 { echo "$as_me:$LINENO: result: $hard_links" >&5
14274 echo "${ECHO_T}$hard_links" >&6; }
14275 if test "$hard_links" = no; then
14276 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14277 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14284 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14285 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14288 allow_undefined_flag_F77=
14289 enable_shared_with_static_runtimes_F77=no
14291 archive_expsym_cmds_F77=
14292 old_archive_From_new_cmds_F77=
14293 old_archive_from_expsyms_cmds_F77=
14294 export_dynamic_flag_spec_F77=
14295 whole_archive_flag_spec_F77=
14296 thread_safe_flag_spec_F77=
14297 hardcode_libdir_flag_spec_F77=
14298 hardcode_libdir_flag_spec_ld_F77=
14299 hardcode_libdir_separator_F77=
14300 hardcode_direct_F77=no
14301 hardcode_minus_L_F77=no
14302 hardcode_shlibpath_var_F77=unsupported
14303 link_all_deplibs_F77=unknown
14304 hardcode_automatic_F77=no
14306 module_expsym_cmds_F77=
14307 always_export_symbols_F77=no
14308 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14309 # include_expsyms should be a list of space-separated symbols to be *always*
14310 # included in the symbol list
14311 include_expsyms_F77=
14312 # exclude_expsyms can be an extended regexp of symbols to exclude
14313 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14314 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14315 # as well as any symbol that contains `d'.
14316 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14317 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14318 # platforms (ab)use it in PIC code, but their linkers get confused if
14319 # the symbol is explicitly referenced. Since portable code cannot
14320 # rely on this symbol name, it's probably fine to never include it in
14321 # preloaded symbol tables.
14322 extract_expsyms_cmds=
14323 # Just being paranoid about ensuring that cc_basename is set.
14324 for cc_temp in $compiler""; do
14326 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14327 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14332 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14335 cygwin* | mingw* | pw32*)
14336 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14337 # When not using gcc, we currently assume that we are using
14338 # Microsoft Visual C++.
14339 if test "$GCC" != yes; then
14344 # we just hope/assume this is gcc and not c89 (= MSVC++)
14353 if test "$with_gnu_ld" = yes; then
14354 # If archive_cmds runs LD, not CC, wlarc should be empty
14357 # Set some defaults for GNU ld with shared library support. These
14358 # are reset later if shared libraries are not supported. Putting them
14359 # here allows them to be overridden if necessary.
14360 runpath_var=LD_RUN_PATH
14361 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14362 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14363 # ancient GNU ld didn't support --whole-archive et. al.
14364 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14365 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14367 whole_archive_flag_spec_F77=
14369 supports_anon_versioning=no
14370 case `$LD -v 2>/dev/null` in
14371 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14372 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14373 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14374 *\ 2.11.*) ;; # other 2.11 versions
14375 *) supports_anon_versioning=yes ;;
14378 # See if GNU ld supports shared libraries.
14380 aix3* | aix4* | aix5*)
14381 # On AIX/PPC, the GNU linker is very broken
14382 if test "$host_cpu" != ia64; then
14386 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14387 *** to be unable to reliably create shared libraries on AIX.
14388 *** Therefore, libtool is disabling shared libraries support. If you
14389 *** really care for shared libraries, you may want to modify your PATH
14390 *** so that a non-GNU linker is found, and then restart.
14397 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)'
14398 hardcode_libdir_flag_spec_F77='-L$libdir'
14399 hardcode_minus_L_F77=yes
14401 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14402 # that the semantics of dynamic libraries on AmigaOS, at least up
14403 # to version 4, is to share data among multiple programs linked
14404 # with the same dynamic library. Since this doesn't match the
14405 # behavior of shared libraries on other platforms, we can't use
14411 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14412 allow_undefined_flag_F77=unsupported
14413 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14414 # support --undefined. This deserves some investigation. FIXME
14415 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14421 cygwin* | mingw* | pw32*)
14422 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14423 # as there is no search path for DLLs.
14424 hardcode_libdir_flag_spec_F77='-L$libdir'
14425 allow_undefined_flag_F77=unsupported
14426 always_export_symbols_F77=no
14427 enable_shared_with_static_runtimes_F77=yes
14428 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14430 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14431 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14432 # If the export-symbols file already is a .def file (1st line
14433 # is EXPORTS), use it as is; otherwise, prepend...
14434 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14435 cp $export_symbols $output_objdir/$soname.def;
14437 echo EXPORTS > $output_objdir/$soname.def;
14438 cat $export_symbols >> $output_objdir/$soname.def;
14440 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14447 hardcode_direct_F77=no
14448 hardcode_shlibpath_var_F77=no
14449 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14450 export_dynamic_flag_spec_F77='${wl}-E'
14451 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14452 # Instead, shared libraries are loaded at an image base (0x10000000 by
14453 # default) and relocated if they conflict, which is a slow very memory
14454 # consuming and fragmenting process. To avoid this, we pick a random,
14455 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14456 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14457 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'
14458 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'
14461 linux* | k*bsd*-gnu)
14462 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14464 case $cc_basename,$host_cpu in
14465 pgcc*) # Portland Group C compiler
14466 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'
14467 tmp_addflag=' $pic_flag'
14469 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14470 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'
14471 tmp_addflag=' $pic_flag -Mnomain' ;;
14472 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14473 tmp_addflag=' -i_dynamic' ;;
14474 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14475 tmp_addflag=' -i_dynamic -nofor_main' ;;
14476 ifc* | ifort*) # Intel Fortran compiler
14477 tmp_addflag=' -nofor_main' ;;
14479 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14481 if test $supports_anon_versioning = yes; then
14482 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14483 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14484 $echo "local: *; };" >> $output_objdir/$libname.ver~
14485 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14487 link_all_deplibs_F77=no
14493 netbsd* | netbsdelf*-gnu)
14494 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14495 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14498 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14499 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14504 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14508 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14509 *** create shared libraries on Solaris systems. Therefore, libtool
14510 *** is disabling shared libraries support. We urge you to upgrade GNU
14511 *** binutils to release 2.9.1 or newer. Another option is to modify
14512 *** your PATH or compiler configuration so that the native linker is
14513 *** used, and then restart.
14516 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14517 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14518 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14524 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14525 case `$LD -v 2>&1` in
14526 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14530 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14531 *** reliably create shared libraries on SCO systems. Therefore, libtool
14532 *** is disabling shared libraries support. We urge you to upgrade GNU
14533 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14534 *** your PATH or compiler configuration so that the native linker is
14535 *** used, and then restart.
14540 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14541 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14542 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14543 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14552 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14554 hardcode_direct_F77=yes
14555 hardcode_shlibpath_var_F77=no
14559 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14560 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14561 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14568 if test "$ld_shlibs_F77" = no; then
14570 hardcode_libdir_flag_spec_F77=
14571 export_dynamic_flag_spec_F77=
14572 whole_archive_flag_spec_F77=
14575 # PORTME fill in a description of your system's linker (not GNU ld)
14578 allow_undefined_flag_F77=unsupported
14579 always_export_symbols_F77=yes
14580 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'
14581 # Note: this linker hardcodes the directories in LIBPATH if there
14582 # are no directories specified by -L.
14583 hardcode_minus_L_F77=yes
14584 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14585 # Neither direct hardcoding nor static linking is supported with a
14587 hardcode_direct_F77=unsupported
14592 if test "$host_cpu" = ia64; then
14593 # On IA64, the linker does run time linking by default, so we don't
14594 # have to do anything special.
14595 aix_use_runtimelinking=no
14596 exp_sym_flag='-Bexport'
14599 # If we're using GNU nm, then we don't want the "-C" option.
14600 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14601 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14602 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'
14604 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'
14606 aix_use_runtimelinking=no
14608 # Test if we are trying to use run time linking or normal
14609 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14610 # need to do runtime linking.
14611 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14612 for ld_flag in $LDFLAGS; do
14613 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14614 aix_use_runtimelinking=yes
14621 exp_sym_flag='-bexport'
14622 no_entry_flag='-bnoentry'
14625 # When large executables or shared objects are built, AIX ld can
14626 # have problems creating the table of contents. If linking a library
14627 # or program results in "error TOC overflow" add -mminimal-toc to
14628 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14629 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14631 archive_cmds_F77=''
14632 hardcode_direct_F77=yes
14633 hardcode_libdir_separator_F77=':'
14634 link_all_deplibs_F77=yes
14636 if test "$GCC" = yes; then
14637 case $host_os in aix4.[012]|aix4.[012].*)
14638 # We only want to do this on AIX 4.2 and lower, the check
14639 # below for broken collect2 doesn't work under 4.3+
14640 collect2name=`${CC} -print-prog-name=collect2`
14641 if test -f "$collect2name" && \
14642 strings "$collect2name" | grep resolve_lib_name >/dev/null
14644 # We have reworked collect2
14645 hardcode_direct_F77=yes
14647 # We have old collect2
14648 hardcode_direct_F77=unsupported
14649 # It fails to find uninstalled libraries when the uninstalled
14650 # path is not listed in the libpath. Setting hardcode_minus_L
14651 # to unsupported forces relinking
14652 hardcode_minus_L_F77=yes
14653 hardcode_libdir_flag_spec_F77='-L$libdir'
14654 hardcode_libdir_separator_F77=
14658 shared_flag='-shared'
14659 if test "$aix_use_runtimelinking" = yes; then
14660 shared_flag="$shared_flag "'${wl}-G'
14664 if test "$host_cpu" = ia64; then
14665 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14666 # chokes on -Wl,-G. The following line is correct:
14669 if test "$aix_use_runtimelinking" = yes; then
14670 shared_flag='${wl}-G'
14672 shared_flag='${wl}-bM:SRE'
14677 # It seems that -bexpall does not export symbols beginning with
14678 # underscore (_), so it is better to generate a list of symbols to export.
14679 always_export_symbols_F77=yes
14680 if test "$aix_use_runtimelinking" = yes; then
14681 # Warning - without using the other runtime loading flags (-brtl),
14682 # -berok will link without error, but may produce a broken library.
14683 allow_undefined_flag_F77='-berok'
14684 # Determine the default libpath from the value encoded in an empty executable.
14685 cat >conftest.$ac_ext <<_ACEOF
14690 rm -f conftest.$ac_objext conftest$ac_exeext
14691 if { (ac_try="$ac_link"
14692 case "(($ac_try" in
14693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14694 *) ac_try_echo=$ac_try;;
14696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14697 (eval "$ac_link") 2>conftest.er1
14699 grep -v '^ *+' conftest.er1 >conftest.err
14701 cat conftest.err >&5
14702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703 (exit $ac_status); } && {
14704 test -z "$ac_f77_werror_flag" ||
14705 test ! -s conftest.err
14706 } && test -s conftest$ac_exeext &&
14707 $as_test_x conftest$ac_exeext; then
14709 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14711 # Check for a 64-bit object if we didn't find anything.
14712 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; }
14715 echo "$as_me: failed program was:" >&5
14716 sed 's/^/| /' conftest.$ac_ext >&5
14721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14722 conftest$ac_exeext conftest.$ac_ext
14723 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14725 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14726 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"
14728 if test "$host_cpu" = ia64; then
14729 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14730 allow_undefined_flag_F77="-z nodefs"
14731 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"
14733 # Determine the default libpath from the value encoded in an empty executable.
14734 cat >conftest.$ac_ext <<_ACEOF
14739 rm -f conftest.$ac_objext conftest$ac_exeext
14740 if { (ac_try="$ac_link"
14741 case "(($ac_try" in
14742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14743 *) ac_try_echo=$ac_try;;
14745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14746 (eval "$ac_link") 2>conftest.er1
14748 grep -v '^ *+' conftest.er1 >conftest.err
14750 cat conftest.err >&5
14751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752 (exit $ac_status); } && {
14753 test -z "$ac_f77_werror_flag" ||
14754 test ! -s conftest.err
14755 } && test -s conftest$ac_exeext &&
14756 $as_test_x conftest$ac_exeext; then
14758 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14760 # Check for a 64-bit object if we didn't find anything.
14761 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; }
14764 echo "$as_me: failed program was:" >&5
14765 sed 's/^/| /' conftest.$ac_ext >&5
14770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14771 conftest$ac_exeext conftest.$ac_ext
14772 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14774 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14775 # Warning - without using the other run time loading flags,
14776 # -berok will link without error, but may produce a broken library.
14777 no_undefined_flag_F77=' ${wl}-bernotok'
14778 allow_undefined_flag_F77=' ${wl}-berok'
14779 # Exported symbols can be pulled into shared objects from archives
14780 whole_archive_flag_spec_F77='$convenience'
14781 archive_cmds_need_lc_F77=yes
14782 # This is similar to how AIX traditionally builds its shared libraries.
14783 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'
14789 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)'
14790 hardcode_libdir_flag_spec_F77='-L$libdir'
14791 hardcode_minus_L_F77=yes
14792 # see comment about different semantics on the GNU ld section
14797 export_dynamic_flag_spec_F77=-rdynamic
14800 cygwin* | mingw* | pw32*)
14801 # When not using gcc, we currently assume that we are using
14802 # Microsoft Visual C++.
14803 # hardcode_libdir_flag_spec is actually meaningless, as there is
14804 # no search path for DLLs.
14805 hardcode_libdir_flag_spec_F77=' '
14806 allow_undefined_flag_F77=unsupported
14807 # Tell ltmain to make .lib files, not .a files.
14809 # Tell ltmain to make .dll files, not .so files.
14811 # FIXME: Setting linknames here is a bad hack.
14812 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14813 # The linker will automatically build a .lib file if we build a DLL.
14814 old_archive_From_new_cmds_F77='true'
14815 # FIXME: Should let the user specify the lib program.
14816 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14817 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14818 enable_shared_with_static_runtimes_F77=yes
14821 darwin* | rhapsody*)
14823 rhapsody* | darwin1.[012])
14824 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14827 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14828 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14830 case ${MACOSX_DEPLOYMENT_TARGET} in
14832 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14835 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14841 archive_cmds_need_lc_F77=no
14842 hardcode_direct_F77=no
14843 hardcode_automatic_F77=yes
14844 hardcode_shlibpath_var_F77=unsupported
14845 whole_archive_flag_spec_F77=''
14846 link_all_deplibs_F77=yes
14847 if test "$GCC" = yes ; then
14848 output_verbose_link_cmd='echo'
14849 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14850 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14851 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14852 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}'
14853 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}'
14855 case $cc_basename in
14857 output_verbose_link_cmd='echo'
14858 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14859 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14860 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14861 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}'
14862 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}'
14872 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14873 hardcode_libdir_flag_spec_F77='-L$libdir'
14874 hardcode_shlibpath_var_F77=no
14881 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14882 # support. Future versions do this automatically, but an explicit c++rt0.o
14883 # does not break anything, and helps significantly (at the cost of a little
14886 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14887 hardcode_libdir_flag_spec_F77='-R$libdir'
14888 hardcode_direct_F77=yes
14889 hardcode_shlibpath_var_F77=no
14892 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14894 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14895 hardcode_direct_F77=yes
14896 hardcode_minus_L_F77=yes
14897 hardcode_shlibpath_var_F77=no
14900 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14901 freebsd* | dragonfly*)
14902 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14903 hardcode_libdir_flag_spec_F77='-R$libdir'
14904 hardcode_direct_F77=yes
14905 hardcode_shlibpath_var_F77=no
14909 if test "$GCC" = yes; then
14910 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'
14912 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'
14914 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14915 hardcode_libdir_separator_F77=:
14916 hardcode_direct_F77=yes
14918 # hardcode_minus_L: Not really in the search PATH,
14919 # but as the default location of the library.
14920 hardcode_minus_L_F77=yes
14921 export_dynamic_flag_spec_F77='${wl}-E'
14925 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14926 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14928 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14930 if test "$with_gnu_ld" = no; then
14931 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14932 hardcode_libdir_separator_F77=:
14934 hardcode_direct_F77=yes
14935 export_dynamic_flag_spec_F77='${wl}-E'
14937 # hardcode_minus_L: Not really in the search PATH,
14938 # but as the default location of the library.
14939 hardcode_minus_L_F77=yes
14944 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14947 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14950 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14953 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14959 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14962 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14965 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14969 if test "$with_gnu_ld" = no; then
14970 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14971 hardcode_libdir_separator_F77=:
14975 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14976 hardcode_direct_F77=no
14977 hardcode_shlibpath_var_F77=no
14980 hardcode_direct_F77=yes
14981 export_dynamic_flag_spec_F77='${wl}-E'
14983 # hardcode_minus_L: Not really in the search PATH,
14984 # but as the default location of the library.
14985 hardcode_minus_L_F77=yes
14991 irix5* | irix6* | nonstopux*)
14992 if test "$GCC" = yes; then
14993 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'
14995 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'
14996 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14998 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14999 hardcode_libdir_separator_F77=:
15000 link_all_deplibs_F77=yes
15003 netbsd* | netbsdelf*-gnu)
15004 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15005 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15007 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15009 hardcode_libdir_flag_spec_F77='-R$libdir'
15010 hardcode_direct_F77=yes
15011 hardcode_shlibpath_var_F77=no
15015 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15016 hardcode_direct_F77=yes
15017 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15018 hardcode_libdir_separator_F77=:
15019 hardcode_shlibpath_var_F77=no
15023 hardcode_direct_F77=yes
15024 hardcode_shlibpath_var_F77=no
15025 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15026 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15027 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15028 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15029 export_dynamic_flag_spec_F77='${wl}-E'
15032 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15033 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15034 hardcode_libdir_flag_spec_F77='-R$libdir'
15037 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15038 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15045 hardcode_libdir_flag_spec_F77='-L$libdir'
15046 hardcode_minus_L_F77=yes
15047 allow_undefined_flag_F77=unsupported
15048 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'
15049 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15053 if test "$GCC" = yes; then
15054 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15055 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'
15057 allow_undefined_flag_F77=' -expect_unresolved \*'
15058 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'
15060 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15061 hardcode_libdir_separator_F77=:
15064 osf4* | osf5*) # as osf3* with the addition of -msym flag
15065 if test "$GCC" = yes; then
15066 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15067 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'
15068 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15070 allow_undefined_flag_F77=' -expect_unresolved \*'
15071 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'
15072 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~
15073 $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'
15075 # Both c and cxx compiler support -rpath directly
15076 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15078 hardcode_libdir_separator_F77=:
15082 no_undefined_flag_F77=' -z text'
15083 if test "$GCC" = yes; then
15085 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15086 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15087 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15090 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15091 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15092 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15094 hardcode_libdir_flag_spec_F77='-R$libdir'
15095 hardcode_shlibpath_var_F77=no
15097 solaris2.[0-5] | solaris2.[0-5].*) ;;
15099 # The compiler driver will combine linker options so we
15100 # cannot just pass the convience library names through
15101 # without $wl, iff we do not link with $LD.
15102 # Luckily, gcc supports the same syntax we need for Sun Studio.
15103 # Supported since Solaris 2.6 (maybe 2.5.1?)
15106 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15108 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' ;;
15111 link_all_deplibs_F77=yes
15115 if test "x$host_vendor" = xsequent; then
15116 # Use $CC to link under sequent, because it throws in some extra .o
15117 # files that make .init and .fini sections work.
15118 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15120 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15122 hardcode_libdir_flag_spec_F77='-L$libdir'
15123 hardcode_direct_F77=yes
15124 hardcode_minus_L_F77=yes
15125 hardcode_shlibpath_var_F77=no
15129 case $host_vendor in
15131 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15132 hardcode_direct_F77=yes # is this really true???
15135 ## LD is ld it makes a PLAMLIB
15136 ## CC just makes a GrossModule.
15137 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15138 reload_cmds_F77='$CC -r -o $output$reload_objs'
15139 hardcode_direct_F77=no
15142 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15143 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15146 runpath_var='LD_RUN_PATH'
15147 hardcode_shlibpath_var_F77=no
15151 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15152 hardcode_shlibpath_var_F77=no
15153 export_dynamic_flag_spec_F77='-Bexport'
15157 if test -d /usr/nec; then
15158 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15159 hardcode_shlibpath_var_F77=no
15160 runpath_var=LD_RUN_PATH
15161 hardcode_runpath_var=yes
15166 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15167 no_undefined_flag_F77='${wl}-z,text'
15168 archive_cmds_need_lc_F77=no
15169 hardcode_shlibpath_var_F77=no
15170 runpath_var='LD_RUN_PATH'
15172 if test "$GCC" = yes; then
15173 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15174 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15176 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15177 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15181 sysv5* | sco3.2v5* | sco5v6*)
15182 # Note: We can NOT use -z defs as we might desire, because we do not
15183 # link with -lc, and that would cause any symbols used from libc to
15184 # always be unresolved, which means just about no library would
15185 # ever link correctly. If we're not using GNU ld we use -z text
15186 # though, which does catch some bad symbols but isn't as heavy-handed
15188 no_undefined_flag_F77='${wl}-z,text'
15189 allow_undefined_flag_F77='${wl}-z,nodefs'
15190 archive_cmds_need_lc_F77=no
15191 hardcode_shlibpath_var_F77=no
15192 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15193 hardcode_libdir_separator_F77=':'
15194 link_all_deplibs_F77=yes
15195 export_dynamic_flag_spec_F77='${wl}-Bexport'
15196 runpath_var='LD_RUN_PATH'
15198 if test "$GCC" = yes; then
15199 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15200 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15202 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15203 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15208 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15209 hardcode_libdir_flag_spec_F77='-L$libdir'
15210 hardcode_shlibpath_var_F77=no
15219 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15220 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15221 test "$ld_shlibs_F77" = no && can_build_shared=no
15224 # Do we need to explicitly link libc?
15226 case "x$archive_cmds_need_lc_F77" in
15228 # Assume -lc should be added
15229 archive_cmds_need_lc_F77=yes
15231 if test "$enable_shared" = yes && test "$GCC" = yes; then
15232 case $archive_cmds_F77 in
15234 # FIXME: we may have to deal with multi-command sequences.
15237 # Test whether the compiler implicitly links with -lc since on some
15238 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15239 # to ld, don't add -lc before -lgcc.
15240 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15241 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15243 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15246 (eval $ac_compile) 2>&5
15248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249 (exit $ac_status); } 2>conftest.err; then
15252 libobjs=conftest.$ac_objext
15254 wl=$lt_prog_compiler_wl_F77
15255 pic_flag=$lt_prog_compiler_pic_F77
15261 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15262 allow_undefined_flag_F77=
15263 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15264 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267 (exit $ac_status); }
15269 archive_cmds_need_lc_F77=no
15271 archive_cmds_need_lc_F77=yes
15273 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15275 cat conftest.err 1>&5
15278 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15279 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15286 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15287 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15288 library_names_spec=
15289 libname_spec='lib$name'
15293 postuninstall_cmds=
15297 shlibpath_overrides_runpath=unknown
15299 dynamic_linker="$host_os ld.so"
15300 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15301 if test "$GCC" = yes; then
15302 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15303 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15304 # if the path contains ";" then we assume it to be the separator
15305 # otherwise default to the standard path separator (i.e. ":") - it is
15306 # assumed that no part of a normal pathname contains ";" but that should
15307 # okay in the real world where ";" in dirpaths is itself problematic.
15308 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15310 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15313 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15315 need_lib_prefix=unknown
15316 hardcode_into_libs=no
15318 # when you set need_version to no, make sure it does not cause -set_version
15319 # flags to be left without arguments
15320 need_version=unknown
15325 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15326 shlibpath_var=LIBPATH
15328 # AIX 3 has no versioning support, so we append a major version to the name.
15329 soname_spec='${libname}${release}${shared_ext}$major'
15336 hardcode_into_libs=yes
15337 if test "$host_cpu" = ia64; then
15338 # AIX 5 supports IA64
15339 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15340 shlibpath_var=LD_LIBRARY_PATH
15342 # With GCC up to 2.95.x, collect2 would create an import file
15343 # for dependence libraries. The import file would start with
15344 # the line `#! .'. This would cause the generated library to
15345 # depend on `.', always an invalid library. This was fixed in
15346 # development snapshots of GCC prior to 3.0.
15348 aix4 | aix4.[01] | aix4.[01].*)
15349 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15351 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15354 can_build_shared=no
15358 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15359 # soname into executable. Probably we can add versioning support to
15360 # collect2, so additional links can be useful in future.
15361 if test "$aix_use_runtimelinking" = yes; then
15362 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15363 # instead of lib<name>.a to let people know that these are not
15364 # typical AIX shared libraries.
15365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15367 # We preserve .a as extension for shared libraries through AIX4.2
15368 # and later when we are not doing run time linking.
15369 library_names_spec='${libname}${release}.a $libname.a'
15370 soname_spec='${libname}${release}${shared_ext}$major'
15372 shlibpath_var=LIBPATH
15377 library_names_spec='$libname.ixlibrary $libname.a'
15378 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15379 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'
15383 library_names_spec='${libname}${shared_ext}'
15384 dynamic_linker="$host_os ld.so"
15385 shlibpath_var=LIBRARY_PATH
15391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15392 soname_spec='${libname}${release}${shared_ext}$major'
15393 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15394 shlibpath_var=LD_LIBRARY_PATH
15395 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15396 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15397 # the default ld.so.conf also contains /usr/contrib/lib and
15398 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15399 # libtool to hard-code these into programs
15402 cygwin* | mingw* | pw32*)
15403 version_type=windows
15408 case $GCC,$host_os in
15409 yes,cygwin* | yes,mingw* | yes,pw32*)
15410 library_names_spec='$libname.dll.a'
15411 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15412 postinstall_cmds='base_file=`basename \${file}`~
15413 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15414 dldir=$destdir/`dirname \$dlpath`~
15415 test -d \$dldir || mkdir -p \$dldir~
15416 $install_prog $dir/$dlname \$dldir/$dlname~
15417 chmod a+x \$dldir/$dlname'
15418 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15419 dlpath=$dir/\$dldll~
15421 shlibpath_overrides_runpath=yes
15425 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15426 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15427 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15430 # MinGW DLLs use traditional 'lib' prefix
15431 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15432 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15433 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15434 # It is most probably a Windows format PATH printed by
15435 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15436 # path with ; separators, and with drive letters. We can handle the
15437 # drive letters (cygwin fileutils understands them), so leave them,
15438 # especially as we might pass files found there to a mingw objdump,
15439 # which wouldn't understand a cygwinified path. Ahh.
15440 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15442 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15446 # pw32 DLLs use 'pw' prefix rather than 'lib'
15447 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15453 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15456 dynamic_linker='Win32 ld.exe'
15457 # FIXME: first we should search . and the directory the executable is in
15461 darwin* | rhapsody*)
15462 dynamic_linker="$host_os dyld"
15463 version_type=darwin
15466 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15467 soname_spec='${libname}${release}${major}$shared_ext'
15468 shlibpath_overrides_runpath=yes
15469 shlibpath_var=DYLD_LIBRARY_PATH
15470 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15471 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15472 if test "$GCC" = yes; then
15473 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"`
15475 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15477 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15485 soname_spec='${libname}${release}${shared_ext}$major'
15486 shlibpath_var=LD_LIBRARY_PATH
15493 freebsd* | dragonfly*)
15494 # DragonFly does not have aout. When/if they implement a new
15495 # versioning mechanism, adjust this.
15496 if test -x /usr/bin/objformat; then
15497 objformat=`/usr/bin/objformat`
15500 freebsd[123]*) objformat=aout ;;
15501 *) objformat=elf ;;
15504 version_type=freebsd-$objformat
15505 case $version_type in
15507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15512 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15516 shlibpath_var=LD_LIBRARY_PATH
15519 shlibpath_overrides_runpath=yes
15521 freebsd3.[01]* | freebsdelf3.[01]*)
15522 shlibpath_overrides_runpath=yes
15523 hardcode_into_libs=yes
15525 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15526 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15527 shlibpath_overrides_runpath=no
15528 hardcode_into_libs=yes
15530 freebsd*) # from 4.6 on
15531 shlibpath_overrides_runpath=yes
15532 hardcode_into_libs=yes
15541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15542 soname_spec='${libname}${release}${shared_ext}$major'
15543 shlibpath_var=LD_LIBRARY_PATH
15544 hardcode_into_libs=yes
15547 hpux9* | hpux10* | hpux11*)
15548 # Give a soname corresponding to the major version so that dld.sl refuses to
15549 # link against other versions.
15556 hardcode_into_libs=yes
15557 dynamic_linker="$host_os dld.so"
15558 shlibpath_var=LD_LIBRARY_PATH
15559 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15561 soname_spec='${libname}${release}${shared_ext}$major'
15562 if test "X$HPUX_IA64_MODE" = X32; then
15563 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15565 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15567 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15571 hardcode_into_libs=yes
15572 dynamic_linker="$host_os dld.sl"
15573 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15574 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15576 soname_spec='${libname}${release}${shared_ext}$major'
15577 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15578 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15582 dynamic_linker="$host_os dld.sl"
15583 shlibpath_var=SHLIB_PATH
15584 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15586 soname_spec='${libname}${release}${shared_ext}$major'
15589 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15590 postinstall_cmds='chmod 555 $lib'
15597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15598 soname_spec='${libname}${release}${shared_ext}$major'
15599 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15600 shlibpath_var=LD_LIBRARY_PATH
15601 shlibpath_overrides_runpath=no
15602 hardcode_into_libs=yes
15605 irix5* | irix6* | nonstopux*)
15607 nonstopux*) version_type=nonstopux ;;
15609 if test "$lt_cv_prog_gnu_ld" = yes; then
15617 soname_spec='${libname}${release}${shared_ext}$major'
15618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15620 irix5* | nonstopux*)
15621 libsuff= shlibsuff=
15624 case $LD in # libtool.m4 will add one of these switches to LD
15625 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15626 libsuff= shlibsuff= libmagic=32-bit;;
15627 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15628 libsuff=32 shlibsuff=N32 libmagic=N32;;
15629 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15630 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15631 *) libsuff= shlibsuff= libmagic=never-match;;
15635 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15636 shlibpath_overrides_runpath=no
15637 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15638 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15639 hardcode_into_libs=yes
15642 # No shared lib support for Linux oldld, aout, or coff.
15643 linux*oldld* | linux*aout* | linux*coff*)
15647 # This must be Linux ELF.
15648 linux* | k*bsd*-gnu)
15652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15653 soname_spec='${libname}${release}${shared_ext}$major'
15654 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15655 shlibpath_var=LD_LIBRARY_PATH
15656 shlibpath_overrides_runpath=no
15657 # This implies no fast_install, which is unacceptable.
15658 # Some rework will be needed to allow for fast_install
15659 # before this can be enabled.
15660 hardcode_into_libs=yes
15662 # Append ld.so.conf contents to the search path
15663 if test -f /etc/ld.so.conf; then
15664 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' ' '`
15665 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15668 # We used to test for /lib/ld.so.1 and disable shared libraries on
15669 # powerpc, because MkLinux only supported shared libraries with the
15670 # GNU dynamic linker. Since this was broken with cross compilers,
15671 # most powerpc-linux boxes support dynamic linking these days and
15672 # people can always --disable-shared, the test was removed, and we
15673 # assume the GNU/Linux dynamic linker is in use.
15674 dynamic_linker='GNU/Linux ld.so'
15681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15682 soname_spec='${libname}${release}${shared_ext}$major'
15683 shlibpath_var=LD_LIBRARY_PATH
15684 shlibpath_overrides_runpath=no
15685 hardcode_into_libs=yes
15686 dynamic_linker='NetBSD ld.elf_so'
15693 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15695 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15696 dynamic_linker='NetBSD (a.out) ld.so'
15698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15699 soname_spec='${libname}${release}${shared_ext}$major'
15700 dynamic_linker='NetBSD ld.elf_so'
15702 shlibpath_var=LD_LIBRARY_PATH
15703 shlibpath_overrides_runpath=yes
15704 hardcode_into_libs=yes
15709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15710 shlibpath_var=LD_LIBRARY_PATH
15711 shlibpath_overrides_runpath=yes
15718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15719 soname_spec='${libname}${release}${shared_ext}$major'
15720 shlibpath_var=LD_LIBRARY_PATH
15721 shlibpath_overrides_runpath=yes
15726 sys_lib_dlsearch_path_spec="/usr/lib"
15728 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15730 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15731 *) need_version=no ;;
15733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15734 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15735 shlibpath_var=LD_LIBRARY_PATH
15736 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15738 openbsd2.[89] | openbsd2.[89].*)
15739 shlibpath_overrides_runpath=no
15742 shlibpath_overrides_runpath=yes
15746 shlibpath_overrides_runpath=yes
15751 libname_spec='$name'
15754 library_names_spec='$libname${shared_ext} $libname.a'
15755 dynamic_linker='OS/2 ld.exe'
15756 shlibpath_var=LIBPATH
15759 osf3* | osf4* | osf5*)
15763 soname_spec='${libname}${release}${shared_ext}$major'
15764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15765 shlibpath_var=LD_LIBRARY_PATH
15766 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15767 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15775 soname_spec='${libname}${release}${shared_ext}$major'
15776 shlibpath_var=LD_LIBRARY_PATH
15777 shlibpath_overrides_runpath=yes
15778 hardcode_into_libs=yes
15779 # ldd complains unless libraries are executable
15780 postinstall_cmds='chmod +x $lib'
15785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15786 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15787 shlibpath_var=LD_LIBRARY_PATH
15788 shlibpath_overrides_runpath=yes
15789 if test "$with_gnu_ld" = yes; then
15797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15798 soname_spec='${libname}${release}${shared_ext}$major'
15799 shlibpath_var=LD_LIBRARY_PATH
15800 case $host_vendor in
15802 shlibpath_overrides_runpath=no
15804 export_dynamic_flag_spec='${wl}-Blargedynsym'
15805 runpath_var=LD_RUN_PATH
15813 shlibpath_overrides_runpath=no
15814 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15820 if test -d /usr/nec ;then
15822 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15823 soname_spec='$libname${shared_ext}.$major'
15824 shlibpath_var=LD_LIBRARY_PATH
15828 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15829 version_type=freebsd-elf
15832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15833 soname_spec='${libname}${release}${shared_ext}$major'
15834 shlibpath_var=LD_LIBRARY_PATH
15835 hardcode_into_libs=yes
15836 if test "$with_gnu_ld" = yes; then
15837 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15838 shlibpath_overrides_runpath=no
15840 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15841 shlibpath_overrides_runpath=yes
15844 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15848 sys_lib_dlsearch_path_spec='/usr/lib'
15853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15854 soname_spec='${libname}${release}${shared_ext}$major'
15855 shlibpath_var=LD_LIBRARY_PATH
15862 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15863 echo "${ECHO_T}$dynamic_linker" >&6; }
15864 test "$dynamic_linker" = no && can_build_shared=no
15866 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15867 if test "$GCC" = yes; then
15868 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15871 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15872 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15873 hardcode_action_F77=
15874 if test -n "$hardcode_libdir_flag_spec_F77" || \
15875 test -n "$runpath_var_F77" || \
15876 test "X$hardcode_automatic_F77" = "Xyes" ; then
15878 # We can hardcode non-existant directories.
15879 if test "$hardcode_direct_F77" != no &&
15880 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15881 # have to relink, otherwise we might link with an installed library
15882 # when we should be linking with a yet-to-be-installed one
15883 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15884 test "$hardcode_minus_L_F77" != no; then
15885 # Linking always hardcodes the temporary library directory.
15886 hardcode_action_F77=relink
15888 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15889 hardcode_action_F77=immediate
15892 # We cannot hardcode anything, or else we can only hardcode existing
15894 hardcode_action_F77=unsupported
15896 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15897 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15899 if test "$hardcode_action_F77" = relink; then
15900 # Fast installation is not supported
15901 enable_fast_install=no
15902 elif test "$shlibpath_overrides_runpath" = yes ||
15903 test "$enable_shared" = no; then
15904 # Fast installation is not necessary
15905 enable_fast_install=needless
15909 # The else clause should only fire when bootstrapping the
15910 # libtool distribution, otherwise you forgot to ship ltmain.sh
15911 # with your package, and you will get complaints that there are
15912 # no rules to generate ltmain.sh.
15913 if test -f "$ltmain"; then
15914 # See if we are running on zsh, and set the options which allow our commands through
15915 # without removal of \ escapes.
15916 if test -n "${ZSH_VERSION+set}" ; then
15917 setopt NO_GLOB_SUBST
15919 # Now quote all the things that may contain metacharacters while being
15920 # careful not to overquote the AC_SUBSTed values. We take copies of the
15921 # variables and quote the copies for generation of the libtool script.
15922 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15924 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15925 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15926 deplibs_check_method reload_flag reload_cmds need_locks \
15927 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15928 lt_cv_sys_global_symbol_to_c_name_address \
15929 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15930 old_postinstall_cmds old_postuninstall_cmds \
15934 lt_prog_compiler_wl_F77 \
15935 lt_prog_compiler_pic_F77 \
15936 lt_prog_compiler_static_F77 \
15937 lt_prog_compiler_no_builtin_flag_F77 \
15938 export_dynamic_flag_spec_F77 \
15939 thread_safe_flag_spec_F77 \
15940 whole_archive_flag_spec_F77 \
15941 enable_shared_with_static_runtimes_F77 \
15942 old_archive_cmds_F77 \
15943 old_archive_from_new_cmds_F77 \
15944 predep_objects_F77 \
15945 postdep_objects_F77 \
15948 compiler_lib_search_path_F77 \
15950 archive_expsym_cmds_F77 \
15951 postinstall_cmds_F77 \
15952 postuninstall_cmds_F77 \
15953 old_archive_from_expsyms_cmds_F77 \
15954 allow_undefined_flag_F77 \
15955 no_undefined_flag_F77 \
15956 export_symbols_cmds_F77 \
15957 hardcode_libdir_flag_spec_F77 \
15958 hardcode_libdir_flag_spec_ld_F77 \
15959 hardcode_libdir_separator_F77 \
15960 hardcode_automatic_F77 \
15962 module_expsym_cmds_F77 \
15963 lt_cv_prog_compiler_c_o_F77 \
15964 exclude_expsyms_F77 \
15965 include_expsyms_F77; do
15968 old_archive_cmds_F77 | \
15969 old_archive_from_new_cmds_F77 | \
15970 archive_cmds_F77 | \
15971 archive_expsym_cmds_F77 | \
15972 module_cmds_F77 | \
15973 module_expsym_cmds_F77 | \
15974 old_archive_from_expsyms_cmds_F77 | \
15975 export_symbols_cmds_F77 | \
15976 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15977 postinstall_cmds | postuninstall_cmds | \
15978 old_postinstall_cmds | old_postuninstall_cmds | \
15979 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15980 # Double-quote double-evaled strings.
15981 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15984 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15990 *'\$0 --fallback-echo"')
15991 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15997 cat <<__EOF__ >> "$cfgfile"
15998 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16000 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16002 # Shell to use when invoking shell scripts.
16005 # Whether or not to build shared libraries.
16006 build_libtool_libs=$enable_shared
16008 # Whether or not to build static libraries.
16009 build_old_libs=$enable_static
16011 # Whether or not to add -lc for building shared libraries.
16012 build_libtool_need_lc=$archive_cmds_need_lc_F77
16014 # Whether or not to disallow shared libs when runtime libs are static
16015 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16017 # Whether or not to optimize for fast installation.
16018 fast_install=$enable_fast_install
16021 host_alias=$host_alias
16025 # The build system.
16026 build_alias=$build_alias
16030 # An echo program that does not interpret backslashes.
16035 AR_FLAGS=$lt_AR_FLAGS
16040 # LTCC compiler flags.
16041 LTCFLAGS=$lt_LTCFLAGS
16043 # A language-specific compiler.
16044 CC=$lt_compiler_F77
16046 # Is the compiler the GNU C compiler?
16052 # The linker used to build libraries.
16055 # Whether we need hard or soft links.
16058 # A BSD-compatible nm program.
16061 # A symbol stripping program
16064 # Used to examine libraries when file_magic_cmd begins "file"
16065 MAGIC_CMD=$MAGIC_CMD
16067 # Used on cygwin: DLL creation program.
16070 # Used on cygwin: object dumper.
16073 # Used on cygwin: assembler.
16076 # The name of the directory that contains temporary libtool files.
16079 # How to create reloadable object files.
16080 reload_flag=$lt_reload_flag
16081 reload_cmds=$lt_reload_cmds
16083 # How to pass a linker flag through the compiler.
16084 wl=$lt_lt_prog_compiler_wl_F77
16086 # Object file suffix (normally "o").
16087 objext="$ac_objext"
16089 # Old archive suffix (normally "a").
16092 # Shared library suffix (normally ".so").
16093 shrext_cmds='$shrext_cmds'
16095 # Executable file suffix (normally "").
16098 # Additional compiler flags for building library objects.
16099 pic_flag=$lt_lt_prog_compiler_pic_F77
16102 # What is the maximum length of a command?
16103 max_cmd_len=$lt_cv_sys_max_cmd_len
16105 # Does compiler simultaneously support -c and -o options?
16106 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16108 # Must we lock files when doing compilation?
16109 need_locks=$lt_need_locks
16111 # Do we need the lib prefix for modules?
16112 need_lib_prefix=$need_lib_prefix
16114 # Do we need a version for libraries?
16115 need_version=$need_version
16117 # Whether dlopen is supported.
16118 dlopen_support=$enable_dlopen
16120 # Whether dlopen of programs is supported.
16121 dlopen_self=$enable_dlopen_self
16123 # Whether dlopen of statically linked programs is supported.
16124 dlopen_self_static=$enable_dlopen_self_static
16126 # Compiler flag to prevent dynamic linking.
16127 link_static_flag=$lt_lt_prog_compiler_static_F77
16129 # Compiler flag to turn off builtin functions.
16130 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16132 # Compiler flag to allow reflexive dlopens.
16133 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16135 # Compiler flag to generate shared objects directly from archives.
16136 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16138 # Compiler flag to generate thread-safe objects.
16139 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16141 # Library versioning type.
16142 version_type=$version_type
16144 # Format of library name prefix.
16145 libname_spec=$lt_libname_spec
16147 # List of archive names. First name is the real one, the rest are links.
16148 # The last name is the one that the linker finds with -lNAME.
16149 library_names_spec=$lt_library_names_spec
16151 # The coded name of the library, if different from the real name.
16152 soname_spec=$lt_soname_spec
16154 # Commands used to build and install an old-style archive.
16156 old_archive_cmds=$lt_old_archive_cmds_F77
16157 old_postinstall_cmds=$lt_old_postinstall_cmds
16158 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16160 # Create an old-style archive from a shared archive.
16161 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16163 # Create a temporary old-style archive to link instead of a shared archive.
16164 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16166 # Commands used to build and install a shared archive.
16167 archive_cmds=$lt_archive_cmds_F77
16168 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16169 postinstall_cmds=$lt_postinstall_cmds
16170 postuninstall_cmds=$lt_postuninstall_cmds
16172 # Commands used to build a loadable module (assumed same as above if empty)
16173 module_cmds=$lt_module_cmds_F77
16174 module_expsym_cmds=$lt_module_expsym_cmds_F77
16176 # Commands to strip libraries.
16177 old_striplib=$lt_old_striplib
16178 striplib=$lt_striplib
16180 # Dependencies to place before the objects being linked to create a
16182 predep_objects=$lt_predep_objects_F77
16184 # Dependencies to place after the objects being linked to create a
16186 postdep_objects=$lt_postdep_objects_F77
16188 # Dependencies to place before the objects being linked to create a
16190 predeps=$lt_predeps_F77
16192 # Dependencies to place after the objects being linked to create a
16194 postdeps=$lt_postdeps_F77
16196 # The library search path used internally by the compiler when linking
16197 # a shared library.
16198 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16200 # Method to check whether dependent libraries are shared objects.
16201 deplibs_check_method=$lt_deplibs_check_method
16203 # Command to use when deplibs_check_method == file_magic.
16204 file_magic_cmd=$lt_file_magic_cmd
16206 # Flag that allows shared libraries with undefined symbols to be built.
16207 allow_undefined_flag=$lt_allow_undefined_flag_F77
16209 # Flag that forces no undefined symbols.
16210 no_undefined_flag=$lt_no_undefined_flag_F77
16212 # Commands used to finish a libtool library installation in a directory.
16213 finish_cmds=$lt_finish_cmds
16215 # Same as above, but a single script fragment to be evaled but not shown.
16216 finish_eval=$lt_finish_eval
16218 # Take the output of nm and produce a listing of raw symbols and C names.
16219 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16221 # Transform the output of nm in a proper C declaration
16222 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16224 # Transform the output of nm in a C name address pair
16225 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16227 # This is the shared library runtime path variable.
16228 runpath_var=$runpath_var
16230 # This is the shared library path variable.
16231 shlibpath_var=$shlibpath_var
16233 # Is shlibpath searched before the hard-coded library search path?
16234 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16236 # How to hardcode a shared library path into an executable.
16237 hardcode_action=$hardcode_action_F77
16239 # Whether we should hardcode library paths into libraries.
16240 hardcode_into_libs=$hardcode_into_libs
16242 # Flag to hardcode \$libdir into a binary during linking.
16243 # This must work even if \$libdir does not exist.
16244 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16246 # If ld is used when linking, flag to hardcode \$libdir into
16247 # a binary during linking. This must work even if \$libdir does
16249 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16251 # Whether we need a single -rpath flag with a separated argument.
16252 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16254 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16255 # resulting binary.
16256 hardcode_direct=$hardcode_direct_F77
16258 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16259 # resulting binary.
16260 hardcode_minus_L=$hardcode_minus_L_F77
16262 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16263 # the resulting binary.
16264 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16266 # Set to yes if building a shared library automatically hardcodes DIR into the library
16267 # and all subsequent libraries and executables linked against it.
16268 hardcode_automatic=$hardcode_automatic_F77
16270 # Variables whose values should be saved in libtool wrapper scripts and
16271 # restored at relink time.
16272 variables_saved_for_relink="$variables_saved_for_relink"
16274 # Whether libtool must link a program against all its dependency libraries.
16275 link_all_deplibs=$link_all_deplibs_F77
16277 # Compile-time system search path for libraries
16278 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16280 # Run-time system search path for libraries
16281 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16283 # Fix the shell variable \$srcfile for the compiler.
16284 fix_srcfile_path="$fix_srcfile_path_F77"
16286 # Set to yes if exported symbols are required.
16287 always_export_symbols=$always_export_symbols_F77
16289 # The commands to list exported symbols.
16290 export_symbols_cmds=$lt_export_symbols_cmds_F77
16292 # The commands to extract the exported symbol list from a shared archive.
16293 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16295 # Symbols that should not be listed in the preloaded symbols.
16296 exclude_expsyms=$lt_exclude_expsyms_F77
16298 # Symbols that must always be exported.
16299 include_expsyms=$lt_include_expsyms_F77
16301 # ### END LIBTOOL TAG CONFIG: $tagname
16307 # If there is no Makefile yet, we rely on a make rule to execute
16308 # `config.status --recheck' to rerun these tests and create the
16309 # libtool script then.
16310 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16311 if test -f "$ltmain_in"; then
16312 test -f Makefile && make "$ltmain"
16318 ac_cpp='$CPP $CPPFLAGS'
16319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16331 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16334 # Source file extension for Java test sources.
16337 # Object file extension for compiled Java test sources.
16341 # Code to be used in simple compile tests
16342 lt_simple_compile_test_code="class foo {}\n"
16344 # Code to be used in simple link tests
16345 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16347 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16349 # If no C compiler was specified, use CC.
16352 # If no C compiler flags were specified, use CFLAGS.
16353 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16355 # Allow CC to be a program name with arguments.
16359 # save warnings/boilerplate of simple test code
16360 ac_outfile=conftest.$ac_objext
16361 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16362 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16363 _lt_compiler_boilerplate=`cat conftest.err`
16366 ac_outfile=conftest.$ac_objext
16367 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16368 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16369 _lt_linker_boilerplate=`cat conftest.err`
16373 # Allow CC to be a program name with arguments.
16378 for cc_temp in $compiler""; do
16380 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16381 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16386 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16389 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16390 archive_cmds_need_lc_GCJ=no
16392 old_archive_cmds_GCJ=$old_archive_cmds
16395 lt_prog_compiler_no_builtin_flag_GCJ=
16397 if test "$GCC" = yes; then
16398 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16401 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16402 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16403 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16404 echo $ECHO_N "(cached) $ECHO_C" >&6
16406 lt_cv_prog_compiler_rtti_exceptions=no
16407 ac_outfile=conftest.$ac_objext
16408 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16409 lt_compiler_flag="-fno-rtti -fno-exceptions"
16410 # Insert the option either (1) after the last *FLAGS variable, or
16411 # (2) before a word containing "conftest.", or (3) at the end.
16412 # Note that $ac_compile itself does not contain backslashes and begins
16413 # with a dollar sign (not a hyphen), so the echo should work correctly.
16414 # The option is referenced via a variable to avoid confusing sed.
16415 lt_compile=`echo "$ac_compile" | $SED \
16416 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16417 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16418 -e 's:$: $lt_compiler_flag:'`
16419 (eval echo "\"\$as_me:16419: $lt_compile\"" >&5)
16420 (eval "$lt_compile" 2>conftest.err)
16422 cat conftest.err >&5
16423 echo "$as_me:16423: \$? = $ac_status" >&5
16424 if (exit $ac_status) && test -s "$ac_outfile"; then
16425 # The compiler can only warn and ignore the option if not recognized
16426 # So say no if there are warnings other than the usual output.
16427 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16428 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16429 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16430 lt_cv_prog_compiler_rtti_exceptions=yes
16436 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16437 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16439 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16440 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16447 lt_prog_compiler_wl_GCJ=
16448 lt_prog_compiler_pic_GCJ=
16449 lt_prog_compiler_static_GCJ=
16451 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16452 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16454 if test "$GCC" = yes; then
16455 lt_prog_compiler_wl_GCJ='-Wl,'
16456 lt_prog_compiler_static_GCJ='-static'
16460 # All AIX code is PIC.
16461 if test "$host_cpu" = ia64; then
16462 # AIX 5 now supports IA64 processor
16463 lt_prog_compiler_static_GCJ='-Bstatic'
16468 # FIXME: we need at least 68020 code to build shared libraries, but
16469 # adding the `-m68020' flag to GCC prevents building anything better,
16471 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16474 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16475 # PIC is the default for these OSes.
16478 mingw* | pw32* | os2*)
16479 # This hack is so that the source file can tell whether it is being
16480 # built for inclusion in a dll (and should export symbols for example).
16481 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16484 darwin* | rhapsody*)
16485 # PIC is the default on this platform
16486 # Common symbols not allowed in MH_DYLIB files
16487 lt_prog_compiler_pic_GCJ='-fno-common'
16491 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16492 # Instead, we relocate shared libraries at runtime.
16496 # Just because we use GCC doesn't mean we suddenly get shared libraries
16497 # on systems that don't support them.
16498 lt_prog_compiler_can_build_shared_GCJ=no
16503 if test -d /usr/nec; then
16504 lt_prog_compiler_pic_GCJ=-Kconform_pic
16509 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16510 # not for PA HP-UX.
16516 lt_prog_compiler_pic_GCJ='-fPIC'
16522 lt_prog_compiler_pic_GCJ='-fPIC'
16526 # PORTME Check for flag to pass linker flags through the system compiler.
16529 lt_prog_compiler_wl_GCJ='-Wl,'
16530 if test "$host_cpu" = ia64; then
16531 # AIX 5 now supports IA64 processor
16532 lt_prog_compiler_static_GCJ='-Bstatic'
16534 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16538 # PIC is the default on this platform
16539 # Common symbols not allowed in MH_DYLIB files
16540 case $cc_basename in
16542 lt_prog_compiler_pic_GCJ='-qnocommon'
16543 lt_prog_compiler_wl_GCJ='-Wl,'
16548 mingw* | pw32* | os2*)
16549 # This hack is so that the source file can tell whether it is being
16550 # built for inclusion in a dll (and should export symbols for example).
16551 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16554 hpux9* | hpux10* | hpux11*)
16555 lt_prog_compiler_wl_GCJ='-Wl,'
16556 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16557 # not for PA HP-UX.
16563 lt_prog_compiler_pic_GCJ='+Z'
16566 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16567 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16570 irix5* | irix6* | nonstopux*)
16571 lt_prog_compiler_wl_GCJ='-Wl,'
16572 # PIC (with -KPIC) is the default.
16573 lt_prog_compiler_static_GCJ='-non_shared'
16577 lt_prog_compiler_pic_GCJ='-KPIC'
16578 lt_prog_compiler_static_GCJ='-Bstatic'
16581 linux* | k*bsd*-gnu)
16582 case $cc_basename in
16584 lt_prog_compiler_wl_GCJ='-Wl,'
16585 lt_prog_compiler_pic_GCJ='-KPIC'
16586 lt_prog_compiler_static_GCJ='-static'
16588 pgcc* | pgf77* | pgf90* | pgf95*)
16589 # Portland Group compilers (*not* the Pentium gcc compiler,
16590 # which looks to be a dead project)
16591 lt_prog_compiler_wl_GCJ='-Wl,'
16592 lt_prog_compiler_pic_GCJ='-fpic'
16593 lt_prog_compiler_static_GCJ='-Bstatic'
16596 lt_prog_compiler_wl_GCJ='-Wl,'
16597 # All Alpha code is PIC.
16598 lt_prog_compiler_static_GCJ='-non_shared'
16603 osf3* | osf4* | osf5*)
16604 lt_prog_compiler_wl_GCJ='-Wl,'
16605 # All OSF/1 code is PIC.
16606 lt_prog_compiler_static_GCJ='-non_shared'
16610 lt_prog_compiler_pic_GCJ='-KPIC'
16611 lt_prog_compiler_static_GCJ='-Bstatic'
16612 case $cc_basename in
16613 f77* | f90* | f95*)
16614 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16616 lt_prog_compiler_wl_GCJ='-Wl,';;
16621 lt_prog_compiler_wl_GCJ='-Qoption ld '
16622 lt_prog_compiler_pic_GCJ='-PIC'
16623 lt_prog_compiler_static_GCJ='-Bstatic'
16626 sysv4 | sysv4.2uw2* | sysv4.3*)
16627 lt_prog_compiler_wl_GCJ='-Wl,'
16628 lt_prog_compiler_pic_GCJ='-KPIC'
16629 lt_prog_compiler_static_GCJ='-Bstatic'
16633 if test -d /usr/nec ;then
16634 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16635 lt_prog_compiler_static_GCJ='-Bstatic'
16639 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16640 lt_prog_compiler_wl_GCJ='-Wl,'
16641 lt_prog_compiler_pic_GCJ='-KPIC'
16642 lt_prog_compiler_static_GCJ='-Bstatic'
16646 lt_prog_compiler_wl_GCJ='-Wl,'
16647 lt_prog_compiler_can_build_shared_GCJ=no
16651 lt_prog_compiler_pic_GCJ='-pic'
16652 lt_prog_compiler_static_GCJ='-Bstatic'
16656 lt_prog_compiler_can_build_shared_GCJ=no
16661 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16662 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16665 # Check to make sure the PIC flag actually works.
16667 if test -n "$lt_prog_compiler_pic_GCJ"; then
16669 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16670 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16671 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16672 echo $ECHO_N "(cached) $ECHO_C" >&6
16674 lt_prog_compiler_pic_works_GCJ=no
16675 ac_outfile=conftest.$ac_objext
16676 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16677 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16678 # Insert the option either (1) after the last *FLAGS variable, or
16679 # (2) before a word containing "conftest.", or (3) at the end.
16680 # Note that $ac_compile itself does not contain backslashes and begins
16681 # with a dollar sign (not a hyphen), so the echo should work correctly.
16682 # The option is referenced via a variable to avoid confusing sed.
16683 lt_compile=`echo "$ac_compile" | $SED \
16684 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16685 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16686 -e 's:$: $lt_compiler_flag:'`
16687 (eval echo "\"\$as_me:16687: $lt_compile\"" >&5)
16688 (eval "$lt_compile" 2>conftest.err)
16690 cat conftest.err >&5
16691 echo "$as_me:16691: \$? = $ac_status" >&5
16692 if (exit $ac_status) && test -s "$ac_outfile"; then
16693 # The compiler can only warn and ignore the option if not recognized
16694 # So say no if there are warnings other than the usual output.
16695 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16696 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16697 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16698 lt_prog_compiler_pic_works_GCJ=yes
16704 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16705 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16707 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16708 case $lt_prog_compiler_pic_GCJ in
16710 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16713 lt_prog_compiler_pic_GCJ=
16714 lt_prog_compiler_can_build_shared_GCJ=no
16719 # For platforms which do not support PIC, -DPIC is meaningless:
16721 lt_prog_compiler_pic_GCJ=
16724 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16729 # Check to make sure the static flag actually works.
16731 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16732 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16733 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16734 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16735 echo $ECHO_N "(cached) $ECHO_C" >&6
16737 lt_prog_compiler_static_works_GCJ=no
16738 save_LDFLAGS="$LDFLAGS"
16739 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16740 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16741 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16742 # The linker can only warn and ignore the option if not recognized
16743 # So say no if there are warnings
16744 if test -s conftest.err; then
16745 # Append any errors to the config.log.
16746 cat conftest.err 1>&5
16747 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16748 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16749 if diff conftest.exp conftest.er2 >/dev/null; then
16750 lt_prog_compiler_static_works_GCJ=yes
16753 lt_prog_compiler_static_works_GCJ=yes
16757 LDFLAGS="$save_LDFLAGS"
16760 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16761 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16763 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16766 lt_prog_compiler_static_GCJ=
16770 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16771 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16772 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16773 echo $ECHO_N "(cached) $ECHO_C" >&6
16775 lt_cv_prog_compiler_c_o_GCJ=no
16776 $rm -r conftest 2>/dev/null
16780 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16782 lt_compiler_flag="-o out/conftest2.$ac_objext"
16783 # Insert the option either (1) after the last *FLAGS variable, or
16784 # (2) before a word containing "conftest.", or (3) at the end.
16785 # Note that $ac_compile itself does not contain backslashes and begins
16786 # with a dollar sign (not a hyphen), so the echo should work correctly.
16787 lt_compile=`echo "$ac_compile" | $SED \
16788 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16789 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16790 -e 's:$: $lt_compiler_flag:'`
16791 (eval echo "\"\$as_me:16791: $lt_compile\"" >&5)
16792 (eval "$lt_compile" 2>out/conftest.err)
16794 cat out/conftest.err >&5
16795 echo "$as_me:16795: \$? = $ac_status" >&5
16796 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16798 # The compiler can only warn and ignore the option if not recognized
16799 # So say no if there are warnings
16800 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16801 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16802 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16803 lt_cv_prog_compiler_c_o_GCJ=yes
16808 # SGI C++ compiler will create directory out/ii_files/ for
16809 # template instantiation
16810 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16811 $rm out/* && rmdir out
16817 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16818 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16821 hard_links="nottested"
16822 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16823 # do not overwrite the value of need_locks provided by the user
16824 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16825 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16828 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16830 ln conftest.a conftest.b 2>&5 || hard_links=no
16831 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16832 { echo "$as_me:$LINENO: result: $hard_links" >&5
16833 echo "${ECHO_T}$hard_links" >&6; }
16834 if test "$hard_links" = no; then
16835 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16836 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16843 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16844 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16847 allow_undefined_flag_GCJ=
16848 enable_shared_with_static_runtimes_GCJ=no
16850 archive_expsym_cmds_GCJ=
16851 old_archive_From_new_cmds_GCJ=
16852 old_archive_from_expsyms_cmds_GCJ=
16853 export_dynamic_flag_spec_GCJ=
16854 whole_archive_flag_spec_GCJ=
16855 thread_safe_flag_spec_GCJ=
16856 hardcode_libdir_flag_spec_GCJ=
16857 hardcode_libdir_flag_spec_ld_GCJ=
16858 hardcode_libdir_separator_GCJ=
16859 hardcode_direct_GCJ=no
16860 hardcode_minus_L_GCJ=no
16861 hardcode_shlibpath_var_GCJ=unsupported
16862 link_all_deplibs_GCJ=unknown
16863 hardcode_automatic_GCJ=no
16865 module_expsym_cmds_GCJ=
16866 always_export_symbols_GCJ=no
16867 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16868 # include_expsyms should be a list of space-separated symbols to be *always*
16869 # included in the symbol list
16870 include_expsyms_GCJ=
16871 # exclude_expsyms can be an extended regexp of symbols to exclude
16872 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16873 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16874 # as well as any symbol that contains `d'.
16875 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16876 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16877 # platforms (ab)use it in PIC code, but their linkers get confused if
16878 # the symbol is explicitly referenced. Since portable code cannot
16879 # rely on this symbol name, it's probably fine to never include it in
16880 # preloaded symbol tables.
16881 extract_expsyms_cmds=
16882 # Just being paranoid about ensuring that cc_basename is set.
16883 for cc_temp in $compiler""; do
16885 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16886 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16891 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16894 cygwin* | mingw* | pw32*)
16895 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16896 # When not using gcc, we currently assume that we are using
16897 # Microsoft Visual C++.
16898 if test "$GCC" != yes; then
16903 # we just hope/assume this is gcc and not c89 (= MSVC++)
16912 if test "$with_gnu_ld" = yes; then
16913 # If archive_cmds runs LD, not CC, wlarc should be empty
16916 # Set some defaults for GNU ld with shared library support. These
16917 # are reset later if shared libraries are not supported. Putting them
16918 # here allows them to be overridden if necessary.
16919 runpath_var=LD_RUN_PATH
16920 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16921 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16922 # ancient GNU ld didn't support --whole-archive et. al.
16923 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16924 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16926 whole_archive_flag_spec_GCJ=
16928 supports_anon_versioning=no
16929 case `$LD -v 2>/dev/null` in
16930 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16931 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16932 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16933 *\ 2.11.*) ;; # other 2.11 versions
16934 *) supports_anon_versioning=yes ;;
16937 # See if GNU ld supports shared libraries.
16939 aix3* | aix4* | aix5*)
16940 # On AIX/PPC, the GNU linker is very broken
16941 if test "$host_cpu" != ia64; then
16945 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16946 *** to be unable to reliably create shared libraries on AIX.
16947 *** Therefore, libtool is disabling shared libraries support. If you
16948 *** really care for shared libraries, you may want to modify your PATH
16949 *** so that a non-GNU linker is found, and then restart.
16956 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)'
16957 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16958 hardcode_minus_L_GCJ=yes
16960 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16961 # that the semantics of dynamic libraries on AmigaOS, at least up
16962 # to version 4, is to share data among multiple programs linked
16963 # with the same dynamic library. Since this doesn't match the
16964 # behavior of shared libraries on other platforms, we can't use
16970 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16971 allow_undefined_flag_GCJ=unsupported
16972 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16973 # support --undefined. This deserves some investigation. FIXME
16974 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16980 cygwin* | mingw* | pw32*)
16981 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16982 # as there is no search path for DLLs.
16983 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16984 allow_undefined_flag_GCJ=unsupported
16985 always_export_symbols_GCJ=no
16986 enable_shared_with_static_runtimes_GCJ=yes
16987 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16989 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16990 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16991 # If the export-symbols file already is a .def file (1st line
16992 # is EXPORTS), use it as is; otherwise, prepend...
16993 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16994 cp $export_symbols $output_objdir/$soname.def;
16996 echo EXPORTS > $output_objdir/$soname.def;
16997 cat $export_symbols >> $output_objdir/$soname.def;
16999 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17006 hardcode_direct_GCJ=no
17007 hardcode_shlibpath_var_GCJ=no
17008 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17009 export_dynamic_flag_spec_GCJ='${wl}-E'
17010 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17011 # Instead, shared libraries are loaded at an image base (0x10000000 by
17012 # default) and relocated if they conflict, which is a slow very memory
17013 # consuming and fragmenting process. To avoid this, we pick a random,
17014 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17015 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17016 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'
17017 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'
17020 linux* | k*bsd*-gnu)
17021 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17023 case $cc_basename,$host_cpu in
17024 pgcc*) # Portland Group C compiler
17025 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'
17026 tmp_addflag=' $pic_flag'
17028 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17029 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'
17030 tmp_addflag=' $pic_flag -Mnomain' ;;
17031 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17032 tmp_addflag=' -i_dynamic' ;;
17033 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17034 tmp_addflag=' -i_dynamic -nofor_main' ;;
17035 ifc* | ifort*) # Intel Fortran compiler
17036 tmp_addflag=' -nofor_main' ;;
17038 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17040 if test $supports_anon_versioning = yes; then
17041 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17042 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17043 $echo "local: *; };" >> $output_objdir/$libname.ver~
17044 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17046 link_all_deplibs_GCJ=no
17052 netbsd* | netbsdelf*-gnu)
17053 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17054 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17057 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17058 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17063 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17067 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17068 *** create shared libraries on Solaris systems. Therefore, libtool
17069 *** is disabling shared libraries support. We urge you to upgrade GNU
17070 *** binutils to release 2.9.1 or newer. Another option is to modify
17071 *** your PATH or compiler configuration so that the native linker is
17072 *** used, and then restart.
17075 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17076 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17077 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17083 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17084 case `$LD -v 2>&1` in
17085 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17089 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17090 *** reliably create shared libraries on SCO systems. Therefore, libtool
17091 *** is disabling shared libraries support. We urge you to upgrade GNU
17092 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17093 *** your PATH or compiler configuration so that the native linker is
17094 *** used, and then restart.
17099 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17100 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17101 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17102 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17111 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17113 hardcode_direct_GCJ=yes
17114 hardcode_shlibpath_var_GCJ=no
17118 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17119 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17120 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17127 if test "$ld_shlibs_GCJ" = no; then
17129 hardcode_libdir_flag_spec_GCJ=
17130 export_dynamic_flag_spec_GCJ=
17131 whole_archive_flag_spec_GCJ=
17134 # PORTME fill in a description of your system's linker (not GNU ld)
17137 allow_undefined_flag_GCJ=unsupported
17138 always_export_symbols_GCJ=yes
17139 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'
17140 # Note: this linker hardcodes the directories in LIBPATH if there
17141 # are no directories specified by -L.
17142 hardcode_minus_L_GCJ=yes
17143 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17144 # Neither direct hardcoding nor static linking is supported with a
17146 hardcode_direct_GCJ=unsupported
17151 if test "$host_cpu" = ia64; then
17152 # On IA64, the linker does run time linking by default, so we don't
17153 # have to do anything special.
17154 aix_use_runtimelinking=no
17155 exp_sym_flag='-Bexport'
17158 # If we're using GNU nm, then we don't want the "-C" option.
17159 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17160 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17161 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'
17163 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'
17165 aix_use_runtimelinking=no
17167 # Test if we are trying to use run time linking or normal
17168 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17169 # need to do runtime linking.
17170 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17171 for ld_flag in $LDFLAGS; do
17172 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17173 aix_use_runtimelinking=yes
17180 exp_sym_flag='-bexport'
17181 no_entry_flag='-bnoentry'
17184 # When large executables or shared objects are built, AIX ld can
17185 # have problems creating the table of contents. If linking a library
17186 # or program results in "error TOC overflow" add -mminimal-toc to
17187 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17188 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17190 archive_cmds_GCJ=''
17191 hardcode_direct_GCJ=yes
17192 hardcode_libdir_separator_GCJ=':'
17193 link_all_deplibs_GCJ=yes
17195 if test "$GCC" = yes; then
17196 case $host_os in aix4.[012]|aix4.[012].*)
17197 # We only want to do this on AIX 4.2 and lower, the check
17198 # below for broken collect2 doesn't work under 4.3+
17199 collect2name=`${CC} -print-prog-name=collect2`
17200 if test -f "$collect2name" && \
17201 strings "$collect2name" | grep resolve_lib_name >/dev/null
17203 # We have reworked collect2
17204 hardcode_direct_GCJ=yes
17206 # We have old collect2
17207 hardcode_direct_GCJ=unsupported
17208 # It fails to find uninstalled libraries when the uninstalled
17209 # path is not listed in the libpath. Setting hardcode_minus_L
17210 # to unsupported forces relinking
17211 hardcode_minus_L_GCJ=yes
17212 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17213 hardcode_libdir_separator_GCJ=
17217 shared_flag='-shared'
17218 if test "$aix_use_runtimelinking" = yes; then
17219 shared_flag="$shared_flag "'${wl}-G'
17223 if test "$host_cpu" = ia64; then
17224 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17225 # chokes on -Wl,-G. The following line is correct:
17228 if test "$aix_use_runtimelinking" = yes; then
17229 shared_flag='${wl}-G'
17231 shared_flag='${wl}-bM:SRE'
17236 # It seems that -bexpall does not export symbols beginning with
17237 # underscore (_), so it is better to generate a list of symbols to export.
17238 always_export_symbols_GCJ=yes
17239 if test "$aix_use_runtimelinking" = yes; then
17240 # Warning - without using the other runtime loading flags (-brtl),
17241 # -berok will link without error, but may produce a broken library.
17242 allow_undefined_flag_GCJ='-berok'
17243 # Determine the default libpath from the value encoded in an empty executable.
17244 cat >conftest.$ac_ext <<_ACEOF
17247 cat confdefs.h >>conftest.$ac_ext
17248 cat >>conftest.$ac_ext <<_ACEOF
17249 /* end confdefs.h. */
17259 rm -f conftest.$ac_objext conftest$ac_exeext
17260 if { (ac_try="$ac_link"
17261 case "(($ac_try" in
17262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17263 *) ac_try_echo=$ac_try;;
17265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17266 (eval "$ac_link") 2>conftest.er1
17268 grep -v '^ *+' conftest.er1 >conftest.err
17270 cat conftest.err >&5
17271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272 (exit $ac_status); } && {
17273 test -z "$ac_c_werror_flag" ||
17274 test ! -s conftest.err
17275 } && test -s conftest$ac_exeext &&
17276 $as_test_x conftest$ac_exeext; then
17278 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17280 # Check for a 64-bit object if we didn't find anything.
17281 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; }
17284 echo "$as_me: failed program was:" >&5
17285 sed 's/^/| /' conftest.$ac_ext >&5
17290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17291 conftest$ac_exeext conftest.$ac_ext
17292 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17294 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17295 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"
17297 if test "$host_cpu" = ia64; then
17298 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17299 allow_undefined_flag_GCJ="-z nodefs"
17300 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"
17302 # Determine the default libpath from the value encoded in an empty executable.
17303 cat >conftest.$ac_ext <<_ACEOF
17306 cat confdefs.h >>conftest.$ac_ext
17307 cat >>conftest.$ac_ext <<_ACEOF
17308 /* end confdefs.h. */
17318 rm -f conftest.$ac_objext conftest$ac_exeext
17319 if { (ac_try="$ac_link"
17320 case "(($ac_try" in
17321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17322 *) ac_try_echo=$ac_try;;
17324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17325 (eval "$ac_link") 2>conftest.er1
17327 grep -v '^ *+' conftest.er1 >conftest.err
17329 cat conftest.err >&5
17330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331 (exit $ac_status); } && {
17332 test -z "$ac_c_werror_flag" ||
17333 test ! -s conftest.err
17334 } && test -s conftest$ac_exeext &&
17335 $as_test_x conftest$ac_exeext; then
17337 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17339 # Check for a 64-bit object if we didn't find anything.
17340 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; }
17343 echo "$as_me: failed program was:" >&5
17344 sed 's/^/| /' conftest.$ac_ext >&5
17349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17350 conftest$ac_exeext conftest.$ac_ext
17351 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17353 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17354 # Warning - without using the other run time loading flags,
17355 # -berok will link without error, but may produce a broken library.
17356 no_undefined_flag_GCJ=' ${wl}-bernotok'
17357 allow_undefined_flag_GCJ=' ${wl}-berok'
17358 # Exported symbols can be pulled into shared objects from archives
17359 whole_archive_flag_spec_GCJ='$convenience'
17360 archive_cmds_need_lc_GCJ=yes
17361 # This is similar to how AIX traditionally builds its shared libraries.
17362 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'
17368 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)'
17369 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17370 hardcode_minus_L_GCJ=yes
17371 # see comment about different semantics on the GNU ld section
17376 export_dynamic_flag_spec_GCJ=-rdynamic
17379 cygwin* | mingw* | pw32*)
17380 # When not using gcc, we currently assume that we are using
17381 # Microsoft Visual C++.
17382 # hardcode_libdir_flag_spec is actually meaningless, as there is
17383 # no search path for DLLs.
17384 hardcode_libdir_flag_spec_GCJ=' '
17385 allow_undefined_flag_GCJ=unsupported
17386 # Tell ltmain to make .lib files, not .a files.
17388 # Tell ltmain to make .dll files, not .so files.
17390 # FIXME: Setting linknames here is a bad hack.
17391 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17392 # The linker will automatically build a .lib file if we build a DLL.
17393 old_archive_From_new_cmds_GCJ='true'
17394 # FIXME: Should let the user specify the lib program.
17395 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17396 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17397 enable_shared_with_static_runtimes_GCJ=yes
17400 darwin* | rhapsody*)
17402 rhapsody* | darwin1.[012])
17403 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17406 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17407 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17409 case ${MACOSX_DEPLOYMENT_TARGET} in
17411 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17414 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17420 archive_cmds_need_lc_GCJ=no
17421 hardcode_direct_GCJ=no
17422 hardcode_automatic_GCJ=yes
17423 hardcode_shlibpath_var_GCJ=unsupported
17424 whole_archive_flag_spec_GCJ=''
17425 link_all_deplibs_GCJ=yes
17426 if test "$GCC" = yes ; then
17427 output_verbose_link_cmd='echo'
17428 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17429 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17430 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17431 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}'
17432 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}'
17434 case $cc_basename in
17436 output_verbose_link_cmd='echo'
17437 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17438 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17439 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17440 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}'
17441 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}'
17451 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17452 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17453 hardcode_shlibpath_var_GCJ=no
17460 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17461 # support. Future versions do this automatically, but an explicit c++rt0.o
17462 # does not break anything, and helps significantly (at the cost of a little
17465 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17466 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17467 hardcode_direct_GCJ=yes
17468 hardcode_shlibpath_var_GCJ=no
17471 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17473 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17474 hardcode_direct_GCJ=yes
17475 hardcode_minus_L_GCJ=yes
17476 hardcode_shlibpath_var_GCJ=no
17479 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17480 freebsd* | dragonfly*)
17481 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17482 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17483 hardcode_direct_GCJ=yes
17484 hardcode_shlibpath_var_GCJ=no
17488 if test "$GCC" = yes; then
17489 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'
17491 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'
17493 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17494 hardcode_libdir_separator_GCJ=:
17495 hardcode_direct_GCJ=yes
17497 # hardcode_minus_L: Not really in the search PATH,
17498 # but as the default location of the library.
17499 hardcode_minus_L_GCJ=yes
17500 export_dynamic_flag_spec_GCJ='${wl}-E'
17504 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17505 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17507 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17509 if test "$with_gnu_ld" = no; then
17510 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17511 hardcode_libdir_separator_GCJ=:
17513 hardcode_direct_GCJ=yes
17514 export_dynamic_flag_spec_GCJ='${wl}-E'
17516 # hardcode_minus_L: Not really in the search PATH,
17517 # but as the default location of the library.
17518 hardcode_minus_L_GCJ=yes
17523 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17526 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17529 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17532 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17538 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17541 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17544 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17548 if test "$with_gnu_ld" = no; then
17549 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17550 hardcode_libdir_separator_GCJ=:
17554 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17555 hardcode_direct_GCJ=no
17556 hardcode_shlibpath_var_GCJ=no
17559 hardcode_direct_GCJ=yes
17560 export_dynamic_flag_spec_GCJ='${wl}-E'
17562 # hardcode_minus_L: Not really in the search PATH,
17563 # but as the default location of the library.
17564 hardcode_minus_L_GCJ=yes
17570 irix5* | irix6* | nonstopux*)
17571 if test "$GCC" = yes; then
17572 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'
17574 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'
17575 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17577 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17578 hardcode_libdir_separator_GCJ=:
17579 link_all_deplibs_GCJ=yes
17582 netbsd* | netbsdelf*-gnu)
17583 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17584 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17586 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17588 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17589 hardcode_direct_GCJ=yes
17590 hardcode_shlibpath_var_GCJ=no
17594 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17595 hardcode_direct_GCJ=yes
17596 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17597 hardcode_libdir_separator_GCJ=:
17598 hardcode_shlibpath_var_GCJ=no
17602 hardcode_direct_GCJ=yes
17603 hardcode_shlibpath_var_GCJ=no
17604 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17605 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17606 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17607 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17608 export_dynamic_flag_spec_GCJ='${wl}-E'
17611 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17612 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17613 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17616 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17617 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17624 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17625 hardcode_minus_L_GCJ=yes
17626 allow_undefined_flag_GCJ=unsupported
17627 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'
17628 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17632 if test "$GCC" = yes; then
17633 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17634 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'
17636 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17637 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'
17639 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17640 hardcode_libdir_separator_GCJ=:
17643 osf4* | osf5*) # as osf3* with the addition of -msym flag
17644 if test "$GCC" = yes; then
17645 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17646 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'
17647 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17649 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17650 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'
17651 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~
17652 $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'
17654 # Both c and cxx compiler support -rpath directly
17655 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17657 hardcode_libdir_separator_GCJ=:
17661 no_undefined_flag_GCJ=' -z text'
17662 if test "$GCC" = yes; then
17664 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17665 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17666 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17669 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17670 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17671 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17673 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17674 hardcode_shlibpath_var_GCJ=no
17676 solaris2.[0-5] | solaris2.[0-5].*) ;;
17678 # The compiler driver will combine linker options so we
17679 # cannot just pass the convience library names through
17680 # without $wl, iff we do not link with $LD.
17681 # Luckily, gcc supports the same syntax we need for Sun Studio.
17682 # Supported since Solaris 2.6 (maybe 2.5.1?)
17685 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17687 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' ;;
17690 link_all_deplibs_GCJ=yes
17694 if test "x$host_vendor" = xsequent; then
17695 # Use $CC to link under sequent, because it throws in some extra .o
17696 # files that make .init and .fini sections work.
17697 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17699 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17701 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17702 hardcode_direct_GCJ=yes
17703 hardcode_minus_L_GCJ=yes
17704 hardcode_shlibpath_var_GCJ=no
17708 case $host_vendor in
17710 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17711 hardcode_direct_GCJ=yes # is this really true???
17714 ## LD is ld it makes a PLAMLIB
17715 ## CC just makes a GrossModule.
17716 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17717 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17718 hardcode_direct_GCJ=no
17721 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17722 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17725 runpath_var='LD_RUN_PATH'
17726 hardcode_shlibpath_var_GCJ=no
17730 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17731 hardcode_shlibpath_var_GCJ=no
17732 export_dynamic_flag_spec_GCJ='-Bexport'
17736 if test -d /usr/nec; then
17737 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17738 hardcode_shlibpath_var_GCJ=no
17739 runpath_var=LD_RUN_PATH
17740 hardcode_runpath_var=yes
17745 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17746 no_undefined_flag_GCJ='${wl}-z,text'
17747 archive_cmds_need_lc_GCJ=no
17748 hardcode_shlibpath_var_GCJ=no
17749 runpath_var='LD_RUN_PATH'
17751 if test "$GCC" = yes; then
17752 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17753 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17755 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17756 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17760 sysv5* | sco3.2v5* | sco5v6*)
17761 # Note: We can NOT use -z defs as we might desire, because we do not
17762 # link with -lc, and that would cause any symbols used from libc to
17763 # always be unresolved, which means just about no library would
17764 # ever link correctly. If we're not using GNU ld we use -z text
17765 # though, which does catch some bad symbols but isn't as heavy-handed
17767 no_undefined_flag_GCJ='${wl}-z,text'
17768 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17769 archive_cmds_need_lc_GCJ=no
17770 hardcode_shlibpath_var_GCJ=no
17771 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17772 hardcode_libdir_separator_GCJ=':'
17773 link_all_deplibs_GCJ=yes
17774 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17775 runpath_var='LD_RUN_PATH'
17777 if test "$GCC" = yes; then
17778 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17779 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17781 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17782 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17787 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17788 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17789 hardcode_shlibpath_var_GCJ=no
17798 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17799 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17800 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17803 # Do we need to explicitly link libc?
17805 case "x$archive_cmds_need_lc_GCJ" in
17807 # Assume -lc should be added
17808 archive_cmds_need_lc_GCJ=yes
17810 if test "$enable_shared" = yes && test "$GCC" = yes; then
17811 case $archive_cmds_GCJ in
17813 # FIXME: we may have to deal with multi-command sequences.
17816 # Test whether the compiler implicitly links with -lc since on some
17817 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17818 # to ld, don't add -lc before -lgcc.
17819 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17820 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17822 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17825 (eval $ac_compile) 2>&5
17827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828 (exit $ac_status); } 2>conftest.err; then
17831 libobjs=conftest.$ac_objext
17833 wl=$lt_prog_compiler_wl_GCJ
17834 pic_flag=$lt_prog_compiler_pic_GCJ
17840 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17841 allow_undefined_flag_GCJ=
17842 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17843 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846 (exit $ac_status); }
17848 archive_cmds_need_lc_GCJ=no
17850 archive_cmds_need_lc_GCJ=yes
17852 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17854 cat conftest.err 1>&5
17857 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17858 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17865 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17866 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17867 library_names_spec=
17868 libname_spec='lib$name'
17872 postuninstall_cmds=
17876 shlibpath_overrides_runpath=unknown
17878 dynamic_linker="$host_os ld.so"
17879 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17880 if test "$GCC" = yes; then
17881 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17882 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17883 # if the path contains ";" then we assume it to be the separator
17884 # otherwise default to the standard path separator (i.e. ":") - it is
17885 # assumed that no part of a normal pathname contains ";" but that should
17886 # okay in the real world where ";" in dirpaths is itself problematic.
17887 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17889 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17892 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17894 need_lib_prefix=unknown
17895 hardcode_into_libs=no
17897 # when you set need_version to no, make sure it does not cause -set_version
17898 # flags to be left without arguments
17899 need_version=unknown
17904 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17905 shlibpath_var=LIBPATH
17907 # AIX 3 has no versioning support, so we append a major version to the name.
17908 soname_spec='${libname}${release}${shared_ext}$major'
17915 hardcode_into_libs=yes
17916 if test "$host_cpu" = ia64; then
17917 # AIX 5 supports IA64
17918 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17919 shlibpath_var=LD_LIBRARY_PATH
17921 # With GCC up to 2.95.x, collect2 would create an import file
17922 # for dependence libraries. The import file would start with
17923 # the line `#! .'. This would cause the generated library to
17924 # depend on `.', always an invalid library. This was fixed in
17925 # development snapshots of GCC prior to 3.0.
17927 aix4 | aix4.[01] | aix4.[01].*)
17928 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17930 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17933 can_build_shared=no
17937 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17938 # soname into executable. Probably we can add versioning support to
17939 # collect2, so additional links can be useful in future.
17940 if test "$aix_use_runtimelinking" = yes; then
17941 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17942 # instead of lib<name>.a to let people know that these are not
17943 # typical AIX shared libraries.
17944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17946 # We preserve .a as extension for shared libraries through AIX4.2
17947 # and later when we are not doing run time linking.
17948 library_names_spec='${libname}${release}.a $libname.a'
17949 soname_spec='${libname}${release}${shared_ext}$major'
17951 shlibpath_var=LIBPATH
17956 library_names_spec='$libname.ixlibrary $libname.a'
17957 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17958 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'
17962 library_names_spec='${libname}${shared_ext}'
17963 dynamic_linker="$host_os ld.so"
17964 shlibpath_var=LIBRARY_PATH
17970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17971 soname_spec='${libname}${release}${shared_ext}$major'
17972 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17973 shlibpath_var=LD_LIBRARY_PATH
17974 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17975 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17976 # the default ld.so.conf also contains /usr/contrib/lib and
17977 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17978 # libtool to hard-code these into programs
17981 cygwin* | mingw* | pw32*)
17982 version_type=windows
17987 case $GCC,$host_os in
17988 yes,cygwin* | yes,mingw* | yes,pw32*)
17989 library_names_spec='$libname.dll.a'
17990 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17991 postinstall_cmds='base_file=`basename \${file}`~
17992 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17993 dldir=$destdir/`dirname \$dlpath`~
17994 test -d \$dldir || mkdir -p \$dldir~
17995 $install_prog $dir/$dlname \$dldir/$dlname~
17996 chmod a+x \$dldir/$dlname'
17997 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17998 dlpath=$dir/\$dldll~
18000 shlibpath_overrides_runpath=yes
18004 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18005 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18006 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18009 # MinGW DLLs use traditional 'lib' prefix
18010 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18011 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18012 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18013 # It is most probably a Windows format PATH printed by
18014 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18015 # path with ; separators, and with drive letters. We can handle the
18016 # drive letters (cygwin fileutils understands them), so leave them,
18017 # especially as we might pass files found there to a mingw objdump,
18018 # which wouldn't understand a cygwinified path. Ahh.
18019 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18021 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18025 # pw32 DLLs use 'pw' prefix rather than 'lib'
18026 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18032 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18035 dynamic_linker='Win32 ld.exe'
18036 # FIXME: first we should search . and the directory the executable is in
18040 darwin* | rhapsody*)
18041 dynamic_linker="$host_os dyld"
18042 version_type=darwin
18045 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18046 soname_spec='${libname}${release}${major}$shared_ext'
18047 shlibpath_overrides_runpath=yes
18048 shlibpath_var=DYLD_LIBRARY_PATH
18049 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18050 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18051 if test "$GCC" = yes; then
18052 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"`
18054 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18056 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18064 soname_spec='${libname}${release}${shared_ext}$major'
18065 shlibpath_var=LD_LIBRARY_PATH
18072 freebsd* | dragonfly*)
18073 # DragonFly does not have aout. When/if they implement a new
18074 # versioning mechanism, adjust this.
18075 if test -x /usr/bin/objformat; then
18076 objformat=`/usr/bin/objformat`
18079 freebsd[123]*) objformat=aout ;;
18080 *) objformat=elf ;;
18083 version_type=freebsd-$objformat
18084 case $version_type in
18086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18091 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18095 shlibpath_var=LD_LIBRARY_PATH
18098 shlibpath_overrides_runpath=yes
18100 freebsd3.[01]* | freebsdelf3.[01]*)
18101 shlibpath_overrides_runpath=yes
18102 hardcode_into_libs=yes
18104 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18105 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18106 shlibpath_overrides_runpath=no
18107 hardcode_into_libs=yes
18109 freebsd*) # from 4.6 on
18110 shlibpath_overrides_runpath=yes
18111 hardcode_into_libs=yes
18120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18121 soname_spec='${libname}${release}${shared_ext}$major'
18122 shlibpath_var=LD_LIBRARY_PATH
18123 hardcode_into_libs=yes
18126 hpux9* | hpux10* | hpux11*)
18127 # Give a soname corresponding to the major version so that dld.sl refuses to
18128 # link against other versions.
18135 hardcode_into_libs=yes
18136 dynamic_linker="$host_os dld.so"
18137 shlibpath_var=LD_LIBRARY_PATH
18138 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18140 soname_spec='${libname}${release}${shared_ext}$major'
18141 if test "X$HPUX_IA64_MODE" = X32; then
18142 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18144 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18146 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18150 hardcode_into_libs=yes
18151 dynamic_linker="$host_os dld.sl"
18152 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18153 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18155 soname_spec='${libname}${release}${shared_ext}$major'
18156 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18157 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18161 dynamic_linker="$host_os dld.sl"
18162 shlibpath_var=SHLIB_PATH
18163 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18165 soname_spec='${libname}${release}${shared_ext}$major'
18168 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18169 postinstall_cmds='chmod 555 $lib'
18176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18177 soname_spec='${libname}${release}${shared_ext}$major'
18178 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18179 shlibpath_var=LD_LIBRARY_PATH
18180 shlibpath_overrides_runpath=no
18181 hardcode_into_libs=yes
18184 irix5* | irix6* | nonstopux*)
18186 nonstopux*) version_type=nonstopux ;;
18188 if test "$lt_cv_prog_gnu_ld" = yes; then
18196 soname_spec='${libname}${release}${shared_ext}$major'
18197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18199 irix5* | nonstopux*)
18200 libsuff= shlibsuff=
18203 case $LD in # libtool.m4 will add one of these switches to LD
18204 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18205 libsuff= shlibsuff= libmagic=32-bit;;
18206 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18207 libsuff=32 shlibsuff=N32 libmagic=N32;;
18208 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18209 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18210 *) libsuff= shlibsuff= libmagic=never-match;;
18214 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18215 shlibpath_overrides_runpath=no
18216 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18217 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18218 hardcode_into_libs=yes
18221 # No shared lib support for Linux oldld, aout, or coff.
18222 linux*oldld* | linux*aout* | linux*coff*)
18226 # This must be Linux ELF.
18227 linux* | k*bsd*-gnu)
18231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18232 soname_spec='${libname}${release}${shared_ext}$major'
18233 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18234 shlibpath_var=LD_LIBRARY_PATH
18235 shlibpath_overrides_runpath=no
18236 # This implies no fast_install, which is unacceptable.
18237 # Some rework will be needed to allow for fast_install
18238 # before this can be enabled.
18239 hardcode_into_libs=yes
18241 # Append ld.so.conf contents to the search path
18242 if test -f /etc/ld.so.conf; then
18243 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' ' '`
18244 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18247 # We used to test for /lib/ld.so.1 and disable shared libraries on
18248 # powerpc, because MkLinux only supported shared libraries with the
18249 # GNU dynamic linker. Since this was broken with cross compilers,
18250 # most powerpc-linux boxes support dynamic linking these days and
18251 # people can always --disable-shared, the test was removed, and we
18252 # assume the GNU/Linux dynamic linker is in use.
18253 dynamic_linker='GNU/Linux ld.so'
18260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18261 soname_spec='${libname}${release}${shared_ext}$major'
18262 shlibpath_var=LD_LIBRARY_PATH
18263 shlibpath_overrides_runpath=no
18264 hardcode_into_libs=yes
18265 dynamic_linker='NetBSD ld.elf_so'
18272 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18274 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18275 dynamic_linker='NetBSD (a.out) ld.so'
18277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18278 soname_spec='${libname}${release}${shared_ext}$major'
18279 dynamic_linker='NetBSD ld.elf_so'
18281 shlibpath_var=LD_LIBRARY_PATH
18282 shlibpath_overrides_runpath=yes
18283 hardcode_into_libs=yes
18288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18289 shlibpath_var=LD_LIBRARY_PATH
18290 shlibpath_overrides_runpath=yes
18297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18298 soname_spec='${libname}${release}${shared_ext}$major'
18299 shlibpath_var=LD_LIBRARY_PATH
18300 shlibpath_overrides_runpath=yes
18305 sys_lib_dlsearch_path_spec="/usr/lib"
18307 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18309 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18310 *) need_version=no ;;
18312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18313 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18314 shlibpath_var=LD_LIBRARY_PATH
18315 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18317 openbsd2.[89] | openbsd2.[89].*)
18318 shlibpath_overrides_runpath=no
18321 shlibpath_overrides_runpath=yes
18325 shlibpath_overrides_runpath=yes
18330 libname_spec='$name'
18333 library_names_spec='$libname${shared_ext} $libname.a'
18334 dynamic_linker='OS/2 ld.exe'
18335 shlibpath_var=LIBPATH
18338 osf3* | osf4* | osf5*)
18342 soname_spec='${libname}${release}${shared_ext}$major'
18343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18344 shlibpath_var=LD_LIBRARY_PATH
18345 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18346 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18354 soname_spec='${libname}${release}${shared_ext}$major'
18355 shlibpath_var=LD_LIBRARY_PATH
18356 shlibpath_overrides_runpath=yes
18357 hardcode_into_libs=yes
18358 # ldd complains unless libraries are executable
18359 postinstall_cmds='chmod +x $lib'
18364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18365 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18366 shlibpath_var=LD_LIBRARY_PATH
18367 shlibpath_overrides_runpath=yes
18368 if test "$with_gnu_ld" = yes; then
18376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18377 soname_spec='${libname}${release}${shared_ext}$major'
18378 shlibpath_var=LD_LIBRARY_PATH
18379 case $host_vendor in
18381 shlibpath_overrides_runpath=no
18383 export_dynamic_flag_spec='${wl}-Blargedynsym'
18384 runpath_var=LD_RUN_PATH
18392 shlibpath_overrides_runpath=no
18393 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18399 if test -d /usr/nec ;then
18401 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18402 soname_spec='$libname${shared_ext}.$major'
18403 shlibpath_var=LD_LIBRARY_PATH
18407 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18408 version_type=freebsd-elf
18411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18412 soname_spec='${libname}${release}${shared_ext}$major'
18413 shlibpath_var=LD_LIBRARY_PATH
18414 hardcode_into_libs=yes
18415 if test "$with_gnu_ld" = yes; then
18416 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18417 shlibpath_overrides_runpath=no
18419 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18420 shlibpath_overrides_runpath=yes
18423 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18427 sys_lib_dlsearch_path_spec='/usr/lib'
18432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18433 soname_spec='${libname}${release}${shared_ext}$major'
18434 shlibpath_var=LD_LIBRARY_PATH
18441 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18442 echo "${ECHO_T}$dynamic_linker" >&6; }
18443 test "$dynamic_linker" = no && can_build_shared=no
18445 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18446 if test "$GCC" = yes; then
18447 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18450 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18451 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18452 hardcode_action_GCJ=
18453 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18454 test -n "$runpath_var_GCJ" || \
18455 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18457 # We can hardcode non-existant directories.
18458 if test "$hardcode_direct_GCJ" != no &&
18459 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18460 # have to relink, otherwise we might link with an installed library
18461 # when we should be linking with a yet-to-be-installed one
18462 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18463 test "$hardcode_minus_L_GCJ" != no; then
18464 # Linking always hardcodes the temporary library directory.
18465 hardcode_action_GCJ=relink
18467 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18468 hardcode_action_GCJ=immediate
18471 # We cannot hardcode anything, or else we can only hardcode existing
18473 hardcode_action_GCJ=unsupported
18475 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18476 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18478 if test "$hardcode_action_GCJ" = relink; then
18479 # Fast installation is not supported
18480 enable_fast_install=no
18481 elif test "$shlibpath_overrides_runpath" = yes ||
18482 test "$enable_shared" = no; then
18483 # Fast installation is not necessary
18484 enable_fast_install=needless
18488 # The else clause should only fire when bootstrapping the
18489 # libtool distribution, otherwise you forgot to ship ltmain.sh
18490 # with your package, and you will get complaints that there are
18491 # no rules to generate ltmain.sh.
18492 if test -f "$ltmain"; then
18493 # See if we are running on zsh, and set the options which allow our commands through
18494 # without removal of \ escapes.
18495 if test -n "${ZSH_VERSION+set}" ; then
18496 setopt NO_GLOB_SUBST
18498 # Now quote all the things that may contain metacharacters while being
18499 # careful not to overquote the AC_SUBSTed values. We take copies of the
18500 # variables and quote the copies for generation of the libtool script.
18501 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18503 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18504 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18505 deplibs_check_method reload_flag reload_cmds need_locks \
18506 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18507 lt_cv_sys_global_symbol_to_c_name_address \
18508 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18509 old_postinstall_cmds old_postuninstall_cmds \
18513 lt_prog_compiler_wl_GCJ \
18514 lt_prog_compiler_pic_GCJ \
18515 lt_prog_compiler_static_GCJ \
18516 lt_prog_compiler_no_builtin_flag_GCJ \
18517 export_dynamic_flag_spec_GCJ \
18518 thread_safe_flag_spec_GCJ \
18519 whole_archive_flag_spec_GCJ \
18520 enable_shared_with_static_runtimes_GCJ \
18521 old_archive_cmds_GCJ \
18522 old_archive_from_new_cmds_GCJ \
18523 predep_objects_GCJ \
18524 postdep_objects_GCJ \
18527 compiler_lib_search_path_GCJ \
18529 archive_expsym_cmds_GCJ \
18530 postinstall_cmds_GCJ \
18531 postuninstall_cmds_GCJ \
18532 old_archive_from_expsyms_cmds_GCJ \
18533 allow_undefined_flag_GCJ \
18534 no_undefined_flag_GCJ \
18535 export_symbols_cmds_GCJ \
18536 hardcode_libdir_flag_spec_GCJ \
18537 hardcode_libdir_flag_spec_ld_GCJ \
18538 hardcode_libdir_separator_GCJ \
18539 hardcode_automatic_GCJ \
18541 module_expsym_cmds_GCJ \
18542 lt_cv_prog_compiler_c_o_GCJ \
18543 exclude_expsyms_GCJ \
18544 include_expsyms_GCJ; do
18547 old_archive_cmds_GCJ | \
18548 old_archive_from_new_cmds_GCJ | \
18549 archive_cmds_GCJ | \
18550 archive_expsym_cmds_GCJ | \
18551 module_cmds_GCJ | \
18552 module_expsym_cmds_GCJ | \
18553 old_archive_from_expsyms_cmds_GCJ | \
18554 export_symbols_cmds_GCJ | \
18555 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18556 postinstall_cmds | postuninstall_cmds | \
18557 old_postinstall_cmds | old_postuninstall_cmds | \
18558 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18559 # Double-quote double-evaled strings.
18560 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18563 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18569 *'\$0 --fallback-echo"')
18570 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18576 cat <<__EOF__ >> "$cfgfile"
18577 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18579 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18581 # Shell to use when invoking shell scripts.
18584 # Whether or not to build shared libraries.
18585 build_libtool_libs=$enable_shared
18587 # Whether or not to build static libraries.
18588 build_old_libs=$enable_static
18590 # Whether or not to add -lc for building shared libraries.
18591 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18593 # Whether or not to disallow shared libs when runtime libs are static
18594 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18596 # Whether or not to optimize for fast installation.
18597 fast_install=$enable_fast_install
18600 host_alias=$host_alias
18604 # The build system.
18605 build_alias=$build_alias
18609 # An echo program that does not interpret backslashes.
18614 AR_FLAGS=$lt_AR_FLAGS
18619 # LTCC compiler flags.
18620 LTCFLAGS=$lt_LTCFLAGS
18622 # A language-specific compiler.
18623 CC=$lt_compiler_GCJ
18625 # Is the compiler the GNU C compiler?
18631 # The linker used to build libraries.
18634 # Whether we need hard or soft links.
18637 # A BSD-compatible nm program.
18640 # A symbol stripping program
18643 # Used to examine libraries when file_magic_cmd begins "file"
18644 MAGIC_CMD=$MAGIC_CMD
18646 # Used on cygwin: DLL creation program.
18649 # Used on cygwin: object dumper.
18652 # Used on cygwin: assembler.
18655 # The name of the directory that contains temporary libtool files.
18658 # How to create reloadable object files.
18659 reload_flag=$lt_reload_flag
18660 reload_cmds=$lt_reload_cmds
18662 # How to pass a linker flag through the compiler.
18663 wl=$lt_lt_prog_compiler_wl_GCJ
18665 # Object file suffix (normally "o").
18666 objext="$ac_objext"
18668 # Old archive suffix (normally "a").
18671 # Shared library suffix (normally ".so").
18672 shrext_cmds='$shrext_cmds'
18674 # Executable file suffix (normally "").
18677 # Additional compiler flags for building library objects.
18678 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18681 # What is the maximum length of a command?
18682 max_cmd_len=$lt_cv_sys_max_cmd_len
18684 # Does compiler simultaneously support -c and -o options?
18685 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18687 # Must we lock files when doing compilation?
18688 need_locks=$lt_need_locks
18690 # Do we need the lib prefix for modules?
18691 need_lib_prefix=$need_lib_prefix
18693 # Do we need a version for libraries?
18694 need_version=$need_version
18696 # Whether dlopen is supported.
18697 dlopen_support=$enable_dlopen
18699 # Whether dlopen of programs is supported.
18700 dlopen_self=$enable_dlopen_self
18702 # Whether dlopen of statically linked programs is supported.
18703 dlopen_self_static=$enable_dlopen_self_static
18705 # Compiler flag to prevent dynamic linking.
18706 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18708 # Compiler flag to turn off builtin functions.
18709 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18711 # Compiler flag to allow reflexive dlopens.
18712 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18714 # Compiler flag to generate shared objects directly from archives.
18715 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18717 # Compiler flag to generate thread-safe objects.
18718 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18720 # Library versioning type.
18721 version_type=$version_type
18723 # Format of library name prefix.
18724 libname_spec=$lt_libname_spec
18726 # List of archive names. First name is the real one, the rest are links.
18727 # The last name is the one that the linker finds with -lNAME.
18728 library_names_spec=$lt_library_names_spec
18730 # The coded name of the library, if different from the real name.
18731 soname_spec=$lt_soname_spec
18733 # Commands used to build and install an old-style archive.
18735 old_archive_cmds=$lt_old_archive_cmds_GCJ
18736 old_postinstall_cmds=$lt_old_postinstall_cmds
18737 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18739 # Create an old-style archive from a shared archive.
18740 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18742 # Create a temporary old-style archive to link instead of a shared archive.
18743 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18745 # Commands used to build and install a shared archive.
18746 archive_cmds=$lt_archive_cmds_GCJ
18747 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18748 postinstall_cmds=$lt_postinstall_cmds
18749 postuninstall_cmds=$lt_postuninstall_cmds
18751 # Commands used to build a loadable module (assumed same as above if empty)
18752 module_cmds=$lt_module_cmds_GCJ
18753 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18755 # Commands to strip libraries.
18756 old_striplib=$lt_old_striplib
18757 striplib=$lt_striplib
18759 # Dependencies to place before the objects being linked to create a
18761 predep_objects=$lt_predep_objects_GCJ
18763 # Dependencies to place after the objects being linked to create a
18765 postdep_objects=$lt_postdep_objects_GCJ
18767 # Dependencies to place before the objects being linked to create a
18769 predeps=$lt_predeps_GCJ
18771 # Dependencies to place after the objects being linked to create a
18773 postdeps=$lt_postdeps_GCJ
18775 # The library search path used internally by the compiler when linking
18776 # a shared library.
18777 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18779 # Method to check whether dependent libraries are shared objects.
18780 deplibs_check_method=$lt_deplibs_check_method
18782 # Command to use when deplibs_check_method == file_magic.
18783 file_magic_cmd=$lt_file_magic_cmd
18785 # Flag that allows shared libraries with undefined symbols to be built.
18786 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18788 # Flag that forces no undefined symbols.
18789 no_undefined_flag=$lt_no_undefined_flag_GCJ
18791 # Commands used to finish a libtool library installation in a directory.
18792 finish_cmds=$lt_finish_cmds
18794 # Same as above, but a single script fragment to be evaled but not shown.
18795 finish_eval=$lt_finish_eval
18797 # Take the output of nm and produce a listing of raw symbols and C names.
18798 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18800 # Transform the output of nm in a proper C declaration
18801 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18803 # Transform the output of nm in a C name address pair
18804 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18806 # This is the shared library runtime path variable.
18807 runpath_var=$runpath_var
18809 # This is the shared library path variable.
18810 shlibpath_var=$shlibpath_var
18812 # Is shlibpath searched before the hard-coded library search path?
18813 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18815 # How to hardcode a shared library path into an executable.
18816 hardcode_action=$hardcode_action_GCJ
18818 # Whether we should hardcode library paths into libraries.
18819 hardcode_into_libs=$hardcode_into_libs
18821 # Flag to hardcode \$libdir into a binary during linking.
18822 # This must work even if \$libdir does not exist.
18823 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18825 # If ld is used when linking, flag to hardcode \$libdir into
18826 # a binary during linking. This must work even if \$libdir does
18828 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18830 # Whether we need a single -rpath flag with a separated argument.
18831 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18833 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18834 # resulting binary.
18835 hardcode_direct=$hardcode_direct_GCJ
18837 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18838 # resulting binary.
18839 hardcode_minus_L=$hardcode_minus_L_GCJ
18841 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18842 # the resulting binary.
18843 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18845 # Set to yes if building a shared library automatically hardcodes DIR into the library
18846 # and all subsequent libraries and executables linked against it.
18847 hardcode_automatic=$hardcode_automatic_GCJ
18849 # Variables whose values should be saved in libtool wrapper scripts and
18850 # restored at relink time.
18851 variables_saved_for_relink="$variables_saved_for_relink"
18853 # Whether libtool must link a program against all its dependency libraries.
18854 link_all_deplibs=$link_all_deplibs_GCJ
18856 # Compile-time system search path for libraries
18857 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18859 # Run-time system search path for libraries
18860 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18862 # Fix the shell variable \$srcfile for the compiler.
18863 fix_srcfile_path="$fix_srcfile_path_GCJ"
18865 # Set to yes if exported symbols are required.
18866 always_export_symbols=$always_export_symbols_GCJ
18868 # The commands to list exported symbols.
18869 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18871 # The commands to extract the exported symbol list from a shared archive.
18872 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18874 # Symbols that should not be listed in the preloaded symbols.
18875 exclude_expsyms=$lt_exclude_expsyms_GCJ
18877 # Symbols that must always be exported.
18878 include_expsyms=$lt_include_expsyms_GCJ
18880 # ### END LIBTOOL TAG CONFIG: $tagname
18886 # If there is no Makefile yet, we rely on a make rule to execute
18887 # `config.status --recheck' to rerun these tests and create the
18888 # libtool script then.
18889 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18890 if test -f "$ltmain_in"; then
18891 test -f Makefile && make "$ltmain"
18897 ac_cpp='$CPP $CPPFLAGS'
18898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18912 # Source file extension for RC test sources.
18915 # Object file extension for compiled RC test sources.
18919 # Code to be used in simple compile tests
18920 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18922 # Code to be used in simple link tests
18923 lt_simple_link_test_code="$lt_simple_compile_test_code"
18925 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18927 # If no C compiler was specified, use CC.
18930 # If no C compiler flags were specified, use CFLAGS.
18931 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18933 # Allow CC to be a program name with arguments.
18937 # save warnings/boilerplate of simple test code
18938 ac_outfile=conftest.$ac_objext
18939 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18940 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18941 _lt_compiler_boilerplate=`cat conftest.err`
18944 ac_outfile=conftest.$ac_objext
18945 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18946 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18947 _lt_linker_boilerplate=`cat conftest.err`
18951 # Allow CC to be a program name with arguments.
18956 for cc_temp in $compiler""; do
18958 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18959 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18964 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18966 lt_cv_prog_compiler_c_o_RC=yes
18968 # The else clause should only fire when bootstrapping the
18969 # libtool distribution, otherwise you forgot to ship ltmain.sh
18970 # with your package, and you will get complaints that there are
18971 # no rules to generate ltmain.sh.
18972 if test -f "$ltmain"; then
18973 # See if we are running on zsh, and set the options which allow our commands through
18974 # without removal of \ escapes.
18975 if test -n "${ZSH_VERSION+set}" ; then
18976 setopt NO_GLOB_SUBST
18978 # Now quote all the things that may contain metacharacters while being
18979 # careful not to overquote the AC_SUBSTed values. We take copies of the
18980 # variables and quote the copies for generation of the libtool script.
18981 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18983 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18984 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18985 deplibs_check_method reload_flag reload_cmds need_locks \
18986 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18987 lt_cv_sys_global_symbol_to_c_name_address \
18988 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18989 old_postinstall_cmds old_postuninstall_cmds \
18993 lt_prog_compiler_wl_RC \
18994 lt_prog_compiler_pic_RC \
18995 lt_prog_compiler_static_RC \
18996 lt_prog_compiler_no_builtin_flag_RC \
18997 export_dynamic_flag_spec_RC \
18998 thread_safe_flag_spec_RC \
18999 whole_archive_flag_spec_RC \
19000 enable_shared_with_static_runtimes_RC \
19001 old_archive_cmds_RC \
19002 old_archive_from_new_cmds_RC \
19003 predep_objects_RC \
19004 postdep_objects_RC \
19007 compiler_lib_search_path_RC \
19009 archive_expsym_cmds_RC \
19010 postinstall_cmds_RC \
19011 postuninstall_cmds_RC \
19012 old_archive_from_expsyms_cmds_RC \
19013 allow_undefined_flag_RC \
19014 no_undefined_flag_RC \
19015 export_symbols_cmds_RC \
19016 hardcode_libdir_flag_spec_RC \
19017 hardcode_libdir_flag_spec_ld_RC \
19018 hardcode_libdir_separator_RC \
19019 hardcode_automatic_RC \
19021 module_expsym_cmds_RC \
19022 lt_cv_prog_compiler_c_o_RC \
19023 exclude_expsyms_RC \
19024 include_expsyms_RC; do
19027 old_archive_cmds_RC | \
19028 old_archive_from_new_cmds_RC | \
19029 archive_cmds_RC | \
19030 archive_expsym_cmds_RC | \
19032 module_expsym_cmds_RC | \
19033 old_archive_from_expsyms_cmds_RC | \
19034 export_symbols_cmds_RC | \
19035 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19036 postinstall_cmds | postuninstall_cmds | \
19037 old_postinstall_cmds | old_postuninstall_cmds | \
19038 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19039 # Double-quote double-evaled strings.
19040 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19043 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19049 *'\$0 --fallback-echo"')
19050 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19056 cat <<__EOF__ >> "$cfgfile"
19057 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19059 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19061 # Shell to use when invoking shell scripts.
19064 # Whether or not to build shared libraries.
19065 build_libtool_libs=$enable_shared
19067 # Whether or not to build static libraries.
19068 build_old_libs=$enable_static
19070 # Whether or not to add -lc for building shared libraries.
19071 build_libtool_need_lc=$archive_cmds_need_lc_RC
19073 # Whether or not to disallow shared libs when runtime libs are static
19074 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19076 # Whether or not to optimize for fast installation.
19077 fast_install=$enable_fast_install
19080 host_alias=$host_alias
19084 # The build system.
19085 build_alias=$build_alias
19089 # An echo program that does not interpret backslashes.
19094 AR_FLAGS=$lt_AR_FLAGS
19099 # LTCC compiler flags.
19100 LTCFLAGS=$lt_LTCFLAGS
19102 # A language-specific compiler.
19105 # Is the compiler the GNU C compiler?
19111 # The linker used to build libraries.
19114 # Whether we need hard or soft links.
19117 # A BSD-compatible nm program.
19120 # A symbol stripping program
19123 # Used to examine libraries when file_magic_cmd begins "file"
19124 MAGIC_CMD=$MAGIC_CMD
19126 # Used on cygwin: DLL creation program.
19129 # Used on cygwin: object dumper.
19132 # Used on cygwin: assembler.
19135 # The name of the directory that contains temporary libtool files.
19138 # How to create reloadable object files.
19139 reload_flag=$lt_reload_flag
19140 reload_cmds=$lt_reload_cmds
19142 # How to pass a linker flag through the compiler.
19143 wl=$lt_lt_prog_compiler_wl_RC
19145 # Object file suffix (normally "o").
19146 objext="$ac_objext"
19148 # Old archive suffix (normally "a").
19151 # Shared library suffix (normally ".so").
19152 shrext_cmds='$shrext_cmds'
19154 # Executable file suffix (normally "").
19157 # Additional compiler flags for building library objects.
19158 pic_flag=$lt_lt_prog_compiler_pic_RC
19161 # What is the maximum length of a command?
19162 max_cmd_len=$lt_cv_sys_max_cmd_len
19164 # Does compiler simultaneously support -c and -o options?
19165 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19167 # Must we lock files when doing compilation?
19168 need_locks=$lt_need_locks
19170 # Do we need the lib prefix for modules?
19171 need_lib_prefix=$need_lib_prefix
19173 # Do we need a version for libraries?
19174 need_version=$need_version
19176 # Whether dlopen is supported.
19177 dlopen_support=$enable_dlopen
19179 # Whether dlopen of programs is supported.
19180 dlopen_self=$enable_dlopen_self
19182 # Whether dlopen of statically linked programs is supported.
19183 dlopen_self_static=$enable_dlopen_self_static
19185 # Compiler flag to prevent dynamic linking.
19186 link_static_flag=$lt_lt_prog_compiler_static_RC
19188 # Compiler flag to turn off builtin functions.
19189 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19191 # Compiler flag to allow reflexive dlopens.
19192 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19194 # Compiler flag to generate shared objects directly from archives.
19195 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19197 # Compiler flag to generate thread-safe objects.
19198 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19200 # Library versioning type.
19201 version_type=$version_type
19203 # Format of library name prefix.
19204 libname_spec=$lt_libname_spec
19206 # List of archive names. First name is the real one, the rest are links.
19207 # The last name is the one that the linker finds with -lNAME.
19208 library_names_spec=$lt_library_names_spec
19210 # The coded name of the library, if different from the real name.
19211 soname_spec=$lt_soname_spec
19213 # Commands used to build and install an old-style archive.
19215 old_archive_cmds=$lt_old_archive_cmds_RC
19216 old_postinstall_cmds=$lt_old_postinstall_cmds
19217 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19219 # Create an old-style archive from a shared archive.
19220 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19222 # Create a temporary old-style archive to link instead of a shared archive.
19223 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19225 # Commands used to build and install a shared archive.
19226 archive_cmds=$lt_archive_cmds_RC
19227 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19228 postinstall_cmds=$lt_postinstall_cmds
19229 postuninstall_cmds=$lt_postuninstall_cmds
19231 # Commands used to build a loadable module (assumed same as above if empty)
19232 module_cmds=$lt_module_cmds_RC
19233 module_expsym_cmds=$lt_module_expsym_cmds_RC
19235 # Commands to strip libraries.
19236 old_striplib=$lt_old_striplib
19237 striplib=$lt_striplib
19239 # Dependencies to place before the objects being linked to create a
19241 predep_objects=$lt_predep_objects_RC
19243 # Dependencies to place after the objects being linked to create a
19245 postdep_objects=$lt_postdep_objects_RC
19247 # Dependencies to place before the objects being linked to create a
19249 predeps=$lt_predeps_RC
19251 # Dependencies to place after the objects being linked to create a
19253 postdeps=$lt_postdeps_RC
19255 # The library search path used internally by the compiler when linking
19256 # a shared library.
19257 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19259 # Method to check whether dependent libraries are shared objects.
19260 deplibs_check_method=$lt_deplibs_check_method
19262 # Command to use when deplibs_check_method == file_magic.
19263 file_magic_cmd=$lt_file_magic_cmd
19265 # Flag that allows shared libraries with undefined symbols to be built.
19266 allow_undefined_flag=$lt_allow_undefined_flag_RC
19268 # Flag that forces no undefined symbols.
19269 no_undefined_flag=$lt_no_undefined_flag_RC
19271 # Commands used to finish a libtool library installation in a directory.
19272 finish_cmds=$lt_finish_cmds
19274 # Same as above, but a single script fragment to be evaled but not shown.
19275 finish_eval=$lt_finish_eval
19277 # Take the output of nm and produce a listing of raw symbols and C names.
19278 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19280 # Transform the output of nm in a proper C declaration
19281 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19283 # Transform the output of nm in a C name address pair
19284 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19286 # This is the shared library runtime path variable.
19287 runpath_var=$runpath_var
19289 # This is the shared library path variable.
19290 shlibpath_var=$shlibpath_var
19292 # Is shlibpath searched before the hard-coded library search path?
19293 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19295 # How to hardcode a shared library path into an executable.
19296 hardcode_action=$hardcode_action_RC
19298 # Whether we should hardcode library paths into libraries.
19299 hardcode_into_libs=$hardcode_into_libs
19301 # Flag to hardcode \$libdir into a binary during linking.
19302 # This must work even if \$libdir does not exist.
19303 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19305 # If ld is used when linking, flag to hardcode \$libdir into
19306 # a binary during linking. This must work even if \$libdir does
19308 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19310 # Whether we need a single -rpath flag with a separated argument.
19311 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19313 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19314 # resulting binary.
19315 hardcode_direct=$hardcode_direct_RC
19317 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19318 # resulting binary.
19319 hardcode_minus_L=$hardcode_minus_L_RC
19321 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19322 # the resulting binary.
19323 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19325 # Set to yes if building a shared library automatically hardcodes DIR into the library
19326 # and all subsequent libraries and executables linked against it.
19327 hardcode_automatic=$hardcode_automatic_RC
19329 # Variables whose values should be saved in libtool wrapper scripts and
19330 # restored at relink time.
19331 variables_saved_for_relink="$variables_saved_for_relink"
19333 # Whether libtool must link a program against all its dependency libraries.
19334 link_all_deplibs=$link_all_deplibs_RC
19336 # Compile-time system search path for libraries
19337 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19339 # Run-time system search path for libraries
19340 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19342 # Fix the shell variable \$srcfile for the compiler.
19343 fix_srcfile_path="$fix_srcfile_path_RC"
19345 # Set to yes if exported symbols are required.
19346 always_export_symbols=$always_export_symbols_RC
19348 # The commands to list exported symbols.
19349 export_symbols_cmds=$lt_export_symbols_cmds_RC
19351 # The commands to extract the exported symbol list from a shared archive.
19352 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19354 # Symbols that should not be listed in the preloaded symbols.
19355 exclude_expsyms=$lt_exclude_expsyms_RC
19357 # Symbols that must always be exported.
19358 include_expsyms=$lt_include_expsyms_RC
19360 # ### END LIBTOOL TAG CONFIG: $tagname
19366 # If there is no Makefile yet, we rely on a make rule to execute
19367 # `config.status --recheck' to rerun these tests and create the
19368 # libtool script then.
19369 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19370 if test -f "$ltmain_in"; then
19371 test -f Makefile && make "$ltmain"
19377 ac_cpp='$CPP $CPPFLAGS'
19378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19387 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19388 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19389 { (exit 1); exit 1; }; }
19393 # Append the new tag name to the list of available tags.
19394 if test -n "$tagname" ; then
19395 available_tags="$available_tags $tagname"
19401 # Now substitute the updated list of available tags.
19402 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19403 mv "${ofile}T" "$ofile"
19407 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19408 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19409 { (exit 1); exit 1; }; }
19415 # This can be used to rebuild libtool when needed
19416 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19418 # Always use our own libtool.
19419 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19421 # Prevent multiple expansion
19450 { echo "$as_me:$LINENO: result: " >&5
19451 echo "${ECHO_T}" >&6; }
19452 { echo "$as_me:$LINENO: result: ${T_MD}System checks...${T_ME}" >&5
19453 echo "${ECHO_T}${T_MD}System checks...${T_ME}" >&6; }
19456 ac_cpp='$CPP $CPPFLAGS'
19457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19460 if test -n "$ac_tool_prefix"; then
19461 for ac_prog in xlC gcc cc
19463 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19464 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19467 if test "${ac_cv_prog_CC+set}" = set; then
19468 echo $ECHO_N "(cached) $ECHO_C" >&6
19470 if test -n "$CC"; then
19471 ac_cv_prog_CC="$CC" # Let the user override the test.
19473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19474 for as_dir in $PATH
19477 test -z "$as_dir" && as_dir=.
19478 for ac_exec_ext in '' $ac_executable_extensions; do
19479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19480 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19491 if test -n "$CC"; then
19492 { echo "$as_me:$LINENO: result: $CC" >&5
19493 echo "${ECHO_T}$CC" >&6; }
19495 { echo "$as_me:$LINENO: result: no" >&5
19496 echo "${ECHO_T}no" >&6; }
19500 test -n "$CC" && break
19503 if test -z "$CC"; then
19505 for ac_prog in xlC gcc cc
19507 # Extract the first word of "$ac_prog", so it can be a program name with args.
19508 set dummy $ac_prog; ac_word=$2
19509 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19511 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19512 echo $ECHO_N "(cached) $ECHO_C" >&6
19514 if test -n "$ac_ct_CC"; then
19515 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19518 for as_dir in $PATH
19521 test -z "$as_dir" && as_dir=.
19522 for ac_exec_ext in '' $ac_executable_extensions; do
19523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19524 ac_cv_prog_ac_ct_CC="$ac_prog"
19525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19534 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19535 if test -n "$ac_ct_CC"; then
19536 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19537 echo "${ECHO_T}$ac_ct_CC" >&6; }
19539 { echo "$as_me:$LINENO: result: no" >&5
19540 echo "${ECHO_T}no" >&6; }
19544 test -n "$ac_ct_CC" && break
19547 if test "x$ac_ct_CC" = x; then
19550 case $cross_compiling:$ac_tool_warned in
19552 { echo "$as_me:$LINENO: 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." >&5
19555 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19556 whose name does not start with the host triplet. If you think this
19557 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19558 ac_tool_warned=yes ;;
19565 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19566 See \`config.log' for more details." >&5
19567 echo "$as_me: error: no acceptable C compiler found in \$PATH
19568 See \`config.log' for more details." >&2;}
19569 { (exit 1); exit 1; }; }
19571 # Provide some information about the compiler.
19572 echo "$as_me:$LINENO: checking for C compiler version" >&5
19573 ac_compiler=`set X $ac_compile; echo $2`
19574 { (ac_try="$ac_compiler --version >&5"
19575 case "(($ac_try" in
19576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19577 *) ac_try_echo=$ac_try;;
19579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19580 (eval "$ac_compiler --version >&5") 2>&5
19582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583 (exit $ac_status); }
19584 { (ac_try="$ac_compiler -v >&5"
19585 case "(($ac_try" in
19586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19587 *) ac_try_echo=$ac_try;;
19589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19590 (eval "$ac_compiler -v >&5") 2>&5
19592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19593 (exit $ac_status); }
19594 { (ac_try="$ac_compiler -V >&5"
19595 case "(($ac_try" in
19596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19597 *) ac_try_echo=$ac_try;;
19599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19600 (eval "$ac_compiler -V >&5") 2>&5
19602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19603 (exit $ac_status); }
19605 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19606 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
19607 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19608 echo $ECHO_N "(cached) $ECHO_C" >&6
19610 cat >conftest.$ac_ext <<_ACEOF
19613 cat confdefs.h >>conftest.$ac_ext
19614 cat >>conftest.$ac_ext <<_ACEOF
19615 /* end confdefs.h. */
19628 rm -f conftest.$ac_objext
19629 if { (ac_try="$ac_compile"
19630 case "(($ac_try" in
19631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19632 *) ac_try_echo=$ac_try;;
19634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19635 (eval "$ac_compile") 2>conftest.er1
19637 grep -v '^ *+' conftest.er1 >conftest.err
19639 cat conftest.err >&5
19640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641 (exit $ac_status); } && {
19642 test -z "$ac_c_werror_flag" ||
19643 test ! -s conftest.err
19644 } && test -s conftest.$ac_objext; then
19645 ac_compiler_gnu=yes
19647 echo "$as_me: failed program was:" >&5
19648 sed 's/^/| /' conftest.$ac_ext >&5
19653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19654 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19657 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19658 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
19659 GCC=`test $ac_compiler_gnu = yes && echo yes`
19660 ac_test_CFLAGS=${CFLAGS+set}
19661 ac_save_CFLAGS=$CFLAGS
19662 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19663 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
19664 if test "${ac_cv_prog_cc_g+set}" = set; then
19665 echo $ECHO_N "(cached) $ECHO_C" >&6
19667 ac_save_c_werror_flag=$ac_c_werror_flag
19668 ac_c_werror_flag=yes
19671 cat >conftest.$ac_ext <<_ACEOF
19674 cat confdefs.h >>conftest.$ac_ext
19675 cat >>conftest.$ac_ext <<_ACEOF
19676 /* end confdefs.h. */
19686 rm -f conftest.$ac_objext
19687 if { (ac_try="$ac_compile"
19688 case "(($ac_try" in
19689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19690 *) ac_try_echo=$ac_try;;
19692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19693 (eval "$ac_compile") 2>conftest.er1
19695 grep -v '^ *+' conftest.er1 >conftest.err
19697 cat conftest.err >&5
19698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19699 (exit $ac_status); } && {
19700 test -z "$ac_c_werror_flag" ||
19701 test ! -s conftest.err
19702 } && test -s conftest.$ac_objext; then
19703 ac_cv_prog_cc_g=yes
19705 echo "$as_me: failed program was:" >&5
19706 sed 's/^/| /' conftest.$ac_ext >&5
19709 cat >conftest.$ac_ext <<_ACEOF
19712 cat confdefs.h >>conftest.$ac_ext
19713 cat >>conftest.$ac_ext <<_ACEOF
19714 /* end confdefs.h. */
19724 rm -f conftest.$ac_objext
19725 if { (ac_try="$ac_compile"
19726 case "(($ac_try" in
19727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19728 *) ac_try_echo=$ac_try;;
19730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19731 (eval "$ac_compile") 2>conftest.er1
19733 grep -v '^ *+' conftest.er1 >conftest.err
19735 cat conftest.err >&5
19736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737 (exit $ac_status); } && {
19738 test -z "$ac_c_werror_flag" ||
19739 test ! -s conftest.err
19740 } && test -s conftest.$ac_objext; then
19743 echo "$as_me: failed program was:" >&5
19744 sed 's/^/| /' conftest.$ac_ext >&5
19746 ac_c_werror_flag=$ac_save_c_werror_flag
19748 cat >conftest.$ac_ext <<_ACEOF
19751 cat confdefs.h >>conftest.$ac_ext
19752 cat >>conftest.$ac_ext <<_ACEOF
19753 /* end confdefs.h. */
19763 rm -f conftest.$ac_objext
19764 if { (ac_try="$ac_compile"
19765 case "(($ac_try" in
19766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19767 *) ac_try_echo=$ac_try;;
19769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19770 (eval "$ac_compile") 2>conftest.er1
19772 grep -v '^ *+' conftest.er1 >conftest.err
19774 cat conftest.err >&5
19775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776 (exit $ac_status); } && {
19777 test -z "$ac_c_werror_flag" ||
19778 test ! -s conftest.err
19779 } && test -s conftest.$ac_objext; then
19780 ac_cv_prog_cc_g=yes
19782 echo "$as_me: failed program was:" >&5
19783 sed 's/^/| /' conftest.$ac_ext >&5
19788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19795 ac_c_werror_flag=$ac_save_c_werror_flag
19797 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19798 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
19799 if test "$ac_test_CFLAGS" = set; then
19800 CFLAGS=$ac_save_CFLAGS
19801 elif test $ac_cv_prog_cc_g = yes; then
19802 if test "$GCC" = yes; then
19808 if test "$GCC" = yes; then
19814 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
19815 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
19816 if test "${ac_cv_prog_cc_c89+set}" = set; then
19817 echo $ECHO_N "(cached) $ECHO_C" >&6
19819 ac_cv_prog_cc_c89=no
19821 cat >conftest.$ac_ext <<_ACEOF
19824 cat confdefs.h >>conftest.$ac_ext
19825 cat >>conftest.$ac_ext <<_ACEOF
19826 /* end confdefs.h. */
19827 #include <stdarg.h>
19829 #include <sys/types.h>
19830 #include <sys/stat.h>
19831 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19832 struct buf { int x; };
19833 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19834 static char *e (p, i)
19840 static char *f (char * (*g) (char **, int), char **p, ...)
19845 s = g (p, va_arg (v,int));
19850 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19851 function prototypes and stuff, but not '\xHH' hex character constants.
19852 These don't provoke an error unfortunately, instead are silently treated
19853 as 'x'. The following induces an error, until -std is added to get
19854 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
19855 array size at least. It's necessary to write '\x00'==0 to get something
19856 that's true only with -std. */
19857 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19859 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
19860 inside strings and character constants. */
19862 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
19864 int test (int i, double x);
19865 struct s1 {int (*f) (int a);};
19866 struct s2 {int (*f) (double a);};
19867 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19873 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19878 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
19879 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19881 CC="$ac_save_CC $ac_arg"
19882 rm -f conftest.$ac_objext
19883 if { (ac_try="$ac_compile"
19884 case "(($ac_try" in
19885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19886 *) ac_try_echo=$ac_try;;
19888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19889 (eval "$ac_compile") 2>conftest.er1
19891 grep -v '^ *+' conftest.er1 >conftest.err
19893 cat conftest.err >&5
19894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895 (exit $ac_status); } && {
19896 test -z "$ac_c_werror_flag" ||
19897 test ! -s conftest.err
19898 } && test -s conftest.$ac_objext; then
19899 ac_cv_prog_cc_c89=$ac_arg
19901 echo "$as_me: failed program was:" >&5
19902 sed 's/^/| /' conftest.$ac_ext >&5
19907 rm -f core conftest.err conftest.$ac_objext
19908 test "x$ac_cv_prog_cc_c89" != "xno" && break
19910 rm -f conftest.$ac_ext
19915 case "x$ac_cv_prog_cc_c89" in
19917 { echo "$as_me:$LINENO: result: none needed" >&5
19918 echo "${ECHO_T}none needed" >&6; } ;;
19920 { echo "$as_me:$LINENO: result: unsupported" >&5
19921 echo "${ECHO_T}unsupported" >&6; } ;;
19923 CC="$CC $ac_cv_prog_cc_c89"
19924 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
19925 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
19930 ac_cpp='$CPP $CPPFLAGS'
19931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19935 depcc="$CC" am_compiler_list=
19937 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19938 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
19939 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19940 echo $ECHO_N "(cached) $ECHO_C" >&6
19942 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19943 # We make a subdir and do the tests there. Otherwise we can end up
19944 # making bogus files that we don't know about and never remove. For
19945 # instance it was reported that on HP-UX the gcc test will end up
19946 # making a dummy file named `D' -- because `-MD' means `put the output
19949 # Copy depcomp to subdir because otherwise we won't find it if we're
19950 # using a relative directory.
19951 cp "$am_depcomp" conftest.dir
19953 # We will build objects and dependencies in a subdirectory because
19954 # it helps to detect inapplicable dependency modes. For instance
19955 # both Tru64's cc and ICC support -MD to output dependencies as a
19956 # side effect of compilation, but ICC will put the dependencies in
19957 # the current directory while Tru64 will put them in the object
19961 am_cv_CC_dependencies_compiler_type=none
19962 if test "$am_compiler_list" = ""; then
19963 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19965 for depmode in $am_compiler_list; do
19966 # Setup a source with many dependencies, because some compilers
19967 # like to wrap large dependency lists on column 80 (with \), and
19968 # we should not choose a depcomp mode which is confused by this.
19970 # We need to recreate these files for each test, as the compiler may
19971 # overwrite some of them when testing with obscure command lines.
19972 # This happens at least with the AIX C compiler.
19974 for i in 1 2 3 4 5 6; do
19975 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19976 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19977 # Solaris 8's {/usr,}/bin/sh.
19978 touch sub/conftst$i.h
19980 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19984 # after this tag, mechanisms are not by side-effect, so they'll
19985 # only be used when explicitly requested
19986 if test "x$enable_dependency_tracking" = xyes; then
19994 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19995 # mode. It turns out that the SunPro C++ compiler does not properly
19996 # handle `-M -o', and we need to detect this.
19997 if depmode=$depmode \
19998 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19999 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20000 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20001 >/dev/null 2>conftest.err &&
20002 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20003 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20004 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20005 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20006 # icc doesn't choke on unknown options, it will just issue warnings
20007 # or remarks (even with -Werror). So we grep stderr for any message
20008 # that says an option was ignored or not supported.
20009 # When given -MP, icc 7.0 and 7.1 complain thusly:
20010 # icc: Command line warning: ignoring option '-M'; no argument required
20011 # The diagnosis changed in icc 8.0:
20012 # icc: Command line remark: option '-MP' not supported
20013 if (grep 'ignoring option' conftest.err ||
20014 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20015 am_cv_CC_dependencies_compiler_type=$depmode
20022 rm -rf conftest.dir
20024 am_cv_CC_dependencies_compiler_type=none
20028 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20029 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
20030 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20033 test "x$enable_dependency_tracking" != xno \
20034 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20035 am__fastdepCC_TRUE=
20036 am__fastdepCC_FALSE='#'
20038 am__fastdepCC_TRUE='#'
20039 am__fastdepCC_FALSE=
20043 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
20044 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
20047 echo timestamp > conftest.file
20048 # Do `set' in a subshell so we don't clobber the current shell's
20049 # arguments. Must try -L first in case configure is actually a
20050 # symlink; some systems play weird games with the mod time of symlinks
20051 # (eg FreeBSD returns the mod time of the symlink's containing
20054 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
20055 if test "$*" = "X"; then
20057 set X `ls -t $srcdir/configure conftest.file`
20059 rm -f conftest.file
20060 if test "$*" != "X $srcdir/configure conftest.file" \
20061 && test "$*" != "X conftest.file $srcdir/configure"; then
20063 # If neither matched, then we have a broken ls. This can happen
20064 # if, for instance, CONFIG_SHELL is bash and it inherits a
20065 # broken ls alias from the environment. This has actually
20066 # happened. Such a system could not be considered "sane".
20067 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
20068 alias in your environment" >&5
20069 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
20070 alias in your environment" >&2;}
20071 { (exit 1); exit 1; }; }
20074 test "$2" = conftest.file
20080 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
20081 Check your system clock" >&5
20082 echo "$as_me: error: newly created file is older than distributed files!
20083 Check your system clock" >&2;}
20084 { (exit 1); exit 1; }; }
20086 { echo "$as_me:$LINENO: result: yes" >&5
20087 echo "${ECHO_T}yes" >&6; }
20088 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20089 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
20090 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
20091 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
20092 echo $ECHO_N "(cached) $ECHO_C" >&6
20094 cat >conftest.make <<\_ACEOF
20097 @echo '@@@%%%=$(MAKE)=@@@%%%'
20099 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20100 case `${MAKE-make} -f conftest.make 2>/dev/null` in
20101 *@@@%%%=?*=@@@%%%*)
20102 eval ac_cv_prog_make_${ac_make}_set=yes;;
20104 eval ac_cv_prog_make_${ac_make}_set=no;;
20106 rm -f conftest.make
20108 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
20109 { echo "$as_me:$LINENO: result: yes" >&5
20110 echo "${ECHO_T}yes" >&6; }
20113 { echo "$as_me:$LINENO: result: no" >&5
20114 echo "${ECHO_T}no" >&6; }
20115 SET_MAKE="MAKE=${MAKE-make}"
20119 { echo "$as_me:$LINENO: checking whether printf(\"%s\",NULL) works..." >&5
20120 echo $ECHO_N "checking whether printf(\"%s\",NULL) works...... $ECHO_C" >&6; }
20121 if test "$cross_compiling" = yes; then
20122 { echo "$as_me:$LINENO: result: assuming the worse in cross-compilation" >&5
20123 echo "${ECHO_T}assuming the worse in cross-compilation" >&6; }
20125 cat >conftest.$ac_ext <<_ACEOF
20128 cat confdefs.h >>conftest.$ac_ext
20129 cat >>conftest.$ac_ext <<_ACEOF
20130 /* end confdefs.h. */
20140 rm -f conftest$ac_exeext
20141 if { (ac_try="$ac_link"
20142 case "(($ac_try" in
20143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20144 *) ac_try_echo=$ac_try;;
20146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20147 (eval "$ac_link") 2>&5
20149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20151 { (case "(($ac_try" in
20152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20153 *) ac_try_echo=$ac_try;;
20155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20156 (eval "$ac_try") 2>&5
20158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159 (exit $ac_status); }; }; then
20161 cat >>confdefs.h <<\_ACEOF
20162 #define PRINTF_NULL_WORKING 1
20165 { echo "$as_me:$LINENO: result: yes" >&5
20166 echo "${ECHO_T}yes" >&6; }
20168 echo "$as_me: program exited with status $ac_status" >&5
20169 echo "$as_me: failed program was:" >&5
20170 sed 's/^/| /' conftest.$ac_ext >&5
20172 ( exit $ac_status )
20173 { echo "$as_me:$LINENO: result: no" >&5
20174 echo "${ECHO_T}no" >&6; }
20176 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20182 { echo "$as_me:$LINENO: checking for va_copy() function" >&5
20183 echo $ECHO_N "checking for va_copy() function... $ECHO_C" >&6; }
20184 if test "${ac_cv_va_copy+set}" = set; then
20185 echo $ECHO_N "(cached) $ECHO_C" >&6
20192 if test ".$ac_cv_va_copy" = .; then
20193 if test "$cross_compiling" = yes; then
20194 ac_cv_va_copy="C99"
20196 cat >conftest.$ac_ext <<_ACEOF
20199 cat confdefs.h >>conftest.$ac_ext
20200 cat >>conftest.$ac_ext <<_ACEOF
20201 /* end confdefs.h. */
20203 #include <stdlib.h>
20204 #include <stdarg.h>
20205 #include <string.h>
20206 #define DO_VA_COPY(d, s) va_copy((d), (s))
20207 void test(char *str, ...)
20212 DO_VA_COPY(ap2, ap);
20213 for (i = 1; i <= 9; i++) {
20214 int k = (int)va_arg(ap, int);
20218 DO_VA_COPY(ap, ap2);
20219 for (i = 1; i <= 9; i++) {
20220 int k = (int)va_arg(ap, int);
20226 int main(int argc, char *argv[])
20228 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20233 rm -f conftest$ac_exeext
20234 if { (ac_try="$ac_link"
20235 case "(($ac_try" in
20236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20237 *) ac_try_echo=$ac_try;;
20239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20240 (eval "$ac_link") 2>&5
20242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20243 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20244 { (case "(($ac_try" in
20245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20246 *) ac_try_echo=$ac_try;;
20248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20249 (eval "$ac_try") 2>&5
20251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20252 (exit $ac_status); }; }; then
20253 ac_cv_va_copy="C99"
20255 echo "$as_me: program exited with status $ac_status" >&5
20256 echo "$as_me: failed program was:" >&5
20257 sed 's/^/| /' conftest.$ac_ext >&5
20260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20269 if test ".$ac_cv_va_copy" = .; then
20270 if test "$cross_compiling" = yes; then
20271 ac_cv_va_copy="GCM"
20273 cat >conftest.$ac_ext <<_ACEOF
20276 cat confdefs.h >>conftest.$ac_ext
20277 cat >>conftest.$ac_ext <<_ACEOF
20278 /* end confdefs.h. */
20280 #include <stdlib.h>
20281 #include <stdarg.h>
20282 #include <string.h>
20283 #define DO_VA_COPY(d, s) VA_COPY((d), (s))
20284 void test(char *str, ...)
20289 DO_VA_COPY(ap2, ap);
20290 for (i = 1; i <= 9; i++) {
20291 int k = (int)va_arg(ap, int);
20295 DO_VA_COPY(ap, ap2);
20296 for (i = 1; i <= 9; i++) {
20297 int k = (int)va_arg(ap, int);
20303 int main(int argc, char *argv[])
20305 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20310 rm -f conftest$ac_exeext
20311 if { (ac_try="$ac_link"
20312 case "(($ac_try" in
20313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20314 *) ac_try_echo=$ac_try;;
20316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20317 (eval "$ac_link") 2>&5
20319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20321 { (case "(($ac_try" in
20322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20323 *) ac_try_echo=$ac_try;;
20325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20326 (eval "$ac_try") 2>&5
20328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329 (exit $ac_status); }; }; then
20330 ac_cv_va_copy="GCM"
20332 echo "$as_me: program exited with status $ac_status" >&5
20333 echo "$as_me: failed program was:" >&5
20334 sed 's/^/| /' conftest.$ac_ext >&5
20337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20346 if test ".$ac_cv_va_copy" = .; then
20347 if test "$cross_compiling" = yes; then
20348 ac_cv_va_copy="GCH"
20350 cat >conftest.$ac_ext <<_ACEOF
20353 cat confdefs.h >>conftest.$ac_ext
20354 cat >>conftest.$ac_ext <<_ACEOF
20355 /* end confdefs.h. */
20357 #include <stdlib.h>
20358 #include <stdarg.h>
20359 #include <string.h>
20360 #define DO_VA_COPY(d, s) __va_copy((d), (s))
20361 void test(char *str, ...)
20366 DO_VA_COPY(ap2, ap);
20367 for (i = 1; i <= 9; i++) {
20368 int k = (int)va_arg(ap, int);
20372 DO_VA_COPY(ap, ap2);
20373 for (i = 1; i <= 9; i++) {
20374 int k = (int)va_arg(ap, int);
20380 int main(int argc, char *argv[])
20382 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20387 rm -f conftest$ac_exeext
20388 if { (ac_try="$ac_link"
20389 case "(($ac_try" in
20390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20391 *) ac_try_echo=$ac_try;;
20393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20394 (eval "$ac_link") 2>&5
20396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20397 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20398 { (case "(($ac_try" in
20399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20400 *) ac_try_echo=$ac_try;;
20402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20403 (eval "$ac_try") 2>&5
20405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20406 (exit $ac_status); }; }; then
20407 ac_cv_va_copy="GCH"
20409 echo "$as_me: program exited with status $ac_status" >&5
20410 echo "$as_me: failed program was:" >&5
20411 sed 's/^/| /' conftest.$ac_ext >&5
20414 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20423 if test ".$ac_cv_va_copy" = .; then
20424 if test "$cross_compiling" = yes; then
20425 ac_cv_va_copy="GCB"
20427 cat >conftest.$ac_ext <<_ACEOF
20430 cat confdefs.h >>conftest.$ac_ext
20431 cat >>conftest.$ac_ext <<_ACEOF
20432 /* end confdefs.h. */
20434 #include <stdlib.h>
20435 #include <stdarg.h>
20436 #include <string.h>
20437 #define DO_VA_COPY(d, s) __builtin_va_copy((d), (s))
20438 void test(char *str, ...)
20443 DO_VA_COPY(ap2, ap);
20444 for (i = 1; i <= 9; i++) {
20445 int k = (int)va_arg(ap, int);
20449 DO_VA_COPY(ap, ap2);
20450 for (i = 1; i <= 9; i++) {
20451 int k = (int)va_arg(ap, int);
20457 int main(int argc, char *argv[])
20459 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20464 rm -f conftest$ac_exeext
20465 if { (ac_try="$ac_link"
20466 case "(($ac_try" in
20467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20468 *) ac_try_echo=$ac_try;;
20470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20471 (eval "$ac_link") 2>&5
20473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20475 { (case "(($ac_try" in
20476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20477 *) ac_try_echo=$ac_try;;
20479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20480 (eval "$ac_try") 2>&5
20482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20483 (exit $ac_status); }; }; then
20484 ac_cv_va_copy="GCB"
20486 echo "$as_me: program exited with status $ac_status" >&5
20487 echo "$as_me: failed program was:" >&5
20488 sed 's/^/| /' conftest.$ac_ext >&5
20491 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20500 if test ".$ac_cv_va_copy" = .; then
20501 if test "$cross_compiling" = yes; then
20502 ac_cv_va_copy="ASS"
20504 cat >conftest.$ac_ext <<_ACEOF
20507 cat confdefs.h >>conftest.$ac_ext
20508 cat >>conftest.$ac_ext <<_ACEOF
20509 /* end confdefs.h. */
20511 #include <stdlib.h>
20512 #include <stdarg.h>
20513 #include <string.h>
20514 #define DO_VA_COPY(d, s) do { (d) = (s); } while (0)
20515 void test(char *str, ...)
20520 DO_VA_COPY(ap2, ap);
20521 for (i = 1; i <= 9; i++) {
20522 int k = (int)va_arg(ap, int);
20526 DO_VA_COPY(ap, ap2);
20527 for (i = 1; i <= 9; i++) {
20528 int k = (int)va_arg(ap, int);
20534 int main(int argc, char *argv[])
20536 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20541 rm -f conftest$ac_exeext
20542 if { (ac_try="$ac_link"
20543 case "(($ac_try" in
20544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20545 *) ac_try_echo=$ac_try;;
20547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20548 (eval "$ac_link") 2>&5
20550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20551 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20552 { (case "(($ac_try" in
20553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20554 *) ac_try_echo=$ac_try;;
20556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20557 (eval "$ac_try") 2>&5
20559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560 (exit $ac_status); }; }; then
20561 ac_cv_va_copy="ASS"
20563 echo "$as_me: program exited with status $ac_status" >&5
20564 echo "$as_me: failed program was:" >&5
20565 sed 's/^/| /' conftest.$ac_ext >&5
20568 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20577 if test ".$ac_cv_va_copy" = .; then
20578 if test "$cross_compiling" = yes; then
20579 ac_cv_va_copy="ASP"
20581 cat >conftest.$ac_ext <<_ACEOF
20584 cat confdefs.h >>conftest.$ac_ext
20585 cat >>conftest.$ac_ext <<_ACEOF
20586 /* end confdefs.h. */
20588 #include <stdlib.h>
20589 #include <stdarg.h>
20590 #include <string.h>
20591 #define DO_VA_COPY(d, s) do { *(d) = *(s); } while (0)
20592 void test(char *str, ...)
20597 DO_VA_COPY(ap2, ap);
20598 for (i = 1; i <= 9; i++) {
20599 int k = (int)va_arg(ap, int);
20603 DO_VA_COPY(ap, ap2);
20604 for (i = 1; i <= 9; i++) {
20605 int k = (int)va_arg(ap, int);
20611 int main(int argc, char *argv[])
20613 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20618 rm -f conftest$ac_exeext
20619 if { (ac_try="$ac_link"
20620 case "(($ac_try" in
20621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20622 *) ac_try_echo=$ac_try;;
20624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20625 (eval "$ac_link") 2>&5
20627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20629 { (case "(($ac_try" in
20630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20631 *) ac_try_echo=$ac_try;;
20633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20634 (eval "$ac_try") 2>&5
20636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637 (exit $ac_status); }; }; then
20638 ac_cv_va_copy="ASP"
20640 echo "$as_me: program exited with status $ac_status" >&5
20641 echo "$as_me: failed program was:" >&5
20642 sed 's/^/| /' conftest.$ac_ext >&5
20645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20654 if test ".$ac_cv_va_copy" = .; then
20655 if test "$cross_compiling" = yes; then
20656 ac_cv_va_copy="CPS"
20658 cat >conftest.$ac_ext <<_ACEOF
20661 cat confdefs.h >>conftest.$ac_ext
20662 cat >>conftest.$ac_ext <<_ACEOF
20663 /* end confdefs.h. */
20665 #include <stdlib.h>
20666 #include <stdarg.h>
20667 #include <string.h>
20668 #define DO_VA_COPY(d, s) memcpy((void *)&(d), (void *)&(s))
20669 void test(char *str, ...)
20674 DO_VA_COPY(ap2, ap);
20675 for (i = 1; i <= 9; i++) {
20676 int k = (int)va_arg(ap, int);
20680 DO_VA_COPY(ap, ap2);
20681 for (i = 1; i <= 9; i++) {
20682 int k = (int)va_arg(ap, int);
20688 int main(int argc, char *argv[])
20690 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20695 rm -f conftest$ac_exeext
20696 if { (ac_try="$ac_link"
20697 case "(($ac_try" in
20698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20699 *) ac_try_echo=$ac_try;;
20701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20702 (eval "$ac_link") 2>&5
20704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20706 { (case "(($ac_try" in
20707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20708 *) ac_try_echo=$ac_try;;
20710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20711 (eval "$ac_try") 2>&5
20713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714 (exit $ac_status); }; }; then
20715 ac_cv_va_copy="CPS"
20717 echo "$as_me: program exited with status $ac_status" >&5
20718 echo "$as_me: failed program was:" >&5
20719 sed 's/^/| /' conftest.$ac_ext >&5
20722 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20731 if test ".$ac_cv_va_copy" = .; then
20732 if test "$cross_compiling" = yes; then
20733 ac_cv_va_copy="CPP"
20735 cat >conftest.$ac_ext <<_ACEOF
20738 cat confdefs.h >>conftest.$ac_ext
20739 cat >>conftest.$ac_ext <<_ACEOF
20740 /* end confdefs.h. */
20742 #include <stdlib.h>
20743 #include <stdarg.h>
20744 #include <string.h>
20745 #define DO_VA_COPY(d, s) memcpy((void *)(d), (void *)(s))
20746 void test(char *str, ...)
20751 DO_VA_COPY(ap2, ap);
20752 for (i = 1; i <= 9; i++) {
20753 int k = (int)va_arg(ap, int);
20757 DO_VA_COPY(ap, ap2);
20758 for (i = 1; i <= 9; i++) {
20759 int k = (int)va_arg(ap, int);
20765 int main(int argc, char *argv[])
20767 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20772 rm -f conftest$ac_exeext
20773 if { (ac_try="$ac_link"
20774 case "(($ac_try" in
20775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20776 *) ac_try_echo=$ac_try;;
20778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20779 (eval "$ac_link") 2>&5
20781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20782 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20783 { (case "(($ac_try" in
20784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20785 *) ac_try_echo=$ac_try;;
20787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20788 (eval "$ac_try") 2>&5
20790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20791 (exit $ac_status); }; }; then
20792 ac_cv_va_copy="CPP"
20794 echo "$as_me: program exited with status $ac_status" >&5
20795 echo "$as_me: failed program was:" >&5
20796 sed 's/^/| /' conftest.$ac_ext >&5
20799 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20805 if test ".$ac_cv_va_copy" = .; then
20806 { { echo "$as_me:$LINENO: error: no working implementation found" >&5
20807 echo "$as_me: error: no working implementation found" >&2;}
20808 { (exit 1); exit 1; }; }
20813 if test ".$ac_cv_va_copy" = ".C99"; then
20815 cat >>confdefs.h <<\_ACEOF
20816 #define HAVE_VA_COPY 1
20821 cat >>confdefs.h <<_ACEOF
20822 #define __VA_COPY_USE __VA_COPY_USE_$ac_cv_va_copy
20827 if test ".$ac_cv_va_copy" = ".C99"; then
20828 { echo "$as_me:$LINENO: result: yes" >&5
20829 echo "${ECHO_T}yes" >&6; }
20831 { echo "$as_me:$LINENO: result: no (using fallback implementation)" >&5
20832 echo "${ECHO_T}no (using fallback implementation)" >&6; }
20836 # Checks for header files.
20837 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20838 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20839 if test "${ac_cv_header_stdc+set}" = set; then
20840 echo $ECHO_N "(cached) $ECHO_C" >&6
20842 cat >conftest.$ac_ext <<_ACEOF
20845 cat confdefs.h >>conftest.$ac_ext
20846 cat >>conftest.$ac_ext <<_ACEOF
20847 /* end confdefs.h. */
20848 #include <stdlib.h>
20849 #include <stdarg.h>
20850 #include <string.h>
20861 rm -f conftest.$ac_objext
20862 if { (ac_try="$ac_compile"
20863 case "(($ac_try" in
20864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20865 *) ac_try_echo=$ac_try;;
20867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20868 (eval "$ac_compile") 2>conftest.er1
20870 grep -v '^ *+' conftest.er1 >conftest.err
20872 cat conftest.err >&5
20873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874 (exit $ac_status); } && {
20875 test -z "$ac_c_werror_flag" ||
20876 test ! -s conftest.err
20877 } && test -s conftest.$ac_objext; then
20878 ac_cv_header_stdc=yes
20880 echo "$as_me: failed program was:" >&5
20881 sed 's/^/| /' conftest.$ac_ext >&5
20883 ac_cv_header_stdc=no
20886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20888 if test $ac_cv_header_stdc = yes; then
20889 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20890 cat >conftest.$ac_ext <<_ACEOF
20893 cat confdefs.h >>conftest.$ac_ext
20894 cat >>conftest.$ac_ext <<_ACEOF
20895 /* end confdefs.h. */
20896 #include <string.h>
20899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20900 $EGREP "memchr" >/dev/null 2>&1; then
20903 ac_cv_header_stdc=no
20909 if test $ac_cv_header_stdc = yes; then
20910 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20911 cat >conftest.$ac_ext <<_ACEOF
20914 cat confdefs.h >>conftest.$ac_ext
20915 cat >>conftest.$ac_ext <<_ACEOF
20916 /* end confdefs.h. */
20917 #include <stdlib.h>
20920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20921 $EGREP "free" >/dev/null 2>&1; then
20924 ac_cv_header_stdc=no
20930 if test $ac_cv_header_stdc = yes; then
20931 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20932 if test "$cross_compiling" = yes; then
20935 cat >conftest.$ac_ext <<_ACEOF
20938 cat confdefs.h >>conftest.$ac_ext
20939 cat >>conftest.$ac_ext <<_ACEOF
20940 /* end confdefs.h. */
20942 #include <stdlib.h>
20943 #if ((' ' & 0x0FF) == 0x020)
20944 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20945 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20947 # define ISLOWER(c) \
20948 (('a' <= (c) && (c) <= 'i') \
20949 || ('j' <= (c) && (c) <= 'r') \
20950 || ('s' <= (c) && (c) <= 'z'))
20951 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20954 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20959 for (i = 0; i < 256; i++)
20960 if (XOR (islower (i), ISLOWER (i))
20961 || toupper (i) != TOUPPER (i))
20966 rm -f conftest$ac_exeext
20967 if { (ac_try="$ac_link"
20968 case "(($ac_try" in
20969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20970 *) ac_try_echo=$ac_try;;
20972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20973 (eval "$ac_link") 2>&5
20975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20976 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20977 { (case "(($ac_try" in
20978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20979 *) ac_try_echo=$ac_try;;
20981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20982 (eval "$ac_try") 2>&5
20984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20985 (exit $ac_status); }; }; then
20988 echo "$as_me: program exited with status $ac_status" >&5
20989 echo "$as_me: failed program was:" >&5
20990 sed 's/^/| /' conftest.$ac_ext >&5
20992 ( exit $ac_status )
20993 ac_cv_header_stdc=no
20995 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21001 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21002 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21003 if test $ac_cv_header_stdc = yes; then
21005 cat >>confdefs.h <<\_ACEOF
21006 #define STDC_HEADERS 1
21011 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21012 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21013 if test "${ac_cv_header_time+set}" = set; then
21014 echo $ECHO_N "(cached) $ECHO_C" >&6
21016 cat >conftest.$ac_ext <<_ACEOF
21019 cat confdefs.h >>conftest.$ac_ext
21020 cat >>conftest.$ac_ext <<_ACEOF
21021 /* end confdefs.h. */
21022 #include <sys/types.h>
21023 #include <sys/time.h>
21029 if ((struct tm *) 0)
21035 rm -f conftest.$ac_objext
21036 if { (ac_try="$ac_compile"
21037 case "(($ac_try" in
21038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21039 *) ac_try_echo=$ac_try;;
21041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21042 (eval "$ac_compile") 2>conftest.er1
21044 grep -v '^ *+' conftest.er1 >conftest.err
21046 cat conftest.err >&5
21047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21048 (exit $ac_status); } && {
21049 test -z "$ac_c_werror_flag" ||
21050 test ! -s conftest.err
21051 } && test -s conftest.$ac_objext; then
21052 ac_cv_header_time=yes
21054 echo "$as_me: failed program was:" >&5
21055 sed 's/^/| /' conftest.$ac_ext >&5
21057 ac_cv_header_time=no
21060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21062 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21063 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21064 if test $ac_cv_header_time = yes; then
21066 cat >>confdefs.h <<\_ACEOF
21067 #define TIME_WITH_SYS_TIME 1
21082 for ac_header in sys/socket.h \
21084 windows.h winsock.h winsock2.h \
21090 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21091 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21092 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21095 echo $ECHO_N "(cached) $ECHO_C" >&6
21097 ac_res=`eval echo '${'$as_ac_Header'}'`
21098 { echo "$as_me:$LINENO: result: $ac_res" >&5
21099 echo "${ECHO_T}$ac_res" >&6; }
21101 # Is the header compilable?
21102 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21103 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21104 cat >conftest.$ac_ext <<_ACEOF
21107 cat confdefs.h >>conftest.$ac_ext
21108 cat >>conftest.$ac_ext <<_ACEOF
21109 /* end confdefs.h. */
21110 $ac_includes_default
21111 #include <$ac_header>
21113 rm -f conftest.$ac_objext
21114 if { (ac_try="$ac_compile"
21115 case "(($ac_try" in
21116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21117 *) ac_try_echo=$ac_try;;
21119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21120 (eval "$ac_compile") 2>conftest.er1
21122 grep -v '^ *+' conftest.er1 >conftest.err
21124 cat conftest.err >&5
21125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126 (exit $ac_status); } && {
21127 test -z "$ac_c_werror_flag" ||
21128 test ! -s conftest.err
21129 } && test -s conftest.$ac_objext; then
21130 ac_header_compiler=yes
21132 echo "$as_me: failed program was:" >&5
21133 sed 's/^/| /' conftest.$ac_ext >&5
21135 ac_header_compiler=no
21138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21139 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21140 echo "${ECHO_T}$ac_header_compiler" >&6; }
21142 # Is the header present?
21143 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21144 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21145 cat >conftest.$ac_ext <<_ACEOF
21148 cat confdefs.h >>conftest.$ac_ext
21149 cat >>conftest.$ac_ext <<_ACEOF
21150 /* end confdefs.h. */
21151 #include <$ac_header>
21153 if { (ac_try="$ac_cpp conftest.$ac_ext"
21154 case "(($ac_try" in
21155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21156 *) ac_try_echo=$ac_try;;
21158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21159 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21161 grep -v '^ *+' conftest.er1 >conftest.err
21163 cat conftest.err >&5
21164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165 (exit $ac_status); } >/dev/null && {
21166 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21167 test ! -s conftest.err
21169 ac_header_preproc=yes
21171 echo "$as_me: failed program was:" >&5
21172 sed 's/^/| /' conftest.$ac_ext >&5
21174 ac_header_preproc=no
21177 rm -f conftest.err conftest.$ac_ext
21178 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21179 echo "${ECHO_T}$ac_header_preproc" >&6; }
21181 # So? What about this header?
21182 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21184 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21185 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21186 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21187 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21188 ac_header_preproc=yes
21191 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21192 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21193 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21194 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21195 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21196 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21197 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21198 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21200 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21201 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21202 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21204 ## -------------------------------------------------- ##
21205 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
21206 ## -------------------------------------------------- ##
21208 ) | sed "s/^/$as_me: WARNING: /" >&2
21211 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21213 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21214 echo $ECHO_N "(cached) $ECHO_C" >&6
21216 eval "$as_ac_Header=\$ac_header_preproc"
21218 ac_res=`eval echo '${'$as_ac_Header'}'`
21219 { echo "$as_me:$LINENO: result: $ac_res" >&5
21220 echo "${ECHO_T}$ac_res" >&6; }
21223 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21224 cat >>confdefs.h <<_ACEOF
21225 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21240 for ac_func in gettimeofday usleep \
21248 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21249 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21250 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21251 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21252 echo $ECHO_N "(cached) $ECHO_C" >&6
21254 cat >conftest.$ac_ext <<_ACEOF
21257 cat confdefs.h >>conftest.$ac_ext
21258 cat >>conftest.$ac_ext <<_ACEOF
21259 /* end confdefs.h. */
21260 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21261 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21262 #define $ac_func innocuous_$ac_func
21264 /* System header to define __stub macros and hopefully few prototypes,
21265 which can conflict with char $ac_func (); below.
21266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21267 <limits.h> exists even on freestanding compilers. */
21270 # include <limits.h>
21272 # include <assert.h>
21277 /* Override any GCC internal prototype to avoid an error.
21278 Use char because int might match the return type of a GCC
21279 builtin and then its argument prototype would still apply. */
21284 /* The GNU C library defines this for functions which it implements
21285 to always fail with ENOSYS. Some functions are actually named
21286 something starting with __ and the normal name is an alias. */
21287 #if defined __stub_$ac_func || defined __stub___$ac_func
21294 return $ac_func ();
21299 rm -f conftest.$ac_objext conftest$ac_exeext
21300 if { (ac_try="$ac_link"
21301 case "(($ac_try" in
21302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21303 *) ac_try_echo=$ac_try;;
21305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21306 (eval "$ac_link") 2>conftest.er1
21308 grep -v '^ *+' conftest.er1 >conftest.err
21310 cat conftest.err >&5
21311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21312 (exit $ac_status); } && {
21313 test -z "$ac_c_werror_flag" ||
21314 test ! -s conftest.err
21315 } && test -s conftest$ac_exeext &&
21316 $as_test_x conftest$ac_exeext; then
21317 eval "$as_ac_var=yes"
21319 echo "$as_me: failed program was:" >&5
21320 sed 's/^/| /' conftest.$ac_ext >&5
21322 eval "$as_ac_var=no"
21325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21326 conftest$ac_exeext conftest.$ac_ext
21328 ac_res=`eval echo '${'$as_ac_var'}'`
21329 { echo "$as_me:$LINENO: result: $ac_res" >&5
21330 echo "${ECHO_T}$ac_res" >&6; }
21331 if test `eval echo '${'$as_ac_var'}'` = yes; then
21332 cat >>confdefs.h <<_ACEOF
21333 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21340 # check for a working snprintf (or use xbt/snprintf.c, which comes from http://www.ijs.si/software/snprintf/)
21343 for ac_func in snprintf vsnprintf
21345 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21346 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21347 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21348 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21349 echo $ECHO_N "(cached) $ECHO_C" >&6
21351 cat >conftest.$ac_ext <<_ACEOF
21354 cat confdefs.h >>conftest.$ac_ext
21355 cat >>conftest.$ac_ext <<_ACEOF
21356 /* end confdefs.h. */
21357 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21358 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21359 #define $ac_func innocuous_$ac_func
21361 /* System header to define __stub macros and hopefully few prototypes,
21362 which can conflict with char $ac_func (); below.
21363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21364 <limits.h> exists even on freestanding compilers. */
21367 # include <limits.h>
21369 # include <assert.h>
21374 /* Override any GCC internal prototype to avoid an error.
21375 Use char because int might match the return type of a GCC
21376 builtin and then its argument prototype would still apply. */
21381 /* The GNU C library defines this for functions which it implements
21382 to always fail with ENOSYS. Some functions are actually named
21383 something starting with __ and the normal name is an alias. */
21384 #if defined __stub_$ac_func || defined __stub___$ac_func
21391 return $ac_func ();
21396 rm -f conftest.$ac_objext conftest$ac_exeext
21397 if { (ac_try="$ac_link"
21398 case "(($ac_try" in
21399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21400 *) ac_try_echo=$ac_try;;
21402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21403 (eval "$ac_link") 2>conftest.er1
21405 grep -v '^ *+' conftest.er1 >conftest.err
21407 cat conftest.err >&5
21408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21409 (exit $ac_status); } && {
21410 test -z "$ac_c_werror_flag" ||
21411 test ! -s conftest.err
21412 } && test -s conftest$ac_exeext &&
21413 $as_test_x conftest$ac_exeext; then
21414 eval "$as_ac_var=yes"
21416 echo "$as_me: failed program was:" >&5
21417 sed 's/^/| /' conftest.$ac_ext >&5
21419 eval "$as_ac_var=no"
21422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21423 conftest$ac_exeext conftest.$ac_ext
21425 ac_res=`eval echo '${'$as_ac_var'}'`
21426 { echo "$as_me:$LINENO: result: $ac_res" >&5
21427 echo "${ECHO_T}$ac_res" >&6; }
21428 if test `eval echo '${'$as_ac_var'}'` = yes; then
21429 cat >>confdefs.h <<_ACEOF
21430 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21436 { echo "$as_me:$LINENO: checking for working snprintf" >&5
21437 echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6; }
21438 if test "${ac_cv_have_working_snprintf+set}" = set; then
21439 echo $ECHO_N "(cached) $ECHO_C" >&6
21441 if test "$cross_compiling" = yes; then
21442 ac_cv_have_working_snprintf=cross
21444 cat >conftest.$ac_ext <<_ACEOF
21447 cat confdefs.h >>conftest.$ac_ext
21448 cat >>conftest.$ac_ext <<_ACEOF
21449 /* end confdefs.h. */
21454 char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
21455 char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
21457 i = snprintf (bufs, 2, "%s", "111");
21458 if (strcmp (bufs, "1")) exit (1);
21459 if (i != 3) exit (1);
21460 i = snprintf (bufd, 2, "%d", 111);
21461 if (strcmp (bufd, "1")) exit (1);
21462 if (i != 3) exit (1);
21466 rm -f conftest$ac_exeext
21467 if { (ac_try="$ac_link"
21468 case "(($ac_try" in
21469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21470 *) ac_try_echo=$ac_try;;
21472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21473 (eval "$ac_link") 2>&5
21475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21476 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21477 { (case "(($ac_try" in
21478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21479 *) ac_try_echo=$ac_try;;
21481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21482 (eval "$ac_try") 2>&5
21484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21485 (exit $ac_status); }; }; then
21486 ac_cv_have_working_snprintf=yes
21488 echo "$as_me: program exited with status $ac_status" >&5
21489 echo "$as_me: failed program was:" >&5
21490 sed 's/^/| /' conftest.$ac_ext >&5
21492 ( exit $ac_status )
21493 ac_cv_have_working_snprintf=no
21495 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21501 { echo "$as_me:$LINENO: result: $ac_cv_have_working_snprintf" >&5
21502 echo "${ECHO_T}$ac_cv_have_working_snprintf" >&6; }
21503 { echo "$as_me:$LINENO: checking for working vsnprintf" >&5
21504 echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6; }
21505 if test "${ac_cv_have_working_vsnprintf+set}" = set; then
21506 echo $ECHO_N "(cached) $ECHO_C" >&6
21508 if test "$cross_compiling" = yes; then
21509 ac_cv_have_working_vsnprintf=cross
21511 cat >conftest.$ac_ext <<_ACEOF
21514 cat confdefs.h >>conftest.$ac_ext
21515 cat >>conftest.$ac_ext <<_ACEOF
21516 /* end confdefs.h. */
21518 #include <stdarg.h>
21520 int my_vsnprintf (char *buf, const char *tmpl, ...)
21524 va_start (args, tmpl);
21525 i = vsnprintf (buf, 2, tmpl, args);
21532 char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
21533 char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
21535 i = my_vsnprintf (bufs, "%s", "111");
21536 if (strcmp (bufs, "1")) exit (1);
21537 if (i != 3) exit (1);
21538 i = my_vsnprintf (bufd, "%d", 111);
21539 if (strcmp (bufd, "1")) exit (1);
21540 if (i != 3) exit (1);
21544 rm -f conftest$ac_exeext
21545 if { (ac_try="$ac_link"
21546 case "(($ac_try" in
21547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21548 *) ac_try_echo=$ac_try;;
21550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21551 (eval "$ac_link") 2>&5
21553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21555 { (case "(($ac_try" in
21556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21557 *) ac_try_echo=$ac_try;;
21559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21560 (eval "$ac_try") 2>&5
21562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21563 (exit $ac_status); }; }; then
21564 ac_cv_have_working_vsnprintf=yes
21566 echo "$as_me: program exited with status $ac_status" >&5
21567 echo "$as_me: failed program was:" >&5
21568 sed 's/^/| /' conftest.$ac_ext >&5
21570 ( exit $ac_status )
21571 ac_cv_have_working_vsnprintf=no
21573 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21579 { echo "$as_me:$LINENO: result: $ac_cv_have_working_vsnprintf" >&5
21580 echo "${ECHO_T}$ac_cv_have_working_vsnprintf" >&6; }
21581 if test x$ac_cv_have_working_snprintf$ac_cv_have_working_vsnprintf != "xyesyes"; then
21582 case " $LIBOBJS " in
21583 *" snprintf.$ac_objext "* ) ;;
21584 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
21588 { echo "$as_me:$LINENO: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&5
21589 echo "$as_me: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&2;}
21591 cat >>confdefs.h <<\_ACEOF
21592 #define PREFER_PORTABLE_SNPRINTF 1
21596 # check for asprintf function familly (or request the replacements from xbt/snprintf.c)
21597 { echo "$as_me:$LINENO: checking for asprintf" >&5
21598 echo $ECHO_N "checking for asprintf... $ECHO_C" >&6; }
21599 if test "${ac_cv_func_asprintf+set}" = set; then
21600 echo $ECHO_N "(cached) $ECHO_C" >&6
21602 cat >conftest.$ac_ext <<_ACEOF
21605 cat confdefs.h >>conftest.$ac_ext
21606 cat >>conftest.$ac_ext <<_ACEOF
21607 /* end confdefs.h. */
21608 /* Define asprintf to an innocuous variant, in case <limits.h> declares asprintf.
21609 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21610 #define asprintf innocuous_asprintf
21612 /* System header to define __stub macros and hopefully few prototypes,
21613 which can conflict with char asprintf (); below.
21614 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21615 <limits.h> exists even on freestanding compilers. */
21618 # include <limits.h>
21620 # include <assert.h>
21625 /* Override any GCC internal prototype to avoid an error.
21626 Use char because int might match the return type of a GCC
21627 builtin and then its argument prototype would still apply. */
21632 /* The GNU C library defines this for functions which it implements
21633 to always fail with ENOSYS. Some functions are actually named
21634 something starting with __ and the normal name is an alias. */
21635 #if defined __stub_asprintf || defined __stub___asprintf
21642 return asprintf ();
21647 rm -f conftest.$ac_objext conftest$ac_exeext
21648 if { (ac_try="$ac_link"
21649 case "(($ac_try" in
21650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21651 *) ac_try_echo=$ac_try;;
21653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21654 (eval "$ac_link") 2>conftest.er1
21656 grep -v '^ *+' conftest.er1 >conftest.err
21658 cat conftest.err >&5
21659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21660 (exit $ac_status); } && {
21661 test -z "$ac_c_werror_flag" ||
21662 test ! -s conftest.err
21663 } && test -s conftest$ac_exeext &&
21664 $as_test_x conftest$ac_exeext; then
21665 ac_cv_func_asprintf=yes
21667 echo "$as_me: failed program was:" >&5
21668 sed 's/^/| /' conftest.$ac_ext >&5
21670 ac_cv_func_asprintf=no
21673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21674 conftest$ac_exeext conftest.$ac_ext
21676 { echo "$as_me:$LINENO: result: $ac_cv_func_asprintf" >&5
21677 echo "${ECHO_T}$ac_cv_func_asprintf" >&6; }
21678 if test $ac_cv_func_asprintf = yes; then
21682 cat >>confdefs.h <<\_ACEOF
21683 #define NEED_ASPRINTF 1
21688 { echo "$as_me:$LINENO: checking for vasprintf" >&5
21689 echo $ECHO_N "checking for vasprintf... $ECHO_C" >&6; }
21690 if test "${ac_cv_func_vasprintf+set}" = set; then
21691 echo $ECHO_N "(cached) $ECHO_C" >&6
21693 cat >conftest.$ac_ext <<_ACEOF
21696 cat confdefs.h >>conftest.$ac_ext
21697 cat >>conftest.$ac_ext <<_ACEOF
21698 /* end confdefs.h. */
21699 /* Define vasprintf to an innocuous variant, in case <limits.h> declares vasprintf.
21700 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21701 #define vasprintf innocuous_vasprintf
21703 /* System header to define __stub macros and hopefully few prototypes,
21704 which can conflict with char vasprintf (); below.
21705 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21706 <limits.h> exists even on freestanding compilers. */
21709 # include <limits.h>
21711 # include <assert.h>
21716 /* Override any GCC internal prototype to avoid an error.
21717 Use char because int might match the return type of a GCC
21718 builtin and then its argument prototype would still apply. */
21723 /* The GNU C library defines this for functions which it implements
21724 to always fail with ENOSYS. Some functions are actually named
21725 something starting with __ and the normal name is an alias. */
21726 #if defined __stub_vasprintf || defined __stub___vasprintf
21733 return vasprintf ();
21738 rm -f conftest.$ac_objext conftest$ac_exeext
21739 if { (ac_try="$ac_link"
21740 case "(($ac_try" in
21741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21742 *) ac_try_echo=$ac_try;;
21744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21745 (eval "$ac_link") 2>conftest.er1
21747 grep -v '^ *+' conftest.er1 >conftest.err
21749 cat conftest.err >&5
21750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21751 (exit $ac_status); } && {
21752 test -z "$ac_c_werror_flag" ||
21753 test ! -s conftest.err
21754 } && test -s conftest$ac_exeext &&
21755 $as_test_x conftest$ac_exeext; then
21756 ac_cv_func_vasprintf=yes
21758 echo "$as_me: failed program was:" >&5
21759 sed 's/^/| /' conftest.$ac_ext >&5
21761 ac_cv_func_vasprintf=no
21764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21765 conftest$ac_exeext conftest.$ac_ext
21767 { echo "$as_me:$LINENO: result: $ac_cv_func_vasprintf" >&5
21768 echo "${ECHO_T}$ac_cv_func_vasprintf" >&6; }
21769 if test $ac_cv_func_vasprintf = yes; then
21773 cat >>confdefs.h <<\_ACEOF
21774 #define NEED_VASPRINTF 1
21780 # Checks for typedefs, structures, and compiler characteristics.
21781 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21782 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21783 if test "${ac_cv_c_const+set}" = set; then
21784 echo $ECHO_N "(cached) $ECHO_C" >&6
21786 cat >conftest.$ac_ext <<_ACEOF
21789 cat confdefs.h >>conftest.$ac_ext
21790 cat >>conftest.$ac_ext <<_ACEOF
21791 /* end confdefs.h. */
21796 /* FIXME: Include the comments suggested by Paul. */
21797 #ifndef __cplusplus
21798 /* Ultrix mips cc rejects this. */
21799 typedef int charset[2];
21801 /* SunOS 4.1.1 cc rejects this. */
21802 char const *const *pcpcc;
21804 /* NEC SVR4.0.2 mips cc rejects this. */
21805 struct point {int x, y;};
21806 static struct point const zero = {0,0};
21807 /* AIX XL C 1.02.0.0 rejects this.
21808 It does not let you subtract one const X* pointer from another in
21809 an arm of an if-expression whose if-part is not a constant
21811 const char *g = "string";
21812 pcpcc = &g + (g ? g-g : 0);
21813 /* HPUX 7.0 cc rejects these. */
21815 ppc = (char**) pcpcc;
21816 pcpcc = (char const *const *) ppc;
21817 { /* SCO 3.2v4 cc rejects this. */
21819 char const *s = 0 ? (char *) 0 : (char const *) 0;
21824 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21825 int x[] = {25, 17};
21826 const int *foo = &x[0];
21829 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21830 typedef const int *iptr;
21834 { /* AIX XL C 1.02.0.0 rejects this saying
21835 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21836 struct s { int j; const int *ap[3]; };
21837 struct s *b; b->j = 5;
21839 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21840 const int foo = 10;
21841 if (!foo) return 0;
21843 return !cs[0] && !zero.x;
21850 rm -f conftest.$ac_objext
21851 if { (ac_try="$ac_compile"
21852 case "(($ac_try" in
21853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21854 *) ac_try_echo=$ac_try;;
21856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21857 (eval "$ac_compile") 2>conftest.er1
21859 grep -v '^ *+' conftest.er1 >conftest.err
21861 cat conftest.err >&5
21862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21863 (exit $ac_status); } && {
21864 test -z "$ac_c_werror_flag" ||
21865 test ! -s conftest.err
21866 } && test -s conftest.$ac_objext; then
21869 echo "$as_me: failed program was:" >&5
21870 sed 's/^/| /' conftest.$ac_ext >&5
21875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21877 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21878 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21879 if test $ac_cv_c_const = no; then
21881 cat >>confdefs.h <<\_ACEOF
21887 { echo "$as_me:$LINENO: checking for inline" >&5
21888 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
21889 if test "${ac_cv_c_inline+set}" = set; then
21890 echo $ECHO_N "(cached) $ECHO_C" >&6
21893 for ac_kw in inline __inline__ __inline; do
21894 cat >conftest.$ac_ext <<_ACEOF
21897 cat confdefs.h >>conftest.$ac_ext
21898 cat >>conftest.$ac_ext <<_ACEOF
21899 /* end confdefs.h. */
21900 #ifndef __cplusplus
21902 static $ac_kw foo_t static_foo () {return 0; }
21903 $ac_kw foo_t foo () {return 0; }
21907 rm -f conftest.$ac_objext
21908 if { (ac_try="$ac_compile"
21909 case "(($ac_try" in
21910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21911 *) ac_try_echo=$ac_try;;
21913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21914 (eval "$ac_compile") 2>conftest.er1
21916 grep -v '^ *+' conftest.er1 >conftest.err
21918 cat conftest.err >&5
21919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21920 (exit $ac_status); } && {
21921 test -z "$ac_c_werror_flag" ||
21922 test ! -s conftest.err
21923 } && test -s conftest.$ac_objext; then
21924 ac_cv_c_inline=$ac_kw
21926 echo "$as_me: failed program was:" >&5
21927 sed 's/^/| /' conftest.$ac_ext >&5
21932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21933 test "$ac_cv_c_inline" != no && break
21937 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21938 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
21941 case $ac_cv_c_inline in
21944 case $ac_cv_c_inline in
21946 *) ac_val=$ac_cv_c_inline;;
21948 cat >>confdefs.h <<_ACEOF
21949 #ifndef __cplusplus
21950 #define inline $ac_val
21956 { echo "$as_me:$LINENO: checking for size_t" >&5
21957 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21958 if test "${ac_cv_type_size_t+set}" = set; then
21959 echo $ECHO_N "(cached) $ECHO_C" >&6
21961 cat >conftest.$ac_ext <<_ACEOF
21964 cat confdefs.h >>conftest.$ac_ext
21965 cat >>conftest.$ac_ext <<_ACEOF
21966 /* end confdefs.h. */
21967 $ac_includes_default
21968 typedef size_t ac__type_new_;
21972 if ((ac__type_new_ *) 0)
21974 if (sizeof (ac__type_new_))
21980 rm -f conftest.$ac_objext
21981 if { (ac_try="$ac_compile"
21982 case "(($ac_try" in
21983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21984 *) ac_try_echo=$ac_try;;
21986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21987 (eval "$ac_compile") 2>conftest.er1
21989 grep -v '^ *+' conftest.er1 >conftest.err
21991 cat conftest.err >&5
21992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21993 (exit $ac_status); } && {
21994 test -z "$ac_c_werror_flag" ||
21995 test ! -s conftest.err
21996 } && test -s conftest.$ac_objext; then
21997 ac_cv_type_size_t=yes
21999 echo "$as_me: failed program was:" >&5
22000 sed 's/^/| /' conftest.$ac_ext >&5
22002 ac_cv_type_size_t=no
22005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22007 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22008 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22009 if test $ac_cv_type_size_t = yes; then
22013 cat >>confdefs.h <<_ACEOF
22014 #define size_t unsigned int
22020 ###################################
22021 ## SimGrid and GRAS specific checks
22025 { echo "$as_me:$LINENO: result: " >&5
22026 echo "${ECHO_T}" >&6; }
22027 { echo "$as_me:$LINENO: result: ${T_MD}Checking GRAS architecture signature...${T_ME}" >&5
22028 echo "${ECHO_T}${T_MD}Checking GRAS architecture signature...${T_ME}" >&6; }
22030 # Check architecture signature begin
22032 # Check for the architecture
22033 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22034 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
22035 if test "${ac_cv_c_bigendian+set}" = set; then
22036 echo $ECHO_N "(cached) $ECHO_C" >&6
22038 # See if sys/param.h defines the BYTE_ORDER macro.
22039 cat >conftest.$ac_ext <<_ACEOF
22042 cat confdefs.h >>conftest.$ac_ext
22043 cat >>conftest.$ac_ext <<_ACEOF
22044 /* end confdefs.h. */
22045 #include <sys/types.h>
22046 #include <sys/param.h>
22051 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
22052 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
22053 bogus endian macros
22060 rm -f conftest.$ac_objext
22061 if { (ac_try="$ac_compile"
22062 case "(($ac_try" in
22063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22064 *) ac_try_echo=$ac_try;;
22066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22067 (eval "$ac_compile") 2>conftest.er1
22069 grep -v '^ *+' conftest.er1 >conftest.err
22071 cat conftest.err >&5
22072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22073 (exit $ac_status); } && {
22074 test -z "$ac_c_werror_flag" ||
22075 test ! -s conftest.err
22076 } && test -s conftest.$ac_objext; then
22077 # It does; now see whether it defined to BIG_ENDIAN or not.
22078 cat >conftest.$ac_ext <<_ACEOF
22081 cat confdefs.h >>conftest.$ac_ext
22082 cat >>conftest.$ac_ext <<_ACEOF
22083 /* end confdefs.h. */
22084 #include <sys/types.h>
22085 #include <sys/param.h>
22090 #if BYTE_ORDER != BIG_ENDIAN
22098 rm -f conftest.$ac_objext
22099 if { (ac_try="$ac_compile"
22100 case "(($ac_try" in
22101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22102 *) ac_try_echo=$ac_try;;
22104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22105 (eval "$ac_compile") 2>conftest.er1
22107 grep -v '^ *+' conftest.er1 >conftest.err
22109 cat conftest.err >&5
22110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111 (exit $ac_status); } && {
22112 test -z "$ac_c_werror_flag" ||
22113 test ! -s conftest.err
22114 } && test -s conftest.$ac_objext; then
22115 ac_cv_c_bigendian=yes
22117 echo "$as_me: failed program was:" >&5
22118 sed 's/^/| /' conftest.$ac_ext >&5
22120 ac_cv_c_bigendian=no
22123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22125 echo "$as_me: failed program was:" >&5
22126 sed 's/^/| /' conftest.$ac_ext >&5
22128 # It does not; compile a test program.
22129 if test "$cross_compiling" = yes; then
22130 # try to guess the endianness by grepping values into an object file
22131 ac_cv_c_bigendian=unknown
22132 cat >conftest.$ac_ext <<_ACEOF
22135 cat confdefs.h >>conftest.$ac_ext
22136 cat >>conftest.$ac_ext <<_ACEOF
22137 /* end confdefs.h. */
22138 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22139 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22140 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
22141 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22142 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22143 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
22147 _ascii (); _ebcdic ();
22152 rm -f conftest.$ac_objext
22153 if { (ac_try="$ac_compile"
22154 case "(($ac_try" in
22155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22156 *) ac_try_echo=$ac_try;;
22158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22159 (eval "$ac_compile") 2>conftest.er1
22161 grep -v '^ *+' conftest.er1 >conftest.err
22163 cat conftest.err >&5
22164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22165 (exit $ac_status); } && {
22166 test -z "$ac_c_werror_flag" ||
22167 test ! -s conftest.err
22168 } && test -s conftest.$ac_objext; then
22169 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
22170 ac_cv_c_bigendian=yes
22172 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22173 if test "$ac_cv_c_bigendian" = unknown; then
22174 ac_cv_c_bigendian=no
22176 # finding both strings is unlikely to happen, but who knows?
22177 ac_cv_c_bigendian=unknown
22181 echo "$as_me: failed program was:" >&5
22182 sed 's/^/| /' conftest.$ac_ext >&5
22187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22189 cat >conftest.$ac_ext <<_ACEOF
22192 cat confdefs.h >>conftest.$ac_ext
22193 cat >>conftest.$ac_ext <<_ACEOF
22194 /* end confdefs.h. */
22195 $ac_includes_default
22200 /* Are we little or big endian? From Harbison&Steele. */
22204 char c[sizeof (long int)];
22207 return u.c[sizeof (long int) - 1] == 1;
22213 rm -f conftest$ac_exeext
22214 if { (ac_try="$ac_link"
22215 case "(($ac_try" in
22216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22217 *) ac_try_echo=$ac_try;;
22219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22220 (eval "$ac_link") 2>&5
22222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22223 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22224 { (case "(($ac_try" in
22225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22226 *) ac_try_echo=$ac_try;;
22228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22229 (eval "$ac_try") 2>&5
22231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22232 (exit $ac_status); }; }; then
22233 ac_cv_c_bigendian=no
22235 echo "$as_me: program exited with status $ac_status" >&5
22236 echo "$as_me: failed program was:" >&5
22237 sed 's/^/| /' conftest.$ac_ext >&5
22239 ( exit $ac_status )
22240 ac_cv_c_bigendian=yes
22242 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22250 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22251 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
22252 case $ac_cv_c_bigendian in
22258 { { echo "$as_me:$LINENO: error: GRAS works only for little or big endian systems (yet)" >&5
22259 echo "$as_me: error: GRAS works only for little or big endian systems (yet)" >&2;}
22260 { (exit 1); exit 1; }; } ;;
22264 cat >>confdefs.h <<_ACEOF
22265 #define GRAS_BIGENDIAN $endian
22269 { echo "$as_me:$LINENO: checking size of char" >&5
22270 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
22271 if test "${ac_cv_sizeof_char+set}" = set; then
22272 echo $ECHO_N "(cached) $ECHO_C" >&6
22274 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22275 cat >conftest.$ac_ext <<_ACEOF
22278 cat confdefs.h >>conftest.$ac_ext
22279 cat >>conftest.$ac_ext <<_ACEOF
22280 /* end confdefs.h. */
22281 #include "confdefs.h"
22282 #include <sys/types.h>
22288 switch (0) case 0: case (sizeof (char) == $ac_size):;
22293 rm -f conftest.$ac_objext
22294 if { (ac_try="$ac_compile"
22295 case "(($ac_try" in
22296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22297 *) ac_try_echo=$ac_try;;
22299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22300 (eval "$ac_compile") 2>conftest.er1
22302 grep -v '^ *+' conftest.er1 >conftest.err
22304 cat conftest.err >&5
22305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22306 (exit $ac_status); } && {
22307 test -z "$ac_c_werror_flag" ||
22308 test ! -s conftest.err
22309 } && test -s conftest.$ac_objext; then
22310 ac_cv_sizeof_char=$ac_size
22312 echo "$as_me: failed program was:" >&5
22313 sed 's/^/| /' conftest.$ac_ext >&5
22318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22319 if test x$ac_cv_sizeof_char != x ; then break; fi
22325 unspecif=$ac_cv_sizeof_char
22326 if test x$unspecif = x ; then
22327 { { echo "$as_me:$LINENO: error: cannot determine a size for char" >&5
22328 echo "$as_me: error: cannot determine a size for char" >&2;}
22329 { (exit 1); exit 1; }; }
22332 if test "${ac_cv_sizeof_signed_char+set}" = set; then
22333 echo $ECHO_N "(cached) $ECHO_C" >&6
22335 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22336 cat >conftest.$ac_ext <<_ACEOF
22339 cat confdefs.h >>conftest.$ac_ext
22340 cat >>conftest.$ac_ext <<_ACEOF
22341 /* end confdefs.h. */
22342 #include "confdefs.h"
22343 #include <sys/types.h>
22349 switch (0) case 0: case (sizeof (signed char) == $ac_size):;
22354 rm -f conftest.$ac_objext
22355 if { (ac_try="$ac_compile"
22356 case "(($ac_try" in
22357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22358 *) ac_try_echo=$ac_try;;
22360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22361 (eval "$ac_compile") 2>conftest.er1
22363 grep -v '^ *+' conftest.er1 >conftest.err
22365 cat conftest.err >&5
22366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22367 (exit $ac_status); } && {
22368 test -z "$ac_c_werror_flag" ||
22369 test ! -s conftest.err
22370 } && test -s conftest.$ac_objext; then
22371 ac_cv_sizeof_signed_char=$ac_size
22373 echo "$as_me: failed program was:" >&5
22374 sed 's/^/| /' conftest.$ac_ext >&5
22379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22380 if test x$ac_cv_sizeof_signed_char != x ; then break; fi
22386 signed=$ac_cv_sizeof_signed_char
22387 if test x$signed = x ; then
22388 { { echo "$as_me:$LINENO: error: cannot determine a size for signed char" >&5
22389 echo "$as_me: error: cannot determine a size for signed char" >&2;}
22390 { (exit 1); exit 1; }; }
22392 if test x$unspecif != x$signed ; then
22393 { { echo "$as_me:$LINENO: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&5
22394 echo "$as_me: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&2;}
22395 { (exit 1); exit 1; }; }
22398 if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
22399 echo $ECHO_N "(cached) $ECHO_C" >&6
22401 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22402 cat >conftest.$ac_ext <<_ACEOF
22405 cat confdefs.h >>conftest.$ac_ext
22406 cat >>conftest.$ac_ext <<_ACEOF
22407 /* end confdefs.h. */
22408 #include "confdefs.h"
22409 #include <sys/types.h>
22415 switch (0) case 0: case (sizeof (unsigned char) == $ac_size):;
22420 rm -f conftest.$ac_objext
22421 if { (ac_try="$ac_compile"
22422 case "(($ac_try" in
22423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22424 *) ac_try_echo=$ac_try;;
22426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22427 (eval "$ac_compile") 2>conftest.er1
22429 grep -v '^ *+' conftest.er1 >conftest.err
22431 cat conftest.err >&5
22432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22433 (exit $ac_status); } && {
22434 test -z "$ac_c_werror_flag" ||
22435 test ! -s conftest.err
22436 } && test -s conftest.$ac_objext; then
22437 ac_cv_sizeof_unsigned_char=$ac_size
22439 echo "$as_me: failed program was:" >&5
22440 sed 's/^/| /' conftest.$ac_ext >&5
22445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22446 if test x$ac_cv_sizeof_unsigned_char != x ; then break; fi
22452 unsigned=$ac_cv_sizeof_unsigned_char
22453 if test x$unsigned = x ; then
22454 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned char" >&5
22455 echo "$as_me: error: cannot determine a size for unsigned char" >&2;}
22456 { (exit 1); exit 1; }; }
22458 if test x$unsigned != x$signed ; then
22459 { { echo "$as_me:$LINENO: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&5
22460 echo "$as_me: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&2;}
22461 { (exit 1); exit 1; }; }
22464 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
22465 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6; }
22466 { echo "$as_me:$LINENO: checking for the minimal structure boundary of char" >&5
22467 echo $ECHO_N "checking for the minimal structure boundary of char... $ECHO_C" >&6; }
22469 if test "${ac_cv_struct_boundary_char+set}" = set; then
22470 echo $ECHO_N "(cached) $ECHO_C" >&6
22472 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22473 cat >conftest.$ac_ext <<_ACEOF
22476 cat confdefs.h >>conftest.$ac_ext
22477 cat >>conftest.$ac_ext <<_ACEOF
22478 /* end confdefs.h. */
22479 #include "confdefs.h"
22480 #include <sys/types.h>
22481 struct s { char c; char i; };
22486 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(char)):;
22491 rm -f conftest.$ac_objext
22492 if { (ac_try="$ac_compile"
22493 case "(($ac_try" in
22494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22495 *) ac_try_echo=$ac_try;;
22497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22498 (eval "$ac_compile") 2>conftest.er1
22500 grep -v '^ *+' conftest.er1 >conftest.err
22502 cat conftest.err >&5
22503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22504 (exit $ac_status); } && {
22505 test -z "$ac_c_werror_flag" ||
22506 test ! -s conftest.err
22507 } && test -s conftest.$ac_objext; then
22508 ac_cv_struct_boundary_char=$ac_size
22510 echo "$as_me: failed program was:" >&5
22511 sed 's/^/| /' conftest.$ac_ext >&5
22516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22517 if test x$ac_cv_struct_boundary_char != x ; then break; fi
22522 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_char" >&5
22523 echo "${ECHO_T}$ac_cv_struct_boundary_char" >&6; }
22524 if test x$ac_cv_struct_boundary_char = x ; then
22525 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of char in structures" >&5
22526 echo "$as_me: error: Cannot determine the minimal alignment boundary of char in structures" >&2;}
22527 { (exit 1); exit 1; }; }
22530 { echo "$as_me:$LINENO: checking size of short int" >&5
22531 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
22532 if test "${ac_cv_sizeof_short_int+set}" = set; then
22533 echo $ECHO_N "(cached) $ECHO_C" >&6
22535 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22536 cat >conftest.$ac_ext <<_ACEOF
22539 cat confdefs.h >>conftest.$ac_ext
22540 cat >>conftest.$ac_ext <<_ACEOF
22541 /* end confdefs.h. */
22542 #include "confdefs.h"
22543 #include <sys/types.h>
22549 switch (0) case 0: case (sizeof (short int) == $ac_size):;
22554 rm -f conftest.$ac_objext
22555 if { (ac_try="$ac_compile"
22556 case "(($ac_try" in
22557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22558 *) ac_try_echo=$ac_try;;
22560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22561 (eval "$ac_compile") 2>conftest.er1
22563 grep -v '^ *+' conftest.er1 >conftest.err
22565 cat conftest.err >&5
22566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22567 (exit $ac_status); } && {
22568 test -z "$ac_c_werror_flag" ||
22569 test ! -s conftest.err
22570 } && test -s conftest.$ac_objext; then
22571 ac_cv_sizeof_short_int=$ac_size
22573 echo "$as_me: failed program was:" >&5
22574 sed 's/^/| /' conftest.$ac_ext >&5
22579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22580 if test x$ac_cv_sizeof_short_int != x ; then break; fi
22586 unspecif=$ac_cv_sizeof_short_int
22587 if test x$unspecif = x ; then
22588 { { echo "$as_me:$LINENO: error: cannot determine a size for short int" >&5
22589 echo "$as_me: error: cannot determine a size for short int" >&2;}
22590 { (exit 1); exit 1; }; }
22593 if test "${ac_cv_sizeof_signed_short_int+set}" = set; then
22594 echo $ECHO_N "(cached) $ECHO_C" >&6
22596 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22597 cat >conftest.$ac_ext <<_ACEOF
22600 cat confdefs.h >>conftest.$ac_ext
22601 cat >>conftest.$ac_ext <<_ACEOF
22602 /* end confdefs.h. */
22603 #include "confdefs.h"
22604 #include <sys/types.h>
22610 switch (0) case 0: case (sizeof (signed short int) == $ac_size):;
22615 rm -f conftest.$ac_objext
22616 if { (ac_try="$ac_compile"
22617 case "(($ac_try" in
22618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22619 *) ac_try_echo=$ac_try;;
22621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22622 (eval "$ac_compile") 2>conftest.er1
22624 grep -v '^ *+' conftest.er1 >conftest.err
22626 cat conftest.err >&5
22627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22628 (exit $ac_status); } && {
22629 test -z "$ac_c_werror_flag" ||
22630 test ! -s conftest.err
22631 } && test -s conftest.$ac_objext; then
22632 ac_cv_sizeof_signed_short_int=$ac_size
22634 echo "$as_me: failed program was:" >&5
22635 sed 's/^/| /' conftest.$ac_ext >&5
22640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22641 if test x$ac_cv_sizeof_signed_short_int != x ; then break; fi
22647 signed=$ac_cv_sizeof_signed_short_int
22648 if test x$signed = x ; then
22649 { { echo "$as_me:$LINENO: error: cannot determine a size for signed short int" >&5
22650 echo "$as_me: error: cannot determine a size for signed short int" >&2;}
22651 { (exit 1); exit 1; }; }
22653 if test x$unspecif != x$signed ; then
22654 { { echo "$as_me:$LINENO: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&5
22655 echo "$as_me: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&2;}
22656 { (exit 1); exit 1; }; }
22659 if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then
22660 echo $ECHO_N "(cached) $ECHO_C" >&6
22662 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22663 cat >conftest.$ac_ext <<_ACEOF
22666 cat confdefs.h >>conftest.$ac_ext
22667 cat >>conftest.$ac_ext <<_ACEOF
22668 /* end confdefs.h. */
22669 #include "confdefs.h"
22670 #include <sys/types.h>
22676 switch (0) case 0: case (sizeof (unsigned short int) == $ac_size):;
22681 rm -f conftest.$ac_objext
22682 if { (ac_try="$ac_compile"
22683 case "(($ac_try" in
22684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22685 *) ac_try_echo=$ac_try;;
22687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22688 (eval "$ac_compile") 2>conftest.er1
22690 grep -v '^ *+' conftest.er1 >conftest.err
22692 cat conftest.err >&5
22693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22694 (exit $ac_status); } && {
22695 test -z "$ac_c_werror_flag" ||
22696 test ! -s conftest.err
22697 } && test -s conftest.$ac_objext; then
22698 ac_cv_sizeof_unsigned_short_int=$ac_size
22700 echo "$as_me: failed program was:" >&5
22701 sed 's/^/| /' conftest.$ac_ext >&5
22706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22707 if test x$ac_cv_sizeof_unsigned_short_int != x ; then break; fi
22713 unsigned=$ac_cv_sizeof_unsigned_short_int
22714 if test x$unsigned = x ; then
22715 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned short int" >&5
22716 echo "$as_me: error: cannot determine a size for unsigned short int" >&2;}
22717 { (exit 1); exit 1; }; }
22719 if test x$unsigned != x$signed ; then
22720 { { echo "$as_me:$LINENO: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&5
22721 echo "$as_me: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&2;}
22722 { (exit 1); exit 1; }; }
22725 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short_int" >&5
22726 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short_int" >&6; }
22727 { echo "$as_me:$LINENO: checking for the minimal structure boundary of short int" >&5
22728 echo $ECHO_N "checking for the minimal structure boundary of short int... $ECHO_C" >&6; }
22730 if test "${ac_cv_struct_boundary_short_int+set}" = set; then
22731 echo $ECHO_N "(cached) $ECHO_C" >&6
22733 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22734 cat >conftest.$ac_ext <<_ACEOF
22737 cat confdefs.h >>conftest.$ac_ext
22738 cat >>conftest.$ac_ext <<_ACEOF
22739 /* end confdefs.h. */
22740 #include "confdefs.h"
22741 #include <sys/types.h>
22742 struct s { char c; short int i; };
22747 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(short int)):;
22752 rm -f conftest.$ac_objext
22753 if { (ac_try="$ac_compile"
22754 case "(($ac_try" in
22755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22756 *) ac_try_echo=$ac_try;;
22758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22759 (eval "$ac_compile") 2>conftest.er1
22761 grep -v '^ *+' conftest.er1 >conftest.err
22763 cat conftest.err >&5
22764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22765 (exit $ac_status); } && {
22766 test -z "$ac_c_werror_flag" ||
22767 test ! -s conftest.err
22768 } && test -s conftest.$ac_objext; then
22769 ac_cv_struct_boundary_short_int=$ac_size
22771 echo "$as_me: failed program was:" >&5
22772 sed 's/^/| /' conftest.$ac_ext >&5
22777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22778 if test x$ac_cv_struct_boundary_short_int != x ; then break; fi
22783 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_short_int" >&5
22784 echo "${ECHO_T}$ac_cv_struct_boundary_short_int" >&6; }
22785 if test x$ac_cv_struct_boundary_short_int = x ; then
22786 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of short int in structures" >&5
22787 echo "$as_me: error: Cannot determine the minimal alignment boundary of short int in structures" >&2;}
22788 { (exit 1); exit 1; }; }
22791 { echo "$as_me:$LINENO: checking size of int" >&5
22792 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
22793 if test "${ac_cv_sizeof_int+set}" = set; then
22794 echo $ECHO_N "(cached) $ECHO_C" >&6
22796 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22797 cat >conftest.$ac_ext <<_ACEOF
22800 cat confdefs.h >>conftest.$ac_ext
22801 cat >>conftest.$ac_ext <<_ACEOF
22802 /* end confdefs.h. */
22803 #include "confdefs.h"
22804 #include <sys/types.h>
22810 switch (0) case 0: case (sizeof (int) == $ac_size):;
22815 rm -f conftest.$ac_objext
22816 if { (ac_try="$ac_compile"
22817 case "(($ac_try" in
22818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22819 *) ac_try_echo=$ac_try;;
22821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22822 (eval "$ac_compile") 2>conftest.er1
22824 grep -v '^ *+' conftest.er1 >conftest.err
22826 cat conftest.err >&5
22827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22828 (exit $ac_status); } && {
22829 test -z "$ac_c_werror_flag" ||
22830 test ! -s conftest.err
22831 } && test -s conftest.$ac_objext; then
22832 ac_cv_sizeof_int=$ac_size
22834 echo "$as_me: failed program was:" >&5
22835 sed 's/^/| /' conftest.$ac_ext >&5
22840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22841 if test x$ac_cv_sizeof_int != x ; then break; fi
22847 unspecif=$ac_cv_sizeof_int
22848 if test x$unspecif = x ; then
22849 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
22850 echo "$as_me: error: cannot determine a size for int" >&2;}
22851 { (exit 1); exit 1; }; }
22854 if test "${ac_cv_sizeof_signed_int+set}" = set; then
22855 echo $ECHO_N "(cached) $ECHO_C" >&6
22857 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22858 cat >conftest.$ac_ext <<_ACEOF
22861 cat confdefs.h >>conftest.$ac_ext
22862 cat >>conftest.$ac_ext <<_ACEOF
22863 /* end confdefs.h. */
22864 #include "confdefs.h"
22865 #include <sys/types.h>
22871 switch (0) case 0: case (sizeof (signed int) == $ac_size):;
22876 rm -f conftest.$ac_objext
22877 if { (ac_try="$ac_compile"
22878 case "(($ac_try" in
22879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22880 *) ac_try_echo=$ac_try;;
22882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22883 (eval "$ac_compile") 2>conftest.er1
22885 grep -v '^ *+' conftest.er1 >conftest.err
22887 cat conftest.err >&5
22888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22889 (exit $ac_status); } && {
22890 test -z "$ac_c_werror_flag" ||
22891 test ! -s conftest.err
22892 } && test -s conftest.$ac_objext; then
22893 ac_cv_sizeof_signed_int=$ac_size
22895 echo "$as_me: failed program was:" >&5
22896 sed 's/^/| /' conftest.$ac_ext >&5
22901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22902 if test x$ac_cv_sizeof_signed_int != x ; then break; fi
22908 signed=$ac_cv_sizeof_signed_int
22909 if test x$signed = x ; then
22910 { { echo "$as_me:$LINENO: error: cannot determine a size for signed int" >&5
22911 echo "$as_me: error: cannot determine a size for signed int" >&2;}
22912 { (exit 1); exit 1; }; }
22914 if test x$unspecif != x$signed ; then
22915 { { echo "$as_me:$LINENO: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&5
22916 echo "$as_me: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&2;}
22917 { (exit 1); exit 1; }; }
22920 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
22921 echo $ECHO_N "(cached) $ECHO_C" >&6
22923 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22924 cat >conftest.$ac_ext <<_ACEOF
22927 cat confdefs.h >>conftest.$ac_ext
22928 cat >>conftest.$ac_ext <<_ACEOF
22929 /* end confdefs.h. */
22930 #include "confdefs.h"
22931 #include <sys/types.h>
22937 switch (0) case 0: case (sizeof (unsigned int) == $ac_size):;
22942 rm -f conftest.$ac_objext
22943 if { (ac_try="$ac_compile"
22944 case "(($ac_try" in
22945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22946 *) ac_try_echo=$ac_try;;
22948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22949 (eval "$ac_compile") 2>conftest.er1
22951 grep -v '^ *+' conftest.er1 >conftest.err
22953 cat conftest.err >&5
22954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22955 (exit $ac_status); } && {
22956 test -z "$ac_c_werror_flag" ||
22957 test ! -s conftest.err
22958 } && test -s conftest.$ac_objext; then
22959 ac_cv_sizeof_unsigned_int=$ac_size
22961 echo "$as_me: failed program was:" >&5
22962 sed 's/^/| /' conftest.$ac_ext >&5
22967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22968 if test x$ac_cv_sizeof_unsigned_int != x ; then break; fi
22974 unsigned=$ac_cv_sizeof_unsigned_int
22975 if test x$unsigned = x ; then
22976 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned int" >&5
22977 echo "$as_me: error: cannot determine a size for unsigned int" >&2;}
22978 { (exit 1); exit 1; }; }
22980 if test x$unsigned != x$signed ; then
22981 { { echo "$as_me:$LINENO: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&5
22982 echo "$as_me: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&2;}
22983 { (exit 1); exit 1; }; }
22986 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
22987 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6; }
22988 { echo "$as_me:$LINENO: checking for the minimal structure boundary of int" >&5
22989 echo $ECHO_N "checking for the minimal structure boundary of int... $ECHO_C" >&6; }
22991 if test "${ac_cv_struct_boundary_int+set}" = set; then
22992 echo $ECHO_N "(cached) $ECHO_C" >&6
22994 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22995 cat >conftest.$ac_ext <<_ACEOF
22998 cat confdefs.h >>conftest.$ac_ext
22999 cat >>conftest.$ac_ext <<_ACEOF
23000 /* end confdefs.h. */
23001 #include "confdefs.h"
23002 #include <sys/types.h>
23003 struct s { char c; int i; };
23008 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(int)):;
23013 rm -f conftest.$ac_objext
23014 if { (ac_try="$ac_compile"
23015 case "(($ac_try" in
23016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23017 *) ac_try_echo=$ac_try;;
23019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23020 (eval "$ac_compile") 2>conftest.er1
23022 grep -v '^ *+' conftest.er1 >conftest.err
23024 cat conftest.err >&5
23025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23026 (exit $ac_status); } && {
23027 test -z "$ac_c_werror_flag" ||
23028 test ! -s conftest.err
23029 } && test -s conftest.$ac_objext; then
23030 ac_cv_struct_boundary_int=$ac_size
23032 echo "$as_me: failed program was:" >&5
23033 sed 's/^/| /' conftest.$ac_ext >&5
23038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23039 if test x$ac_cv_struct_boundary_int != x ; then break; fi
23044 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_int" >&5
23045 echo "${ECHO_T}$ac_cv_struct_boundary_int" >&6; }
23046 if test x$ac_cv_struct_boundary_int = x ; then
23047 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of int in structures" >&5
23048 echo "$as_me: error: Cannot determine the minimal alignment boundary of int in structures" >&2;}
23049 { (exit 1); exit 1; }; }
23052 { echo "$as_me:$LINENO: checking size of long int" >&5
23053 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
23054 if test "${ac_cv_sizeof_long_int+set}" = set; then
23055 echo $ECHO_N "(cached) $ECHO_C" >&6
23057 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23058 cat >conftest.$ac_ext <<_ACEOF
23061 cat confdefs.h >>conftest.$ac_ext
23062 cat >>conftest.$ac_ext <<_ACEOF
23063 /* end confdefs.h. */
23064 #include "confdefs.h"
23065 #include <sys/types.h>
23071 switch (0) case 0: case (sizeof (long int) == $ac_size):;
23076 rm -f conftest.$ac_objext
23077 if { (ac_try="$ac_compile"
23078 case "(($ac_try" in
23079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23080 *) ac_try_echo=$ac_try;;
23082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23083 (eval "$ac_compile") 2>conftest.er1
23085 grep -v '^ *+' conftest.er1 >conftest.err
23087 cat conftest.err >&5
23088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23089 (exit $ac_status); } && {
23090 test -z "$ac_c_werror_flag" ||
23091 test ! -s conftest.err
23092 } && test -s conftest.$ac_objext; then
23093 ac_cv_sizeof_long_int=$ac_size
23095 echo "$as_me: failed program was:" >&5
23096 sed 's/^/| /' conftest.$ac_ext >&5
23101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23102 if test x$ac_cv_sizeof_long_int != x ; then break; fi
23108 unspecif=$ac_cv_sizeof_long_int
23109 if test x$unspecif = x ; then
23110 { { echo "$as_me:$LINENO: error: cannot determine a size for long int" >&5
23111 echo "$as_me: error: cannot determine a size for long int" >&2;}
23112 { (exit 1); exit 1; }; }
23115 if test "${ac_cv_sizeof_signed_long_int+set}" = set; then
23116 echo $ECHO_N "(cached) $ECHO_C" >&6
23118 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23119 cat >conftest.$ac_ext <<_ACEOF
23122 cat confdefs.h >>conftest.$ac_ext
23123 cat >>conftest.$ac_ext <<_ACEOF
23124 /* end confdefs.h. */
23125 #include "confdefs.h"
23126 #include <sys/types.h>
23132 switch (0) case 0: case (sizeof (signed long int) == $ac_size):;
23137 rm -f conftest.$ac_objext
23138 if { (ac_try="$ac_compile"
23139 case "(($ac_try" in
23140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23141 *) ac_try_echo=$ac_try;;
23143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23144 (eval "$ac_compile") 2>conftest.er1
23146 grep -v '^ *+' conftest.er1 >conftest.err
23148 cat conftest.err >&5
23149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23150 (exit $ac_status); } && {
23151 test -z "$ac_c_werror_flag" ||
23152 test ! -s conftest.err
23153 } && test -s conftest.$ac_objext; then
23154 ac_cv_sizeof_signed_long_int=$ac_size
23156 echo "$as_me: failed program was:" >&5
23157 sed 's/^/| /' conftest.$ac_ext >&5
23162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23163 if test x$ac_cv_sizeof_signed_long_int != x ; then break; fi
23169 signed=$ac_cv_sizeof_signed_long_int
23170 if test x$signed = x ; then
23171 { { echo "$as_me:$LINENO: error: cannot determine a size for signed long int" >&5
23172 echo "$as_me: error: cannot determine a size for signed long int" >&2;}
23173 { (exit 1); exit 1; }; }
23175 if test x$unspecif != x$signed ; then
23176 { { echo "$as_me:$LINENO: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&5
23177 echo "$as_me: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&2;}
23178 { (exit 1); exit 1; }; }
23181 if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then
23182 echo $ECHO_N "(cached) $ECHO_C" >&6
23184 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23185 cat >conftest.$ac_ext <<_ACEOF
23188 cat confdefs.h >>conftest.$ac_ext
23189 cat >>conftest.$ac_ext <<_ACEOF
23190 /* end confdefs.h. */
23191 #include "confdefs.h"
23192 #include <sys/types.h>
23198 switch (0) case 0: case (sizeof (unsigned long int) == $ac_size):;
23203 rm -f conftest.$ac_objext
23204 if { (ac_try="$ac_compile"
23205 case "(($ac_try" in
23206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23207 *) ac_try_echo=$ac_try;;
23209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23210 (eval "$ac_compile") 2>conftest.er1
23212 grep -v '^ *+' conftest.er1 >conftest.err
23214 cat conftest.err >&5
23215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23216 (exit $ac_status); } && {
23217 test -z "$ac_c_werror_flag" ||
23218 test ! -s conftest.err
23219 } && test -s conftest.$ac_objext; then
23220 ac_cv_sizeof_unsigned_long_int=$ac_size
23222 echo "$as_me: failed program was:" >&5
23223 sed 's/^/| /' conftest.$ac_ext >&5
23228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23229 if test x$ac_cv_sizeof_unsigned_long_int != x ; then break; fi
23235 unsigned=$ac_cv_sizeof_unsigned_long_int
23236 if test x$unsigned = x ; then
23237 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long int" >&5
23238 echo "$as_me: error: cannot determine a size for unsigned long int" >&2;}
23239 { (exit 1); exit 1; }; }
23241 if test x$unsigned != x$signed ; then
23242 { { echo "$as_me:$LINENO: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&5
23243 echo "$as_me: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&2;}
23244 { (exit 1); exit 1; }; }
23247 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_int" >&5
23248 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_int" >&6; }
23249 { echo "$as_me:$LINENO: checking for the minimal structure boundary of long int" >&5
23250 echo $ECHO_N "checking for the minimal structure boundary of long int... $ECHO_C" >&6; }
23252 if test "${ac_cv_struct_boundary_long_int+set}" = set; then
23253 echo $ECHO_N "(cached) $ECHO_C" >&6
23255 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23256 cat >conftest.$ac_ext <<_ACEOF
23259 cat confdefs.h >>conftest.$ac_ext
23260 cat >>conftest.$ac_ext <<_ACEOF
23261 /* end confdefs.h. */
23262 #include "confdefs.h"
23263 #include <sys/types.h>
23264 struct s { char c; long int i; };
23269 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long int)):;
23274 rm -f conftest.$ac_objext
23275 if { (ac_try="$ac_compile"
23276 case "(($ac_try" in
23277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23278 *) ac_try_echo=$ac_try;;
23280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23281 (eval "$ac_compile") 2>conftest.er1
23283 grep -v '^ *+' conftest.er1 >conftest.err
23285 cat conftest.err >&5
23286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23287 (exit $ac_status); } && {
23288 test -z "$ac_c_werror_flag" ||
23289 test ! -s conftest.err
23290 } && test -s conftest.$ac_objext; then
23291 ac_cv_struct_boundary_long_int=$ac_size
23293 echo "$as_me: failed program was:" >&5
23294 sed 's/^/| /' conftest.$ac_ext >&5
23299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23300 if test x$ac_cv_struct_boundary_long_int != x ; then break; fi
23305 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_int" >&5
23306 echo "${ECHO_T}$ac_cv_struct_boundary_long_int" >&6; }
23307 if test x$ac_cv_struct_boundary_long_int = x ; then
23308 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long int in structures" >&5
23309 echo "$as_me: error: Cannot determine the minimal alignment boundary of long int in structures" >&2;}
23310 { (exit 1); exit 1; }; }
23313 { echo "$as_me:$LINENO: checking size of long long int" >&5
23314 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
23315 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
23316 echo $ECHO_N "(cached) $ECHO_C" >&6
23318 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23319 cat >conftest.$ac_ext <<_ACEOF
23322 cat confdefs.h >>conftest.$ac_ext
23323 cat >>conftest.$ac_ext <<_ACEOF
23324 /* end confdefs.h. */
23325 #include "confdefs.h"
23326 #include <sys/types.h>
23332 switch (0) case 0: case (sizeof (long long int) == $ac_size):;
23337 rm -f conftest.$ac_objext
23338 if { (ac_try="$ac_compile"
23339 case "(($ac_try" in
23340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23341 *) ac_try_echo=$ac_try;;
23343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23344 (eval "$ac_compile") 2>conftest.er1
23346 grep -v '^ *+' conftest.er1 >conftest.err
23348 cat conftest.err >&5
23349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23350 (exit $ac_status); } && {
23351 test -z "$ac_c_werror_flag" ||
23352 test ! -s conftest.err
23353 } && test -s conftest.$ac_objext; then
23354 ac_cv_sizeof_long_long_int=$ac_size
23356 echo "$as_me: failed program was:" >&5
23357 sed 's/^/| /' conftest.$ac_ext >&5
23362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23363 if test x$ac_cv_sizeof_long_long_int != x ; then break; fi
23369 unspecif=$ac_cv_sizeof_long_long_int
23370 if test x$unspecif = x ; then
23371 { { echo "$as_me:$LINENO: error: cannot determine a size for long long int" >&5
23372 echo "$as_me: error: cannot determine a size for long long int" >&2;}
23373 { (exit 1); exit 1; }; }
23376 if test "${ac_cv_sizeof_signed_long_long_int+set}" = set; then
23377 echo $ECHO_N "(cached) $ECHO_C" >&6
23379 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23380 cat >conftest.$ac_ext <<_ACEOF
23383 cat confdefs.h >>conftest.$ac_ext
23384 cat >>conftest.$ac_ext <<_ACEOF
23385 /* end confdefs.h. */
23386 #include "confdefs.h"
23387 #include <sys/types.h>
23393 switch (0) case 0: case (sizeof (signed long long int) == $ac_size):;
23398 rm -f conftest.$ac_objext
23399 if { (ac_try="$ac_compile"
23400 case "(($ac_try" in
23401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23402 *) ac_try_echo=$ac_try;;
23404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23405 (eval "$ac_compile") 2>conftest.er1
23407 grep -v '^ *+' conftest.er1 >conftest.err
23409 cat conftest.err >&5
23410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23411 (exit $ac_status); } && {
23412 test -z "$ac_c_werror_flag" ||
23413 test ! -s conftest.err
23414 } && test -s conftest.$ac_objext; then
23415 ac_cv_sizeof_signed_long_long_int=$ac_size
23417 echo "$as_me: failed program was:" >&5
23418 sed 's/^/| /' conftest.$ac_ext >&5
23423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23424 if test x$ac_cv_sizeof_signed_long_long_int != x ; then break; fi
23430 signed=$ac_cv_sizeof_signed_long_long_int
23431 if test x$signed = x ; then
23432 { { echo "$as_me:$LINENO: error: cannot determine a size for signed long long int" >&5
23433 echo "$as_me: error: cannot determine a size for signed long long int" >&2;}
23434 { (exit 1); exit 1; }; }
23436 if test x$unspecif != x$signed ; then
23437 { { echo "$as_me:$LINENO: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&5
23438 echo "$as_me: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&2;}
23439 { (exit 1); exit 1; }; }
23442 if test "${ac_cv_sizeof_unsigned_long_long_int+set}" = set; then
23443 echo $ECHO_N "(cached) $ECHO_C" >&6
23445 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23446 cat >conftest.$ac_ext <<_ACEOF
23449 cat confdefs.h >>conftest.$ac_ext
23450 cat >>conftest.$ac_ext <<_ACEOF
23451 /* end confdefs.h. */
23452 #include "confdefs.h"
23453 #include <sys/types.h>
23459 switch (0) case 0: case (sizeof (unsigned long long int) == $ac_size):;
23464 rm -f conftest.$ac_objext
23465 if { (ac_try="$ac_compile"
23466 case "(($ac_try" in
23467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23468 *) ac_try_echo=$ac_try;;
23470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23471 (eval "$ac_compile") 2>conftest.er1
23473 grep -v '^ *+' conftest.er1 >conftest.err
23475 cat conftest.err >&5
23476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23477 (exit $ac_status); } && {
23478 test -z "$ac_c_werror_flag" ||
23479 test ! -s conftest.err
23480 } && test -s conftest.$ac_objext; then
23481 ac_cv_sizeof_unsigned_long_long_int=$ac_size
23483 echo "$as_me: failed program was:" >&5
23484 sed 's/^/| /' conftest.$ac_ext >&5
23489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23490 if test x$ac_cv_sizeof_unsigned_long_long_int != x ; then break; fi
23496 unsigned=$ac_cv_sizeof_unsigned_long_long_int
23497 if test x$unsigned = x ; then
23498 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long long int" >&5
23499 echo "$as_me: error: cannot determine a size for unsigned long long int" >&2;}
23500 { (exit 1); exit 1; }; }
23502 if test x$unsigned != x$signed ; then
23503 { { echo "$as_me:$LINENO: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&5
23504 echo "$as_me: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&2;}
23505 { (exit 1); exit 1; }; }
23508 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long_int" >&5
23509 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long_int" >&6; }
23510 { echo "$as_me:$LINENO: checking for the minimal structure boundary of long long int" >&5
23511 echo $ECHO_N "checking for the minimal structure boundary of long long int... $ECHO_C" >&6; }
23513 if test "${ac_cv_struct_boundary_long_long_int+set}" = set; then
23514 echo $ECHO_N "(cached) $ECHO_C" >&6
23516 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23517 cat >conftest.$ac_ext <<_ACEOF
23520 cat confdefs.h >>conftest.$ac_ext
23521 cat >>conftest.$ac_ext <<_ACEOF
23522 /* end confdefs.h. */
23523 #include "confdefs.h"
23524 #include <sys/types.h>
23525 struct s { char c; long long int i; };
23530 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long long int)):;
23535 rm -f conftest.$ac_objext
23536 if { (ac_try="$ac_compile"
23537 case "(($ac_try" in
23538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23539 *) ac_try_echo=$ac_try;;
23541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23542 (eval "$ac_compile") 2>conftest.er1
23544 grep -v '^ *+' conftest.er1 >conftest.err
23546 cat conftest.err >&5
23547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23548 (exit $ac_status); } && {
23549 test -z "$ac_c_werror_flag" ||
23550 test ! -s conftest.err
23551 } && test -s conftest.$ac_objext; then
23552 ac_cv_struct_boundary_long_long_int=$ac_size
23554 echo "$as_me: failed program was:" >&5
23555 sed 's/^/| /' conftest.$ac_ext >&5
23560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23561 if test x$ac_cv_struct_boundary_long_long_int != x ; then break; fi
23566 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_long_int" >&5
23567 echo "${ECHO_T}$ac_cv_struct_boundary_long_long_int" >&6; }
23568 if test x$ac_cv_struct_boundary_long_long_int = x ; then
23569 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long long int in structures" >&5
23570 echo "$as_me: error: Cannot determine the minimal alignment boundary of long long int in structures" >&2;}
23571 { (exit 1); exit 1; }; }
23575 { echo "$as_me:$LINENO: checking for the minimal structure boundary of float" >&5
23576 echo $ECHO_N "checking for the minimal structure boundary of float... $ECHO_C" >&6; }
23578 if test "${ac_cv_struct_boundary_float+set}" = set; then
23579 echo $ECHO_N "(cached) $ECHO_C" >&6
23581 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23582 cat >conftest.$ac_ext <<_ACEOF
23585 cat confdefs.h >>conftest.$ac_ext
23586 cat >>conftest.$ac_ext <<_ACEOF
23587 /* end confdefs.h. */
23588 #include "confdefs.h"
23589 #include <sys/types.h>
23590 struct s { char c; float i; };
23595 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(float)):;
23600 rm -f conftest.$ac_objext
23601 if { (ac_try="$ac_compile"
23602 case "(($ac_try" in
23603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23604 *) ac_try_echo=$ac_try;;
23606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23607 (eval "$ac_compile") 2>conftest.er1
23609 grep -v '^ *+' conftest.er1 >conftest.err
23611 cat conftest.err >&5
23612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23613 (exit $ac_status); } && {
23614 test -z "$ac_c_werror_flag" ||
23615 test ! -s conftest.err
23616 } && test -s conftest.$ac_objext; then
23617 ac_cv_struct_boundary_float=$ac_size
23619 echo "$as_me: failed program was:" >&5
23620 sed 's/^/| /' conftest.$ac_ext >&5
23625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23626 if test x$ac_cv_struct_boundary_float != x ; then break; fi
23631 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_float" >&5
23632 echo "${ECHO_T}$ac_cv_struct_boundary_float" >&6; }
23633 if test x$ac_cv_struct_boundary_float = x ; then
23634 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of float in structures" >&5
23635 echo "$as_me: error: Cannot determine the minimal alignment boundary of float in structures" >&2;}
23636 { (exit 1); exit 1; }; }
23638 { echo "$as_me:$LINENO: checking for the minimal structure boundary of double" >&5
23639 echo $ECHO_N "checking for the minimal structure boundary of double... $ECHO_C" >&6; }
23641 if test "${ac_cv_struct_boundary_double+set}" = set; then
23642 echo $ECHO_N "(cached) $ECHO_C" >&6
23644 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23645 cat >conftest.$ac_ext <<_ACEOF
23648 cat confdefs.h >>conftest.$ac_ext
23649 cat >>conftest.$ac_ext <<_ACEOF
23650 /* end confdefs.h. */
23651 #include "confdefs.h"
23652 #include <sys/types.h>
23653 struct s { char c; double i; };
23658 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(double)):;
23663 rm -f conftest.$ac_objext
23664 if { (ac_try="$ac_compile"
23665 case "(($ac_try" in
23666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23667 *) ac_try_echo=$ac_try;;
23669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23670 (eval "$ac_compile") 2>conftest.er1
23672 grep -v '^ *+' conftest.er1 >conftest.err
23674 cat conftest.err >&5
23675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23676 (exit $ac_status); } && {
23677 test -z "$ac_c_werror_flag" ||
23678 test ! -s conftest.err
23679 } && test -s conftest.$ac_objext; then
23680 ac_cv_struct_boundary_double=$ac_size
23682 echo "$as_me: failed program was:" >&5
23683 sed 's/^/| /' conftest.$ac_ext >&5
23688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23689 if test x$ac_cv_struct_boundary_double != x ; then break; fi
23694 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_double" >&5
23695 echo "${ECHO_T}$ac_cv_struct_boundary_double" >&6; }
23696 if test x$ac_cv_struct_boundary_double = x ; then
23697 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of double in structures" >&5
23698 echo "$as_me: error: Cannot determine the minimal alignment boundary of double in structures" >&2;}
23699 { (exit 1); exit 1; }; }
23703 { echo "$as_me:$LINENO: checking size of void *" >&5
23704 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
23705 if test "${ac_cv_sizeof_void_p+set}" = set; then
23706 echo $ECHO_N "(cached) $ECHO_C" >&6
23708 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23709 cat >conftest.$ac_ext <<_ACEOF
23712 cat confdefs.h >>conftest.$ac_ext
23713 cat >>conftest.$ac_ext <<_ACEOF
23714 /* end confdefs.h. */
23715 #include "confdefs.h"
23716 #include <sys/types.h>
23722 switch (0) case 0: case (sizeof (void *) == $ac_size):;
23727 rm -f conftest.$ac_objext
23728 if { (ac_try="$ac_compile"
23729 case "(($ac_try" in
23730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23731 *) ac_try_echo=$ac_try;;
23733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23734 (eval "$ac_compile") 2>conftest.er1
23736 grep -v '^ *+' conftest.er1 >conftest.err
23738 cat conftest.err >&5
23739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23740 (exit $ac_status); } && {
23741 test -z "$ac_c_werror_flag" ||
23742 test ! -s conftest.err
23743 } && test -s conftest.$ac_objext; then
23744 ac_cv_sizeof_void_p=$ac_size
23746 echo "$as_me: failed program was:" >&5
23747 sed 's/^/| /' conftest.$ac_ext >&5
23752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23753 if test x$ac_cv_sizeof_void_p != x ; then break; fi
23759 if test x$ac_cv_sizeof_void_p = x ; then
23760 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
23761 echo "$as_me: error: cannot determine a size for void *" >&2;}
23762 { (exit 1); exit 1; }; }
23764 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
23765 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
23766 { echo "$as_me:$LINENO: checking for the minimal structure boundary of void *" >&5
23767 echo $ECHO_N "checking for the minimal structure boundary of void *... $ECHO_C" >&6; }
23769 if test "${ac_cv_struct_boundary_void_p+set}" = set; then
23770 echo $ECHO_N "(cached) $ECHO_C" >&6
23772 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23773 cat >conftest.$ac_ext <<_ACEOF
23776 cat confdefs.h >>conftest.$ac_ext
23777 cat >>conftest.$ac_ext <<_ACEOF
23778 /* end confdefs.h. */
23779 #include "confdefs.h"
23780 #include <sys/types.h>
23781 struct s { char c; void * i; };
23786 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(void *)):;
23791 rm -f conftest.$ac_objext
23792 if { (ac_try="$ac_compile"
23793 case "(($ac_try" in
23794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23795 *) ac_try_echo=$ac_try;;
23797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23798 (eval "$ac_compile") 2>conftest.er1
23800 grep -v '^ *+' conftest.er1 >conftest.err
23802 cat conftest.err >&5
23803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23804 (exit $ac_status); } && {
23805 test -z "$ac_c_werror_flag" ||
23806 test ! -s conftest.err
23807 } && test -s conftest.$ac_objext; then
23808 ac_cv_struct_boundary_void_p=$ac_size
23810 echo "$as_me: failed program was:" >&5
23811 sed 's/^/| /' conftest.$ac_ext >&5
23816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23817 if test x$ac_cv_struct_boundary_void_p != x ; then break; fi
23822 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_void_p" >&5
23823 echo "${ECHO_T}$ac_cv_struct_boundary_void_p" >&6; }
23824 if test x$ac_cv_struct_boundary_void_p = x ; then
23825 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of void * in structures" >&5
23826 echo "$as_me: error: Cannot determine the minimal alignment boundary of void * in structures" >&2;}
23827 { (exit 1); exit 1; }; }
23830 { echo "$as_me:$LINENO: checking size of void (*) (void)" >&5
23831 echo $ECHO_N "checking size of void (*) (void)... $ECHO_C" >&6; }
23832 if test "${ac_cv_sizeof_void_LpR_LvoidR+set}" = set; then
23833 echo $ECHO_N "(cached) $ECHO_C" >&6
23835 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23836 cat >conftest.$ac_ext <<_ACEOF
23839 cat confdefs.h >>conftest.$ac_ext
23840 cat >>conftest.$ac_ext <<_ACEOF
23841 /* end confdefs.h. */
23842 #include "confdefs.h"
23843 #include <sys/types.h>
23849 switch (0) case 0: case (sizeof (void (*) (void)) == $ac_size):;
23854 rm -f conftest.$ac_objext
23855 if { (ac_try="$ac_compile"
23856 case "(($ac_try" in
23857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23858 *) ac_try_echo=$ac_try;;
23860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23861 (eval "$ac_compile") 2>conftest.er1
23863 grep -v '^ *+' conftest.er1 >conftest.err
23865 cat conftest.err >&5
23866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23867 (exit $ac_status); } && {
23868 test -z "$ac_c_werror_flag" ||
23869 test ! -s conftest.err
23870 } && test -s conftest.$ac_objext; then
23871 ac_cv_sizeof_void_LpR_LvoidR=$ac_size
23873 echo "$as_me: failed program was:" >&5
23874 sed 's/^/| /' conftest.$ac_ext >&5
23879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23880 if test x$ac_cv_sizeof_void_LpR_LvoidR != x ; then break; fi
23886 if test x$ac_cv_sizeof_void_LpR_LvoidR = x ; then
23887 { { echo "$as_me:$LINENO: error: cannot determine a size for void (*) (void)" >&5
23888 echo "$as_me: error: cannot determine a size for void (*) (void)" >&2;}
23889 { (exit 1); exit 1; }; }
23891 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_LpR_LvoidR" >&5
23892 echo "${ECHO_T}$ac_cv_sizeof_void_LpR_LvoidR" >&6; }
23896 { echo "$as_me:$LINENO: checking the GRAS signature of this architecture" >&5
23897 echo $ECHO_N "checking the GRAS signature of this architecture... $ECHO_C" >&6; }
23898 if test x$endian = x1 ; then
23904 trace="$trace_endian"
23906 trace="${trace}_C:${ac_cv_sizeof_char}/${ac_cv_struct_boundary_char}:"
23908 trace="${trace}_I:${ac_cv_sizeof_short_int}/${ac_cv_struct_boundary_short_int}"
23909 trace="${trace}:${ac_cv_sizeof_int}/${ac_cv_struct_boundary_int}"
23910 trace="${trace}:${ac_cv_sizeof_long_int}/${ac_cv_struct_boundary_long_int}"
23911 trace="${trace}:${ac_cv_sizeof_long_long_int}/${ac_cv_struct_boundary_long_long_int}:"
23913 trace="${trace}_P:${ac_cv_sizeof_void_p}/${ac_cv_struct_boundary_void_p}"
23914 trace="${trace}:${ac_cv_sizeof_void_LpR_LvoidR}/${ac_cv_struct_boundary_void_p}:"
23916 trace="${trace}_D:4/${ac_cv_struct_boundary_float}:8/${ac_cv_struct_boundary_double}:"
23918 # sizeof float/double are not tested since IEEE 754 is assumed.
23919 # Check README.IEEE for rational.
23921 # The numbers after the _ in the arch name are the maximal packing boundary.
23922 # big32_2 means that all data are aligned on a 2 bytes boundary. (ARM)
23923 # big32_8_4 means that some or them are aligned on 8 bytes, some are on 4 bytes (AIX)
23925 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;;
23926 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;;
23927 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;;
23928 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;;
23930 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;;
23932 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;;
23933 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;;
23934 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;;
23935 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;;
23937 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;;
23938 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;;
23940 if test x$gras_arch = xunknown ; then
23941 { echo "$as_me:$LINENO: result: damnit ($trace)" >&5
23942 echo "${ECHO_T}damnit ($trace)" >&6; }
23943 { { echo "$as_me:$LINENO: error: Impossible to determine the GRAS architecture signature.
23944 Please report this architecture trace ($trace) and what it corresponds to." >&5
23945 echo "$as_me: error: Impossible to determine the GRAS architecture signature.
23946 Please report this architecture trace ($trace) and what it corresponds to." >&2;}
23947 { (exit 1); exit 1; }; }
23949 echo "$as_me:$LINENO: GRAS trace of this machine: $trace" >&5
23951 cat >>confdefs.h <<_ACEOF
23952 #define GRAS_THISARCH $gras_arch
23955 { echo "$as_me:$LINENO: result: $gras_arch ($gras_arch_name)" >&5
23956 echo "${ECHO_T}$gras_arch ($gras_arch_name)" >&6; }
23958 if test "$gras_size" = 32; then
23959 GRAS_ARCH_32_BITS_TRUE=
23960 GRAS_ARCH_32_BITS_FALSE='#'
23962 GRAS_ARCH_32_BITS_TRUE='#'
23963 GRAS_ARCH_32_BITS_FALSE=
23967 { echo "$as_me:$LINENO: checking the maximal size of scalar" >&5
23968 echo $ECHO_N "checking the maximal size of scalar... $ECHO_C" >&6; }
23970 for s in $ac_cv_sizeof_char \
23971 $ac_cv_sizeof_short_int $ac_cv_sizeof_int $ac_cv_sizeof_long_int $ac_cv_sizeof_long_long_int \
23972 $ac_cv_sizeof_void_p $ac_cv_sizeof_void_LpR_LvoidR \
23975 if test $ac_cv_sizeof_max -lt $s ; then
23976 ac_cv_sizeof_max=$s
23979 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_max" >&5
23980 echo "${ECHO_T}$ac_cv_sizeof_max" >&6; }
23982 cat >>confdefs.h <<_ACEOF
23983 #define SIZEOF_MAX $ac_cv_sizeof_max
23988 # Check architecture signature end
23989 { echo "$as_me:$LINENO: checking whether the struct gets packed" >&5
23990 echo $ECHO_N "checking whether the struct gets packed... $ECHO_C" >&6; }
23991 cat >conftest.$ac_ext <<_ACEOF
23994 cat confdefs.h >>conftest.$ac_ext
23995 cat >>conftest.$ac_ext <<_ACEOF
23996 /* end confdefs.h. */
23997 #include "confdefs.h"
23998 #include <sys/types.h>
23999 #include <stddef.h> /* offsetof() */
24000 struct s {char c; double d;};
24007 case (sizeof(struct s) == sizeof(double)+sizeof(char)):;
24013 rm -f conftest.$ac_objext
24014 if { (ac_try="$ac_compile"
24015 case "(($ac_try" in
24016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24017 *) ac_try_echo=$ac_try;;
24019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24020 (eval "$ac_compile") 2>conftest.er1
24022 grep -v '^ *+' conftest.er1 >conftest.err
24024 cat conftest.err >&5
24025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24026 (exit $ac_status); } && {
24027 test -z "$ac_c_werror_flag" ||
24028 test ! -s conftest.err
24029 } && test -s conftest.$ac_objext; then
24030 gras_struct_packed=yes
24032 echo "$as_me: failed program was:" >&5
24033 sed 's/^/| /' conftest.$ac_ext >&5
24035 gras_struct_packed=no
24038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24040 { echo "$as_me:$LINENO: result: $gras_struct_packed" >&5
24041 echo "${ECHO_T}$gras_struct_packed" >&6; }
24042 if test x$gras_struct_packed = "xyes" ; then
24043 { { echo "$as_me:$LINENO: error: GRAS does not support packed structures since it leads to nasty misalignments" >&5
24044 echo "$as_me: error: GRAS does not support packed structures since it leads to nasty misalignments" >&2;}
24045 { (exit 1); exit 1; }; }
24048 { echo "$as_me:$LINENO: checking whether the struct gets compacted" >&5
24049 echo $ECHO_N "checking whether the struct gets compacted... $ECHO_C" >&6; }
24050 cat >conftest.$ac_ext <<_ACEOF
24053 cat confdefs.h >>conftest.$ac_ext
24054 cat >>conftest.$ac_ext <<_ACEOF
24055 /* end confdefs.h. */
24056 #include "confdefs.h"
24057 #include <sys/types.h>
24058 #include <stddef.h> /* offsetof() */
24059 struct s {double d; int i; char c;};
24066 case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
24072 rm -f conftest.$ac_objext
24073 if { (ac_try="$ac_compile"
24074 case "(($ac_try" in
24075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24076 *) ac_try_echo=$ac_try;;
24078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24079 (eval "$ac_compile") 2>conftest.er1
24081 grep -v '^ *+' conftest.er1 >conftest.err
24083 cat conftest.err >&5
24084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24085 (exit $ac_status); } && {
24086 test -z "$ac_c_werror_flag" ||
24087 test ! -s conftest.err
24088 } && test -s conftest.$ac_objext; then
24089 gras_struct_compact=yes
24091 echo "$as_me: failed program was:" >&5
24092 sed 's/^/| /' conftest.$ac_ext >&5
24094 gras_struct_compact=no
24097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24099 { echo "$as_me:$LINENO: result: $gras_struct_compact" >&5
24100 echo "${ECHO_T}$gras_struct_compact" >&6; }
24102 if test x$gras_struct_compact != xyes ; then
24103 { { echo "$as_me:$LINENO: error: GRAS works only on structure compacting architectures (yet)" >&5
24104 echo "$as_me: error: GRAS works only on structure compacting architectures (yet)" >&2;}
24105 { (exit 1); exit 1; }; }
24108 cat >>confdefs.h <<_ACEOF
24109 #define GRAS_STRUCT_COMPACT 1
24112 { echo "$as_me:$LINENO: checking whether arrays can straddle struct alignment boundaries" >&5
24113 echo $ECHO_N "checking whether arrays can straddle struct alignment boundaries... $ECHO_C" >&6; }
24115 cat >conftest.$ac_ext <<_ACEOF
24118 cat confdefs.h >>conftest.$ac_ext
24119 cat >>conftest.$ac_ext <<_ACEOF
24120 /* end confdefs.h. */
24121 #include "confdefs.h"
24122 #include <sys/types.h>
24123 #include <stddef.h> /* offsetof() */
24124 struct s { double d; int i; char c[6]; };
24131 case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
24137 rm -f conftest.$ac_objext
24138 if { (ac_try="$ac_compile"
24139 case "(($ac_try" in
24140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24141 *) ac_try_echo=$ac_try;;
24143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24144 (eval "$ac_compile") 2>conftest.er1
24146 grep -v '^ *+' conftest.er1 >conftest.err
24148 cat conftest.err >&5
24149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24150 (exit $ac_status); } && {
24151 test -z "$ac_c_werror_flag" ||
24152 test ! -s conftest.err
24153 } && test -s conftest.$ac_objext; then
24154 gras_array_straddle_struct=yes
24156 echo "$as_me: failed program was:" >&5
24157 sed 's/^/| /' conftest.$ac_ext >&5
24159 gras_array_straddle_struct=no
24162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24164 { echo "$as_me:$LINENO: result: $gras_array_straddle_struct" >&5
24165 echo "${ECHO_T}$gras_array_straddle_struct" >&6; }
24167 if test x$gras_array_straddle_struct = xyes ; then
24169 cat >>confdefs.h <<_ACEOF
24170 #define GRAS_ARRAY_STRADDLE_STRUCT 1
24174 { { echo "$as_me:$LINENO: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&5
24175 echo "$as_me: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&2;}
24176 { (exit 1); exit 1; }; }
24183 { echo "$as_me:$LINENO: result: " >&5
24184 echo "${ECHO_T}" >&6; }
24185 { echo "$as_me:$LINENO: result: ${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&5
24186 echo "${ECHO_T}${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&6; }
24191 { echo "$as_me:$LINENO: checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)" >&5
24192 echo $ECHO_N "checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)... $ECHO_C" >&6; }
24193 if test "${ac_cv_check_mcsc+set}" = set; then
24194 echo $ECHO_N "(cached) $ECHO_C" >&6
24197 if test "$cross_compiling" = yes; then
24198 ac_cv_check_mcsc=no
24201 cat >conftest.$ac_ext <<_ACEOF
24204 cat confdefs.h >>conftest.$ac_ext
24205 cat >>conftest.$ac_ext <<_ACEOF
24206 /* end confdefs.h. */
24210 #include <stdlib.h>
24211 #include <ucontext.h>
24213 ucontext_t uc_child;
24214 ucontext_t uc_main;
24216 void child(void *arg)
24218 if (arg != (void *)12345)
24220 if (swapcontext(&uc_child, &uc_main) != 0)
24224 int main(int argc, char *argv[])
24229 /* the default is that it fails */
24230 if ((fp = fopen("conftestval", "w")) == NULL)
24232 fprintf(fp, "no\n");
24235 /* configure a child user-space context */
24236 if ((stack = malloc(64*1024)) == NULL)
24238 if (getcontext(&uc_child) != 0)
24240 uc_child.uc_link = NULL;
24241 uc_child.uc_stack.ss_sp = (char *)stack+(32*1024);
24242 uc_child.uc_stack.ss_size = 32*1024;
24243 uc_child.uc_stack.ss_flags = 0;
24244 makecontext(&uc_child, child, 2, (void *)12345);
24246 /* switch into the user context */
24247 if (swapcontext(&uc_main, &uc_child) != 0)
24250 /* Fine, child came home */
24251 if ((fp = fopen("conftestval", "w")) == NULL)
24253 fprintf(fp, "yes\n");
24256 /* die successfully */
24261 rm -f conftest$ac_exeext
24262 if { (ac_try="$ac_link"
24263 case "(($ac_try" in
24264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24265 *) ac_try_echo=$ac_try;;
24267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24268 (eval "$ac_link") 2>&5
24270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24271 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24272 { (case "(($ac_try" in
24273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24274 *) ac_try_echo=$ac_try;;
24276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24277 (eval "$ac_try") 2>&5
24279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24280 (exit $ac_status); }; }; then
24281 ac_cv_check_mcsc=`cat conftestval`
24283 echo "$as_me: program exited with status $ac_status" >&5
24284 echo "$as_me: failed program was:" >&5
24285 sed 's/^/| /' conftest.$ac_ext >&5
24287 ( exit $ac_status )
24288 ac_cv_check_mcsc=no
24290 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24295 { echo "$as_me:$LINENO: result: $ac_cv_check_mcsc" >&5
24296 echo "${ECHO_T}$ac_cv_check_mcsc" >&6; }
24297 if test ".$ac_cv_check_mcsc" = .yes; then
24305 for ac_header in pthread.h
24307 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24309 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24312 echo $ECHO_N "(cached) $ECHO_C" >&6
24314 ac_res=`eval echo '${'$as_ac_Header'}'`
24315 { echo "$as_me:$LINENO: result: $ac_res" >&5
24316 echo "${ECHO_T}$ac_res" >&6; }
24318 # Is the header compilable?
24319 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24320 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24321 cat >conftest.$ac_ext <<_ACEOF
24324 cat confdefs.h >>conftest.$ac_ext
24325 cat >>conftest.$ac_ext <<_ACEOF
24326 /* end confdefs.h. */
24327 $ac_includes_default
24328 #include <$ac_header>
24330 rm -f conftest.$ac_objext
24331 if { (ac_try="$ac_compile"
24332 case "(($ac_try" in
24333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24334 *) ac_try_echo=$ac_try;;
24336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24337 (eval "$ac_compile") 2>conftest.er1
24339 grep -v '^ *+' conftest.er1 >conftest.err
24341 cat conftest.err >&5
24342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24343 (exit $ac_status); } && {
24344 test -z "$ac_c_werror_flag" ||
24345 test ! -s conftest.err
24346 } && test -s conftest.$ac_objext; then
24347 ac_header_compiler=yes
24349 echo "$as_me: failed program was:" >&5
24350 sed 's/^/| /' conftest.$ac_ext >&5
24352 ac_header_compiler=no
24355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24356 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24357 echo "${ECHO_T}$ac_header_compiler" >&6; }
24359 # Is the header present?
24360 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24361 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24362 cat >conftest.$ac_ext <<_ACEOF
24365 cat confdefs.h >>conftest.$ac_ext
24366 cat >>conftest.$ac_ext <<_ACEOF
24367 /* end confdefs.h. */
24368 #include <$ac_header>
24370 if { (ac_try="$ac_cpp conftest.$ac_ext"
24371 case "(($ac_try" in
24372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24373 *) ac_try_echo=$ac_try;;
24375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24376 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24378 grep -v '^ *+' conftest.er1 >conftest.err
24380 cat conftest.err >&5
24381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24382 (exit $ac_status); } >/dev/null && {
24383 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24384 test ! -s conftest.err
24386 ac_header_preproc=yes
24388 echo "$as_me: failed program was:" >&5
24389 sed 's/^/| /' conftest.$ac_ext >&5
24391 ac_header_preproc=no
24394 rm -f conftest.err conftest.$ac_ext
24395 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24396 echo "${ECHO_T}$ac_header_preproc" >&6; }
24398 # So? What about this header?
24399 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24401 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24402 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24404 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24405 ac_header_preproc=yes
24408 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24409 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24410 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24411 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24412 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24413 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24414 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24415 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24417 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24418 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24419 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24421 ## -------------------------------------------------- ##
24422 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
24423 ## -------------------------------------------------- ##
24425 ) | sed "s/^/$as_me: WARNING: /" >&2
24428 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24431 echo $ECHO_N "(cached) $ECHO_C" >&6
24433 eval "$as_ac_Header=\$ac_header_preproc"
24435 ac_res=`eval echo '${'$as_ac_Header'}'`
24436 { echo "$as_me:$LINENO: result: $ac_res" >&5
24437 echo "${ECHO_T}$ac_res" >&6; }
24440 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24441 cat >>confdefs.h <<_ACEOF
24442 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24449 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
24450 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
24451 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
24452 echo $ECHO_N "(cached) $ECHO_C" >&6
24454 ac_check_lib_save_LIBS=$LIBS
24455 LIBS="-lpthread $LIBS"
24456 cat >conftest.$ac_ext <<_ACEOF
24459 cat confdefs.h >>conftest.$ac_ext
24460 cat >>conftest.$ac_ext <<_ACEOF
24461 /* end confdefs.h. */
24463 /* Override any GCC internal prototype to avoid an error.
24464 Use char because int might match the return type of a GCC
24465 builtin and then its argument prototype would still apply. */
24469 char pthread_create ();
24473 return pthread_create ();
24478 rm -f conftest.$ac_objext conftest$ac_exeext
24479 if { (ac_try="$ac_link"
24480 case "(($ac_try" in
24481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24482 *) ac_try_echo=$ac_try;;
24484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24485 (eval "$ac_link") 2>conftest.er1
24487 grep -v '^ *+' conftest.er1 >conftest.err
24489 cat conftest.err >&5
24490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24491 (exit $ac_status); } && {
24492 test -z "$ac_c_werror_flag" ||
24493 test ! -s conftest.err
24494 } && test -s conftest$ac_exeext &&
24495 $as_test_x conftest$ac_exeext; then
24496 ac_cv_lib_pthread_pthread_create=yes
24498 echo "$as_me: failed program was:" >&5
24499 sed 's/^/| /' conftest.$ac_ext >&5
24501 ac_cv_lib_pthread_pthread_create=no
24504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24505 conftest$ac_exeext conftest.$ac_ext
24506 LIBS=$ac_check_lib_save_LIBS
24508 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
24509 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
24510 if test $ac_cv_lib_pthread_pthread_create = yes; then
24518 if test ".$mcsc" = .yes; then
24520 elif test ".$pthread" = .yes; then
24523 ac_header=windows.h
24524 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24525 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24526 windows_context=yes
24528 { { echo "$as_me:$LINENO: error: no appropriate backend found" >&5
24529 echo "$as_me: error: no appropriate backend found" >&2;}
24530 { (exit 1); exit 1; }; }
24533 if test x$windows_context = xyes; then
24535 IS_WINDOWS_FALSE='#'
24537 IS_WINDOWS_TRUE='#'
24544 { echo "$as_me:$LINENO: checking what kind of backend should we use" >&5
24545 echo $ECHO_N "checking what kind of backend should we use... $ECHO_C" >&6; }
24548 # Check whether --with-pthread was given.
24549 if test "${with_pthread+set}" = set; then
24550 withval=$with_pthread; with_context=pthread
24554 # Check whether --with-pthread was given.
24555 if test "${with_pthread+set}" = set; then
24556 withval=$with_pthread; with_context=pthread
24561 # Check whether --with-context was given.
24562 if test "${with_context+set}" = set; then
24563 withval=$with_context;
24569 if test "x$with_context$mcsc" = "xucontextno" ; then
24570 { { echo "$as_me:$LINENO: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&5
24571 echo "$as_me: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&2;}
24572 { (exit 77); exit 77; }; }
24575 case $with_context in
24580 auto) with_context=ucontext;;
24581 *) { { echo "$as_me:$LINENO: error: --with-context must be either ucontext or pthread" >&5
24582 echo "$as_me: error: --with-context must be either ucontext or pthread" >&2;}
24583 { (exit 1); exit 1; }; } ;;
24586 if test "x$with_context" = "xucontext" ; then
24587 if test ".$mcsc" = .yes; then
24588 { echo "$as_me:$LINENO: result: found working ucontext. Great!" >&5
24589 echo "${ECHO_T}found working ucontext. Great!" >&6; }
24591 cat >>confdefs.h <<\_ACEOF
24592 #define CONTEXT_UCONTEXT 1
24596 if test ".$windows_context" = .yes ; then
24597 { echo "$as_me:$LINENO: result: use windows context portability layer." >&5
24598 echo "${ECHO_T}use windows context portability layer." >&6; }
24599 with_context=windows
24601 { echo "$as_me:$LINENO: result: no working ucontext found. Try pthreads as a fallback" >&5
24602 echo "${ECHO_T}no working ucontext found. Try pthreads as a fallback" >&6; }
24603 with_context=pthread
24608 if test "x$with_context" = "xpthreads"; then
24609 with_context=pthread
24611 if test "x$with_context" = "xpthread"; then
24613 for ac_header in pthread.h
24615 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24617 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24620 echo $ECHO_N "(cached) $ECHO_C" >&6
24622 ac_res=`eval echo '${'$as_ac_Header'}'`
24623 { echo "$as_me:$LINENO: result: $ac_res" >&5
24624 echo "${ECHO_T}$ac_res" >&6; }
24626 # Is the header compilable?
24627 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24628 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24629 cat >conftest.$ac_ext <<_ACEOF
24632 cat confdefs.h >>conftest.$ac_ext
24633 cat >>conftest.$ac_ext <<_ACEOF
24634 /* end confdefs.h. */
24635 $ac_includes_default
24636 #include <$ac_header>
24638 rm -f conftest.$ac_objext
24639 if { (ac_try="$ac_compile"
24640 case "(($ac_try" in
24641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24642 *) ac_try_echo=$ac_try;;
24644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24645 (eval "$ac_compile") 2>conftest.er1
24647 grep -v '^ *+' conftest.er1 >conftest.err
24649 cat conftest.err >&5
24650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24651 (exit $ac_status); } && {
24652 test -z "$ac_c_werror_flag" ||
24653 test ! -s conftest.err
24654 } && test -s conftest.$ac_objext; then
24655 ac_header_compiler=yes
24657 echo "$as_me: failed program was:" >&5
24658 sed 's/^/| /' conftest.$ac_ext >&5
24660 ac_header_compiler=no
24663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24664 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24665 echo "${ECHO_T}$ac_header_compiler" >&6; }
24667 # Is the header present?
24668 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24669 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24670 cat >conftest.$ac_ext <<_ACEOF
24673 cat confdefs.h >>conftest.$ac_ext
24674 cat >>conftest.$ac_ext <<_ACEOF
24675 /* end confdefs.h. */
24676 #include <$ac_header>
24678 if { (ac_try="$ac_cpp conftest.$ac_ext"
24679 case "(($ac_try" in
24680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24681 *) ac_try_echo=$ac_try;;
24683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24684 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24686 grep -v '^ *+' conftest.er1 >conftest.err
24688 cat conftest.err >&5
24689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24690 (exit $ac_status); } >/dev/null && {
24691 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24692 test ! -s conftest.err
24694 ac_header_preproc=yes
24696 echo "$as_me: failed program was:" >&5
24697 sed 's/^/| /' conftest.$ac_ext >&5
24699 ac_header_preproc=no
24702 rm -f conftest.err conftest.$ac_ext
24703 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24704 echo "${ECHO_T}$ac_header_preproc" >&6; }
24706 # So? What about this header?
24707 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24709 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24710 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24712 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24713 ac_header_preproc=yes
24716 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24717 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24718 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24719 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24720 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24721 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24722 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24723 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24725 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24726 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24727 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24729 ## -------------------------------------------------- ##
24730 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
24731 ## -------------------------------------------------- ##
24733 ) | sed "s/^/$as_me: WARNING: /" >&2
24736 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24738 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24739 echo $ECHO_N "(cached) $ECHO_C" >&6
24741 eval "$as_ac_Header=\$ac_header_preproc"
24743 ac_res=`eval echo '${'$as_ac_Header'}'`
24744 { echo "$as_me:$LINENO: result: $ac_res" >&5
24745 echo "${ECHO_T}$ac_res" >&6; }
24748 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24749 cat >>confdefs.h <<_ACEOF
24750 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24758 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
24759 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
24760 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
24761 echo $ECHO_N "(cached) $ECHO_C" >&6
24763 ac_check_lib_save_LIBS=$LIBS
24764 LIBS="-lpthread $LIBS"
24765 cat >conftest.$ac_ext <<_ACEOF
24768 cat confdefs.h >>conftest.$ac_ext
24769 cat >>conftest.$ac_ext <<_ACEOF
24770 /* end confdefs.h. */
24772 /* Override any GCC internal prototype to avoid an error.
24773 Use char because int might match the return type of a GCC
24774 builtin and then its argument prototype would still apply. */
24778 char pthread_create ();
24782 return pthread_create ();
24787 rm -f conftest.$ac_objext conftest$ac_exeext
24788 if { (ac_try="$ac_link"
24789 case "(($ac_try" in
24790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24791 *) ac_try_echo=$ac_try;;
24793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24794 (eval "$ac_link") 2>conftest.er1
24796 grep -v '^ *+' conftest.er1 >conftest.err
24798 cat conftest.err >&5
24799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24800 (exit $ac_status); } && {
24801 test -z "$ac_c_werror_flag" ||
24802 test ! -s conftest.err
24803 } && test -s conftest$ac_exeext &&
24804 $as_test_x conftest$ac_exeext; then
24805 ac_cv_lib_pthread_pthread_create=yes
24807 echo "$as_me: failed program was:" >&5
24808 sed 's/^/| /' conftest.$ac_ext >&5
24810 ac_cv_lib_pthread_pthread_create=no
24813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24814 conftest$ac_exeext conftest.$ac_ext
24815 LIBS=$ac_check_lib_save_LIBS
24817 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
24818 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
24819 if test $ac_cv_lib_pthread_pthread_create = yes; then
24820 cat >>confdefs.h <<_ACEOF
24821 #define HAVE_LIBPTHREAD 1
24824 LIBS="-lpthread $LIBS"
24827 { { echo "$as_me:$LINENO: error: Cannot find pthreads (try --with-context=ucontext if you haven't already tried)." >&5
24828 echo "$as_me: error: Cannot find pthreads (try --with-context=ucontext if you haven't already tried)." >&2;}
24829 { (exit 1); exit 1; }; }
24833 cat >>confdefs.h <<\_ACEOF
24834 #define CONTEXT_THREADS 1
24837 { echo "$as_me:$LINENO: result: You have pthreads and requested for them. Fine." >&5
24838 echo "${ECHO_T}You have pthreads and requested for them. Fine." >&6; }
24840 if test "x$with_context" != xucontext; then
24841 CONTEXT_THREADS_TRUE=
24842 CONTEXT_THREADS_FALSE='#'
24844 CONTEXT_THREADS_TRUE='#'
24845 CONTEXT_THREADS_FALSE=
24850 if test "x$with_context" = "xucontext" ; then
24851 { echo "$as_me:$LINENO: checking for direction of stack growth" >&5
24852 echo $ECHO_N "checking for direction of stack growth... $ECHO_C" >&6; }
24853 if test "${ac_cv_check_stackgrowth+set}" = set; then
24854 echo $ECHO_N "(cached) $ECHO_C" >&6
24858 if test "$cross_compiling" = yes; then
24859 ac_cv_check_stackgrowth=down
24862 cat >conftest.$ac_ext <<_ACEOF
24865 cat confdefs.h >>conftest.$ac_ext
24866 cat >>conftest.$ac_ext <<_ACEOF
24867 /* end confdefs.h. */
24870 #include <stdlib.h>
24871 static int iterate = 10;
24872 static int growsdown(int *x)
24882 int main(int argc, char *argv[])
24886 if ((f = fopen("conftestval", "w")) == NULL)
24888 fprintf(f, "%s\n", growsdown(&x) ? "down" : "up");;
24895 rm -f conftest$ac_exeext
24896 if { (ac_try="$ac_link"
24897 case "(($ac_try" in
24898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24899 *) ac_try_echo=$ac_try;;
24901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24902 (eval "$ac_link") 2>&5
24904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24905 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24906 { (case "(($ac_try" in
24907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24908 *) ac_try_echo=$ac_try;;
24910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24911 (eval "$ac_try") 2>&5
24913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24914 (exit $ac_status); }; }; then
24915 ac_cv_check_stackgrowth=`cat conftestval`
24917 echo "$as_me: program exited with status $ac_status" >&5
24918 echo "$as_me: failed program was:" >&5
24919 sed 's/^/| /' conftest.$ac_ext >&5
24921 ( exit $ac_status )
24922 ac_cv_check_stackgrowth=down
24924 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24929 { echo "$as_me:$LINENO: result: $ac_cv_check_stackgrowth" >&5
24930 echo "${ECHO_T}$ac_cv_check_stackgrowth" >&6; }
24931 if test ".$ac_cv_check_stackgrowth" = ".down"; then
24937 cat >>confdefs.h <<_ACEOF
24938 #define PTH_STACKGROWTH $val
24942 if test ".$ac_cv_check_stackgrowth" = ".down"; then
24943 PTH_STACK_GROWTH="down"
24945 PTH_STACK_GROWTH="up"
24953 for ac_func in makecontext
24955 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24956 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24957 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24958 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24959 echo $ECHO_N "(cached) $ECHO_C" >&6
24961 cat >conftest.$ac_ext <<_ACEOF
24964 cat confdefs.h >>conftest.$ac_ext
24965 cat >>conftest.$ac_ext <<_ACEOF
24966 /* end confdefs.h. */
24967 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24968 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24969 #define $ac_func innocuous_$ac_func
24971 /* System header to define __stub macros and hopefully few prototypes,
24972 which can conflict with char $ac_func (); below.
24973 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24974 <limits.h> exists even on freestanding compilers. */
24977 # include <limits.h>
24979 # include <assert.h>
24984 /* Override any GCC internal prototype to avoid an error.
24985 Use char because int might match the return type of a GCC
24986 builtin and then its argument prototype would still apply. */
24991 /* The GNU C library defines this for functions which it implements
24992 to always fail with ENOSYS. Some functions are actually named
24993 something starting with __ and the normal name is an alias. */
24994 #if defined __stub_$ac_func || defined __stub___$ac_func
25001 return $ac_func ();
25006 rm -f conftest.$ac_objext conftest$ac_exeext
25007 if { (ac_try="$ac_link"
25008 case "(($ac_try" in
25009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25010 *) ac_try_echo=$ac_try;;
25012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25013 (eval "$ac_link") 2>conftest.er1
25015 grep -v '^ *+' conftest.er1 >conftest.err
25017 cat conftest.err >&5
25018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25019 (exit $ac_status); } && {
25020 test -z "$ac_c_werror_flag" ||
25021 test ! -s conftest.err
25022 } && test -s conftest$ac_exeext &&
25023 $as_test_x conftest$ac_exeext; then
25024 eval "$as_ac_var=yes"
25026 echo "$as_me: failed program was:" >&5
25027 sed 's/^/| /' conftest.$ac_ext >&5
25029 eval "$as_ac_var=no"
25032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25033 conftest$ac_exeext conftest.$ac_ext
25035 ac_res=`eval echo '${'$as_ac_var'}'`
25036 { echo "$as_me:$LINENO: result: $ac_res" >&5
25037 echo "${ECHO_T}$ac_res" >&6; }
25038 if test `eval echo '${'$as_ac_var'}'` = yes; then
25039 cat >>confdefs.h <<_ACEOF
25040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25047 { echo "$as_me:$LINENO: checking for stack setup via makecontext" >&5
25048 echo $ECHO_N "checking for stack setup via makecontext... $ECHO_C" >&6; }
25049 if test "${ac_cv_stacksetup_makecontext+set}" = set; then
25050 echo $ECHO_N "(cached) $ECHO_C" >&6
25053 if test ".$ac_cv_func_makecontext" = .no; then
25054 ac_cv_stacksetup_makecontext="N.A.:/*N.A.*/,/*N.A.*/"
25057 CFLAGS="$CFLAGS -DTEST_makecontext"
25059 if test "$cross_compiling" = yes; then
25061 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
25064 cat >conftest.$ac_ext <<_ACEOF
25067 cat confdefs.h >>conftest.$ac_ext
25068 cat >>conftest.$ac_ext <<_ACEOF
25069 /* end confdefs.h. */
25072 #include <stdlib.h>
25073 #include <string.h>
25074 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25075 #include <sys/types.h>
25076 #include <signal.h>
25077 #include <unistd.h>
25079 #if defined(TEST_makecontext)
25080 #include <ucontext.h>
25089 static volatile char *handler_addr = (char *)0xDEAD;
25090 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25091 static volatile int handler_done = 0;
25092 void handler(int sig)
25094 char garbage[1024];
25097 for (i = 0; i < 1024; i++)
25099 handler_addr = (char *)&dummy;
25104 #if defined(TEST_makecontext)
25105 static ucontext_t uc_handler;
25106 static ucontext_t uc_main;
25109 char garbage[1024];
25112 for (i = 0; i < 1024; i++)
25114 handler_addr = (char *)&dummy;
25115 swapcontext(&uc_handler, &uc_main);
25119 int main(int argc, char *argv[])
25128 skbuf = (char *)malloc(sksize*2+2*sizeof(union alltypes));
25131 for (i = 0; i < sksize*2+2*sizeof(union alltypes); i++)
25133 skaddr = skbuf+sizeof(union alltypes);
25134 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25136 struct sigaction sa;
25137 #if defined(TEST_sigstack)
25138 struct sigstack ss;
25139 #elif defined(TEST_sigaltstack) && defined(HAVE_STACK_T)
25142 struct sigaltstack ss;
25144 #if defined(TEST_sigstack)
25145 ss.ss_sp = (void *)(skaddr + sksize);
25147 if (sigstack(&ss, NULL) < 0)
25149 #elif defined(TEST_sigaltstack)
25150 ss.ss_sp = (void *)(skaddr + sksize);
25151 ss.ss_size = sksize;
25153 if (sigaltstack(&ss, NULL) < 0)
25156 memset((void *)&sa, 0, sizeof(struct sigaction));
25157 sa.sa_handler = handler;
25158 sa.sa_flags = SA_ONSTACK;
25159 sigemptyset(&sa.sa_mask);
25160 sigaction(SIGUSR1, &sa, NULL);
25161 kill(getpid(), SIGUSR1);
25162 while (!handler_done)
25166 #if defined(TEST_makecontext)
25168 if (getcontext(&uc_handler) != 0)
25170 uc_handler.uc_link = NULL;
25171 uc_handler.uc_stack.ss_sp = (void *)(skaddr + sksize);
25172 uc_handler.uc_stack.ss_size = sksize;
25173 uc_handler.uc_stack.ss_flags = 0;
25174 makecontext(&uc_handler, handler, 1);
25175 swapcontext(&uc_main, &uc_handler);
25178 if (handler_addr == (char *)0xDEAD)
25180 if (handler_addr < skaddr+sksize) {
25181 /* stack was placed into lower area */
25182 if (*(skaddr+sksize) != 'A')
25183 sprintf(result, "(skaddr)+(sksize)-%d,(sksize)-%d",
25184 sizeof(union alltypes), sizeof(union alltypes));
25186 strcpy(result, "(skaddr)+(sksize),(sksize)");
25189 /* stack was placed into higher area */
25190 if (*(skaddr+sksize*2) != 'A')
25191 sprintf(result, "(skaddr),(sksize)-%d", sizeof(union alltypes));
25193 strcpy(result, "(skaddr),(sksize)");
25195 if ((f = fopen("conftestval", "w")) == NULL)
25197 fprintf(f, "%s\n", result);
25203 rm -f conftest$ac_exeext
25204 if { (ac_try="$ac_link"
25205 case "(($ac_try" in
25206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25207 *) ac_try_echo=$ac_try;;
25209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25210 (eval "$ac_link") 2>&5
25212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25213 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25214 { (case "(($ac_try" in
25215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25216 *) ac_try_echo=$ac_try;;
25218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25219 (eval "$ac_try") 2>&5
25221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25222 (exit $ac_status); }; }; then
25224 ac_cv_stacksetup_makecontext=`cat conftestval`
25225 ac_cv_stacksetup_makecontext="ok:$ac_cv_stacksetup_makecontext"
25228 echo "$as_me: program exited with status $ac_status" >&5
25229 echo "$as_me: failed program was:" >&5
25230 sed 's/^/| /' conftest.$ac_ext >&5
25232 ( exit $ac_status )
25234 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
25237 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25245 type=`echo $ac_cv_stacksetup_makecontext | sed -e 's;:.*$;;'`
25246 addr=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;,.*$;;'`
25247 size=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;^.*,;;'`
25248 pth_skaddr_makecontext="#define pth_skaddr_makecontext(skaddr,sksize) ($addr)"
25249 pth_sksize_makecontext="#define pth_sksize_makecontext(skaddr,sksize) ($size)"
25250 { echo "$as_me:$LINENO: result: $type" >&5
25251 echo "${ECHO_T}$type" >&6; }
25252 if test ".$verbose" = .yes; then
25253 { echo "$as_me:$LINENO: result: $pth_skaddr_makecontext" >&5
25254 echo "${ECHO_T} $pth_skaddr_makecontext" >&6; }
25257 if test ".$verbose" = .yes; then
25258 { echo "$as_me:$LINENO: result: $pth_sksize_makecontext" >&5
25259 echo "${ECHO_T} $pth_sksize_makecontext" >&6; }
25265 #########################################
25266 ## Check for libraries extra-dependencies
25270 { echo "$as_me:$LINENO: result: " >&5
25271 echo "${ECHO_T}" >&6; }
25272 { echo "$as_me:$LINENO: result: ${T_MD}Checking extra libraries dependencies...${T_ME}" >&5
25273 echo "${ECHO_T}${T_MD}Checking extra libraries dependencies...${T_ME}" >&6; }
25280 if test xpthread=xyes ; then
25281 # if the pthreads are usable
25282 if test "x$with_context" = "xpthread" ; then
25283 # if we use them to implement the xbt_context
25284 SIMGRID_DEP="-lpthread"
25286 # we need them in any case for the gras lib (which is multithreaded), but on windows (of course)
25287 if test "x$with_context" != "xwindows" ; then
25288 GRAS_DEP="-lpthread"
25292 #########################################
25293 ## Build optional modules (gtnets)
25297 # Check whether --with-gtnets was given.
25298 if test "${with_gtnets+set}" = set; then
25299 withval=$with_gtnets; gtnets_path="$withval"
25304 if test "x$gtnets_path" = "xno" ; then
25305 { echo "$as_me:$LINENO: result: Eventually you will come to GTNetS." >&5
25306 echo "${ECHO_T}Eventually you will come to GTNetS." >&6; }
25308 { echo "$as_me:$LINENO: result: ***** You have decided to use the experimental GTNetS. We hope you know what you're doing.. *****" >&5
25309 echo "${ECHO_T}***** You have decided to use the experimental GTNetS. We hope you know what you're doing.. *****" >&6; }
25310 { echo "$as_me:$LINENO: checking for gtnets" >&5
25311 echo $ECHO_N "checking for gtnets... $ECHO_C" >&6; }
25313 ac_cpp='$CXXCPP $CPPFLAGS'
25314 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25315 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25316 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25318 GTNETS_LDFLAGS="-lgtnets -L$gtnets_path/lib"
25319 GTNETS_CPPFLAGS="-I$gtnets_path/include -I$gtnets_path/include/gtnets"
25320 LDFLAGS_SAV=$LDFLAGS
25321 CPPFLAGS_SAV=$CPPFLAGS
25322 CPPFLAGS+=$GTNETS_CPPFLAGS
25323 LDFLAGS+=$GTNETS_LDFLAGS
25324 cat >conftest.$ac_ext <<_ACEOF
25327 cat confdefs.h >>conftest.$ac_ext
25328 cat >>conftest.$ac_ext <<_ACEOF
25329 /* end confdefs.h. */
25330 #include <simulator.h>
25335 Simulator s; s.RunUntilNextCompletion();
25340 rm -f conftest.$ac_objext conftest$ac_exeext
25341 if { (ac_try="$ac_link"
25342 case "(($ac_try" in
25343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25344 *) ac_try_echo=$ac_try;;
25346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25347 (eval "$ac_link") 2>conftest.er1
25349 grep -v '^ *+' conftest.er1 >conftest.err
25351 cat conftest.err >&5
25352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25353 (exit $ac_status); } && {
25354 test -z "$ac_cxx_werror_flag" ||
25355 test ! -s conftest.err
25356 } && test -s conftest$ac_exeext &&
25357 $as_test_x conftest$ac_exeext; then
25360 echo "$as_me: failed program was:" >&5
25361 sed 's/^/| /' conftest.$ac_ext >&5
25366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25367 conftest$ac_exeext conftest.$ac_ext
25368 CPPFLAGS=$CPPFLAGS_SAV
25369 LDFLAGS=$LDFLAGS_SAV
25371 ac_cpp='$CPP $CPPFLAGS'
25372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25377 if test "x$gtnets" = xyes ; then
25378 AM_CPPFLAGS="$AM_CPPFLAGS $GTNETS_CPPFLAGS"
25379 SIMGRID_DEP="$SIMGRID_DEP $GTNETS_LDFLAGS"
25380 { echo "$as_me:$LINENO: result: Found working gtnets library." >&5
25381 echo "${ECHO_T}Found working gtnets library." >&6; }
25383 cat >>confdefs.h <<\_ACEOF
25384 #define HAVE_GTNETS 1
25388 { echo "$as_me:$LINENO: result: Could not find any working gtnets library or not patched version" >&5
25389 echo "${ECHO_T}Could not find any working gtnets library or not patched version" >&6; }
25392 if test "x$gtnets" != xno; then
25394 HAVE_GTNETS_FALSE='#'
25396 HAVE_GTNETS_TRUE='#'
25401 #########################################
25402 ## Build optional modules (csdp)
25406 # Check whether --with-csdp was given.
25407 if test "${with_csdp+set}" = set; then
25408 withval=$with_csdp; csdp_path="$withval"
25413 if test "x$csdp_path" = "xno" ; then
25414 { echo "$as_me:$LINENO: result: Eventually you will come to csdp." >&5
25415 echo "${ECHO_T}Eventually you will come to csdp." >&6; }
25417 { echo "$as_me:$LINENO: result: ***** You have decided to use csdp. Let's check whether it works or not *****" >&5
25418 echo "${ECHO_T}***** You have decided to use csdp. Let's check whether it works or not *****" >&6; }
25419 { echo "$as_me:$LINENO: checking for csdp" >&5
25420 echo $ECHO_N "checking for csdp... $ECHO_C" >&6; }
25421 CSDP_LDFLAGS="-L$csdp_path/lib -lsdp -llapack -lblas -lm"
25422 CSDP_CPPFLAGS="-I$csdp_path/include -I$csdp_path/include/csdp"
25424 { echo "$as_me:$LINENO: checking for easy_sdp in -lsdp" >&5
25425 echo $ECHO_N "checking for easy_sdp in -lsdp... $ECHO_C" >&6; }
25426 if test "${ac_cv_lib_sdp_easy_sdp+set}" = set; then
25427 echo $ECHO_N "(cached) $ECHO_C" >&6
25429 ac_check_lib_save_LIBS=$LIBS
25430 LIBS="-lsdp $CSDP_LDFLAGS $LIBS"
25431 cat >conftest.$ac_ext <<_ACEOF
25434 cat confdefs.h >>conftest.$ac_ext
25435 cat >>conftest.$ac_ext <<_ACEOF
25436 /* end confdefs.h. */
25438 /* Override any GCC internal prototype to avoid an error.
25439 Use char because int might match the return type of a GCC
25440 builtin and then its argument prototype would still apply. */
25448 return easy_sdp ();
25453 rm -f conftest.$ac_objext conftest$ac_exeext
25454 if { (ac_try="$ac_link"
25455 case "(($ac_try" in
25456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25457 *) ac_try_echo=$ac_try;;
25459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25460 (eval "$ac_link") 2>conftest.er1
25462 grep -v '^ *+' conftest.er1 >conftest.err
25464 cat conftest.err >&5
25465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25466 (exit $ac_status); } && {
25467 test -z "$ac_c_werror_flag" ||
25468 test ! -s conftest.err
25469 } && test -s conftest$ac_exeext &&
25470 $as_test_x conftest$ac_exeext; then
25471 ac_cv_lib_sdp_easy_sdp=yes
25473 echo "$as_me: failed program was:" >&5
25474 sed 's/^/| /' conftest.$ac_ext >&5
25476 ac_cv_lib_sdp_easy_sdp=no
25479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25480 conftest$ac_exeext conftest.$ac_ext
25481 LIBS=$ac_check_lib_save_LIBS
25483 { echo "$as_me:$LINENO: result: $ac_cv_lib_sdp_easy_sdp" >&5
25484 echo "${ECHO_T}$ac_cv_lib_sdp_easy_sdp" >&6; }
25485 if test $ac_cv_lib_sdp_easy_sdp = yes; then
25492 CPPFLAGS_SAV=$CPPFLAGS
25493 CPPFLAGS+=$CSDP_CPPFLAGS
25494 if test "${ac_cv_header_declarations_h+set}" = set; then
25495 { echo "$as_me:$LINENO: checking for declarations.h" >&5
25496 echo $ECHO_N "checking for declarations.h... $ECHO_C" >&6; }
25497 if test "${ac_cv_header_declarations_h+set}" = set; then
25498 echo $ECHO_N "(cached) $ECHO_C" >&6
25500 { echo "$as_me:$LINENO: result: $ac_cv_header_declarations_h" >&5
25501 echo "${ECHO_T}$ac_cv_header_declarations_h" >&6; }
25503 # Is the header compilable?
25504 { echo "$as_me:$LINENO: checking declarations.h usability" >&5
25505 echo $ECHO_N "checking declarations.h usability... $ECHO_C" >&6; }
25506 cat >conftest.$ac_ext <<_ACEOF
25509 cat confdefs.h >>conftest.$ac_ext
25510 cat >>conftest.$ac_ext <<_ACEOF
25511 /* end confdefs.h. */
25512 $ac_includes_default
25513 #include <declarations.h>
25515 rm -f conftest.$ac_objext
25516 if { (ac_try="$ac_compile"
25517 case "(($ac_try" in
25518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25519 *) ac_try_echo=$ac_try;;
25521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25522 (eval "$ac_compile") 2>conftest.er1
25524 grep -v '^ *+' conftest.er1 >conftest.err
25526 cat conftest.err >&5
25527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25528 (exit $ac_status); } && {
25529 test -z "$ac_c_werror_flag" ||
25530 test ! -s conftest.err
25531 } && test -s conftest.$ac_objext; then
25532 ac_header_compiler=yes
25534 echo "$as_me: failed program was:" >&5
25535 sed 's/^/| /' conftest.$ac_ext >&5
25537 ac_header_compiler=no
25540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25541 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25542 echo "${ECHO_T}$ac_header_compiler" >&6; }
25544 # Is the header present?
25545 { echo "$as_me:$LINENO: checking declarations.h presence" >&5
25546 echo $ECHO_N "checking declarations.h presence... $ECHO_C" >&6; }
25547 cat >conftest.$ac_ext <<_ACEOF
25550 cat confdefs.h >>conftest.$ac_ext
25551 cat >>conftest.$ac_ext <<_ACEOF
25552 /* end confdefs.h. */
25553 #include <declarations.h>
25555 if { (ac_try="$ac_cpp conftest.$ac_ext"
25556 case "(($ac_try" in
25557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25558 *) ac_try_echo=$ac_try;;
25560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25561 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25563 grep -v '^ *+' conftest.er1 >conftest.err
25565 cat conftest.err >&5
25566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25567 (exit $ac_status); } >/dev/null && {
25568 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25569 test ! -s conftest.err
25571 ac_header_preproc=yes
25573 echo "$as_me: failed program was:" >&5
25574 sed 's/^/| /' conftest.$ac_ext >&5
25576 ac_header_preproc=no
25579 rm -f conftest.err conftest.$ac_ext
25580 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25581 echo "${ECHO_T}$ac_header_preproc" >&6; }
25583 # So? What about this header?
25584 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25586 { echo "$as_me:$LINENO: WARNING: declarations.h: accepted by the compiler, rejected by the preprocessor!" >&5
25587 echo "$as_me: WARNING: declarations.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25588 { echo "$as_me:$LINENO: WARNING: declarations.h: proceeding with the compiler's result" >&5
25589 echo "$as_me: WARNING: declarations.h: proceeding with the compiler's result" >&2;}
25590 ac_header_preproc=yes
25593 { echo "$as_me:$LINENO: WARNING: declarations.h: present but cannot be compiled" >&5
25594 echo "$as_me: WARNING: declarations.h: present but cannot be compiled" >&2;}
25595 { echo "$as_me:$LINENO: WARNING: declarations.h: check for missing prerequisite headers?" >&5
25596 echo "$as_me: WARNING: declarations.h: check for missing prerequisite headers?" >&2;}
25597 { echo "$as_me:$LINENO: WARNING: declarations.h: see the Autoconf documentation" >&5
25598 echo "$as_me: WARNING: declarations.h: see the Autoconf documentation" >&2;}
25599 { echo "$as_me:$LINENO: WARNING: declarations.h: section \"Present But Cannot Be Compiled\"" >&5
25600 echo "$as_me: WARNING: declarations.h: section \"Present But Cannot Be Compiled\"" >&2;}
25601 { echo "$as_me:$LINENO: WARNING: declarations.h: proceeding with the preprocessor's result" >&5
25602 echo "$as_me: WARNING: declarations.h: proceeding with the preprocessor's result" >&2;}
25603 { echo "$as_me:$LINENO: WARNING: declarations.h: in the future, the compiler will take precedence" >&5
25604 echo "$as_me: WARNING: declarations.h: in the future, the compiler will take precedence" >&2;}
25606 ## -------------------------------------------------- ##
25607 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
25608 ## -------------------------------------------------- ##
25610 ) | sed "s/^/$as_me: WARNING: /" >&2
25613 { echo "$as_me:$LINENO: checking for declarations.h" >&5
25614 echo $ECHO_N "checking for declarations.h... $ECHO_C" >&6; }
25615 if test "${ac_cv_header_declarations_h+set}" = set; then
25616 echo $ECHO_N "(cached) $ECHO_C" >&6
25618 ac_cv_header_declarations_h=$ac_header_preproc
25620 { echo "$as_me:$LINENO: result: $ac_cv_header_declarations_h" >&5
25621 echo "${ECHO_T}$ac_cv_header_declarations_h" >&6; }
25624 if test $ac_cv_header_declarations_h = yes; then
25631 CPPFLAGS=$CPPFLAGS_SAV
25635 if test "x$csdp_lib = xyes" -a "x$csdp_header = xyes" ; then
25640 if test "x$csdp" = xyes; then
25641 AM_CPPFLAGS="$AM_CPPFLAGS $CSDP_CPPFLAGS"
25642 SIMGRID_DEP="$SIMGRID_DEP $CSDP_LDFLAGS"
25643 { echo "$as_me:$LINENO: result: Found working sdp library." >&5
25644 echo "${ECHO_T}Found working sdp library." >&6; }
25646 cat >>confdefs.h <<\_ACEOF
25651 { echo "$as_me:$LINENO: result: Could not find any working sdp library." >&5
25652 echo "${ECHO_T}Could not find any working sdp library." >&6; }
25655 if test x$csdp != xno; then
25667 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
25668 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
25669 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
25670 echo $ECHO_N "(cached) $ECHO_C" >&6
25672 ac_check_lib_save_LIBS=$LIBS
25674 cat >conftest.$ac_ext <<_ACEOF
25677 cat confdefs.h >>conftest.$ac_ext
25678 cat >>conftest.$ac_ext <<_ACEOF
25679 /* end confdefs.h. */
25681 /* Override any GCC internal prototype to avoid an error.
25682 Use char because int might match the return type of a GCC
25683 builtin and then its argument prototype would still apply. */
25687 char gethostbyname ();
25691 return gethostbyname ();
25696 rm -f conftest.$ac_objext conftest$ac_exeext
25697 if { (ac_try="$ac_link"
25698 case "(($ac_try" in
25699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25700 *) ac_try_echo=$ac_try;;
25702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25703 (eval "$ac_link") 2>conftest.er1
25705 grep -v '^ *+' conftest.er1 >conftest.err
25707 cat conftest.err >&5
25708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25709 (exit $ac_status); } && {
25710 test -z "$ac_c_werror_flag" ||
25711 test ! -s conftest.err
25712 } && test -s conftest$ac_exeext &&
25713 $as_test_x conftest$ac_exeext; then
25714 ac_cv_lib_nsl_gethostbyname=yes
25716 echo "$as_me: failed program was:" >&5
25717 sed 's/^/| /' conftest.$ac_ext >&5
25719 ac_cv_lib_nsl_gethostbyname=no
25722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25723 conftest$ac_exeext conftest.$ac_ext
25724 LIBS=$ac_check_lib_save_LIBS
25726 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
25727 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
25728 if test $ac_cv_lib_nsl_gethostbyname = yes; then
25729 GRAS_DEP="$GRAS_DEP -lnsl"
25732 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
25733 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
25734 if test "${ac_cv_lib_socket_connect+set}" = set; then
25735 echo $ECHO_N "(cached) $ECHO_C" >&6
25737 ac_check_lib_save_LIBS=$LIBS
25738 LIBS="-lsocket $LIBS"
25739 cat >conftest.$ac_ext <<_ACEOF
25742 cat confdefs.h >>conftest.$ac_ext
25743 cat >>conftest.$ac_ext <<_ACEOF
25744 /* end confdefs.h. */
25746 /* Override any GCC internal prototype to avoid an error.
25747 Use char because int might match the return type of a GCC
25748 builtin and then its argument prototype would still apply. */
25761 rm -f conftest.$ac_objext conftest$ac_exeext
25762 if { (ac_try="$ac_link"
25763 case "(($ac_try" in
25764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25765 *) ac_try_echo=$ac_try;;
25767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25768 (eval "$ac_link") 2>conftest.er1
25770 grep -v '^ *+' conftest.er1 >conftest.err
25772 cat conftest.err >&5
25773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25774 (exit $ac_status); } && {
25775 test -z "$ac_c_werror_flag" ||
25776 test ! -s conftest.err
25777 } && test -s conftest$ac_exeext &&
25778 $as_test_x conftest$ac_exeext; then
25779 ac_cv_lib_socket_connect=yes
25781 echo "$as_me: failed program was:" >&5
25782 sed 's/^/| /' conftest.$ac_ext >&5
25784 ac_cv_lib_socket_connect=no
25787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25788 conftest$ac_exeext conftest.$ac_ext
25789 LIBS=$ac_check_lib_save_LIBS
25791 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
25792 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
25793 if test $ac_cv_lib_socket_connect = yes; then
25794 GRAS_DEP="$GRAS_DEP -lsocket"
25798 { echo "$as_me:$LINENO: checking for extra dependencies of libgras" >&5
25799 echo $ECHO_N "checking for extra dependencies of libgras... $ECHO_C" >&6; }
25801 *mingw* ) GRAS_DEP="$GRAS_DEP -lws2_32" ; SIMGRID_DEP="$SIMGRID_DEP -lws2_32";
25802 AM_CPPFLAGS="$AM_CPPFLAGS -DDLL_EXPORT"
25803 cat >>confdefs.h <<\_ACEOF
25804 #define CONTEXT_THREADS 1
25811 if test "x$GRAS_DEP" = x; then
25812 { echo "$as_me:$LINENO: result: none" >&5
25813 echo "${ECHO_T}none" >&6; }
25815 { echo "$as_me:$LINENO: result: $GRAS_DEP" >&5
25816 echo "${ECHO_T}$GRAS_DEP" >&6; }
25820 ##############################################
25821 ## Enhance maintainer mode and SUBST variables
25822 ## (must be placed after any compilation tests since our overprotective flags
25823 ## let some tests fail)
25825 # Check whether we are doing a regular build or a GRAMINE (minimal) one
25826 # Next line is modified by sed when building gramine source tree
25828 if test x$gramine_mode = xyes
25830 USE_MAINTAINER_MODE=no
25832 if test x$gramine_mode != xno; then
25834 GRAMINE_MODE_FALSE='#'
25836 GRAMINE_MODE_TRUE='#'
25837 GRAMINE_MODE_FALSE=
25842 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
25843 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
25844 # Check whether --enable-maintainer-mode was given.
25845 if test "${enable_maintainer_mode+set}" = set; then
25846 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
25848 USE_MAINTAINER_MODE=no
25851 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
25852 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
25853 if test $USE_MAINTAINER_MODE = yes; then
25854 MAINTAINER_MODE_TRUE=
25855 MAINTAINER_MODE_FALSE='#'
25857 MAINTAINER_MODE_TRUE='#'
25858 MAINTAINER_MODE_FALSE=
25861 MAINT=$MAINTAINER_MODE_TRUE
25864 if test x$USE_MAINTAINER_MODE = xyes
25866 # Maintainers have no choice ! I'm a BOFH, and I plainly assume. [Mt]
25867 enable_compile_warnings=yes
25870 # Check whether --enable-compile-warnings was given.
25871 if test "${enable_compile_warnings+set}" = set; then
25872 enableval=$enable_compile_warnings; enable_compile_warnings=$enableval
25874 enable_compile_warnings=no
25878 # Check whether --enable-compile-optimizations was given.
25879 if test "${enable_compile_optimizations+set}" = set; then
25880 enableval=$enable_compile_optimizations; enable_compile_optimizations=$enableval
25882 enable_compile_optimizations=auto
25886 # AC PROG CC tests whether -g is accepted.
25887 # Cool, but it also tries to set -O2 and -g.
25888 # I don't want it with gcc, but -O3 and -g2, and optimization only when asked by user
25891 if test "$CFLAGS" = "-g -O2" ; then
25894 if test "$CXXFLAGS" = "-g -O2" ; then
25897 if test "$GCJFLAGS" = "-g -O2" ; then
25902 if test "x$enable_compile_warnings" = "xyes" ; then
25903 { echo "$as_me:$LINENO: checking the warning flags for this compiler" >&5
25904 echo $ECHO_N "checking the warning flags for this compiler... $ECHO_C" >&6; }
25906 if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
25907 case " $CFLAGS " in
25909 *) warnCFLAGS="-Wall -Wunused" ;;
25912 ## -W is not all that useful. And it cannot be controlled
25913 ## with individual -Wno-xxx flags, unlike -Wall
25915 ##Â -Wformat=2 chokes on the snprintf replacement because the format is passed to real sprintf
25916 ## -Wshadow chokes on try{ try{} } constructs
25917 if test "x$enable_compile_warnings" = "xyes"; then
25918 warnCFLAGS=`echo $warnCFLAGS -Wmissing-prototypes -Wmissing-declarations \
25919 -Wpointer-arith -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings \
25920 -Wno-unused-function -Wno-strict-aliasing \
25923 # -Wno-unused-variable -Wno-unused-label
25926 { echo "$as_me:$LINENO: result: $warnCFLAGS" >&5
25927 echo "${ECHO_T}$warnCFLAGS" >&6; }
25928 # placed before since gcc remembers the last one on conflict
25929 CFLAGS="$warnCFLAGS $CFLAGS"
25932 if test "x$enable_compile_optimizations" = "xyes" ||
25933 test "x$enable_compile_optimizations" = "xauto" ; then
25934 { echo "$as_me:$LINENO: checking the optimization flags for this compiler" >&5
25935 echo $ECHO_N "checking the optimization flags for this compiler... $ECHO_C" >&6; }
25937 if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
25938 case " $CFLAGS " in
25940 *) optCFLAGS="$optCFLAGS -O3" ;;
25942 optCFLAGS="$optCFLAGS -finline-functions -ffast-math -funroll-loops -fno-strict-aliasing"
25944 GCC_VER=`gcc --version | head -n 1 | sed 's/^^0-9*\(^ *\).*$/\1/'`
25945 GCC_VER_MAJ=`echo $GCC_VER | sed 's/^\(.\).*$/\1/'`
25946 if test "x$target_cpu" = "xpowerpc" && test "x$GCC_VER_MAJ" == "x3" ; then
25947 # avoid gcc bug #12828, which apeared in 3.x branch and is fixed in 3.4.0
25948 # but the check would be too complicated to get 3.4.
25949 # Instead, rule out any 3.x compiler.
25951 # Note that the flag didn't exist before gcc 3.0
25952 optCFLAGS="$optCFLAGS -fno-loop-optimize"
25955 { echo "$as_me:$LINENO: result: $optCFLAGS" >&5
25956 echo "${ECHO_T}$optCFLAGS" >&6; }
25957 # Take it only if CFLAGS not explicitly set. Unless the flag was explicitly given
25958 if test "x$cflags_set" != "xyes" ; then
25959 CFLAGS="$optCFLAGS $CFLAGS"
25963 if test x$lt_cv_prog_gnu_ld = xyes ; then
25964 LD_DYNAMIC_FLAGS=-Wl,--export-dynamic
25984 { echo "$as_me:$LINENO: result: " >&5
25985 echo "${ECHO_T}" >&6; }
25986 { echo "$as_me:$LINENO: result: ${T_MD}Check for Java bindings...${T_ME}" >&5
25987 echo "${ECHO_T}${T_MD}Check for Java bindings...${T_ME}" >&6; }
25990 # Check whether --enable-java was given.
25991 if test "${enable_java+set}" = set; then
25992 enableval=$enable_java; want_java=$enableval
25997 if test "x$want_java" != "xyes" ; then
25998 { echo "$as_me:$LINENO: checking whether to compile java bindings" >&5
25999 echo $ECHO_N "checking whether to compile java bindings... $ECHO_C" >&6; }
26000 { echo "$as_me:$LINENO: result: disabled by user" >&5
26001 echo "${ECHO_T}disabled by user" >&6; }
26002 use_java="disabled by user"
26004 # Extract the first word of "javac", so it can be a program name with args.
26005 set dummy javac; ac_word=$2
26006 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26008 if test "${ac_cv_path_JAVAC+set}" = set; then
26009 echo $ECHO_N "(cached) $ECHO_C" >&6
26013 ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
26016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26017 for as_dir in $PATH
26020 test -z "$as_dir" && as_dir=.
26021 for ac_exec_ext in '' $ac_executable_extensions; do
26022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26023 ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext"
26024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26031 test -z "$ac_cv_path_JAVAC" && ac_cv_path_JAVAC="`which javac`"
26035 JAVAC=$ac_cv_path_JAVAC
26036 if test -n "$JAVAC"; then
26037 { echo "$as_me:$LINENO: result: $JAVAC" >&5
26038 echo "${ECHO_T}$JAVAC" >&6; }
26040 { echo "$as_me:$LINENO: result: no" >&5
26041 echo "${ECHO_T}no" >&6; }
26045 # Extract the first word of "java ", so it can be a program name with args.
26046 set dummy java ; ac_word=$2
26047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26049 if test "${ac_cv_path_JAVA+set}" = set; then
26050 echo $ECHO_N "(cached) $ECHO_C" >&6
26054 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.
26057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26058 for as_dir in $PATH
26061 test -z "$as_dir" && as_dir=.
26062 for ac_exec_ext in '' $ac_executable_extensions; do
26063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26064 ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext"
26065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26072 test -z "$ac_cv_path_JAVA" && ac_cv_path_JAVA="`which java`"
26076 JAVA=$ac_cv_path_JAVA
26077 if test -n "$JAVA"; then
26078 { echo "$as_me:$LINENO: result: $JAVA" >&5
26079 echo "${ECHO_T}$JAVA" >&6; }
26081 { echo "$as_me:$LINENO: result: no" >&5
26082 echo "${ECHO_T}no" >&6; }
26086 # Extract the first word of "jar ", so it can be a program name with args.
26087 set dummy jar ; ac_word=$2
26088 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26090 if test "${ac_cv_path_JAR+set}" = set; then
26091 echo $ECHO_N "(cached) $ECHO_C" >&6
26095 ac_cv_path_JAR="$JAR" # Let the user override the test with a path.
26098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26099 for as_dir in $PATH
26102 test -z "$as_dir" && as_dir=.
26103 for ac_exec_ext in '' $ac_executable_extensions; do
26104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26105 ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext"
26106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26113 test -z "$ac_cv_path_JAR" && ac_cv_path_JAR="`which jar`"
26117 JAR=$ac_cv_path_JAR
26118 if test -n "$JAR"; then
26119 { echo "$as_me:$LINENO: result: $JAR" >&5
26120 echo "${ECHO_T}$JAR" >&6; }
26122 { echo "$as_me:$LINENO: result: no" >&5
26123 echo "${ECHO_T}no" >&6; }
26128 for ac_header in jni.h
26130 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26132 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26134 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26135 echo $ECHO_N "(cached) $ECHO_C" >&6
26137 ac_res=`eval echo '${'$as_ac_Header'}'`
26138 { echo "$as_me:$LINENO: result: $ac_res" >&5
26139 echo "${ECHO_T}$ac_res" >&6; }
26141 # Is the header compilable?
26142 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26143 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26144 cat >conftest.$ac_ext <<_ACEOF
26147 cat confdefs.h >>conftest.$ac_ext
26148 cat >>conftest.$ac_ext <<_ACEOF
26149 /* end confdefs.h. */
26150 $ac_includes_default
26151 #include <$ac_header>
26153 rm -f conftest.$ac_objext
26154 if { (ac_try="$ac_compile"
26155 case "(($ac_try" in
26156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26157 *) ac_try_echo=$ac_try;;
26159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26160 (eval "$ac_compile") 2>conftest.er1
26162 grep -v '^ *+' conftest.er1 >conftest.err
26164 cat conftest.err >&5
26165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26166 (exit $ac_status); } && {
26167 test -z "$ac_c_werror_flag" ||
26168 test ! -s conftest.err
26169 } && test -s conftest.$ac_objext; then
26170 ac_header_compiler=yes
26172 echo "$as_me: failed program was:" >&5
26173 sed 's/^/| /' conftest.$ac_ext >&5
26175 ac_header_compiler=no
26178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26179 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26180 echo "${ECHO_T}$ac_header_compiler" >&6; }
26182 # Is the header present?
26183 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26184 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26185 cat >conftest.$ac_ext <<_ACEOF
26188 cat confdefs.h >>conftest.$ac_ext
26189 cat >>conftest.$ac_ext <<_ACEOF
26190 /* end confdefs.h. */
26191 #include <$ac_header>
26193 if { (ac_try="$ac_cpp conftest.$ac_ext"
26194 case "(($ac_try" in
26195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26196 *) ac_try_echo=$ac_try;;
26198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26199 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26201 grep -v '^ *+' conftest.er1 >conftest.err
26203 cat conftest.err >&5
26204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26205 (exit $ac_status); } >/dev/null && {
26206 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26207 test ! -s conftest.err
26209 ac_header_preproc=yes
26211 echo "$as_me: failed program was:" >&5
26212 sed 's/^/| /' conftest.$ac_ext >&5
26214 ac_header_preproc=no
26217 rm -f conftest.err conftest.$ac_ext
26218 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26219 echo "${ECHO_T}$ac_header_preproc" >&6; }
26221 # So? What about this header?
26222 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26224 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26225 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26227 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26228 ac_header_preproc=yes
26231 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26232 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26233 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26234 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26235 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26236 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26237 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26238 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26239 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26240 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26241 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26242 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26244 ## -------------------------------------------------- ##
26245 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
26246 ## -------------------------------------------------- ##
26248 ) | sed "s/^/$as_me: WARNING: /" >&2
26251 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26254 echo $ECHO_N "(cached) $ECHO_C" >&6
26256 eval "$as_ac_Header=\$ac_header_preproc"
26258 ac_res=`eval echo '${'$as_ac_Header'}'`
26259 { echo "$as_me:$LINENO: result: $ac_res" >&5
26260 echo "${ECHO_T}$ac_res" >&6; }
26263 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26264 cat >>confdefs.h <<_ACEOF
26265 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26272 { echo "$as_me:$LINENO: checking whether to compile java bindings" >&5
26273 echo $ECHO_N "checking whether to compile java bindings... $ECHO_C" >&6; }
26274 if test -n "$JAVAC" \
26275 && test -n "$JAVA" \
26276 && test -n "$JAR" \
26277 && test "x$ac_cv_header_jni_h" = "xyes" ; then
26283 { echo "$as_me:$LINENO: result: $use_java" >&5
26284 echo "${ECHO_T}$use_java" >&6; }
26286 if test "x$use_java" = "xyes"; then
26288 HAVE_JAVA_FALSE='#'
26295 #####################
26296 ## Check for programs
26300 { echo "$as_me:$LINENO: result: " >&5
26301 echo "${ECHO_T}" >&6; }
26302 { echo "$as_me:$LINENO: result: ${T_MD}Check for programs...${T_ME}" >&5
26303 echo "${ECHO_T}${T_MD}Check for programs...${T_ME}" >&6; }
26305 # Extract the first word of "bash", so it can be a program name with args.
26306 set dummy bash; ac_word=$2
26307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26309 if test "${ac_cv_prog_BASH+set}" = set; then
26310 echo $ECHO_N "(cached) $ECHO_C" >&6
26312 if test -n "$BASH"; then
26313 ac_cv_prog_BASH="$BASH" # Let the user override the test.
26315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26316 for as_dir in $PATH
26319 test -z "$as_dir" && as_dir=.
26320 for ac_exec_ext in '' $ac_executable_extensions; do
26321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26322 ac_cv_prog_BASH="`which bash`"
26323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26330 test -z "$ac_cv_prog_BASH" && ac_cv_prog_BASH="/bin/sh"
26333 BASH=$ac_cv_prog_BASH
26334 if test -n "$BASH"; then
26335 { echo "$as_me:$LINENO: result: $BASH" >&5
26336 echo "${ECHO_T}$BASH" >&6; }
26338 { echo "$as_me:$LINENO: result: no" >&5
26339 echo "${ECHO_T}no" >&6; }
26343 WARNING="This file is generated, do not edit"
26347 # Can we rebuild the parsers?
26348 # We really want flex and refuse other lex. So, the parser is portable and
26349 # does not induce extra lib dependency
26350 for ac_prog in flex lex
26352 # Extract the first word of "$ac_prog", so it can be a program name with args.
26353 set dummy $ac_prog; ac_word=$2
26354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26356 if test "${ac_cv_prog_LEX+set}" = set; then
26357 echo $ECHO_N "(cached) $ECHO_C" >&6
26359 if test -n "$LEX"; then
26360 ac_cv_prog_LEX="$LEX" # Let the user override the test.
26362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26363 for as_dir in $PATH
26366 test -z "$as_dir" && as_dir=.
26367 for ac_exec_ext in '' $ac_executable_extensions; do
26368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26369 ac_cv_prog_LEX="$ac_prog"
26370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26379 LEX=$ac_cv_prog_LEX
26380 if test -n "$LEX"; then
26381 { echo "$as_me:$LINENO: result: $LEX" >&5
26382 echo "${ECHO_T}$LEX" >&6; }
26384 { echo "$as_me:$LINENO: result: no" >&5
26385 echo "${ECHO_T}no" >&6; }
26389 test -n "$LEX" && break
26391 test -n "$LEX" || LEX=":"
26393 if test "x$LEX" != "x:"; then
26394 cat >conftest.l <<_ACEOF
26400 e { yyless (input () != 0); }
26401 f { unput (yytext[0]); }
26402 . { BEGIN INITIAL; }
26404 #ifdef YYTEXT_POINTER
26405 extern char *yytext;
26410 return ! yylex () + ! yywrap ();
26413 { (ac_try="$LEX conftest.l"
26414 case "(($ac_try" in
26415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26416 *) ac_try_echo=$ac_try;;
26418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26419 (eval "$LEX conftest.l") 2>&5
26421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26422 (exit $ac_status); }
26423 { echo "$as_me:$LINENO: checking lex output file root" >&5
26424 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
26425 if test "${ac_cv_prog_lex_root+set}" = set; then
26426 echo $ECHO_N "(cached) $ECHO_C" >&6
26429 if test -f lex.yy.c; then
26430 ac_cv_prog_lex_root=lex.yy
26431 elif test -f lexyy.c; then
26432 ac_cv_prog_lex_root=lexyy
26434 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
26435 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
26436 { (exit 1); exit 1; }; }
26439 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
26440 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
26441 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
26443 if test -z "${LEXLIB+set}"; then
26444 { echo "$as_me:$LINENO: checking lex library" >&5
26445 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
26446 if test "${ac_cv_lib_lex+set}" = set; then
26447 echo $ECHO_N "(cached) $ECHO_C" >&6
26451 ac_cv_lib_lex='none needed'
26452 for ac_lib in '' -lfl -ll; do
26453 LIBS="$ac_lib $ac_save_LIBS"
26454 cat >conftest.$ac_ext <<_ACEOF
26455 `cat $LEX_OUTPUT_ROOT.c`
26457 rm -f conftest.$ac_objext conftest$ac_exeext
26458 if { (ac_try="$ac_link"
26459 case "(($ac_try" in
26460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26461 *) ac_try_echo=$ac_try;;
26463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26464 (eval "$ac_link") 2>conftest.er1
26466 grep -v '^ *+' conftest.er1 >conftest.err
26468 cat conftest.err >&5
26469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26470 (exit $ac_status); } && {
26471 test -z "$ac_c_werror_flag" ||
26472 test ! -s conftest.err
26473 } && test -s conftest$ac_exeext &&
26474 $as_test_x conftest$ac_exeext; then
26475 ac_cv_lib_lex=$ac_lib
26477 echo "$as_me: failed program was:" >&5
26478 sed 's/^/| /' conftest.$ac_ext >&5
26483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26484 conftest$ac_exeext conftest.$ac_ext
26485 test "$ac_cv_lib_lex" != 'none needed' && break
26490 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
26491 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
26492 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
26496 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
26497 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
26498 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
26499 echo $ECHO_N "(cached) $ECHO_C" >&6
26501 # POSIX says lex can declare yytext either as a pointer or an array; the
26502 # default is implementation-dependent. Figure out which it is, since
26503 # not all implementations provide the %pointer and %array declarations.
26504 ac_cv_prog_lex_yytext_pointer=no
26506 LIBS="$LEXLIB $ac_save_LIBS"
26507 cat >conftest.$ac_ext <<_ACEOF
26508 #define YYTEXT_POINTER 1
26509 `cat $LEX_OUTPUT_ROOT.c`
26511 rm -f conftest.$ac_objext conftest$ac_exeext
26512 if { (ac_try="$ac_link"
26513 case "(($ac_try" in
26514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26515 *) ac_try_echo=$ac_try;;
26517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26518 (eval "$ac_link") 2>conftest.er1
26520 grep -v '^ *+' conftest.er1 >conftest.err
26522 cat conftest.err >&5
26523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26524 (exit $ac_status); } && {
26525 test -z "$ac_c_werror_flag" ||
26526 test ! -s conftest.err
26527 } && test -s conftest$ac_exeext &&
26528 $as_test_x conftest$ac_exeext; then
26529 ac_cv_prog_lex_yytext_pointer=yes
26531 echo "$as_me: failed program was:" >&5
26532 sed 's/^/| /' conftest.$ac_ext >&5
26537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26538 conftest$ac_exeext conftest.$ac_ext
26542 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
26543 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
26544 if test $ac_cv_prog_lex_yytext_pointer = yes; then
26546 cat >>confdefs.h <<\_ACEOF
26547 #define YYTEXT_POINTER 1
26551 rm -f conftest.l $LEX_OUTPUT_ROOT.c
26555 if test "$LEX" != flex; then
26556 { echo "$as_me:$LINENO: Flex not found. Parsers won't get updated." >&5
26557 echo "$as_me: Flex not found. Parsers won't get updated." >&6;}
26558 LEX=${am_missing_run}flex
26562 if test "x2.5.30" != "x" ; then
26563 FLEX_VERSION=`flex --version | sed -e 's/^[^0-9]*//' -e 's/[^0-9]*$//'`
26565 FLEX_VER_MAJ=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
26566 FLEX_VER_MED=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
26567 FLEX_VER_MIN=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
26569 WANT_VER_MAJ=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`;
26570 WANT_VER_MED=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`;
26571 WANT_VER_MIN=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`;
26573 if test "$FLEX_VER_MAJ" -lt "$WANT_VER_MAJ" ||
26574 test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -lt "$WANT_VER_MED" ||
26575 test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -eq "$WANT_VER_MED" -a "$FLEX_VER_MIN" -lt "$WANT_VER_MIN" ;
26577 { echo "$as_me:$LINENO: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&5
26578 echo "$as_me: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&6;}
26579 LEX=${am_missing_run}flex
26583 { echo "$as_me:$LINENO: Flex found. Parsers will get updated" >&5
26584 echo "$as_me: Flex found. Parsers will get updated" >&6;}
26590 # Can we rebuild the xml-lexers from the XML specification?
26591 # if not, simply touch the flex source files (which are distributed in
26592 # tarballs even if generated by flexml) and hope for the best.
26593 # Extract the first word of "flexml", so it can be a program name with args.
26594 set dummy flexml; ac_word=$2
26595 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26597 if test "${ac_cv_prog_FLEXML+set}" = set; then
26598 echo $ECHO_N "(cached) $ECHO_C" >&6
26600 if test -n "$FLEXML"; then
26601 ac_cv_prog_FLEXML="$FLEXML" # Let the user override the test.
26603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26604 for as_dir in $PATH
26607 test -z "$as_dir" && as_dir=.
26608 for ac_exec_ext in '' $ac_executable_extensions; do
26609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26610 ac_cv_prog_FLEXML="`which flexml`"
26611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26618 test -z "$ac_cv_prog_FLEXML" && ac_cv_prog_FLEXML="NOTFOUND"
26621 FLEXML=$ac_cv_prog_FLEXML
26622 if test -n "$FLEXML"; then
26623 { echo "$as_me:$LINENO: result: $FLEXML" >&5
26624 echo "${ECHO_T}$FLEXML" >&6; }
26626 { echo "$as_me:$LINENO: result: no" >&5
26627 echo "${ECHO_T}no" >&6; }
26631 if test x$FLEXML != xNOTFOUND; then
26633 HAVE_FLEXML_FALSE='#'
26635 HAVE_FLEXML_TRUE='#'
26640 if test x$USE_MAINTAINER_MODE = xyes
26642 # Check for doxygen when in maintainer mode since dist* targets fail
26644 # Extract the first word of "doxygen", so it can be a program name with args.
26645 set dummy doxygen; ac_word=$2
26646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26648 if test "${ac_cv_path_DOXYGEN+set}" = set; then
26649 echo $ECHO_N "(cached) $ECHO_C" >&6
26653 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
26656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26657 for as_dir in $PATH
26660 test -z "$as_dir" && as_dir=.
26661 for ac_exec_ext in '' $ac_executable_extensions; do
26662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26663 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
26664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26671 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="`which doxygen`"
26675 DOXYGEN=$ac_cv_path_DOXYGEN
26676 if test -n "$DOXYGEN"; then
26677 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
26678 echo "${ECHO_T}$DOXYGEN" >&6; }
26680 { echo "$as_me:$LINENO: result: no" >&5
26681 echo "${ECHO_T}no" >&6; }
26685 if test x$DOXYGEN = x ; then
26686 { { echo "$as_me:$LINENO: error: doxygen is mandatory in maintainer mode" >&5
26687 echo "$as_me: error: doxygen is mandatory in maintainer mode" >&2;}
26688 { (exit 1); exit 1; }; }
26692 # Can we extract really usable backtraces? (also need the popen function)
26693 # Extract the first word of "addr2line", so it can be a program name with args.
26694 set dummy addr2line; ac_word=$2
26695 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26697 if test "${ac_cv_path_ADDR2LINE+set}" = set; then
26698 echo $ECHO_N "(cached) $ECHO_C" >&6
26702 ac_cv_path_ADDR2LINE="$ADDR2LINE" # Let the user override the test with a path.
26705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26706 for as_dir in $PATH
26709 test -z "$as_dir" && as_dir=.
26710 for ac_exec_ext in '' $ac_executable_extensions; do
26711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26712 ac_cv_path_ADDR2LINE="$as_dir/$ac_word$ac_exec_ext"
26713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26723 ADDR2LINE=$ac_cv_path_ADDR2LINE
26724 if test -n "$ADDR2LINE"; then
26725 { echo "$as_me:$LINENO: result: $ADDR2LINE" >&5
26726 echo "${ECHO_T}$ADDR2LINE" >&6; }
26728 { echo "$as_me:$LINENO: result: no" >&5
26729 echo "${ECHO_T}no" >&6; }
26733 if test x$ADDR2LINE != x ; then
26735 cat >>confdefs.h <<_ACEOF
26736 #define ADDR2LINE "$ADDR2LINE"
26742 # Can we make status line about the compilation result?
26743 # Extract the first word of "md5sum", so it can be a program name with args.
26744 set dummy md5sum; ac_word=$2
26745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26747 if test "${ac_cv_prog_MD5SUM+set}" = set; then
26748 echo $ECHO_N "(cached) $ECHO_C" >&6
26750 if test -n "$MD5SUM"; then
26751 ac_cv_prog_MD5SUM="$MD5SUM" # Let the user override the test.
26753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26754 for as_dir in $PATH
26757 test -z "$as_dir" && as_dir=.
26758 for ac_exec_ext in '' $ac_executable_extensions; do
26759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26760 ac_cv_prog_MD5SUM="`which md5sum`"
26761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26770 MD5SUM=$ac_cv_prog_MD5SUM
26771 if test -n "$MD5SUM"; then
26772 { echo "$as_me:$LINENO: result: $MD5SUM" >&5
26773 echo "${ECHO_T}$MD5SUM" >&6; }
26775 { echo "$as_me:$LINENO: result: no" >&5
26776 echo "${ECHO_T}no" >&6; }
26780 if test x$MD5SUM != xno ; then
26781 build_version=`find -name '*.ch' |grep -v src/ucontext_stack.h | grep -v src/gras_config.h |\
26782 xargs cat| $MD5SUM | sed 's/ .*$//'`
26784 build_version="no_md5sum_binary"
26786 build_id="$PACKAGE ver=$VERSION build=$build_version args=\"$ac_configure_args\""
26789 ###################
26790 ## Makes the output
26795 # examples/gras/chord/Makefile examples/gras/chord/test_sg examples/gras/chord/test_rl
26796 # src/amok/Makefile
26799 { echo "$as_me:$LINENO: result: " >&5
26800 echo "${ECHO_T}" >&6; }
26801 { echo "$as_me:$LINENO: result: ${T_MD}Generating files...${T_ME}" >&5
26802 echo "${ECHO_T}${T_MD}Generating files...${T_ME}" >&6; }
26805 # Core of the libraries
26807 ac_config_files="$ac_config_files Makefile include/Makefile src/Makefile src/ucontext_stack.h"
26810 # Tools being embeeded in gramine (stub generator)
26811 ac_config_files="$ac_config_files tools/Makefile tools/gras/Makefile tools/tesh/Makefile"
26815 # GRAMINE_CUT_BEGIN
26817 # Tools NOT being embeeded in gramine
26818 ac_config_files="$ac_config_files tools/graspe-slave"
26823 ac_config_files="$ac_config_files testsuite/Makefile testsuite/run_tests testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage"
26827 ac_config_files="$ac_config_files doc/Makefile doc/Doxyfile"
26832 # examples/gras/p2p/Makefile
26833 # examples/gras/p2p/chord/Makefile
26834 # examples/gras/p2p/can/Makefile
26836 if test "x$use_java" = "xyes" ; then
26837 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"
26841 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"
26844 ac_config_files="$ac_config_files src/smpi/smpicc src/smpi/smpirun"
26849 cat >confcache <<\_ACEOF
26850 # This file is a shell script that caches the results of configure
26851 # tests run on this system so they can be shared between configure
26852 # scripts and configure runs, see configure's option --config-cache.
26853 # It is not useful on other systems. If it contains results you don't
26854 # want to keep, you may remove or edit it.
26856 # config.status only pays attention to the cache file if you give it
26857 # the --recheck option to rerun configure.
26859 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26860 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26861 # following values.
26865 # The following way of writing the cache mishandles newlines in values,
26866 # but we know of no workaround that is simple, portable, and efficient.
26867 # So, we kill variables containing newlines.
26868 # Ultrix sh set writes to stderr and can't be redirected directly,
26869 # and sets the high bit in the cache file unless we assign to the vars.
26871 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26872 eval ac_val=\$$ac_var
26876 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26877 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26880 _ | IFS | as_nl) ;; #(
26881 *) $as_unset $ac_var ;;
26887 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26888 *${as_nl}ac_space=\ *)
26889 # `set' does not quote correctly, so add quotes (double-quote
26890 # substitution turns \\\\ into \\, and sed turns \\ into \).
26893 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26896 # `set' quotes correctly as required by POSIX, so do not add quotes.
26897 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26906 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26908 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26910 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26911 if test -w "$cache_file"; then
26912 test "x$cache_file" != "x/dev/null" &&
26913 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26914 echo "$as_me: updating cache $cache_file" >&6;}
26915 cat confcache >$cache_file
26917 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26918 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26923 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26924 # Let make expand exec_prefix.
26925 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26927 DEFS=-DHAVE_CONFIG_H
26931 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26932 # 1. Remove the extension, and $U if already installed.
26933 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26934 ac_i=`echo "$ac_i" | sed "$ac_script"`
26935 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26936 # will be set to the directory where LIBOBJS objects are built.
26937 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26938 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26940 LIBOBJS=$ac_libobjs
26942 LTLIBOBJS=$ac_ltlibobjs
26945 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26946 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
26947 Usually this means the macro was only invoked conditionally." >&5
26948 echo "$as_me: error: conditional \"AMDEP\" was never defined.
26949 Usually this means the macro was only invoked conditionally." >&2;}
26950 { (exit 1); exit 1; }; }
26952 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
26953 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
26954 Usually this means the macro was only invoked conditionally." >&5
26955 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
26956 Usually this means the macro was only invoked conditionally." >&2;}
26957 { (exit 1); exit 1; }; }
26959 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26960 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26961 Usually this means the macro was only invoked conditionally." >&5
26962 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26963 Usually this means the macro was only invoked conditionally." >&2;}
26964 { (exit 1); exit 1; }; }
26966 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26967 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
26968 Usually this means the macro was only invoked conditionally." >&5
26969 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
26970 Usually this means the macro was only invoked conditionally." >&2;}
26971 { (exit 1); exit 1; }; }
26973 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26974 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26975 Usually this means the macro was only invoked conditionally." >&5
26976 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26977 Usually this means the macro was only invoked conditionally." >&2;}
26978 { (exit 1); exit 1; }; }
26980 if test -z "${GRAS_ARCH_32_BITS_TRUE}" && test -z "${GRAS_ARCH_32_BITS_FALSE}"; then
26981 { { echo "$as_me:$LINENO: error: conditional \"GRAS_ARCH_32_BITS\" was never defined.
26982 Usually this means the macro was only invoked conditionally." >&5
26983 echo "$as_me: error: conditional \"GRAS_ARCH_32_BITS\" was never defined.
26984 Usually this means the macro was only invoked conditionally." >&2;}
26985 { (exit 1); exit 1; }; }
26987 if test -z "${IS_WINDOWS_TRUE}" && test -z "${IS_WINDOWS_FALSE}"; then
26988 { { echo "$as_me:$LINENO: error: conditional \"IS_WINDOWS\" was never defined.
26989 Usually this means the macro was only invoked conditionally." >&5
26990 echo "$as_me: error: conditional \"IS_WINDOWS\" was never defined.
26991 Usually this means the macro was only invoked conditionally." >&2;}
26992 { (exit 1); exit 1; }; }
26994 if test -z "${CONTEXT_THREADS_TRUE}" && test -z "${CONTEXT_THREADS_FALSE}"; then
26995 { { echo "$as_me:$LINENO: error: conditional \"CONTEXT_THREADS\" was never defined.
26996 Usually this means the macro was only invoked conditionally." >&5
26997 echo "$as_me: error: conditional \"CONTEXT_THREADS\" was never defined.
26998 Usually this means the macro was only invoked conditionally." >&2;}
26999 { (exit 1); exit 1; }; }
27001 if test -z "${HAVE_GTNETS_TRUE}" && test -z "${HAVE_GTNETS_FALSE}"; then
27002 { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTNETS\" was never defined.
27003 Usually this means the macro was only invoked conditionally." >&5
27004 echo "$as_me: error: conditional \"HAVE_GTNETS\" was never defined.
27005 Usually this means the macro was only invoked conditionally." >&2;}
27006 { (exit 1); exit 1; }; }
27008 if test -z "${HAVE_SDP_TRUE}" && test -z "${HAVE_SDP_FALSE}"; then
27009 { { echo "$as_me:$LINENO: error: conditional \"HAVE_SDP\" was never defined.
27010 Usually this means the macro was only invoked conditionally." >&5
27011 echo "$as_me: error: conditional \"HAVE_SDP\" was never defined.
27012 Usually this means the macro was only invoked conditionally." >&2;}
27013 { (exit 1); exit 1; }; }
27015 if test -z "${GRAMINE_MODE_TRUE}" && test -z "${GRAMINE_MODE_FALSE}"; then
27016 { { echo "$as_me:$LINENO: error: conditional \"GRAMINE_MODE\" was never defined.
27017 Usually this means the macro was only invoked conditionally." >&5
27018 echo "$as_me: error: conditional \"GRAMINE_MODE\" was never defined.
27019 Usually this means the macro was only invoked conditionally." >&2;}
27020 { (exit 1); exit 1; }; }
27022 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
27023 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
27024 Usually this means the macro was only invoked conditionally." >&5
27025 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
27026 Usually this means the macro was only invoked conditionally." >&2;}
27027 { (exit 1); exit 1; }; }
27029 if test -z "${HAVE_JAVA_TRUE}" && test -z "${HAVE_JAVA_FALSE}"; then
27030 { { echo "$as_me:$LINENO: error: conditional \"HAVE_JAVA\" was never defined.
27031 Usually this means the macro was only invoked conditionally." >&5
27032 echo "$as_me: error: conditional \"HAVE_JAVA\" was never defined.
27033 Usually this means the macro was only invoked conditionally." >&2;}
27034 { (exit 1); exit 1; }; }
27036 if test -z "${HAVE_FLEXML_TRUE}" && test -z "${HAVE_FLEXML_FALSE}"; then
27037 { { echo "$as_me:$LINENO: error: conditional \"HAVE_FLEXML\" was never defined.
27038 Usually this means the macro was only invoked conditionally." >&5
27039 echo "$as_me: error: conditional \"HAVE_FLEXML\" was never defined.
27040 Usually this means the macro was only invoked conditionally." >&2;}
27041 { (exit 1); exit 1; }; }
27044 : ${CONFIG_STATUS=./config.status}
27045 ac_clean_files_save=$ac_clean_files
27046 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27047 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27048 echo "$as_me: creating $CONFIG_STATUS" >&6;}
27049 cat >$CONFIG_STATUS <<_ACEOF
27051 # Generated by $as_me.
27052 # Run this file to recreate the current configuration.
27053 # Compiler output produced by configure, useful for debugging
27054 # configure, is in config.log if it exists.
27057 ac_cs_recheck=false
27059 SHELL=\${CONFIG_SHELL-$SHELL}
27062 cat >>$CONFIG_STATUS <<\_ACEOF
27063 ## --------------------- ##
27064 ## M4sh Initialization. ##
27065 ## --------------------- ##
27067 # Be more Bourne compatible
27068 DUALCASE=1; export DUALCASE # for MKS sh
27069 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27072 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27073 # is contrary to our usage. Disable this feature.
27074 alias -g '${1+"$@"}'='"$@"'
27075 setopt NO_GLOB_SUBST
27077 case `(set -o) 2>/dev/null` in
27078 *posix*) set -o posix ;;
27087 # Avoid depending upon Character Ranges.
27088 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27089 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27090 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27091 as_cr_digits='0123456789'
27092 as_cr_alnum=$as_cr_Letters$as_cr_digits
27094 # The user is always right.
27095 if test "${PATH_SEPARATOR+set}" != set; then
27096 echo "#! /bin/sh" >conf$$.sh
27097 echo "exit 0" >>conf$$.sh
27099 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27107 # Support unset when possible.
27108 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27116 # We need space, tab and new line, in precisely that order. Quoting is
27117 # there to prevent editors from complaining about space-tab.
27118 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27119 # splitting by setting IFS to empty value.)
27124 # Find who we are. Look in the path if we contain no directory separator.
27126 *[\\/]* ) as_myself=$0 ;;
27127 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27128 for as_dir in $PATH
27131 test -z "$as_dir" && as_dir=.
27132 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27138 # We did not find ourselves, most probably we were run as `sh COMMAND'
27139 # in which case we are not to be found in the path.
27140 if test "x$as_myself" = x; then
27143 if test ! -f "$as_myself"; then
27144 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27145 { (exit 1); exit 1; }
27148 # Work around bugs in pre-3.0 UWIN ksh.
27149 for as_var in ENV MAIL MAILPATH
27150 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27158 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27159 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27160 LC_TELEPHONE LC_TIME
27162 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27163 eval $as_var=C; export $as_var
27165 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27169 # Required to use basename.
27170 if expr a : '\(a\)' >/dev/null 2>&1 &&
27171 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27177 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27178 as_basename=basename
27184 # Name of the executable.
27185 as_me=`$as_basename -- "$0" ||
27186 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27187 X"$0" : 'X\(//\)$' \| \
27188 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27190 sed '/^.*\/\([^/][^/]*\)\/*$/{
27209 as_lineno_1=$LINENO
27210 as_lineno_2=$LINENO
27211 test "x$as_lineno_1" != "x$as_lineno_2" &&
27212 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
27214 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27215 # uniformly replaced by the line number. The first 'sed' inserts a
27216 # line-number line after each line using $LINENO; the second 'sed'
27217 # does the real work. The second script uses 'N' to pair each
27218 # line-number line with the line containing $LINENO, and appends
27219 # trailing '-' during substitution so that $LINENO is not a special
27220 # case at line end.
27221 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27222 # scripts with optimization help from Paolo Bonzini. Blame Lee
27223 # E. McMahon (1931-1989) for sed's syntax. :-)
27235 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27238 ' >$as_me.lineno &&
27239 chmod +x "$as_me.lineno" ||
27240 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27241 { (exit 1); exit 1; }; }
27243 # Don't try to exec as it changes $[0], causing all sort of problems
27244 # (the dirname of $[0] is not the place where we might find the
27245 # original and so on. Autoconf is especially sensitive to this).
27246 . "./$as_me.lineno"
27247 # Exit status is that of the last command.
27252 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27258 ECHO_C= ECHO_N= ECHO_T=
27259 case `echo -n x` in
27261 case `echo 'x\c'` in
27262 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27269 if expr a : '\(a\)' >/dev/null 2>&1 &&
27270 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27276 rm -f conf$$ conf$$.exe conf$$.file
27277 if test -d conf$$.dir; then
27278 rm -f conf$$.dir/conf$$.file
27284 if ln -s conf$$.file conf$$ 2>/dev/null; then
27286 # ... but there are two gotchas:
27287 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27288 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27289 # In both cases, we have to default to `cp -p'.
27290 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27292 elif ln conf$$.file conf$$ 2>/dev/null; then
27297 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27298 rmdir conf$$.dir 2>/dev/null
27300 if mkdir -p . 2>/dev/null; then
27303 test -d ./-p && rmdir ./-p
27307 if test -x / >/dev/null 2>&1; then
27308 as_test_x='test -x'
27310 if ls -dL / >/dev/null 2>&1; then
27317 if test -d "$1"; then
27323 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27324 ???[sx]*):;;*)false;;esac;fi
27328 as_executable_p=$as_test_x
27330 # Sed expression to map a string onto a valid CPP name.
27331 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27333 # Sed expression to map a string onto a valid variable name.
27334 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27339 # Save the log message, to keep $[0] and so on meaningful, and to
27340 # report actual input values of CONFIG_FILES etc. instead of their
27341 # values after options handling.
27343 This file was extended by simgrid $as_me 3.3-cvs, which was
27344 generated by GNU Autoconf 2.61. Invocation command line was
27346 CONFIG_FILES = $CONFIG_FILES
27347 CONFIG_HEADERS = $CONFIG_HEADERS
27348 CONFIG_LINKS = $CONFIG_LINKS
27349 CONFIG_COMMANDS = $CONFIG_COMMANDS
27352 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27357 cat >>$CONFIG_STATUS <<_ACEOF
27358 # Files that config.status was made for.
27359 config_files="$ac_config_files"
27360 config_headers="$ac_config_headers"
27361 config_commands="$ac_config_commands"
27365 cat >>$CONFIG_STATUS <<\_ACEOF
27367 \`$as_me' instantiates files from templates according to the
27368 current configuration.
27370 Usage: $0 [OPTIONS] [FILE]...
27372 -h, --help print this help, then exit
27373 -V, --version print version number and configuration settings, then exit
27374 -q, --quiet do not print progress messages
27375 -d, --debug don't remove temporary files
27376 --recheck update $as_me by reconfiguring in the same conditions
27377 --file=FILE[:TEMPLATE]
27378 instantiate the configuration file FILE
27379 --header=FILE[:TEMPLATE]
27380 instantiate the configuration header FILE
27382 Configuration files:
27385 Configuration headers:
27388 Configuration commands:
27391 Report bugs to <bug-autoconf@gnu.org>."
27394 cat >>$CONFIG_STATUS <<_ACEOF
27396 simgrid config.status 3.3-cvs
27397 configured by $0, generated by GNU Autoconf 2.61,
27398 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27400 Copyright (C) 2006 Free Software Foundation, Inc.
27401 This config.status script is free software; the Free Software Foundation
27402 gives unlimited permission to copy, distribute and modify it."
27410 cat >>$CONFIG_STATUS <<\_ACEOF
27411 # If no file are specified by the user, then we need to provide default
27412 # value. By we need to know if files were specified by the user.
27418 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27419 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27430 # Handling of the options.
27431 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27433 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27434 echo "$ac_cs_version"; exit ;;
27435 --debug | --debu | --deb | --de | --d | -d )
27437 --file | --fil | --fi | --f )
27439 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27440 ac_need_defaults=false;;
27441 --header | --heade | --head | --hea )
27443 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27444 ac_need_defaults=false;;
27446 # Conflict between --help and --header
27447 { echo "$as_me: error: ambiguous option: $1
27448 Try \`$0 --help' for more information." >&2
27449 { (exit 1); exit 1; }; };;
27450 --help | --hel | -h )
27451 echo "$ac_cs_usage"; exit ;;
27452 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27453 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27456 # This is an error.
27457 -*) { echo "$as_me: error: unrecognized option: $1
27458 Try \`$0 --help' for more information." >&2
27459 { (exit 1); exit 1; }; } ;;
27461 *) ac_config_targets="$ac_config_targets $1"
27462 ac_need_defaults=false ;;
27468 ac_configure_extra_args=
27470 if $ac_cs_silent; then
27472 ac_configure_extra_args="$ac_configure_extra_args --silent"
27476 cat >>$CONFIG_STATUS <<_ACEOF
27477 if \$ac_cs_recheck; then
27478 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27479 CONFIG_SHELL=$SHELL
27480 export CONFIG_SHELL
27481 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27485 cat >>$CONFIG_STATUS <<\_ACEOF
27489 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27490 ## Running $as_me. ##
27496 cat >>$CONFIG_STATUS <<_ACEOF
27500 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27504 cat >>$CONFIG_STATUS <<\_ACEOF
27506 # Handling of arguments.
27507 for ac_config_target in $ac_config_targets
27509 case $ac_config_target in
27510 "src/gras_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/gras_config.h" ;;
27511 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27512 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27513 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
27514 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
27515 "src/ucontext_stack.h") CONFIG_FILES="$CONFIG_FILES src/ucontext_stack.h" ;;
27516 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
27517 "tools/gras/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gras/Makefile" ;;
27518 "tools/tesh/Makefile") CONFIG_FILES="$CONFIG_FILES tools/tesh/Makefile" ;;
27519 "tools/graspe-slave") CONFIG_FILES="$CONFIG_FILES tools/graspe-slave" ;;
27520 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
27521 "testsuite/run_tests") CONFIG_FILES="$CONFIG_FILES testsuite/run_tests" ;;
27522 "testsuite/gras/trp_tcp_usage") CONFIG_FILES="$CONFIG_FILES testsuite/gras/trp_tcp_usage" ;;
27523 "testsuite/gras/trp_file_usage") CONFIG_FILES="$CONFIG_FILES testsuite/gras/trp_file_usage" ;;
27524 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
27525 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
27526 "examples/java/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/Makefile" ;;
27527 "examples/java/basic/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/basic/Makefile" ;;
27528 "examples/java/comm_time/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/comm_time/Makefile" ;;
27529 "examples/java/suspend/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/suspend/Makefile" ;;
27530 "examples/java/ping_pong/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/ping_pong/Makefile" ;;
27531 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
27532 "examples/msg/Makefile") CONFIG_FILES="$CONFIG_FILES examples/msg/Makefile" ;;
27533 "examples/simdag/Makefile") CONFIG_FILES="$CONFIG_FILES examples/simdag/Makefile" ;;
27534 "examples/simdag/test_simdag") CONFIG_FILES="$CONFIG_FILES examples/simdag/test_simdag" ;;
27535 "examples/gras/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/Makefile" ;;
27536 "examples/gras/ping/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/ping/Makefile" ;;
27537 "examples/gras/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/rpc/Makefile" ;;
27538 "examples/gras/spawn/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/spawn/Makefile" ;;
27539 "examples/gras/synchro/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/synchro/Makefile" ;;
27540 "examples/gras/timer/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/timer/Makefile" ;;
27541 "examples/gras/chrono/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/chrono/Makefile" ;;
27542 "examples/gras/mutual_exclusion/simple_token/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/mutual_exclusion/simple_token/Makefile" ;;
27543 "examples/gras/mmrpc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/mmrpc/Makefile" ;;
27544 "examples/gras/pmm/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/pmm/Makefile" ;;
27545 "examples/gras/all2all/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/all2all/Makefile" ;;
27546 "examples/amok/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/Makefile" ;;
27547 "examples/amok/bandwidth/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/Makefile" ;;
27548 "examples/amok/bandwidth/test_sg") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/test_sg" ;;
27549 "examples/amok/bandwidth/test_rl") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/test_rl" ;;
27550 "examples/amok/saturate/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/Makefile" ;;
27551 "examples/amok/saturate/test_sg") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/test_sg" ;;
27552 "examples/amok/saturate/test_rl") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/test_rl" ;;
27553 "src/smpi/smpicc") CONFIG_FILES="$CONFIG_FILES src/smpi/smpicc" ;;
27554 "src/smpi/smpirun") CONFIG_FILES="$CONFIG_FILES src/smpi/smpirun" ;;
27556 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27557 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27558 { (exit 1); exit 1; }; };;
27563 # If the user did not use the arguments to specify the items to instantiate,
27564 # then the envvar interface is used. Set only those that are not.
27565 # We use the long form for the default assignment because of an extremely
27566 # bizarre bug on SunOS 4.1.3.
27567 if $ac_need_defaults; then
27568 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27569 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27570 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27573 # Have a temporary directory for convenience. Make it in the build tree
27574 # simply because there is no reason against having it here, and in addition,
27575 # creating and moving files from /tmp can sometimes cause problems.
27576 # Hook for its removal unless debugging.
27577 # Note that there is a small window in which the directory will not be cleaned:
27578 # after its creation but before its name has been assigned to `$tmp'.
27582 trap 'exit_status=$?
27583 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27585 trap '{ (exit 1); exit 1; }' 1 2 13 15
27587 # Create a (secure) tmp directory for tmp files.
27590 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27591 test -n "$tmp" && test -d "$tmp"
27594 tmp=./conf$$-$RANDOM
27595 (umask 077 && mkdir "$tmp")
27598 echo "$me: cannot create a temporary directory in ." >&2
27599 { (exit 1); exit 1; }
27603 # Set up the sed scripts for CONFIG_FILES section.
27606 # No need to generate the scripts if there are no CONFIG_FILES.
27607 # This happens for instance when ./config.status config.h
27608 if test -n "$CONFIG_FILES"; then
27615 for ac_last_try in false false false false false :; do
27616 cat >conf$$subs.sed <<_ACEOF
27617 SHELL!$SHELL$ac_delim
27618 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
27619 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
27620 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
27621 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
27622 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
27623 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
27624 exec_prefix!$exec_prefix$ac_delim
27625 prefix!$prefix$ac_delim
27626 program_transform_name!$program_transform_name$ac_delim
27627 bindir!$bindir$ac_delim
27628 sbindir!$sbindir$ac_delim
27629 libexecdir!$libexecdir$ac_delim
27630 datarootdir!$datarootdir$ac_delim
27631 datadir!$datadir$ac_delim
27632 sysconfdir!$sysconfdir$ac_delim
27633 sharedstatedir!$sharedstatedir$ac_delim
27634 localstatedir!$localstatedir$ac_delim
27635 includedir!$includedir$ac_delim
27636 oldincludedir!$oldincludedir$ac_delim
27637 docdir!$docdir$ac_delim
27638 infodir!$infodir$ac_delim
27639 htmldir!$htmldir$ac_delim
27640 dvidir!$dvidir$ac_delim
27641 pdfdir!$pdfdir$ac_delim
27642 psdir!$psdir$ac_delim
27643 libdir!$libdir$ac_delim
27644 localedir!$localedir$ac_delim
27645 mandir!$mandir$ac_delim
27646 DEFS!$DEFS$ac_delim
27647 ECHO_C!$ECHO_C$ac_delim
27648 ECHO_N!$ECHO_N$ac_delim
27649 ECHO_T!$ECHO_T$ac_delim
27650 LIBS!$LIBS$ac_delim
27651 build_alias!$build_alias$ac_delim
27652 host_alias!$host_alias$ac_delim
27653 target_alias!$target_alias$ac_delim
27654 build!$build$ac_delim
27655 build_cpu!$build_cpu$ac_delim
27656 build_vendor!$build_vendor$ac_delim
27657 build_os!$build_os$ac_delim
27658 host!$host$ac_delim
27659 host_cpu!$host_cpu$ac_delim
27660 host_vendor!$host_vendor$ac_delim
27661 host_os!$host_os$ac_delim
27662 target!$target$ac_delim
27663 target_cpu!$target_cpu$ac_delim
27664 target_vendor!$target_vendor$ac_delim
27665 target_os!$target_os$ac_delim
27667 GCJFLAGS!$GCJFLAGS$ac_delim
27668 am__leading_dot!$am__leading_dot$ac_delim
27669 DEPDIR!$DEPDIR$ac_delim
27670 am__include!$am__include$ac_delim
27671 am__quote!$am__quote$ac_delim
27672 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
27673 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
27674 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
27675 GCJDEPMODE!$GCJDEPMODE$ac_delim
27676 am__fastdepGCJ_TRUE!$am__fastdepGCJ_TRUE$ac_delim
27677 am__fastdepGCJ_FALSE!$am__fastdepGCJ_FALSE$ac_delim
27678 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
27679 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
27680 INSTALL_DATA!$INSTALL_DATA$ac_delim
27681 am__isrc!$am__isrc$ac_delim
27682 CYGPATH_W!$CYGPATH_W$ac_delim
27683 PACKAGE!$PACKAGE$ac_delim
27684 VERSION!$VERSION$ac_delim
27685 ACLOCAL!$ACLOCAL$ac_delim
27686 AUTOCONF!$AUTOCONF$ac_delim
27687 AUTOMAKE!$AUTOMAKE$ac_delim
27688 AUTOHEADER!$AUTOHEADER$ac_delim
27689 MAKEINFO!$MAKEINFO$ac_delim
27690 install_sh!$install_sh$ac_delim
27691 STRIP!$STRIP$ac_delim
27692 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
27693 mkdir_p!$mkdir_p$ac_delim
27695 SET_MAKE!$SET_MAKE$ac_delim
27696 AMTAR!$AMTAR$ac_delim
27697 am__tar!$am__tar$ac_delim
27698 am__untar!$am__untar$ac_delim
27700 CFLAGS!$CFLAGS$ac_delim
27701 LDFLAGS!$LDFLAGS$ac_delim
27702 CPPFLAGS!$CPPFLAGS$ac_delim
27703 ac_ct_CC!$ac_ct_CC$ac_delim
27704 EXEEXT!$EXEEXT$ac_delim
27705 OBJEXT!$OBJEXT$ac_delim
27706 CCDEPMODE!$CCDEPMODE$ac_delim
27707 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
27708 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
27709 GREP!$GREP$ac_delim
27710 EGREP!$EGREP$ac_delim
27711 LN_S!$LN_S$ac_delim
27712 ECHO!$ECHO$ac_delim
27716 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27718 elif $ac_last_try; then
27719 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27720 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27721 { (exit 1); exit 1; }; }
27723 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27727 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27728 if test -n "$ac_eof"; then
27729 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27730 ac_eof=`expr $ac_eof + 1`
27733 cat >>$CONFIG_STATUS <<_ACEOF
27734 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27735 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27738 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27739 s/^/s,@/; s/!/@,|#_!!_#|/
27742 s/'"$ac_delim"'$/,g/; t
27744 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27745 ' >>$CONFIG_STATUS <conf$$subs.sed
27746 rm -f conf$$subs.sed
27747 cat >>$CONFIG_STATUS <<_ACEOF
27753 for ac_last_try in false false false false false :; do
27754 cat >conf$$subs.sed <<_ACEOF
27755 RANLIB!$RANLIB$ac_delim
27756 DLLTOOL!$DLLTOOL$ac_delim
27758 OBJDUMP!$OBJDUMP$ac_delim
27761 CXXFLAGS!$CXXFLAGS$ac_delim
27762 ac_ct_CXX!$ac_ct_CXX$ac_delim
27763 CXXDEPMODE!$CXXDEPMODE$ac_delim
27764 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
27765 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
27766 CXXCPP!$CXXCPP$ac_delim
27767 LIBTOOL!$LIBTOOL$ac_delim
27768 LIBOBJS!$LIBOBJS$ac_delim
27769 GRAS_ARCH_32_BITS_TRUE!$GRAS_ARCH_32_BITS_TRUE$ac_delim
27770 GRAS_ARCH_32_BITS_FALSE!$GRAS_ARCH_32_BITS_FALSE$ac_delim
27771 IS_WINDOWS_TRUE!$IS_WINDOWS_TRUE$ac_delim
27772 IS_WINDOWS_FALSE!$IS_WINDOWS_FALSE$ac_delim
27773 CONTEXT_THREADS_TRUE!$CONTEXT_THREADS_TRUE$ac_delim
27774 CONTEXT_THREADS_FALSE!$CONTEXT_THREADS_FALSE$ac_delim
27775 PTH_STACK_GROWTH!$PTH_STACK_GROWTH$ac_delim
27776 pth_skaddr_makecontext!$pth_skaddr_makecontext$ac_delim
27777 pth_sksize_makecontext!$pth_sksize_makecontext$ac_delim
27778 HAVE_GTNETS_TRUE!$HAVE_GTNETS_TRUE$ac_delim
27779 HAVE_GTNETS_FALSE!$HAVE_GTNETS_FALSE$ac_delim
27780 HAVE_SDP_TRUE!$HAVE_SDP_TRUE$ac_delim
27781 HAVE_SDP_FALSE!$HAVE_SDP_FALSE$ac_delim
27782 SIMGRID_DEP!$SIMGRID_DEP$ac_delim
27783 SMPI_DEP!$SMPI_DEP$ac_delim
27784 GRAS_DEP!$GRAS_DEP$ac_delim
27785 GRAMINE_MODE_TRUE!$GRAMINE_MODE_TRUE$ac_delim
27786 GRAMINE_MODE_FALSE!$GRAMINE_MODE_FALSE$ac_delim
27787 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
27788 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
27789 MAINT!$MAINT$ac_delim
27790 LD_DYNAMIC_FLAGS!$LD_DYNAMIC_FLAGS$ac_delim
27791 AM_CPPFLAGS!$AM_CPPFLAGS$ac_delim
27792 abs_builddir!$abs_builddir$ac_delim
27793 abs_srcdir!$abs_srcdir$ac_delim
27794 abs_top_builddir!$abs_top_builddir$ac_delim
27795 abs_top_srcdir!$abs_top_srcdir$ac_delim
27796 JAVAC!$JAVAC$ac_delim
27797 JAVA!$JAVA$ac_delim
27799 HAVE_JAVA_TRUE!$HAVE_JAVA_TRUE$ac_delim
27800 HAVE_JAVA_FALSE!$HAVE_JAVA_FALSE$ac_delim
27801 BASH!$BASH$ac_delim
27802 WARNING!$WARNING$ac_delim
27804 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
27805 LEXLIB!$LEXLIB$ac_delim
27806 FLEXML!$FLEXML$ac_delim
27807 HAVE_FLEXML_TRUE!$HAVE_FLEXML_TRUE$ac_delim
27808 HAVE_FLEXML_FALSE!$HAVE_FLEXML_FALSE$ac_delim
27809 DOXYGEN!$DOXYGEN$ac_delim
27810 ADDR2LINE!$ADDR2LINE$ac_delim
27811 ac_configure_args!$ac_configure_args$ac_delim
27812 MD5SUM!$MD5SUM$ac_delim
27813 build_id!$build_id$ac_delim
27814 LTLIBOBJS!$LTLIBOBJS$ac_delim
27817 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 60; then
27819 elif $ac_last_try; then
27820 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27821 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27822 { (exit 1); exit 1; }; }
27824 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27828 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27829 if test -n "$ac_eof"; then
27830 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27831 ac_eof=`expr $ac_eof + 1`
27834 cat >>$CONFIG_STATUS <<_ACEOF
27835 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27836 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27839 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27840 s/^/s,@/; s/!/@,|#_!!_#|/
27843 s/'"$ac_delim"'$/,g/; t
27845 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27846 ' >>$CONFIG_STATUS <conf$$subs.sed
27847 rm -f conf$$subs.sed
27848 cat >>$CONFIG_STATUS <<_ACEOF
27855 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27856 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27857 # trailing colons and then remove the whole line if VPATH becomes empty
27858 # (actually we leave an empty line to preserve line numbers).
27859 if test "x$srcdir" = x.; then
27860 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27861 s/:*\$(srcdir):*/:/
27862 s/:*\${srcdir}:*/:/
27864 s/^\([^=]*=[ ]*\):*/\1/
27870 cat >>$CONFIG_STATUS <<\_ACEOF
27871 fi # test -n "$CONFIG_FILES"
27874 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
27877 :[FHLC]) ac_mode=$ac_tag; continue;;
27879 case $ac_mode$ac_tag in
27881 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27882 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27883 { (exit 1); exit 1; }; };;
27884 :[FH]-) ac_tag=-:-;;
27885 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27902 -) ac_f="$tmp/stdin";;
27903 *) # Look for the file first in the build tree, then in the source tree
27904 # (if the path is not absolute). The absolute path cannot be DOS-style,
27905 # because $ac_f cannot contain `:'.
27909 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27911 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27912 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27913 { (exit 1); exit 1; }; };;
27915 ac_file_inputs="$ac_file_inputs $ac_f"
27918 # Let's still pretend it is `configure' which instantiates (i.e., don't
27919 # use $as_me), people would be surprised to read:
27920 # /* config.h. Generated by config.status. */
27921 configure_input="Generated from "`IFS=:
27922 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27923 if test x"$ac_file" != x-; then
27924 configure_input="$ac_file. $configure_input"
27925 { echo "$as_me:$LINENO: creating $ac_file" >&5
27926 echo "$as_me: creating $ac_file" >&6;}
27930 *:-:* | *:-) cat >"$tmp/stdin";;
27935 ac_dir=`$as_dirname -- "$ac_file" ||
27936 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27937 X"$ac_file" : 'X\(//\)[^/]' \| \
27938 X"$ac_file" : 'X\(//\)$' \| \
27939 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27941 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27945 /^X\(\/\/\)[^/].*/{
27960 -*) as_dir=./$as_dir;;
27962 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27966 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27967 *) as_qdir=$as_dir;;
27969 as_dirs="'$as_qdir' $as_dirs"
27970 as_dir=`$as_dirname -- "$as_dir" ||
27971 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27972 X"$as_dir" : 'X\(//\)[^/]' \| \
27973 X"$as_dir" : 'X\(//\)$' \| \
27974 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27976 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27980 /^X\(\/\/\)[^/].*/{
27993 test -d "$as_dir" && break
27995 test -z "$as_dirs" || eval "mkdir $as_dirs"
27996 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27997 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27998 { (exit 1); exit 1; }; }; }
28002 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28004 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28005 # A ".." for each directory in $ac_dir_suffix.
28006 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
28007 case $ac_top_builddir_sub in
28008 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28009 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28012 ac_abs_top_builddir=$ac_pwd
28013 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28014 # for backward compatibility:
28015 ac_top_builddir=$ac_top_build_prefix
28018 .) # We are building in place.
28020 ac_top_srcdir=$ac_top_builddir_sub
28021 ac_abs_top_srcdir=$ac_pwd ;;
28022 [\\/]* | ?:[\\/]* ) # Absolute name.
28023 ac_srcdir=$srcdir$ac_dir_suffix;
28024 ac_top_srcdir=$srcdir
28025 ac_abs_top_srcdir=$srcdir ;;
28026 *) # Relative name.
28027 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28028 ac_top_srcdir=$ac_top_build_prefix$srcdir
28029 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28031 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28041 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28042 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28044 ac_MKDIR_P=$MKDIR_P
28046 [\\/$]* | ?:[\\/]* ) ;;
28047 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28051 cat >>$CONFIG_STATUS <<\_ACEOF
28052 # If the template does not know about datarootdir, expand it.
28053 # FIXME: This hack should be removed a few years after 2.60.
28054 ac_datarootdir_hack=; ac_datarootdir_seen=
28056 case `sed -n '/datarootdir/ {
28065 ' $ac_file_inputs` in
28066 *datarootdir*) ac_datarootdir_seen=yes;;
28067 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28068 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28069 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28071 cat >>$CONFIG_STATUS <<_ACEOF
28072 ac_datarootdir_hack='
28073 s&@datadir@&$datadir&g
28074 s&@docdir@&$docdir&g
28075 s&@infodir@&$infodir&g
28076 s&@localedir@&$localedir&g
28077 s&@mandir@&$mandir&g
28078 s&\\\${datarootdir}&$datarootdir&g' ;;
28082 # Neutralize VPATH when `$srcdir' = `.'.
28083 # Shell code in configure.ac might set extrasub.
28084 # FIXME: do we really want to maintain this feature?
28085 cat >>$CONFIG_STATUS <<_ACEOF
28089 cat >>$CONFIG_STATUS <<\_ACEOF
28091 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28092 s&@configure_input@&$configure_input&;t t
28093 s&@top_builddir@&$ac_top_builddir_sub&;t t
28094 s&@srcdir@&$ac_srcdir&;t t
28095 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28096 s&@top_srcdir@&$ac_top_srcdir&;t t
28097 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28098 s&@builddir@&$ac_builddir&;t t
28099 s&@abs_builddir@&$ac_abs_builddir&;t t
28100 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28101 s&@INSTALL@&$ac_INSTALL&;t t
28102 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28103 $ac_datarootdir_hack
28104 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
28106 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28107 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28108 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28109 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28110 which seems to be undefined. Please make sure it is defined." >&5
28111 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28112 which seems to be undefined. Please make sure it is defined." >&2;}
28116 -) cat "$tmp/out"; rm -f "$tmp/out";;
28117 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
28126 # Transform confdefs.h into a sed script `conftest.defines', that
28127 # substitutes the proper values into config.h.in to produce config.h.
28128 rm -f conftest.defines conftest.tail
28129 # First, append a space to every undef/define line, to ease matching.
28130 echo 's/$/ /' >conftest.defines
28131 # Then, protect against being on the right side of a sed subst, or in
28132 # an unquoted here document, in config.status. If some macros were
28133 # called several times there might be several #defines for the same
28134 # symbol, which is useless. But do not sort them, since the last
28135 # AC_DEFINE must be honored.
28136 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28137 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
28138 # NAME is the cpp macro being defined, VALUE is the value it is being given.
28139 # PARAMS is the parameter list in the macro definition--in most cases, it's
28140 # just an empty string.
28141 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
28142 ac_dB='\\)[ (].*,\\1define\\2'
28150 s/^[ ]*#[ ]*define[ ][ ]*//
28155 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
28156 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
28157 ' >>conftest.defines
28159 # Remove the space that was appended to ease matching.
28160 # Then replace #undef with comments. This is necessary, for
28161 # example, in the case of _POSIX_SOURCE, which is predefined and required
28162 # on some systems where configure will not decide to define it.
28163 # (The regexp can be short, since the line contains either #define or #undef.)
28165 s,^[ #]*u.*,/* & */,' >>conftest.defines
28167 # Break up conftest.defines:
28168 ac_max_sed_lines=50
28170 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
28171 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
28172 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
28174 ac_in='$ac_file_inputs'
28175 ac_out='"$tmp/out1"'
28176 ac_nxt='"$tmp/out2"'
28180 # Write a here document:
28181 cat >>$CONFIG_STATUS <<_ACEOF
28182 # First, check the format of the line:
28183 cat >"\$tmp/defines.sed" <<\\CEOF
28184 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
28185 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
28189 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
28191 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
28192 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
28193 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
28194 grep . conftest.tail >/dev/null || break
28195 rm -f conftest.defines
28196 mv conftest.tail conftest.defines
28198 rm -f conftest.defines conftest.tail
28200 echo "ac_result=$ac_in" >>$CONFIG_STATUS
28201 cat >>$CONFIG_STATUS <<\_ACEOF
28202 if test x"$ac_file" != x-; then
28203 echo "/* $configure_input */" >"$tmp/config.h"
28204 cat "$ac_result" >>"$tmp/config.h"
28205 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
28206 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28207 echo "$as_me: $ac_file is unchanged" >&6;}
28210 mv "$tmp/config.h" $ac_file
28213 echo "/* $configure_input */"
28217 # Compute $ac_file's index in $config_headers.
28219 for _am_header in $config_headers :; do
28220 case $_am_header in
28221 $ac_file | $ac_file:* )
28224 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28227 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
28228 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28229 X$ac_file : 'X\(//\)[^/]' \| \
28230 X$ac_file : 'X\(//\)$' \| \
28231 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
28233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28237 /^X\(\/\/\)[^/].*/{
28249 s/.*/./; q'`/stamp-h$_am_stamp_count
28252 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
28253 echo "$as_me: executing $ac_file commands" >&6;}
28258 case $ac_file$ac_mode in
28259 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
28260 # Strip MF so we end up with the name of the file.
28261 mf=`echo "$mf" | sed -e 's/:.*$//'`
28262 # Check whether this is an Automake generated Makefile or not.
28263 # We used to match only the files named `Makefile.in', but
28264 # some people rename them; so instead we look at the file content.
28265 # Grep'ing the first line is not enough: some people post-process
28266 # each Makefile.in and add a new line on top of each file to say so.
28267 # Grep'ing the whole file is not good either: AIX grep has a line
28268 # limit of 2048, but all sed's we know have understand at least 4000.
28269 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
28270 dirpart=`$as_dirname -- "$mf" ||
28271 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28272 X"$mf" : 'X\(//\)[^/]' \| \
28273 X"$mf" : 'X\(//\)$' \| \
28274 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28280 /^X\(\/\/\)[^/].*/{
28296 # Extract the definition of DEPDIR, am__include, and am__quote
28297 # from the Makefile without running `make'.
28298 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28299 test -z "$DEPDIR" && continue
28300 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28301 test -z "am__include" && continue
28302 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28303 # When using ansi2knr, U may be empty or an underscore; expand it
28304 U=`sed -n 's/^U = //p' < "$mf"`
28305 # Find all dependency output files, they are included files with
28306 # $(DEPDIR) in their names. We invoke sed twice because it is the
28307 # simplest approach to changing $(DEPDIR) to its actual value in the
28309 for file in `sed -n "
28310 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28311 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28312 # Make sure the directory exists.
28313 test -f "$dirpart/$file" && continue
28314 fdir=`$as_dirname -- "$file" ||
28315 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28316 X"$file" : 'X\(//\)[^/]' \| \
28317 X"$file" : 'X\(//\)$' \| \
28318 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28324 /^X\(\/\/\)[^/].*/{
28337 { as_dir=$dirpart/$fdir
28339 -*) as_dir=./$as_dir;;
28341 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
28345 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
28346 *) as_qdir=$as_dir;;
28348 as_dirs="'$as_qdir' $as_dirs"
28349 as_dir=`$as_dirname -- "$as_dir" ||
28350 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28351 X"$as_dir" : 'X\(//\)[^/]' \| \
28352 X"$as_dir" : 'X\(//\)$' \| \
28353 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28359 /^X\(\/\/\)[^/].*/{
28372 test -d "$as_dir" && break
28374 test -z "$as_dirs" || eval "mkdir $as_dirs"
28375 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28376 echo "$as_me: error: cannot create directory $as_dir" >&2;}
28377 { (exit 1); exit 1; }; }; }
28378 # echo "creating $dirpart/$file"
28379 echo '# dummy' > "$dirpart/$file"
28383 "tools/graspe-slave":F)
28385 tools/graspe-slave tools/graspe-master \
28387 test -e $file && chmod +x $file; \
28390 "testsuite/Makefile":F)
28392 testsuite/run_tests \
28393 testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
28395 test -e $file && chmod +x $file; \
28398 "testsuite/run_tests":F)
28400 testsuite/run_tests \
28401 testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
28403 test -e $file && chmod +x $file; \
28406 "testsuite/gras/trp_tcp_usage":F)
28408 testsuite/run_tests \
28409 testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
28411 test -e $file && chmod +x $file; \
28414 "testsuite/gras/trp_file_usage":F)
28416 testsuite/run_tests \
28417 testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
28419 test -e $file && chmod +x $file; \
28422 "examples/Makefile":F)
28425 examples/simdag/test_simdag \
28426 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28427 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28429 test -e $file && chmod +x $file; \
28432 "examples/msg/Makefile":F)
28435 examples/simdag/test_simdag \
28436 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28437 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28439 test -e $file && chmod +x $file; \
28442 "examples/simdag/Makefile":F)
28445 examples/simdag/test_simdag \
28446 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28447 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28449 test -e $file && chmod +x $file; \
28452 "examples/simdag/test_simdag":F)
28455 examples/simdag/test_simdag \
28456 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28457 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28459 test -e $file && chmod +x $file; \
28462 "examples/gras/Makefile":F)
28465 examples/simdag/test_simdag \
28466 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28467 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28469 test -e $file && chmod +x $file; \
28472 "examples/gras/ping/Makefile":F)
28475 examples/simdag/test_simdag \
28476 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28477 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28479 test -e $file && chmod +x $file; \
28482 "examples/gras/rpc/Makefile":F)
28485 examples/simdag/test_simdag \
28486 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28487 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28489 test -e $file && chmod +x $file; \
28492 "examples/gras/spawn/Makefile":F)
28495 examples/simdag/test_simdag \
28496 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28497 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28499 test -e $file && chmod +x $file; \
28502 "examples/gras/synchro/Makefile":F)
28505 examples/simdag/test_simdag \
28506 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28507 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28509 test -e $file && chmod +x $file; \
28512 "examples/gras/timer/Makefile":F)
28515 examples/simdag/test_simdag \
28516 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28517 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28519 test -e $file && chmod +x $file; \
28522 "examples/gras/chrono/Makefile":F)
28525 examples/simdag/test_simdag \
28526 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28527 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28529 test -e $file && chmod +x $file; \
28532 "examples/gras/mutual_exclusion/simple_token/Makefile":F)
28535 examples/simdag/test_simdag \
28536 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28537 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28539 test -e $file && chmod +x $file; \
28542 "examples/gras/mmrpc/Makefile":F)
28545 examples/simdag/test_simdag \
28546 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28547 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28549 test -e $file && chmod +x $file; \
28552 "examples/gras/pmm/Makefile":F)
28555 examples/simdag/test_simdag \
28556 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28557 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28559 test -e $file && chmod +x $file; \
28562 "examples/gras/all2all/Makefile":F)
28565 examples/simdag/test_simdag \
28566 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28567 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28569 test -e $file && chmod +x $file; \
28572 "examples/amok/Makefile":F)
28575 examples/simdag/test_simdag \
28576 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28577 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28579 test -e $file && chmod +x $file; \
28582 "examples/amok/bandwidth/Makefile":F)
28585 examples/simdag/test_simdag \
28586 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28587 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28589 test -e $file && chmod +x $file; \
28592 "examples/amok/bandwidth/test_sg":F)
28595 examples/simdag/test_simdag \
28596 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28597 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28599 test -e $file && chmod +x $file; \
28602 "examples/amok/bandwidth/test_rl":F)
28605 examples/simdag/test_simdag \
28606 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28607 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28609 test -e $file && chmod +x $file; \
28612 "examples/amok/saturate/Makefile":F)
28615 examples/simdag/test_simdag \
28616 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28617 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28619 test -e $file && chmod +x $file; \
28622 "examples/amok/saturate/test_sg":F)
28625 examples/simdag/test_simdag \
28626 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28627 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28629 test -e $file && chmod +x $file; \
28632 "examples/amok/saturate/test_rl":F)
28635 examples/simdag/test_simdag \
28636 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28637 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28639 test -e $file && chmod +x $file; \
28647 { (exit 0); exit 0; }
28649 chmod +x $CONFIG_STATUS
28650 ac_clean_files=$ac_clean_files_save
28653 # configure is writing to config.log, and then calls config.status.
28654 # config.status does its own redirection, appending to config.log.
28655 # Unfortunately, on DOS this fails, as config.log is still kept open
28656 # by configure, so config.status won't be able to write to it; its
28657 # output is simply discarded. So we exec the FD to /dev/null,
28658 # effectively closing config.log, so it can be properly (re)opened and
28659 # appended to by config.status. When coming back to configure, we
28660 # need to make the FD available again.
28661 if test "$no_create" != yes; then
28663 ac_config_status_args=
28664 test "$silent" = yes &&
28665 ac_config_status_args="$ac_config_status_args --quiet"
28667 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28669 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28670 # would make configure fail if this is the last instruction.
28671 $ac_cs_success || { (exit 1); exit 1; }
28677 Configuration of package \`${PACKAGE}' (version ${VERSION}) on $gras_arch_name (=$gras_arch):
28679 Compiler: ${CC} (version: ${GCC_VERSION})
28682 CPPFlags: ${CPPFLAGS}
28683 LDFlags: ${LDFLAGS}
28685 Context backend: ${with_context}
28688 if test -e CVS && test x$USE_MAINTAINER_MODE != xyes ; then
28690 echo "WARNING: you seem to compile the CVS version without the maintainer mode."
28691 echo "WARNING: You won't be able to build archives that way (make dist is likely to fail). "
28692 echo "WARNING: If you want to enable the maintainer mode, juste specify it like this:"
28694 echo "WARNING: ./configure '--enable-maintainer-mode' $ac_configure_args"
28697 echo $build_id > stamp.configure