2 # From configure.ac Revision: 5331 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for simgrid 3.3-svn.
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-svn'
735 PACKAGE_STRING='simgrid 3.3-svn'
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
889 GRAS_ARCH_32_BITS_TRUE
890 GRAS_ARCH_32_BITS_FALSE
894 CONTEXT_THREADS_FALSE
896 pth_skaddr_makecontext
897 pth_sksize_makecontext
908 MAINTAINER_MODE_FALSE
937 ac_precious_vars='build_alias
952 # Initialize some variables set by options.
954 ac_init_version=false
955 # The variables have the same names as the options, with
956 # dashes changed to underlines.
964 program_transform_name=s,x,x,
972 # Installation directory options.
973 # These are left unexpanded so users can "make install exec_prefix=/foo"
974 # and all the variables that are supposed to be based on exec_prefix
975 # by default will actually change.
976 # Use braces instead of parens because sh, perl, etc. also accept them.
977 # (The list follows the same order as the GNU Coding Standards.)
978 bindir='${exec_prefix}/bin'
979 sbindir='${exec_prefix}/sbin'
980 libexecdir='${exec_prefix}/libexec'
981 datarootdir='${prefix}/share'
982 datadir='${datarootdir}'
983 sysconfdir='${prefix}/etc'
984 sharedstatedir='${prefix}/com'
985 localstatedir='${prefix}/var'
986 includedir='${prefix}/include'
987 oldincludedir='/usr/include'
988 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
989 infodir='${datarootdir}/info'
994 libdir='${exec_prefix}/lib'
995 localedir='${datarootdir}/locale'
996 mandir='${datarootdir}/man'
1002 # If the previous option needs an argument, assign it.
1003 if test -n "$ac_prev"; then
1004 eval $ac_prev=\$ac_option
1010 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1014 # Accept the important Cygnus configure options, so we can diagnose typos.
1016 case $ac_dashdash$ac_option in
1020 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1022 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1023 bindir=$ac_optarg ;;
1025 -build | --build | --buil | --bui | --bu)
1026 ac_prev=build_alias ;;
1027 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1028 build_alias=$ac_optarg ;;
1030 -cache-file | --cache-file | --cache-fil | --cache-fi \
1031 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1032 ac_prev=cache_file ;;
1033 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1034 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1035 cache_file=$ac_optarg ;;
1037 --config-cache | -C)
1038 cache_file=config.cache ;;
1040 -datadir | --datadir | --datadi | --datad)
1042 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1043 datadir=$ac_optarg ;;
1045 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1046 | --dataroo | --dataro | --datar)
1047 ac_prev=datarootdir ;;
1048 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1049 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1050 datarootdir=$ac_optarg ;;
1052 -disable-* | --disable-*)
1053 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1054 # Reject names that are not valid shell variable names.
1055 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1056 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1057 { (exit 1); exit 1; }; }
1058 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1059 eval enable_$ac_feature=no ;;
1061 -docdir | --docdir | --docdi | --doc | --do)
1063 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1064 docdir=$ac_optarg ;;
1066 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1068 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1069 dvidir=$ac_optarg ;;
1071 -enable-* | --enable-*)
1072 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1073 # Reject names that are not valid shell variable names.
1074 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1075 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1076 { (exit 1); exit 1; }; }
1077 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1078 eval enable_$ac_feature=\$ac_optarg ;;
1080 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1081 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1082 | --exec | --exe | --ex)
1083 ac_prev=exec_prefix ;;
1084 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1085 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1086 | --exec=* | --exe=* | --ex=*)
1087 exec_prefix=$ac_optarg ;;
1089 -gas | --gas | --ga | --g)
1090 # Obsolete; use --with-gas.
1093 -help | --help | --hel | --he | -h)
1094 ac_init_help=long ;;
1095 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1096 ac_init_help=recursive ;;
1097 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1098 ac_init_help=short ;;
1100 -host | --host | --hos | --ho)
1101 ac_prev=host_alias ;;
1102 -host=* | --host=* | --hos=* | --ho=*)
1103 host_alias=$ac_optarg ;;
1105 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1107 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1109 htmldir=$ac_optarg ;;
1111 -includedir | --includedir | --includedi | --included | --include \
1112 | --includ | --inclu | --incl | --inc)
1113 ac_prev=includedir ;;
1114 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1115 | --includ=* | --inclu=* | --incl=* | --inc=*)
1116 includedir=$ac_optarg ;;
1118 -infodir | --infodir | --infodi | --infod | --info | --inf)
1120 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1121 infodir=$ac_optarg ;;
1123 -libdir | --libdir | --libdi | --libd)
1125 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1126 libdir=$ac_optarg ;;
1128 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1129 | --libexe | --libex | --libe)
1130 ac_prev=libexecdir ;;
1131 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1132 | --libexe=* | --libex=* | --libe=*)
1133 libexecdir=$ac_optarg ;;
1135 -localedir | --localedir | --localedi | --localed | --locale)
1136 ac_prev=localedir ;;
1137 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1138 localedir=$ac_optarg ;;
1140 -localstatedir | --localstatedir | --localstatedi | --localstated \
1141 | --localstate | --localstat | --localsta | --localst | --locals)
1142 ac_prev=localstatedir ;;
1143 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1144 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1145 localstatedir=$ac_optarg ;;
1147 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1149 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1150 mandir=$ac_optarg ;;
1152 -nfp | --nfp | --nf)
1153 # Obsolete; use --without-fp.
1156 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1157 | --no-cr | --no-c | -n)
1160 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1161 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1164 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1165 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1166 | --oldin | --oldi | --old | --ol | --o)
1167 ac_prev=oldincludedir ;;
1168 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1169 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1170 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1171 oldincludedir=$ac_optarg ;;
1173 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1175 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1176 prefix=$ac_optarg ;;
1178 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1179 | --program-pre | --program-pr | --program-p)
1180 ac_prev=program_prefix ;;
1181 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1182 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1183 program_prefix=$ac_optarg ;;
1185 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1186 | --program-suf | --program-su | --program-s)
1187 ac_prev=program_suffix ;;
1188 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1189 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1190 program_suffix=$ac_optarg ;;
1192 -program-transform-name | --program-transform-name \
1193 | --program-transform-nam | --program-transform-na \
1194 | --program-transform-n | --program-transform- \
1195 | --program-transform | --program-transfor \
1196 | --program-transfo | --program-transf \
1197 | --program-trans | --program-tran \
1198 | --progr-tra | --program-tr | --program-t)
1199 ac_prev=program_transform_name ;;
1200 -program-transform-name=* | --program-transform-name=* \
1201 | --program-transform-nam=* | --program-transform-na=* \
1202 | --program-transform-n=* | --program-transform-=* \
1203 | --program-transform=* | --program-transfor=* \
1204 | --program-transfo=* | --program-transf=* \
1205 | --program-trans=* | --program-tran=* \
1206 | --progr-tra=* | --program-tr=* | --program-t=*)
1207 program_transform_name=$ac_optarg ;;
1209 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1211 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1212 pdfdir=$ac_optarg ;;
1214 -psdir | --psdir | --psdi | --psd | --ps)
1216 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1219 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1220 | -silent | --silent | --silen | --sile | --sil)
1223 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1225 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1227 sbindir=$ac_optarg ;;
1229 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1230 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1231 | --sharedst | --shareds | --shared | --share | --shar \
1233 ac_prev=sharedstatedir ;;
1234 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1235 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1236 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1238 sharedstatedir=$ac_optarg ;;
1240 -site | --site | --sit)
1242 -site=* | --site=* | --sit=*)
1245 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1247 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1248 srcdir=$ac_optarg ;;
1250 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1251 | --syscon | --sysco | --sysc | --sys | --sy)
1252 ac_prev=sysconfdir ;;
1253 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1254 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1255 sysconfdir=$ac_optarg ;;
1257 -target | --target | --targe | --targ | --tar | --ta | --t)
1258 ac_prev=target_alias ;;
1259 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1260 target_alias=$ac_optarg ;;
1262 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1265 -version | --version | --versio | --versi | --vers | -V)
1266 ac_init_version=: ;;
1269 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1270 # Reject names that are not valid shell variable names.
1271 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1272 { echo "$as_me: error: invalid package name: $ac_package" >&2
1273 { (exit 1); exit 1; }; }
1274 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1275 eval with_$ac_package=\$ac_optarg ;;
1277 -without-* | --without-*)
1278 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1279 # Reject names that are not valid shell variable names.
1280 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1281 { echo "$as_me: error: invalid package name: $ac_package" >&2
1282 { (exit 1); exit 1; }; }
1283 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1284 eval with_$ac_package=no ;;
1287 # Obsolete; use --with-x.
1290 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1291 | --x-incl | --x-inc | --x-in | --x-i)
1292 ac_prev=x_includes ;;
1293 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1294 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1295 x_includes=$ac_optarg ;;
1297 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1298 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1299 ac_prev=x_libraries ;;
1300 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1301 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1302 x_libraries=$ac_optarg ;;
1304 -*) { echo "$as_me: error: unrecognized option: $ac_option
1305 Try \`$0 --help' for more information." >&2
1306 { (exit 1); exit 1; }; }
1310 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1311 # Reject names that are not valid shell variable names.
1312 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1313 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1314 { (exit 1); exit 1; }; }
1315 eval $ac_envvar=\$ac_optarg
1316 export $ac_envvar ;;
1319 # FIXME: should be removed in autoconf 3.0.
1320 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1321 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1322 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1323 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1329 if test -n "$ac_prev"; then
1330 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1331 { echo "$as_me: error: missing argument to $ac_option" >&2
1332 { (exit 1); exit 1; }; }
1335 # Be sure to have absolute directory names.
1336 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1337 datadir sysconfdir sharedstatedir localstatedir includedir \
1338 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1339 libdir localedir mandir
1341 eval ac_val=\$$ac_var
1343 [\\/$]* | ?:[\\/]* ) continue;;
1344 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1346 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1347 { (exit 1); exit 1; }; }
1350 # There might be people who depend on the old broken behavior: `$host'
1351 # used to hold the argument of --host etc.
1352 # FIXME: To remove some day.
1355 target=$target_alias
1357 # FIXME: To remove some day.
1358 if test "x$host_alias" != x; then
1359 if test "x$build_alias" = x; then
1360 cross_compiling=maybe
1361 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1362 If a cross compiler is detected then cross compile mode will be used." >&2
1363 elif test "x$build_alias" != "x$host_alias"; then
1369 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1371 test "$silent" = yes && exec 6>/dev/null
1374 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1375 ac_ls_di=`ls -di .` &&
1376 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1377 { echo "$as_me: error: Working directory cannot be determined" >&2
1378 { (exit 1); exit 1; }; }
1379 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1380 { echo "$as_me: error: pwd does not report name of working directory" >&2
1381 { (exit 1); exit 1; }; }
1384 # Find the source files, if location was not specified.
1385 if test -z "$srcdir"; then
1386 ac_srcdir_defaulted=yes
1387 # Try the directory containing this script, then the parent directory.
1388 ac_confdir=`$as_dirname -- "$0" ||
1389 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1390 X"$0" : 'X\(//\)[^/]' \| \
1391 X"$0" : 'X\(//\)$' \| \
1392 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1412 if test ! -r "$srcdir/$ac_unique_file"; then
1416 ac_srcdir_defaulted=no
1418 if test ! -r "$srcdir/$ac_unique_file"; then
1419 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1420 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1421 { (exit 1); exit 1; }; }
1423 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1425 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1426 { (exit 1); exit 1; }; }
1428 # When building in place, set srcdir=.
1429 if test "$ac_abs_confdir" = "$ac_pwd"; then
1432 # Remove unnecessary trailing slashes from srcdir.
1433 # Double slashes in file names in object file debugging info
1434 # mess up M-x gdb in Emacs.
1436 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1438 for ac_var in $ac_precious_vars; do
1439 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1440 eval ac_env_${ac_var}_value=\$${ac_var}
1441 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1442 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1446 # Report the --help message.
1448 if test "$ac_init_help" = "long"; then
1449 # Omit some internal or obsolete options to make the list less imposing.
1450 # This message is too long to be a string in the A/UX 3.1 sh.
1452 \`configure' configures simgrid 3.3-svn to adapt to many kinds of systems.
1454 Usage: $0 [OPTION]... [VAR=VALUE]...
1456 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1457 VAR=VALUE. See below for descriptions of some of the useful variables.
1459 Defaults for the options are specified in brackets.
1462 -h, --help display this help and exit
1463 --help=short display options specific to this package
1464 --help=recursive display the short help of all the included packages
1465 -V, --version display version information and exit
1466 -q, --quiet, --silent do not print \`checking...' messages
1467 --cache-file=FILE cache test results in FILE [disabled]
1468 -C, --config-cache alias for \`--cache-file=config.cache'
1469 -n, --no-create do not create output files
1470 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1472 Installation directories:
1473 --prefix=PREFIX install architecture-independent files in PREFIX
1474 [$ac_default_prefix]
1475 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1478 By default, \`make install' will install all the files in
1479 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1480 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1481 for instance \`--prefix=\$HOME'.
1483 For better control, use the options below.
1485 Fine tuning of the installation directories:
1486 --bindir=DIR user executables [EPREFIX/bin]
1487 --sbindir=DIR system admin executables [EPREFIX/sbin]
1488 --libexecdir=DIR program executables [EPREFIX/libexec]
1489 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1490 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1491 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1492 --libdir=DIR object code libraries [EPREFIX/lib]
1493 --includedir=DIR C header files [PREFIX/include]
1494 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1495 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1496 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1497 --infodir=DIR info documentation [DATAROOTDIR/info]
1498 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1499 --mandir=DIR man documentation [DATAROOTDIR/man]
1500 --docdir=DIR documentation root [DATAROOTDIR/doc/simgrid]
1501 --htmldir=DIR html documentation [DOCDIR]
1502 --dvidir=DIR dvi documentation [DOCDIR]
1503 --pdfdir=DIR pdf documentation [DOCDIR]
1504 --psdir=DIR ps documentation [DOCDIR]
1510 --program-prefix=PREFIX prepend PREFIX to installed program names
1511 --program-suffix=SUFFIX append SUFFIX to installed program names
1512 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1515 --build=BUILD configure for building on BUILD [guessed]
1516 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1517 --target=TARGET configure for building compilers for TARGET [HOST]
1521 if test -n "$ac_init_help"; then
1522 case $ac_init_help in
1523 short | recursive ) echo "Configuration of simgrid 3.3-svn:";;
1528 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1529 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1530 --disable-dependency-tracking speeds up one-time build
1531 --enable-dependency-tracking do not reject slow dependency extractors
1532 --enable-shared[=PKGS] build shared libraries [default=yes]
1533 --enable-static[=PKGS] build static libraries [default=yes]
1534 --enable-fast-install[=PKGS]
1535 optimize for fast installation [default=yes]
1536 --disable-libtool-lock avoid locking (might break parallel builds)
1537 --enable-maintainer-mode enable make rules and dependencies not useful
1538 (and sometimes confusing) to the casual installer
1539 --enable-compile-warnings
1540 use compiler warnings (default=no, unless in
1542 --disable-compile-optimizations
1543 use compiler optimizations (default=yes, unless if
1544 CFLAGS is explicitly set)
1545 --enable-botbuild Compilation mode for build daemons -- do not use it
1546 --disable-java To not compile the Java bindings even if the tools
1550 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1551 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1552 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1553 --with-pic try to use only PIC/non-PIC objects [default=use
1555 --with-tags[=TAGS] include additional configurations [automatic]
1556 --with-pthread Use pthread instead of ucontext.
1557 --with-pthreads Use pthread instead of ucontext.
1558 --with-context=ucontext/pthread Use either (System V) swapcontext or pthread [default=auto].
1559 --with-gtnets Path to GTNetS installation (default to empty, ie
1561 --with-csdp Path to csdp installation (default to empty, i.e.
1564 Some influential environment variables:
1565 CC C compiler command
1566 CFLAGS C compiler flags
1567 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1568 nonstandard directory <lib dir>
1569 LIBS libraries to pass to the linker, e.g. -l<library>
1570 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1571 you have headers in a nonstandard directory <include dir>
1573 CXX C++ compiler command
1574 CXXFLAGS C++ compiler flags
1575 CXXCPP C++ preprocessor
1577 Use these variables to override the choices made by `configure' or to help
1578 it to find libraries and programs with nonstandard names/locations.
1580 Report bugs to <simgrid-devel@lists.gforge.inria.fr>.
1585 if test "$ac_init_help" = "recursive"; then
1586 # If there are subdirs, report their specific --help.
1587 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1588 test -d "$ac_dir" || continue
1592 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1594 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1595 # A ".." for each directory in $ac_dir_suffix.
1596 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1597 case $ac_top_builddir_sub in
1598 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1599 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1602 ac_abs_top_builddir=$ac_pwd
1603 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1604 # for backward compatibility:
1605 ac_top_builddir=$ac_top_build_prefix
1608 .) # We are building in place.
1610 ac_top_srcdir=$ac_top_builddir_sub
1611 ac_abs_top_srcdir=$ac_pwd ;;
1612 [\\/]* | ?:[\\/]* ) # Absolute name.
1613 ac_srcdir=$srcdir$ac_dir_suffix;
1614 ac_top_srcdir=$srcdir
1615 ac_abs_top_srcdir=$srcdir ;;
1617 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1618 ac_top_srcdir=$ac_top_build_prefix$srcdir
1619 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1621 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1623 cd "$ac_dir" || { ac_status=$?; continue; }
1624 # Check for guested configure.
1625 if test -f "$ac_srcdir/configure.gnu"; then
1627 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1628 elif test -f "$ac_srcdir/configure"; then
1630 $SHELL "$ac_srcdir/configure" --help=recursive
1632 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1634 cd "$ac_pwd" || { ac_status=$?; break; }
1638 test -n "$ac_init_help" && exit $ac_status
1639 if $ac_init_version; then
1641 simgrid configure 3.3-svn
1642 generated by GNU Autoconf 2.61
1644 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1645 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1646 This configure script is free software; the Free Software Foundation
1647 gives unlimited permission to copy, distribute and modify it.
1651 cat >config.log <<_ACEOF
1652 This file contains any messages produced by compilers while
1653 running configure, to aid debugging if configure makes a mistake.
1655 It was created by simgrid $as_me 3.3-svn, which was
1656 generated by GNU Autoconf 2.61. Invocation command line was
1668 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1669 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1670 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1671 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1672 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1674 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1675 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1677 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1678 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1679 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1680 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1681 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1682 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1683 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1691 test -z "$as_dir" && as_dir=.
1692 echo "PATH: $as_dir"
1708 # Keep a trace of the command line.
1709 # Strip out --no-create and --no-recursion so they do not pile up.
1710 # Strip out --silent because we don't want to record it for future runs.
1711 # Also quote any args containing shell meta-characters.
1712 # Make two passes to allow for proper duplicate-argument suppression.
1716 ac_must_keep_next=false
1722 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1723 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1724 | -silent | --silent | --silen | --sile | --sil)
1727 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1730 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1732 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1733 if test $ac_must_keep_next = true; then
1734 ac_must_keep_next=false # Got value, back to normal.
1737 *=* | --config-cache | -C | -disable-* | --disable-* \
1738 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1739 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1740 | -with-* | --with-* | -without-* | --without-* | --x)
1741 case "$ac_configure_args0 " in
1742 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1745 -* ) ac_must_keep_next=true ;;
1748 ac_configure_args="$ac_configure_args '$ac_arg'"
1753 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1754 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1756 # When interrupted or exit'd, cleanup temporary files, and complete
1757 # config.log. We remove comments because anyway the quotes in there
1758 # would cause problems or look ugly.
1759 # WARNING: Use '\'' to represent an apostrophe within the trap.
1760 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1761 trap 'exit_status=$?
1762 # Save into config.log some information that might help in debugging.
1767 ## ---------------- ##
1768 ## Cache variables. ##
1769 ## ---------------- ##
1772 # The following way of writing the cache mishandles newlines in values,
1774 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1775 eval ac_val=\$$ac_var
1779 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1780 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1783 _ | IFS | as_nl) ;; #(
1784 *) $as_unset $ac_var ;;
1789 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1790 *${as_nl}ac_space=\ *)
1792 "s/'\''/'\''\\\\'\'''\''/g;
1793 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1796 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1804 ## ----------------- ##
1805 ## Output variables. ##
1806 ## ----------------- ##
1809 for ac_var in $ac_subst_vars
1811 eval ac_val=\$$ac_var
1813 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1815 echo "$ac_var='\''$ac_val'\''"
1819 if test -n "$ac_subst_files"; then
1821 ## ------------------- ##
1822 ## File substitutions. ##
1823 ## ------------------- ##
1826 for ac_var in $ac_subst_files
1828 eval ac_val=\$$ac_var
1830 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1832 echo "$ac_var='\''$ac_val'\''"
1837 if test -s confdefs.h; then
1847 test "$ac_signal" != 0 &&
1848 echo "$as_me: caught signal $ac_signal"
1849 echo "$as_me: exit $exit_status"
1851 rm -f core *.core core.conftest.* &&
1852 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1855 for ac_signal in 1 2 13 15; do
1856 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1860 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1861 rm -f -r conftest* confdefs.h
1863 # Predefined preprocessor variables.
1865 cat >>confdefs.h <<_ACEOF
1866 #define PACKAGE_NAME "$PACKAGE_NAME"
1870 cat >>confdefs.h <<_ACEOF
1871 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1875 cat >>confdefs.h <<_ACEOF
1876 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1880 cat >>confdefs.h <<_ACEOF
1881 #define PACKAGE_STRING "$PACKAGE_STRING"
1885 cat >>confdefs.h <<_ACEOF
1886 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1890 # Let the site file select an alternate cache file if it wants to.
1891 # Prefer explicitly selected file to automatically selected ones.
1892 if test -n "$CONFIG_SITE"; then
1893 set x "$CONFIG_SITE"
1894 elif test "x$prefix" != xNONE; then
1895 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1897 set x "$ac_default_prefix/share/config.site" \
1898 "$ac_default_prefix/etc/config.site"
1903 if test -r "$ac_site_file"; then
1904 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1905 echo "$as_me: loading site script $ac_site_file" >&6;}
1906 sed 's/^/| /' "$ac_site_file" >&5
1911 if test -r "$cache_file"; then
1912 # Some versions of bash will fail to source /dev/null (special
1913 # files actually), so we avoid doing that.
1914 if test -f "$cache_file"; then
1915 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1916 echo "$as_me: loading cache $cache_file" >&6;}
1918 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1919 *) . "./$cache_file";;
1923 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1924 echo "$as_me: creating cache $cache_file" >&6;}
1928 # Check that the precious variables saved in the cache have kept the same
1930 ac_cache_corrupted=false
1931 for ac_var in $ac_precious_vars; do
1932 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1933 eval ac_new_set=\$ac_env_${ac_var}_set
1934 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1935 eval ac_new_val=\$ac_env_${ac_var}_value
1936 case $ac_old_set,$ac_new_set in
1938 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1939 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1940 ac_cache_corrupted=: ;;
1942 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1943 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1944 ac_cache_corrupted=: ;;
1947 if test "x$ac_old_val" != "x$ac_new_val"; then
1948 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1949 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1950 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1951 echo "$as_me: former value: $ac_old_val" >&2;}
1952 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1953 echo "$as_me: current value: $ac_new_val" >&2;}
1954 ac_cache_corrupted=:
1957 # Pass precious variables to config.status.
1958 if test "$ac_new_set" = set; then
1960 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1961 *) ac_arg=$ac_var=$ac_new_val ;;
1963 case " $ac_configure_args " in
1964 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1965 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1969 if $ac_cache_corrupted; then
1970 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1971 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1972 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1973 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1974 { (exit 1); exit 1; }; }
2002 ac_cpp='$CPP $CPPFLAGS'
2003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2009 ac_config_headers="$ac_config_headers src/gras_config.h"
2011 # A CI_PREREQ(2003.01.16) # We need a recent ACI when having sub-modules
2015 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2016 if test -f "$ac_dir/install-sh"; then
2018 ac_install_sh="$ac_aux_dir/install-sh -c"
2020 elif test -f "$ac_dir/install.sh"; then
2022 ac_install_sh="$ac_aux_dir/install.sh -c"
2024 elif test -f "$ac_dir/shtool"; then
2026 ac_install_sh="$ac_aux_dir/shtool install -c"
2030 if test -z "$ac_aux_dir"; then
2031 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2032 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2033 { (exit 1); exit 1; }; }
2036 # These three variables are undocumented and unsupported,
2037 # and are intended to be withdrawn in a future Autoconf release.
2038 # They can cause serious problems if a builder's source tree is in a directory
2039 # whose full name contains unusual characters.
2040 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2041 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2042 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2045 # Make sure we can run config.sub.
2046 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2047 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2048 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2049 { (exit 1); exit 1; }; }
2051 { echo "$as_me:$LINENO: checking build system type" >&5
2052 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2053 if test "${ac_cv_build+set}" = set; then
2054 echo $ECHO_N "(cached) $ECHO_C" >&6
2056 ac_build_alias=$build_alias
2057 test "x$ac_build_alias" = x &&
2058 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2059 test "x$ac_build_alias" = x &&
2060 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2061 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2062 { (exit 1); exit 1; }; }
2063 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2064 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2065 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2066 { (exit 1); exit 1; }; }
2069 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2070 echo "${ECHO_T}$ac_cv_build" >&6; }
2071 case $ac_cv_build in
2073 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2074 echo "$as_me: error: invalid value of canonical build" >&2;}
2075 { (exit 1); exit 1; }; };;
2078 ac_save_IFS=$IFS; IFS='-'
2084 # Remember, the first character of IFS is used to create $*,
2085 # except with old shells:
2088 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2091 { echo "$as_me:$LINENO: checking host system type" >&5
2092 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2093 if test "${ac_cv_host+set}" = set; then
2094 echo $ECHO_N "(cached) $ECHO_C" >&6
2096 if test "x$host_alias" = x; then
2097 ac_cv_host=$ac_cv_build
2099 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2100 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2101 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2102 { (exit 1); exit 1; }; }
2106 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2107 echo "${ECHO_T}$ac_cv_host" >&6; }
2110 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2111 echo "$as_me: error: invalid value of canonical host" >&2;}
2112 { (exit 1); exit 1; }; };;
2115 ac_save_IFS=$IFS; IFS='-'
2121 # Remember, the first character of IFS is used to create $*,
2122 # except with old shells:
2125 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2128 { echo "$as_me:$LINENO: checking target system type" >&5
2129 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2130 if test "${ac_cv_target+set}" = set; then
2131 echo $ECHO_N "(cached) $ECHO_C" >&6
2133 if test "x$target_alias" = x; then
2134 ac_cv_target=$ac_cv_host
2136 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2137 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2138 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2139 { (exit 1); exit 1; }; }
2143 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2144 echo "${ECHO_T}$ac_cv_target" >&6; }
2145 case $ac_cv_target in
2147 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2148 echo "$as_me: error: invalid value of canonical target" >&2;}
2149 { (exit 1); exit 1; }; };;
2151 target=$ac_cv_target
2152 ac_save_IFS=$IFS; IFS='-'
2158 # Remember, the first character of IFS is used to create $*,
2159 # except with old shells:
2162 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2165 # The aliases save the names the user supplied, while $host etc.
2166 # will get canonicalized.
2167 test -n "$target_alias" &&
2168 test "$program_prefix$program_suffix$program_transform_name" = \
2170 program_prefix=${target_alias}-
2172 ac_cpp='$CPP $CPPFLAGS'
2173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2177 rm -rf .tst 2>/dev/null
2178 mkdir .tst 2>/dev/null
2179 if test -d .tst; then
2184 rmdir .tst 2>/dev/null
2186 DEPDIR="${am__leading_dot}deps"
2188 ac_config_commands="$ac_config_commands depfiles"
2191 am_make=${MAKE-make}
2192 cat > confinc << 'END'
2197 # If we don't find an include directive, just comment out the code.
2198 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2199 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2203 # First try GNU make style include.
2204 echo "include confinc" > confmf
2205 # We grep out `Entering directory' and `Leaving directory'
2206 # messages which can occur if `w' ends up in MAKEFLAGS.
2207 # In particular we don't look at `^make:' because GNU make might
2208 # be invoked under some other name (usually "gmake"), in which
2209 # case it prints its new name instead of `make'.
2210 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2215 # Now try BSD make style include.
2216 if test "$am__include" = "#"; then
2217 echo '.include "confinc"' > confmf
2218 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2219 am__include=.include
2226 { echo "$as_me:$LINENO: result: $_am_result" >&5
2227 echo "${ECHO_T}$_am_result" >&6; }
2228 rm -f confinc confmf
2230 # Check whether --enable-dependency-tracking was given.
2231 if test "${enable_dependency_tracking+set}" = set; then
2232 enableval=$enable_dependency_tracking;
2235 if test "x$enable_dependency_tracking" != xno; then
2236 am_depcomp="$ac_aux_dir/depcomp"
2239 if test "x$enable_dependency_tracking" != xno; then
2249 for ac_prog in gcj gcj-3.2 gcj-3.1 gcj-3.0 gcj-2.95
2251 # Extract the first word of "$ac_prog", so it can be a program name with args.
2252 set dummy $ac_prog; ac_word=$2
2253 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2255 if test "${ac_cv_prog_GCJ+set}" = set; then
2256 echo $ECHO_N "(cached) $ECHO_C" >&6
2258 if test -n "$GCJ"; then
2259 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
2261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2265 test -z "$as_dir" && as_dir=.
2266 for ac_exec_ext in '' $ac_executable_extensions; do
2267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2268 ac_cv_prog_GCJ="$ac_prog"
2269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2279 if test -n "$GCJ"; then
2280 { echo "$as_me:$LINENO: result: $GCJ" >&5
2281 echo "${ECHO_T}$GCJ" >&6; }
2283 { echo "$as_me:$LINENO: result: no" >&5
2284 echo "${ECHO_T}no" >&6; }
2288 test -n "$GCJ" && break
2290 test -n "$GCJ" || GCJ="gcj"
2292 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
2293 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
2294 { (exit 1); exit 1; }; }
2295 if test "x${GCJFLAGS-unset}" = xunset; then
2300 depcc="$GCJ" am_compiler_list='gcc3 gcc'
2302 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2303 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
2304 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
2305 echo $ECHO_N "(cached) $ECHO_C" >&6
2307 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2308 # We make a subdir and do the tests there. Otherwise we can end up
2309 # making bogus files that we don't know about and never remove. For
2310 # instance it was reported that on HP-UX the gcc test will end up
2311 # making a dummy file named `D' -- because `-MD' means `put the output
2314 # Copy depcomp to subdir because otherwise we won't find it if we're
2315 # using a relative directory.
2316 cp "$am_depcomp" conftest.dir
2318 # We will build objects and dependencies in a subdirectory because
2319 # it helps to detect inapplicable dependency modes. For instance
2320 # both Tru64's cc and ICC support -MD to output dependencies as a
2321 # side effect of compilation, but ICC will put the dependencies in
2322 # the current directory while Tru64 will put them in the object
2326 am_cv_GCJ_dependencies_compiler_type=none
2327 if test "$am_compiler_list" = ""; then
2328 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2330 for depmode in $am_compiler_list; do
2331 # Setup a source with many dependencies, because some compilers
2332 # like to wrap large dependency lists on column 80 (with \), and
2333 # we should not choose a depcomp mode which is confused by this.
2335 # We need to recreate these files for each test, as the compiler may
2336 # overwrite some of them when testing with obscure command lines.
2337 # This happens at least with the AIX C compiler.
2339 for i in 1 2 3 4 5 6; do
2340 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2341 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2342 # Solaris 8's {/usr,}/bin/sh.
2343 touch sub/conftst$i.h
2345 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2349 # after this tag, mechanisms are not by side-effect, so they'll
2350 # only be used when explicitly requested
2351 if test "x$enable_dependency_tracking" = xyes; then
2359 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2360 # mode. It turns out that the SunPro C++ compiler does not properly
2361 # handle `-M -o', and we need to detect this.
2362 if depmode=$depmode \
2363 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2364 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2365 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2366 >/dev/null 2>conftest.err &&
2367 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
2368 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2369 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2370 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2371 # icc doesn't choke on unknown options, it will just issue warnings
2372 # or remarks (even with -Werror). So we grep stderr for any message
2373 # that says an option was ignored or not supported.
2374 # When given -MP, icc 7.0 and 7.1 complain thusly:
2375 # icc: Command line warning: ignoring option '-M'; no argument required
2376 # The diagnosis changed in icc 8.0:
2377 # icc: Command line remark: option '-MP' not supported
2378 if (grep 'ignoring option' conftest.err ||
2379 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2380 am_cv_GCJ_dependencies_compiler_type=$depmode
2389 am_cv_GCJ_dependencies_compiler_type=none
2393 { echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
2394 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6; }
2395 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
2398 test "x$enable_dependency_tracking" != xno \
2399 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
2400 am__fastdepGCJ_TRUE=
2401 am__fastdepGCJ_FALSE='#'
2403 am__fastdepGCJ_TRUE='#'
2404 am__fastdepGCJ_FALSE=
2410 am__api_version='1.10'
2412 # Find a good install program. We prefer a C program (faster),
2413 # so one script is as good as another. But avoid the broken or
2414 # incompatible versions:
2415 # SysV /etc/install, /usr/sbin/install
2416 # SunOS /usr/etc/install
2417 # IRIX /sbin/install
2419 # AmigaOS /C/install, which installs bootblocks on floppy discs
2420 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2421 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2422 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2423 # OS/2's system install, which has a completely different semantic
2424 # ./install, which can be erroneously created by make from ./install.sh.
2425 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2426 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2427 if test -z "$INSTALL"; then
2428 if test "${ac_cv_path_install+set}" = set; then
2429 echo $ECHO_N "(cached) $ECHO_C" >&6
2431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2435 test -z "$as_dir" && as_dir=.
2436 # Account for people who put trailing slashes in PATH elements.
2438 ./ | .// | /cC/* | \
2439 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2440 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2443 # OSF1 and SCO ODT 3.0 have their own names for install.
2444 # Don't use installbsd from OSF since it installs stuff as root
2446 for ac_prog in ginstall scoinst install; do
2447 for ac_exec_ext in '' $ac_executable_extensions; do
2448 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2449 if test $ac_prog = install &&
2450 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2451 # AIX install. It has an incompatible calling convention.
2453 elif test $ac_prog = install &&
2454 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2455 # program-specific install script used by HP pwplus--don't use.
2458 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2471 if test "${ac_cv_path_install+set}" = set; then
2472 INSTALL=$ac_cv_path_install
2474 # As a last resort, use the slow shell script. Don't cache a
2475 # value for INSTALL within a source directory, because that will
2476 # break other packages using the cache if that directory is
2477 # removed, or if the value is a relative name.
2478 INSTALL=$ac_install_sh
2481 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2482 echo "${ECHO_T}$INSTALL" >&6; }
2484 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2485 # It thinks the first close brace ends the variable substitution.
2486 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2488 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2490 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2492 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2493 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2496 echo timestamp > conftest.file
2497 # Do `set' in a subshell so we don't clobber the current shell's
2498 # arguments. Must try -L first in case configure is actually a
2499 # symlink; some systems play weird games with the mod time of symlinks
2500 # (eg FreeBSD returns the mod time of the symlink's containing
2503 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2504 if test "$*" = "X"; then
2506 set X `ls -t $srcdir/configure conftest.file`
2509 if test "$*" != "X $srcdir/configure conftest.file" \
2510 && test "$*" != "X conftest.file $srcdir/configure"; then
2512 # If neither matched, then we have a broken ls. This can happen
2513 # if, for instance, CONFIG_SHELL is bash and it inherits a
2514 # broken ls alias from the environment. This has actually
2515 # happened. Such a system could not be considered "sane".
2516 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2517 alias in your environment" >&5
2518 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2519 alias in your environment" >&2;}
2520 { (exit 1); exit 1; }; }
2523 test "$2" = conftest.file
2529 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2530 Check your system clock" >&5
2531 echo "$as_me: error: newly created file is older than distributed files!
2532 Check your system clock" >&2;}
2533 { (exit 1); exit 1; }; }
2535 { echo "$as_me:$LINENO: result: yes" >&5
2536 echo "${ECHO_T}yes" >&6; }
2537 test "$program_prefix" != NONE &&
2538 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2539 # Use a double $ so make ignores it.
2540 test "$program_suffix" != NONE &&
2541 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2542 # Double any \ or $. echo might interpret backslashes.
2543 # By default was `s,x,x', remove it if useless.
2544 cat <<\_ACEOF >conftest.sed
2545 s/[\\$]/&&/g;s/;s,x,x,$//
2547 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2550 # expand $ac_aux_dir to an absolute path
2551 am_aux_dir=`cd $ac_aux_dir && pwd`
2553 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2554 # Use eval to expand $SHELL
2555 if eval "$MISSING --run true"; then
2556 am_missing_run="$MISSING --run "
2559 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2560 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2563 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2564 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2565 if test -z "$MKDIR_P"; then
2566 if test "${ac_cv_path_mkdir+set}" = set; then
2567 echo $ECHO_N "(cached) $ECHO_C" >&6
2569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2570 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2573 test -z "$as_dir" && as_dir=.
2574 for ac_prog in mkdir gmkdir; do
2575 for ac_exec_ext in '' $ac_executable_extensions; do
2576 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2577 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2578 'mkdir (GNU coreutils) '* | \
2579 'mkdir (coreutils) '* | \
2580 'mkdir (fileutils) '4.1*)
2581 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2591 if test "${ac_cv_path_mkdir+set}" = set; then
2592 MKDIR_P="$ac_cv_path_mkdir -p"
2594 # As a last resort, use the slow shell script. Don't cache a
2595 # value for MKDIR_P within a source directory, because that will
2596 # break other packages using the cache if that directory is
2597 # removed, or if the value is a relative name.
2598 test -d ./--version && rmdir ./--version
2599 MKDIR_P="$ac_install_sh -d"
2602 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2603 echo "${ECHO_T}$MKDIR_P" >&6; }
2607 [\\/$]* | ?:[\\/]*) ;;
2608 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2611 for ac_prog in gawk mawk nawk awk
2613 # Extract the first word of "$ac_prog", so it can be a program name with args.
2614 set dummy $ac_prog; ac_word=$2
2615 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2617 if test "${ac_cv_prog_AWK+set}" = set; then
2618 echo $ECHO_N "(cached) $ECHO_C" >&6
2620 if test -n "$AWK"; then
2621 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2627 test -z "$as_dir" && as_dir=.
2628 for ac_exec_ext in '' $ac_executable_extensions; do
2629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2630 ac_cv_prog_AWK="$ac_prog"
2631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2641 if test -n "$AWK"; then
2642 { echo "$as_me:$LINENO: result: $AWK" >&5
2643 echo "${ECHO_T}$AWK" >&6; }
2645 { echo "$as_me:$LINENO: result: no" >&5
2646 echo "${ECHO_T}no" >&6; }
2650 test -n "$AWK" && break
2653 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2654 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2655 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2656 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2657 echo $ECHO_N "(cached) $ECHO_C" >&6
2659 cat >conftest.make <<\_ACEOF
2662 @echo '@@@%%%=$(MAKE)=@@@%%%'
2664 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2665 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2667 eval ac_cv_prog_make_${ac_make}_set=yes;;
2669 eval ac_cv_prog_make_${ac_make}_set=no;;
2673 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2674 { echo "$as_me:$LINENO: result: yes" >&5
2675 echo "${ECHO_T}yes" >&6; }
2678 { echo "$as_me:$LINENO: result: no" >&5
2679 echo "${ECHO_T}no" >&6; }
2680 SET_MAKE="MAKE=${MAKE-make}"
2683 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2684 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2685 # is not polluted with repeated "-I."
2686 am__isrc=' -I$(srcdir)'
2687 # test to see if srcdir already configured
2688 if test -f $srcdir/config.status; then
2689 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2690 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2691 { (exit 1); exit 1; }; }
2695 # test whether we have cygpath
2696 if test -z "$CYGPATH_W"; then
2697 if (cygpath --version) >/dev/null 2>/dev/null; then
2698 CYGPATH_W='cygpath -w'
2705 # Define the identity of the package.
2710 cat >>confdefs.h <<_ACEOF
2711 #define PACKAGE "$PACKAGE"
2715 cat >>confdefs.h <<_ACEOF
2716 #define VERSION "$VERSION"
2719 # Some tools Automake needs.
2721 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2724 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2727 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2730 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2733 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2735 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2737 # Installed binaries are usually stripped using `strip' when the user
2738 # run `make install-strip'. However `strip' might not be the right
2739 # tool to use in cross-compilation environments, therefore Automake
2740 # will honor the `STRIP' environment variable to overrule this program.
2741 if test "$cross_compiling" != no; then
2742 if test -n "$ac_tool_prefix"; then
2743 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2744 set dummy ${ac_tool_prefix}strip; ac_word=$2
2745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2747 if test "${ac_cv_prog_STRIP+set}" = set; then
2748 echo $ECHO_N "(cached) $ECHO_C" >&6
2750 if test -n "$STRIP"; then
2751 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2757 test -z "$as_dir" && as_dir=.
2758 for ac_exec_ext in '' $ac_executable_extensions; do
2759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2760 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2770 STRIP=$ac_cv_prog_STRIP
2771 if test -n "$STRIP"; then
2772 { echo "$as_me:$LINENO: result: $STRIP" >&5
2773 echo "${ECHO_T}$STRIP" >&6; }
2775 { echo "$as_me:$LINENO: result: no" >&5
2776 echo "${ECHO_T}no" >&6; }
2781 if test -z "$ac_cv_prog_STRIP"; then
2783 # Extract the first word of "strip", so it can be a program name with args.
2784 set dummy strip; ac_word=$2
2785 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2787 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2788 echo $ECHO_N "(cached) $ECHO_C" >&6
2790 if test -n "$ac_ct_STRIP"; then
2791 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797 test -z "$as_dir" && as_dir=.
2798 for ac_exec_ext in '' $ac_executable_extensions; do
2799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2800 ac_cv_prog_ac_ct_STRIP="strip"
2801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2810 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2811 if test -n "$ac_ct_STRIP"; then
2812 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2813 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2815 { echo "$as_me:$LINENO: result: no" >&5
2816 echo "${ECHO_T}no" >&6; }
2819 if test "x$ac_ct_STRIP" = x; then
2822 case $cross_compiling:$ac_tool_warned in
2824 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2825 whose name does not start with the host triplet. If you think this
2826 configuration is useful to you, please write to autoconf@gnu.org." >&5
2827 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2828 whose name does not start with the host triplet. If you think this
2829 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2830 ac_tool_warned=yes ;;
2835 STRIP="$ac_cv_prog_STRIP"
2839 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2841 # We need awk for the "check" target. The system "awk" is bad on
2843 # Always define AMTAR for backward compatibility.
2845 AMTAR=${AMTAR-"${am_missing_run}tar"}
2847 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2854 ACLOCAL="$ACLOCAL -I acmacro"
2861 # Check whether --enable-shared was given.
2862 if test "${enable_shared+set}" = set; then
2863 enableval=$enable_shared; p=${PACKAGE-default}
2865 yes) enable_shared=yes ;;
2866 no) enable_shared=no ;;
2869 # Look at the argument we got. We use all the common list separators.
2870 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2871 for pkg in $enableval; do
2873 if test "X$pkg" = "X$p"; then
2885 # Check whether --enable-static was given.
2886 if test "${enable_static+set}" = set; then
2887 enableval=$enable_static; p=${PACKAGE-default}
2889 yes) enable_static=yes ;;
2890 no) enable_static=no ;;
2893 # Look at the argument we got. We use all the common list separators.
2894 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2895 for pkg in $enableval; do
2897 if test "X$pkg" = "X$p"; then
2909 # Check whether --enable-fast-install was given.
2910 if test "${enable_fast_install+set}" = set; then
2911 enableval=$enable_fast_install; p=${PACKAGE-default}
2913 yes) enable_fast_install=yes ;;
2914 no) enable_fast_install=no ;;
2916 enable_fast_install=no
2917 # Look at the argument we got. We use all the common list separators.
2918 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2919 for pkg in $enableval; do
2921 if test "X$pkg" = "X$p"; then
2922 enable_fast_install=yes
2929 enable_fast_install=yes
2934 ac_cpp='$CPP $CPPFLAGS'
2935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2938 if test -n "$ac_tool_prefix"; then
2939 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2940 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2943 if test "${ac_cv_prog_CC+set}" = set; then
2944 echo $ECHO_N "(cached) $ECHO_C" >&6
2946 if test -n "$CC"; then
2947 ac_cv_prog_CC="$CC" # Let the user override the test.
2949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953 test -z "$as_dir" && as_dir=.
2954 for ac_exec_ext in '' $ac_executable_extensions; do
2955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2956 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2967 if test -n "$CC"; then
2968 { echo "$as_me:$LINENO: result: $CC" >&5
2969 echo "${ECHO_T}$CC" >&6; }
2971 { echo "$as_me:$LINENO: result: no" >&5
2972 echo "${ECHO_T}no" >&6; }
2977 if test -z "$ac_cv_prog_CC"; then
2979 # Extract the first word of "gcc", so it can be a program name with args.
2980 set dummy gcc; ac_word=$2
2981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2983 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2984 echo $ECHO_N "(cached) $ECHO_C" >&6
2986 if test -n "$ac_ct_CC"; then
2987 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993 test -z "$as_dir" && as_dir=.
2994 for ac_exec_ext in '' $ac_executable_extensions; do
2995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2996 ac_cv_prog_ac_ct_CC="gcc"
2997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3006 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3007 if test -n "$ac_ct_CC"; then
3008 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3009 echo "${ECHO_T}$ac_ct_CC" >&6; }
3011 { echo "$as_me:$LINENO: result: no" >&5
3012 echo "${ECHO_T}no" >&6; }
3015 if test "x$ac_ct_CC" = x; then
3018 case $cross_compiling:$ac_tool_warned in
3020 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3021 whose name does not start with the host triplet. If you think this
3022 configuration is useful to you, please write to autoconf@gnu.org." >&5
3023 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3024 whose name does not start with the host triplet. If you think this
3025 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3026 ac_tool_warned=yes ;;
3034 if test -z "$CC"; then
3035 if test -n "$ac_tool_prefix"; then
3036 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3037 set dummy ${ac_tool_prefix}cc; ac_word=$2
3038 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3040 if test "${ac_cv_prog_CC+set}" = set; then
3041 echo $ECHO_N "(cached) $ECHO_C" >&6
3043 if test -n "$CC"; then
3044 ac_cv_prog_CC="$CC" # Let the user override the test.
3046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3050 test -z "$as_dir" && as_dir=.
3051 for ac_exec_ext in '' $ac_executable_extensions; do
3052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3053 ac_cv_prog_CC="${ac_tool_prefix}cc"
3054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3064 if test -n "$CC"; then
3065 { echo "$as_me:$LINENO: result: $CC" >&5
3066 echo "${ECHO_T}$CC" >&6; }
3068 { echo "$as_me:$LINENO: result: no" >&5
3069 echo "${ECHO_T}no" >&6; }
3075 if test -z "$CC"; then
3076 # Extract the first word of "cc", so it can be a program name with args.
3077 set dummy cc; ac_word=$2
3078 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3080 if test "${ac_cv_prog_CC+set}" = set; then
3081 echo $ECHO_N "(cached) $ECHO_C" >&6
3083 if test -n "$CC"; then
3084 ac_cv_prog_CC="$CC" # Let the user override the test.
3087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3091 test -z "$as_dir" && as_dir=.
3092 for ac_exec_ext in '' $ac_executable_extensions; do
3093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3094 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3095 ac_prog_rejected=yes
3099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3106 if test $ac_prog_rejected = yes; then
3107 # We found a bogon in the path, so make sure we never use it.
3108 set dummy $ac_cv_prog_CC
3110 if test $# != 0; then
3111 # We chose a different compiler from the bogus one.
3112 # However, it has the same basename, so the bogon will be chosen
3113 # first if we set CC to just the basename; use the full file name.
3115 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3121 if test -n "$CC"; then
3122 { echo "$as_me:$LINENO: result: $CC" >&5
3123 echo "${ECHO_T}$CC" >&6; }
3125 { echo "$as_me:$LINENO: result: no" >&5
3126 echo "${ECHO_T}no" >&6; }
3131 if test -z "$CC"; then
3132 if test -n "$ac_tool_prefix"; then
3133 for ac_prog in cl.exe
3135 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3136 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3137 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3139 if test "${ac_cv_prog_CC+set}" = set; then
3140 echo $ECHO_N "(cached) $ECHO_C" >&6
3142 if test -n "$CC"; then
3143 ac_cv_prog_CC="$CC" # Let the user override the test.
3145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149 test -z "$as_dir" && as_dir=.
3150 for ac_exec_ext in '' $ac_executable_extensions; do
3151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3152 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3163 if test -n "$CC"; then
3164 { echo "$as_me:$LINENO: result: $CC" >&5
3165 echo "${ECHO_T}$CC" >&6; }
3167 { echo "$as_me:$LINENO: result: no" >&5
3168 echo "${ECHO_T}no" >&6; }
3172 test -n "$CC" && break
3175 if test -z "$CC"; then
3177 for ac_prog in cl.exe
3179 # Extract the first word of "$ac_prog", so it can be a program name with args.
3180 set dummy $ac_prog; ac_word=$2
3181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3183 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3184 echo $ECHO_N "(cached) $ECHO_C" >&6
3186 if test -n "$ac_ct_CC"; then
3187 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193 test -z "$as_dir" && as_dir=.
3194 for ac_exec_ext in '' $ac_executable_extensions; do
3195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3196 ac_cv_prog_ac_ct_CC="$ac_prog"
3197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3206 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3207 if test -n "$ac_ct_CC"; then
3208 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3209 echo "${ECHO_T}$ac_ct_CC" >&6; }
3211 { echo "$as_me:$LINENO: result: no" >&5
3212 echo "${ECHO_T}no" >&6; }
3216 test -n "$ac_ct_CC" && break
3219 if test "x$ac_ct_CC" = x; then
3222 case $cross_compiling:$ac_tool_warned in
3224 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3225 whose name does not start with the host triplet. If you think this
3226 configuration is useful to you, please write to autoconf@gnu.org." >&5
3227 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3228 whose name does not start with the host triplet. If you think this
3229 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3230 ac_tool_warned=yes ;;
3239 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3240 See \`config.log' for more details." >&5
3241 echo "$as_me: error: no acceptable C compiler found in \$PATH
3242 See \`config.log' for more details." >&2;}
3243 { (exit 1); exit 1; }; }
3245 # Provide some information about the compiler.
3246 echo "$as_me:$LINENO: checking for C compiler version" >&5
3247 ac_compiler=`set X $ac_compile; echo $2`
3248 { (ac_try="$ac_compiler --version >&5"
3250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251 *) ac_try_echo=$ac_try;;
3253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3254 (eval "$ac_compiler --version >&5") 2>&5
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); }
3258 { (ac_try="$ac_compiler -v >&5"
3260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261 *) ac_try_echo=$ac_try;;
3263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3264 (eval "$ac_compiler -v >&5") 2>&5
3266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267 (exit $ac_status); }
3268 { (ac_try="$ac_compiler -V >&5"
3270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3271 *) ac_try_echo=$ac_try;;
3273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3274 (eval "$ac_compiler -V >&5") 2>&5
3276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277 (exit $ac_status); }
3279 cat >conftest.$ac_ext <<_ACEOF
3282 cat confdefs.h >>conftest.$ac_ext
3283 cat >>conftest.$ac_ext <<_ACEOF
3284 /* end confdefs.h. */
3294 ac_clean_files_save=$ac_clean_files
3295 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3296 # Try to create an executable without -o first, disregard a.out.
3297 # It will help us diagnose broken compilers, and finding out an intuition
3299 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3300 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3301 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3303 # List of possible output files, starting from the most likely.
3304 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3305 # only as a last resort. b.out is created by i960 compilers.
3306 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3308 # The IRIX 6 linker writes into existing files which may not be
3309 # executable, retaining their permissions. Remove them first so a
3310 # subsequent execution test works.
3312 for ac_file in $ac_files
3315 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3316 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3321 if { (ac_try="$ac_link_default"
3323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324 *) ac_try_echo=$ac_try;;
3326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3327 (eval "$ac_link_default") 2>&5
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); }; then
3331 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3332 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3333 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3334 # so that the user can short-circuit this test for compilers unknown to
3336 for ac_file in $ac_files ''
3338 test -f "$ac_file" || continue
3340 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3343 # We found the default executable, but exeext='' is most
3347 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3349 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3351 # We set ac_cv_exeext here because the later test for it is not
3352 # safe: cross compilers may not add the suffix if given an `-o'
3353 # argument, so we may need to know it at that point already.
3354 # Even if this section looks crufty: it has the advantage of
3361 test "$ac_cv_exeext" = no && ac_cv_exeext=
3367 { echo "$as_me:$LINENO: result: $ac_file" >&5
3368 echo "${ECHO_T}$ac_file" >&6; }
3369 if test -z "$ac_file"; then
3370 echo "$as_me: failed program was:" >&5
3371 sed 's/^/| /' conftest.$ac_ext >&5
3373 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3374 See \`config.log' for more details." >&5
3375 echo "$as_me: error: C compiler cannot create executables
3376 See \`config.log' for more details." >&2;}
3377 { (exit 77); exit 77; }; }
3380 ac_exeext=$ac_cv_exeext
3382 # Check that the compiler produces executables we can run. If not, either
3383 # the compiler is broken, or we cross compile.
3384 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3385 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3386 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3387 # If not cross compiling, check that we can run a simple program.
3388 if test "$cross_compiling" != yes; then
3389 if { ac_try='./$ac_file'
3390 { (case "(($ac_try" in
3391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392 *) ac_try_echo=$ac_try;;
3394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3395 (eval "$ac_try") 2>&5
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); }; }; then
3401 if test "$cross_compiling" = maybe; then
3404 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3405 If you meant to cross compile, use \`--host'.
3406 See \`config.log' for more details." >&5
3407 echo "$as_me: error: cannot run C compiled programs.
3408 If you meant to cross compile, use \`--host'.
3409 See \`config.log' for more details." >&2;}
3410 { (exit 1); exit 1; }; }
3414 { echo "$as_me:$LINENO: result: yes" >&5
3415 echo "${ECHO_T}yes" >&6; }
3417 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3418 ac_clean_files=$ac_clean_files_save
3419 # Check that the compiler produces executables we can run. If not, either
3420 # the compiler is broken, or we cross compile.
3421 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3422 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3423 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3424 echo "${ECHO_T}$cross_compiling" >&6; }
3426 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3427 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3428 if { (ac_try="$ac_link"
3430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431 *) ac_try_echo=$ac_try;;
3433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3434 (eval "$ac_link") 2>&5
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); }; then
3438 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3439 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3440 # work properly (i.e., refer to `conftest.exe'), while it won't with
3442 for ac_file in conftest.exe conftest conftest.*; do
3443 test -f "$ac_file" || continue
3445 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3446 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3452 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3453 See \`config.log' for more details." >&5
3454 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3455 See \`config.log' for more details." >&2;}
3456 { (exit 1); exit 1; }; }
3459 rm -f conftest$ac_cv_exeext
3460 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3461 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3463 rm -f conftest.$ac_ext
3464 EXEEXT=$ac_cv_exeext
3466 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3467 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3468 if test "${ac_cv_objext+set}" = set; then
3469 echo $ECHO_N "(cached) $ECHO_C" >&6
3471 cat >conftest.$ac_ext <<_ACEOF
3474 cat confdefs.h >>conftest.$ac_ext
3475 cat >>conftest.$ac_ext <<_ACEOF
3476 /* end confdefs.h. */
3486 rm -f conftest.o conftest.obj
3487 if { (ac_try="$ac_compile"
3489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3490 *) ac_try_echo=$ac_try;;
3492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3493 (eval "$ac_compile") 2>&5
3495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496 (exit $ac_status); }; then
3497 for ac_file in conftest.o conftest.obj conftest.*; do
3498 test -f "$ac_file" || continue;
3500 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3501 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3506 echo "$as_me: failed program was:" >&5
3507 sed 's/^/| /' conftest.$ac_ext >&5
3509 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3510 See \`config.log' for more details." >&5
3511 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3512 See \`config.log' for more details." >&2;}
3513 { (exit 1); exit 1; }; }
3516 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3518 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3519 echo "${ECHO_T}$ac_cv_objext" >&6; }
3520 OBJEXT=$ac_cv_objext
3522 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3523 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3524 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3525 echo $ECHO_N "(cached) $ECHO_C" >&6
3527 cat >conftest.$ac_ext <<_ACEOF
3530 cat confdefs.h >>conftest.$ac_ext
3531 cat >>conftest.$ac_ext <<_ACEOF
3532 /* end confdefs.h. */
3545 rm -f conftest.$ac_objext
3546 if { (ac_try="$ac_compile"
3548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549 *) ac_try_echo=$ac_try;;
3551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3552 (eval "$ac_compile") 2>conftest.er1
3554 grep -v '^ *+' conftest.er1 >conftest.err
3556 cat conftest.err >&5
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); } && {
3559 test -z "$ac_c_werror_flag" ||
3560 test ! -s conftest.err
3561 } && test -s conftest.$ac_objext; then
3564 echo "$as_me: failed program was:" >&5
3565 sed 's/^/| /' conftest.$ac_ext >&5
3570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3571 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3574 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3575 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3576 GCC=`test $ac_compiler_gnu = yes && echo yes`
3577 ac_test_CFLAGS=${CFLAGS+set}
3578 ac_save_CFLAGS=$CFLAGS
3579 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3580 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3581 if test "${ac_cv_prog_cc_g+set}" = set; then
3582 echo $ECHO_N "(cached) $ECHO_C" >&6
3584 ac_save_c_werror_flag=$ac_c_werror_flag
3585 ac_c_werror_flag=yes
3588 cat >conftest.$ac_ext <<_ACEOF
3591 cat confdefs.h >>conftest.$ac_ext
3592 cat >>conftest.$ac_ext <<_ACEOF
3593 /* end confdefs.h. */
3603 rm -f conftest.$ac_objext
3604 if { (ac_try="$ac_compile"
3606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3607 *) ac_try_echo=$ac_try;;
3609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3610 (eval "$ac_compile") 2>conftest.er1
3612 grep -v '^ *+' conftest.er1 >conftest.err
3614 cat conftest.err >&5
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); } && {
3617 test -z "$ac_c_werror_flag" ||
3618 test ! -s conftest.err
3619 } && test -s conftest.$ac_objext; then
3622 echo "$as_me: failed program was:" >&5
3623 sed 's/^/| /' conftest.$ac_ext >&5
3626 cat >conftest.$ac_ext <<_ACEOF
3629 cat confdefs.h >>conftest.$ac_ext
3630 cat >>conftest.$ac_ext <<_ACEOF
3631 /* end confdefs.h. */
3641 rm -f conftest.$ac_objext
3642 if { (ac_try="$ac_compile"
3644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3645 *) ac_try_echo=$ac_try;;
3647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3648 (eval "$ac_compile") 2>conftest.er1
3650 grep -v '^ *+' conftest.er1 >conftest.err
3652 cat conftest.err >&5
3653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654 (exit $ac_status); } && {
3655 test -z "$ac_c_werror_flag" ||
3656 test ! -s conftest.err
3657 } && test -s conftest.$ac_objext; then
3660 echo "$as_me: failed program was:" >&5
3661 sed 's/^/| /' conftest.$ac_ext >&5
3663 ac_c_werror_flag=$ac_save_c_werror_flag
3665 cat >conftest.$ac_ext <<_ACEOF
3668 cat confdefs.h >>conftest.$ac_ext
3669 cat >>conftest.$ac_ext <<_ACEOF
3670 /* end confdefs.h. */
3680 rm -f conftest.$ac_objext
3681 if { (ac_try="$ac_compile"
3683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3684 *) ac_try_echo=$ac_try;;
3686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3687 (eval "$ac_compile") 2>conftest.er1
3689 grep -v '^ *+' conftest.er1 >conftest.err
3691 cat conftest.err >&5
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); } && {
3694 test -z "$ac_c_werror_flag" ||
3695 test ! -s conftest.err
3696 } && test -s conftest.$ac_objext; then
3699 echo "$as_me: failed program was:" >&5
3700 sed 's/^/| /' conftest.$ac_ext >&5
3705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3712 ac_c_werror_flag=$ac_save_c_werror_flag
3714 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3715 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3716 if test "$ac_test_CFLAGS" = set; then
3717 CFLAGS=$ac_save_CFLAGS
3718 elif test $ac_cv_prog_cc_g = yes; then
3719 if test "$GCC" = yes; then
3725 if test "$GCC" = yes; then
3731 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3732 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3733 if test "${ac_cv_prog_cc_c89+set}" = set; then
3734 echo $ECHO_N "(cached) $ECHO_C" >&6
3736 ac_cv_prog_cc_c89=no
3738 cat >conftest.$ac_ext <<_ACEOF
3741 cat confdefs.h >>conftest.$ac_ext
3742 cat >>conftest.$ac_ext <<_ACEOF
3743 /* end confdefs.h. */
3746 #include <sys/types.h>
3747 #include <sys/stat.h>
3748 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3749 struct buf { int x; };
3750 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3751 static char *e (p, i)
3757 static char *f (char * (*g) (char **, int), char **p, ...)
3762 s = g (p, va_arg (v,int));
3767 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3768 function prototypes and stuff, but not '\xHH' hex character constants.
3769 These don't provoke an error unfortunately, instead are silently treated
3770 as 'x'. The following induces an error, until -std is added to get
3771 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3772 array size at least. It's necessary to write '\x00'==0 to get something
3773 that's true only with -std. */
3774 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3776 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3777 inside strings and character constants. */
3779 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3781 int test (int i, double x);
3782 struct s1 {int (*f) (int a);};
3783 struct s2 {int (*f) (double a);};
3784 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3790 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3795 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3796 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3798 CC="$ac_save_CC $ac_arg"
3799 rm -f conftest.$ac_objext
3800 if { (ac_try="$ac_compile"
3802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3803 *) ac_try_echo=$ac_try;;
3805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3806 (eval "$ac_compile") 2>conftest.er1
3808 grep -v '^ *+' conftest.er1 >conftest.err
3810 cat conftest.err >&5
3811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812 (exit $ac_status); } && {
3813 test -z "$ac_c_werror_flag" ||
3814 test ! -s conftest.err
3815 } && test -s conftest.$ac_objext; then
3816 ac_cv_prog_cc_c89=$ac_arg
3818 echo "$as_me: failed program was:" >&5
3819 sed 's/^/| /' conftest.$ac_ext >&5
3824 rm -f core conftest.err conftest.$ac_objext
3825 test "x$ac_cv_prog_cc_c89" != "xno" && break
3827 rm -f conftest.$ac_ext
3832 case "x$ac_cv_prog_cc_c89" in
3834 { echo "$as_me:$LINENO: result: none needed" >&5
3835 echo "${ECHO_T}none needed" >&6; } ;;
3837 { echo "$as_me:$LINENO: result: unsupported" >&5
3838 echo "${ECHO_T}unsupported" >&6; } ;;
3840 CC="$CC $ac_cv_prog_cc_c89"
3841 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3842 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3847 ac_cpp='$CPP $CPPFLAGS'
3848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3852 depcc="$CC" am_compiler_list=
3854 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3855 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3856 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3857 echo $ECHO_N "(cached) $ECHO_C" >&6
3859 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3860 # We make a subdir and do the tests there. Otherwise we can end up
3861 # making bogus files that we don't know about and never remove. For
3862 # instance it was reported that on HP-UX the gcc test will end up
3863 # making a dummy file named `D' -- because `-MD' means `put the output
3866 # Copy depcomp to subdir because otherwise we won't find it if we're
3867 # using a relative directory.
3868 cp "$am_depcomp" conftest.dir
3870 # We will build objects and dependencies in a subdirectory because
3871 # it helps to detect inapplicable dependency modes. For instance
3872 # both Tru64's cc and ICC support -MD to output dependencies as a
3873 # side effect of compilation, but ICC will put the dependencies in
3874 # the current directory while Tru64 will put them in the object
3878 am_cv_CC_dependencies_compiler_type=none
3879 if test "$am_compiler_list" = ""; then
3880 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3882 for depmode in $am_compiler_list; do
3883 # Setup a source with many dependencies, because some compilers
3884 # like to wrap large dependency lists on column 80 (with \), and
3885 # we should not choose a depcomp mode which is confused by this.
3887 # We need to recreate these files for each test, as the compiler may
3888 # overwrite some of them when testing with obscure command lines.
3889 # This happens at least with the AIX C compiler.
3891 for i in 1 2 3 4 5 6; do
3892 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3893 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3894 # Solaris 8's {/usr,}/bin/sh.
3895 touch sub/conftst$i.h
3897 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3901 # after this tag, mechanisms are not by side-effect, so they'll
3902 # only be used when explicitly requested
3903 if test "x$enable_dependency_tracking" = xyes; then
3911 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3912 # mode. It turns out that the SunPro C++ compiler does not properly
3913 # handle `-M -o', and we need to detect this.
3914 if depmode=$depmode \
3915 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3916 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3917 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3918 >/dev/null 2>conftest.err &&
3919 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3920 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3921 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3922 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3923 # icc doesn't choke on unknown options, it will just issue warnings
3924 # or remarks (even with -Werror). So we grep stderr for any message
3925 # that says an option was ignored or not supported.
3926 # When given -MP, icc 7.0 and 7.1 complain thusly:
3927 # icc: Command line warning: ignoring option '-M'; no argument required
3928 # The diagnosis changed in icc 8.0:
3929 # icc: Command line remark: option '-MP' not supported
3930 if (grep 'ignoring option' conftest.err ||
3931 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3932 am_cv_CC_dependencies_compiler_type=$depmode
3941 am_cv_CC_dependencies_compiler_type=none
3945 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3946 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3947 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3950 test "x$enable_dependency_tracking" != xno \
3951 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3953 am__fastdepCC_FALSE='#'
3955 am__fastdepCC_TRUE='#'
3956 am__fastdepCC_FALSE=
3960 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3961 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3962 if test "${lt_cv_path_SED+set}" = set; then
3963 echo $ECHO_N "(cached) $ECHO_C" >&6
3965 # Loop through the user's path and test for sed and gsed.
3966 # Then use that list of sed's as ones to test for truncation.
3967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971 test -z "$as_dir" && as_dir=.
3972 for lt_ac_prog in sed gsed; do
3973 for ac_exec_ext in '' $ac_executable_extensions; do
3974 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3975 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3983 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3984 # along with /bin/sed that truncates output.
3985 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3986 test ! -f $lt_ac_sed && continue
3987 cat /dev/null > conftest.in
3989 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3990 # Check for GNU sed and select it if it is found.
3991 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3992 lt_cv_path_SED=$lt_ac_sed
3996 cat conftest.in conftest.in >conftest.tmp
3997 mv conftest.tmp conftest.in
3998 cp conftest.in conftest.nl
4000 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4001 cmp -s conftest.out conftest.nl || break
4002 # 10000 chars as input seems more than enough
4003 test $lt_ac_count -gt 10 && break
4004 lt_ac_count=`expr $lt_ac_count + 1`
4005 if test $lt_ac_count -gt $lt_ac_max; then
4006 lt_ac_max=$lt_ac_count
4007 lt_cv_path_SED=$lt_ac_sed
4016 { echo "$as_me:$LINENO: result: $SED" >&5
4017 echo "${ECHO_T}$SED" >&6; }
4019 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4020 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4021 if test "${ac_cv_path_GREP+set}" = set; then
4022 echo $ECHO_N "(cached) $ECHO_C" >&6
4024 # Extract the first word of "grep ggrep" to use in msg output
4025 if test -z "$GREP"; then
4026 set dummy grep ggrep; ac_prog_name=$2
4027 if test "${ac_cv_path_GREP+set}" = set; then
4028 echo $ECHO_N "(cached) $ECHO_C" >&6
4030 ac_path_GREP_found=false
4031 # Loop through the user's path and test for each of PROGNAME-LIST
4032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4033 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4036 test -z "$as_dir" && as_dir=.
4037 for ac_prog in grep ggrep; do
4038 for ac_exec_ext in '' $ac_executable_extensions; do
4039 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4040 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4041 # Check for GNU ac_path_GREP and select it if it is found.
4042 # Check for GNU $ac_path_GREP
4043 case `"$ac_path_GREP" --version 2>&1` in
4045 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4048 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4051 cat "conftest.in" "conftest.in" >"conftest.tmp"
4052 mv "conftest.tmp" "conftest.in"
4053 cp "conftest.in" "conftest.nl"
4054 echo 'GREP' >> "conftest.nl"
4055 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4056 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4057 ac_count=`expr $ac_count + 1`
4058 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4059 # Best one so far, save it but keep looking for a better one
4060 ac_cv_path_GREP="$ac_path_GREP"
4061 ac_path_GREP_max=$ac_count
4063 # 10*(2^10) chars as input seems more than enough
4064 test $ac_count -gt 10 && break
4066 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4070 $ac_path_GREP_found && break 3
4080 GREP="$ac_cv_path_GREP"
4081 if test -z "$GREP"; then
4082 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4083 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4084 { (exit 1); exit 1; }; }
4088 ac_cv_path_GREP=$GREP
4093 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4094 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4095 GREP="$ac_cv_path_GREP"
4098 { echo "$as_me:$LINENO: checking for egrep" >&5
4099 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4100 if test "${ac_cv_path_EGREP+set}" = set; then
4101 echo $ECHO_N "(cached) $ECHO_C" >&6
4103 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4104 then ac_cv_path_EGREP="$GREP -E"
4106 # Extract the first word of "egrep" to use in msg output
4107 if test -z "$EGREP"; then
4108 set dummy egrep; ac_prog_name=$2
4109 if test "${ac_cv_path_EGREP+set}" = set; then
4110 echo $ECHO_N "(cached) $ECHO_C" >&6
4112 ac_path_EGREP_found=false
4113 # Loop through the user's path and test for each of PROGNAME-LIST
4114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4115 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4118 test -z "$as_dir" && as_dir=.
4119 for ac_prog in egrep; do
4120 for ac_exec_ext in '' $ac_executable_extensions; do
4121 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4122 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4123 # Check for GNU ac_path_EGREP and select it if it is found.
4124 # Check for GNU $ac_path_EGREP
4125 case `"$ac_path_EGREP" --version 2>&1` in
4127 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4130 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4133 cat "conftest.in" "conftest.in" >"conftest.tmp"
4134 mv "conftest.tmp" "conftest.in"
4135 cp "conftest.in" "conftest.nl"
4136 echo 'EGREP' >> "conftest.nl"
4137 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4138 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4139 ac_count=`expr $ac_count + 1`
4140 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4141 # Best one so far, save it but keep looking for a better one
4142 ac_cv_path_EGREP="$ac_path_EGREP"
4143 ac_path_EGREP_max=$ac_count
4145 # 10*(2^10) chars as input seems more than enough
4146 test $ac_count -gt 10 && break
4148 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4152 $ac_path_EGREP_found && break 3
4162 EGREP="$ac_cv_path_EGREP"
4163 if test -z "$EGREP"; then
4164 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4165 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4166 { (exit 1); exit 1; }; }
4170 ac_cv_path_EGREP=$EGREP
4176 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4177 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4178 EGREP="$ac_cv_path_EGREP"
4182 # Check whether --with-gnu-ld was given.
4183 if test "${with_gnu_ld+set}" = set; then
4184 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4190 if test "$GCC" = yes; then
4191 # Check if gcc -print-prog-name=ld gives a path.
4192 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4193 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4196 # gcc leaves a trailing carriage return which upsets mingw
4197 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4199 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4202 # Accept absolute paths.
4204 re_direlt='/[^/][^/]*/\.\./'
4205 # Canonicalize the pathname of ld
4206 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4207 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4208 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4210 test -z "$LD" && LD="$ac_prog"
4213 # If it fails, then pretend we aren't using GCC.
4217 # If it is relative, then search for the first ld in PATH.
4221 elif test "$with_gnu_ld" = yes; then
4222 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4223 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4225 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4226 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4228 if test "${lt_cv_path_LD+set}" = set; then
4229 echo $ECHO_N "(cached) $ECHO_C" >&6
4231 if test -z "$LD"; then
4232 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4233 for ac_dir in $PATH; do
4235 test -z "$ac_dir" && ac_dir=.
4236 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4237 lt_cv_path_LD="$ac_dir/$ac_prog"
4238 # Check to see if the program is GNU ld. I'd rather use --version,
4239 # but apparently some variants of GNU ld only accept -v.
4240 # Break only if it was the GNU/non-GNU ld that we prefer.
4241 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4242 *GNU* | *'with BFD'*)
4243 test "$with_gnu_ld" != no && break
4246 test "$with_gnu_ld" != yes && break
4253 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4258 if test -n "$LD"; then
4259 { echo "$as_me:$LINENO: result: $LD" >&5
4260 echo "${ECHO_T}$LD" >&6; }
4262 { echo "$as_me:$LINENO: result: no" >&5
4263 echo "${ECHO_T}no" >&6; }
4265 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4266 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4267 { (exit 1); exit 1; }; }
4268 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4269 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4270 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4271 echo $ECHO_N "(cached) $ECHO_C" >&6
4273 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4274 case `$LD -v 2>&1 </dev/null` in
4275 *GNU* | *'with BFD'*)
4276 lt_cv_prog_gnu_ld=yes
4279 lt_cv_prog_gnu_ld=no
4283 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4284 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4285 with_gnu_ld=$lt_cv_prog_gnu_ld
4288 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4289 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4290 if test "${lt_cv_ld_reload_flag+set}" = set; then
4291 echo $ECHO_N "(cached) $ECHO_C" >&6
4293 lt_cv_ld_reload_flag='-r'
4295 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4296 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4297 reload_flag=$lt_cv_ld_reload_flag
4298 case $reload_flag in
4300 *) reload_flag=" $reload_flag" ;;
4302 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4305 if test "$GCC" = yes; then
4306 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4308 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4313 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4314 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4315 if test "${lt_cv_path_NM+set}" = set; then
4316 echo $ECHO_N "(cached) $ECHO_C" >&6
4318 if test -n "$NM"; then
4319 # Let the user override the test.
4322 lt_nm_to_check="${ac_tool_prefix}nm"
4323 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4324 lt_nm_to_check="$lt_nm_to_check nm"
4326 for lt_tmp_nm in $lt_nm_to_check; do
4327 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4328 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4330 test -z "$ac_dir" && ac_dir=.
4331 tmp_nm="$ac_dir/$lt_tmp_nm"
4332 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4333 # Check to see if the nm accepts a BSD-compat flag.
4334 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4335 # nm: unknown option "B" ignored
4336 # Tru64's nm complains that /dev/null is an invalid object file
4337 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4338 */dev/null* | *'Invalid file or object type'*)
4339 lt_cv_path_NM="$tmp_nm -B"
4343 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4345 lt_cv_path_NM="$tmp_nm -p"
4349 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4350 continue # so that we can try to find one that supports BSD flags
4359 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4362 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4363 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4366 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4367 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4369 if test "$LN_S" = "ln -s"; then
4370 { echo "$as_me:$LINENO: result: yes" >&5
4371 echo "${ECHO_T}yes" >&6; }
4373 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4374 echo "${ECHO_T}no, using $LN_S" >&6; }
4377 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4378 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4379 if test "${lt_cv_deplibs_check_method+set}" = set; then
4380 echo $ECHO_N "(cached) $ECHO_C" >&6
4382 lt_cv_file_magic_cmd='$MAGIC_CMD'
4383 lt_cv_file_magic_test_file=
4384 lt_cv_deplibs_check_method='unknown'
4385 # Need to set the preceding variable on all platforms that support
4386 # interlibrary dependencies.
4387 # 'none' -- dependencies not supported.
4388 # `unknown' -- same as none, but documents that we really don't know.
4389 # 'pass_all' -- all dependencies passed with no checks.
4390 # 'test_compile' -- check by making test program.
4391 # 'file_magic [[regex]]' -- check by looking for files in library path
4392 # which responds to the $file_magic_cmd with a given extended regex.
4393 # If you have `file' or equivalent on your system and you're not sure
4394 # whether `pass_all' will *always* work, you probably want this one.
4398 lt_cv_deplibs_check_method=pass_all
4402 lt_cv_deplibs_check_method=pass_all
4406 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4407 lt_cv_file_magic_cmd='/usr/bin/file -L'
4408 lt_cv_file_magic_test_file=/shlib/libc.so
4412 # func_win32_libid is a shell function defined in ltmain.sh
4413 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4414 lt_cv_file_magic_cmd='func_win32_libid'
4418 # Base MSYS/MinGW do not provide the 'file' command needed by
4419 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4420 # unless we find 'file', for example because we are cross-compiling.
4421 if ( file / ) >/dev/null 2>&1; then
4422 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4423 lt_cv_file_magic_cmd='func_win32_libid'
4425 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4426 lt_cv_file_magic_cmd='$OBJDUMP -f'
4430 darwin* | rhapsody*)
4431 lt_cv_deplibs_check_method=pass_all
4434 freebsd* | dragonfly*)
4435 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4438 # Not sure whether the presence of OpenBSD here was a mistake.
4439 # Let's accept both of them until this is cleared up.
4440 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4441 lt_cv_file_magic_cmd=/usr/bin/file
4442 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4446 lt_cv_deplibs_check_method=pass_all
4451 lt_cv_deplibs_check_method=pass_all
4454 hpux10.20* | hpux11*)
4455 lt_cv_file_magic_cmd=/usr/bin/file
4458 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4459 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4462 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]'
4463 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4466 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4467 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4473 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4474 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4477 irix5* | irix6* | nonstopux*)
4479 *-32|*"-32 ") libmagic=32-bit;;
4480 *-n32|*"-n32 ") libmagic=N32;;
4481 *-64|*"-64 ") libmagic=64-bit;;
4482 *) libmagic=never-match;;
4484 lt_cv_deplibs_check_method=pass_all
4487 # This must be Linux ELF.
4488 linux* | k*bsd*-gnu)
4489 lt_cv_deplibs_check_method=pass_all
4492 netbsd* | netbsdelf*-gnu)
4493 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4494 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4496 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4501 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4502 lt_cv_file_magic_cmd=/usr/bin/file
4503 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4507 lt_cv_deplibs_check_method=unknown
4511 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4512 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4514 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4518 osf3* | osf4* | osf5*)
4519 lt_cv_deplibs_check_method=pass_all
4523 lt_cv_deplibs_check_method=pass_all
4527 lt_cv_deplibs_check_method=pass_all
4531 case $host_vendor in
4533 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]'
4534 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4537 lt_cv_deplibs_check_method=pass_all
4540 lt_cv_file_magic_cmd='/bin/file'
4541 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4544 lt_cv_file_magic_cmd='/bin/file'
4545 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4546 lt_cv_file_magic_test_file=/lib/libc.so
4549 lt_cv_deplibs_check_method=pass_all
4552 lt_cv_deplibs_check_method=pass_all
4557 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4558 lt_cv_deplibs_check_method=pass_all
4563 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4564 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4565 file_magic_cmd=$lt_cv_file_magic_cmd
4566 deplibs_check_method=$lt_cv_deplibs_check_method
4567 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4572 # If no C compiler was specified, use CC.
4575 # If no C compiler flags were specified, use CFLAGS.
4576 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4578 # Allow CC to be a program name with arguments.
4582 # Check whether --enable-libtool-lock was given.
4583 if test "${enable_libtool_lock+set}" = set; then
4584 enableval=$enable_libtool_lock;
4587 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4589 # Some flags need to be propagated to the compiler or linker for good
4593 # Find out which ABI we are using.
4594 echo 'int i;' > conftest.$ac_ext
4595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4596 (eval $ac_compile) 2>&5
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); }; then
4600 case `/usr/bin/file conftest.$ac_objext` in
4612 # Find out which ABI we are using.
4613 echo '#line 4613 "configure"' > conftest.$ac_ext
4614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4615 (eval $ac_compile) 2>&5
4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); }; then
4619 if test "$lt_cv_prog_gnu_ld" = yes; then
4620 case `/usr/bin/file conftest.$ac_objext` in
4622 LD="${LD-ld} -melf32bsmip"
4625 LD="${LD-ld} -melf32bmipn32"
4628 LD="${LD-ld} -melf64bmip"
4632 case `/usr/bin/file conftest.$ac_objext` in
4648 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4649 s390*-*linux*|sparc*-*linux*)
4650 # Find out which ABI we are using.
4651 echo 'int i;' > conftest.$ac_ext
4652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4653 (eval $ac_compile) 2>&5
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); }; then
4657 case `/usr/bin/file conftest.o` in
4660 x86_64-*kfreebsd*-gnu)
4661 LD="${LD-ld} -m elf_i386_fbsd"
4664 LD="${LD-ld} -m elf_i386"
4666 ppc64-*linux*|powerpc64-*linux*)
4667 LD="${LD-ld} -m elf32ppclinux"
4670 LD="${LD-ld} -m elf_s390"
4673 LD="${LD-ld} -m elf32_sparc"
4679 x86_64-*kfreebsd*-gnu)
4680 LD="${LD-ld} -m elf_x86_64_fbsd"
4683 LD="${LD-ld} -m elf_x86_64"
4685 ppc*-*linux*|powerpc*-*linux*)
4686 LD="${LD-ld} -m elf64ppc"
4689 LD="${LD-ld} -m elf64_s390"
4692 LD="${LD-ld} -m elf64_sparc"
4702 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4703 SAVE_CFLAGS="$CFLAGS"
4704 CFLAGS="$CFLAGS -belf"
4705 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4706 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4707 if test "${lt_cv_cc_needs_belf+set}" = set; then
4708 echo $ECHO_N "(cached) $ECHO_C" >&6
4711 ac_cpp='$CPP $CPPFLAGS'
4712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4716 cat >conftest.$ac_ext <<_ACEOF
4719 cat confdefs.h >>conftest.$ac_ext
4720 cat >>conftest.$ac_ext <<_ACEOF
4721 /* end confdefs.h. */
4731 rm -f conftest.$ac_objext conftest$ac_exeext
4732 if { (ac_try="$ac_link"
4734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4735 *) ac_try_echo=$ac_try;;
4737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4738 (eval "$ac_link") 2>conftest.er1
4740 grep -v '^ *+' conftest.er1 >conftest.err
4742 cat conftest.err >&5
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); } && {
4745 test -z "$ac_c_werror_flag" ||
4746 test ! -s conftest.err
4747 } && test -s conftest$ac_exeext &&
4748 $as_test_x conftest$ac_exeext; then
4749 lt_cv_cc_needs_belf=yes
4751 echo "$as_me: failed program was:" >&5
4752 sed 's/^/| /' conftest.$ac_ext >&5
4754 lt_cv_cc_needs_belf=no
4757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4758 conftest$ac_exeext conftest.$ac_ext
4760 ac_cpp='$CPP $CPPFLAGS'
4761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4766 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4767 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4768 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4769 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4770 CFLAGS="$SAVE_CFLAGS"
4774 # Find out which ABI we are using.
4775 echo 'int i;' > conftest.$ac_ext
4776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4777 (eval $ac_compile) 2>&5
4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); }; then
4781 case `/usr/bin/file conftest.o` in
4783 case $lt_cv_prog_gnu_ld in
4784 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4786 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4797 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4798 if test -n "$ac_tool_prefix"; then
4799 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4800 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4803 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4804 echo $ECHO_N "(cached) $ECHO_C" >&6
4806 if test -n "$DLLTOOL"; then
4807 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813 test -z "$as_dir" && as_dir=.
4814 for ac_exec_ext in '' $ac_executable_extensions; do
4815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4816 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4826 DLLTOOL=$ac_cv_prog_DLLTOOL
4827 if test -n "$DLLTOOL"; then
4828 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4829 echo "${ECHO_T}$DLLTOOL" >&6; }
4831 { echo "$as_me:$LINENO: result: no" >&5
4832 echo "${ECHO_T}no" >&6; }
4837 if test -z "$ac_cv_prog_DLLTOOL"; then
4838 ac_ct_DLLTOOL=$DLLTOOL
4839 # Extract the first word of "dlltool", so it can be a program name with args.
4840 set dummy dlltool; ac_word=$2
4841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4843 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4844 echo $ECHO_N "(cached) $ECHO_C" >&6
4846 if test -n "$ac_ct_DLLTOOL"; then
4847 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4853 test -z "$as_dir" && as_dir=.
4854 for ac_exec_ext in '' $ac_executable_extensions; do
4855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4856 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4866 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4867 if test -n "$ac_ct_DLLTOOL"; then
4868 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4869 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
4871 { echo "$as_me:$LINENO: result: no" >&5
4872 echo "${ECHO_T}no" >&6; }
4875 if test "x$ac_ct_DLLTOOL" = x; then
4878 case $cross_compiling:$ac_tool_warned in
4880 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4881 whose name does not start with the host triplet. If you think this
4882 configuration is useful to you, please write to autoconf@gnu.org." >&5
4883 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4884 whose name does not start with the host triplet. If you think this
4885 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4886 ac_tool_warned=yes ;;
4888 DLLTOOL=$ac_ct_DLLTOOL
4891 DLLTOOL="$ac_cv_prog_DLLTOOL"
4894 if test -n "$ac_tool_prefix"; then
4895 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4896 set dummy ${ac_tool_prefix}as; ac_word=$2
4897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4899 if test "${ac_cv_prog_AS+set}" = set; then
4900 echo $ECHO_N "(cached) $ECHO_C" >&6
4902 if test -n "$AS"; then
4903 ac_cv_prog_AS="$AS" # Let the user override the test.
4905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4909 test -z "$as_dir" && as_dir=.
4910 for ac_exec_ext in '' $ac_executable_extensions; do
4911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4912 ac_cv_prog_AS="${ac_tool_prefix}as"
4913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4923 if test -n "$AS"; then
4924 { echo "$as_me:$LINENO: result: $AS" >&5
4925 echo "${ECHO_T}$AS" >&6; }
4927 { echo "$as_me:$LINENO: result: no" >&5
4928 echo "${ECHO_T}no" >&6; }
4933 if test -z "$ac_cv_prog_AS"; then
4935 # Extract the first word of "as", so it can be a program name with args.
4936 set dummy as; ac_word=$2
4937 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4939 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4940 echo $ECHO_N "(cached) $ECHO_C" >&6
4942 if test -n "$ac_ct_AS"; then
4943 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4949 test -z "$as_dir" && as_dir=.
4950 for ac_exec_ext in '' $ac_executable_extensions; do
4951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4952 ac_cv_prog_ac_ct_AS="as"
4953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4962 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4963 if test -n "$ac_ct_AS"; then
4964 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4965 echo "${ECHO_T}$ac_ct_AS" >&6; }
4967 { echo "$as_me:$LINENO: result: no" >&5
4968 echo "${ECHO_T}no" >&6; }
4971 if test "x$ac_ct_AS" = x; then
4974 case $cross_compiling:$ac_tool_warned in
4976 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4977 whose name does not start with the host triplet. If you think this
4978 configuration is useful to you, please write to autoconf@gnu.org." >&5
4979 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4980 whose name does not start with the host triplet. If you think this
4981 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4982 ac_tool_warned=yes ;;
4990 if test -n "$ac_tool_prefix"; then
4991 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4992 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4995 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4996 echo $ECHO_N "(cached) $ECHO_C" >&6
4998 if test -n "$OBJDUMP"; then
4999 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5005 test -z "$as_dir" && as_dir=.
5006 for ac_exec_ext in '' $ac_executable_extensions; do
5007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5008 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5018 OBJDUMP=$ac_cv_prog_OBJDUMP
5019 if test -n "$OBJDUMP"; then
5020 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5021 echo "${ECHO_T}$OBJDUMP" >&6; }
5023 { echo "$as_me:$LINENO: result: no" >&5
5024 echo "${ECHO_T}no" >&6; }
5029 if test -z "$ac_cv_prog_OBJDUMP"; then
5030 ac_ct_OBJDUMP=$OBJDUMP
5031 # Extract the first word of "objdump", so it can be a program name with args.
5032 set dummy objdump; ac_word=$2
5033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5035 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5036 echo $ECHO_N "(cached) $ECHO_C" >&6
5038 if test -n "$ac_ct_OBJDUMP"; then
5039 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5045 test -z "$as_dir" && as_dir=.
5046 for ac_exec_ext in '' $ac_executable_extensions; do
5047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5048 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5058 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5059 if test -n "$ac_ct_OBJDUMP"; then
5060 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5061 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
5063 { echo "$as_me:$LINENO: result: no" >&5
5064 echo "${ECHO_T}no" >&6; }
5067 if test "x$ac_ct_OBJDUMP" = x; then
5070 case $cross_compiling:$ac_tool_warned in
5072 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5073 whose name does not start with the host triplet. If you think this
5074 configuration is useful to you, please write to autoconf@gnu.org." >&5
5075 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5076 whose name does not start with the host triplet. If you think this
5077 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5078 ac_tool_warned=yes ;;
5080 OBJDUMP=$ac_ct_OBJDUMP
5083 OBJDUMP="$ac_cv_prog_OBJDUMP"
5090 need_locks="$enable_libtool_lock"
5094 ac_cpp='$CPP $CPPFLAGS'
5095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5098 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5099 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5100 # On Suns, sometimes $CPP names a directory.
5101 if test -n "$CPP" && test -d "$CPP"; then
5104 if test -z "$CPP"; then
5105 if test "${ac_cv_prog_CPP+set}" = set; then
5106 echo $ECHO_N "(cached) $ECHO_C" >&6
5108 # Double quotes because CPP needs to be expanded
5109 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5112 for ac_c_preproc_warn_flag in '' yes
5114 # Use a header file that comes with gcc, so configuring glibc
5115 # with a fresh cross-compiler works.
5116 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5117 # <limits.h> exists even on freestanding compilers.
5118 # On the NeXT, cc -E runs the code through the compiler's parser,
5119 # not just through cpp. "Syntax error" is here to catch this case.
5120 cat >conftest.$ac_ext <<_ACEOF
5123 cat confdefs.h >>conftest.$ac_ext
5124 cat >>conftest.$ac_ext <<_ACEOF
5125 /* end confdefs.h. */
5127 # include <limits.h>
5129 # include <assert.h>
5133 if { (ac_try="$ac_cpp conftest.$ac_ext"
5135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5136 *) ac_try_echo=$ac_try;;
5138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5139 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5141 grep -v '^ *+' conftest.er1 >conftest.err
5143 cat conftest.err >&5
5144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145 (exit $ac_status); } >/dev/null && {
5146 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5147 test ! -s conftest.err
5151 echo "$as_me: failed program was:" >&5
5152 sed 's/^/| /' conftest.$ac_ext >&5
5154 # Broken: fails on valid input.
5158 rm -f conftest.err conftest.$ac_ext
5160 # OK, works on sane cases. Now check whether nonexistent headers
5161 # can be detected and how.
5162 cat >conftest.$ac_ext <<_ACEOF
5165 cat confdefs.h >>conftest.$ac_ext
5166 cat >>conftest.$ac_ext <<_ACEOF
5167 /* end confdefs.h. */
5168 #include <ac_nonexistent.h>
5170 if { (ac_try="$ac_cpp conftest.$ac_ext"
5172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5173 *) ac_try_echo=$ac_try;;
5175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5176 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5178 grep -v '^ *+' conftest.er1 >conftest.err
5180 cat conftest.err >&5
5181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182 (exit $ac_status); } >/dev/null && {
5183 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5184 test ! -s conftest.err
5186 # Broken: success on invalid input.
5189 echo "$as_me: failed program was:" >&5
5190 sed 's/^/| /' conftest.$ac_ext >&5
5192 # Passes both tests.
5197 rm -f conftest.err conftest.$ac_ext
5200 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5201 rm -f conftest.err conftest.$ac_ext
5202 if $ac_preproc_ok; then
5214 { echo "$as_me:$LINENO: result: $CPP" >&5
5215 echo "${ECHO_T}$CPP" >&6; }
5217 for ac_c_preproc_warn_flag in '' yes
5219 # Use a header file that comes with gcc, so configuring glibc
5220 # with a fresh cross-compiler works.
5221 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5222 # <limits.h> exists even on freestanding compilers.
5223 # On the NeXT, cc -E runs the code through the compiler's parser,
5224 # not just through cpp. "Syntax error" is here to catch this case.
5225 cat >conftest.$ac_ext <<_ACEOF
5228 cat confdefs.h >>conftest.$ac_ext
5229 cat >>conftest.$ac_ext <<_ACEOF
5230 /* end confdefs.h. */
5232 # include <limits.h>
5234 # include <assert.h>
5238 if { (ac_try="$ac_cpp conftest.$ac_ext"
5240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5241 *) ac_try_echo=$ac_try;;
5243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5244 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5246 grep -v '^ *+' conftest.er1 >conftest.err
5248 cat conftest.err >&5
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); } >/dev/null && {
5251 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5252 test ! -s conftest.err
5256 echo "$as_me: failed program was:" >&5
5257 sed 's/^/| /' conftest.$ac_ext >&5
5259 # Broken: fails on valid input.
5263 rm -f conftest.err conftest.$ac_ext
5265 # OK, works on sane cases. Now check whether nonexistent headers
5266 # can be detected and how.
5267 cat >conftest.$ac_ext <<_ACEOF
5270 cat confdefs.h >>conftest.$ac_ext
5271 cat >>conftest.$ac_ext <<_ACEOF
5272 /* end confdefs.h. */
5273 #include <ac_nonexistent.h>
5275 if { (ac_try="$ac_cpp conftest.$ac_ext"
5277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5278 *) ac_try_echo=$ac_try;;
5280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5281 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5283 grep -v '^ *+' conftest.er1 >conftest.err
5285 cat conftest.err >&5
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); } >/dev/null && {
5288 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5289 test ! -s conftest.err
5291 # Broken: success on invalid input.
5294 echo "$as_me: failed program was:" >&5
5295 sed 's/^/| /' conftest.$ac_ext >&5
5297 # Passes both tests.
5302 rm -f conftest.err conftest.$ac_ext
5305 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5306 rm -f conftest.err conftest.$ac_ext
5307 if $ac_preproc_ok; then
5310 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5311 See \`config.log' for more details." >&5
5312 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5313 See \`config.log' for more details." >&2;}
5314 { (exit 1); exit 1; }; }
5318 ac_cpp='$CPP $CPPFLAGS'
5319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5324 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5325 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5326 if test "${ac_cv_header_stdc+set}" = set; then
5327 echo $ECHO_N "(cached) $ECHO_C" >&6
5329 cat >conftest.$ac_ext <<_ACEOF
5332 cat confdefs.h >>conftest.$ac_ext
5333 cat >>conftest.$ac_ext <<_ACEOF
5334 /* end confdefs.h. */
5348 rm -f conftest.$ac_objext
5349 if { (ac_try="$ac_compile"
5351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5352 *) ac_try_echo=$ac_try;;
5354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5355 (eval "$ac_compile") 2>conftest.er1
5357 grep -v '^ *+' conftest.er1 >conftest.err
5359 cat conftest.err >&5
5360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361 (exit $ac_status); } && {
5362 test -z "$ac_c_werror_flag" ||
5363 test ! -s conftest.err
5364 } && test -s conftest.$ac_objext; then
5365 ac_cv_header_stdc=yes
5367 echo "$as_me: failed program was:" >&5
5368 sed 's/^/| /' conftest.$ac_ext >&5
5370 ac_cv_header_stdc=no
5373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5375 if test $ac_cv_header_stdc = yes; then
5376 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5377 cat >conftest.$ac_ext <<_ACEOF
5380 cat confdefs.h >>conftest.$ac_ext
5381 cat >>conftest.$ac_ext <<_ACEOF
5382 /* end confdefs.h. */
5386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5387 $EGREP "memchr" >/dev/null 2>&1; then
5390 ac_cv_header_stdc=no
5396 if test $ac_cv_header_stdc = yes; then
5397 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5398 cat >conftest.$ac_ext <<_ACEOF
5401 cat confdefs.h >>conftest.$ac_ext
5402 cat >>conftest.$ac_ext <<_ACEOF
5403 /* end confdefs.h. */
5407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5408 $EGREP "free" >/dev/null 2>&1; then
5411 ac_cv_header_stdc=no
5417 if test $ac_cv_header_stdc = yes; then
5418 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5419 if test "$cross_compiling" = yes; then
5422 cat >conftest.$ac_ext <<_ACEOF
5425 cat confdefs.h >>conftest.$ac_ext
5426 cat >>conftest.$ac_ext <<_ACEOF
5427 /* end confdefs.h. */
5430 #if ((' ' & 0x0FF) == 0x020)
5431 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5432 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5434 # define ISLOWER(c) \
5435 (('a' <= (c) && (c) <= 'i') \
5436 || ('j' <= (c) && (c) <= 'r') \
5437 || ('s' <= (c) && (c) <= 'z'))
5438 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5441 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5446 for (i = 0; i < 256; i++)
5447 if (XOR (islower (i), ISLOWER (i))
5448 || toupper (i) != TOUPPER (i))
5453 rm -f conftest$ac_exeext
5454 if { (ac_try="$ac_link"
5456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5457 *) ac_try_echo=$ac_try;;
5459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5460 (eval "$ac_link") 2>&5
5462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5464 { (case "(($ac_try" in
5465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5466 *) ac_try_echo=$ac_try;;
5468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5469 (eval "$ac_try") 2>&5
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); }; }; then
5475 echo "$as_me: program exited with status $ac_status" >&5
5476 echo "$as_me: failed program was:" >&5
5477 sed 's/^/| /' conftest.$ac_ext >&5
5480 ac_cv_header_stdc=no
5482 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5488 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5489 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5490 if test $ac_cv_header_stdc = yes; then
5492 cat >>confdefs.h <<\_ACEOF
5493 #define STDC_HEADERS 1
5498 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5508 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5509 inttypes.h stdint.h unistd.h
5511 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5512 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5515 echo $ECHO_N "(cached) $ECHO_C" >&6
5517 cat >conftest.$ac_ext <<_ACEOF
5520 cat confdefs.h >>conftest.$ac_ext
5521 cat >>conftest.$ac_ext <<_ACEOF
5522 /* end confdefs.h. */
5523 $ac_includes_default
5525 #include <$ac_header>
5527 rm -f conftest.$ac_objext
5528 if { (ac_try="$ac_compile"
5530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5531 *) ac_try_echo=$ac_try;;
5533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5534 (eval "$ac_compile") 2>conftest.er1
5536 grep -v '^ *+' conftest.er1 >conftest.err
5538 cat conftest.err >&5
5539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540 (exit $ac_status); } && {
5541 test -z "$ac_c_werror_flag" ||
5542 test ! -s conftest.err
5543 } && test -s conftest.$ac_objext; then
5544 eval "$as_ac_Header=yes"
5546 echo "$as_me: failed program was:" >&5
5547 sed 's/^/| /' conftest.$ac_ext >&5
5549 eval "$as_ac_Header=no"
5552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5554 ac_res=`eval echo '${'$as_ac_Header'}'`
5555 { echo "$as_me:$LINENO: result: $ac_res" >&5
5556 echo "${ECHO_T}$ac_res" >&6; }
5557 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5558 cat >>confdefs.h <<_ACEOF
5559 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5568 for ac_header in dlfcn.h
5570 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5572 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5573 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5574 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5575 echo $ECHO_N "(cached) $ECHO_C" >&6
5577 ac_res=`eval echo '${'$as_ac_Header'}'`
5578 { echo "$as_me:$LINENO: result: $ac_res" >&5
5579 echo "${ECHO_T}$ac_res" >&6; }
5581 # Is the header compilable?
5582 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5583 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5584 cat >conftest.$ac_ext <<_ACEOF
5587 cat confdefs.h >>conftest.$ac_ext
5588 cat >>conftest.$ac_ext <<_ACEOF
5589 /* end confdefs.h. */
5590 $ac_includes_default
5591 #include <$ac_header>
5593 rm -f conftest.$ac_objext
5594 if { (ac_try="$ac_compile"
5596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5597 *) ac_try_echo=$ac_try;;
5599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5600 (eval "$ac_compile") 2>conftest.er1
5602 grep -v '^ *+' conftest.er1 >conftest.err
5604 cat conftest.err >&5
5605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606 (exit $ac_status); } && {
5607 test -z "$ac_c_werror_flag" ||
5608 test ! -s conftest.err
5609 } && test -s conftest.$ac_objext; then
5610 ac_header_compiler=yes
5612 echo "$as_me: failed program was:" >&5
5613 sed 's/^/| /' conftest.$ac_ext >&5
5615 ac_header_compiler=no
5618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5619 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5620 echo "${ECHO_T}$ac_header_compiler" >&6; }
5622 # Is the header present?
5623 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5624 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5625 cat >conftest.$ac_ext <<_ACEOF
5628 cat confdefs.h >>conftest.$ac_ext
5629 cat >>conftest.$ac_ext <<_ACEOF
5630 /* end confdefs.h. */
5631 #include <$ac_header>
5633 if { (ac_try="$ac_cpp conftest.$ac_ext"
5635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5636 *) ac_try_echo=$ac_try;;
5638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5641 grep -v '^ *+' conftest.er1 >conftest.err
5643 cat conftest.err >&5
5644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645 (exit $ac_status); } >/dev/null && {
5646 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5647 test ! -s conftest.err
5649 ac_header_preproc=yes
5651 echo "$as_me: failed program was:" >&5
5652 sed 's/^/| /' conftest.$ac_ext >&5
5654 ac_header_preproc=no
5657 rm -f conftest.err conftest.$ac_ext
5658 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5659 echo "${ECHO_T}$ac_header_preproc" >&6; }
5661 # So? What about this header?
5662 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5664 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5665 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5667 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5668 ac_header_preproc=yes
5671 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5672 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5673 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5674 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5675 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5676 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5677 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5678 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5679 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5680 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5681 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5682 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5684 ## -------------------------------------------------- ##
5685 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
5686 ## -------------------------------------------------- ##
5688 ) | sed "s/^/$as_me: WARNING: /" >&2
5691 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5694 echo $ECHO_N "(cached) $ECHO_C" >&6
5696 eval "$as_ac_Header=\$ac_header_preproc"
5698 ac_res=`eval echo '${'$as_ac_Header'}'`
5699 { echo "$as_me:$LINENO: result: $ac_res" >&5
5700 echo "${ECHO_T}$ac_res" >&6; }
5703 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5704 cat >>confdefs.h <<_ACEOF
5705 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5713 ac_cpp='$CXXCPP $CPPFLAGS'
5714 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5715 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5716 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5717 if test -z "$CXX"; then
5718 if test -n "$CCC"; then
5721 if test -n "$ac_tool_prefix"; then
5722 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5724 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5725 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5726 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5728 if test "${ac_cv_prog_CXX+set}" = set; then
5729 echo $ECHO_N "(cached) $ECHO_C" >&6
5731 if test -n "$CXX"; then
5732 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5738 test -z "$as_dir" && as_dir=.
5739 for ac_exec_ext in '' $ac_executable_extensions; do
5740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5741 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5752 if test -n "$CXX"; then
5753 { echo "$as_me:$LINENO: result: $CXX" >&5
5754 echo "${ECHO_T}$CXX" >&6; }
5756 { echo "$as_me:$LINENO: result: no" >&5
5757 echo "${ECHO_T}no" >&6; }
5761 test -n "$CXX" && break
5764 if test -z "$CXX"; then
5766 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5768 # Extract the first word of "$ac_prog", so it can be a program name with args.
5769 set dummy $ac_prog; ac_word=$2
5770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5772 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5773 echo $ECHO_N "(cached) $ECHO_C" >&6
5775 if test -n "$ac_ct_CXX"; then
5776 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5782 test -z "$as_dir" && as_dir=.
5783 for ac_exec_ext in '' $ac_executable_extensions; do
5784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5785 ac_cv_prog_ac_ct_CXX="$ac_prog"
5786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5795 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5796 if test -n "$ac_ct_CXX"; then
5797 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5798 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5800 { echo "$as_me:$LINENO: result: no" >&5
5801 echo "${ECHO_T}no" >&6; }
5805 test -n "$ac_ct_CXX" && break
5808 if test "x$ac_ct_CXX" = x; then
5811 case $cross_compiling:$ac_tool_warned in
5813 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5814 whose name does not start with the host triplet. If you think this
5815 configuration is useful to you, please write to autoconf@gnu.org." >&5
5816 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5817 whose name does not start with the host triplet. If you think this
5818 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5819 ac_tool_warned=yes ;;
5827 # Provide some information about the compiler.
5828 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5829 ac_compiler=`set X $ac_compile; echo $2`
5830 { (ac_try="$ac_compiler --version >&5"
5832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5833 *) ac_try_echo=$ac_try;;
5835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5836 (eval "$ac_compiler --version >&5") 2>&5
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); }
5840 { (ac_try="$ac_compiler -v >&5"
5842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5843 *) ac_try_echo=$ac_try;;
5845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5846 (eval "$ac_compiler -v >&5") 2>&5
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); }
5850 { (ac_try="$ac_compiler -V >&5"
5852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5853 *) ac_try_echo=$ac_try;;
5855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5856 (eval "$ac_compiler -V >&5") 2>&5
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); }
5861 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5862 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5863 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5864 echo $ECHO_N "(cached) $ECHO_C" >&6
5866 cat >conftest.$ac_ext <<_ACEOF
5869 cat confdefs.h >>conftest.$ac_ext
5870 cat >>conftest.$ac_ext <<_ACEOF
5871 /* end confdefs.h. */
5884 rm -f conftest.$ac_objext
5885 if { (ac_try="$ac_compile"
5887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5888 *) ac_try_echo=$ac_try;;
5890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5891 (eval "$ac_compile") 2>conftest.er1
5893 grep -v '^ *+' conftest.er1 >conftest.err
5895 cat conftest.err >&5
5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897 (exit $ac_status); } && {
5898 test -z "$ac_cxx_werror_flag" ||
5899 test ! -s conftest.err
5900 } && test -s conftest.$ac_objext; then
5903 echo "$as_me: failed program was:" >&5
5904 sed 's/^/| /' conftest.$ac_ext >&5
5909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5910 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5913 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5914 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5915 GXX=`test $ac_compiler_gnu = yes && echo yes`
5916 ac_test_CXXFLAGS=${CXXFLAGS+set}
5917 ac_save_CXXFLAGS=$CXXFLAGS
5918 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5919 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5920 if test "${ac_cv_prog_cxx_g+set}" = set; then
5921 echo $ECHO_N "(cached) $ECHO_C" >&6
5923 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5924 ac_cxx_werror_flag=yes
5927 cat >conftest.$ac_ext <<_ACEOF
5930 cat confdefs.h >>conftest.$ac_ext
5931 cat >>conftest.$ac_ext <<_ACEOF
5932 /* end confdefs.h. */
5942 rm -f conftest.$ac_objext
5943 if { (ac_try="$ac_compile"
5945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5946 *) ac_try_echo=$ac_try;;
5948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5949 (eval "$ac_compile") 2>conftest.er1
5951 grep -v '^ *+' conftest.er1 >conftest.err
5953 cat conftest.err >&5
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); } && {
5956 test -z "$ac_cxx_werror_flag" ||
5957 test ! -s conftest.err
5958 } && test -s conftest.$ac_objext; then
5959 ac_cv_prog_cxx_g=yes
5961 echo "$as_me: failed program was:" >&5
5962 sed 's/^/| /' conftest.$ac_ext >&5
5965 cat >conftest.$ac_ext <<_ACEOF
5968 cat confdefs.h >>conftest.$ac_ext
5969 cat >>conftest.$ac_ext <<_ACEOF
5970 /* end confdefs.h. */
5980 rm -f conftest.$ac_objext
5981 if { (ac_try="$ac_compile"
5983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5984 *) ac_try_echo=$ac_try;;
5986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5987 (eval "$ac_compile") 2>conftest.er1
5989 grep -v '^ *+' conftest.er1 >conftest.err
5991 cat conftest.err >&5
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); } && {
5994 test -z "$ac_cxx_werror_flag" ||
5995 test ! -s conftest.err
5996 } && test -s conftest.$ac_objext; then
5999 echo "$as_me: failed program was:" >&5
6000 sed 's/^/| /' conftest.$ac_ext >&5
6002 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6004 cat >conftest.$ac_ext <<_ACEOF
6007 cat confdefs.h >>conftest.$ac_ext
6008 cat >>conftest.$ac_ext <<_ACEOF
6009 /* end confdefs.h. */
6019 rm -f conftest.$ac_objext
6020 if { (ac_try="$ac_compile"
6022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6023 *) ac_try_echo=$ac_try;;
6025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6026 (eval "$ac_compile") 2>conftest.er1
6028 grep -v '^ *+' conftest.er1 >conftest.err
6030 cat conftest.err >&5
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); } && {
6033 test -z "$ac_cxx_werror_flag" ||
6034 test ! -s conftest.err
6035 } && test -s conftest.$ac_objext; then
6036 ac_cv_prog_cxx_g=yes
6038 echo "$as_me: failed program was:" >&5
6039 sed 's/^/| /' conftest.$ac_ext >&5
6044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6051 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6053 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6054 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6055 if test "$ac_test_CXXFLAGS" = set; then
6056 CXXFLAGS=$ac_save_CXXFLAGS
6057 elif test $ac_cv_prog_cxx_g = yes; then
6058 if test "$GXX" = yes; then
6064 if test "$GXX" = yes; then
6071 ac_cpp='$CXXCPP $CPPFLAGS'
6072 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6073 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6074 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6076 depcc="$CXX" am_compiler_list=
6078 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6079 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6080 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6081 echo $ECHO_N "(cached) $ECHO_C" >&6
6083 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6084 # We make a subdir and do the tests there. Otherwise we can end up
6085 # making bogus files that we don't know about and never remove. For
6086 # instance it was reported that on HP-UX the gcc test will end up
6087 # making a dummy file named `D' -- because `-MD' means `put the output
6090 # Copy depcomp to subdir because otherwise we won't find it if we're
6091 # using a relative directory.
6092 cp "$am_depcomp" conftest.dir
6094 # We will build objects and dependencies in a subdirectory because
6095 # it helps to detect inapplicable dependency modes. For instance
6096 # both Tru64's cc and ICC support -MD to output dependencies as a
6097 # side effect of compilation, but ICC will put the dependencies in
6098 # the current directory while Tru64 will put them in the object
6102 am_cv_CXX_dependencies_compiler_type=none
6103 if test "$am_compiler_list" = ""; then
6104 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6106 for depmode in $am_compiler_list; do
6107 # Setup a source with many dependencies, because some compilers
6108 # like to wrap large dependency lists on column 80 (with \), and
6109 # we should not choose a depcomp mode which is confused by this.
6111 # We need to recreate these files for each test, as the compiler may
6112 # overwrite some of them when testing with obscure command lines.
6113 # This happens at least with the AIX C compiler.
6115 for i in 1 2 3 4 5 6; do
6116 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6117 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6118 # Solaris 8's {/usr,}/bin/sh.
6119 touch sub/conftst$i.h
6121 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6125 # after this tag, mechanisms are not by side-effect, so they'll
6126 # only be used when explicitly requested
6127 if test "x$enable_dependency_tracking" = xyes; then
6135 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6136 # mode. It turns out that the SunPro C++ compiler does not properly
6137 # handle `-M -o', and we need to detect this.
6138 if depmode=$depmode \
6139 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6140 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6141 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6142 >/dev/null 2>conftest.err &&
6143 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6144 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6145 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6146 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6147 # icc doesn't choke on unknown options, it will just issue warnings
6148 # or remarks (even with -Werror). So we grep stderr for any message
6149 # that says an option was ignored or not supported.
6150 # When given -MP, icc 7.0 and 7.1 complain thusly:
6151 # icc: Command line warning: ignoring option '-M'; no argument required
6152 # The diagnosis changed in icc 8.0:
6153 # icc: Command line remark: option '-MP' not supported
6154 if (grep 'ignoring option' conftest.err ||
6155 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6156 am_cv_CXX_dependencies_compiler_type=$depmode
6165 am_cv_CXX_dependencies_compiler_type=none
6169 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6170 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6171 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6174 test "x$enable_dependency_tracking" != xno \
6175 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6176 am__fastdepCXX_TRUE=
6177 am__fastdepCXX_FALSE='#'
6179 am__fastdepCXX_TRUE='#'
6180 am__fastdepCXX_FALSE=
6186 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6187 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6188 (test "X$CXX" != "Xg++"))) ; then
6190 ac_cpp='$CXXCPP $CPPFLAGS'
6191 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6192 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6193 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6194 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6195 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6196 if test -z "$CXXCPP"; then
6197 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6198 echo $ECHO_N "(cached) $ECHO_C" >&6
6200 # Double quotes because CXXCPP needs to be expanded
6201 for CXXCPP in "$CXX -E" "/lib/cpp"
6204 for ac_cxx_preproc_warn_flag in '' yes
6206 # Use a header file that comes with gcc, so configuring glibc
6207 # with a fresh cross-compiler works.
6208 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6209 # <limits.h> exists even on freestanding compilers.
6210 # On the NeXT, cc -E runs the code through the compiler's parser,
6211 # not just through cpp. "Syntax error" is here to catch this case.
6212 cat >conftest.$ac_ext <<_ACEOF
6215 cat confdefs.h >>conftest.$ac_ext
6216 cat >>conftest.$ac_ext <<_ACEOF
6217 /* end confdefs.h. */
6219 # include <limits.h>
6221 # include <assert.h>
6225 if { (ac_try="$ac_cpp conftest.$ac_ext"
6227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6228 *) ac_try_echo=$ac_try;;
6230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6231 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6233 grep -v '^ *+' conftest.er1 >conftest.err
6235 cat conftest.err >&5
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); } >/dev/null && {
6238 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6239 test ! -s conftest.err
6243 echo "$as_me: failed program was:" >&5
6244 sed 's/^/| /' conftest.$ac_ext >&5
6246 # Broken: fails on valid input.
6250 rm -f conftest.err conftest.$ac_ext
6252 # OK, works on sane cases. Now check whether nonexistent headers
6253 # can be detected and how.
6254 cat >conftest.$ac_ext <<_ACEOF
6257 cat confdefs.h >>conftest.$ac_ext
6258 cat >>conftest.$ac_ext <<_ACEOF
6259 /* end confdefs.h. */
6260 #include <ac_nonexistent.h>
6262 if { (ac_try="$ac_cpp conftest.$ac_ext"
6264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6265 *) ac_try_echo=$ac_try;;
6267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6268 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6270 grep -v '^ *+' conftest.er1 >conftest.err
6272 cat conftest.err >&5
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); } >/dev/null && {
6275 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6276 test ! -s conftest.err
6278 # Broken: success on invalid input.
6281 echo "$as_me: failed program was:" >&5
6282 sed 's/^/| /' conftest.$ac_ext >&5
6284 # Passes both tests.
6289 rm -f conftest.err conftest.$ac_ext
6292 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6293 rm -f conftest.err conftest.$ac_ext
6294 if $ac_preproc_ok; then
6299 ac_cv_prog_CXXCPP=$CXXCPP
6302 CXXCPP=$ac_cv_prog_CXXCPP
6304 ac_cv_prog_CXXCPP=$CXXCPP
6306 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6307 echo "${ECHO_T}$CXXCPP" >&6; }
6309 for ac_cxx_preproc_warn_flag in '' yes
6311 # Use a header file that comes with gcc, so configuring glibc
6312 # with a fresh cross-compiler works.
6313 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6314 # <limits.h> exists even on freestanding compilers.
6315 # On the NeXT, cc -E runs the code through the compiler's parser,
6316 # not just through cpp. "Syntax error" is here to catch this case.
6317 cat >conftest.$ac_ext <<_ACEOF
6320 cat confdefs.h >>conftest.$ac_ext
6321 cat >>conftest.$ac_ext <<_ACEOF
6322 /* end confdefs.h. */
6324 # include <limits.h>
6326 # include <assert.h>
6330 if { (ac_try="$ac_cpp conftest.$ac_ext"
6332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6333 *) ac_try_echo=$ac_try;;
6335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6336 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6338 grep -v '^ *+' conftest.er1 >conftest.err
6340 cat conftest.err >&5
6341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342 (exit $ac_status); } >/dev/null && {
6343 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6344 test ! -s conftest.err
6348 echo "$as_me: failed program was:" >&5
6349 sed 's/^/| /' conftest.$ac_ext >&5
6351 # Broken: fails on valid input.
6355 rm -f conftest.err conftest.$ac_ext
6357 # OK, works on sane cases. Now check whether nonexistent headers
6358 # can be detected and how.
6359 cat >conftest.$ac_ext <<_ACEOF
6362 cat confdefs.h >>conftest.$ac_ext
6363 cat >>conftest.$ac_ext <<_ACEOF
6364 /* end confdefs.h. */
6365 #include <ac_nonexistent.h>
6367 if { (ac_try="$ac_cpp conftest.$ac_ext"
6369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6370 *) ac_try_echo=$ac_try;;
6372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6373 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6375 grep -v '^ *+' conftest.er1 >conftest.err
6377 cat conftest.err >&5
6378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379 (exit $ac_status); } >/dev/null && {
6380 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6381 test ! -s conftest.err
6383 # Broken: success on invalid input.
6386 echo "$as_me: failed program was:" >&5
6387 sed 's/^/| /' conftest.$ac_ext >&5
6389 # Passes both tests.
6394 rm -f conftest.err conftest.$ac_ext
6397 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6398 rm -f conftest.err conftest.$ac_ext
6399 if $ac_preproc_ok; then
6402 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6403 See \`config.log' for more details." >&5
6404 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6405 See \`config.log' for more details." >&2;}
6406 { (exit 1); exit 1; }; }
6410 ac_cpp='$CXXCPP $CPPFLAGS'
6411 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6412 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6413 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6421 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6422 # find the maximum length of command line arguments
6423 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6424 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6425 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6426 echo $ECHO_N "(cached) $ECHO_C" >&6
6433 # On DJGPP, this test can blow up pretty badly due to problems in libc
6434 # (any single argument exceeding 2000 bytes causes a buffer overrun
6435 # during glob expansion). Even if it were fixed, the result of this
6436 # check would be larger than it should be.
6437 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6441 # Under GNU Hurd, this test is not required because there is
6442 # no limit to the length of command line arguments.
6443 # Libtool will interpret -1 as no limit whatsoever
6444 lt_cv_sys_max_cmd_len=-1;
6448 # On Win9x/ME, this test blows up -- it succeeds, but takes
6449 # about 5 minutes as the teststring grows exponentially.
6450 # Worse, since 9x/ME are not pre-emptively multitasking,
6451 # you end up with a "frozen" computer, even though with patience
6452 # the test eventually succeeds (with a max line length of 256k).
6453 # Instead, let's just punt: use the minimum linelength reported by
6454 # all of the supported platforms: 8192 (on NT/2K/XP).
6455 lt_cv_sys_max_cmd_len=8192;
6459 # On AmigaOS with pdksh, this test takes hours, literally.
6460 # So we just punt and use a minimum line length of 8192.
6461 lt_cv_sys_max_cmd_len=8192;
6464 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6465 # This has been around since 386BSD, at least. Likely further.
6466 if test -x /sbin/sysctl; then
6467 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6468 elif test -x /usr/sbin/sysctl; then
6469 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6471 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6473 # And add a safety zone
6474 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6475 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6479 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6480 lt_cv_sys_max_cmd_len=196608
6484 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6485 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6486 # nice to cause kernel panics so lets avoid the loop below.
6487 # First set a reasonable default.
6488 lt_cv_sys_max_cmd_len=16384
6490 if test -x /sbin/sysconfig; then
6491 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6492 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6497 lt_cv_sys_max_cmd_len=102400
6499 sysv5* | sco5v6* | sysv4.2uw2*)
6500 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6501 if test -n "$kargmax"; then
6502 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6504 lt_cv_sys_max_cmd_len=32768
6508 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6509 if test -n "$lt_cv_sys_max_cmd_len"; then
6510 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6511 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6513 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6514 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6515 = "XX$teststring") >/dev/null 2>&1 &&
6516 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6517 lt_cv_sys_max_cmd_len=$new_result &&
6518 test $i != 17 # 1/2 MB should be enough
6521 teststring=$teststring$teststring
6524 # Add a significant safety factor because C++ compilers can tack on massive
6525 # amounts of additional arguments before passing them to the linker.
6526 # It appears as though 1/2 is a usable value.
6527 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6534 if test -n $lt_cv_sys_max_cmd_len ; then
6535 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6536 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6538 { echo "$as_me:$LINENO: result: none" >&5
6539 echo "${ECHO_T}none" >&6; }
6546 # Check for command to grab the raw symbol name followed by C symbol from nm.
6547 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6548 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6549 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6550 echo $ECHO_N "(cached) $ECHO_C" >&6
6553 # These are sane defaults that work on at least a few old systems.
6554 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6556 # Character class describing NM global symbol codes.
6557 symcode='[BCDEGRST]'
6559 # Regexp to match symbols that can be accessed directly from C.
6560 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6562 # Transform an extracted symbol line into a proper C declaration
6563 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6565 # Transform an extracted symbol line into symbol name and symbol address
6566 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'"
6568 # Define system-specific variables.
6573 cygwin* | mingw* | pw32*)
6574 symcode='[ABCDGISTW]'
6576 hpux*) # Its linker distinguishes data from code symbols
6577 if test "$host_cpu" = ia64; then
6578 symcode='[ABCDEGRST]'
6580 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6581 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'"
6583 linux* | k*bsd*-gnu)
6584 if test "$host_cpu" = ia64; then
6585 symcode='[ABCDGIRSTW]'
6586 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6587 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'"
6591 symcode='[BCDEGRST]'
6594 symcode='[BCDEGQRST]'
6605 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6613 # Handle CRLF in mingw tool chain
6617 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6621 # If we're using GNU nm, then use its standard symbol codes.
6622 case `$NM -V 2>&1` in
6623 *GNU* | *'with BFD'*)
6624 symcode='[ABCDGIRSTW]' ;;
6627 # Try without a prefix undercore, then with it.
6628 for ac_symprfx in "" "_"; do
6630 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6631 symxfrm="\\1 $ac_symprfx\\2 \\2"
6633 # Write the raw and C identifiers.
6634 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6636 # Check to see that the pipe works correctly.
6640 cat > conftest.$ac_ext <<EOF
6645 void nm_test_func(){}
6649 int main(){nm_test_var='a';nm_test_func();return(0);}
6652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6653 (eval $ac_compile) 2>&5
6655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656 (exit $ac_status); }; then
6657 # Now try to grab the symbols.
6659 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6660 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6663 (exit $ac_status); } && test -s "$nlist"; then
6664 # Try sorting and uniquifying the output.
6665 if sort "$nlist" | uniq > "$nlist"T; then
6666 mv -f "$nlist"T "$nlist"
6671 # Make sure that we snagged all the symbols we need.
6672 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6673 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6674 cat <<EOF > conftest.$ac_ext
6680 # Now generate the symbol file.
6681 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6683 cat <<EOF >> conftest.$ac_ext
6684 #if defined (__STDC__) && __STDC__
6685 # define lt_ptr_t void *
6687 # define lt_ptr_t char *
6691 /* The mapping between symbol names and symbols. */
6696 lt_preloaded_symbols[] =
6699 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6700 cat <<\EOF >> conftest.$ac_ext
6708 # Now try linking the two files.
6709 mv conftest.$ac_objext conftstm.$ac_objext
6710 lt_save_LIBS="$LIBS"
6711 lt_save_CFLAGS="$CFLAGS"
6712 LIBS="conftstm.$ac_objext"
6713 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6715 (eval $ac_link) 2>&5
6717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6721 LIBS="$lt_save_LIBS"
6722 CFLAGS="$lt_save_CFLAGS"
6724 echo "cannot find nm_test_func in $nlist" >&5
6727 echo "cannot find nm_test_var in $nlist" >&5
6730 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6733 echo "$progname: failed program was:" >&5
6734 cat conftest.$ac_ext >&5
6736 rm -rf conftest* conftst*
6738 # Do not use the global_symbol_pipe unless it works.
6739 if test "$pipe_works" = yes; then
6742 lt_cv_sys_global_symbol_pipe=
6748 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6749 lt_cv_sys_global_symbol_to_cdecl=
6751 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6752 { echo "$as_me:$LINENO: result: failed" >&5
6753 echo "${ECHO_T}failed" >&6; }
6755 { echo "$as_me:$LINENO: result: ok" >&5
6756 echo "${ECHO_T}ok" >&6; }
6759 { echo "$as_me:$LINENO: checking for objdir" >&5
6760 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6761 if test "${lt_cv_objdir+set}" = set; then
6762 echo $ECHO_N "(cached) $ECHO_C" >&6
6764 rm -f .libs 2>/dev/null
6765 mkdir .libs 2>/dev/null
6766 if test -d .libs; then
6769 # MS-DOS does not allow filenames that begin with a dot.
6772 rmdir .libs 2>/dev/null
6774 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6775 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6776 objdir=$lt_cv_objdir
6784 # AIX sometimes has problems with the GCC collect2 program. For some
6785 # reason, if we set the COLLECT_NAMES environment variable, the problems
6786 # vanish in a puff of smoke.
6787 if test "X${COLLECT_NAMES+set}" != Xset; then
6789 export COLLECT_NAMES
6794 # Sed substitution that helps us do robust quoting. It backslashifies
6795 # metacharacters that are still active within double-quoted strings.
6796 Xsed='sed -e 1s/^X//'
6797 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6799 # Same as above, but do not quote variable references.
6800 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6802 # Sed substitution to delay expansion of an escaped shell variable in a
6803 # double_quote_subst'ed string.
6804 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6806 # Sed substitution to avoid accidental globbing in evaled expressions
6807 no_glob_subst='s/\*/\\\*/g'
6813 default_ofile=libtool
6814 can_build_shared=yes
6816 # All known linkers require a `.a' archive for static linking (except MSVC,
6817 # which needs '.lib').
6819 ltmain="$ac_aux_dir/ltmain.sh"
6820 ofile="$default_ofile"
6821 with_gnu_ld="$lt_cv_prog_gnu_ld"
6823 if test -n "$ac_tool_prefix"; then
6824 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6825 set dummy ${ac_tool_prefix}ar; ac_word=$2
6826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6828 if test "${ac_cv_prog_AR+set}" = set; then
6829 echo $ECHO_N "(cached) $ECHO_C" >&6
6831 if test -n "$AR"; then
6832 ac_cv_prog_AR="$AR" # Let the user override the test.
6834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6838 test -z "$as_dir" && as_dir=.
6839 for ac_exec_ext in '' $ac_executable_extensions; do
6840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6841 ac_cv_prog_AR="${ac_tool_prefix}ar"
6842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6852 if test -n "$AR"; then
6853 { echo "$as_me:$LINENO: result: $AR" >&5
6854 echo "${ECHO_T}$AR" >&6; }
6856 { echo "$as_me:$LINENO: result: no" >&5
6857 echo "${ECHO_T}no" >&6; }
6862 if test -z "$ac_cv_prog_AR"; then
6864 # Extract the first word of "ar", so it can be a program name with args.
6865 set dummy ar; ac_word=$2
6866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6868 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6869 echo $ECHO_N "(cached) $ECHO_C" >&6
6871 if test -n "$ac_ct_AR"; then
6872 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6878 test -z "$as_dir" && as_dir=.
6879 for ac_exec_ext in '' $ac_executable_extensions; do
6880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6881 ac_cv_prog_ac_ct_AR="ar"
6882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6891 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6892 if test -n "$ac_ct_AR"; then
6893 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6894 echo "${ECHO_T}$ac_ct_AR" >&6; }
6896 { echo "$as_me:$LINENO: result: no" >&5
6897 echo "${ECHO_T}no" >&6; }
6900 if test "x$ac_ct_AR" = x; then
6903 case $cross_compiling:$ac_tool_warned in
6905 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6906 whose name does not start with the host triplet. If you think this
6907 configuration is useful to you, please write to autoconf@gnu.org." >&5
6908 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6909 whose name does not start with the host triplet. If you think this
6910 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6911 ac_tool_warned=yes ;;
6919 if test -n "$ac_tool_prefix"; then
6920 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6921 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6924 if test "${ac_cv_prog_RANLIB+set}" = set; then
6925 echo $ECHO_N "(cached) $ECHO_C" >&6
6927 if test -n "$RANLIB"; then
6928 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6934 test -z "$as_dir" && as_dir=.
6935 for ac_exec_ext in '' $ac_executable_extensions; do
6936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6937 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6947 RANLIB=$ac_cv_prog_RANLIB
6948 if test -n "$RANLIB"; then
6949 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6950 echo "${ECHO_T}$RANLIB" >&6; }
6952 { echo "$as_me:$LINENO: result: no" >&5
6953 echo "${ECHO_T}no" >&6; }
6958 if test -z "$ac_cv_prog_RANLIB"; then
6959 ac_ct_RANLIB=$RANLIB
6960 # Extract the first word of "ranlib", so it can be a program name with args.
6961 set dummy ranlib; ac_word=$2
6962 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6964 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6965 echo $ECHO_N "(cached) $ECHO_C" >&6
6967 if test -n "$ac_ct_RANLIB"; then
6968 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6974 test -z "$as_dir" && as_dir=.
6975 for ac_exec_ext in '' $ac_executable_extensions; do
6976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6977 ac_cv_prog_ac_ct_RANLIB="ranlib"
6978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6987 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6988 if test -n "$ac_ct_RANLIB"; then
6989 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6990 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6992 { echo "$as_me:$LINENO: result: no" >&5
6993 echo "${ECHO_T}no" >&6; }
6996 if test "x$ac_ct_RANLIB" = x; then
6999 case $cross_compiling:$ac_tool_warned in
7001 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7002 whose name does not start with the host triplet. If you think this
7003 configuration is useful to you, please write to autoconf@gnu.org." >&5
7004 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7005 whose name does not start with the host triplet. If you think this
7006 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7007 ac_tool_warned=yes ;;
7009 RANLIB=$ac_ct_RANLIB
7012 RANLIB="$ac_cv_prog_RANLIB"
7015 if test -n "$ac_tool_prefix"; then
7016 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7017 set dummy ${ac_tool_prefix}strip; ac_word=$2
7018 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7020 if test "${ac_cv_prog_STRIP+set}" = set; then
7021 echo $ECHO_N "(cached) $ECHO_C" >&6
7023 if test -n "$STRIP"; then
7024 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7030 test -z "$as_dir" && as_dir=.
7031 for ac_exec_ext in '' $ac_executable_extensions; do
7032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7033 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7043 STRIP=$ac_cv_prog_STRIP
7044 if test -n "$STRIP"; then
7045 { echo "$as_me:$LINENO: result: $STRIP" >&5
7046 echo "${ECHO_T}$STRIP" >&6; }
7048 { echo "$as_me:$LINENO: result: no" >&5
7049 echo "${ECHO_T}no" >&6; }
7054 if test -z "$ac_cv_prog_STRIP"; then
7056 # Extract the first word of "strip", so it can be a program name with args.
7057 set dummy strip; ac_word=$2
7058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7060 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7061 echo $ECHO_N "(cached) $ECHO_C" >&6
7063 if test -n "$ac_ct_STRIP"; then
7064 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070 test -z "$as_dir" && as_dir=.
7071 for ac_exec_ext in '' $ac_executable_extensions; do
7072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7073 ac_cv_prog_ac_ct_STRIP="strip"
7074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7083 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7084 if test -n "$ac_ct_STRIP"; then
7085 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7086 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7088 { echo "$as_me:$LINENO: result: no" >&5
7089 echo "${ECHO_T}no" >&6; }
7092 if test "x$ac_ct_STRIP" = x; then
7095 case $cross_compiling:$ac_tool_warned in
7097 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7098 whose name does not start with the host triplet. If you think this
7099 configuration is useful to you, please write to autoconf@gnu.org." >&5
7100 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7101 whose name does not start with the host triplet. If you think this
7102 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7103 ac_tool_warned=yes ;;
7108 STRIP="$ac_cv_prog_STRIP"
7113 old_CFLAGS="$CFLAGS"
7115 # Set sane defaults for various variables
7116 test -z "$AR" && AR=ar
7117 test -z "$AR_FLAGS" && AR_FLAGS=cru
7118 test -z "$AS" && AS=as
7119 test -z "$CC" && CC=cc
7120 test -z "$LTCC" && LTCC=$CC
7121 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7122 test -z "$DLLTOOL" && DLLTOOL=dlltool
7123 test -z "$LD" && LD=ld
7124 test -z "$LN_S" && LN_S="ln -s"
7125 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7126 test -z "$NM" && NM=nm
7127 test -z "$SED" && SED=sed
7128 test -z "$OBJDUMP" && OBJDUMP=objdump
7129 test -z "$RANLIB" && RANLIB=:
7130 test -z "$STRIP" && STRIP=:
7131 test -z "$ac_objext" && ac_objext=o
7133 # Determine commands to create old-style static archives.
7134 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7135 old_postinstall_cmds='chmod 644 $oldlib'
7136 old_postuninstall_cmds=
7138 if test -n "$RANLIB"; then
7141 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7144 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7147 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7150 for cc_temp in $compiler""; do
7152 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7153 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7158 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7161 # Only perform the check for file, if the check method requires it
7162 case $deplibs_check_method in
7164 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7165 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7166 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7167 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7168 echo $ECHO_N "(cached) $ECHO_C" >&6
7172 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7175 lt_save_MAGIC_CMD="$MAGIC_CMD"
7176 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7177 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7178 for ac_dir in $ac_dummy; do
7180 test -z "$ac_dir" && ac_dir=.
7181 if test -f $ac_dir/${ac_tool_prefix}file; then
7182 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7183 if test -n "$file_magic_test_file"; then
7184 case $deplibs_check_method in
7186 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7187 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7188 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7189 $EGREP "$file_magic_regex" > /dev/null; then
7194 *** Warning: the command libtool uses to detect shared libraries,
7195 *** $file_magic_cmd, produces output that libtool cannot recognize.
7196 *** The result is that libtool may fail to recognize shared libraries
7197 *** as such. This will affect the creation of libtool libraries that
7198 *** depend on shared libraries, but programs linked with such libtool
7199 *** libraries will work regardless of this problem. Nevertheless, you
7200 *** may want to report the problem to your system manager and/or to
7201 *** bug-libtool@gnu.org
7211 MAGIC_CMD="$lt_save_MAGIC_CMD"
7216 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7217 if test -n "$MAGIC_CMD"; then
7218 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7219 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7221 { echo "$as_me:$LINENO: result: no" >&5
7222 echo "${ECHO_T}no" >&6; }
7225 if test -z "$lt_cv_path_MAGIC_CMD"; then
7226 if test -n "$ac_tool_prefix"; then
7227 { echo "$as_me:$LINENO: checking for file" >&5
7228 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7229 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7230 echo $ECHO_N "(cached) $ECHO_C" >&6
7234 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7237 lt_save_MAGIC_CMD="$MAGIC_CMD"
7238 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7239 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7240 for ac_dir in $ac_dummy; do
7242 test -z "$ac_dir" && ac_dir=.
7243 if test -f $ac_dir/file; then
7244 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7245 if test -n "$file_magic_test_file"; then
7246 case $deplibs_check_method in
7248 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7249 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7250 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7251 $EGREP "$file_magic_regex" > /dev/null; then
7256 *** Warning: the command libtool uses to detect shared libraries,
7257 *** $file_magic_cmd, produces output that libtool cannot recognize.
7258 *** The result is that libtool may fail to recognize shared libraries
7259 *** as such. This will affect the creation of libtool libraries that
7260 *** depend on shared libraries, but programs linked with such libtool
7261 *** libraries will work regardless of this problem. Nevertheless, you
7262 *** may want to report the problem to your system manager and/or to
7263 *** bug-libtool@gnu.org
7273 MAGIC_CMD="$lt_save_MAGIC_CMD"
7278 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7279 if test -n "$MAGIC_CMD"; then
7280 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7281 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7283 { echo "$as_me:$LINENO: result: no" >&5
7284 echo "${ECHO_T}no" >&6; }
7298 rhapsody* | darwin*)
7299 if test -n "$ac_tool_prefix"; then
7300 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7301 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7304 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7305 echo $ECHO_N "(cached) $ECHO_C" >&6
7307 if test -n "$DSYMUTIL"; then
7308 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7314 test -z "$as_dir" && as_dir=.
7315 for ac_exec_ext in '' $ac_executable_extensions; do
7316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7317 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7327 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7328 if test -n "$DSYMUTIL"; then
7329 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7330 echo "${ECHO_T}$DSYMUTIL" >&6; }
7332 { echo "$as_me:$LINENO: result: no" >&5
7333 echo "${ECHO_T}no" >&6; }
7338 if test -z "$ac_cv_prog_DSYMUTIL"; then
7339 ac_ct_DSYMUTIL=$DSYMUTIL
7340 # Extract the first word of "dsymutil", so it can be a program name with args.
7341 set dummy dsymutil; ac_word=$2
7342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7344 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7345 echo $ECHO_N "(cached) $ECHO_C" >&6
7347 if test -n "$ac_ct_DSYMUTIL"; then
7348 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7354 test -z "$as_dir" && as_dir=.
7355 for ac_exec_ext in '' $ac_executable_extensions; do
7356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7367 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7368 if test -n "$ac_ct_DSYMUTIL"; then
7369 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7370 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7372 { echo "$as_me:$LINENO: result: no" >&5
7373 echo "${ECHO_T}no" >&6; }
7376 if test "x$ac_ct_DSYMUTIL" = x; then
7379 case $cross_compiling:$ac_tool_warned in
7381 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7382 whose name does not start with the host triplet. If you think this
7383 configuration is useful to you, please write to autoconf@gnu.org." >&5
7384 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7385 whose name does not start with the host triplet. If you think this
7386 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7387 ac_tool_warned=yes ;;
7389 DSYMUTIL=$ac_ct_DSYMUTIL
7392 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7395 if test -n "$ac_tool_prefix"; then
7396 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7397 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7398 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7400 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7401 echo $ECHO_N "(cached) $ECHO_C" >&6
7403 if test -n "$NMEDIT"; then
7404 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7410 test -z "$as_dir" && as_dir=.
7411 for ac_exec_ext in '' $ac_executable_extensions; do
7412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7413 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7423 NMEDIT=$ac_cv_prog_NMEDIT
7424 if test -n "$NMEDIT"; then
7425 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7426 echo "${ECHO_T}$NMEDIT" >&6; }
7428 { echo "$as_me:$LINENO: result: no" >&5
7429 echo "${ECHO_T}no" >&6; }
7434 if test -z "$ac_cv_prog_NMEDIT"; then
7435 ac_ct_NMEDIT=$NMEDIT
7436 # Extract the first word of "nmedit", so it can be a program name with args.
7437 set dummy nmedit; ac_word=$2
7438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7440 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7441 echo $ECHO_N "(cached) $ECHO_C" >&6
7443 if test -n "$ac_ct_NMEDIT"; then
7444 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7450 test -z "$as_dir" && as_dir=.
7451 for ac_exec_ext in '' $ac_executable_extensions; do
7452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7453 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7463 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7464 if test -n "$ac_ct_NMEDIT"; then
7465 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7466 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7468 { echo "$as_me:$LINENO: result: no" >&5
7469 echo "${ECHO_T}no" >&6; }
7472 if test "x$ac_ct_NMEDIT" = x; then
7475 case $cross_compiling:$ac_tool_warned in
7477 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7478 whose name does not start with the host triplet. If you think this
7479 configuration is useful to you, please write to autoconf@gnu.org." >&5
7480 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7481 whose name does not start with the host triplet. If you think this
7482 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7483 ac_tool_warned=yes ;;
7485 NMEDIT=$ac_ct_NMEDIT
7488 NMEDIT="$ac_cv_prog_NMEDIT"
7492 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7493 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7494 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7495 echo $ECHO_N "(cached) $ECHO_C" >&6
7497 lt_cv_apple_cc_single_mod=no
7498 if test -z "${LT_MULTI_MODULE}"; then
7499 # By default we will add the -single_module flag. You can override
7500 # by either setting the environment variable LT_MULTI_MODULE
7501 # non-empty at configure time, or by adding -multi_module to the
7503 echo "int foo(void){return 1;}" > conftest.c
7504 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7505 -dynamiclib ${wl}-single_module conftest.c
7506 if test -f libconftest.dylib; then
7507 lt_cv_apple_cc_single_mod=yes
7508 rm -rf libconftest.dylib*
7513 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7514 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7515 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7516 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7517 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7518 echo $ECHO_N "(cached) $ECHO_C" >&6
7520 lt_cv_ld_exported_symbols_list=no
7521 save_LDFLAGS=$LDFLAGS
7522 echo "_main" > conftest.sym
7523 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7524 cat >conftest.$ac_ext <<_ACEOF
7527 cat confdefs.h >>conftest.$ac_ext
7528 cat >>conftest.$ac_ext <<_ACEOF
7529 /* end confdefs.h. */
7539 rm -f conftest.$ac_objext conftest$ac_exeext
7540 if { (ac_try="$ac_link"
7542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7543 *) ac_try_echo=$ac_try;;
7545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7546 (eval "$ac_link") 2>conftest.er1
7548 grep -v '^ *+' conftest.er1 >conftest.err
7550 cat conftest.err >&5
7551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552 (exit $ac_status); } && {
7553 test -z "$ac_c_werror_flag" ||
7554 test ! -s conftest.err
7555 } && test -s conftest$ac_exeext &&
7556 $as_test_x conftest$ac_exeext; then
7557 lt_cv_ld_exported_symbols_list=yes
7559 echo "$as_me: failed program was:" >&5
7560 sed 's/^/| /' conftest.$ac_ext >&5
7562 lt_cv_ld_exported_symbols_list=no
7565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7566 conftest$ac_exeext conftest.$ac_ext
7567 LDFLAGS="$save_LDFLAGS"
7570 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7571 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7573 rhapsody* | darwin1.[0123])
7574 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7576 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7578 # if running on 10.5 or later, the deployment target defaults
7579 # to the OS version, if on x86, and 10.4, the deployment
7580 # target defaults to 10.4. Don't you love it?
7581 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7582 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7583 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7585 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7587 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7591 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7592 _lt_dar_single_mod='$single_module'
7594 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7595 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7597 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7599 if test "$DSYMUTIL" != ":"; then
7600 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7609 enable_win32_dll=yes
7611 # Check whether --enable-libtool-lock was given.
7612 if test "${enable_libtool_lock+set}" = set; then
7613 enableval=$enable_libtool_lock;
7616 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7619 # Check whether --with-pic was given.
7620 if test "${with_pic+set}" = set; then
7621 withval=$with_pic; pic_mode="$withval"
7626 test -z "$pic_mode" && pic_mode=default
7628 # Use C for the default configuration in the libtool script
7632 ac_cpp='$CPP $CPPFLAGS'
7633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7638 # Source file extension for C test sources.
7641 # Object file extension for compiled C test sources.
7645 # Code to be used in simple compile tests
7646 lt_simple_compile_test_code="int some_variable = 0;"
7648 # Code to be used in simple link tests
7649 lt_simple_link_test_code='int main(){return(0);}'
7652 # If no C compiler was specified, use CC.
7655 # If no C compiler flags were specified, use CFLAGS.
7656 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7658 # Allow CC to be a program name with arguments.
7662 # save warnings/boilerplate of simple test code
7663 ac_outfile=conftest.$ac_objext
7664 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7665 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7666 _lt_compiler_boilerplate=`cat conftest.err`
7669 ac_outfile=conftest.$ac_objext
7670 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7671 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7672 _lt_linker_boilerplate=`cat conftest.err`
7677 lt_prog_compiler_no_builtin_flag=
7679 if test "$GCC" = yes; then
7680 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7683 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7684 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7685 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7686 echo $ECHO_N "(cached) $ECHO_C" >&6
7688 lt_cv_prog_compiler_rtti_exceptions=no
7689 ac_outfile=conftest.$ac_objext
7690 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7691 lt_compiler_flag="-fno-rtti -fno-exceptions"
7692 # Insert the option either (1) after the last *FLAGS variable, or
7693 # (2) before a word containing "conftest.", or (3) at the end.
7694 # Note that $ac_compile itself does not contain backslashes and begins
7695 # with a dollar sign (not a hyphen), so the echo should work correctly.
7696 # The option is referenced via a variable to avoid confusing sed.
7697 lt_compile=`echo "$ac_compile" | $SED \
7698 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7699 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7700 -e 's:$: $lt_compiler_flag:'`
7701 (eval echo "\"\$as_me:7701: $lt_compile\"" >&5)
7702 (eval "$lt_compile" 2>conftest.err)
7704 cat conftest.err >&5
7705 echo "$as_me:7705: \$? = $ac_status" >&5
7706 if (exit $ac_status) && test -s "$ac_outfile"; then
7707 # The compiler can only warn and ignore the option if not recognized
7708 # So say no if there are warnings other than the usual output.
7709 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7710 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7711 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7712 lt_cv_prog_compiler_rtti_exceptions=yes
7718 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7719 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7721 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7722 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7729 lt_prog_compiler_wl=
7730 lt_prog_compiler_pic=
7731 lt_prog_compiler_static=
7733 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7734 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7736 if test "$GCC" = yes; then
7737 lt_prog_compiler_wl='-Wl,'
7738 lt_prog_compiler_static='-static'
7742 # All AIX code is PIC.
7743 if test "$host_cpu" = ia64; then
7744 # AIX 5 now supports IA64 processor
7745 lt_prog_compiler_static='-Bstatic'
7750 # FIXME: we need at least 68020 code to build shared libraries, but
7751 # adding the `-m68020' flag to GCC prevents building anything better,
7753 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7756 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7757 # PIC is the default for these OSes.
7760 mingw* | cygwin* | pw32* | os2*)
7761 # This hack is so that the source file can tell whether it is being
7762 # built for inclusion in a dll (and should export symbols for example).
7763 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7764 # (--disable-auto-import) libraries
7765 lt_prog_compiler_pic='-DDLL_EXPORT'
7768 darwin* | rhapsody*)
7769 # PIC is the default on this platform
7770 # Common symbols not allowed in MH_DYLIB files
7771 lt_prog_compiler_pic='-fno-common'
7775 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7776 # Instead, we relocate shared libraries at runtime.
7780 # Just because we use GCC doesn't mean we suddenly get shared libraries
7781 # on systems that don't support them.
7782 lt_prog_compiler_can_build_shared=no
7787 if test -d /usr/nec; then
7788 lt_prog_compiler_pic=-Kconform_pic
7793 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7800 lt_prog_compiler_pic='-fPIC'
7806 lt_prog_compiler_pic='-fPIC'
7810 # PORTME Check for flag to pass linker flags through the system compiler.
7813 lt_prog_compiler_wl='-Wl,'
7814 if test "$host_cpu" = ia64; then
7815 # AIX 5 now supports IA64 processor
7816 lt_prog_compiler_static='-Bstatic'
7818 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7822 # PIC is the default on this platform
7823 # Common symbols not allowed in MH_DYLIB files
7824 case $cc_basename in
7826 lt_prog_compiler_pic='-qnocommon'
7827 lt_prog_compiler_wl='-Wl,'
7832 mingw* | cygwin* | pw32* | os2*)
7833 # This hack is so that the source file can tell whether it is being
7834 # built for inclusion in a dll (and should export symbols for example).
7835 lt_prog_compiler_pic='-DDLL_EXPORT'
7838 hpux9* | hpux10* | hpux11*)
7839 lt_prog_compiler_wl='-Wl,'
7840 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7847 lt_prog_compiler_pic='+Z'
7850 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7851 lt_prog_compiler_static='${wl}-a ${wl}archive'
7854 irix5* | irix6* | nonstopux*)
7855 lt_prog_compiler_wl='-Wl,'
7856 # PIC (with -KPIC) is the default.
7857 lt_prog_compiler_static='-non_shared'
7861 lt_prog_compiler_pic='-KPIC'
7862 lt_prog_compiler_static='-Bstatic'
7865 linux* | k*bsd*-gnu)
7866 case $cc_basename in
7868 lt_prog_compiler_wl='-Wl,'
7869 lt_prog_compiler_pic='-KPIC'
7870 lt_prog_compiler_static='-static'
7872 pgcc* | pgf77* | pgf90* | pgf95*)
7873 # Portland Group compilers (*not* the Pentium gcc compiler,
7874 # which looks to be a dead project)
7875 lt_prog_compiler_wl='-Wl,'
7876 lt_prog_compiler_pic='-fpic'
7877 lt_prog_compiler_static='-Bstatic'
7880 lt_prog_compiler_wl='-Wl,'
7881 # All Alpha code is PIC.
7882 lt_prog_compiler_static='-non_shared'
7885 case `$CC -V 2>&1 | sed 5q` in
7888 lt_prog_compiler_pic='-KPIC'
7889 lt_prog_compiler_static='-Bstatic'
7890 lt_prog_compiler_wl='-Wl,'
7893 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7894 lt_prog_compiler_pic='-KPIC'
7895 lt_prog_compiler_static='-Bstatic'
7896 lt_prog_compiler_wl=''
7903 osf3* | osf4* | osf5*)
7904 lt_prog_compiler_wl='-Wl,'
7905 # All OSF/1 code is PIC.
7906 lt_prog_compiler_static='-non_shared'
7910 lt_prog_compiler_static='-non_shared'
7914 lt_prog_compiler_pic='-KPIC'
7915 lt_prog_compiler_static='-Bstatic'
7916 case $cc_basename in
7918 lt_prog_compiler_wl='-Qoption ld ';;
7920 lt_prog_compiler_wl='-Wl,';;
7925 lt_prog_compiler_wl='-Qoption ld '
7926 lt_prog_compiler_pic='-PIC'
7927 lt_prog_compiler_static='-Bstatic'
7930 sysv4 | sysv4.2uw2* | sysv4.3*)
7931 lt_prog_compiler_wl='-Wl,'
7932 lt_prog_compiler_pic='-KPIC'
7933 lt_prog_compiler_static='-Bstatic'
7937 if test -d /usr/nec ;then
7938 lt_prog_compiler_pic='-Kconform_pic'
7939 lt_prog_compiler_static='-Bstatic'
7943 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7944 lt_prog_compiler_wl='-Wl,'
7945 lt_prog_compiler_pic='-KPIC'
7946 lt_prog_compiler_static='-Bstatic'
7950 lt_prog_compiler_wl='-Wl,'
7951 lt_prog_compiler_can_build_shared=no
7955 lt_prog_compiler_pic='-pic'
7956 lt_prog_compiler_static='-Bstatic'
7960 lt_prog_compiler_can_build_shared=no
7965 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7966 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7969 # Check to make sure the PIC flag actually works.
7971 if test -n "$lt_prog_compiler_pic"; then
7973 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7974 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7975 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7976 echo $ECHO_N "(cached) $ECHO_C" >&6
7978 lt_cv_prog_compiler_pic_works=no
7979 ac_outfile=conftest.$ac_objext
7980 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7981 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7982 # Insert the option either (1) after the last *FLAGS variable, or
7983 # (2) before a word containing "conftest.", or (3) at the end.
7984 # Note that $ac_compile itself does not contain backslashes and begins
7985 # with a dollar sign (not a hyphen), so the echo should work correctly.
7986 # The option is referenced via a variable to avoid confusing sed.
7987 lt_compile=`echo "$ac_compile" | $SED \
7988 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7989 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7990 -e 's:$: $lt_compiler_flag:'`
7991 (eval echo "\"\$as_me:7991: $lt_compile\"" >&5)
7992 (eval "$lt_compile" 2>conftest.err)
7994 cat conftest.err >&5
7995 echo "$as_me:7995: \$? = $ac_status" >&5
7996 if (exit $ac_status) && test -s "$ac_outfile"; then
7997 # The compiler can only warn and ignore the option if not recognized
7998 # So say no if there are warnings other than the usual output.
7999 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8000 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8001 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8002 lt_cv_prog_compiler_pic_works=yes
8008 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8009 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
8011 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8012 case $lt_prog_compiler_pic in
8014 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8017 lt_prog_compiler_pic=
8018 lt_prog_compiler_can_build_shared=no
8023 # For platforms which do not support PIC, -DPIC is meaningless:
8025 lt_prog_compiler_pic=
8028 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8033 # Check to make sure the static flag actually works.
8035 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8036 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8037 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8038 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8039 echo $ECHO_N "(cached) $ECHO_C" >&6
8041 lt_cv_prog_compiler_static_works=no
8042 save_LDFLAGS="$LDFLAGS"
8043 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8044 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8045 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8046 # The linker can only warn and ignore the option if not recognized
8047 # So say no if there are warnings
8048 if test -s conftest.err; then
8049 # Append any errors to the config.log.
8050 cat conftest.err 1>&5
8051 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8052 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8053 if diff conftest.exp conftest.er2 >/dev/null; then
8054 lt_cv_prog_compiler_static_works=yes
8057 lt_cv_prog_compiler_static_works=yes
8061 LDFLAGS="$save_LDFLAGS"
8064 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8065 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
8067 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8070 lt_prog_compiler_static=
8074 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8075 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8076 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8077 echo $ECHO_N "(cached) $ECHO_C" >&6
8079 lt_cv_prog_compiler_c_o=no
8080 $rm -r conftest 2>/dev/null
8084 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8086 lt_compiler_flag="-o out/conftest2.$ac_objext"
8087 # Insert the option either (1) after the last *FLAGS variable, or
8088 # (2) before a word containing "conftest.", or (3) at the end.
8089 # Note that $ac_compile itself does not contain backslashes and begins
8090 # with a dollar sign (not a hyphen), so the echo should work correctly.
8091 lt_compile=`echo "$ac_compile" | $SED \
8092 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8093 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8094 -e 's:$: $lt_compiler_flag:'`
8095 (eval echo "\"\$as_me:8095: $lt_compile\"" >&5)
8096 (eval "$lt_compile" 2>out/conftest.err)
8098 cat out/conftest.err >&5
8099 echo "$as_me:8099: \$? = $ac_status" >&5
8100 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8102 # The compiler can only warn and ignore the option if not recognized
8103 # So say no if there are warnings
8104 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8105 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8106 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8107 lt_cv_prog_compiler_c_o=yes
8112 # SGI C++ compiler will create directory out/ii_files/ for
8113 # template instantiation
8114 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8115 $rm out/* && rmdir out
8121 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8122 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8125 hard_links="nottested"
8126 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8127 # do not overwrite the value of need_locks provided by the user
8128 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8129 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8132 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8134 ln conftest.a conftest.b 2>&5 || hard_links=no
8135 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8136 { echo "$as_me:$LINENO: result: $hard_links" >&5
8137 echo "${ECHO_T}$hard_links" >&6; }
8138 if test "$hard_links" = no; then
8139 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8140 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8147 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8148 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8151 allow_undefined_flag=
8152 enable_shared_with_static_runtimes=no
8154 archive_expsym_cmds=
8155 old_archive_From_new_cmds=
8156 old_archive_from_expsyms_cmds=
8157 export_dynamic_flag_spec=
8158 whole_archive_flag_spec=
8159 thread_safe_flag_spec=
8160 hardcode_libdir_flag_spec=
8161 hardcode_libdir_flag_spec_ld=
8162 hardcode_libdir_separator=
8165 hardcode_shlibpath_var=unsupported
8166 link_all_deplibs=unknown
8167 hardcode_automatic=no
8170 always_export_symbols=no
8171 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8172 # include_expsyms should be a list of space-separated symbols to be *always*
8173 # included in the symbol list
8175 # exclude_expsyms can be an extended regexp of symbols to exclude
8176 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8177 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8178 # as well as any symbol that contains `d'.
8179 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8180 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8181 # platforms (ab)use it in PIC code, but their linkers get confused if
8182 # the symbol is explicitly referenced. Since portable code cannot
8183 # rely on this symbol name, it's probably fine to never include it in
8184 # preloaded symbol tables.
8185 # Exclude shared library initialization/finalization symbols.
8186 extract_expsyms_cmds=
8187 # Just being paranoid about ensuring that cc_basename is set.
8188 for cc_temp in $compiler""; do
8190 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8191 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8196 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8199 cygwin* | mingw* | pw32*)
8200 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8201 # When not using gcc, we currently assume that we are using
8202 # Microsoft Visual C++.
8203 if test "$GCC" != yes; then
8208 # we just hope/assume this is gcc and not c89 (= MSVC++)
8217 if test "$with_gnu_ld" = yes; then
8218 # If archive_cmds runs LD, not CC, wlarc should be empty
8221 # Set some defaults for GNU ld with shared library support. These
8222 # are reset later if shared libraries are not supported. Putting them
8223 # here allows them to be overridden if necessary.
8224 runpath_var=LD_RUN_PATH
8225 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8226 export_dynamic_flag_spec='${wl}--export-dynamic'
8227 # ancient GNU ld didn't support --whole-archive et. al.
8228 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8229 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8231 whole_archive_flag_spec=
8233 supports_anon_versioning=no
8234 case `$LD -v 2>/dev/null` in
8235 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8236 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8237 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8238 *\ 2.11.*) ;; # other 2.11 versions
8239 *) supports_anon_versioning=yes ;;
8242 # See if GNU ld supports shared libraries.
8245 # On AIX/PPC, the GNU linker is very broken
8246 if test "$host_cpu" != ia64; then
8250 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8251 *** to be unable to reliably create shared libraries on AIX.
8252 *** Therefore, libtool is disabling shared libraries support. If you
8253 *** really care for shared libraries, you may want to modify your PATH
8254 *** so that a non-GNU linker is found, and then restart.
8261 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)'
8262 hardcode_libdir_flag_spec='-L$libdir'
8263 hardcode_minus_L=yes
8265 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8266 # that the semantics of dynamic libraries on AmigaOS, at least up
8267 # to version 4, is to share data among multiple programs linked
8268 # with the same dynamic library. Since this doesn't match the
8269 # behavior of shared libraries on other platforms, we can't use
8275 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8276 allow_undefined_flag=unsupported
8277 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8278 # support --undefined. This deserves some investigation. FIXME
8279 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8285 cygwin* | mingw* | pw32*)
8286 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8287 # as there is no search path for DLLs.
8288 hardcode_libdir_flag_spec='-L$libdir'
8289 allow_undefined_flag=unsupported
8290 always_export_symbols=no
8291 enable_shared_with_static_runtimes=yes
8292 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8294 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8295 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8296 # If the export-symbols file already is a .def file (1st line
8297 # is EXPORTS), use it as is; otherwise, prepend...
8298 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8299 cp $export_symbols $output_objdir/$soname.def;
8301 echo EXPORTS > $output_objdir/$soname.def;
8302 cat $export_symbols >> $output_objdir/$soname.def;
8304 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8312 hardcode_shlibpath_var=no
8313 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8314 export_dynamic_flag_spec='${wl}-E'
8315 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8316 # Instead, shared libraries are loaded at an image base (0x10000000 by
8317 # default) and relocated if they conflict, which is a slow very memory
8318 # consuming and fragmenting process. To avoid this, we pick a random,
8319 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8320 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8321 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8322 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'
8325 gnu* | linux* | k*bsd*-gnu)
8326 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8328 case $cc_basename,$host_cpu in
8329 pgcc*) # Portland Group C compiler
8330 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'
8331 tmp_addflag=' $pic_flag'
8333 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8334 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'
8335 tmp_addflag=' $pic_flag -Mnomain' ;;
8336 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8337 tmp_addflag=' -i_dynamic' ;;
8338 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8339 tmp_addflag=' -i_dynamic -nofor_main' ;;
8340 ifc* | ifort*) # Intel Fortran compiler
8341 tmp_addflag=' -nofor_main' ;;
8343 case `$CC -V 2>&1 | sed 5q` in
8344 *Sun\ C*) # Sun C 5.9
8345 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8346 tmp_sharedflag='-G' ;;
8347 *Sun\ F*) # Sun Fortran 8.3
8348 tmp_sharedflag='-G' ;;
8350 tmp_sharedflag='-shared' ;;
8352 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8354 if test $supports_anon_versioning = yes; then
8355 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8356 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8357 $echo "local: *; };" >> $output_objdir/$libname.ver~
8358 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8366 netbsd* | netbsdelf*-gnu)
8367 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8368 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8371 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8372 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8377 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8381 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8382 *** create shared libraries on Solaris systems. Therefore, libtool
8383 *** is disabling shared libraries support. We urge you to upgrade GNU
8384 *** binutils to release 2.9.1 or newer. Another option is to modify
8385 *** your PATH or compiler configuration so that the native linker is
8386 *** used, and then restart.
8389 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8390 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8391 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8397 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8398 case `$LD -v 2>&1` in
8399 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8403 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8404 *** reliably create shared libraries on SCO systems. Therefore, libtool
8405 *** is disabling shared libraries support. We urge you to upgrade GNU
8406 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8407 *** your PATH or compiler configuration so that the native linker is
8408 *** used, and then restart.
8413 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8414 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8415 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8416 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8425 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8428 hardcode_shlibpath_var=no
8432 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8433 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8434 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8441 if test "$ld_shlibs" = no; then
8443 hardcode_libdir_flag_spec=
8444 export_dynamic_flag_spec=
8445 whole_archive_flag_spec=
8448 # PORTME fill in a description of your system's linker (not GNU ld)
8451 allow_undefined_flag=unsupported
8452 always_export_symbols=yes
8453 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'
8454 # Note: this linker hardcodes the directories in LIBPATH if there
8455 # are no directories specified by -L.
8456 hardcode_minus_L=yes
8457 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8458 # Neither direct hardcoding nor static linking is supported with a
8460 hardcode_direct=unsupported
8465 if test "$host_cpu" = ia64; then
8466 # On IA64, the linker does run time linking by default, so we don't
8467 # have to do anything special.
8468 aix_use_runtimelinking=no
8469 exp_sym_flag='-Bexport'
8472 # If we're using GNU nm, then we don't want the "-C" option.
8473 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8474 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8475 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'
8477 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'
8479 aix_use_runtimelinking=no
8481 # Test if we are trying to use run time linking or normal
8482 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8483 # need to do runtime linking.
8484 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8485 for ld_flag in $LDFLAGS; do
8486 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8487 aix_use_runtimelinking=yes
8494 exp_sym_flag='-bexport'
8495 no_entry_flag='-bnoentry'
8498 # When large executables or shared objects are built, AIX ld can
8499 # have problems creating the table of contents. If linking a library
8500 # or program results in "error TOC overflow" add -mminimal-toc to
8501 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8502 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8506 hardcode_libdir_separator=':'
8507 link_all_deplibs=yes
8509 if test "$GCC" = yes; then
8510 case $host_os in aix4.[012]|aix4.[012].*)
8511 # We only want to do this on AIX 4.2 and lower, the check
8512 # below for broken collect2 doesn't work under 4.3+
8513 collect2name=`${CC} -print-prog-name=collect2`
8514 if test -f "$collect2name" && \
8515 strings "$collect2name" | grep resolve_lib_name >/dev/null
8517 # We have reworked collect2
8520 # We have old collect2
8521 hardcode_direct=unsupported
8522 # It fails to find uninstalled libraries when the uninstalled
8523 # path is not listed in the libpath. Setting hardcode_minus_L
8524 # to unsupported forces relinking
8525 hardcode_minus_L=yes
8526 hardcode_libdir_flag_spec='-L$libdir'
8527 hardcode_libdir_separator=
8531 shared_flag='-shared'
8532 if test "$aix_use_runtimelinking" = yes; then
8533 shared_flag="$shared_flag "'${wl}-G'
8537 if test "$host_cpu" = ia64; then
8538 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8539 # chokes on -Wl,-G. The following line is correct:
8542 if test "$aix_use_runtimelinking" = yes; then
8543 shared_flag='${wl}-G'
8545 shared_flag='${wl}-bM:SRE'
8550 # It seems that -bexpall does not export symbols beginning with
8551 # underscore (_), so it is better to generate a list of symbols to export.
8552 always_export_symbols=yes
8553 if test "$aix_use_runtimelinking" = yes; then
8554 # Warning - without using the other runtime loading flags (-brtl),
8555 # -berok will link without error, but may produce a broken library.
8556 allow_undefined_flag='-berok'
8557 # Determine the default libpath from the value encoded in an empty executable.
8558 cat >conftest.$ac_ext <<_ACEOF
8561 cat confdefs.h >>conftest.$ac_ext
8562 cat >>conftest.$ac_ext <<_ACEOF
8563 /* end confdefs.h. */
8573 rm -f conftest.$ac_objext conftest$ac_exeext
8574 if { (ac_try="$ac_link"
8576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8577 *) ac_try_echo=$ac_try;;
8579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8580 (eval "$ac_link") 2>conftest.er1
8582 grep -v '^ *+' conftest.er1 >conftest.err
8584 cat conftest.err >&5
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); } && {
8587 test -z "$ac_c_werror_flag" ||
8588 test ! -s conftest.err
8589 } && test -s conftest$ac_exeext &&
8590 $as_test_x conftest$ac_exeext; then
8592 lt_aix_libpath_sed='
8593 /Import File Strings/,/^$/ {
8599 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8600 # Check for a 64-bit object if we didn't find anything.
8601 if test -z "$aix_libpath"; then
8602 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8605 echo "$as_me: failed program was:" >&5
8606 sed 's/^/| /' conftest.$ac_ext >&5
8611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8612 conftest$ac_exeext conftest.$ac_ext
8613 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8615 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8616 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"
8618 if test "$host_cpu" = ia64; then
8619 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8620 allow_undefined_flag="-z nodefs"
8621 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"
8623 # Determine the default libpath from the value encoded in an empty executable.
8624 cat >conftest.$ac_ext <<_ACEOF
8627 cat confdefs.h >>conftest.$ac_ext
8628 cat >>conftest.$ac_ext <<_ACEOF
8629 /* end confdefs.h. */
8639 rm -f conftest.$ac_objext conftest$ac_exeext
8640 if { (ac_try="$ac_link"
8642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8643 *) ac_try_echo=$ac_try;;
8645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8646 (eval "$ac_link") 2>conftest.er1
8648 grep -v '^ *+' conftest.er1 >conftest.err
8650 cat conftest.err >&5
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); } && {
8653 test -z "$ac_c_werror_flag" ||
8654 test ! -s conftest.err
8655 } && test -s conftest$ac_exeext &&
8656 $as_test_x conftest$ac_exeext; then
8658 lt_aix_libpath_sed='
8659 /Import File Strings/,/^$/ {
8665 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8666 # Check for a 64-bit object if we didn't find anything.
8667 if test -z "$aix_libpath"; then
8668 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8671 echo "$as_me: failed program was:" >&5
8672 sed 's/^/| /' conftest.$ac_ext >&5
8677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8678 conftest$ac_exeext conftest.$ac_ext
8679 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8681 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8682 # Warning - without using the other run time loading flags,
8683 # -berok will link without error, but may produce a broken library.
8684 no_undefined_flag=' ${wl}-bernotok'
8685 allow_undefined_flag=' ${wl}-berok'
8686 # Exported symbols can be pulled into shared objects from archives
8687 whole_archive_flag_spec='$convenience'
8688 archive_cmds_need_lc=yes
8689 # This is similar to how AIX traditionally builds its shared libraries.
8690 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'
8696 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)'
8697 hardcode_libdir_flag_spec='-L$libdir'
8698 hardcode_minus_L=yes
8699 # see comment about different semantics on the GNU ld section
8704 export_dynamic_flag_spec=-rdynamic
8707 cygwin* | mingw* | pw32*)
8708 # When not using gcc, we currently assume that we are using
8709 # Microsoft Visual C++.
8710 # hardcode_libdir_flag_spec is actually meaningless, as there is
8711 # no search path for DLLs.
8712 hardcode_libdir_flag_spec=' '
8713 allow_undefined_flag=unsupported
8714 # Tell ltmain to make .lib files, not .a files.
8716 # Tell ltmain to make .dll files, not .so files.
8718 # FIXME: Setting linknames here is a bad hack.
8719 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8720 # The linker will automatically build a .lib file if we build a DLL.
8721 old_archive_From_new_cmds='true'
8722 # FIXME: Should let the user specify the lib program.
8723 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8724 fix_srcfile_path='`cygpath -w "$srcfile"`'
8725 enable_shared_with_static_runtimes=yes
8728 darwin* | rhapsody*)
8730 rhapsody* | darwin1.[012])
8731 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8734 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8735 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8737 case ${MACOSX_DEPLOYMENT_TARGET} in
8739 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8742 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8748 archive_cmds_need_lc=no
8750 hardcode_automatic=yes
8751 hardcode_shlibpath_var=unsupported
8752 whole_archive_flag_spec=''
8753 link_all_deplibs=yes
8754 if test "$GCC" = yes ; then
8755 output_verbose_link_cmd='echo'
8756 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8757 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8758 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8759 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8761 case $cc_basename in
8763 output_verbose_link_cmd='echo'
8764 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8765 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8766 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8767 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8768 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}'
8778 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8779 hardcode_libdir_flag_spec='-L$libdir'
8780 hardcode_shlibpath_var=no
8787 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8788 # support. Future versions do this automatically, but an explicit c++rt0.o
8789 # does not break anything, and helps significantly (at the cost of a little
8792 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8793 hardcode_libdir_flag_spec='-R$libdir'
8795 hardcode_shlibpath_var=no
8798 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8800 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8802 hardcode_minus_L=yes
8803 hardcode_shlibpath_var=no
8806 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8807 freebsd* | dragonfly*)
8808 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8809 hardcode_libdir_flag_spec='-R$libdir'
8811 hardcode_shlibpath_var=no
8815 if test "$GCC" = yes; then
8816 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'
8818 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'
8820 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8821 hardcode_libdir_separator=:
8824 # hardcode_minus_L: Not really in the search PATH,
8825 # but as the default location of the library.
8826 hardcode_minus_L=yes
8827 export_dynamic_flag_spec='${wl}-E'
8831 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8832 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8834 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8836 if test "$with_gnu_ld" = no; then
8837 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8838 hardcode_libdir_separator=:
8841 export_dynamic_flag_spec='${wl}-E'
8843 # hardcode_minus_L: Not really in the search PATH,
8844 # but as the default location of the library.
8845 hardcode_minus_L=yes
8850 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8853 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8856 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8859 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8865 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8868 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8871 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8875 if test "$with_gnu_ld" = no; then
8876 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8877 hardcode_libdir_separator=:
8881 hardcode_libdir_flag_spec_ld='+b $libdir'
8883 hardcode_shlibpath_var=no
8887 export_dynamic_flag_spec='${wl}-E'
8889 # hardcode_minus_L: Not really in the search PATH,
8890 # but as the default location of the library.
8891 hardcode_minus_L=yes
8897 irix5* | irix6* | nonstopux*)
8898 if test "$GCC" = yes; then
8899 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'
8901 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'
8902 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8904 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8905 hardcode_libdir_separator=:
8906 link_all_deplibs=yes
8909 netbsd* | netbsdelf*-gnu)
8910 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8911 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8913 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8915 hardcode_libdir_flag_spec='-R$libdir'
8917 hardcode_shlibpath_var=no
8921 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8923 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8924 hardcode_libdir_separator=:
8925 hardcode_shlibpath_var=no
8929 if test -f /usr/libexec/ld.so; then
8931 hardcode_shlibpath_var=no
8932 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8933 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8934 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8935 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8936 export_dynamic_flag_spec='${wl}-E'
8939 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8940 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8941 hardcode_libdir_flag_spec='-R$libdir'
8944 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8945 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8955 hardcode_libdir_flag_spec='-L$libdir'
8956 hardcode_minus_L=yes
8957 allow_undefined_flag=unsupported
8958 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'
8959 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8963 if test "$GCC" = yes; then
8964 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8965 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'
8967 allow_undefined_flag=' -expect_unresolved \*'
8968 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'
8970 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8971 hardcode_libdir_separator=:
8974 osf4* | osf5*) # as osf3* with the addition of -msym flag
8975 if test "$GCC" = yes; then
8976 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8977 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'
8978 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8980 allow_undefined_flag=' -expect_unresolved \*'
8981 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'
8982 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8983 $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'
8985 # Both c and cxx compiler support -rpath directly
8986 hardcode_libdir_flag_spec='-rpath $libdir'
8988 hardcode_libdir_separator=:
8992 no_undefined_flag=' -z text'
8993 if test "$GCC" = yes; then
8995 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8996 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8997 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9000 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9001 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9002 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9004 hardcode_libdir_flag_spec='-R$libdir'
9005 hardcode_shlibpath_var=no
9007 solaris2.[0-5] | solaris2.[0-5].*) ;;
9009 # The compiler driver will combine and reorder linker options,
9010 # but understands `-z linker_flag'. GCC discards it without `$wl',
9011 # but is careful enough not to reorder.
9012 # Supported since Solaris 2.6 (maybe 2.5.1?)
9013 if test "$GCC" = yes; then
9014 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9016 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9020 link_all_deplibs=yes
9024 if test "x$host_vendor" = xsequent; then
9025 # Use $CC to link under sequent, because it throws in some extra .o
9026 # files that make .init and .fini sections work.
9027 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9029 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9031 hardcode_libdir_flag_spec='-L$libdir'
9033 hardcode_minus_L=yes
9034 hardcode_shlibpath_var=no
9038 case $host_vendor in
9040 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9041 hardcode_direct=yes # is this really true???
9044 ## LD is ld it makes a PLAMLIB
9045 ## CC just makes a GrossModule.
9046 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9047 reload_cmds='$CC -r -o $output$reload_objs'
9051 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9052 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9055 runpath_var='LD_RUN_PATH'
9056 hardcode_shlibpath_var=no
9060 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9061 hardcode_shlibpath_var=no
9062 export_dynamic_flag_spec='-Bexport'
9066 if test -d /usr/nec; then
9067 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9068 hardcode_shlibpath_var=no
9069 runpath_var=LD_RUN_PATH
9070 hardcode_runpath_var=yes
9075 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9076 no_undefined_flag='${wl}-z,text'
9077 archive_cmds_need_lc=no
9078 hardcode_shlibpath_var=no
9079 runpath_var='LD_RUN_PATH'
9081 if test "$GCC" = yes; then
9082 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9083 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9085 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9086 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9090 sysv5* | sco3.2v5* | sco5v6*)
9091 # Note: We can NOT use -z defs as we might desire, because we do not
9092 # link with -lc, and that would cause any symbols used from libc to
9093 # always be unresolved, which means just about no library would
9094 # ever link correctly. If we're not using GNU ld we use -z text
9095 # though, which does catch some bad symbols but isn't as heavy-handed
9097 no_undefined_flag='${wl}-z,text'
9098 allow_undefined_flag='${wl}-z,nodefs'
9099 archive_cmds_need_lc=no
9100 hardcode_shlibpath_var=no
9101 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9102 hardcode_libdir_separator=':'
9103 link_all_deplibs=yes
9104 export_dynamic_flag_spec='${wl}-Bexport'
9105 runpath_var='LD_RUN_PATH'
9107 if test "$GCC" = yes; then
9108 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9109 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9111 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9112 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9117 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9118 hardcode_libdir_flag_spec='-L$libdir'
9119 hardcode_shlibpath_var=no
9128 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9129 echo "${ECHO_T}$ld_shlibs" >&6; }
9130 test "$ld_shlibs" = no && can_build_shared=no
9133 # Do we need to explicitly link libc?
9135 case "x$archive_cmds_need_lc" in
9137 # Assume -lc should be added
9138 archive_cmds_need_lc=yes
9140 if test "$enable_shared" = yes && test "$GCC" = yes; then
9141 case $archive_cmds in
9143 # FIXME: we may have to deal with multi-command sequences.
9146 # Test whether the compiler implicitly links with -lc since on some
9147 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9148 # to ld, don't add -lc before -lgcc.
9149 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9150 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9152 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9155 (eval $ac_compile) 2>&5
9157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158 (exit $ac_status); } 2>conftest.err; then
9161 libobjs=conftest.$ac_objext
9163 wl=$lt_prog_compiler_wl
9164 pic_flag=$lt_prog_compiler_pic
9170 lt_save_allow_undefined_flag=$allow_undefined_flag
9171 allow_undefined_flag=
9172 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9173 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9176 (exit $ac_status); }
9178 archive_cmds_need_lc=no
9180 archive_cmds_need_lc=yes
9182 allow_undefined_flag=$lt_save_allow_undefined_flag
9184 cat conftest.err 1>&5
9187 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9188 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9195 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9196 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9198 libname_spec='lib$name'
9206 shlibpath_overrides_runpath=unknown
9208 dynamic_linker="$host_os ld.so"
9209 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9211 if test "$GCC" = yes; then
9213 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9214 *) lt_awk_arg="/^libraries:/" ;;
9216 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9217 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9218 # if the path contains ";" then we assume it to be the separator
9219 # otherwise default to the standard path separator (i.e. ":") - it is
9220 # assumed that no part of a normal pathname contains ";" but that should
9221 # okay in the real world where ";" in dirpaths is itself problematic.
9222 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9224 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9226 # Ok, now we have the path, separated by spaces, we can step through it
9227 # and add multilib dir if necessary.
9228 lt_tmp_lt_search_path_spec=
9229 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9230 for lt_sys_path in $lt_search_path_spec; do
9231 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9232 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9234 test -d "$lt_sys_path" && \
9235 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9238 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9239 BEGIN {RS=" "; FS="/|\n";} {
9242 for (lt_i = NF; lt_i > 0; lt_i--) {
9243 if ($lt_i != "" && $lt_i != ".") {
9244 if ($lt_i == "..") {
9247 if (lt_count == 0) {
9248 lt_foo="/" $lt_i lt_foo;
9255 if (lt_foo != "") { lt_freq[lt_foo]++; }
9256 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9258 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9260 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9262 need_lib_prefix=unknown
9263 hardcode_into_libs=no
9265 # when you set need_version to no, make sure it does not cause -set_version
9266 # flags to be left without arguments
9267 need_version=unknown
9272 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9273 shlibpath_var=LIBPATH
9275 # AIX 3 has no versioning support, so we append a major version to the name.
9276 soname_spec='${libname}${release}${shared_ext}$major'
9283 hardcode_into_libs=yes
9284 if test "$host_cpu" = ia64; then
9285 # AIX 5 supports IA64
9286 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9287 shlibpath_var=LD_LIBRARY_PATH
9289 # With GCC up to 2.95.x, collect2 would create an import file
9290 # for dependence libraries. The import file would start with
9291 # the line `#! .'. This would cause the generated library to
9292 # depend on `.', always an invalid library. This was fixed in
9293 # development snapshots of GCC prior to 3.0.
9295 aix4 | aix4.[01] | aix4.[01].*)
9296 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9298 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9305 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9306 # soname into executable. Probably we can add versioning support to
9307 # collect2, so additional links can be useful in future.
9308 if test "$aix_use_runtimelinking" = yes; then
9309 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9310 # instead of lib<name>.a to let people know that these are not
9311 # typical AIX shared libraries.
9312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9314 # We preserve .a as extension for shared libraries through AIX4.2
9315 # and later when we are not doing run time linking.
9316 library_names_spec='${libname}${release}.a $libname.a'
9317 soname_spec='${libname}${release}${shared_ext}$major'
9319 shlibpath_var=LIBPATH
9324 library_names_spec='$libname.ixlibrary $libname.a'
9325 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9326 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'
9330 library_names_spec='${libname}${shared_ext}'
9331 dynamic_linker="$host_os ld.so"
9332 shlibpath_var=LIBRARY_PATH
9338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9339 soname_spec='${libname}${release}${shared_ext}$major'
9340 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9341 shlibpath_var=LD_LIBRARY_PATH
9342 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9343 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9344 # the default ld.so.conf also contains /usr/contrib/lib and
9345 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9346 # libtool to hard-code these into programs
9349 cygwin* | mingw* | pw32*)
9350 version_type=windows
9355 case $GCC,$host_os in
9356 yes,cygwin* | yes,mingw* | yes,pw32*)
9357 library_names_spec='$libname.dll.a'
9358 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9359 postinstall_cmds='base_file=`basename \${file}`~
9360 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9361 dldir=$destdir/`dirname \$dlpath`~
9362 test -d \$dldir || mkdir -p \$dldir~
9363 $install_prog $dir/$dlname \$dldir/$dlname~
9364 chmod a+x \$dldir/$dlname'
9365 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9366 dlpath=$dir/\$dldll~
9368 shlibpath_overrides_runpath=yes
9372 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9373 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9374 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9377 # MinGW DLLs use traditional 'lib' prefix
9378 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9379 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9380 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9381 # It is most probably a Windows format PATH printed by
9382 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9383 # path with ; separators, and with drive letters. We can handle the
9384 # drive letters (cygwin fileutils understands them), so leave them,
9385 # especially as we might pass files found there to a mingw objdump,
9386 # which wouldn't understand a cygwinified path. Ahh.
9387 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9389 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9393 # pw32 DLLs use 'pw' prefix rather than 'lib'
9394 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9400 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9403 dynamic_linker='Win32 ld.exe'
9404 # FIXME: first we should search . and the directory the executable is in
9408 darwin* | rhapsody*)
9409 dynamic_linker="$host_os dyld"
9413 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9414 soname_spec='${libname}${release}${major}$shared_ext'
9415 shlibpath_overrides_runpath=yes
9416 shlibpath_var=DYLD_LIBRARY_PATH
9417 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9419 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9420 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9428 soname_spec='${libname}${release}${shared_ext}$major'
9429 shlibpath_var=LD_LIBRARY_PATH
9436 freebsd* | dragonfly*)
9437 # DragonFly does not have aout. When/if they implement a new
9438 # versioning mechanism, adjust this.
9439 if test -x /usr/bin/objformat; then
9440 objformat=`/usr/bin/objformat`
9443 freebsd[123]*) objformat=aout ;;
9447 version_type=freebsd-$objformat
9448 case $version_type in
9450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9455 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9459 shlibpath_var=LD_LIBRARY_PATH
9462 shlibpath_overrides_runpath=yes
9464 freebsd3.[01]* | freebsdelf3.[01]*)
9465 shlibpath_overrides_runpath=yes
9466 hardcode_into_libs=yes
9468 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9469 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9470 shlibpath_overrides_runpath=no
9471 hardcode_into_libs=yes
9473 *) # from 4.6 on, and DragonFly
9474 shlibpath_overrides_runpath=yes
9475 hardcode_into_libs=yes
9484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9485 soname_spec='${libname}${release}${shared_ext}$major'
9486 shlibpath_var=LD_LIBRARY_PATH
9487 hardcode_into_libs=yes
9490 hpux9* | hpux10* | hpux11*)
9491 # Give a soname corresponding to the major version so that dld.sl refuses to
9492 # link against other versions.
9499 hardcode_into_libs=yes
9500 dynamic_linker="$host_os dld.so"
9501 shlibpath_var=LD_LIBRARY_PATH
9502 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9504 soname_spec='${libname}${release}${shared_ext}$major'
9505 if test "X$HPUX_IA64_MODE" = X32; then
9506 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9508 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9510 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9514 hardcode_into_libs=yes
9515 dynamic_linker="$host_os dld.sl"
9516 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9517 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9519 soname_spec='${libname}${release}${shared_ext}$major'
9520 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9521 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9525 dynamic_linker="$host_os dld.sl"
9526 shlibpath_var=SHLIB_PATH
9527 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9529 soname_spec='${libname}${release}${shared_ext}$major'
9532 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9533 postinstall_cmds='chmod 555 $lib'
9540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9541 soname_spec='${libname}${release}${shared_ext}$major'
9542 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9543 shlibpath_var=LD_LIBRARY_PATH
9544 shlibpath_overrides_runpath=no
9545 hardcode_into_libs=yes
9548 irix5* | irix6* | nonstopux*)
9550 nonstopux*) version_type=nonstopux ;;
9552 if test "$lt_cv_prog_gnu_ld" = yes; then
9560 soname_spec='${libname}${release}${shared_ext}$major'
9561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9563 irix5* | nonstopux*)
9567 case $LD in # libtool.m4 will add one of these switches to LD
9568 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9569 libsuff= shlibsuff= libmagic=32-bit;;
9570 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9571 libsuff=32 shlibsuff=N32 libmagic=N32;;
9572 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9573 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9574 *) libsuff= shlibsuff= libmagic=never-match;;
9578 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9579 shlibpath_overrides_runpath=no
9580 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9581 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9582 hardcode_into_libs=yes
9585 # No shared lib support for Linux oldld, aout, or coff.
9586 linux*oldld* | linux*aout* | linux*coff*)
9590 # This must be Linux ELF.
9591 linux* | k*bsd*-gnu)
9595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9596 soname_spec='${libname}${release}${shared_ext}$major'
9597 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9598 shlibpath_var=LD_LIBRARY_PATH
9599 shlibpath_overrides_runpath=no
9600 # This implies no fast_install, which is unacceptable.
9601 # Some rework will be needed to allow for fast_install
9602 # before this can be enabled.
9603 hardcode_into_libs=yes
9605 # Append ld.so.conf contents to the search path
9606 if test -f /etc/ld.so.conf; then
9607 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9608 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9611 # We used to test for /lib/ld.so.1 and disable shared libraries on
9612 # powerpc, because MkLinux only supported shared libraries with the
9613 # GNU dynamic linker. Since this was broken with cross compilers,
9614 # most powerpc-linux boxes support dynamic linking these days and
9615 # people can always --disable-shared, the test was removed, and we
9616 # assume the GNU/Linux dynamic linker is in use.
9617 dynamic_linker='GNU/Linux ld.so'
9624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9625 soname_spec='${libname}${release}${shared_ext}$major'
9626 shlibpath_var=LD_LIBRARY_PATH
9627 shlibpath_overrides_runpath=no
9628 hardcode_into_libs=yes
9629 dynamic_linker='NetBSD ld.elf_so'
9636 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9638 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9639 dynamic_linker='NetBSD (a.out) ld.so'
9641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9642 soname_spec='${libname}${release}${shared_ext}$major'
9643 dynamic_linker='NetBSD ld.elf_so'
9645 shlibpath_var=LD_LIBRARY_PATH
9646 shlibpath_overrides_runpath=yes
9647 hardcode_into_libs=yes
9652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9653 shlibpath_var=LD_LIBRARY_PATH
9654 shlibpath_overrides_runpath=yes
9661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9662 soname_spec='${libname}${release}${shared_ext}$major'
9663 shlibpath_var=LD_LIBRARY_PATH
9664 shlibpath_overrides_runpath=yes
9669 sys_lib_dlsearch_path_spec="/usr/lib"
9671 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9673 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9674 *) need_version=no ;;
9676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9677 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9678 shlibpath_var=LD_LIBRARY_PATH
9679 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9681 openbsd2.[89] | openbsd2.[89].*)
9682 shlibpath_overrides_runpath=no
9685 shlibpath_overrides_runpath=yes
9689 shlibpath_overrides_runpath=yes
9694 libname_spec='$name'
9697 library_names_spec='$libname${shared_ext} $libname.a'
9698 dynamic_linker='OS/2 ld.exe'
9699 shlibpath_var=LIBPATH
9702 osf3* | osf4* | osf5*)
9706 soname_spec='${libname}${release}${shared_ext}$major'
9707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9708 shlibpath_var=LD_LIBRARY_PATH
9709 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9710 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9722 soname_spec='${libname}${release}${shared_ext}$major'
9723 shlibpath_var=LD_LIBRARY_PATH
9724 shlibpath_overrides_runpath=yes
9725 hardcode_into_libs=yes
9726 # ldd complains unless libraries are executable
9727 postinstall_cmds='chmod +x $lib'
9732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9733 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9734 shlibpath_var=LD_LIBRARY_PATH
9735 shlibpath_overrides_runpath=yes
9736 if test "$with_gnu_ld" = yes; then
9744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9745 soname_spec='${libname}${release}${shared_ext}$major'
9746 shlibpath_var=LD_LIBRARY_PATH
9747 case $host_vendor in
9749 shlibpath_overrides_runpath=no
9751 export_dynamic_flag_spec='${wl}-Blargedynsym'
9752 runpath_var=LD_RUN_PATH
9760 shlibpath_overrides_runpath=no
9761 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9767 if test -d /usr/nec ;then
9769 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9770 soname_spec='$libname${shared_ext}.$major'
9771 shlibpath_var=LD_LIBRARY_PATH
9775 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9776 version_type=freebsd-elf
9779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9780 soname_spec='${libname}${release}${shared_ext}$major'
9781 shlibpath_var=LD_LIBRARY_PATH
9782 hardcode_into_libs=yes
9783 if test "$with_gnu_ld" = yes; then
9784 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9785 shlibpath_overrides_runpath=no
9787 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9788 shlibpath_overrides_runpath=yes
9791 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9795 sys_lib_dlsearch_path_spec='/usr/lib'
9800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9801 soname_spec='${libname}${release}${shared_ext}$major'
9802 shlibpath_var=LD_LIBRARY_PATH
9809 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9810 echo "${ECHO_T}$dynamic_linker" >&6; }
9811 test "$dynamic_linker" = no && can_build_shared=no
9813 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9814 echo $ECHO_N "(cached) $ECHO_C" >&6
9816 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9819 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9820 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9821 echo $ECHO_N "(cached) $ECHO_C" >&6
9823 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9826 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9828 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9829 if test "$GCC" = yes; then
9830 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9833 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9834 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9836 if test -n "$hardcode_libdir_flag_spec" || \
9837 test -n "$runpath_var" || \
9838 test "X$hardcode_automatic" = "Xyes" ; then
9840 # We can hardcode non-existant directories.
9841 if test "$hardcode_direct" != no &&
9842 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9843 # have to relink, otherwise we might link with an installed library
9844 # when we should be linking with a yet-to-be-installed one
9845 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9846 test "$hardcode_minus_L" != no; then
9847 # Linking always hardcodes the temporary library directory.
9848 hardcode_action=relink
9850 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9851 hardcode_action=immediate
9854 # We cannot hardcode anything, or else we can only hardcode existing
9856 hardcode_action=unsupported
9858 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9859 echo "${ECHO_T}$hardcode_action" >&6; }
9861 if test "$hardcode_action" = relink; then
9862 # Fast installation is not supported
9863 enable_fast_install=no
9864 elif test "$shlibpath_overrides_runpath" = yes ||
9865 test "$enable_shared" = no; then
9866 # Fast installation is not necessary
9867 enable_fast_install=needless
9872 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9873 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9874 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9875 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9876 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9877 { echo "$as_me:$LINENO: result: yes" >&5
9878 echo "${ECHO_T}yes" >&6; }
9880 # FIXME - insert some real tests, host_os isn't really good enough
9883 if test -n "$STRIP" ; then
9884 striplib="$STRIP -x"
9885 old_striplib="$STRIP -S"
9886 { echo "$as_me:$LINENO: result: yes" >&5
9887 echo "${ECHO_T}yes" >&6; }
9889 { echo "$as_me:$LINENO: result: no" >&5
9890 echo "${ECHO_T}no" >&6; }
9894 { echo "$as_me:$LINENO: result: no" >&5
9895 echo "${ECHO_T}no" >&6; }
9900 if test "x$enable_dlopen" != xyes; then
9901 enable_dlopen=unknown
9902 enable_dlopen_self=unknown
9903 enable_dlopen_self_static=unknown
9910 lt_cv_dlopen="load_add_on"
9912 lt_cv_dlopen_self=yes
9916 lt_cv_dlopen="LoadLibrary"
9921 lt_cv_dlopen="dlopen"
9926 # if libdl is installed we need to link against it
9927 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9928 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9929 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9930 echo $ECHO_N "(cached) $ECHO_C" >&6
9932 ac_check_lib_save_LIBS=$LIBS
9934 cat >conftest.$ac_ext <<_ACEOF
9937 cat confdefs.h >>conftest.$ac_ext
9938 cat >>conftest.$ac_ext <<_ACEOF
9939 /* end confdefs.h. */
9941 /* Override any GCC internal prototype to avoid an error.
9942 Use char because int might match the return type of a GCC
9943 builtin and then its argument prototype would still apply. */
9956 rm -f conftest.$ac_objext conftest$ac_exeext
9957 if { (ac_try="$ac_link"
9959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9960 *) ac_try_echo=$ac_try;;
9962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9963 (eval "$ac_link") 2>conftest.er1
9965 grep -v '^ *+' conftest.er1 >conftest.err
9967 cat conftest.err >&5
9968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969 (exit $ac_status); } && {
9970 test -z "$ac_c_werror_flag" ||
9971 test ! -s conftest.err
9972 } && test -s conftest$ac_exeext &&
9973 $as_test_x conftest$ac_exeext; then
9974 ac_cv_lib_dl_dlopen=yes
9976 echo "$as_me: failed program was:" >&5
9977 sed 's/^/| /' conftest.$ac_ext >&5
9979 ac_cv_lib_dl_dlopen=no
9982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9983 conftest$ac_exeext conftest.$ac_ext
9984 LIBS=$ac_check_lib_save_LIBS
9986 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9987 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9988 if test $ac_cv_lib_dl_dlopen = yes; then
9989 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9994 lt_cv_dlopen_self=yes
10001 { echo "$as_me:$LINENO: checking for shl_load" >&5
10002 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10003 if test "${ac_cv_func_shl_load+set}" = set; then
10004 echo $ECHO_N "(cached) $ECHO_C" >&6
10006 cat >conftest.$ac_ext <<_ACEOF
10009 cat confdefs.h >>conftest.$ac_ext
10010 cat >>conftest.$ac_ext <<_ACEOF
10011 /* end confdefs.h. */
10012 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10013 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10014 #define shl_load innocuous_shl_load
10016 /* System header to define __stub macros and hopefully few prototypes,
10017 which can conflict with char shl_load (); below.
10018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10019 <limits.h> exists even on freestanding compilers. */
10022 # include <limits.h>
10024 # include <assert.h>
10029 /* Override any GCC internal prototype to avoid an error.
10030 Use char because int might match the return type of a GCC
10031 builtin and then its argument prototype would still apply. */
10036 /* The GNU C library defines this for functions which it implements
10037 to always fail with ENOSYS. Some functions are actually named
10038 something starting with __ and the normal name is an alias. */
10039 #if defined __stub_shl_load || defined __stub___shl_load
10046 return shl_load ();
10051 rm -f conftest.$ac_objext conftest$ac_exeext
10052 if { (ac_try="$ac_link"
10053 case "(($ac_try" in
10054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10055 *) ac_try_echo=$ac_try;;
10057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10058 (eval "$ac_link") 2>conftest.er1
10060 grep -v '^ *+' conftest.er1 >conftest.err
10062 cat conftest.err >&5
10063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064 (exit $ac_status); } && {
10065 test -z "$ac_c_werror_flag" ||
10066 test ! -s conftest.err
10067 } && test -s conftest$ac_exeext &&
10068 $as_test_x conftest$ac_exeext; then
10069 ac_cv_func_shl_load=yes
10071 echo "$as_me: failed program was:" >&5
10072 sed 's/^/| /' conftest.$ac_ext >&5
10074 ac_cv_func_shl_load=no
10077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10078 conftest$ac_exeext conftest.$ac_ext
10080 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10081 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10082 if test $ac_cv_func_shl_load = yes; then
10083 lt_cv_dlopen="shl_load"
10085 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10086 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10087 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10088 echo $ECHO_N "(cached) $ECHO_C" >&6
10090 ac_check_lib_save_LIBS=$LIBS
10092 cat >conftest.$ac_ext <<_ACEOF
10095 cat confdefs.h >>conftest.$ac_ext
10096 cat >>conftest.$ac_ext <<_ACEOF
10097 /* end confdefs.h. */
10099 /* Override any GCC internal prototype to avoid an error.
10100 Use char because int might match the return type of a GCC
10101 builtin and then its argument prototype would still apply. */
10109 return shl_load ();
10114 rm -f conftest.$ac_objext conftest$ac_exeext
10115 if { (ac_try="$ac_link"
10116 case "(($ac_try" in
10117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10118 *) ac_try_echo=$ac_try;;
10120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10121 (eval "$ac_link") 2>conftest.er1
10123 grep -v '^ *+' conftest.er1 >conftest.err
10125 cat conftest.err >&5
10126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127 (exit $ac_status); } && {
10128 test -z "$ac_c_werror_flag" ||
10129 test ! -s conftest.err
10130 } && test -s conftest$ac_exeext &&
10131 $as_test_x conftest$ac_exeext; then
10132 ac_cv_lib_dld_shl_load=yes
10134 echo "$as_me: failed program was:" >&5
10135 sed 's/^/| /' conftest.$ac_ext >&5
10137 ac_cv_lib_dld_shl_load=no
10140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10141 conftest$ac_exeext conftest.$ac_ext
10142 LIBS=$ac_check_lib_save_LIBS
10144 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10145 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10146 if test $ac_cv_lib_dld_shl_load = yes; then
10147 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10149 { echo "$as_me:$LINENO: checking for dlopen" >&5
10150 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10151 if test "${ac_cv_func_dlopen+set}" = set; then
10152 echo $ECHO_N "(cached) $ECHO_C" >&6
10154 cat >conftest.$ac_ext <<_ACEOF
10157 cat confdefs.h >>conftest.$ac_ext
10158 cat >>conftest.$ac_ext <<_ACEOF
10159 /* end confdefs.h. */
10160 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10161 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10162 #define dlopen innocuous_dlopen
10164 /* System header to define __stub macros and hopefully few prototypes,
10165 which can conflict with char dlopen (); below.
10166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10167 <limits.h> exists even on freestanding compilers. */
10170 # include <limits.h>
10172 # include <assert.h>
10177 /* Override any GCC internal prototype to avoid an error.
10178 Use char because int might match the return type of a GCC
10179 builtin and then its argument prototype would still apply. */
10184 /* The GNU C library defines this for functions which it implements
10185 to always fail with ENOSYS. Some functions are actually named
10186 something starting with __ and the normal name is an alias. */
10187 #if defined __stub_dlopen || defined __stub___dlopen
10199 rm -f conftest.$ac_objext conftest$ac_exeext
10200 if { (ac_try="$ac_link"
10201 case "(($ac_try" in
10202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10203 *) ac_try_echo=$ac_try;;
10205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10206 (eval "$ac_link") 2>conftest.er1
10208 grep -v '^ *+' conftest.er1 >conftest.err
10210 cat conftest.err >&5
10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212 (exit $ac_status); } && {
10213 test -z "$ac_c_werror_flag" ||
10214 test ! -s conftest.err
10215 } && test -s conftest$ac_exeext &&
10216 $as_test_x conftest$ac_exeext; then
10217 ac_cv_func_dlopen=yes
10219 echo "$as_me: failed program was:" >&5
10220 sed 's/^/| /' conftest.$ac_ext >&5
10222 ac_cv_func_dlopen=no
10225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10226 conftest$ac_exeext conftest.$ac_ext
10228 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10229 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10230 if test $ac_cv_func_dlopen = yes; then
10231 lt_cv_dlopen="dlopen"
10233 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10234 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10235 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10236 echo $ECHO_N "(cached) $ECHO_C" >&6
10238 ac_check_lib_save_LIBS=$LIBS
10240 cat >conftest.$ac_ext <<_ACEOF
10243 cat confdefs.h >>conftest.$ac_ext
10244 cat >>conftest.$ac_ext <<_ACEOF
10245 /* end confdefs.h. */
10247 /* Override any GCC internal prototype to avoid an error.
10248 Use char because int might match the return type of a GCC
10249 builtin and then its argument prototype would still apply. */
10262 rm -f conftest.$ac_objext conftest$ac_exeext
10263 if { (ac_try="$ac_link"
10264 case "(($ac_try" in
10265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10266 *) ac_try_echo=$ac_try;;
10268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10269 (eval "$ac_link") 2>conftest.er1
10271 grep -v '^ *+' conftest.er1 >conftest.err
10273 cat conftest.err >&5
10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); } && {
10276 test -z "$ac_c_werror_flag" ||
10277 test ! -s conftest.err
10278 } && test -s conftest$ac_exeext &&
10279 $as_test_x conftest$ac_exeext; then
10280 ac_cv_lib_dl_dlopen=yes
10282 echo "$as_me: failed program was:" >&5
10283 sed 's/^/| /' conftest.$ac_ext >&5
10285 ac_cv_lib_dl_dlopen=no
10288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10289 conftest$ac_exeext conftest.$ac_ext
10290 LIBS=$ac_check_lib_save_LIBS
10292 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10293 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10294 if test $ac_cv_lib_dl_dlopen = yes; then
10295 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10297 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10298 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10299 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10300 echo $ECHO_N "(cached) $ECHO_C" >&6
10302 ac_check_lib_save_LIBS=$LIBS
10303 LIBS="-lsvld $LIBS"
10304 cat >conftest.$ac_ext <<_ACEOF
10307 cat confdefs.h >>conftest.$ac_ext
10308 cat >>conftest.$ac_ext <<_ACEOF
10309 /* end confdefs.h. */
10311 /* Override any GCC internal prototype to avoid an error.
10312 Use char because int might match the return type of a GCC
10313 builtin and then its argument prototype would still apply. */
10326 rm -f conftest.$ac_objext conftest$ac_exeext
10327 if { (ac_try="$ac_link"
10328 case "(($ac_try" in
10329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10330 *) ac_try_echo=$ac_try;;
10332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10333 (eval "$ac_link") 2>conftest.er1
10335 grep -v '^ *+' conftest.er1 >conftest.err
10337 cat conftest.err >&5
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); } && {
10340 test -z "$ac_c_werror_flag" ||
10341 test ! -s conftest.err
10342 } && test -s conftest$ac_exeext &&
10343 $as_test_x conftest$ac_exeext; then
10344 ac_cv_lib_svld_dlopen=yes
10346 echo "$as_me: failed program was:" >&5
10347 sed 's/^/| /' conftest.$ac_ext >&5
10349 ac_cv_lib_svld_dlopen=no
10352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10353 conftest$ac_exeext conftest.$ac_ext
10354 LIBS=$ac_check_lib_save_LIBS
10356 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10357 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10358 if test $ac_cv_lib_svld_dlopen = yes; then
10359 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10361 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10362 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10363 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10364 echo $ECHO_N "(cached) $ECHO_C" >&6
10366 ac_check_lib_save_LIBS=$LIBS
10368 cat >conftest.$ac_ext <<_ACEOF
10371 cat confdefs.h >>conftest.$ac_ext
10372 cat >>conftest.$ac_ext <<_ACEOF
10373 /* end confdefs.h. */
10375 /* Override any GCC internal prototype to avoid an error.
10376 Use char because int might match the return type of a GCC
10377 builtin and then its argument prototype would still apply. */
10385 return dld_link ();
10390 rm -f conftest.$ac_objext conftest$ac_exeext
10391 if { (ac_try="$ac_link"
10392 case "(($ac_try" in
10393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10394 *) ac_try_echo=$ac_try;;
10396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10397 (eval "$ac_link") 2>conftest.er1
10399 grep -v '^ *+' conftest.er1 >conftest.err
10401 cat conftest.err >&5
10402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403 (exit $ac_status); } && {
10404 test -z "$ac_c_werror_flag" ||
10405 test ! -s conftest.err
10406 } && test -s conftest$ac_exeext &&
10407 $as_test_x conftest$ac_exeext; then
10408 ac_cv_lib_dld_dld_link=yes
10410 echo "$as_me: failed program was:" >&5
10411 sed 's/^/| /' conftest.$ac_ext >&5
10413 ac_cv_lib_dld_dld_link=no
10416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10417 conftest$ac_exeext conftest.$ac_ext
10418 LIBS=$ac_check_lib_save_LIBS
10420 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10421 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10422 if test $ac_cv_lib_dld_dld_link = yes; then
10423 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10444 if test "x$lt_cv_dlopen" != xno; then
10450 case $lt_cv_dlopen in
10452 save_CPPFLAGS="$CPPFLAGS"
10453 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10455 save_LDFLAGS="$LDFLAGS"
10456 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10459 LIBS="$lt_cv_dlopen_libs $LIBS"
10461 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10462 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10463 if test "${lt_cv_dlopen_self+set}" = set; then
10464 echo $ECHO_N "(cached) $ECHO_C" >&6
10466 if test "$cross_compiling" = yes; then :
10467 lt_cv_dlopen_self=cross
10469 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10470 lt_status=$lt_dlunknown
10471 cat > conftest.$ac_ext <<EOF
10472 #line 10472 "configure"
10473 #include "confdefs.h"
10482 # define LT_DLGLOBAL RTLD_GLOBAL
10485 # define LT_DLGLOBAL DL_GLOBAL
10487 # define LT_DLGLOBAL 0
10491 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10492 find out it does not work in some platform. */
10493 #ifndef LT_DLLAZY_OR_NOW
10495 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10498 # define LT_DLLAZY_OR_NOW DL_LAZY
10501 # define LT_DLLAZY_OR_NOW RTLD_NOW
10504 # define LT_DLLAZY_OR_NOW DL_NOW
10506 # define LT_DLLAZY_OR_NOW 0
10514 extern "C" void exit (int);
10517 void fnord() { int i=42;}
10520 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10521 int status = $lt_dlunknown;
10525 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10526 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10527 /* dlclose (self); */
10535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10536 (eval $ac_link) 2>&5
10538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10540 (./conftest; exit; ) >&5 2>/dev/null
10542 case x$lt_status in
10543 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10544 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10545 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10548 # compilation failed
10549 lt_cv_dlopen_self=no
10556 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10557 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10559 if test "x$lt_cv_dlopen_self" = xyes; then
10560 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10561 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10562 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10563 if test "${lt_cv_dlopen_self_static+set}" = set; then
10564 echo $ECHO_N "(cached) $ECHO_C" >&6
10566 if test "$cross_compiling" = yes; then :
10567 lt_cv_dlopen_self_static=cross
10569 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10570 lt_status=$lt_dlunknown
10571 cat > conftest.$ac_ext <<EOF
10572 #line 10572 "configure"
10573 #include "confdefs.h"
10582 # define LT_DLGLOBAL RTLD_GLOBAL
10585 # define LT_DLGLOBAL DL_GLOBAL
10587 # define LT_DLGLOBAL 0
10591 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10592 find out it does not work in some platform. */
10593 #ifndef LT_DLLAZY_OR_NOW
10595 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10598 # define LT_DLLAZY_OR_NOW DL_LAZY
10601 # define LT_DLLAZY_OR_NOW RTLD_NOW
10604 # define LT_DLLAZY_OR_NOW DL_NOW
10606 # define LT_DLLAZY_OR_NOW 0
10614 extern "C" void exit (int);
10617 void fnord() { int i=42;}
10620 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10621 int status = $lt_dlunknown;
10625 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10626 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10627 /* dlclose (self); */
10635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10636 (eval $ac_link) 2>&5
10638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10640 (./conftest; exit; ) >&5 2>/dev/null
10642 case x$lt_status in
10643 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10644 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10645 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10648 # compilation failed
10649 lt_cv_dlopen_self_static=no
10656 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10657 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10660 CPPFLAGS="$save_CPPFLAGS"
10661 LDFLAGS="$save_LDFLAGS"
10666 case $lt_cv_dlopen_self in
10667 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10668 *) enable_dlopen_self=unknown ;;
10671 case $lt_cv_dlopen_self_static in
10672 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10673 *) enable_dlopen_self_static=unknown ;;
10678 # Report which library types will actually be built
10679 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10680 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10681 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10682 echo "${ECHO_T}$can_build_shared" >&6; }
10684 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10685 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10686 test "$can_build_shared" = "no" && enable_shared=no
10688 # On AIX, shared libraries and static libraries use the same namespace, and
10689 # are all built from PIC.
10692 test "$enable_shared" = yes && enable_static=no
10693 if test -n "$RANLIB"; then
10694 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10695 postinstall_cmds='$RANLIB $lib'
10700 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10701 test "$enable_shared" = yes && enable_static=no
10705 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10706 echo "${ECHO_T}$enable_shared" >&6; }
10708 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10709 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10710 # Make sure either enable_shared or enable_static is yes.
10711 test "$enable_shared" = yes || enable_static=yes
10712 { echo "$as_me:$LINENO: result: $enable_static" >&5
10713 echo "${ECHO_T}$enable_static" >&6; }
10715 # The else clause should only fire when bootstrapping the
10716 # libtool distribution, otherwise you forgot to ship ltmain.sh
10717 # with your package, and you will get complaints that there are
10718 # no rules to generate ltmain.sh.
10719 if test -f "$ltmain"; then
10720 # See if we are running on zsh, and set the options which allow our commands through
10721 # without removal of \ escapes.
10722 if test -n "${ZSH_VERSION+set}" ; then
10723 setopt NO_GLOB_SUBST
10725 # Now quote all the things that may contain metacharacters while being
10726 # careful not to overquote the AC_SUBSTed values. We take copies of the
10727 # variables and quote the copies for generation of the libtool script.
10728 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10730 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10731 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10732 deplibs_check_method reload_flag reload_cmds need_locks \
10733 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10734 lt_cv_sys_global_symbol_to_c_name_address \
10735 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10736 old_postinstall_cmds old_postuninstall_cmds \
10740 lt_prog_compiler_wl \
10741 lt_prog_compiler_pic \
10742 lt_prog_compiler_static \
10743 lt_prog_compiler_no_builtin_flag \
10744 export_dynamic_flag_spec \
10745 thread_safe_flag_spec \
10746 whole_archive_flag_spec \
10747 enable_shared_with_static_runtimes \
10749 old_archive_from_new_cmds \
10754 compiler_lib_search_path \
10755 compiler_lib_search_dirs \
10757 archive_expsym_cmds \
10759 postuninstall_cmds \
10760 old_archive_from_expsyms_cmds \
10761 allow_undefined_flag \
10762 no_undefined_flag \
10763 export_symbols_cmds \
10764 hardcode_libdir_flag_spec \
10765 hardcode_libdir_flag_spec_ld \
10766 hardcode_libdir_separator \
10767 hardcode_automatic \
10769 module_expsym_cmds \
10770 lt_cv_prog_compiler_c_o \
10773 include_expsyms; do
10776 old_archive_cmds | \
10777 old_archive_from_new_cmds | \
10779 archive_expsym_cmds | \
10781 module_expsym_cmds | \
10782 old_archive_from_expsyms_cmds | \
10783 export_symbols_cmds | \
10784 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10785 postinstall_cmds | postuninstall_cmds | \
10786 old_postinstall_cmds | old_postuninstall_cmds | \
10787 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10788 # Double-quote double-evaled strings.
10789 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10792 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10798 *'\$0 --fallback-echo"')
10799 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10803 cfgfile="${ofile}T"
10804 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10806 { echo "$as_me:$LINENO: creating $ofile" >&5
10807 echo "$as_me: creating $ofile" >&6;}
10809 cat <<__EOF__ >> "$cfgfile"
10812 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10813 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10814 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10816 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10817 # Free Software Foundation, Inc.
10819 # This file is part of GNU Libtool:
10820 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10822 # This program is free software; you can redistribute it and/or modify
10823 # it under the terms of the GNU General Public License as published by
10824 # the Free Software Foundation; either version 2 of the License, or
10825 # (at your option) any later version.
10827 # This program is distributed in the hope that it will be useful, but
10828 # WITHOUT ANY WARRANTY; without even the implied warranty of
10829 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10830 # General Public License for more details.
10832 # You should have received a copy of the GNU General Public License
10833 # along with this program; if not, write to the Free Software
10834 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10836 # As a special exception to the GNU General Public License, if you
10837 # distribute this file as part of a program that contains a
10838 # configuration script generated by Autoconf, you may include it under
10839 # the same distribution terms that you use for the rest of that program.
10841 # A sed program that does not truncate output.
10844 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10845 Xsed="$SED -e 1s/^X//"
10847 # The HP-UX ksh and POSIX shell print the target directory to stdout
10848 # if CDPATH is set.
10849 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10851 # The names of the tagged configurations supported by this script.
10854 # ### BEGIN LIBTOOL CONFIG
10856 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10858 # Shell to use when invoking shell scripts.
10861 # Whether or not to build shared libraries.
10862 build_libtool_libs=$enable_shared
10864 # Whether or not to build static libraries.
10865 build_old_libs=$enable_static
10867 # Whether or not to add -lc for building shared libraries.
10868 build_libtool_need_lc=$archive_cmds_need_lc
10870 # Whether or not to disallow shared libs when runtime libs are static
10871 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10873 # Whether or not to optimize for fast installation.
10874 fast_install=$enable_fast_install
10877 host_alias=$host_alias
10881 # The build system.
10882 build_alias=$build_alias
10886 # An echo program that does not interpret backslashes.
10891 AR_FLAGS=$lt_AR_FLAGS
10896 # LTCC compiler flags.
10897 LTCFLAGS=$lt_LTCFLAGS
10899 # A language-specific compiler.
10902 # Is the compiler the GNU C compiler?
10908 # The linker used to build libraries.
10911 # Whether we need hard or soft links.
10914 # A BSD-compatible nm program.
10917 # A symbol stripping program
10920 # Used to examine libraries when file_magic_cmd begins "file"
10921 MAGIC_CMD=$MAGIC_CMD
10923 # Used on cygwin: DLL creation program.
10926 # Used on cygwin: object dumper.
10929 # Used on cygwin: assembler.
10932 # The name of the directory that contains temporary libtool files.
10935 # How to create reloadable object files.
10936 reload_flag=$lt_reload_flag
10937 reload_cmds=$lt_reload_cmds
10939 # How to pass a linker flag through the compiler.
10940 wl=$lt_lt_prog_compiler_wl
10942 # Object file suffix (normally "o").
10943 objext="$ac_objext"
10945 # Old archive suffix (normally "a").
10948 # Shared library suffix (normally ".so").
10949 shrext_cmds='$shrext_cmds'
10951 # Executable file suffix (normally "").
10954 # Additional compiler flags for building library objects.
10955 pic_flag=$lt_lt_prog_compiler_pic
10958 # What is the maximum length of a command?
10959 max_cmd_len=$lt_cv_sys_max_cmd_len
10961 # Does compiler simultaneously support -c and -o options?
10962 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10964 # Must we lock files when doing compilation?
10965 need_locks=$lt_need_locks
10967 # Do we need the lib prefix for modules?
10968 need_lib_prefix=$need_lib_prefix
10970 # Do we need a version for libraries?
10971 need_version=$need_version
10973 # Whether dlopen is supported.
10974 dlopen_support=$enable_dlopen
10976 # Whether dlopen of programs is supported.
10977 dlopen_self=$enable_dlopen_self
10979 # Whether dlopen of statically linked programs is supported.
10980 dlopen_self_static=$enable_dlopen_self_static
10982 # Compiler flag to prevent dynamic linking.
10983 link_static_flag=$lt_lt_prog_compiler_static
10985 # Compiler flag to turn off builtin functions.
10986 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10988 # Compiler flag to allow reflexive dlopens.
10989 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10991 # Compiler flag to generate shared objects directly from archives.
10992 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10994 # Compiler flag to generate thread-safe objects.
10995 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10997 # Library versioning type.
10998 version_type=$version_type
11000 # Format of library name prefix.
11001 libname_spec=$lt_libname_spec
11003 # List of archive names. First name is the real one, the rest are links.
11004 # The last name is the one that the linker finds with -lNAME.
11005 library_names_spec=$lt_library_names_spec
11007 # The coded name of the library, if different from the real name.
11008 soname_spec=$lt_soname_spec
11010 # Commands used to build and install an old-style archive.
11012 old_archive_cmds=$lt_old_archive_cmds
11013 old_postinstall_cmds=$lt_old_postinstall_cmds
11014 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11016 # Create an old-style archive from a shared archive.
11017 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11019 # Create a temporary old-style archive to link instead of a shared archive.
11020 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11022 # Commands used to build and install a shared archive.
11023 archive_cmds=$lt_archive_cmds
11024 archive_expsym_cmds=$lt_archive_expsym_cmds
11025 postinstall_cmds=$lt_postinstall_cmds
11026 postuninstall_cmds=$lt_postuninstall_cmds
11028 # Commands used to build a loadable module (assumed same as above if empty)
11029 module_cmds=$lt_module_cmds
11030 module_expsym_cmds=$lt_module_expsym_cmds
11032 # Commands to strip libraries.
11033 old_striplib=$lt_old_striplib
11034 striplib=$lt_striplib
11036 # Dependencies to place before the objects being linked to create a
11038 predep_objects=$lt_predep_objects
11040 # Dependencies to place after the objects being linked to create a
11042 postdep_objects=$lt_postdep_objects
11044 # Dependencies to place before the objects being linked to create a
11046 predeps=$lt_predeps
11048 # Dependencies to place after the objects being linked to create a
11050 postdeps=$lt_postdeps
11052 # The directories searched by this compiler when creating a shared
11054 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11056 # The library search path used internally by the compiler when linking
11057 # a shared library.
11058 compiler_lib_search_path=$lt_compiler_lib_search_path
11060 # Method to check whether dependent libraries are shared objects.
11061 deplibs_check_method=$lt_deplibs_check_method
11063 # Command to use when deplibs_check_method == file_magic.
11064 file_magic_cmd=$lt_file_magic_cmd
11066 # Flag that allows shared libraries with undefined symbols to be built.
11067 allow_undefined_flag=$lt_allow_undefined_flag
11069 # Flag that forces no undefined symbols.
11070 no_undefined_flag=$lt_no_undefined_flag
11072 # Commands used to finish a libtool library installation in a directory.
11073 finish_cmds=$lt_finish_cmds
11075 # Same as above, but a single script fragment to be evaled but not shown.
11076 finish_eval=$lt_finish_eval
11078 # Take the output of nm and produce a listing of raw symbols and C names.
11079 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11081 # Transform the output of nm in a proper C declaration
11082 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11084 # Transform the output of nm in a C name address pair
11085 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11087 # This is the shared library runtime path variable.
11088 runpath_var=$runpath_var
11090 # This is the shared library path variable.
11091 shlibpath_var=$shlibpath_var
11093 # Is shlibpath searched before the hard-coded library search path?
11094 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11096 # How to hardcode a shared library path into an executable.
11097 hardcode_action=$hardcode_action
11099 # Whether we should hardcode library paths into libraries.
11100 hardcode_into_libs=$hardcode_into_libs
11102 # Flag to hardcode \$libdir into a binary during linking.
11103 # This must work even if \$libdir does not exist.
11104 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11106 # If ld is used when linking, flag to hardcode \$libdir into
11107 # a binary during linking. This must work even if \$libdir does
11109 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11111 # Whether we need a single -rpath flag with a separated argument.
11112 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11114 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11115 # resulting binary.
11116 hardcode_direct=$hardcode_direct
11118 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11119 # resulting binary.
11120 hardcode_minus_L=$hardcode_minus_L
11122 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11123 # the resulting binary.
11124 hardcode_shlibpath_var=$hardcode_shlibpath_var
11126 # Set to yes if building a shared library automatically hardcodes DIR into the library
11127 # and all subsequent libraries and executables linked against it.
11128 hardcode_automatic=$hardcode_automatic
11130 # Variables whose values should be saved in libtool wrapper scripts and
11131 # restored at relink time.
11132 variables_saved_for_relink="$variables_saved_for_relink"
11134 # Whether libtool must link a program against all its dependency libraries.
11135 link_all_deplibs=$link_all_deplibs
11137 # Compile-time system search path for libraries
11138 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11140 # Run-time system search path for libraries
11141 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11143 # Fix the shell variable \$srcfile for the compiler.
11144 fix_srcfile_path=$lt_fix_srcfile_path
11146 # Set to yes if exported symbols are required.
11147 always_export_symbols=$always_export_symbols
11149 # The commands to list exported symbols.
11150 export_symbols_cmds=$lt_export_symbols_cmds
11152 # The commands to extract the exported symbol list from a shared archive.
11153 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11155 # Symbols that should not be listed in the preloaded symbols.
11156 exclude_expsyms=$lt_exclude_expsyms
11158 # Symbols that must always be exported.
11159 include_expsyms=$lt_include_expsyms
11161 # ### END LIBTOOL CONFIG
11168 cat <<\EOF >> "$cfgfile"
11170 # AIX sometimes has problems with the GCC collect2 program. For some
11171 # reason, if we set the COLLECT_NAMES environment variable, the problems
11172 # vanish in a puff of smoke.
11173 if test "X${COLLECT_NAMES+set}" != Xset; then
11175 export COLLECT_NAMES
11181 # We use sed instead of cat because bash on DJGPP gets confused if
11182 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11183 # text mode, it properly converts lines to CR/LF. This bash problem
11184 # is reportedly fixed, but why not run on old versions too?
11185 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11187 mv -f "$cfgfile" "$ofile" || \
11188 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11192 # If there is no Makefile yet, we rely on a make rule to execute
11193 # `config.status --recheck' to rerun these tests and create the
11194 # libtool script then.
11195 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11196 if test -f "$ltmain_in"; then
11197 test -f Makefile && make "$ltmain"
11203 ac_cpp='$CPP $CPPFLAGS'
11204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11211 # Check whether --with-tags was given.
11212 if test "${with_tags+set}" = set; then
11213 withval=$with_tags; tagnames="$withval"
11217 if test -f "$ltmain" && test -n "$tagnames"; then
11218 if test ! -f "${ofile}"; then
11219 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11220 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11223 if test -z "$LTCC"; then
11224 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11225 if test -z "$LTCC"; then
11226 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11227 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11229 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11230 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11233 if test -z "$LTCFLAGS"; then
11234 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11237 # Extract list of available tagged configurations in $ofile.
11238 # Note that this assumes the entire list is on one line.
11239 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11241 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11242 for tagname in $tagnames; do
11244 # Check whether tagname contains only valid characters
11245 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11247 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11248 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11249 { (exit 1); exit 1; }; }
11253 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11255 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11256 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11257 { (exit 1); exit 1; }; }
11260 # Update the list of available tags.
11261 if test -n "$tagname"; then
11262 echo appending configuration tag \"$tagname\" to $ofile
11266 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11267 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11268 (test "X$CXX" != "Xg++"))) ; then
11270 ac_cpp='$CXXCPP $CPPFLAGS'
11271 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11272 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11273 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11278 archive_cmds_need_lc_CXX=no
11279 allow_undefined_flag_CXX=
11280 always_export_symbols_CXX=no
11281 archive_expsym_cmds_CXX=
11282 export_dynamic_flag_spec_CXX=
11283 hardcode_direct_CXX=no
11284 hardcode_libdir_flag_spec_CXX=
11285 hardcode_libdir_flag_spec_ld_CXX=
11286 hardcode_libdir_separator_CXX=
11287 hardcode_minus_L_CXX=no
11288 hardcode_shlibpath_var_CXX=unsupported
11289 hardcode_automatic_CXX=no
11291 module_expsym_cmds_CXX=
11292 link_all_deplibs_CXX=unknown
11293 old_archive_cmds_CXX=$old_archive_cmds
11294 no_undefined_flag_CXX=
11295 whole_archive_flag_spec_CXX=
11296 enable_shared_with_static_runtimes_CXX=no
11298 # Dependencies to place before and after the object being linked:
11299 predep_objects_CXX=
11300 postdep_objects_CXX=
11303 compiler_lib_search_path_CXX=
11304 compiler_lib_search_dirs_CXX=
11306 # Source file extension for C++ test sources.
11309 # Object file extension for compiled C++ test sources.
11313 # Code to be used in simple compile tests
11314 lt_simple_compile_test_code="int some_variable = 0;"
11316 # Code to be used in simple link tests
11317 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11319 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11321 # If no C compiler was specified, use CC.
11324 # If no C compiler flags were specified, use CFLAGS.
11325 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11327 # Allow CC to be a program name with arguments.
11331 # save warnings/boilerplate of simple test code
11332 ac_outfile=conftest.$ac_objext
11333 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11334 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11335 _lt_compiler_boilerplate=`cat conftest.err`
11338 ac_outfile=conftest.$ac_objext
11339 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11340 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11341 _lt_linker_boilerplate=`cat conftest.err`
11345 # Allow CC to be a program name with arguments.
11350 lt_save_with_gnu_ld=$with_gnu_ld
11351 lt_save_path_LD=$lt_cv_path_LD
11352 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11353 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11355 $as_unset lt_cv_prog_gnu_ld
11357 if test -n "${lt_cv_path_LDCXX+set}"; then
11358 lt_cv_path_LD=$lt_cv_path_LDCXX
11360 $as_unset lt_cv_path_LD
11362 test -z "${LDCXX+set}" || LD=$LDCXX
11366 for cc_temp in $compiler""; do
11368 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11369 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11374 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11377 # We don't want -fno-exception wen compiling C++ code, so set the
11378 # no_builtin_flag separately
11379 if test "$GXX" = yes; then
11380 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11382 lt_prog_compiler_no_builtin_flag_CXX=
11385 if test "$GXX" = yes; then
11386 # Set up default GNU C++ configuration
11389 # Check whether --with-gnu-ld was given.
11390 if test "${with_gnu_ld+set}" = set; then
11391 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11397 if test "$GCC" = yes; then
11398 # Check if gcc -print-prog-name=ld gives a path.
11399 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11400 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11403 # gcc leaves a trailing carriage return which upsets mingw
11404 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11406 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11409 # Accept absolute paths.
11411 re_direlt='/[^/][^/]*/\.\./'
11412 # Canonicalize the pathname of ld
11413 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11414 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11415 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11417 test -z "$LD" && LD="$ac_prog"
11420 # If it fails, then pretend we aren't using GCC.
11424 # If it is relative, then search for the first ld in PATH.
11425 with_gnu_ld=unknown
11428 elif test "$with_gnu_ld" = yes; then
11429 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11430 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11432 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11433 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11435 if test "${lt_cv_path_LD+set}" = set; then
11436 echo $ECHO_N "(cached) $ECHO_C" >&6
11438 if test -z "$LD"; then
11439 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11440 for ac_dir in $PATH; do
11442 test -z "$ac_dir" && ac_dir=.
11443 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11444 lt_cv_path_LD="$ac_dir/$ac_prog"
11445 # Check to see if the program is GNU ld. I'd rather use --version,
11446 # but apparently some variants of GNU ld only accept -v.
11447 # Break only if it was the GNU/non-GNU ld that we prefer.
11448 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11449 *GNU* | *'with BFD'*)
11450 test "$with_gnu_ld" != no && break
11453 test "$with_gnu_ld" != yes && break
11460 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11464 LD="$lt_cv_path_LD"
11465 if test -n "$LD"; then
11466 { echo "$as_me:$LINENO: result: $LD" >&5
11467 echo "${ECHO_T}$LD" >&6; }
11469 { echo "$as_me:$LINENO: result: no" >&5
11470 echo "${ECHO_T}no" >&6; }
11472 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11473 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11474 { (exit 1); exit 1; }; }
11475 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11476 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11477 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11478 echo $ECHO_N "(cached) $ECHO_C" >&6
11480 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11481 case `$LD -v 2>&1 </dev/null` in
11482 *GNU* | *'with BFD'*)
11483 lt_cv_prog_gnu_ld=yes
11486 lt_cv_prog_gnu_ld=no
11490 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11491 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11492 with_gnu_ld=$lt_cv_prog_gnu_ld
11496 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11497 # archiving commands below assume that GNU ld is being used.
11498 if test "$with_gnu_ld" = yes; then
11499 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11500 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'
11502 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11503 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11505 # If archive_cmds runs LD, not CC, wlarc should be empty
11506 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11507 # investigate it a little bit more. (MM)
11510 # ancient GNU ld didn't support --whole-archive et. al.
11511 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11512 grep 'no-whole-archive' > /dev/null; then
11513 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11515 whole_archive_flag_spec_CXX=
11521 # A generic and very simple default shared library creation
11522 # command for GNU C++ for the case where it uses the native
11523 # linker, instead of GNU ld. If possible, this setting should
11524 # overridden to take advantage of the native linker features on
11525 # the platform it is being used on.
11526 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11529 # Commands to make compiler produce verbose output that lists
11530 # what "hidden" libraries, object files and flags are used when
11531 # linking a shared library.
11532 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11540 # PORTME: fill in a description of your system's C++ link characteristics
11541 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11542 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11546 # FIXME: insert proper C++ library support
11550 if test "$host_cpu" = ia64; then
11551 # On IA64, the linker does run time linking by default, so we don't
11552 # have to do anything special.
11553 aix_use_runtimelinking=no
11554 exp_sym_flag='-Bexport'
11557 aix_use_runtimelinking=no
11559 # Test if we are trying to use run time linking or normal
11560 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11561 # need to do runtime linking.
11562 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11563 for ld_flag in $LDFLAGS; do
11566 aix_use_runtimelinking=yes
11574 exp_sym_flag='-bexport'
11575 no_entry_flag='-bnoentry'
11578 # When large executables or shared objects are built, AIX ld can
11579 # have problems creating the table of contents. If linking a library
11580 # or program results in "error TOC overflow" add -mminimal-toc to
11581 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11582 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11584 archive_cmds_CXX=''
11585 hardcode_direct_CXX=yes
11586 hardcode_libdir_separator_CXX=':'
11587 link_all_deplibs_CXX=yes
11589 if test "$GXX" = yes; then
11590 case $host_os in aix4.[012]|aix4.[012].*)
11591 # We only want to do this on AIX 4.2 and lower, the check
11592 # below for broken collect2 doesn't work under 4.3+
11593 collect2name=`${CC} -print-prog-name=collect2`
11594 if test -f "$collect2name" && \
11595 strings "$collect2name" | grep resolve_lib_name >/dev/null
11597 # We have reworked collect2
11600 # We have old collect2
11601 hardcode_direct_CXX=unsupported
11602 # It fails to find uninstalled libraries when the uninstalled
11603 # path is not listed in the libpath. Setting hardcode_minus_L
11604 # to unsupported forces relinking
11605 hardcode_minus_L_CXX=yes
11606 hardcode_libdir_flag_spec_CXX='-L$libdir'
11607 hardcode_libdir_separator_CXX=
11611 shared_flag='-shared'
11612 if test "$aix_use_runtimelinking" = yes; then
11613 shared_flag="$shared_flag "'${wl}-G'
11617 if test "$host_cpu" = ia64; then
11618 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11619 # chokes on -Wl,-G. The following line is correct:
11622 if test "$aix_use_runtimelinking" = yes; then
11623 shared_flag='${wl}-G'
11625 shared_flag='${wl}-bM:SRE'
11630 # It seems that -bexpall does not export symbols beginning with
11631 # underscore (_), so it is better to generate a list of symbols to export.
11632 always_export_symbols_CXX=yes
11633 if test "$aix_use_runtimelinking" = yes; then
11634 # Warning - without using the other runtime loading flags (-brtl),
11635 # -berok will link without error, but may produce a broken library.
11636 allow_undefined_flag_CXX='-berok'
11637 # Determine the default libpath from the value encoded in an empty executable.
11638 cat >conftest.$ac_ext <<_ACEOF
11641 cat confdefs.h >>conftest.$ac_ext
11642 cat >>conftest.$ac_ext <<_ACEOF
11643 /* end confdefs.h. */
11653 rm -f conftest.$ac_objext conftest$ac_exeext
11654 if { (ac_try="$ac_link"
11655 case "(($ac_try" in
11656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11657 *) ac_try_echo=$ac_try;;
11659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11660 (eval "$ac_link") 2>conftest.er1
11662 grep -v '^ *+' conftest.er1 >conftest.err
11664 cat conftest.err >&5
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); } && {
11667 test -z "$ac_cxx_werror_flag" ||
11668 test ! -s conftest.err
11669 } && test -s conftest$ac_exeext &&
11670 $as_test_x conftest$ac_exeext; then
11672 lt_aix_libpath_sed='
11673 /Import File Strings/,/^$/ {
11679 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11680 # Check for a 64-bit object if we didn't find anything.
11681 if test -z "$aix_libpath"; then
11682 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11685 echo "$as_me: failed program was:" >&5
11686 sed 's/^/| /' conftest.$ac_ext >&5
11691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11692 conftest$ac_exeext conftest.$ac_ext
11693 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11695 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11697 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"
11699 if test "$host_cpu" = ia64; then
11700 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11701 allow_undefined_flag_CXX="-z nodefs"
11702 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"
11704 # Determine the default libpath from the value encoded in an empty executable.
11705 cat >conftest.$ac_ext <<_ACEOF
11708 cat confdefs.h >>conftest.$ac_ext
11709 cat >>conftest.$ac_ext <<_ACEOF
11710 /* end confdefs.h. */
11720 rm -f conftest.$ac_objext conftest$ac_exeext
11721 if { (ac_try="$ac_link"
11722 case "(($ac_try" in
11723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11724 *) ac_try_echo=$ac_try;;
11726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11727 (eval "$ac_link") 2>conftest.er1
11729 grep -v '^ *+' conftest.er1 >conftest.err
11731 cat conftest.err >&5
11732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733 (exit $ac_status); } && {
11734 test -z "$ac_cxx_werror_flag" ||
11735 test ! -s conftest.err
11736 } && test -s conftest$ac_exeext &&
11737 $as_test_x conftest$ac_exeext; then
11739 lt_aix_libpath_sed='
11740 /Import File Strings/,/^$/ {
11746 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11747 # Check for a 64-bit object if we didn't find anything.
11748 if test -z "$aix_libpath"; then
11749 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11752 echo "$as_me: failed program was:" >&5
11753 sed 's/^/| /' conftest.$ac_ext >&5
11758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11759 conftest$ac_exeext conftest.$ac_ext
11760 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11762 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11763 # Warning - without using the other run time loading flags,
11764 # -berok will link without error, but may produce a broken library.
11765 no_undefined_flag_CXX=' ${wl}-bernotok'
11766 allow_undefined_flag_CXX=' ${wl}-berok'
11767 # Exported symbols can be pulled into shared objects from archives
11768 whole_archive_flag_spec_CXX='$convenience'
11769 archive_cmds_need_lc_CXX=yes
11770 # This is similar to how AIX traditionally builds its shared libraries.
11771 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'
11777 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11778 allow_undefined_flag_CXX=unsupported
11779 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11780 # support --undefined. This deserves some investigation. FIXME
11781 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11788 case $cc_basename in
11790 # FIXME: insert proper C++ library support
11796 cygwin* | mingw* | pw32*)
11797 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11798 # as there is no search path for DLLs.
11799 hardcode_libdir_flag_spec_CXX='-L$libdir'
11800 allow_undefined_flag_CXX=unsupported
11801 always_export_symbols_CXX=no
11802 enable_shared_with_static_runtimes_CXX=yes
11804 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11805 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'
11806 # If the export-symbols file already is a .def file (1st line
11807 # is EXPORTS), use it as is; otherwise, prepend...
11808 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11809 cp $export_symbols $output_objdir/$soname.def;
11811 echo EXPORTS > $output_objdir/$soname.def;
11812 cat $export_symbols >> $output_objdir/$soname.def;
11814 $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'
11819 darwin* | rhapsody*)
11820 archive_cmds_need_lc_CXX=no
11821 hardcode_direct_CXX=no
11822 hardcode_automatic_CXX=yes
11823 hardcode_shlibpath_var_CXX=unsupported
11824 whole_archive_flag_spec_CXX=''
11825 link_all_deplibs_CXX=yes
11826 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11827 if test "$GXX" = yes ; then
11828 output_verbose_link_cmd='echo'
11829 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11830 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11831 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11832 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11833 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11834 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
11835 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
11838 case $cc_basename in
11840 output_verbose_link_cmd='echo'
11841 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11842 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11843 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11844 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11845 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}'
11855 case $cc_basename in
11857 # FIXME: insert proper C++ library support
11861 # Green Hills C++ Compiler
11862 # FIXME: insert proper C++ library support
11866 # FIXME: insert proper C++ library support
11872 # C++ shared libraries reported to be fairly broken before switch to ELF
11876 archive_cmds_need_lc_CXX=no
11878 freebsd* | dragonfly*)
11879 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11886 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11887 hardcode_libdir_separator_CXX=:
11888 export_dynamic_flag_spec_CXX='${wl}-E'
11889 hardcode_direct_CXX=yes
11890 hardcode_minus_L_CXX=yes # Not in the search PATH,
11891 # but as the default
11892 # location of the library.
11894 case $cc_basename in
11896 # FIXME: insert proper C++ library support
11900 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'
11901 # Commands to make compiler produce verbose output that lists
11902 # what "hidden" libraries, object files and flags are used when
11903 # linking a shared library.
11905 # There doesn't appear to be a way to prevent this compiler from
11906 # explicitly linking system object files so we need to strip them
11907 # from the output so that they don't get included in the library
11909 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'
11912 if test "$GXX" = yes; then
11913 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'
11915 # FIXME: insert proper C++ library support
11922 if test $with_gnu_ld = no; then
11923 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11924 hardcode_libdir_separator_CXX=:
11929 export_dynamic_flag_spec_CXX='${wl}-E'
11935 hardcode_direct_CXX=no
11936 hardcode_shlibpath_var_CXX=no
11939 hardcode_direct_CXX=yes
11940 hardcode_minus_L_CXX=yes # Not in the search PATH,
11941 # but as the default
11942 # location of the library.
11946 case $cc_basename in
11948 # FIXME: insert proper C++ library support
11954 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11957 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11960 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11963 # Commands to make compiler produce verbose output that lists
11964 # what "hidden" libraries, object files and flags are used when
11965 # linking a shared library.
11967 # There doesn't appear to be a way to prevent this compiler from
11968 # explicitly linking system object files so we need to strip them
11969 # from the output so that they don't get included in the library
11971 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'
11974 if test "$GXX" = yes; then
11975 if test $with_gnu_ld = no; then
11978 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11981 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11984 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'
11989 # FIXME: insert proper C++ library support
11996 hardcode_direct_CXX=no
11997 hardcode_shlibpath_var_CXX=no
11998 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11999 export_dynamic_flag_spec_CXX='${wl}-E'
12000 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12001 # Instead, shared libraries are loaded at an image base (0x10000000 by
12002 # default) and relocated if they conflict, which is a slow very memory
12003 # consuming and fragmenting process. To avoid this, we pick a random,
12004 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12005 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12006 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'
12007 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'
12010 case $cc_basename in
12013 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'
12015 # Archives containing C++ object files must be created using
12016 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12017 # necessary to make sure instantiated templates are included
12019 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12022 if test "$GXX" = yes; then
12023 if test "$with_gnu_ld" = no; then
12024 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'
12026 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'
12029 link_all_deplibs_CXX=yes
12032 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12033 hardcode_libdir_separator_CXX=:
12035 linux* | k*bsd*-gnu)
12036 case $cc_basename in
12038 # Kuck and Associates, Inc. (KAI) C++ Compiler
12040 # KCC will only create a shared library if the output file
12041 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12042 # to its proper name (with version) after linking.
12043 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'
12044 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'
12045 # Commands to make compiler produce verbose output that lists
12046 # what "hidden" libraries, object files and flags are used when
12047 # linking a shared library.
12049 # There doesn't appear to be a way to prevent this compiler from
12050 # explicitly linking system object files so we need to strip them
12051 # from the output so that they don't get included in the library
12053 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'
12055 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12056 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12058 # Archives containing C++ object files must be created using
12059 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12060 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12065 # version 8.0 and above of icpc choke on multiply defined symbols
12066 # if we add $predep_objects and $postdep_objects, however 7.1 and
12067 # earlier do not add the objects themselves.
12068 case `$CC -V 2>&1` in
12070 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12071 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'
12073 *) # Version 8.0 or newer
12076 ia64*) tmp_idyn=' -i_dynamic';;
12078 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12079 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'
12082 archive_cmds_need_lc_CXX=no
12083 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12084 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12085 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12088 # Portland Group C++ compiler
12089 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12090 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'
12092 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12093 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12094 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'
12098 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12099 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'
12101 runpath_var=LD_RUN_PATH
12102 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12103 hardcode_libdir_separator_CXX=:
12105 # Commands to make compiler produce verbose output that lists
12106 # what "hidden" libraries, object files and flags are used when
12107 # linking a shared library.
12109 # There doesn't appear to be a way to prevent this compiler from
12110 # explicitly linking system object files so we need to strip them
12111 # from the output so that they don't get included in the library
12113 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'
12116 case `$CC -V 2>&1 | sed 5q` in
12119 no_undefined_flag_CXX=' -zdefs'
12120 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12121 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12122 hardcode_libdir_flag_spec_CXX='-R$libdir'
12123 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12125 # Not sure whether something based on
12126 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12128 output_verbose_link_cmd='echo'
12130 # Archives containing C++ object files must be created using
12131 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12132 # necessary to make sure instantiated templates are included
12134 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12141 # FIXME: insert proper C++ library support
12145 # FIXME: insert proper C++ library support
12149 case $cc_basename in
12151 # FIXME: insert proper C++ library support
12155 # FIXME: insert proper C++ library support
12160 netbsd* | netbsdelf*-gnu)
12161 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12162 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12164 hardcode_libdir_flag_spec_CXX='-R$libdir'
12165 hardcode_direct_CXX=yes
12166 hardcode_shlibpath_var_CXX=no
12168 # Workaround some broken pre-1.5 toolchains
12169 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12172 # C++ shared libraries are fairly broken
12176 if test -f /usr/libexec/ld.so; then
12177 hardcode_direct_CXX=yes
12178 hardcode_shlibpath_var_CXX=no
12179 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12180 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12181 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12182 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12183 export_dynamic_flag_spec_CXX='${wl}-E'
12184 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12186 output_verbose_link_cmd='echo'
12192 case $cc_basename in
12194 # Kuck and Associates, Inc. (KAI) C++ Compiler
12196 # KCC will only create a shared library if the output file
12197 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12198 # to its proper name (with version) after linking.
12199 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'
12201 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12202 hardcode_libdir_separator_CXX=:
12204 # Archives containing C++ object files must be created using
12205 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12206 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12210 # Rational C++ 2.4.1
12211 # FIXME: insert proper C++ library support
12215 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12216 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'
12218 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12219 hardcode_libdir_separator_CXX=:
12221 # Commands to make compiler produce verbose output that lists
12222 # what "hidden" libraries, object files and flags are used when
12223 # linking a shared library.
12225 # There doesn't appear to be a way to prevent this compiler from
12226 # explicitly linking system object files so we need to strip them
12227 # from the output so that they don't get included in the library
12229 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'
12232 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12233 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12234 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'
12236 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12237 hardcode_libdir_separator_CXX=:
12239 # Commands to make compiler produce verbose output that lists
12240 # what "hidden" libraries, object files and flags are used when
12241 # linking a shared library.
12242 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12245 # FIXME: insert proper C++ library support
12252 case $cc_basename in
12254 # Kuck and Associates, Inc. (KAI) C++ Compiler
12256 # KCC will only create a shared library if the output file
12257 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12258 # to its proper name (with version) after linking.
12259 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'
12261 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12262 hardcode_libdir_separator_CXX=:
12264 # Archives containing C++ object files must be created using
12265 # the KAI C++ compiler.
12266 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12269 # Rational C++ 2.4.1
12270 # FIXME: insert proper C++ library support
12274 allow_undefined_flag_CXX=' -expect_unresolved \*'
12275 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'
12276 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12277 echo "-hidden">> $lib.exp~
12278 $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~
12281 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12282 hardcode_libdir_separator_CXX=:
12284 # Commands to make compiler produce verbose output that lists
12285 # what "hidden" libraries, object files and flags are used when
12286 # linking a shared library.
12288 # There doesn't appear to be a way to prevent this compiler from
12289 # explicitly linking system object files so we need to strip them
12290 # from the output so that they don't get included in the library
12292 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'
12295 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12296 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12297 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'
12299 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12300 hardcode_libdir_separator_CXX=:
12302 # Commands to make compiler produce verbose output that lists
12303 # what "hidden" libraries, object files and flags are used when
12304 # linking a shared library.
12305 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12308 # FIXME: insert proper C++ library support
12315 # FIXME: insert proper C++ library support
12319 case $cc_basename in
12322 # FIXME: insert proper C++ library support
12327 # FIXME: insert proper C++ library support
12331 # FIXME: insert proper C++ library support
12337 case $cc_basename in
12339 # Sun C++ 4.2, 5.x and Centerline C++
12340 archive_cmds_need_lc_CXX=yes
12341 no_undefined_flag_CXX=' -zdefs'
12342 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12343 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12344 $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'
12346 hardcode_libdir_flag_spec_CXX='-R$libdir'
12347 hardcode_shlibpath_var_CXX=no
12349 solaris2.[0-5] | solaris2.[0-5].*) ;;
12351 # The compiler driver will combine and reorder linker options,
12352 # but understands `-z linker_flag'.
12353 # Supported since Solaris 2.6 (maybe 2.5.1?)
12354 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12357 link_all_deplibs_CXX=yes
12359 output_verbose_link_cmd='echo'
12361 # Archives containing C++ object files must be created using
12362 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12363 # necessary to make sure instantiated templates are included
12365 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12368 # Green Hills C++ Compiler
12369 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12371 # The C++ compiler must be used to create the archive.
12372 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12375 # GNU C++ compiler with Solaris linker
12376 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12377 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12378 if $CC --version | grep -v '^2\.7' > /dev/null; then
12379 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12380 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12381 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12383 # Commands to make compiler produce verbose output that lists
12384 # what "hidden" libraries, object files and flags are used when
12385 # linking a shared library.
12386 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12388 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12390 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12391 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12392 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12394 # Commands to make compiler produce verbose output that lists
12395 # what "hidden" libraries, object files and flags are used when
12396 # linking a shared library.
12397 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12400 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12402 solaris2.[0-5] | solaris2.[0-5].*) ;;
12404 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12411 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12412 no_undefined_flag_CXX='${wl}-z,text'
12413 archive_cmds_need_lc_CXX=no
12414 hardcode_shlibpath_var_CXX=no
12415 runpath_var='LD_RUN_PATH'
12417 case $cc_basename in
12419 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12420 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12423 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12424 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12428 sysv5* | sco3.2v5* | sco5v6*)
12429 # Note: We can NOT use -z defs as we might desire, because we do not
12430 # link with -lc, and that would cause any symbols used from libc to
12431 # always be unresolved, which means just about no library would
12432 # ever link correctly. If we're not using GNU ld we use -z text
12433 # though, which does catch some bad symbols but isn't as heavy-handed
12435 # For security reasons, it is highly recommended that you always
12436 # use absolute paths for naming shared libraries, and exclude the
12437 # DT_RUNPATH tag from executables and libraries. But doing so
12438 # requires that you compile everything twice, which is a pain.
12439 # So that behaviour is only enabled if SCOABSPATH is set to a
12440 # non-empty value in the environment. Most likely only useful for
12441 # creating official distributions of packages.
12442 # This is a hack until libtool officially supports absolute path
12443 # names for shared libraries.
12444 no_undefined_flag_CXX='${wl}-z,text'
12445 allow_undefined_flag_CXX='${wl}-z,nodefs'
12446 archive_cmds_need_lc_CXX=no
12447 hardcode_shlibpath_var_CXX=no
12448 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12449 hardcode_libdir_separator_CXX=':'
12450 link_all_deplibs_CXX=yes
12451 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12452 runpath_var='LD_RUN_PATH'
12454 case $cc_basename in
12456 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12457 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12460 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12461 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12466 case $cc_basename in
12468 # NonStop-UX NCC 3.20
12469 # FIXME: insert proper C++ library support
12473 # FIXME: insert proper C++ library support
12479 # FIXME: insert proper C++ library support
12483 # FIXME: insert proper C++ library support
12487 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12488 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12489 test "$ld_shlibs_CXX" = no && can_build_shared=no
12494 cat > conftest.$ac_ext <<EOF
12498 Foo (void) { a = 0; }
12504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12505 (eval $ac_compile) 2>&5
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); }; then
12509 # Parse the compiler output and extract the necessary
12510 # objects, libraries and library flags.
12512 # Sentinel used to keep track of whether or not we are before
12513 # the conftest object file.
12514 pre_test_object_deps_done=no
12516 # The `*' in the case matches for architectures that use `case' in
12517 # $output_verbose_cmd can trigger glob expansion during the loop
12518 # eval without this substitution.
12519 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12521 for p in `eval $output_verbose_link_cmd`; do
12525 # Some compilers place space between "-{L,R}" and the path.
12526 # Remove the space.
12527 if test $p = "-L" \
12528 || test $p = "-R"; then
12535 if test "$pre_test_object_deps_done" = no; then
12538 # Internal compiler library paths should come after those
12539 # provided the user. The postdeps already come after the
12540 # user supplied libs so there is no need to process them.
12541 if test -z "$compiler_lib_search_path_CXX"; then
12542 compiler_lib_search_path_CXX="${prev}${p}"
12544 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12547 # The "-l" case would never come before the object being
12548 # linked, so don't bother handling this case.
12551 if test -z "$postdeps_CXX"; then
12552 postdeps_CXX="${prev}${p}"
12554 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12560 # This assumes that the test object file only shows up
12561 # once in the compiler output.
12562 if test "$p" = "conftest.$objext"; then
12563 pre_test_object_deps_done=yes
12567 if test "$pre_test_object_deps_done" = no; then
12568 if test -z "$predep_objects_CXX"; then
12569 predep_objects_CXX="$p"
12571 predep_objects_CXX="$predep_objects_CXX $p"
12574 if test -z "$postdep_objects_CXX"; then
12575 postdep_objects_CXX="$p"
12577 postdep_objects_CXX="$postdep_objects_CXX $p"
12582 *) ;; # Ignore the rest.
12590 echo "libtool.m4: error: problem compiling CXX test program"
12593 $rm -f confest.$objext
12595 compiler_lib_search_dirs_CXX=
12596 if test -n "$compiler_lib_search_path_CXX"; then
12597 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12600 # PORTME: override above test on systems where it is broken
12603 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12604 # hack all around it, let's just trust "g++" to DTRT.
12605 predep_objects_CXX=
12606 postdep_objects_CXX=
12611 case `$CC -V 2>&1 | sed 5q` in
12615 # The more standards-conforming stlport4 library is
12616 # incompatible with the Cstd library. Avoid specifying
12617 # it if it's in CXXFLAGS. Ignore libCrun as
12618 # -library=stlport4 depends on it.
12619 case " $CXX $CXXFLAGS " in
12620 *" -library=stlport4 "*)
12621 solaris_use_stlport4=yes
12624 if test "$solaris_use_stlport4" != yes; then
12625 postdeps_CXX='-library=Cstd -library=Crun'
12632 case $cc_basename in
12634 # The more standards-conforming stlport4 library is
12635 # incompatible with the Cstd library. Avoid specifying
12636 # it if it's in CXXFLAGS. Ignore libCrun as
12637 # -library=stlport4 depends on it.
12638 case " $CXX $CXXFLAGS " in
12639 *" -library=stlport4 "*)
12640 solaris_use_stlport4=yes
12644 # Adding this requires a known-good setup of shared libraries for
12645 # Sun compiler versions before 5.6, else PIC objects from an old
12646 # archive will be linked into the output, leading to subtle bugs.
12647 if test "$solaris_use_stlport4" != yes; then
12648 postdeps_CXX='-library=Cstd -library=Crun'
12655 case " $postdeps_CXX " in
12656 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12659 lt_prog_compiler_wl_CXX=
12660 lt_prog_compiler_pic_CXX=
12661 lt_prog_compiler_static_CXX=
12663 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12664 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12666 # C++ specific cases for pic, static, wl, etc.
12667 if test "$GXX" = yes; then
12668 lt_prog_compiler_wl_CXX='-Wl,'
12669 lt_prog_compiler_static_CXX='-static'
12673 # All AIX code is PIC.
12674 if test "$host_cpu" = ia64; then
12675 # AIX 5 now supports IA64 processor
12676 lt_prog_compiler_static_CXX='-Bstatic'
12680 # FIXME: we need at least 68020 code to build shared libraries, but
12681 # adding the `-m68020' flag to GCC prevents building anything better,
12683 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12685 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12686 # PIC is the default for these OSes.
12688 mingw* | cygwin* | os2* | pw32*)
12689 # This hack is so that the source file can tell whether it is being
12690 # built for inclusion in a dll (and should export symbols for example).
12691 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12692 # (--disable-auto-import) libraries
12693 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12695 darwin* | rhapsody*)
12696 # PIC is the default on this platform
12697 # Common symbols not allowed in MH_DYLIB files
12698 lt_prog_compiler_pic_CXX='-fno-common'
12701 # DJGPP does not support shared libraries at all
12702 lt_prog_compiler_pic_CXX=
12705 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12706 # Instead, we relocate shared libraries at runtime.
12709 if test -d /usr/nec; then
12710 lt_prog_compiler_pic_CXX=-Kconform_pic
12714 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12715 # not for PA HP-UX.
12720 lt_prog_compiler_pic_CXX='-fPIC'
12725 lt_prog_compiler_pic_CXX='-fPIC'
12731 # All AIX code is PIC.
12732 if test "$host_cpu" = ia64; then
12733 # AIX 5 now supports IA64 processor
12734 lt_prog_compiler_static_CXX='-Bstatic'
12736 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12740 case $cc_basename in
12742 # Green Hills C++ Compiler
12743 # _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"
12748 # PIC is the default on this platform
12749 # Common symbols not allowed in MH_DYLIB files
12750 case $cc_basename in
12752 lt_prog_compiler_pic_CXX='-qnocommon'
12753 lt_prog_compiler_wl_CXX='-Wl,'
12758 case $cc_basename in
12760 lt_prog_compiler_pic_CXX='-KPIC'
12763 # Green Hills C++ Compiler
12764 lt_prog_compiler_pic_CXX='-pic'
12770 freebsd* | dragonfly*)
12771 # FreeBSD uses GNU C++
12773 hpux9* | hpux10* | hpux11*)
12774 case $cc_basename in
12776 lt_prog_compiler_wl_CXX='-Wl,'
12777 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12778 if test "$host_cpu" != ia64; then
12779 lt_prog_compiler_pic_CXX='+Z'
12783 lt_prog_compiler_wl_CXX='-Wl,'
12784 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12790 lt_prog_compiler_pic_CXX='+Z'
12799 # This is c89, which is MS Visual C++ (no shared libs)
12800 # Anyone wants to do a port?
12802 irix5* | irix6* | nonstopux*)
12803 case $cc_basename in
12805 lt_prog_compiler_wl_CXX='-Wl,'
12806 lt_prog_compiler_static_CXX='-non_shared'
12807 # CC pic flag -KPIC is the default.
12813 linux* | k*bsd*-gnu)
12814 case $cc_basename in
12817 lt_prog_compiler_wl_CXX='--backend -Wl,'
12818 lt_prog_compiler_pic_CXX='-fPIC'
12822 lt_prog_compiler_wl_CXX='-Wl,'
12823 lt_prog_compiler_pic_CXX='-KPIC'
12824 lt_prog_compiler_static_CXX='-static'
12827 # Portland Group C++ compiler.
12828 lt_prog_compiler_wl_CXX='-Wl,'
12829 lt_prog_compiler_pic_CXX='-fpic'
12830 lt_prog_compiler_static_CXX='-Bstatic'
12834 # Make sure the PIC flag is empty. It appears that all Alpha
12835 # Linux and Compaq Tru64 Unix objects are PIC.
12836 lt_prog_compiler_pic_CXX=
12837 lt_prog_compiler_static_CXX='-non_shared'
12840 case `$CC -V 2>&1 | sed 5q` in
12843 lt_prog_compiler_pic_CXX='-KPIC'
12844 lt_prog_compiler_static_CXX='-Bstatic'
12845 lt_prog_compiler_wl_CXX='-Qoption ld '
12856 case $cc_basename in
12858 lt_prog_compiler_pic_CXX='-W c,exportall'
12864 netbsd* | netbsdelf*-gnu)
12866 osf3* | osf4* | osf5*)
12867 case $cc_basename in
12869 lt_prog_compiler_wl_CXX='--backend -Wl,'
12872 # Rational C++ 2.4.1
12873 lt_prog_compiler_pic_CXX='-pic'
12876 # Digital/Compaq C++
12877 lt_prog_compiler_wl_CXX='-Wl,'
12878 # Make sure the PIC flag is empty. It appears that all Alpha
12879 # Linux and Compaq Tru64 Unix objects are PIC.
12880 lt_prog_compiler_pic_CXX=
12881 lt_prog_compiler_static_CXX='-non_shared'
12890 case $cc_basename in
12892 # Sun C++ 4.2, 5.x and Centerline C++
12893 lt_prog_compiler_pic_CXX='-KPIC'
12894 lt_prog_compiler_static_CXX='-Bstatic'
12895 lt_prog_compiler_wl_CXX='-Qoption ld '
12898 # Green Hills C++ Compiler
12899 lt_prog_compiler_pic_CXX='-PIC'
12906 case $cc_basename in
12909 lt_prog_compiler_pic_CXX='-pic'
12910 lt_prog_compiler_static_CXX='-Bstatic'
12914 lt_prog_compiler_pic_CXX='-pic'
12921 case $cc_basename in
12923 # NonStop-UX NCC 3.20
12924 lt_prog_compiler_pic_CXX='-KPIC'
12930 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12931 case $cc_basename in
12933 lt_prog_compiler_wl_CXX='-Wl,'
12934 lt_prog_compiler_pic_CXX='-KPIC'
12935 lt_prog_compiler_static_CXX='-Bstatic'
12942 lt_prog_compiler_can_build_shared_CXX=no
12947 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12948 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12951 # Check to make sure the PIC flag actually works.
12953 if test -n "$lt_prog_compiler_pic_CXX"; then
12955 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12956 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12957 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12958 echo $ECHO_N "(cached) $ECHO_C" >&6
12960 lt_cv_prog_compiler_pic_works_CXX=no
12961 ac_outfile=conftest.$ac_objext
12962 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12963 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12964 # Insert the option either (1) after the last *FLAGS variable, or
12965 # (2) before a word containing "conftest.", or (3) at the end.
12966 # Note that $ac_compile itself does not contain backslashes and begins
12967 # with a dollar sign (not a hyphen), so the echo should work correctly.
12968 # The option is referenced via a variable to avoid confusing sed.
12969 lt_compile=`echo "$ac_compile" | $SED \
12970 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12971 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12972 -e 's:$: $lt_compiler_flag:'`
12973 (eval echo "\"\$as_me:12973: $lt_compile\"" >&5)
12974 (eval "$lt_compile" 2>conftest.err)
12976 cat conftest.err >&5
12977 echo "$as_me:12977: \$? = $ac_status" >&5
12978 if (exit $ac_status) && test -s "$ac_outfile"; then
12979 # The compiler can only warn and ignore the option if not recognized
12980 # So say no if there are warnings other than the usual output.
12981 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12982 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12983 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12984 lt_cv_prog_compiler_pic_works_CXX=yes
12990 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12991 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12993 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12994 case $lt_prog_compiler_pic_CXX in
12996 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12999 lt_prog_compiler_pic_CXX=
13000 lt_prog_compiler_can_build_shared_CXX=no
13005 # For platforms which do not support PIC, -DPIC is meaningless:
13007 lt_prog_compiler_pic_CXX=
13010 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13015 # Check to make sure the static flag actually works.
13017 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13018 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13019 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13020 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13021 echo $ECHO_N "(cached) $ECHO_C" >&6
13023 lt_cv_prog_compiler_static_works_CXX=no
13024 save_LDFLAGS="$LDFLAGS"
13025 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13026 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13027 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13028 # The linker can only warn and ignore the option if not recognized
13029 # So say no if there are warnings
13030 if test -s conftest.err; then
13031 # Append any errors to the config.log.
13032 cat conftest.err 1>&5
13033 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13034 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13035 if diff conftest.exp conftest.er2 >/dev/null; then
13036 lt_cv_prog_compiler_static_works_CXX=yes
13039 lt_cv_prog_compiler_static_works_CXX=yes
13043 LDFLAGS="$save_LDFLAGS"
13046 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13047 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
13049 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13052 lt_prog_compiler_static_CXX=
13056 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13057 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13058 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13059 echo $ECHO_N "(cached) $ECHO_C" >&6
13061 lt_cv_prog_compiler_c_o_CXX=no
13062 $rm -r conftest 2>/dev/null
13066 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13068 lt_compiler_flag="-o out/conftest2.$ac_objext"
13069 # Insert the option either (1) after the last *FLAGS variable, or
13070 # (2) before a word containing "conftest.", or (3) at the end.
13071 # Note that $ac_compile itself does not contain backslashes and begins
13072 # with a dollar sign (not a hyphen), so the echo should work correctly.
13073 lt_compile=`echo "$ac_compile" | $SED \
13074 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13075 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13076 -e 's:$: $lt_compiler_flag:'`
13077 (eval echo "\"\$as_me:13077: $lt_compile\"" >&5)
13078 (eval "$lt_compile" 2>out/conftest.err)
13080 cat out/conftest.err >&5
13081 echo "$as_me:13081: \$? = $ac_status" >&5
13082 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13084 # The compiler can only warn and ignore the option if not recognized
13085 # So say no if there are warnings
13086 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13087 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13088 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13089 lt_cv_prog_compiler_c_o_CXX=yes
13094 # SGI C++ compiler will create directory out/ii_files/ for
13095 # template instantiation
13096 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13097 $rm out/* && rmdir out
13103 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13104 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13107 hard_links="nottested"
13108 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13109 # do not overwrite the value of need_locks provided by the user
13110 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13111 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13114 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13116 ln conftest.a conftest.b 2>&5 || hard_links=no
13117 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13118 { echo "$as_me:$LINENO: result: $hard_links" >&5
13119 echo "${ECHO_T}$hard_links" >&6; }
13120 if test "$hard_links" = no; then
13121 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13122 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13129 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13130 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13132 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13135 # If we're using GNU nm, then we don't want the "-C" option.
13136 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13137 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13138 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'
13140 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'
13144 export_symbols_cmds_CXX="$ltdll_cmds"
13147 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'
13149 linux* | k*bsd*-gnu)
13150 link_all_deplibs_CXX=no
13153 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13156 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13158 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13159 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13160 test "$ld_shlibs_CXX" = no && can_build_shared=no
13163 # Do we need to explicitly link libc?
13165 case "x$archive_cmds_need_lc_CXX" in
13167 # Assume -lc should be added
13168 archive_cmds_need_lc_CXX=yes
13170 if test "$enable_shared" = yes && test "$GCC" = yes; then
13171 case $archive_cmds_CXX in
13173 # FIXME: we may have to deal with multi-command sequences.
13176 # Test whether the compiler implicitly links with -lc since on some
13177 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13178 # to ld, don't add -lc before -lgcc.
13179 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13180 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13182 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13185 (eval $ac_compile) 2>&5
13187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188 (exit $ac_status); } 2>conftest.err; then
13191 libobjs=conftest.$ac_objext
13193 wl=$lt_prog_compiler_wl_CXX
13194 pic_flag=$lt_prog_compiler_pic_CXX
13200 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13201 allow_undefined_flag_CXX=
13202 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13203 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206 (exit $ac_status); }
13208 archive_cmds_need_lc_CXX=no
13210 archive_cmds_need_lc_CXX=yes
13212 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13214 cat conftest.err 1>&5
13217 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13218 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13225 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13226 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13227 library_names_spec=
13228 libname_spec='lib$name'
13232 postuninstall_cmds=
13236 shlibpath_overrides_runpath=unknown
13238 dynamic_linker="$host_os ld.so"
13239 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13241 need_lib_prefix=unknown
13242 hardcode_into_libs=no
13244 # when you set need_version to no, make sure it does not cause -set_version
13245 # flags to be left without arguments
13246 need_version=unknown
13251 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13252 shlibpath_var=LIBPATH
13254 # AIX 3 has no versioning support, so we append a major version to the name.
13255 soname_spec='${libname}${release}${shared_ext}$major'
13262 hardcode_into_libs=yes
13263 if test "$host_cpu" = ia64; then
13264 # AIX 5 supports IA64
13265 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13266 shlibpath_var=LD_LIBRARY_PATH
13268 # With GCC up to 2.95.x, collect2 would create an import file
13269 # for dependence libraries. The import file would start with
13270 # the line `#! .'. This would cause the generated library to
13271 # depend on `.', always an invalid library. This was fixed in
13272 # development snapshots of GCC prior to 3.0.
13274 aix4 | aix4.[01] | aix4.[01].*)
13275 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13277 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13280 can_build_shared=no
13284 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13285 # soname into executable. Probably we can add versioning support to
13286 # collect2, so additional links can be useful in future.
13287 if test "$aix_use_runtimelinking" = yes; then
13288 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13289 # instead of lib<name>.a to let people know that these are not
13290 # typical AIX shared libraries.
13291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13293 # We preserve .a as extension for shared libraries through AIX4.2
13294 # and later when we are not doing run time linking.
13295 library_names_spec='${libname}${release}.a $libname.a'
13296 soname_spec='${libname}${release}${shared_ext}$major'
13298 shlibpath_var=LIBPATH
13303 library_names_spec='$libname.ixlibrary $libname.a'
13304 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13305 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'
13309 library_names_spec='${libname}${shared_ext}'
13310 dynamic_linker="$host_os ld.so"
13311 shlibpath_var=LIBRARY_PATH
13317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13318 soname_spec='${libname}${release}${shared_ext}$major'
13319 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13320 shlibpath_var=LD_LIBRARY_PATH
13321 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13322 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13323 # the default ld.so.conf also contains /usr/contrib/lib and
13324 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13325 # libtool to hard-code these into programs
13328 cygwin* | mingw* | pw32*)
13329 version_type=windows
13334 case $GCC,$host_os in
13335 yes,cygwin* | yes,mingw* | yes,pw32*)
13336 library_names_spec='$libname.dll.a'
13337 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13338 postinstall_cmds='base_file=`basename \${file}`~
13339 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13340 dldir=$destdir/`dirname \$dlpath`~
13341 test -d \$dldir || mkdir -p \$dldir~
13342 $install_prog $dir/$dlname \$dldir/$dlname~
13343 chmod a+x \$dldir/$dlname'
13344 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13345 dlpath=$dir/\$dldll~
13347 shlibpath_overrides_runpath=yes
13351 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13352 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13353 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13356 # MinGW DLLs use traditional 'lib' prefix
13357 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13358 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13359 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13360 # It is most probably a Windows format PATH printed by
13361 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13362 # path with ; separators, and with drive letters. We can handle the
13363 # drive letters (cygwin fileutils understands them), so leave them,
13364 # especially as we might pass files found there to a mingw objdump,
13365 # which wouldn't understand a cygwinified path. Ahh.
13366 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13368 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13372 # pw32 DLLs use 'pw' prefix rather than 'lib'
13373 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13379 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13382 dynamic_linker='Win32 ld.exe'
13383 # FIXME: first we should search . and the directory the executable is in
13387 darwin* | rhapsody*)
13388 dynamic_linker="$host_os dyld"
13389 version_type=darwin
13392 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13393 soname_spec='${libname}${release}${major}$shared_ext'
13394 shlibpath_overrides_runpath=yes
13395 shlibpath_var=DYLD_LIBRARY_PATH
13396 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13398 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13406 soname_spec='${libname}${release}${shared_ext}$major'
13407 shlibpath_var=LD_LIBRARY_PATH
13414 freebsd* | dragonfly*)
13415 # DragonFly does not have aout. When/if they implement a new
13416 # versioning mechanism, adjust this.
13417 if test -x /usr/bin/objformat; then
13418 objformat=`/usr/bin/objformat`
13421 freebsd[123]*) objformat=aout ;;
13422 *) objformat=elf ;;
13425 version_type=freebsd-$objformat
13426 case $version_type in
13428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13433 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13437 shlibpath_var=LD_LIBRARY_PATH
13440 shlibpath_overrides_runpath=yes
13442 freebsd3.[01]* | freebsdelf3.[01]*)
13443 shlibpath_overrides_runpath=yes
13444 hardcode_into_libs=yes
13446 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13447 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13448 shlibpath_overrides_runpath=no
13449 hardcode_into_libs=yes
13451 *) # from 4.6 on, and DragonFly
13452 shlibpath_overrides_runpath=yes
13453 hardcode_into_libs=yes
13462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13463 soname_spec='${libname}${release}${shared_ext}$major'
13464 shlibpath_var=LD_LIBRARY_PATH
13465 hardcode_into_libs=yes
13468 hpux9* | hpux10* | hpux11*)
13469 # Give a soname corresponding to the major version so that dld.sl refuses to
13470 # link against other versions.
13477 hardcode_into_libs=yes
13478 dynamic_linker="$host_os dld.so"
13479 shlibpath_var=LD_LIBRARY_PATH
13480 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13482 soname_spec='${libname}${release}${shared_ext}$major'
13483 if test "X$HPUX_IA64_MODE" = X32; then
13484 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13486 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13488 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13492 hardcode_into_libs=yes
13493 dynamic_linker="$host_os dld.sl"
13494 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13495 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13497 soname_spec='${libname}${release}${shared_ext}$major'
13498 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13499 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13503 dynamic_linker="$host_os dld.sl"
13504 shlibpath_var=SHLIB_PATH
13505 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13507 soname_spec='${libname}${release}${shared_ext}$major'
13510 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13511 postinstall_cmds='chmod 555 $lib'
13518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13519 soname_spec='${libname}${release}${shared_ext}$major'
13520 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13521 shlibpath_var=LD_LIBRARY_PATH
13522 shlibpath_overrides_runpath=no
13523 hardcode_into_libs=yes
13526 irix5* | irix6* | nonstopux*)
13528 nonstopux*) version_type=nonstopux ;;
13530 if test "$lt_cv_prog_gnu_ld" = yes; then
13538 soname_spec='${libname}${release}${shared_ext}$major'
13539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13541 irix5* | nonstopux*)
13542 libsuff= shlibsuff=
13545 case $LD in # libtool.m4 will add one of these switches to LD
13546 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13547 libsuff= shlibsuff= libmagic=32-bit;;
13548 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13549 libsuff=32 shlibsuff=N32 libmagic=N32;;
13550 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13551 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13552 *) libsuff= shlibsuff= libmagic=never-match;;
13556 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13557 shlibpath_overrides_runpath=no
13558 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13559 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13560 hardcode_into_libs=yes
13563 # No shared lib support for Linux oldld, aout, or coff.
13564 linux*oldld* | linux*aout* | linux*coff*)
13568 # This must be Linux ELF.
13569 linux* | k*bsd*-gnu)
13573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13574 soname_spec='${libname}${release}${shared_ext}$major'
13575 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13576 shlibpath_var=LD_LIBRARY_PATH
13577 shlibpath_overrides_runpath=no
13578 # This implies no fast_install, which is unacceptable.
13579 # Some rework will be needed to allow for fast_install
13580 # before this can be enabled.
13581 hardcode_into_libs=yes
13583 # Append ld.so.conf contents to the search path
13584 if test -f /etc/ld.so.conf; then
13585 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13586 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13589 # We used to test for /lib/ld.so.1 and disable shared libraries on
13590 # powerpc, because MkLinux only supported shared libraries with the
13591 # GNU dynamic linker. Since this was broken with cross compilers,
13592 # most powerpc-linux boxes support dynamic linking these days and
13593 # people can always --disable-shared, the test was removed, and we
13594 # assume the GNU/Linux dynamic linker is in use.
13595 dynamic_linker='GNU/Linux ld.so'
13602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13603 soname_spec='${libname}${release}${shared_ext}$major'
13604 shlibpath_var=LD_LIBRARY_PATH
13605 shlibpath_overrides_runpath=no
13606 hardcode_into_libs=yes
13607 dynamic_linker='NetBSD ld.elf_so'
13614 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13616 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13617 dynamic_linker='NetBSD (a.out) ld.so'
13619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13620 soname_spec='${libname}${release}${shared_ext}$major'
13621 dynamic_linker='NetBSD ld.elf_so'
13623 shlibpath_var=LD_LIBRARY_PATH
13624 shlibpath_overrides_runpath=yes
13625 hardcode_into_libs=yes
13630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13631 shlibpath_var=LD_LIBRARY_PATH
13632 shlibpath_overrides_runpath=yes
13639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13640 soname_spec='${libname}${release}${shared_ext}$major'
13641 shlibpath_var=LD_LIBRARY_PATH
13642 shlibpath_overrides_runpath=yes
13647 sys_lib_dlsearch_path_spec="/usr/lib"
13649 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13651 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13652 *) need_version=no ;;
13654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13655 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13656 shlibpath_var=LD_LIBRARY_PATH
13657 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13659 openbsd2.[89] | openbsd2.[89].*)
13660 shlibpath_overrides_runpath=no
13663 shlibpath_overrides_runpath=yes
13667 shlibpath_overrides_runpath=yes
13672 libname_spec='$name'
13675 library_names_spec='$libname${shared_ext} $libname.a'
13676 dynamic_linker='OS/2 ld.exe'
13677 shlibpath_var=LIBPATH
13680 osf3* | osf4* | osf5*)
13684 soname_spec='${libname}${release}${shared_ext}$major'
13685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13686 shlibpath_var=LD_LIBRARY_PATH
13687 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13688 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13700 soname_spec='${libname}${release}${shared_ext}$major'
13701 shlibpath_var=LD_LIBRARY_PATH
13702 shlibpath_overrides_runpath=yes
13703 hardcode_into_libs=yes
13704 # ldd complains unless libraries are executable
13705 postinstall_cmds='chmod +x $lib'
13710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13711 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13712 shlibpath_var=LD_LIBRARY_PATH
13713 shlibpath_overrides_runpath=yes
13714 if test "$with_gnu_ld" = yes; then
13722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13723 soname_spec='${libname}${release}${shared_ext}$major'
13724 shlibpath_var=LD_LIBRARY_PATH
13725 case $host_vendor in
13727 shlibpath_overrides_runpath=no
13729 export_dynamic_flag_spec='${wl}-Blargedynsym'
13730 runpath_var=LD_RUN_PATH
13738 shlibpath_overrides_runpath=no
13739 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13745 if test -d /usr/nec ;then
13747 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13748 soname_spec='$libname${shared_ext}.$major'
13749 shlibpath_var=LD_LIBRARY_PATH
13753 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13754 version_type=freebsd-elf
13757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13758 soname_spec='${libname}${release}${shared_ext}$major'
13759 shlibpath_var=LD_LIBRARY_PATH
13760 hardcode_into_libs=yes
13761 if test "$with_gnu_ld" = yes; then
13762 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13763 shlibpath_overrides_runpath=no
13765 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13766 shlibpath_overrides_runpath=yes
13769 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13773 sys_lib_dlsearch_path_spec='/usr/lib'
13778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13779 soname_spec='${libname}${release}${shared_ext}$major'
13780 shlibpath_var=LD_LIBRARY_PATH
13787 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13788 echo "${ECHO_T}$dynamic_linker" >&6; }
13789 test "$dynamic_linker" = no && can_build_shared=no
13791 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13792 echo $ECHO_N "(cached) $ECHO_C" >&6
13794 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13797 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13798 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13799 echo $ECHO_N "(cached) $ECHO_C" >&6
13801 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13804 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13806 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13807 if test "$GCC" = yes; then
13808 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13811 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13812 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13813 hardcode_action_CXX=
13814 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13815 test -n "$runpath_var_CXX" || \
13816 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13818 # We can hardcode non-existant directories.
13819 if test "$hardcode_direct_CXX" != no &&
13820 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13821 # have to relink, otherwise we might link with an installed library
13822 # when we should be linking with a yet-to-be-installed one
13823 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13824 test "$hardcode_minus_L_CXX" != no; then
13825 # Linking always hardcodes the temporary library directory.
13826 hardcode_action_CXX=relink
13828 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13829 hardcode_action_CXX=immediate
13832 # We cannot hardcode anything, or else we can only hardcode existing
13834 hardcode_action_CXX=unsupported
13836 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13837 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13839 if test "$hardcode_action_CXX" = relink; then
13840 # Fast installation is not supported
13841 enable_fast_install=no
13842 elif test "$shlibpath_overrides_runpath" = yes ||
13843 test "$enable_shared" = no; then
13844 # Fast installation is not necessary
13845 enable_fast_install=needless
13849 # The else clause should only fire when bootstrapping the
13850 # libtool distribution, otherwise you forgot to ship ltmain.sh
13851 # with your package, and you will get complaints that there are
13852 # no rules to generate ltmain.sh.
13853 if test -f "$ltmain"; then
13854 # See if we are running on zsh, and set the options which allow our commands through
13855 # without removal of \ escapes.
13856 if test -n "${ZSH_VERSION+set}" ; then
13857 setopt NO_GLOB_SUBST
13859 # Now quote all the things that may contain metacharacters while being
13860 # careful not to overquote the AC_SUBSTed values. We take copies of the
13861 # variables and quote the copies for generation of the libtool script.
13862 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13864 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13865 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13866 deplibs_check_method reload_flag reload_cmds need_locks \
13867 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13868 lt_cv_sys_global_symbol_to_c_name_address \
13869 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13870 old_postinstall_cmds old_postuninstall_cmds \
13874 lt_prog_compiler_wl_CXX \
13875 lt_prog_compiler_pic_CXX \
13876 lt_prog_compiler_static_CXX \
13877 lt_prog_compiler_no_builtin_flag_CXX \
13878 export_dynamic_flag_spec_CXX \
13879 thread_safe_flag_spec_CXX \
13880 whole_archive_flag_spec_CXX \
13881 enable_shared_with_static_runtimes_CXX \
13882 old_archive_cmds_CXX \
13883 old_archive_from_new_cmds_CXX \
13884 predep_objects_CXX \
13885 postdep_objects_CXX \
13888 compiler_lib_search_path_CXX \
13889 compiler_lib_search_dirs_CXX \
13891 archive_expsym_cmds_CXX \
13892 postinstall_cmds_CXX \
13893 postuninstall_cmds_CXX \
13894 old_archive_from_expsyms_cmds_CXX \
13895 allow_undefined_flag_CXX \
13896 no_undefined_flag_CXX \
13897 export_symbols_cmds_CXX \
13898 hardcode_libdir_flag_spec_CXX \
13899 hardcode_libdir_flag_spec_ld_CXX \
13900 hardcode_libdir_separator_CXX \
13901 hardcode_automatic_CXX \
13903 module_expsym_cmds_CXX \
13904 lt_cv_prog_compiler_c_o_CXX \
13905 fix_srcfile_path_CXX \
13906 exclude_expsyms_CXX \
13907 include_expsyms_CXX; do
13910 old_archive_cmds_CXX | \
13911 old_archive_from_new_cmds_CXX | \
13912 archive_cmds_CXX | \
13913 archive_expsym_cmds_CXX | \
13914 module_cmds_CXX | \
13915 module_expsym_cmds_CXX | \
13916 old_archive_from_expsyms_cmds_CXX | \
13917 export_symbols_cmds_CXX | \
13918 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13919 postinstall_cmds | postuninstall_cmds | \
13920 old_postinstall_cmds | old_postuninstall_cmds | \
13921 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13922 # Double-quote double-evaled strings.
13923 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13926 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13932 *'\$0 --fallback-echo"')
13933 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13939 cat <<__EOF__ >> "$cfgfile"
13940 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13942 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13944 # Shell to use when invoking shell scripts.
13947 # Whether or not to build shared libraries.
13948 build_libtool_libs=$enable_shared
13950 # Whether or not to build static libraries.
13951 build_old_libs=$enable_static
13953 # Whether or not to add -lc for building shared libraries.
13954 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13956 # Whether or not to disallow shared libs when runtime libs are static
13957 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13959 # Whether or not to optimize for fast installation.
13960 fast_install=$enable_fast_install
13963 host_alias=$host_alias
13967 # The build system.
13968 build_alias=$build_alias
13972 # An echo program that does not interpret backslashes.
13977 AR_FLAGS=$lt_AR_FLAGS
13982 # LTCC compiler flags.
13983 LTCFLAGS=$lt_LTCFLAGS
13985 # A language-specific compiler.
13986 CC=$lt_compiler_CXX
13988 # Is the compiler the GNU C compiler?
13994 # The linker used to build libraries.
13997 # Whether we need hard or soft links.
14000 # A BSD-compatible nm program.
14003 # A symbol stripping program
14006 # Used to examine libraries when file_magic_cmd begins "file"
14007 MAGIC_CMD=$MAGIC_CMD
14009 # Used on cygwin: DLL creation program.
14012 # Used on cygwin: object dumper.
14015 # Used on cygwin: assembler.
14018 # The name of the directory that contains temporary libtool files.
14021 # How to create reloadable object files.
14022 reload_flag=$lt_reload_flag
14023 reload_cmds=$lt_reload_cmds
14025 # How to pass a linker flag through the compiler.
14026 wl=$lt_lt_prog_compiler_wl_CXX
14028 # Object file suffix (normally "o").
14029 objext="$ac_objext"
14031 # Old archive suffix (normally "a").
14034 # Shared library suffix (normally ".so").
14035 shrext_cmds='$shrext_cmds'
14037 # Executable file suffix (normally "").
14040 # Additional compiler flags for building library objects.
14041 pic_flag=$lt_lt_prog_compiler_pic_CXX
14044 # What is the maximum length of a command?
14045 max_cmd_len=$lt_cv_sys_max_cmd_len
14047 # Does compiler simultaneously support -c and -o options?
14048 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14050 # Must we lock files when doing compilation?
14051 need_locks=$lt_need_locks
14053 # Do we need the lib prefix for modules?
14054 need_lib_prefix=$need_lib_prefix
14056 # Do we need a version for libraries?
14057 need_version=$need_version
14059 # Whether dlopen is supported.
14060 dlopen_support=$enable_dlopen
14062 # Whether dlopen of programs is supported.
14063 dlopen_self=$enable_dlopen_self
14065 # Whether dlopen of statically linked programs is supported.
14066 dlopen_self_static=$enable_dlopen_self_static
14068 # Compiler flag to prevent dynamic linking.
14069 link_static_flag=$lt_lt_prog_compiler_static_CXX
14071 # Compiler flag to turn off builtin functions.
14072 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14074 # Compiler flag to allow reflexive dlopens.
14075 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14077 # Compiler flag to generate shared objects directly from archives.
14078 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14080 # Compiler flag to generate thread-safe objects.
14081 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14083 # Library versioning type.
14084 version_type=$version_type
14086 # Format of library name prefix.
14087 libname_spec=$lt_libname_spec
14089 # List of archive names. First name is the real one, the rest are links.
14090 # The last name is the one that the linker finds with -lNAME.
14091 library_names_spec=$lt_library_names_spec
14093 # The coded name of the library, if different from the real name.
14094 soname_spec=$lt_soname_spec
14096 # Commands used to build and install an old-style archive.
14098 old_archive_cmds=$lt_old_archive_cmds_CXX
14099 old_postinstall_cmds=$lt_old_postinstall_cmds
14100 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14102 # Create an old-style archive from a shared archive.
14103 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14105 # Create a temporary old-style archive to link instead of a shared archive.
14106 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14108 # Commands used to build and install a shared archive.
14109 archive_cmds=$lt_archive_cmds_CXX
14110 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14111 postinstall_cmds=$lt_postinstall_cmds
14112 postuninstall_cmds=$lt_postuninstall_cmds
14114 # Commands used to build a loadable module (assumed same as above if empty)
14115 module_cmds=$lt_module_cmds_CXX
14116 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14118 # Commands to strip libraries.
14119 old_striplib=$lt_old_striplib
14120 striplib=$lt_striplib
14122 # Dependencies to place before the objects being linked to create a
14124 predep_objects=$lt_predep_objects_CXX
14126 # Dependencies to place after the objects being linked to create a
14128 postdep_objects=$lt_postdep_objects_CXX
14130 # Dependencies to place before the objects being linked to create a
14132 predeps=$lt_predeps_CXX
14134 # Dependencies to place after the objects being linked to create a
14136 postdeps=$lt_postdeps_CXX
14138 # The directories searched by this compiler when creating a shared
14140 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14142 # The library search path used internally by the compiler when linking
14143 # a shared library.
14144 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14146 # Method to check whether dependent libraries are shared objects.
14147 deplibs_check_method=$lt_deplibs_check_method
14149 # Command to use when deplibs_check_method == file_magic.
14150 file_magic_cmd=$lt_file_magic_cmd
14152 # Flag that allows shared libraries with undefined symbols to be built.
14153 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14155 # Flag that forces no undefined symbols.
14156 no_undefined_flag=$lt_no_undefined_flag_CXX
14158 # Commands used to finish a libtool library installation in a directory.
14159 finish_cmds=$lt_finish_cmds
14161 # Same as above, but a single script fragment to be evaled but not shown.
14162 finish_eval=$lt_finish_eval
14164 # Take the output of nm and produce a listing of raw symbols and C names.
14165 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14167 # Transform the output of nm in a proper C declaration
14168 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14170 # Transform the output of nm in a C name address pair
14171 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14173 # This is the shared library runtime path variable.
14174 runpath_var=$runpath_var
14176 # This is the shared library path variable.
14177 shlibpath_var=$shlibpath_var
14179 # Is shlibpath searched before the hard-coded library search path?
14180 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14182 # How to hardcode a shared library path into an executable.
14183 hardcode_action=$hardcode_action_CXX
14185 # Whether we should hardcode library paths into libraries.
14186 hardcode_into_libs=$hardcode_into_libs
14188 # Flag to hardcode \$libdir into a binary during linking.
14189 # This must work even if \$libdir does not exist.
14190 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14192 # If ld is used when linking, flag to hardcode \$libdir into
14193 # a binary during linking. This must work even if \$libdir does
14195 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14197 # Whether we need a single -rpath flag with a separated argument.
14198 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14200 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14201 # resulting binary.
14202 hardcode_direct=$hardcode_direct_CXX
14204 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14205 # resulting binary.
14206 hardcode_minus_L=$hardcode_minus_L_CXX
14208 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14209 # the resulting binary.
14210 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14212 # Set to yes if building a shared library automatically hardcodes DIR into the library
14213 # and all subsequent libraries and executables linked against it.
14214 hardcode_automatic=$hardcode_automatic_CXX
14216 # Variables whose values should be saved in libtool wrapper scripts and
14217 # restored at relink time.
14218 variables_saved_for_relink="$variables_saved_for_relink"
14220 # Whether libtool must link a program against all its dependency libraries.
14221 link_all_deplibs=$link_all_deplibs_CXX
14223 # Compile-time system search path for libraries
14224 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14226 # Run-time system search path for libraries
14227 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14229 # Fix the shell variable \$srcfile for the compiler.
14230 fix_srcfile_path=$lt_fix_srcfile_path
14232 # Set to yes if exported symbols are required.
14233 always_export_symbols=$always_export_symbols_CXX
14235 # The commands to list exported symbols.
14236 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14238 # The commands to extract the exported symbol list from a shared archive.
14239 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14241 # Symbols that should not be listed in the preloaded symbols.
14242 exclude_expsyms=$lt_exclude_expsyms_CXX
14244 # Symbols that must always be exported.
14245 include_expsyms=$lt_include_expsyms_CXX
14247 # ### END LIBTOOL TAG CONFIG: $tagname
14253 # If there is no Makefile yet, we rely on a make rule to execute
14254 # `config.status --recheck' to rerun these tests and create the
14255 # libtool script then.
14256 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14257 if test -f "$ltmain_in"; then
14258 test -f Makefile && make "$ltmain"
14264 ac_cpp='$CPP $CPPFLAGS'
14265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14273 with_gnu_ldcxx=$with_gnu_ld
14274 with_gnu_ld=$lt_save_with_gnu_ld
14275 lt_cv_path_LDCXX=$lt_cv_path_LD
14276 lt_cv_path_LD=$lt_save_path_LD
14277 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14278 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14286 if test -n "$F77" && test "X$F77" != "Xno"; then
14289 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14290 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14291 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14294 archive_cmds_need_lc_F77=no
14295 allow_undefined_flag_F77=
14296 always_export_symbols_F77=no
14297 archive_expsym_cmds_F77=
14298 export_dynamic_flag_spec_F77=
14299 hardcode_direct_F77=no
14300 hardcode_libdir_flag_spec_F77=
14301 hardcode_libdir_flag_spec_ld_F77=
14302 hardcode_libdir_separator_F77=
14303 hardcode_minus_L_F77=no
14304 hardcode_automatic_F77=no
14306 module_expsym_cmds_F77=
14307 link_all_deplibs_F77=unknown
14308 old_archive_cmds_F77=$old_archive_cmds
14309 no_undefined_flag_F77=
14310 whole_archive_flag_spec_F77=
14311 enable_shared_with_static_runtimes_F77=no
14313 # Source file extension for f77 test sources.
14316 # Object file extension for compiled f77 test sources.
14320 # Code to be used in simple compile tests
14321 lt_simple_compile_test_code="\
14327 # Code to be used in simple link tests
14328 lt_simple_link_test_code="\
14333 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14335 # If no C compiler was specified, use CC.
14338 # If no C compiler flags were specified, use CFLAGS.
14339 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14341 # Allow CC to be a program name with arguments.
14345 # save warnings/boilerplate of simple test code
14346 ac_outfile=conftest.$ac_objext
14347 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14348 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14349 _lt_compiler_boilerplate=`cat conftest.err`
14352 ac_outfile=conftest.$ac_objext
14353 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14354 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14355 _lt_linker_boilerplate=`cat conftest.err`
14359 # Allow CC to be a program name with arguments.
14364 for cc_temp in $compiler""; do
14366 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14367 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14372 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14375 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14376 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14377 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14378 echo "${ECHO_T}$can_build_shared" >&6; }
14380 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14381 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14382 test "$can_build_shared" = "no" && enable_shared=no
14384 # On AIX, shared libraries and static libraries use the same namespace, and
14385 # are all built from PIC.
14388 test "$enable_shared" = yes && enable_static=no
14389 if test -n "$RANLIB"; then
14390 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14391 postinstall_cmds='$RANLIB $lib'
14395 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14396 test "$enable_shared" = yes && enable_static=no
14400 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14401 echo "${ECHO_T}$enable_shared" >&6; }
14403 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14404 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14405 # Make sure either enable_shared or enable_static is yes.
14406 test "$enable_shared" = yes || enable_static=yes
14407 { echo "$as_me:$LINENO: result: $enable_static" >&5
14408 echo "${ECHO_T}$enable_static" >&6; }
14413 lt_prog_compiler_wl_F77=
14414 lt_prog_compiler_pic_F77=
14415 lt_prog_compiler_static_F77=
14417 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14418 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14420 if test "$GCC" = yes; then
14421 lt_prog_compiler_wl_F77='-Wl,'
14422 lt_prog_compiler_static_F77='-static'
14426 # All AIX code is PIC.
14427 if test "$host_cpu" = ia64; then
14428 # AIX 5 now supports IA64 processor
14429 lt_prog_compiler_static_F77='-Bstatic'
14434 # FIXME: we need at least 68020 code to build shared libraries, but
14435 # adding the `-m68020' flag to GCC prevents building anything better,
14437 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14440 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14441 # PIC is the default for these OSes.
14444 mingw* | cygwin* | pw32* | os2*)
14445 # This hack is so that the source file can tell whether it is being
14446 # built for inclusion in a dll (and should export symbols for example).
14447 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14448 # (--disable-auto-import) libraries
14449 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14452 darwin* | rhapsody*)
14453 # PIC is the default on this platform
14454 # Common symbols not allowed in MH_DYLIB files
14455 lt_prog_compiler_pic_F77='-fno-common'
14459 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14460 # Instead, we relocate shared libraries at runtime.
14464 # Just because we use GCC doesn't mean we suddenly get shared libraries
14465 # on systems that don't support them.
14466 lt_prog_compiler_can_build_shared_F77=no
14471 if test -d /usr/nec; then
14472 lt_prog_compiler_pic_F77=-Kconform_pic
14477 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14478 # not for PA HP-UX.
14484 lt_prog_compiler_pic_F77='-fPIC'
14490 lt_prog_compiler_pic_F77='-fPIC'
14494 # PORTME Check for flag to pass linker flags through the system compiler.
14497 lt_prog_compiler_wl_F77='-Wl,'
14498 if test "$host_cpu" = ia64; then
14499 # AIX 5 now supports IA64 processor
14500 lt_prog_compiler_static_F77='-Bstatic'
14502 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14506 # PIC is the default on this platform
14507 # Common symbols not allowed in MH_DYLIB files
14508 case $cc_basename in
14510 lt_prog_compiler_pic_F77='-qnocommon'
14511 lt_prog_compiler_wl_F77='-Wl,'
14516 mingw* | cygwin* | pw32* | os2*)
14517 # This hack is so that the source file can tell whether it is being
14518 # built for inclusion in a dll (and should export symbols for example).
14519 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14522 hpux9* | hpux10* | hpux11*)
14523 lt_prog_compiler_wl_F77='-Wl,'
14524 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14525 # not for PA HP-UX.
14531 lt_prog_compiler_pic_F77='+Z'
14534 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14535 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14538 irix5* | irix6* | nonstopux*)
14539 lt_prog_compiler_wl_F77='-Wl,'
14540 # PIC (with -KPIC) is the default.
14541 lt_prog_compiler_static_F77='-non_shared'
14545 lt_prog_compiler_pic_F77='-KPIC'
14546 lt_prog_compiler_static_F77='-Bstatic'
14549 linux* | k*bsd*-gnu)
14550 case $cc_basename in
14552 lt_prog_compiler_wl_F77='-Wl,'
14553 lt_prog_compiler_pic_F77='-KPIC'
14554 lt_prog_compiler_static_F77='-static'
14556 pgcc* | pgf77* | pgf90* | pgf95*)
14557 # Portland Group compilers (*not* the Pentium gcc compiler,
14558 # which looks to be a dead project)
14559 lt_prog_compiler_wl_F77='-Wl,'
14560 lt_prog_compiler_pic_F77='-fpic'
14561 lt_prog_compiler_static_F77='-Bstatic'
14564 lt_prog_compiler_wl_F77='-Wl,'
14565 # All Alpha code is PIC.
14566 lt_prog_compiler_static_F77='-non_shared'
14569 case `$CC -V 2>&1 | sed 5q` in
14572 lt_prog_compiler_pic_F77='-KPIC'
14573 lt_prog_compiler_static_F77='-Bstatic'
14574 lt_prog_compiler_wl_F77='-Wl,'
14577 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14578 lt_prog_compiler_pic_F77='-KPIC'
14579 lt_prog_compiler_static_F77='-Bstatic'
14580 lt_prog_compiler_wl_F77=''
14587 osf3* | osf4* | osf5*)
14588 lt_prog_compiler_wl_F77='-Wl,'
14589 # All OSF/1 code is PIC.
14590 lt_prog_compiler_static_F77='-non_shared'
14594 lt_prog_compiler_static_F77='-non_shared'
14598 lt_prog_compiler_pic_F77='-KPIC'
14599 lt_prog_compiler_static_F77='-Bstatic'
14600 case $cc_basename in
14601 f77* | f90* | f95*)
14602 lt_prog_compiler_wl_F77='-Qoption ld ';;
14604 lt_prog_compiler_wl_F77='-Wl,';;
14609 lt_prog_compiler_wl_F77='-Qoption ld '
14610 lt_prog_compiler_pic_F77='-PIC'
14611 lt_prog_compiler_static_F77='-Bstatic'
14614 sysv4 | sysv4.2uw2* | sysv4.3*)
14615 lt_prog_compiler_wl_F77='-Wl,'
14616 lt_prog_compiler_pic_F77='-KPIC'
14617 lt_prog_compiler_static_F77='-Bstatic'
14621 if test -d /usr/nec ;then
14622 lt_prog_compiler_pic_F77='-Kconform_pic'
14623 lt_prog_compiler_static_F77='-Bstatic'
14627 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14628 lt_prog_compiler_wl_F77='-Wl,'
14629 lt_prog_compiler_pic_F77='-KPIC'
14630 lt_prog_compiler_static_F77='-Bstatic'
14634 lt_prog_compiler_wl_F77='-Wl,'
14635 lt_prog_compiler_can_build_shared_F77=no
14639 lt_prog_compiler_pic_F77='-pic'
14640 lt_prog_compiler_static_F77='-Bstatic'
14644 lt_prog_compiler_can_build_shared_F77=no
14649 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14650 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14653 # Check to make sure the PIC flag actually works.
14655 if test -n "$lt_prog_compiler_pic_F77"; then
14657 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14658 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14659 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14660 echo $ECHO_N "(cached) $ECHO_C" >&6
14662 lt_cv_prog_compiler_pic_works_F77=no
14663 ac_outfile=conftest.$ac_objext
14664 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14665 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14666 # Insert the option either (1) after the last *FLAGS variable, or
14667 # (2) before a word containing "conftest.", or (3) at the end.
14668 # Note that $ac_compile itself does not contain backslashes and begins
14669 # with a dollar sign (not a hyphen), so the echo should work correctly.
14670 # The option is referenced via a variable to avoid confusing sed.
14671 lt_compile=`echo "$ac_compile" | $SED \
14672 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14673 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14674 -e 's:$: $lt_compiler_flag:'`
14675 (eval echo "\"\$as_me:14675: $lt_compile\"" >&5)
14676 (eval "$lt_compile" 2>conftest.err)
14678 cat conftest.err >&5
14679 echo "$as_me:14679: \$? = $ac_status" >&5
14680 if (exit $ac_status) && test -s "$ac_outfile"; then
14681 # The compiler can only warn and ignore the option if not recognized
14682 # So say no if there are warnings other than the usual output.
14683 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14684 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14685 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14686 lt_cv_prog_compiler_pic_works_F77=yes
14692 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14693 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14695 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14696 case $lt_prog_compiler_pic_F77 in
14698 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14701 lt_prog_compiler_pic_F77=
14702 lt_prog_compiler_can_build_shared_F77=no
14707 # For platforms which do not support PIC, -DPIC is meaningless:
14709 lt_prog_compiler_pic_F77=
14712 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14717 # Check to make sure the static flag actually works.
14719 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14720 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14721 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14722 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14723 echo $ECHO_N "(cached) $ECHO_C" >&6
14725 lt_cv_prog_compiler_static_works_F77=no
14726 save_LDFLAGS="$LDFLAGS"
14727 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14728 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14729 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14730 # The linker can only warn and ignore the option if not recognized
14731 # So say no if there are warnings
14732 if test -s conftest.err; then
14733 # Append any errors to the config.log.
14734 cat conftest.err 1>&5
14735 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14736 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14737 if diff conftest.exp conftest.er2 >/dev/null; then
14738 lt_cv_prog_compiler_static_works_F77=yes
14741 lt_cv_prog_compiler_static_works_F77=yes
14745 LDFLAGS="$save_LDFLAGS"
14748 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14749 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14751 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14754 lt_prog_compiler_static_F77=
14758 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14759 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14760 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14761 echo $ECHO_N "(cached) $ECHO_C" >&6
14763 lt_cv_prog_compiler_c_o_F77=no
14764 $rm -r conftest 2>/dev/null
14768 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14770 lt_compiler_flag="-o out/conftest2.$ac_objext"
14771 # Insert the option either (1) after the last *FLAGS variable, or
14772 # (2) before a word containing "conftest.", or (3) at the end.
14773 # Note that $ac_compile itself does not contain backslashes and begins
14774 # with a dollar sign (not a hyphen), so the echo should work correctly.
14775 lt_compile=`echo "$ac_compile" | $SED \
14776 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14777 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14778 -e 's:$: $lt_compiler_flag:'`
14779 (eval echo "\"\$as_me:14779: $lt_compile\"" >&5)
14780 (eval "$lt_compile" 2>out/conftest.err)
14782 cat out/conftest.err >&5
14783 echo "$as_me:14783: \$? = $ac_status" >&5
14784 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14786 # The compiler can only warn and ignore the option if not recognized
14787 # So say no if there are warnings
14788 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14789 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14790 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14791 lt_cv_prog_compiler_c_o_F77=yes
14796 # SGI C++ compiler will create directory out/ii_files/ for
14797 # template instantiation
14798 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14799 $rm out/* && rmdir out
14805 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14806 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14809 hard_links="nottested"
14810 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14811 # do not overwrite the value of need_locks provided by the user
14812 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14813 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14816 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14818 ln conftest.a conftest.b 2>&5 || hard_links=no
14819 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14820 { echo "$as_me:$LINENO: result: $hard_links" >&5
14821 echo "${ECHO_T}$hard_links" >&6; }
14822 if test "$hard_links" = no; then
14823 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14824 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14831 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14832 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14835 allow_undefined_flag_F77=
14836 enable_shared_with_static_runtimes_F77=no
14838 archive_expsym_cmds_F77=
14839 old_archive_From_new_cmds_F77=
14840 old_archive_from_expsyms_cmds_F77=
14841 export_dynamic_flag_spec_F77=
14842 whole_archive_flag_spec_F77=
14843 thread_safe_flag_spec_F77=
14844 hardcode_libdir_flag_spec_F77=
14845 hardcode_libdir_flag_spec_ld_F77=
14846 hardcode_libdir_separator_F77=
14847 hardcode_direct_F77=no
14848 hardcode_minus_L_F77=no
14849 hardcode_shlibpath_var_F77=unsupported
14850 link_all_deplibs_F77=unknown
14851 hardcode_automatic_F77=no
14853 module_expsym_cmds_F77=
14854 always_export_symbols_F77=no
14855 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14856 # include_expsyms should be a list of space-separated symbols to be *always*
14857 # included in the symbol list
14858 include_expsyms_F77=
14859 # exclude_expsyms can be an extended regexp of symbols to exclude
14860 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14861 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14862 # as well as any symbol that contains `d'.
14863 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14864 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14865 # platforms (ab)use it in PIC code, but their linkers get confused if
14866 # the symbol is explicitly referenced. Since portable code cannot
14867 # rely on this symbol name, it's probably fine to never include it in
14868 # preloaded symbol tables.
14869 # Exclude shared library initialization/finalization symbols.
14870 extract_expsyms_cmds=
14871 # Just being paranoid about ensuring that cc_basename is set.
14872 for cc_temp in $compiler""; do
14874 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14875 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14880 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14883 cygwin* | mingw* | pw32*)
14884 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14885 # When not using gcc, we currently assume that we are using
14886 # Microsoft Visual C++.
14887 if test "$GCC" != yes; then
14892 # we just hope/assume this is gcc and not c89 (= MSVC++)
14901 if test "$with_gnu_ld" = yes; then
14902 # If archive_cmds runs LD, not CC, wlarc should be empty
14905 # Set some defaults for GNU ld with shared library support. These
14906 # are reset later if shared libraries are not supported. Putting them
14907 # here allows them to be overridden if necessary.
14908 runpath_var=LD_RUN_PATH
14909 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14910 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14911 # ancient GNU ld didn't support --whole-archive et. al.
14912 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14913 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14915 whole_archive_flag_spec_F77=
14917 supports_anon_versioning=no
14918 case `$LD -v 2>/dev/null` in
14919 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14920 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14921 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14922 *\ 2.11.*) ;; # other 2.11 versions
14923 *) supports_anon_versioning=yes ;;
14926 # See if GNU ld supports shared libraries.
14929 # On AIX/PPC, the GNU linker is very broken
14930 if test "$host_cpu" != ia64; then
14934 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14935 *** to be unable to reliably create shared libraries on AIX.
14936 *** Therefore, libtool is disabling shared libraries support. If you
14937 *** really care for shared libraries, you may want to modify your PATH
14938 *** so that a non-GNU linker is found, and then restart.
14945 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)'
14946 hardcode_libdir_flag_spec_F77='-L$libdir'
14947 hardcode_minus_L_F77=yes
14949 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14950 # that the semantics of dynamic libraries on AmigaOS, at least up
14951 # to version 4, is to share data among multiple programs linked
14952 # with the same dynamic library. Since this doesn't match the
14953 # behavior of shared libraries on other platforms, we can't use
14959 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14960 allow_undefined_flag_F77=unsupported
14961 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14962 # support --undefined. This deserves some investigation. FIXME
14963 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14969 cygwin* | mingw* | pw32*)
14970 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14971 # as there is no search path for DLLs.
14972 hardcode_libdir_flag_spec_F77='-L$libdir'
14973 allow_undefined_flag_F77=unsupported
14974 always_export_symbols_F77=no
14975 enable_shared_with_static_runtimes_F77=yes
14976 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14978 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14979 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14980 # If the export-symbols file already is a .def file (1st line
14981 # is EXPORTS), use it as is; otherwise, prepend...
14982 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14983 cp $export_symbols $output_objdir/$soname.def;
14985 echo EXPORTS > $output_objdir/$soname.def;
14986 cat $export_symbols >> $output_objdir/$soname.def;
14988 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14995 hardcode_direct_F77=no
14996 hardcode_shlibpath_var_F77=no
14997 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14998 export_dynamic_flag_spec_F77='${wl}-E'
14999 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15000 # Instead, shared libraries are loaded at an image base (0x10000000 by
15001 # default) and relocated if they conflict, which is a slow very memory
15002 # consuming and fragmenting process. To avoid this, we pick a random,
15003 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15004 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15005 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'
15006 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'
15009 gnu* | linux* | k*bsd*-gnu)
15010 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15012 case $cc_basename,$host_cpu in
15013 pgcc*) # Portland Group C compiler
15014 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'
15015 tmp_addflag=' $pic_flag'
15017 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15018 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'
15019 tmp_addflag=' $pic_flag -Mnomain' ;;
15020 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15021 tmp_addflag=' -i_dynamic' ;;
15022 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15023 tmp_addflag=' -i_dynamic -nofor_main' ;;
15024 ifc* | ifort*) # Intel Fortran compiler
15025 tmp_addflag=' -nofor_main' ;;
15027 case `$CC -V 2>&1 | sed 5q` in
15028 *Sun\ C*) # Sun C 5.9
15029 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15030 tmp_sharedflag='-G' ;;
15031 *Sun\ F*) # Sun Fortran 8.3
15032 tmp_sharedflag='-G' ;;
15034 tmp_sharedflag='-shared' ;;
15036 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15038 if test $supports_anon_versioning = yes; then
15039 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15040 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15041 $echo "local: *; };" >> $output_objdir/$libname.ver~
15042 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15044 link_all_deplibs_F77=no
15050 netbsd* | netbsdelf*-gnu)
15051 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15052 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15055 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15056 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15061 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15065 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15066 *** create shared libraries on Solaris systems. Therefore, libtool
15067 *** is disabling shared libraries support. We urge you to upgrade GNU
15068 *** binutils to release 2.9.1 or newer. Another option is to modify
15069 *** your PATH or compiler configuration so that the native linker is
15070 *** used, and then restart.
15073 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15074 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15075 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15081 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15082 case `$LD -v 2>&1` in
15083 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15087 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15088 *** reliably create shared libraries on SCO systems. Therefore, libtool
15089 *** is disabling shared libraries support. We urge you to upgrade GNU
15090 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15091 *** your PATH or compiler configuration so that the native linker is
15092 *** used, and then restart.
15097 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15098 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15099 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15100 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15109 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15111 hardcode_direct_F77=yes
15112 hardcode_shlibpath_var_F77=no
15116 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15117 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15118 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15125 if test "$ld_shlibs_F77" = no; then
15127 hardcode_libdir_flag_spec_F77=
15128 export_dynamic_flag_spec_F77=
15129 whole_archive_flag_spec_F77=
15132 # PORTME fill in a description of your system's linker (not GNU ld)
15135 allow_undefined_flag_F77=unsupported
15136 always_export_symbols_F77=yes
15137 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'
15138 # Note: this linker hardcodes the directories in LIBPATH if there
15139 # are no directories specified by -L.
15140 hardcode_minus_L_F77=yes
15141 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15142 # Neither direct hardcoding nor static linking is supported with a
15144 hardcode_direct_F77=unsupported
15149 if test "$host_cpu" = ia64; then
15150 # On IA64, the linker does run time linking by default, so we don't
15151 # have to do anything special.
15152 aix_use_runtimelinking=no
15153 exp_sym_flag='-Bexport'
15156 # If we're using GNU nm, then we don't want the "-C" option.
15157 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15158 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15159 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'
15161 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'
15163 aix_use_runtimelinking=no
15165 # Test if we are trying to use run time linking or normal
15166 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15167 # need to do runtime linking.
15168 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15169 for ld_flag in $LDFLAGS; do
15170 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15171 aix_use_runtimelinking=yes
15178 exp_sym_flag='-bexport'
15179 no_entry_flag='-bnoentry'
15182 # When large executables or shared objects are built, AIX ld can
15183 # have problems creating the table of contents. If linking a library
15184 # or program results in "error TOC overflow" add -mminimal-toc to
15185 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15186 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15188 archive_cmds_F77=''
15189 hardcode_direct_F77=yes
15190 hardcode_libdir_separator_F77=':'
15191 link_all_deplibs_F77=yes
15193 if test "$GCC" = yes; then
15194 case $host_os in aix4.[012]|aix4.[012].*)
15195 # We only want to do this on AIX 4.2 and lower, the check
15196 # below for broken collect2 doesn't work under 4.3+
15197 collect2name=`${CC} -print-prog-name=collect2`
15198 if test -f "$collect2name" && \
15199 strings "$collect2name" | grep resolve_lib_name >/dev/null
15201 # We have reworked collect2
15204 # We have old collect2
15205 hardcode_direct_F77=unsupported
15206 # It fails to find uninstalled libraries when the uninstalled
15207 # path is not listed in the libpath. Setting hardcode_minus_L
15208 # to unsupported forces relinking
15209 hardcode_minus_L_F77=yes
15210 hardcode_libdir_flag_spec_F77='-L$libdir'
15211 hardcode_libdir_separator_F77=
15215 shared_flag='-shared'
15216 if test "$aix_use_runtimelinking" = yes; then
15217 shared_flag="$shared_flag "'${wl}-G'
15221 if test "$host_cpu" = ia64; then
15222 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15223 # chokes on -Wl,-G. The following line is correct:
15226 if test "$aix_use_runtimelinking" = yes; then
15227 shared_flag='${wl}-G'
15229 shared_flag='${wl}-bM:SRE'
15234 # It seems that -bexpall does not export symbols beginning with
15235 # underscore (_), so it is better to generate a list of symbols to export.
15236 always_export_symbols_F77=yes
15237 if test "$aix_use_runtimelinking" = yes; then
15238 # Warning - without using the other runtime loading flags (-brtl),
15239 # -berok will link without error, but may produce a broken library.
15240 allow_undefined_flag_F77='-berok'
15241 # Determine the default libpath from the value encoded in an empty executable.
15242 cat >conftest.$ac_ext <<_ACEOF
15247 rm -f conftest.$ac_objext conftest$ac_exeext
15248 if { (ac_try="$ac_link"
15249 case "(($ac_try" in
15250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15251 *) ac_try_echo=$ac_try;;
15253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15254 (eval "$ac_link") 2>conftest.er1
15256 grep -v '^ *+' conftest.er1 >conftest.err
15258 cat conftest.err >&5
15259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260 (exit $ac_status); } && {
15261 test -z "$ac_f77_werror_flag" ||
15262 test ! -s conftest.err
15263 } && test -s conftest$ac_exeext &&
15264 $as_test_x conftest$ac_exeext; then
15266 lt_aix_libpath_sed='
15267 /Import File Strings/,/^$/ {
15273 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15274 # Check for a 64-bit object if we didn't find anything.
15275 if test -z "$aix_libpath"; then
15276 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15279 echo "$as_me: failed program was:" >&5
15280 sed 's/^/| /' conftest.$ac_ext >&5
15285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15286 conftest$ac_exeext conftest.$ac_ext
15287 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15289 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15290 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"
15292 if test "$host_cpu" = ia64; then
15293 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15294 allow_undefined_flag_F77="-z nodefs"
15295 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"
15297 # Determine the default libpath from the value encoded in an empty executable.
15298 cat >conftest.$ac_ext <<_ACEOF
15303 rm -f conftest.$ac_objext conftest$ac_exeext
15304 if { (ac_try="$ac_link"
15305 case "(($ac_try" in
15306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15307 *) ac_try_echo=$ac_try;;
15309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15310 (eval "$ac_link") 2>conftest.er1
15312 grep -v '^ *+' conftest.er1 >conftest.err
15314 cat conftest.err >&5
15315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15316 (exit $ac_status); } && {
15317 test -z "$ac_f77_werror_flag" ||
15318 test ! -s conftest.err
15319 } && test -s conftest$ac_exeext &&
15320 $as_test_x conftest$ac_exeext; then
15322 lt_aix_libpath_sed='
15323 /Import File Strings/,/^$/ {
15329 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15330 # Check for a 64-bit object if we didn't find anything.
15331 if test -z "$aix_libpath"; then
15332 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15335 echo "$as_me: failed program was:" >&5
15336 sed 's/^/| /' conftest.$ac_ext >&5
15341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15342 conftest$ac_exeext conftest.$ac_ext
15343 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15345 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15346 # Warning - without using the other run time loading flags,
15347 # -berok will link without error, but may produce a broken library.
15348 no_undefined_flag_F77=' ${wl}-bernotok'
15349 allow_undefined_flag_F77=' ${wl}-berok'
15350 # Exported symbols can be pulled into shared objects from archives
15351 whole_archive_flag_spec_F77='$convenience'
15352 archive_cmds_need_lc_F77=yes
15353 # This is similar to how AIX traditionally builds its shared libraries.
15354 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'
15360 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)'
15361 hardcode_libdir_flag_spec_F77='-L$libdir'
15362 hardcode_minus_L_F77=yes
15363 # see comment about different semantics on the GNU ld section
15368 export_dynamic_flag_spec_F77=-rdynamic
15371 cygwin* | mingw* | pw32*)
15372 # When not using gcc, we currently assume that we are using
15373 # Microsoft Visual C++.
15374 # hardcode_libdir_flag_spec is actually meaningless, as there is
15375 # no search path for DLLs.
15376 hardcode_libdir_flag_spec_F77=' '
15377 allow_undefined_flag_F77=unsupported
15378 # Tell ltmain to make .lib files, not .a files.
15380 # Tell ltmain to make .dll files, not .so files.
15382 # FIXME: Setting linknames here is a bad hack.
15383 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15384 # The linker will automatically build a .lib file if we build a DLL.
15385 old_archive_From_new_cmds_F77='true'
15386 # FIXME: Should let the user specify the lib program.
15387 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15388 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15389 enable_shared_with_static_runtimes_F77=yes
15392 darwin* | rhapsody*)
15394 rhapsody* | darwin1.[012])
15395 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15398 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15399 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15401 case ${MACOSX_DEPLOYMENT_TARGET} in
15403 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15406 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15412 archive_cmds_need_lc_F77=no
15413 hardcode_direct_F77=no
15414 hardcode_automatic_F77=yes
15415 hardcode_shlibpath_var_F77=unsupported
15416 whole_archive_flag_spec_F77=''
15417 link_all_deplibs_F77=yes
15418 if test "$GCC" = yes ; then
15419 output_verbose_link_cmd='echo'
15420 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15421 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15422 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15423 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15425 case $cc_basename in
15427 output_verbose_link_cmd='echo'
15428 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15429 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15430 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15431 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15432 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}'
15442 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15443 hardcode_libdir_flag_spec_F77='-L$libdir'
15444 hardcode_shlibpath_var_F77=no
15451 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15452 # support. Future versions do this automatically, but an explicit c++rt0.o
15453 # does not break anything, and helps significantly (at the cost of a little
15456 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15457 hardcode_libdir_flag_spec_F77='-R$libdir'
15458 hardcode_direct_F77=yes
15459 hardcode_shlibpath_var_F77=no
15462 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15464 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15465 hardcode_direct_F77=yes
15466 hardcode_minus_L_F77=yes
15467 hardcode_shlibpath_var_F77=no
15470 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15471 freebsd* | dragonfly*)
15472 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15473 hardcode_libdir_flag_spec_F77='-R$libdir'
15474 hardcode_direct_F77=yes
15475 hardcode_shlibpath_var_F77=no
15479 if test "$GCC" = yes; then
15480 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'
15482 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'
15484 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15485 hardcode_libdir_separator_F77=:
15486 hardcode_direct_F77=yes
15488 # hardcode_minus_L: Not really in the search PATH,
15489 # but as the default location of the library.
15490 hardcode_minus_L_F77=yes
15491 export_dynamic_flag_spec_F77='${wl}-E'
15495 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15496 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15498 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15500 if test "$with_gnu_ld" = no; then
15501 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15502 hardcode_libdir_separator_F77=:
15504 hardcode_direct_F77=yes
15505 export_dynamic_flag_spec_F77='${wl}-E'
15507 # hardcode_minus_L: Not really in the search PATH,
15508 # but as the default location of the library.
15509 hardcode_minus_L_F77=yes
15514 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15517 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15520 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15523 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15529 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15532 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15535 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15539 if test "$with_gnu_ld" = no; then
15540 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15541 hardcode_libdir_separator_F77=:
15545 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15546 hardcode_direct_F77=no
15547 hardcode_shlibpath_var_F77=no
15550 hardcode_direct_F77=yes
15551 export_dynamic_flag_spec_F77='${wl}-E'
15553 # hardcode_minus_L: Not really in the search PATH,
15554 # but as the default location of the library.
15555 hardcode_minus_L_F77=yes
15561 irix5* | irix6* | nonstopux*)
15562 if test "$GCC" = yes; then
15563 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'
15565 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'
15566 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15568 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15569 hardcode_libdir_separator_F77=:
15570 link_all_deplibs_F77=yes
15573 netbsd* | netbsdelf*-gnu)
15574 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15575 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15577 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15579 hardcode_libdir_flag_spec_F77='-R$libdir'
15580 hardcode_direct_F77=yes
15581 hardcode_shlibpath_var_F77=no
15585 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15586 hardcode_direct_F77=yes
15587 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15588 hardcode_libdir_separator_F77=:
15589 hardcode_shlibpath_var_F77=no
15593 if test -f /usr/libexec/ld.so; then
15594 hardcode_direct_F77=yes
15595 hardcode_shlibpath_var_F77=no
15596 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15597 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15598 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15599 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15600 export_dynamic_flag_spec_F77='${wl}-E'
15603 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15604 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15605 hardcode_libdir_flag_spec_F77='-R$libdir'
15608 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15609 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15619 hardcode_libdir_flag_spec_F77='-L$libdir'
15620 hardcode_minus_L_F77=yes
15621 allow_undefined_flag_F77=unsupported
15622 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'
15623 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15627 if test "$GCC" = yes; then
15628 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15629 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'
15631 allow_undefined_flag_F77=' -expect_unresolved \*'
15632 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'
15634 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15635 hardcode_libdir_separator_F77=:
15638 osf4* | osf5*) # as osf3* with the addition of -msym flag
15639 if test "$GCC" = yes; then
15640 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15641 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'
15642 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15644 allow_undefined_flag_F77=' -expect_unresolved \*'
15645 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'
15646 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~
15647 $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'
15649 # Both c and cxx compiler support -rpath directly
15650 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15652 hardcode_libdir_separator_F77=:
15656 no_undefined_flag_F77=' -z text'
15657 if test "$GCC" = yes; then
15659 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15660 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15661 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15664 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15665 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15666 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15668 hardcode_libdir_flag_spec_F77='-R$libdir'
15669 hardcode_shlibpath_var_F77=no
15671 solaris2.[0-5] | solaris2.[0-5].*) ;;
15673 # The compiler driver will combine and reorder linker options,
15674 # but understands `-z linker_flag'. GCC discards it without `$wl',
15675 # but is careful enough not to reorder.
15676 # Supported since Solaris 2.6 (maybe 2.5.1?)
15677 if test "$GCC" = yes; then
15678 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15680 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15684 link_all_deplibs_F77=yes
15688 if test "x$host_vendor" = xsequent; then
15689 # Use $CC to link under sequent, because it throws in some extra .o
15690 # files that make .init and .fini sections work.
15691 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15693 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15695 hardcode_libdir_flag_spec_F77='-L$libdir'
15696 hardcode_direct_F77=yes
15697 hardcode_minus_L_F77=yes
15698 hardcode_shlibpath_var_F77=no
15702 case $host_vendor in
15704 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15705 hardcode_direct_F77=yes # is this really true???
15708 ## LD is ld it makes a PLAMLIB
15709 ## CC just makes a GrossModule.
15710 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15711 reload_cmds_F77='$CC -r -o $output$reload_objs'
15712 hardcode_direct_F77=no
15715 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15716 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15719 runpath_var='LD_RUN_PATH'
15720 hardcode_shlibpath_var_F77=no
15724 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15725 hardcode_shlibpath_var_F77=no
15726 export_dynamic_flag_spec_F77='-Bexport'
15730 if test -d /usr/nec; then
15731 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15732 hardcode_shlibpath_var_F77=no
15733 runpath_var=LD_RUN_PATH
15734 hardcode_runpath_var=yes
15739 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15740 no_undefined_flag_F77='${wl}-z,text'
15741 archive_cmds_need_lc_F77=no
15742 hardcode_shlibpath_var_F77=no
15743 runpath_var='LD_RUN_PATH'
15745 if test "$GCC" = yes; then
15746 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15747 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15749 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15750 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15754 sysv5* | sco3.2v5* | sco5v6*)
15755 # Note: We can NOT use -z defs as we might desire, because we do not
15756 # link with -lc, and that would cause any symbols used from libc to
15757 # always be unresolved, which means just about no library would
15758 # ever link correctly. If we're not using GNU ld we use -z text
15759 # though, which does catch some bad symbols but isn't as heavy-handed
15761 no_undefined_flag_F77='${wl}-z,text'
15762 allow_undefined_flag_F77='${wl}-z,nodefs'
15763 archive_cmds_need_lc_F77=no
15764 hardcode_shlibpath_var_F77=no
15765 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15766 hardcode_libdir_separator_F77=':'
15767 link_all_deplibs_F77=yes
15768 export_dynamic_flag_spec_F77='${wl}-Bexport'
15769 runpath_var='LD_RUN_PATH'
15771 if test "$GCC" = yes; then
15772 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15773 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15775 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15776 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15781 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15782 hardcode_libdir_flag_spec_F77='-L$libdir'
15783 hardcode_shlibpath_var_F77=no
15792 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15793 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15794 test "$ld_shlibs_F77" = no && can_build_shared=no
15797 # Do we need to explicitly link libc?
15799 case "x$archive_cmds_need_lc_F77" in
15801 # Assume -lc should be added
15802 archive_cmds_need_lc_F77=yes
15804 if test "$enable_shared" = yes && test "$GCC" = yes; then
15805 case $archive_cmds_F77 in
15807 # FIXME: we may have to deal with multi-command sequences.
15810 # Test whether the compiler implicitly links with -lc since on some
15811 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15812 # to ld, don't add -lc before -lgcc.
15813 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15814 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15816 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15819 (eval $ac_compile) 2>&5
15821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822 (exit $ac_status); } 2>conftest.err; then
15825 libobjs=conftest.$ac_objext
15827 wl=$lt_prog_compiler_wl_F77
15828 pic_flag=$lt_prog_compiler_pic_F77
15834 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15835 allow_undefined_flag_F77=
15836 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15837 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840 (exit $ac_status); }
15842 archive_cmds_need_lc_F77=no
15844 archive_cmds_need_lc_F77=yes
15846 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15848 cat conftest.err 1>&5
15851 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15852 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15859 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15860 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15861 library_names_spec=
15862 libname_spec='lib$name'
15866 postuninstall_cmds=
15870 shlibpath_overrides_runpath=unknown
15872 dynamic_linker="$host_os ld.so"
15873 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15875 need_lib_prefix=unknown
15876 hardcode_into_libs=no
15878 # when you set need_version to no, make sure it does not cause -set_version
15879 # flags to be left without arguments
15880 need_version=unknown
15885 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15886 shlibpath_var=LIBPATH
15888 # AIX 3 has no versioning support, so we append a major version to the name.
15889 soname_spec='${libname}${release}${shared_ext}$major'
15896 hardcode_into_libs=yes
15897 if test "$host_cpu" = ia64; then
15898 # AIX 5 supports IA64
15899 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15900 shlibpath_var=LD_LIBRARY_PATH
15902 # With GCC up to 2.95.x, collect2 would create an import file
15903 # for dependence libraries. The import file would start with
15904 # the line `#! .'. This would cause the generated library to
15905 # depend on `.', always an invalid library. This was fixed in
15906 # development snapshots of GCC prior to 3.0.
15908 aix4 | aix4.[01] | aix4.[01].*)
15909 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15911 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15914 can_build_shared=no
15918 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15919 # soname into executable. Probably we can add versioning support to
15920 # collect2, so additional links can be useful in future.
15921 if test "$aix_use_runtimelinking" = yes; then
15922 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15923 # instead of lib<name>.a to let people know that these are not
15924 # typical AIX shared libraries.
15925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15927 # We preserve .a as extension for shared libraries through AIX4.2
15928 # and later when we are not doing run time linking.
15929 library_names_spec='${libname}${release}.a $libname.a'
15930 soname_spec='${libname}${release}${shared_ext}$major'
15932 shlibpath_var=LIBPATH
15937 library_names_spec='$libname.ixlibrary $libname.a'
15938 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15939 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'
15943 library_names_spec='${libname}${shared_ext}'
15944 dynamic_linker="$host_os ld.so"
15945 shlibpath_var=LIBRARY_PATH
15951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15952 soname_spec='${libname}${release}${shared_ext}$major'
15953 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15954 shlibpath_var=LD_LIBRARY_PATH
15955 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15956 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15957 # the default ld.so.conf also contains /usr/contrib/lib and
15958 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15959 # libtool to hard-code these into programs
15962 cygwin* | mingw* | pw32*)
15963 version_type=windows
15968 case $GCC,$host_os in
15969 yes,cygwin* | yes,mingw* | yes,pw32*)
15970 library_names_spec='$libname.dll.a'
15971 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15972 postinstall_cmds='base_file=`basename \${file}`~
15973 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15974 dldir=$destdir/`dirname \$dlpath`~
15975 test -d \$dldir || mkdir -p \$dldir~
15976 $install_prog $dir/$dlname \$dldir/$dlname~
15977 chmod a+x \$dldir/$dlname'
15978 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15979 dlpath=$dir/\$dldll~
15981 shlibpath_overrides_runpath=yes
15985 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15986 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15987 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15990 # MinGW DLLs use traditional 'lib' prefix
15991 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15992 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15993 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15994 # It is most probably a Windows format PATH printed by
15995 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15996 # path with ; separators, and with drive letters. We can handle the
15997 # drive letters (cygwin fileutils understands them), so leave them,
15998 # especially as we might pass files found there to a mingw objdump,
15999 # which wouldn't understand a cygwinified path. Ahh.
16000 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16002 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16006 # pw32 DLLs use 'pw' prefix rather than 'lib'
16007 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16013 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16016 dynamic_linker='Win32 ld.exe'
16017 # FIXME: first we should search . and the directory the executable is in
16021 darwin* | rhapsody*)
16022 dynamic_linker="$host_os dyld"
16023 version_type=darwin
16026 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16027 soname_spec='${libname}${release}${major}$shared_ext'
16028 shlibpath_overrides_runpath=yes
16029 shlibpath_var=DYLD_LIBRARY_PATH
16030 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16032 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16040 soname_spec='${libname}${release}${shared_ext}$major'
16041 shlibpath_var=LD_LIBRARY_PATH
16048 freebsd* | dragonfly*)
16049 # DragonFly does not have aout. When/if they implement a new
16050 # versioning mechanism, adjust this.
16051 if test -x /usr/bin/objformat; then
16052 objformat=`/usr/bin/objformat`
16055 freebsd[123]*) objformat=aout ;;
16056 *) objformat=elf ;;
16059 version_type=freebsd-$objformat
16060 case $version_type in
16062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16067 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16071 shlibpath_var=LD_LIBRARY_PATH
16074 shlibpath_overrides_runpath=yes
16076 freebsd3.[01]* | freebsdelf3.[01]*)
16077 shlibpath_overrides_runpath=yes
16078 hardcode_into_libs=yes
16080 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16081 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16082 shlibpath_overrides_runpath=no
16083 hardcode_into_libs=yes
16085 *) # from 4.6 on, and DragonFly
16086 shlibpath_overrides_runpath=yes
16087 hardcode_into_libs=yes
16096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16097 soname_spec='${libname}${release}${shared_ext}$major'
16098 shlibpath_var=LD_LIBRARY_PATH
16099 hardcode_into_libs=yes
16102 hpux9* | hpux10* | hpux11*)
16103 # Give a soname corresponding to the major version so that dld.sl refuses to
16104 # link against other versions.
16111 hardcode_into_libs=yes
16112 dynamic_linker="$host_os dld.so"
16113 shlibpath_var=LD_LIBRARY_PATH
16114 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16116 soname_spec='${libname}${release}${shared_ext}$major'
16117 if test "X$HPUX_IA64_MODE" = X32; then
16118 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16120 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16122 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16126 hardcode_into_libs=yes
16127 dynamic_linker="$host_os dld.sl"
16128 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16129 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16131 soname_spec='${libname}${release}${shared_ext}$major'
16132 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16133 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16137 dynamic_linker="$host_os dld.sl"
16138 shlibpath_var=SHLIB_PATH
16139 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16141 soname_spec='${libname}${release}${shared_ext}$major'
16144 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16145 postinstall_cmds='chmod 555 $lib'
16152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16153 soname_spec='${libname}${release}${shared_ext}$major'
16154 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16155 shlibpath_var=LD_LIBRARY_PATH
16156 shlibpath_overrides_runpath=no
16157 hardcode_into_libs=yes
16160 irix5* | irix6* | nonstopux*)
16162 nonstopux*) version_type=nonstopux ;;
16164 if test "$lt_cv_prog_gnu_ld" = yes; then
16172 soname_spec='${libname}${release}${shared_ext}$major'
16173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16175 irix5* | nonstopux*)
16176 libsuff= shlibsuff=
16179 case $LD in # libtool.m4 will add one of these switches to LD
16180 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16181 libsuff= shlibsuff= libmagic=32-bit;;
16182 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16183 libsuff=32 shlibsuff=N32 libmagic=N32;;
16184 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16185 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16186 *) libsuff= shlibsuff= libmagic=never-match;;
16190 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16191 shlibpath_overrides_runpath=no
16192 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16193 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16194 hardcode_into_libs=yes
16197 # No shared lib support for Linux oldld, aout, or coff.
16198 linux*oldld* | linux*aout* | linux*coff*)
16202 # This must be Linux ELF.
16203 linux* | k*bsd*-gnu)
16207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16208 soname_spec='${libname}${release}${shared_ext}$major'
16209 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16210 shlibpath_var=LD_LIBRARY_PATH
16211 shlibpath_overrides_runpath=no
16212 # This implies no fast_install, which is unacceptable.
16213 # Some rework will be needed to allow for fast_install
16214 # before this can be enabled.
16215 hardcode_into_libs=yes
16217 # Append ld.so.conf contents to the search path
16218 if test -f /etc/ld.so.conf; then
16219 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16220 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16223 # We used to test for /lib/ld.so.1 and disable shared libraries on
16224 # powerpc, because MkLinux only supported shared libraries with the
16225 # GNU dynamic linker. Since this was broken with cross compilers,
16226 # most powerpc-linux boxes support dynamic linking these days and
16227 # people can always --disable-shared, the test was removed, and we
16228 # assume the GNU/Linux dynamic linker is in use.
16229 dynamic_linker='GNU/Linux ld.so'
16236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16237 soname_spec='${libname}${release}${shared_ext}$major'
16238 shlibpath_var=LD_LIBRARY_PATH
16239 shlibpath_overrides_runpath=no
16240 hardcode_into_libs=yes
16241 dynamic_linker='NetBSD ld.elf_so'
16248 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16250 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16251 dynamic_linker='NetBSD (a.out) ld.so'
16253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16254 soname_spec='${libname}${release}${shared_ext}$major'
16255 dynamic_linker='NetBSD ld.elf_so'
16257 shlibpath_var=LD_LIBRARY_PATH
16258 shlibpath_overrides_runpath=yes
16259 hardcode_into_libs=yes
16264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16265 shlibpath_var=LD_LIBRARY_PATH
16266 shlibpath_overrides_runpath=yes
16273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16274 soname_spec='${libname}${release}${shared_ext}$major'
16275 shlibpath_var=LD_LIBRARY_PATH
16276 shlibpath_overrides_runpath=yes
16281 sys_lib_dlsearch_path_spec="/usr/lib"
16283 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16285 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16286 *) need_version=no ;;
16288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16289 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16290 shlibpath_var=LD_LIBRARY_PATH
16291 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16293 openbsd2.[89] | openbsd2.[89].*)
16294 shlibpath_overrides_runpath=no
16297 shlibpath_overrides_runpath=yes
16301 shlibpath_overrides_runpath=yes
16306 libname_spec='$name'
16309 library_names_spec='$libname${shared_ext} $libname.a'
16310 dynamic_linker='OS/2 ld.exe'
16311 shlibpath_var=LIBPATH
16314 osf3* | osf4* | osf5*)
16318 soname_spec='${libname}${release}${shared_ext}$major'
16319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16320 shlibpath_var=LD_LIBRARY_PATH
16321 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16322 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16334 soname_spec='${libname}${release}${shared_ext}$major'
16335 shlibpath_var=LD_LIBRARY_PATH
16336 shlibpath_overrides_runpath=yes
16337 hardcode_into_libs=yes
16338 # ldd complains unless libraries are executable
16339 postinstall_cmds='chmod +x $lib'
16344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16345 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16346 shlibpath_var=LD_LIBRARY_PATH
16347 shlibpath_overrides_runpath=yes
16348 if test "$with_gnu_ld" = yes; then
16356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16357 soname_spec='${libname}${release}${shared_ext}$major'
16358 shlibpath_var=LD_LIBRARY_PATH
16359 case $host_vendor in
16361 shlibpath_overrides_runpath=no
16363 export_dynamic_flag_spec='${wl}-Blargedynsym'
16364 runpath_var=LD_RUN_PATH
16372 shlibpath_overrides_runpath=no
16373 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16379 if test -d /usr/nec ;then
16381 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16382 soname_spec='$libname${shared_ext}.$major'
16383 shlibpath_var=LD_LIBRARY_PATH
16387 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16388 version_type=freebsd-elf
16391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16392 soname_spec='${libname}${release}${shared_ext}$major'
16393 shlibpath_var=LD_LIBRARY_PATH
16394 hardcode_into_libs=yes
16395 if test "$with_gnu_ld" = yes; then
16396 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16397 shlibpath_overrides_runpath=no
16399 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16400 shlibpath_overrides_runpath=yes
16403 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16407 sys_lib_dlsearch_path_spec='/usr/lib'
16412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16413 soname_spec='${libname}${release}${shared_ext}$major'
16414 shlibpath_var=LD_LIBRARY_PATH
16421 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16422 echo "${ECHO_T}$dynamic_linker" >&6; }
16423 test "$dynamic_linker" = no && can_build_shared=no
16425 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16426 echo $ECHO_N "(cached) $ECHO_C" >&6
16428 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16431 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16432 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16433 echo $ECHO_N "(cached) $ECHO_C" >&6
16435 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16438 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16440 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16441 if test "$GCC" = yes; then
16442 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16445 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16446 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16447 hardcode_action_F77=
16448 if test -n "$hardcode_libdir_flag_spec_F77" || \
16449 test -n "$runpath_var_F77" || \
16450 test "X$hardcode_automatic_F77" = "Xyes" ; then
16452 # We can hardcode non-existant directories.
16453 if test "$hardcode_direct_F77" != no &&
16454 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16455 # have to relink, otherwise we might link with an installed library
16456 # when we should be linking with a yet-to-be-installed one
16457 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16458 test "$hardcode_minus_L_F77" != no; then
16459 # Linking always hardcodes the temporary library directory.
16460 hardcode_action_F77=relink
16462 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16463 hardcode_action_F77=immediate
16466 # We cannot hardcode anything, or else we can only hardcode existing
16468 hardcode_action_F77=unsupported
16470 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16471 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16473 if test "$hardcode_action_F77" = relink; then
16474 # Fast installation is not supported
16475 enable_fast_install=no
16476 elif test "$shlibpath_overrides_runpath" = yes ||
16477 test "$enable_shared" = no; then
16478 # Fast installation is not necessary
16479 enable_fast_install=needless
16483 # The else clause should only fire when bootstrapping the
16484 # libtool distribution, otherwise you forgot to ship ltmain.sh
16485 # with your package, and you will get complaints that there are
16486 # no rules to generate ltmain.sh.
16487 if test -f "$ltmain"; then
16488 # See if we are running on zsh, and set the options which allow our commands through
16489 # without removal of \ escapes.
16490 if test -n "${ZSH_VERSION+set}" ; then
16491 setopt NO_GLOB_SUBST
16493 # Now quote all the things that may contain metacharacters while being
16494 # careful not to overquote the AC_SUBSTed values. We take copies of the
16495 # variables and quote the copies for generation of the libtool script.
16496 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16498 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16499 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16500 deplibs_check_method reload_flag reload_cmds need_locks \
16501 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16502 lt_cv_sys_global_symbol_to_c_name_address \
16503 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16504 old_postinstall_cmds old_postuninstall_cmds \
16508 lt_prog_compiler_wl_F77 \
16509 lt_prog_compiler_pic_F77 \
16510 lt_prog_compiler_static_F77 \
16511 lt_prog_compiler_no_builtin_flag_F77 \
16512 export_dynamic_flag_spec_F77 \
16513 thread_safe_flag_spec_F77 \
16514 whole_archive_flag_spec_F77 \
16515 enable_shared_with_static_runtimes_F77 \
16516 old_archive_cmds_F77 \
16517 old_archive_from_new_cmds_F77 \
16518 predep_objects_F77 \
16519 postdep_objects_F77 \
16522 compiler_lib_search_path_F77 \
16523 compiler_lib_search_dirs_F77 \
16525 archive_expsym_cmds_F77 \
16526 postinstall_cmds_F77 \
16527 postuninstall_cmds_F77 \
16528 old_archive_from_expsyms_cmds_F77 \
16529 allow_undefined_flag_F77 \
16530 no_undefined_flag_F77 \
16531 export_symbols_cmds_F77 \
16532 hardcode_libdir_flag_spec_F77 \
16533 hardcode_libdir_flag_spec_ld_F77 \
16534 hardcode_libdir_separator_F77 \
16535 hardcode_automatic_F77 \
16537 module_expsym_cmds_F77 \
16538 lt_cv_prog_compiler_c_o_F77 \
16539 fix_srcfile_path_F77 \
16540 exclude_expsyms_F77 \
16541 include_expsyms_F77; do
16544 old_archive_cmds_F77 | \
16545 old_archive_from_new_cmds_F77 | \
16546 archive_cmds_F77 | \
16547 archive_expsym_cmds_F77 | \
16548 module_cmds_F77 | \
16549 module_expsym_cmds_F77 | \
16550 old_archive_from_expsyms_cmds_F77 | \
16551 export_symbols_cmds_F77 | \
16552 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16553 postinstall_cmds | postuninstall_cmds | \
16554 old_postinstall_cmds | old_postuninstall_cmds | \
16555 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16556 # Double-quote double-evaled strings.
16557 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16560 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16566 *'\$0 --fallback-echo"')
16567 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16573 cat <<__EOF__ >> "$cfgfile"
16574 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16576 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16578 # Shell to use when invoking shell scripts.
16581 # Whether or not to build shared libraries.
16582 build_libtool_libs=$enable_shared
16584 # Whether or not to build static libraries.
16585 build_old_libs=$enable_static
16587 # Whether or not to add -lc for building shared libraries.
16588 build_libtool_need_lc=$archive_cmds_need_lc_F77
16590 # Whether or not to disallow shared libs when runtime libs are static
16591 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16593 # Whether or not to optimize for fast installation.
16594 fast_install=$enable_fast_install
16597 host_alias=$host_alias
16601 # The build system.
16602 build_alias=$build_alias
16606 # An echo program that does not interpret backslashes.
16611 AR_FLAGS=$lt_AR_FLAGS
16616 # LTCC compiler flags.
16617 LTCFLAGS=$lt_LTCFLAGS
16619 # A language-specific compiler.
16620 CC=$lt_compiler_F77
16622 # Is the compiler the GNU C compiler?
16628 # The linker used to build libraries.
16631 # Whether we need hard or soft links.
16634 # A BSD-compatible nm program.
16637 # A symbol stripping program
16640 # Used to examine libraries when file_magic_cmd begins "file"
16641 MAGIC_CMD=$MAGIC_CMD
16643 # Used on cygwin: DLL creation program.
16646 # Used on cygwin: object dumper.
16649 # Used on cygwin: assembler.
16652 # The name of the directory that contains temporary libtool files.
16655 # How to create reloadable object files.
16656 reload_flag=$lt_reload_flag
16657 reload_cmds=$lt_reload_cmds
16659 # How to pass a linker flag through the compiler.
16660 wl=$lt_lt_prog_compiler_wl_F77
16662 # Object file suffix (normally "o").
16663 objext="$ac_objext"
16665 # Old archive suffix (normally "a").
16668 # Shared library suffix (normally ".so").
16669 shrext_cmds='$shrext_cmds'
16671 # Executable file suffix (normally "").
16674 # Additional compiler flags for building library objects.
16675 pic_flag=$lt_lt_prog_compiler_pic_F77
16678 # What is the maximum length of a command?
16679 max_cmd_len=$lt_cv_sys_max_cmd_len
16681 # Does compiler simultaneously support -c and -o options?
16682 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16684 # Must we lock files when doing compilation?
16685 need_locks=$lt_need_locks
16687 # Do we need the lib prefix for modules?
16688 need_lib_prefix=$need_lib_prefix
16690 # Do we need a version for libraries?
16691 need_version=$need_version
16693 # Whether dlopen is supported.
16694 dlopen_support=$enable_dlopen
16696 # Whether dlopen of programs is supported.
16697 dlopen_self=$enable_dlopen_self
16699 # Whether dlopen of statically linked programs is supported.
16700 dlopen_self_static=$enable_dlopen_self_static
16702 # Compiler flag to prevent dynamic linking.
16703 link_static_flag=$lt_lt_prog_compiler_static_F77
16705 # Compiler flag to turn off builtin functions.
16706 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16708 # Compiler flag to allow reflexive dlopens.
16709 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16711 # Compiler flag to generate shared objects directly from archives.
16712 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16714 # Compiler flag to generate thread-safe objects.
16715 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16717 # Library versioning type.
16718 version_type=$version_type
16720 # Format of library name prefix.
16721 libname_spec=$lt_libname_spec
16723 # List of archive names. First name is the real one, the rest are links.
16724 # The last name is the one that the linker finds with -lNAME.
16725 library_names_spec=$lt_library_names_spec
16727 # The coded name of the library, if different from the real name.
16728 soname_spec=$lt_soname_spec
16730 # Commands used to build and install an old-style archive.
16732 old_archive_cmds=$lt_old_archive_cmds_F77
16733 old_postinstall_cmds=$lt_old_postinstall_cmds
16734 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16736 # Create an old-style archive from a shared archive.
16737 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16739 # Create a temporary old-style archive to link instead of a shared archive.
16740 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16742 # Commands used to build and install a shared archive.
16743 archive_cmds=$lt_archive_cmds_F77
16744 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16745 postinstall_cmds=$lt_postinstall_cmds
16746 postuninstall_cmds=$lt_postuninstall_cmds
16748 # Commands used to build a loadable module (assumed same as above if empty)
16749 module_cmds=$lt_module_cmds_F77
16750 module_expsym_cmds=$lt_module_expsym_cmds_F77
16752 # Commands to strip libraries.
16753 old_striplib=$lt_old_striplib
16754 striplib=$lt_striplib
16756 # Dependencies to place before the objects being linked to create a
16758 predep_objects=$lt_predep_objects_F77
16760 # Dependencies to place after the objects being linked to create a
16762 postdep_objects=$lt_postdep_objects_F77
16764 # Dependencies to place before the objects being linked to create a
16766 predeps=$lt_predeps_F77
16768 # Dependencies to place after the objects being linked to create a
16770 postdeps=$lt_postdeps_F77
16772 # The directories searched by this compiler when creating a shared
16774 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16776 # The library search path used internally by the compiler when linking
16777 # a shared library.
16778 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16780 # Method to check whether dependent libraries are shared objects.
16781 deplibs_check_method=$lt_deplibs_check_method
16783 # Command to use when deplibs_check_method == file_magic.
16784 file_magic_cmd=$lt_file_magic_cmd
16786 # Flag that allows shared libraries with undefined symbols to be built.
16787 allow_undefined_flag=$lt_allow_undefined_flag_F77
16789 # Flag that forces no undefined symbols.
16790 no_undefined_flag=$lt_no_undefined_flag_F77
16792 # Commands used to finish a libtool library installation in a directory.
16793 finish_cmds=$lt_finish_cmds
16795 # Same as above, but a single script fragment to be evaled but not shown.
16796 finish_eval=$lt_finish_eval
16798 # Take the output of nm and produce a listing of raw symbols and C names.
16799 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16801 # Transform the output of nm in a proper C declaration
16802 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16804 # Transform the output of nm in a C name address pair
16805 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16807 # This is the shared library runtime path variable.
16808 runpath_var=$runpath_var
16810 # This is the shared library path variable.
16811 shlibpath_var=$shlibpath_var
16813 # Is shlibpath searched before the hard-coded library search path?
16814 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16816 # How to hardcode a shared library path into an executable.
16817 hardcode_action=$hardcode_action_F77
16819 # Whether we should hardcode library paths into libraries.
16820 hardcode_into_libs=$hardcode_into_libs
16822 # Flag to hardcode \$libdir into a binary during linking.
16823 # This must work even if \$libdir does not exist.
16824 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16826 # If ld is used when linking, flag to hardcode \$libdir into
16827 # a binary during linking. This must work even if \$libdir does
16829 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16831 # Whether we need a single -rpath flag with a separated argument.
16832 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16834 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16835 # resulting binary.
16836 hardcode_direct=$hardcode_direct_F77
16838 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16839 # resulting binary.
16840 hardcode_minus_L=$hardcode_minus_L_F77
16842 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16843 # the resulting binary.
16844 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16846 # Set to yes if building a shared library automatically hardcodes DIR into the library
16847 # and all subsequent libraries and executables linked against it.
16848 hardcode_automatic=$hardcode_automatic_F77
16850 # Variables whose values should be saved in libtool wrapper scripts and
16851 # restored at relink time.
16852 variables_saved_for_relink="$variables_saved_for_relink"
16854 # Whether libtool must link a program against all its dependency libraries.
16855 link_all_deplibs=$link_all_deplibs_F77
16857 # Compile-time system search path for libraries
16858 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16860 # Run-time system search path for libraries
16861 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16863 # Fix the shell variable \$srcfile for the compiler.
16864 fix_srcfile_path=$lt_fix_srcfile_path
16866 # Set to yes if exported symbols are required.
16867 always_export_symbols=$always_export_symbols_F77
16869 # The commands to list exported symbols.
16870 export_symbols_cmds=$lt_export_symbols_cmds_F77
16872 # The commands to extract the exported symbol list from a shared archive.
16873 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16875 # Symbols that should not be listed in the preloaded symbols.
16876 exclude_expsyms=$lt_exclude_expsyms_F77
16878 # Symbols that must always be exported.
16879 include_expsyms=$lt_include_expsyms_F77
16881 # ### END LIBTOOL TAG CONFIG: $tagname
16887 # If there is no Makefile yet, we rely on a make rule to execute
16888 # `config.status --recheck' to rerun these tests and create the
16889 # libtool script then.
16890 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16891 if test -f "$ltmain_in"; then
16892 test -f Makefile && make "$ltmain"
16898 ac_cpp='$CPP $CPPFLAGS'
16899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16911 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16914 # Source file extension for Java test sources.
16917 # Object file extension for compiled Java test sources.
16921 # Code to be used in simple compile tests
16922 lt_simple_compile_test_code="class foo {}"
16924 # Code to be used in simple link tests
16925 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16927 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16929 # If no C compiler was specified, use CC.
16932 # If no C compiler flags were specified, use CFLAGS.
16933 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16935 # Allow CC to be a program name with arguments.
16939 # save warnings/boilerplate of simple test code
16940 ac_outfile=conftest.$ac_objext
16941 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16942 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16943 _lt_compiler_boilerplate=`cat conftest.err`
16946 ac_outfile=conftest.$ac_objext
16947 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16948 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16949 _lt_linker_boilerplate=`cat conftest.err`
16953 # Allow CC to be a program name with arguments.
16958 for cc_temp in $compiler""; do
16960 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16961 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16966 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16969 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16970 archive_cmds_need_lc_GCJ=no
16972 old_archive_cmds_GCJ=$old_archive_cmds
16975 lt_prog_compiler_no_builtin_flag_GCJ=
16977 if test "$GCC" = yes; then
16978 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16981 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16982 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16983 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16984 echo $ECHO_N "(cached) $ECHO_C" >&6
16986 lt_cv_prog_compiler_rtti_exceptions=no
16987 ac_outfile=conftest.$ac_objext
16988 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16989 lt_compiler_flag="-fno-rtti -fno-exceptions"
16990 # Insert the option either (1) after the last *FLAGS variable, or
16991 # (2) before a word containing "conftest.", or (3) at the end.
16992 # Note that $ac_compile itself does not contain backslashes and begins
16993 # with a dollar sign (not a hyphen), so the echo should work correctly.
16994 # The option is referenced via a variable to avoid confusing sed.
16995 lt_compile=`echo "$ac_compile" | $SED \
16996 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16997 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16998 -e 's:$: $lt_compiler_flag:'`
16999 (eval echo "\"\$as_me:16999: $lt_compile\"" >&5)
17000 (eval "$lt_compile" 2>conftest.err)
17002 cat conftest.err >&5
17003 echo "$as_me:17003: \$? = $ac_status" >&5
17004 if (exit $ac_status) && test -s "$ac_outfile"; then
17005 # The compiler can only warn and ignore the option if not recognized
17006 # So say no if there are warnings other than the usual output.
17007 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17008 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17009 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17010 lt_cv_prog_compiler_rtti_exceptions=yes
17016 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17017 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17019 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17020 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17027 lt_prog_compiler_wl_GCJ=
17028 lt_prog_compiler_pic_GCJ=
17029 lt_prog_compiler_static_GCJ=
17031 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17032 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17034 if test "$GCC" = yes; then
17035 lt_prog_compiler_wl_GCJ='-Wl,'
17036 lt_prog_compiler_static_GCJ='-static'
17040 # All AIX code is PIC.
17041 if test "$host_cpu" = ia64; then
17042 # AIX 5 now supports IA64 processor
17043 lt_prog_compiler_static_GCJ='-Bstatic'
17048 # FIXME: we need at least 68020 code to build shared libraries, but
17049 # adding the `-m68020' flag to GCC prevents building anything better,
17051 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17054 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17055 # PIC is the default for these OSes.
17058 mingw* | cygwin* | pw32* | os2*)
17059 # This hack is so that the source file can tell whether it is being
17060 # built for inclusion in a dll (and should export symbols for example).
17061 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17062 # (--disable-auto-import) libraries
17066 darwin* | rhapsody*)
17067 # PIC is the default on this platform
17068 # Common symbols not allowed in MH_DYLIB files
17069 lt_prog_compiler_pic_GCJ='-fno-common'
17073 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17074 # Instead, we relocate shared libraries at runtime.
17078 # Just because we use GCC doesn't mean we suddenly get shared libraries
17079 # on systems that don't support them.
17080 lt_prog_compiler_can_build_shared_GCJ=no
17085 if test -d /usr/nec; then
17086 lt_prog_compiler_pic_GCJ=-Kconform_pic
17091 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17092 # not for PA HP-UX.
17098 lt_prog_compiler_pic_GCJ='-fPIC'
17104 lt_prog_compiler_pic_GCJ='-fPIC'
17108 # PORTME Check for flag to pass linker flags through the system compiler.
17111 lt_prog_compiler_wl_GCJ='-Wl,'
17112 if test "$host_cpu" = ia64; then
17113 # AIX 5 now supports IA64 processor
17114 lt_prog_compiler_static_GCJ='-Bstatic'
17116 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17120 # PIC is the default on this platform
17121 # Common symbols not allowed in MH_DYLIB files
17122 case $cc_basename in
17124 lt_prog_compiler_pic_GCJ='-qnocommon'
17125 lt_prog_compiler_wl_GCJ='-Wl,'
17130 mingw* | cygwin* | pw32* | os2*)
17131 # This hack is so that the source file can tell whether it is being
17132 # built for inclusion in a dll (and should export symbols for example).
17136 hpux9* | hpux10* | hpux11*)
17137 lt_prog_compiler_wl_GCJ='-Wl,'
17138 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17139 # not for PA HP-UX.
17145 lt_prog_compiler_pic_GCJ='+Z'
17148 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17149 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17152 irix5* | irix6* | nonstopux*)
17153 lt_prog_compiler_wl_GCJ='-Wl,'
17154 # PIC (with -KPIC) is the default.
17155 lt_prog_compiler_static_GCJ='-non_shared'
17159 lt_prog_compiler_pic_GCJ='-KPIC'
17160 lt_prog_compiler_static_GCJ='-Bstatic'
17163 linux* | k*bsd*-gnu)
17164 case $cc_basename in
17166 lt_prog_compiler_wl_GCJ='-Wl,'
17167 lt_prog_compiler_pic_GCJ='-KPIC'
17168 lt_prog_compiler_static_GCJ='-static'
17170 pgcc* | pgf77* | pgf90* | pgf95*)
17171 # Portland Group compilers (*not* the Pentium gcc compiler,
17172 # which looks to be a dead project)
17173 lt_prog_compiler_wl_GCJ='-Wl,'
17174 lt_prog_compiler_pic_GCJ='-fpic'
17175 lt_prog_compiler_static_GCJ='-Bstatic'
17178 lt_prog_compiler_wl_GCJ='-Wl,'
17179 # All Alpha code is PIC.
17180 lt_prog_compiler_static_GCJ='-non_shared'
17183 case `$CC -V 2>&1 | sed 5q` in
17186 lt_prog_compiler_pic_GCJ='-KPIC'
17187 lt_prog_compiler_static_GCJ='-Bstatic'
17188 lt_prog_compiler_wl_GCJ='-Wl,'
17191 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17192 lt_prog_compiler_pic_GCJ='-KPIC'
17193 lt_prog_compiler_static_GCJ='-Bstatic'
17194 lt_prog_compiler_wl_GCJ=''
17201 osf3* | osf4* | osf5*)
17202 lt_prog_compiler_wl_GCJ='-Wl,'
17203 # All OSF/1 code is PIC.
17204 lt_prog_compiler_static_GCJ='-non_shared'
17208 lt_prog_compiler_static_GCJ='-non_shared'
17212 lt_prog_compiler_pic_GCJ='-KPIC'
17213 lt_prog_compiler_static_GCJ='-Bstatic'
17214 case $cc_basename in
17215 f77* | f90* | f95*)
17216 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17218 lt_prog_compiler_wl_GCJ='-Wl,';;
17223 lt_prog_compiler_wl_GCJ='-Qoption ld '
17224 lt_prog_compiler_pic_GCJ='-PIC'
17225 lt_prog_compiler_static_GCJ='-Bstatic'
17228 sysv4 | sysv4.2uw2* | sysv4.3*)
17229 lt_prog_compiler_wl_GCJ='-Wl,'
17230 lt_prog_compiler_pic_GCJ='-KPIC'
17231 lt_prog_compiler_static_GCJ='-Bstatic'
17235 if test -d /usr/nec ;then
17236 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17237 lt_prog_compiler_static_GCJ='-Bstatic'
17241 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17242 lt_prog_compiler_wl_GCJ='-Wl,'
17243 lt_prog_compiler_pic_GCJ='-KPIC'
17244 lt_prog_compiler_static_GCJ='-Bstatic'
17248 lt_prog_compiler_wl_GCJ='-Wl,'
17249 lt_prog_compiler_can_build_shared_GCJ=no
17253 lt_prog_compiler_pic_GCJ='-pic'
17254 lt_prog_compiler_static_GCJ='-Bstatic'
17258 lt_prog_compiler_can_build_shared_GCJ=no
17263 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17264 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17267 # Check to make sure the PIC flag actually works.
17269 if test -n "$lt_prog_compiler_pic_GCJ"; then
17271 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17272 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17273 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17274 echo $ECHO_N "(cached) $ECHO_C" >&6
17276 lt_cv_prog_compiler_pic_works_GCJ=no
17277 ac_outfile=conftest.$ac_objext
17278 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17279 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17280 # Insert the option either (1) after the last *FLAGS variable, or
17281 # (2) before a word containing "conftest.", or (3) at the end.
17282 # Note that $ac_compile itself does not contain backslashes and begins
17283 # with a dollar sign (not a hyphen), so the echo should work correctly.
17284 # The option is referenced via a variable to avoid confusing sed.
17285 lt_compile=`echo "$ac_compile" | $SED \
17286 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17287 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17288 -e 's:$: $lt_compiler_flag:'`
17289 (eval echo "\"\$as_me:17289: $lt_compile\"" >&5)
17290 (eval "$lt_compile" 2>conftest.err)
17292 cat conftest.err >&5
17293 echo "$as_me:17293: \$? = $ac_status" >&5
17294 if (exit $ac_status) && test -s "$ac_outfile"; then
17295 # The compiler can only warn and ignore the option if not recognized
17296 # So say no if there are warnings other than the usual output.
17297 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17298 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17299 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17300 lt_cv_prog_compiler_pic_works_GCJ=yes
17306 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17307 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17309 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17310 case $lt_prog_compiler_pic_GCJ in
17312 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17315 lt_prog_compiler_pic_GCJ=
17316 lt_prog_compiler_can_build_shared_GCJ=no
17321 # For platforms which do not support PIC, -DPIC is meaningless:
17323 lt_prog_compiler_pic_GCJ=
17326 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17331 # Check to make sure the static flag actually works.
17333 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17334 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17335 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17336 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17337 echo $ECHO_N "(cached) $ECHO_C" >&6
17339 lt_cv_prog_compiler_static_works_GCJ=no
17340 save_LDFLAGS="$LDFLAGS"
17341 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17342 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17343 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17344 # The linker can only warn and ignore the option if not recognized
17345 # So say no if there are warnings
17346 if test -s conftest.err; then
17347 # Append any errors to the config.log.
17348 cat conftest.err 1>&5
17349 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17350 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17351 if diff conftest.exp conftest.er2 >/dev/null; then
17352 lt_cv_prog_compiler_static_works_GCJ=yes
17355 lt_cv_prog_compiler_static_works_GCJ=yes
17359 LDFLAGS="$save_LDFLAGS"
17362 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17363 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17365 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17368 lt_prog_compiler_static_GCJ=
17372 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17373 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17374 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17375 echo $ECHO_N "(cached) $ECHO_C" >&6
17377 lt_cv_prog_compiler_c_o_GCJ=no
17378 $rm -r conftest 2>/dev/null
17382 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17384 lt_compiler_flag="-o out/conftest2.$ac_objext"
17385 # Insert the option either (1) after the last *FLAGS variable, or
17386 # (2) before a word containing "conftest.", or (3) at the end.
17387 # Note that $ac_compile itself does not contain backslashes and begins
17388 # with a dollar sign (not a hyphen), so the echo should work correctly.
17389 lt_compile=`echo "$ac_compile" | $SED \
17390 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17391 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17392 -e 's:$: $lt_compiler_flag:'`
17393 (eval echo "\"\$as_me:17393: $lt_compile\"" >&5)
17394 (eval "$lt_compile" 2>out/conftest.err)
17396 cat out/conftest.err >&5
17397 echo "$as_me:17397: \$? = $ac_status" >&5
17398 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17400 # The compiler can only warn and ignore the option if not recognized
17401 # So say no if there are warnings
17402 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17403 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17404 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17405 lt_cv_prog_compiler_c_o_GCJ=yes
17410 # SGI C++ compiler will create directory out/ii_files/ for
17411 # template instantiation
17412 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17413 $rm out/* && rmdir out
17419 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17420 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17423 hard_links="nottested"
17424 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17425 # do not overwrite the value of need_locks provided by the user
17426 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17427 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17430 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17432 ln conftest.a conftest.b 2>&5 || hard_links=no
17433 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17434 { echo "$as_me:$LINENO: result: $hard_links" >&5
17435 echo "${ECHO_T}$hard_links" >&6; }
17436 if test "$hard_links" = no; then
17437 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17438 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17445 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17446 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17449 allow_undefined_flag_GCJ=
17450 enable_shared_with_static_runtimes_GCJ=no
17452 archive_expsym_cmds_GCJ=
17453 old_archive_From_new_cmds_GCJ=
17454 old_archive_from_expsyms_cmds_GCJ=
17455 export_dynamic_flag_spec_GCJ=
17456 whole_archive_flag_spec_GCJ=
17457 thread_safe_flag_spec_GCJ=
17458 hardcode_libdir_flag_spec_GCJ=
17459 hardcode_libdir_flag_spec_ld_GCJ=
17460 hardcode_libdir_separator_GCJ=
17461 hardcode_direct_GCJ=no
17462 hardcode_minus_L_GCJ=no
17463 hardcode_shlibpath_var_GCJ=unsupported
17464 link_all_deplibs_GCJ=unknown
17465 hardcode_automatic_GCJ=no
17467 module_expsym_cmds_GCJ=
17468 always_export_symbols_GCJ=no
17469 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17470 # include_expsyms should be a list of space-separated symbols to be *always*
17471 # included in the symbol list
17472 include_expsyms_GCJ=
17473 # exclude_expsyms can be an extended regexp of symbols to exclude
17474 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17475 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17476 # as well as any symbol that contains `d'.
17477 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17478 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17479 # platforms (ab)use it in PIC code, but their linkers get confused if
17480 # the symbol is explicitly referenced. Since portable code cannot
17481 # rely on this symbol name, it's probably fine to never include it in
17482 # preloaded symbol tables.
17483 # Exclude shared library initialization/finalization symbols.
17484 extract_expsyms_cmds=
17485 # Just being paranoid about ensuring that cc_basename is set.
17486 for cc_temp in $compiler""; do
17488 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17489 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17494 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17497 cygwin* | mingw* | pw32*)
17498 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17499 # When not using gcc, we currently assume that we are using
17500 # Microsoft Visual C++.
17501 if test "$GCC" != yes; then
17506 # we just hope/assume this is gcc and not c89 (= MSVC++)
17515 if test "$with_gnu_ld" = yes; then
17516 # If archive_cmds runs LD, not CC, wlarc should be empty
17519 # Set some defaults for GNU ld with shared library support. These
17520 # are reset later if shared libraries are not supported. Putting them
17521 # here allows them to be overridden if necessary.
17522 runpath_var=LD_RUN_PATH
17523 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17524 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17525 # ancient GNU ld didn't support --whole-archive et. al.
17526 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17527 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17529 whole_archive_flag_spec_GCJ=
17531 supports_anon_versioning=no
17532 case `$LD -v 2>/dev/null` in
17533 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17534 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17535 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17536 *\ 2.11.*) ;; # other 2.11 versions
17537 *) supports_anon_versioning=yes ;;
17540 # See if GNU ld supports shared libraries.
17543 # On AIX/PPC, the GNU linker is very broken
17544 if test "$host_cpu" != ia64; then
17548 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17549 *** to be unable to reliably create shared libraries on AIX.
17550 *** Therefore, libtool is disabling shared libraries support. If you
17551 *** really care for shared libraries, you may want to modify your PATH
17552 *** so that a non-GNU linker is found, and then restart.
17559 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)'
17560 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17561 hardcode_minus_L_GCJ=yes
17563 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17564 # that the semantics of dynamic libraries on AmigaOS, at least up
17565 # to version 4, is to share data among multiple programs linked
17566 # with the same dynamic library. Since this doesn't match the
17567 # behavior of shared libraries on other platforms, we can't use
17573 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17574 allow_undefined_flag_GCJ=unsupported
17575 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17576 # support --undefined. This deserves some investigation. FIXME
17577 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17583 cygwin* | mingw* | pw32*)
17584 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17585 # as there is no search path for DLLs.
17586 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17587 allow_undefined_flag_GCJ=unsupported
17588 always_export_symbols_GCJ=no
17589 enable_shared_with_static_runtimes_GCJ=yes
17590 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17592 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17593 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17594 # If the export-symbols file already is a .def file (1st line
17595 # is EXPORTS), use it as is; otherwise, prepend...
17596 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17597 cp $export_symbols $output_objdir/$soname.def;
17599 echo EXPORTS > $output_objdir/$soname.def;
17600 cat $export_symbols >> $output_objdir/$soname.def;
17602 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17609 hardcode_direct_GCJ=no
17610 hardcode_shlibpath_var_GCJ=no
17611 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17612 export_dynamic_flag_spec_GCJ='${wl}-E'
17613 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17614 # Instead, shared libraries are loaded at an image base (0x10000000 by
17615 # default) and relocated if they conflict, which is a slow very memory
17616 # consuming and fragmenting process. To avoid this, we pick a random,
17617 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17618 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17619 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'
17620 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'
17623 gnu* | linux* | k*bsd*-gnu)
17624 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17626 case $cc_basename,$host_cpu in
17627 pgcc*) # Portland Group C compiler
17628 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'
17629 tmp_addflag=' $pic_flag'
17631 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17632 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'
17633 tmp_addflag=' $pic_flag -Mnomain' ;;
17634 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17635 tmp_addflag=' -i_dynamic' ;;
17636 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17637 tmp_addflag=' -i_dynamic -nofor_main' ;;
17638 ifc* | ifort*) # Intel Fortran compiler
17639 tmp_addflag=' -nofor_main' ;;
17641 case `$CC -V 2>&1 | sed 5q` in
17642 *Sun\ C*) # Sun C 5.9
17643 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17644 tmp_sharedflag='-G' ;;
17645 *Sun\ F*) # Sun Fortran 8.3
17646 tmp_sharedflag='-G' ;;
17648 tmp_sharedflag='-shared' ;;
17650 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17652 if test $supports_anon_versioning = yes; then
17653 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17654 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17655 $echo "local: *; };" >> $output_objdir/$libname.ver~
17656 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17658 link_all_deplibs_GCJ=no
17664 netbsd* | netbsdelf*-gnu)
17665 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17666 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17669 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17670 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17675 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17679 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17680 *** create shared libraries on Solaris systems. Therefore, libtool
17681 *** is disabling shared libraries support. We urge you to upgrade GNU
17682 *** binutils to release 2.9.1 or newer. Another option is to modify
17683 *** your PATH or compiler configuration so that the native linker is
17684 *** used, and then restart.
17687 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17688 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17689 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17695 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17696 case `$LD -v 2>&1` in
17697 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17701 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17702 *** reliably create shared libraries on SCO systems. Therefore, libtool
17703 *** is disabling shared libraries support. We urge you to upgrade GNU
17704 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17705 *** your PATH or compiler configuration so that the native linker is
17706 *** used, and then restart.
17711 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17712 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17713 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17714 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17723 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17725 hardcode_direct_GCJ=yes
17726 hardcode_shlibpath_var_GCJ=no
17730 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17731 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17732 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17739 if test "$ld_shlibs_GCJ" = no; then
17741 hardcode_libdir_flag_spec_GCJ=
17742 export_dynamic_flag_spec_GCJ=
17743 whole_archive_flag_spec_GCJ=
17746 # PORTME fill in a description of your system's linker (not GNU ld)
17749 allow_undefined_flag_GCJ=unsupported
17750 always_export_symbols_GCJ=yes
17751 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'
17752 # Note: this linker hardcodes the directories in LIBPATH if there
17753 # are no directories specified by -L.
17754 hardcode_minus_L_GCJ=yes
17755 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17756 # Neither direct hardcoding nor static linking is supported with a
17758 hardcode_direct_GCJ=unsupported
17763 if test "$host_cpu" = ia64; then
17764 # On IA64, the linker does run time linking by default, so we don't
17765 # have to do anything special.
17766 aix_use_runtimelinking=no
17767 exp_sym_flag='-Bexport'
17770 # If we're using GNU nm, then we don't want the "-C" option.
17771 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17772 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17773 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'
17775 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'
17777 aix_use_runtimelinking=no
17779 # Test if we are trying to use run time linking or normal
17780 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17781 # need to do runtime linking.
17782 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17783 for ld_flag in $LDFLAGS; do
17784 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17785 aix_use_runtimelinking=yes
17792 exp_sym_flag='-bexport'
17793 no_entry_flag='-bnoentry'
17796 # When large executables or shared objects are built, AIX ld can
17797 # have problems creating the table of contents. If linking a library
17798 # or program results in "error TOC overflow" add -mminimal-toc to
17799 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17800 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17802 archive_cmds_GCJ=''
17803 hardcode_direct_GCJ=yes
17804 hardcode_libdir_separator_GCJ=':'
17805 link_all_deplibs_GCJ=yes
17807 if test "$GCC" = yes; then
17808 case $host_os in aix4.[012]|aix4.[012].*)
17809 # We only want to do this on AIX 4.2 and lower, the check
17810 # below for broken collect2 doesn't work under 4.3+
17811 collect2name=`${CC} -print-prog-name=collect2`
17812 if test -f "$collect2name" && \
17813 strings "$collect2name" | grep resolve_lib_name >/dev/null
17815 # We have reworked collect2
17818 # We have old collect2
17819 hardcode_direct_GCJ=unsupported
17820 # It fails to find uninstalled libraries when the uninstalled
17821 # path is not listed in the libpath. Setting hardcode_minus_L
17822 # to unsupported forces relinking
17823 hardcode_minus_L_GCJ=yes
17824 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17825 hardcode_libdir_separator_GCJ=
17829 shared_flag='-shared'
17830 if test "$aix_use_runtimelinking" = yes; then
17831 shared_flag="$shared_flag "'${wl}-G'
17835 if test "$host_cpu" = ia64; then
17836 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17837 # chokes on -Wl,-G. The following line is correct:
17840 if test "$aix_use_runtimelinking" = yes; then
17841 shared_flag='${wl}-G'
17843 shared_flag='${wl}-bM:SRE'
17848 # It seems that -bexpall does not export symbols beginning with
17849 # underscore (_), so it is better to generate a list of symbols to export.
17850 always_export_symbols_GCJ=yes
17851 if test "$aix_use_runtimelinking" = yes; then
17852 # Warning - without using the other runtime loading flags (-brtl),
17853 # -berok will link without error, but may produce a broken library.
17854 allow_undefined_flag_GCJ='-berok'
17855 # Determine the default libpath from the value encoded in an empty executable.
17856 cat >conftest.$ac_ext <<_ACEOF
17859 cat confdefs.h >>conftest.$ac_ext
17860 cat >>conftest.$ac_ext <<_ACEOF
17861 /* end confdefs.h. */
17871 rm -f conftest.$ac_objext conftest$ac_exeext
17872 if { (ac_try="$ac_link"
17873 case "(($ac_try" in
17874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17875 *) ac_try_echo=$ac_try;;
17877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17878 (eval "$ac_link") 2>conftest.er1
17880 grep -v '^ *+' conftest.er1 >conftest.err
17882 cat conftest.err >&5
17883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17884 (exit $ac_status); } && {
17885 test -z "$ac_c_werror_flag" ||
17886 test ! -s conftest.err
17887 } && test -s conftest$ac_exeext &&
17888 $as_test_x conftest$ac_exeext; then
17890 lt_aix_libpath_sed='
17891 /Import File Strings/,/^$/ {
17897 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17898 # Check for a 64-bit object if we didn't find anything.
17899 if test -z "$aix_libpath"; then
17900 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17903 echo "$as_me: failed program was:" >&5
17904 sed 's/^/| /' conftest.$ac_ext >&5
17909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17910 conftest$ac_exeext conftest.$ac_ext
17911 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17913 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17914 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"
17916 if test "$host_cpu" = ia64; then
17917 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17918 allow_undefined_flag_GCJ="-z nodefs"
17919 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"
17921 # Determine the default libpath from the value encoded in an empty executable.
17922 cat >conftest.$ac_ext <<_ACEOF
17925 cat confdefs.h >>conftest.$ac_ext
17926 cat >>conftest.$ac_ext <<_ACEOF
17927 /* end confdefs.h. */
17937 rm -f conftest.$ac_objext conftest$ac_exeext
17938 if { (ac_try="$ac_link"
17939 case "(($ac_try" in
17940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17941 *) ac_try_echo=$ac_try;;
17943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17944 (eval "$ac_link") 2>conftest.er1
17946 grep -v '^ *+' conftest.er1 >conftest.err
17948 cat conftest.err >&5
17949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950 (exit $ac_status); } && {
17951 test -z "$ac_c_werror_flag" ||
17952 test ! -s conftest.err
17953 } && test -s conftest$ac_exeext &&
17954 $as_test_x conftest$ac_exeext; then
17956 lt_aix_libpath_sed='
17957 /Import File Strings/,/^$/ {
17963 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17964 # Check for a 64-bit object if we didn't find anything.
17965 if test -z "$aix_libpath"; then
17966 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17969 echo "$as_me: failed program was:" >&5
17970 sed 's/^/| /' conftest.$ac_ext >&5
17975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17976 conftest$ac_exeext conftest.$ac_ext
17977 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17979 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17980 # Warning - without using the other run time loading flags,
17981 # -berok will link without error, but may produce a broken library.
17982 no_undefined_flag_GCJ=' ${wl}-bernotok'
17983 allow_undefined_flag_GCJ=' ${wl}-berok'
17984 # Exported symbols can be pulled into shared objects from archives
17985 whole_archive_flag_spec_GCJ='$convenience'
17986 archive_cmds_need_lc_GCJ=yes
17987 # This is similar to how AIX traditionally builds its shared libraries.
17988 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'
17994 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)'
17995 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17996 hardcode_minus_L_GCJ=yes
17997 # see comment about different semantics on the GNU ld section
18002 export_dynamic_flag_spec_GCJ=-rdynamic
18005 cygwin* | mingw* | pw32*)
18006 # When not using gcc, we currently assume that we are using
18007 # Microsoft Visual C++.
18008 # hardcode_libdir_flag_spec is actually meaningless, as there is
18009 # no search path for DLLs.
18010 hardcode_libdir_flag_spec_GCJ=' '
18011 allow_undefined_flag_GCJ=unsupported
18012 # Tell ltmain to make .lib files, not .a files.
18014 # Tell ltmain to make .dll files, not .so files.
18016 # FIXME: Setting linknames here is a bad hack.
18017 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18018 # The linker will automatically build a .lib file if we build a DLL.
18019 old_archive_From_new_cmds_GCJ='true'
18020 # FIXME: Should let the user specify the lib program.
18021 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18022 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18023 enable_shared_with_static_runtimes_GCJ=yes
18026 darwin* | rhapsody*)
18028 rhapsody* | darwin1.[012])
18029 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18032 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18033 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18035 case ${MACOSX_DEPLOYMENT_TARGET} in
18037 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18040 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18046 archive_cmds_need_lc_GCJ=no
18047 hardcode_direct_GCJ=no
18048 hardcode_automatic_GCJ=yes
18049 hardcode_shlibpath_var_GCJ=unsupported
18050 whole_archive_flag_spec_GCJ=''
18051 link_all_deplibs_GCJ=yes
18052 if test "$GCC" = yes ; then
18053 output_verbose_link_cmd='echo'
18054 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18055 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18056 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
18057 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
18059 case $cc_basename in
18061 output_verbose_link_cmd='echo'
18062 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18063 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18064 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18065 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18066 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}'
18076 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18077 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18078 hardcode_shlibpath_var_GCJ=no
18085 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18086 # support. Future versions do this automatically, but an explicit c++rt0.o
18087 # does not break anything, and helps significantly (at the cost of a little
18090 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18091 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18092 hardcode_direct_GCJ=yes
18093 hardcode_shlibpath_var_GCJ=no
18096 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18098 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18099 hardcode_direct_GCJ=yes
18100 hardcode_minus_L_GCJ=yes
18101 hardcode_shlibpath_var_GCJ=no
18104 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18105 freebsd* | dragonfly*)
18106 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18107 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18108 hardcode_direct_GCJ=yes
18109 hardcode_shlibpath_var_GCJ=no
18113 if test "$GCC" = yes; then
18114 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'
18116 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'
18118 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18119 hardcode_libdir_separator_GCJ=:
18120 hardcode_direct_GCJ=yes
18122 # hardcode_minus_L: Not really in the search PATH,
18123 # but as the default location of the library.
18124 hardcode_minus_L_GCJ=yes
18125 export_dynamic_flag_spec_GCJ='${wl}-E'
18129 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18130 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18132 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18134 if test "$with_gnu_ld" = no; then
18135 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18136 hardcode_libdir_separator_GCJ=:
18138 hardcode_direct_GCJ=yes
18139 export_dynamic_flag_spec_GCJ='${wl}-E'
18141 # hardcode_minus_L: Not really in the search PATH,
18142 # but as the default location of the library.
18143 hardcode_minus_L_GCJ=yes
18148 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18151 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18154 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18157 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18163 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18166 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18169 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18173 if test "$with_gnu_ld" = no; then
18174 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18175 hardcode_libdir_separator_GCJ=:
18179 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18180 hardcode_direct_GCJ=no
18181 hardcode_shlibpath_var_GCJ=no
18184 hardcode_direct_GCJ=yes
18185 export_dynamic_flag_spec_GCJ='${wl}-E'
18187 # hardcode_minus_L: Not really in the search PATH,
18188 # but as the default location of the library.
18189 hardcode_minus_L_GCJ=yes
18195 irix5* | irix6* | nonstopux*)
18196 if test "$GCC" = yes; then
18197 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'
18199 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'
18200 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18202 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18203 hardcode_libdir_separator_GCJ=:
18204 link_all_deplibs_GCJ=yes
18207 netbsd* | netbsdelf*-gnu)
18208 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18209 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18211 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18213 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18214 hardcode_direct_GCJ=yes
18215 hardcode_shlibpath_var_GCJ=no
18219 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18220 hardcode_direct_GCJ=yes
18221 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18222 hardcode_libdir_separator_GCJ=:
18223 hardcode_shlibpath_var_GCJ=no
18227 if test -f /usr/libexec/ld.so; then
18228 hardcode_direct_GCJ=yes
18229 hardcode_shlibpath_var_GCJ=no
18230 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18231 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18232 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18233 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18234 export_dynamic_flag_spec_GCJ='${wl}-E'
18237 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18238 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18239 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18242 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18243 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18253 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18254 hardcode_minus_L_GCJ=yes
18255 allow_undefined_flag_GCJ=unsupported
18256 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'
18257 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18261 if test "$GCC" = yes; then
18262 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18263 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'
18265 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18266 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'
18268 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18269 hardcode_libdir_separator_GCJ=:
18272 osf4* | osf5*) # as osf3* with the addition of -msym flag
18273 if test "$GCC" = yes; then
18274 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18275 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'
18276 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18278 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18279 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'
18280 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~
18281 $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'
18283 # Both c and cxx compiler support -rpath directly
18284 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18286 hardcode_libdir_separator_GCJ=:
18290 no_undefined_flag_GCJ=' -z text'
18291 if test "$GCC" = yes; then
18293 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18294 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18295 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18298 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18299 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18300 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18302 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18303 hardcode_shlibpath_var_GCJ=no
18305 solaris2.[0-5] | solaris2.[0-5].*) ;;
18307 # The compiler driver will combine and reorder linker options,
18308 # but understands `-z linker_flag'. GCC discards it without `$wl',
18309 # but is careful enough not to reorder.
18310 # Supported since Solaris 2.6 (maybe 2.5.1?)
18311 if test "$GCC" = yes; then
18312 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18314 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18318 link_all_deplibs_GCJ=yes
18322 if test "x$host_vendor" = xsequent; then
18323 # Use $CC to link under sequent, because it throws in some extra .o
18324 # files that make .init and .fini sections work.
18325 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18327 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18329 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18330 hardcode_direct_GCJ=yes
18331 hardcode_minus_L_GCJ=yes
18332 hardcode_shlibpath_var_GCJ=no
18336 case $host_vendor in
18338 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18339 hardcode_direct_GCJ=yes # is this really true???
18342 ## LD is ld it makes a PLAMLIB
18343 ## CC just makes a GrossModule.
18344 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18345 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18346 hardcode_direct_GCJ=no
18349 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18350 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18353 runpath_var='LD_RUN_PATH'
18354 hardcode_shlibpath_var_GCJ=no
18358 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18359 hardcode_shlibpath_var_GCJ=no
18360 export_dynamic_flag_spec_GCJ='-Bexport'
18364 if test -d /usr/nec; then
18365 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18366 hardcode_shlibpath_var_GCJ=no
18367 runpath_var=LD_RUN_PATH
18368 hardcode_runpath_var=yes
18373 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18374 no_undefined_flag_GCJ='${wl}-z,text'
18375 archive_cmds_need_lc_GCJ=no
18376 hardcode_shlibpath_var_GCJ=no
18377 runpath_var='LD_RUN_PATH'
18379 if test "$GCC" = yes; then
18380 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18381 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18383 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18384 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18388 sysv5* | sco3.2v5* | sco5v6*)
18389 # Note: We can NOT use -z defs as we might desire, because we do not
18390 # link with -lc, and that would cause any symbols used from libc to
18391 # always be unresolved, which means just about no library would
18392 # ever link correctly. If we're not using GNU ld we use -z text
18393 # though, which does catch some bad symbols but isn't as heavy-handed
18395 no_undefined_flag_GCJ='${wl}-z,text'
18396 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18397 archive_cmds_need_lc_GCJ=no
18398 hardcode_shlibpath_var_GCJ=no
18399 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18400 hardcode_libdir_separator_GCJ=':'
18401 link_all_deplibs_GCJ=yes
18402 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18403 runpath_var='LD_RUN_PATH'
18405 if test "$GCC" = yes; then
18406 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18407 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18409 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18410 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18415 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18416 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18417 hardcode_shlibpath_var_GCJ=no
18426 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18427 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18428 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18431 # Do we need to explicitly link libc?
18433 case "x$archive_cmds_need_lc_GCJ" in
18435 # Assume -lc should be added
18436 archive_cmds_need_lc_GCJ=yes
18438 if test "$enable_shared" = yes && test "$GCC" = yes; then
18439 case $archive_cmds_GCJ in
18441 # FIXME: we may have to deal with multi-command sequences.
18444 # Test whether the compiler implicitly links with -lc since on some
18445 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18446 # to ld, don't add -lc before -lgcc.
18447 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18448 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18450 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18453 (eval $ac_compile) 2>&5
18455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456 (exit $ac_status); } 2>conftest.err; then
18459 libobjs=conftest.$ac_objext
18461 wl=$lt_prog_compiler_wl_GCJ
18462 pic_flag=$lt_prog_compiler_pic_GCJ
18468 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18469 allow_undefined_flag_GCJ=
18470 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18471 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474 (exit $ac_status); }
18476 archive_cmds_need_lc_GCJ=no
18478 archive_cmds_need_lc_GCJ=yes
18480 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18482 cat conftest.err 1>&5
18485 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18486 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18493 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18494 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18495 library_names_spec=
18496 libname_spec='lib$name'
18500 postuninstall_cmds=
18504 shlibpath_overrides_runpath=unknown
18506 dynamic_linker="$host_os ld.so"
18507 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18509 need_lib_prefix=unknown
18510 hardcode_into_libs=no
18512 # when you set need_version to no, make sure it does not cause -set_version
18513 # flags to be left without arguments
18514 need_version=unknown
18519 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18520 shlibpath_var=LIBPATH
18522 # AIX 3 has no versioning support, so we append a major version to the name.
18523 soname_spec='${libname}${release}${shared_ext}$major'
18530 hardcode_into_libs=yes
18531 if test "$host_cpu" = ia64; then
18532 # AIX 5 supports IA64
18533 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18534 shlibpath_var=LD_LIBRARY_PATH
18536 # With GCC up to 2.95.x, collect2 would create an import file
18537 # for dependence libraries. The import file would start with
18538 # the line `#! .'. This would cause the generated library to
18539 # depend on `.', always an invalid library. This was fixed in
18540 # development snapshots of GCC prior to 3.0.
18542 aix4 | aix4.[01] | aix4.[01].*)
18543 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18545 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18548 can_build_shared=no
18552 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18553 # soname into executable. Probably we can add versioning support to
18554 # collect2, so additional links can be useful in future.
18555 if test "$aix_use_runtimelinking" = yes; then
18556 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18557 # instead of lib<name>.a to let people know that these are not
18558 # typical AIX shared libraries.
18559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18561 # We preserve .a as extension for shared libraries through AIX4.2
18562 # and later when we are not doing run time linking.
18563 library_names_spec='${libname}${release}.a $libname.a'
18564 soname_spec='${libname}${release}${shared_ext}$major'
18566 shlibpath_var=LIBPATH
18571 library_names_spec='$libname.ixlibrary $libname.a'
18572 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18573 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'
18577 library_names_spec='${libname}${shared_ext}'
18578 dynamic_linker="$host_os ld.so"
18579 shlibpath_var=LIBRARY_PATH
18585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18586 soname_spec='${libname}${release}${shared_ext}$major'
18587 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18588 shlibpath_var=LD_LIBRARY_PATH
18589 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18590 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18591 # the default ld.so.conf also contains /usr/contrib/lib and
18592 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18593 # libtool to hard-code these into programs
18596 cygwin* | mingw* | pw32*)
18597 version_type=windows
18602 case $GCC,$host_os in
18603 yes,cygwin* | yes,mingw* | yes,pw32*)
18604 library_names_spec='$libname.dll.a'
18605 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18606 postinstall_cmds='base_file=`basename \${file}`~
18607 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18608 dldir=$destdir/`dirname \$dlpath`~
18609 test -d \$dldir || mkdir -p \$dldir~
18610 $install_prog $dir/$dlname \$dldir/$dlname~
18611 chmod a+x \$dldir/$dlname'
18612 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18613 dlpath=$dir/\$dldll~
18615 shlibpath_overrides_runpath=yes
18619 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18620 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18621 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18624 # MinGW DLLs use traditional 'lib' prefix
18625 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18626 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18627 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18628 # It is most probably a Windows format PATH printed by
18629 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18630 # path with ; separators, and with drive letters. We can handle the
18631 # drive letters (cygwin fileutils understands them), so leave them,
18632 # especially as we might pass files found there to a mingw objdump,
18633 # which wouldn't understand a cygwinified path. Ahh.
18634 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18636 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18640 # pw32 DLLs use 'pw' prefix rather than 'lib'
18641 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18647 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18650 dynamic_linker='Win32 ld.exe'
18651 # FIXME: first we should search . and the directory the executable is in
18655 darwin* | rhapsody*)
18656 dynamic_linker="$host_os dyld"
18657 version_type=darwin
18660 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18661 soname_spec='${libname}${release}${major}$shared_ext'
18662 shlibpath_overrides_runpath=yes
18663 shlibpath_var=DYLD_LIBRARY_PATH
18664 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18666 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18674 soname_spec='${libname}${release}${shared_ext}$major'
18675 shlibpath_var=LD_LIBRARY_PATH
18682 freebsd* | dragonfly*)
18683 # DragonFly does not have aout. When/if they implement a new
18684 # versioning mechanism, adjust this.
18685 if test -x /usr/bin/objformat; then
18686 objformat=`/usr/bin/objformat`
18689 freebsd[123]*) objformat=aout ;;
18690 *) objformat=elf ;;
18693 version_type=freebsd-$objformat
18694 case $version_type in
18696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18701 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18705 shlibpath_var=LD_LIBRARY_PATH
18708 shlibpath_overrides_runpath=yes
18710 freebsd3.[01]* | freebsdelf3.[01]*)
18711 shlibpath_overrides_runpath=yes
18712 hardcode_into_libs=yes
18714 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18715 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18716 shlibpath_overrides_runpath=no
18717 hardcode_into_libs=yes
18719 *) # from 4.6 on, and DragonFly
18720 shlibpath_overrides_runpath=yes
18721 hardcode_into_libs=yes
18730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18731 soname_spec='${libname}${release}${shared_ext}$major'
18732 shlibpath_var=LD_LIBRARY_PATH
18733 hardcode_into_libs=yes
18736 hpux9* | hpux10* | hpux11*)
18737 # Give a soname corresponding to the major version so that dld.sl refuses to
18738 # link against other versions.
18745 hardcode_into_libs=yes
18746 dynamic_linker="$host_os dld.so"
18747 shlibpath_var=LD_LIBRARY_PATH
18748 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18750 soname_spec='${libname}${release}${shared_ext}$major'
18751 if test "X$HPUX_IA64_MODE" = X32; then
18752 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18754 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18756 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18760 hardcode_into_libs=yes
18761 dynamic_linker="$host_os dld.sl"
18762 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18763 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18765 soname_spec='${libname}${release}${shared_ext}$major'
18766 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18767 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18771 dynamic_linker="$host_os dld.sl"
18772 shlibpath_var=SHLIB_PATH
18773 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18775 soname_spec='${libname}${release}${shared_ext}$major'
18778 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18779 postinstall_cmds='chmod 555 $lib'
18786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18787 soname_spec='${libname}${release}${shared_ext}$major'
18788 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18789 shlibpath_var=LD_LIBRARY_PATH
18790 shlibpath_overrides_runpath=no
18791 hardcode_into_libs=yes
18794 irix5* | irix6* | nonstopux*)
18796 nonstopux*) version_type=nonstopux ;;
18798 if test "$lt_cv_prog_gnu_ld" = yes; then
18806 soname_spec='${libname}${release}${shared_ext}$major'
18807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18809 irix5* | nonstopux*)
18810 libsuff= shlibsuff=
18813 case $LD in # libtool.m4 will add one of these switches to LD
18814 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18815 libsuff= shlibsuff= libmagic=32-bit;;
18816 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18817 libsuff=32 shlibsuff=N32 libmagic=N32;;
18818 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18819 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18820 *) libsuff= shlibsuff= libmagic=never-match;;
18824 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18825 shlibpath_overrides_runpath=no
18826 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18827 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18828 hardcode_into_libs=yes
18831 # No shared lib support for Linux oldld, aout, or coff.
18832 linux*oldld* | linux*aout* | linux*coff*)
18836 # This must be Linux ELF.
18837 linux* | k*bsd*-gnu)
18841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18842 soname_spec='${libname}${release}${shared_ext}$major'
18843 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18844 shlibpath_var=LD_LIBRARY_PATH
18845 shlibpath_overrides_runpath=no
18846 # This implies no fast_install, which is unacceptable.
18847 # Some rework will be needed to allow for fast_install
18848 # before this can be enabled.
18849 hardcode_into_libs=yes
18851 # Append ld.so.conf contents to the search path
18852 if test -f /etc/ld.so.conf; then
18853 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18854 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18857 # We used to test for /lib/ld.so.1 and disable shared libraries on
18858 # powerpc, because MkLinux only supported shared libraries with the
18859 # GNU dynamic linker. Since this was broken with cross compilers,
18860 # most powerpc-linux boxes support dynamic linking these days and
18861 # people can always --disable-shared, the test was removed, and we
18862 # assume the GNU/Linux dynamic linker is in use.
18863 dynamic_linker='GNU/Linux ld.so'
18870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18871 soname_spec='${libname}${release}${shared_ext}$major'
18872 shlibpath_var=LD_LIBRARY_PATH
18873 shlibpath_overrides_runpath=no
18874 hardcode_into_libs=yes
18875 dynamic_linker='NetBSD ld.elf_so'
18882 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18884 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18885 dynamic_linker='NetBSD (a.out) ld.so'
18887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18888 soname_spec='${libname}${release}${shared_ext}$major'
18889 dynamic_linker='NetBSD ld.elf_so'
18891 shlibpath_var=LD_LIBRARY_PATH
18892 shlibpath_overrides_runpath=yes
18893 hardcode_into_libs=yes
18898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18899 shlibpath_var=LD_LIBRARY_PATH
18900 shlibpath_overrides_runpath=yes
18907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18908 soname_spec='${libname}${release}${shared_ext}$major'
18909 shlibpath_var=LD_LIBRARY_PATH
18910 shlibpath_overrides_runpath=yes
18915 sys_lib_dlsearch_path_spec="/usr/lib"
18917 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18919 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18920 *) need_version=no ;;
18922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18923 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18924 shlibpath_var=LD_LIBRARY_PATH
18925 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18927 openbsd2.[89] | openbsd2.[89].*)
18928 shlibpath_overrides_runpath=no
18931 shlibpath_overrides_runpath=yes
18935 shlibpath_overrides_runpath=yes
18940 libname_spec='$name'
18943 library_names_spec='$libname${shared_ext} $libname.a'
18944 dynamic_linker='OS/2 ld.exe'
18945 shlibpath_var=LIBPATH
18948 osf3* | osf4* | osf5*)
18952 soname_spec='${libname}${release}${shared_ext}$major'
18953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18954 shlibpath_var=LD_LIBRARY_PATH
18955 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18956 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18968 soname_spec='${libname}${release}${shared_ext}$major'
18969 shlibpath_var=LD_LIBRARY_PATH
18970 shlibpath_overrides_runpath=yes
18971 hardcode_into_libs=yes
18972 # ldd complains unless libraries are executable
18973 postinstall_cmds='chmod +x $lib'
18978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18979 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18980 shlibpath_var=LD_LIBRARY_PATH
18981 shlibpath_overrides_runpath=yes
18982 if test "$with_gnu_ld" = yes; then
18990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18991 soname_spec='${libname}${release}${shared_ext}$major'
18992 shlibpath_var=LD_LIBRARY_PATH
18993 case $host_vendor in
18995 shlibpath_overrides_runpath=no
18997 export_dynamic_flag_spec='${wl}-Blargedynsym'
18998 runpath_var=LD_RUN_PATH
19006 shlibpath_overrides_runpath=no
19007 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19013 if test -d /usr/nec ;then
19015 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19016 soname_spec='$libname${shared_ext}.$major'
19017 shlibpath_var=LD_LIBRARY_PATH
19021 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19022 version_type=freebsd-elf
19025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19026 soname_spec='${libname}${release}${shared_ext}$major'
19027 shlibpath_var=LD_LIBRARY_PATH
19028 hardcode_into_libs=yes
19029 if test "$with_gnu_ld" = yes; then
19030 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19031 shlibpath_overrides_runpath=no
19033 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19034 shlibpath_overrides_runpath=yes
19037 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19041 sys_lib_dlsearch_path_spec='/usr/lib'
19046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19047 soname_spec='${libname}${release}${shared_ext}$major'
19048 shlibpath_var=LD_LIBRARY_PATH
19055 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19056 echo "${ECHO_T}$dynamic_linker" >&6; }
19057 test "$dynamic_linker" = no && can_build_shared=no
19059 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19060 echo $ECHO_N "(cached) $ECHO_C" >&6
19062 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19065 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19066 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19067 echo $ECHO_N "(cached) $ECHO_C" >&6
19069 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19072 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19074 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19075 if test "$GCC" = yes; then
19076 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19079 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19080 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19081 hardcode_action_GCJ=
19082 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19083 test -n "$runpath_var_GCJ" || \
19084 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19086 # We can hardcode non-existant directories.
19087 if test "$hardcode_direct_GCJ" != no &&
19088 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19089 # have to relink, otherwise we might link with an installed library
19090 # when we should be linking with a yet-to-be-installed one
19091 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19092 test "$hardcode_minus_L_GCJ" != no; then
19093 # Linking always hardcodes the temporary library directory.
19094 hardcode_action_GCJ=relink
19096 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19097 hardcode_action_GCJ=immediate
19100 # We cannot hardcode anything, or else we can only hardcode existing
19102 hardcode_action_GCJ=unsupported
19104 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19105 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19107 if test "$hardcode_action_GCJ" = relink; then
19108 # Fast installation is not supported
19109 enable_fast_install=no
19110 elif test "$shlibpath_overrides_runpath" = yes ||
19111 test "$enable_shared" = no; then
19112 # Fast installation is not necessary
19113 enable_fast_install=needless
19117 # The else clause should only fire when bootstrapping the
19118 # libtool distribution, otherwise you forgot to ship ltmain.sh
19119 # with your package, and you will get complaints that there are
19120 # no rules to generate ltmain.sh.
19121 if test -f "$ltmain"; then
19122 # See if we are running on zsh, and set the options which allow our commands through
19123 # without removal of \ escapes.
19124 if test -n "${ZSH_VERSION+set}" ; then
19125 setopt NO_GLOB_SUBST
19127 # Now quote all the things that may contain metacharacters while being
19128 # careful not to overquote the AC_SUBSTed values. We take copies of the
19129 # variables and quote the copies for generation of the libtool script.
19130 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19132 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19133 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19134 deplibs_check_method reload_flag reload_cmds need_locks \
19135 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19136 lt_cv_sys_global_symbol_to_c_name_address \
19137 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19138 old_postinstall_cmds old_postuninstall_cmds \
19142 lt_prog_compiler_wl_GCJ \
19143 lt_prog_compiler_pic_GCJ \
19144 lt_prog_compiler_static_GCJ \
19145 lt_prog_compiler_no_builtin_flag_GCJ \
19146 export_dynamic_flag_spec_GCJ \
19147 thread_safe_flag_spec_GCJ \
19148 whole_archive_flag_spec_GCJ \
19149 enable_shared_with_static_runtimes_GCJ \
19150 old_archive_cmds_GCJ \
19151 old_archive_from_new_cmds_GCJ \
19152 predep_objects_GCJ \
19153 postdep_objects_GCJ \
19156 compiler_lib_search_path_GCJ \
19157 compiler_lib_search_dirs_GCJ \
19159 archive_expsym_cmds_GCJ \
19160 postinstall_cmds_GCJ \
19161 postuninstall_cmds_GCJ \
19162 old_archive_from_expsyms_cmds_GCJ \
19163 allow_undefined_flag_GCJ \
19164 no_undefined_flag_GCJ \
19165 export_symbols_cmds_GCJ \
19166 hardcode_libdir_flag_spec_GCJ \
19167 hardcode_libdir_flag_spec_ld_GCJ \
19168 hardcode_libdir_separator_GCJ \
19169 hardcode_automatic_GCJ \
19171 module_expsym_cmds_GCJ \
19172 lt_cv_prog_compiler_c_o_GCJ \
19173 fix_srcfile_path_GCJ \
19174 exclude_expsyms_GCJ \
19175 include_expsyms_GCJ; do
19178 old_archive_cmds_GCJ | \
19179 old_archive_from_new_cmds_GCJ | \
19180 archive_cmds_GCJ | \
19181 archive_expsym_cmds_GCJ | \
19182 module_cmds_GCJ | \
19183 module_expsym_cmds_GCJ | \
19184 old_archive_from_expsyms_cmds_GCJ | \
19185 export_symbols_cmds_GCJ | \
19186 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19187 postinstall_cmds | postuninstall_cmds | \
19188 old_postinstall_cmds | old_postuninstall_cmds | \
19189 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19190 # Double-quote double-evaled strings.
19191 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19194 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19200 *'\$0 --fallback-echo"')
19201 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19207 cat <<__EOF__ >> "$cfgfile"
19208 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19210 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19212 # Shell to use when invoking shell scripts.
19215 # Whether or not to build shared libraries.
19216 build_libtool_libs=$enable_shared
19218 # Whether or not to build static libraries.
19219 build_old_libs=$enable_static
19221 # Whether or not to add -lc for building shared libraries.
19222 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19224 # Whether or not to disallow shared libs when runtime libs are static
19225 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19227 # Whether or not to optimize for fast installation.
19228 fast_install=$enable_fast_install
19231 host_alias=$host_alias
19235 # The build system.
19236 build_alias=$build_alias
19240 # An echo program that does not interpret backslashes.
19245 AR_FLAGS=$lt_AR_FLAGS
19250 # LTCC compiler flags.
19251 LTCFLAGS=$lt_LTCFLAGS
19253 # A language-specific compiler.
19254 CC=$lt_compiler_GCJ
19256 # Is the compiler the GNU C compiler?
19262 # The linker used to build libraries.
19265 # Whether we need hard or soft links.
19268 # A BSD-compatible nm program.
19271 # A symbol stripping program
19274 # Used to examine libraries when file_magic_cmd begins "file"
19275 MAGIC_CMD=$MAGIC_CMD
19277 # Used on cygwin: DLL creation program.
19280 # Used on cygwin: object dumper.
19283 # Used on cygwin: assembler.
19286 # The name of the directory that contains temporary libtool files.
19289 # How to create reloadable object files.
19290 reload_flag=$lt_reload_flag
19291 reload_cmds=$lt_reload_cmds
19293 # How to pass a linker flag through the compiler.
19294 wl=$lt_lt_prog_compiler_wl_GCJ
19296 # Object file suffix (normally "o").
19297 objext="$ac_objext"
19299 # Old archive suffix (normally "a").
19302 # Shared library suffix (normally ".so").
19303 shrext_cmds='$shrext_cmds'
19305 # Executable file suffix (normally "").
19308 # Additional compiler flags for building library objects.
19309 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19312 # What is the maximum length of a command?
19313 max_cmd_len=$lt_cv_sys_max_cmd_len
19315 # Does compiler simultaneously support -c and -o options?
19316 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19318 # Must we lock files when doing compilation?
19319 need_locks=$lt_need_locks
19321 # Do we need the lib prefix for modules?
19322 need_lib_prefix=$need_lib_prefix
19324 # Do we need a version for libraries?
19325 need_version=$need_version
19327 # Whether dlopen is supported.
19328 dlopen_support=$enable_dlopen
19330 # Whether dlopen of programs is supported.
19331 dlopen_self=$enable_dlopen_self
19333 # Whether dlopen of statically linked programs is supported.
19334 dlopen_self_static=$enable_dlopen_self_static
19336 # Compiler flag to prevent dynamic linking.
19337 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19339 # Compiler flag to turn off builtin functions.
19340 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19342 # Compiler flag to allow reflexive dlopens.
19343 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19345 # Compiler flag to generate shared objects directly from archives.
19346 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19348 # Compiler flag to generate thread-safe objects.
19349 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19351 # Library versioning type.
19352 version_type=$version_type
19354 # Format of library name prefix.
19355 libname_spec=$lt_libname_spec
19357 # List of archive names. First name is the real one, the rest are links.
19358 # The last name is the one that the linker finds with -lNAME.
19359 library_names_spec=$lt_library_names_spec
19361 # The coded name of the library, if different from the real name.
19362 soname_spec=$lt_soname_spec
19364 # Commands used to build and install an old-style archive.
19366 old_archive_cmds=$lt_old_archive_cmds_GCJ
19367 old_postinstall_cmds=$lt_old_postinstall_cmds
19368 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19370 # Create an old-style archive from a shared archive.
19371 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19373 # Create a temporary old-style archive to link instead of a shared archive.
19374 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19376 # Commands used to build and install a shared archive.
19377 archive_cmds=$lt_archive_cmds_GCJ
19378 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19379 postinstall_cmds=$lt_postinstall_cmds
19380 postuninstall_cmds=$lt_postuninstall_cmds
19382 # Commands used to build a loadable module (assumed same as above if empty)
19383 module_cmds=$lt_module_cmds_GCJ
19384 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19386 # Commands to strip libraries.
19387 old_striplib=$lt_old_striplib
19388 striplib=$lt_striplib
19390 # Dependencies to place before the objects being linked to create a
19392 predep_objects=$lt_predep_objects_GCJ
19394 # Dependencies to place after the objects being linked to create a
19396 postdep_objects=$lt_postdep_objects_GCJ
19398 # Dependencies to place before the objects being linked to create a
19400 predeps=$lt_predeps_GCJ
19402 # Dependencies to place after the objects being linked to create a
19404 postdeps=$lt_postdeps_GCJ
19406 # The directories searched by this compiler when creating a shared
19408 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19410 # The library search path used internally by the compiler when linking
19411 # a shared library.
19412 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19414 # Method to check whether dependent libraries are shared objects.
19415 deplibs_check_method=$lt_deplibs_check_method
19417 # Command to use when deplibs_check_method == file_magic.
19418 file_magic_cmd=$lt_file_magic_cmd
19420 # Flag that allows shared libraries with undefined symbols to be built.
19421 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19423 # Flag that forces no undefined symbols.
19424 no_undefined_flag=$lt_no_undefined_flag_GCJ
19426 # Commands used to finish a libtool library installation in a directory.
19427 finish_cmds=$lt_finish_cmds
19429 # Same as above, but a single script fragment to be evaled but not shown.
19430 finish_eval=$lt_finish_eval
19432 # Take the output of nm and produce a listing of raw symbols and C names.
19433 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19435 # Transform the output of nm in a proper C declaration
19436 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19438 # Transform the output of nm in a C name address pair
19439 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19441 # This is the shared library runtime path variable.
19442 runpath_var=$runpath_var
19444 # This is the shared library path variable.
19445 shlibpath_var=$shlibpath_var
19447 # Is shlibpath searched before the hard-coded library search path?
19448 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19450 # How to hardcode a shared library path into an executable.
19451 hardcode_action=$hardcode_action_GCJ
19453 # Whether we should hardcode library paths into libraries.
19454 hardcode_into_libs=$hardcode_into_libs
19456 # Flag to hardcode \$libdir into a binary during linking.
19457 # This must work even if \$libdir does not exist.
19458 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19460 # If ld is used when linking, flag to hardcode \$libdir into
19461 # a binary during linking. This must work even if \$libdir does
19463 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19465 # Whether we need a single -rpath flag with a separated argument.
19466 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19468 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19469 # resulting binary.
19470 hardcode_direct=$hardcode_direct_GCJ
19472 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19473 # resulting binary.
19474 hardcode_minus_L=$hardcode_minus_L_GCJ
19476 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19477 # the resulting binary.
19478 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19480 # Set to yes if building a shared library automatically hardcodes DIR into the library
19481 # and all subsequent libraries and executables linked against it.
19482 hardcode_automatic=$hardcode_automatic_GCJ
19484 # Variables whose values should be saved in libtool wrapper scripts and
19485 # restored at relink time.
19486 variables_saved_for_relink="$variables_saved_for_relink"
19488 # Whether libtool must link a program against all its dependency libraries.
19489 link_all_deplibs=$link_all_deplibs_GCJ
19491 # Compile-time system search path for libraries
19492 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19494 # Run-time system search path for libraries
19495 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19497 # Fix the shell variable \$srcfile for the compiler.
19498 fix_srcfile_path=$lt_fix_srcfile_path
19500 # Set to yes if exported symbols are required.
19501 always_export_symbols=$always_export_symbols_GCJ
19503 # The commands to list exported symbols.
19504 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19506 # The commands to extract the exported symbol list from a shared archive.
19507 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19509 # Symbols that should not be listed in the preloaded symbols.
19510 exclude_expsyms=$lt_exclude_expsyms_GCJ
19512 # Symbols that must always be exported.
19513 include_expsyms=$lt_include_expsyms_GCJ
19515 # ### END LIBTOOL TAG CONFIG: $tagname
19521 # If there is no Makefile yet, we rely on a make rule to execute
19522 # `config.status --recheck' to rerun these tests and create the
19523 # libtool script then.
19524 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19525 if test -f "$ltmain_in"; then
19526 test -f Makefile && make "$ltmain"
19532 ac_cpp='$CPP $CPPFLAGS'
19533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19547 # Source file extension for RC test sources.
19550 # Object file extension for compiled RC test sources.
19554 # Code to be used in simple compile tests
19555 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19557 # Code to be used in simple link tests
19558 lt_simple_link_test_code="$lt_simple_compile_test_code"
19560 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19562 # If no C compiler was specified, use CC.
19565 # If no C compiler flags were specified, use CFLAGS.
19566 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19568 # Allow CC to be a program name with arguments.
19572 # save warnings/boilerplate of simple test code
19573 ac_outfile=conftest.$ac_objext
19574 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19575 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19576 _lt_compiler_boilerplate=`cat conftest.err`
19579 ac_outfile=conftest.$ac_objext
19580 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19581 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19582 _lt_linker_boilerplate=`cat conftest.err`
19586 # Allow CC to be a program name with arguments.
19591 for cc_temp in $compiler""; do
19593 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19594 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19599 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19601 lt_cv_prog_compiler_c_o_RC=yes
19603 # The else clause should only fire when bootstrapping the
19604 # libtool distribution, otherwise you forgot to ship ltmain.sh
19605 # with your package, and you will get complaints that there are
19606 # no rules to generate ltmain.sh.
19607 if test -f "$ltmain"; then
19608 # See if we are running on zsh, and set the options which allow our commands through
19609 # without removal of \ escapes.
19610 if test -n "${ZSH_VERSION+set}" ; then
19611 setopt NO_GLOB_SUBST
19613 # Now quote all the things that may contain metacharacters while being
19614 # careful not to overquote the AC_SUBSTed values. We take copies of the
19615 # variables and quote the copies for generation of the libtool script.
19616 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19618 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19619 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19620 deplibs_check_method reload_flag reload_cmds need_locks \
19621 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19622 lt_cv_sys_global_symbol_to_c_name_address \
19623 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19624 old_postinstall_cmds old_postuninstall_cmds \
19628 lt_prog_compiler_wl_RC \
19629 lt_prog_compiler_pic_RC \
19630 lt_prog_compiler_static_RC \
19631 lt_prog_compiler_no_builtin_flag_RC \
19632 export_dynamic_flag_spec_RC \
19633 thread_safe_flag_spec_RC \
19634 whole_archive_flag_spec_RC \
19635 enable_shared_with_static_runtimes_RC \
19636 old_archive_cmds_RC \
19637 old_archive_from_new_cmds_RC \
19638 predep_objects_RC \
19639 postdep_objects_RC \
19642 compiler_lib_search_path_RC \
19643 compiler_lib_search_dirs_RC \
19645 archive_expsym_cmds_RC \
19646 postinstall_cmds_RC \
19647 postuninstall_cmds_RC \
19648 old_archive_from_expsyms_cmds_RC \
19649 allow_undefined_flag_RC \
19650 no_undefined_flag_RC \
19651 export_symbols_cmds_RC \
19652 hardcode_libdir_flag_spec_RC \
19653 hardcode_libdir_flag_spec_ld_RC \
19654 hardcode_libdir_separator_RC \
19655 hardcode_automatic_RC \
19657 module_expsym_cmds_RC \
19658 lt_cv_prog_compiler_c_o_RC \
19659 fix_srcfile_path_RC \
19660 exclude_expsyms_RC \
19661 include_expsyms_RC; do
19664 old_archive_cmds_RC | \
19665 old_archive_from_new_cmds_RC | \
19666 archive_cmds_RC | \
19667 archive_expsym_cmds_RC | \
19669 module_expsym_cmds_RC | \
19670 old_archive_from_expsyms_cmds_RC | \
19671 export_symbols_cmds_RC | \
19672 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19673 postinstall_cmds | postuninstall_cmds | \
19674 old_postinstall_cmds | old_postuninstall_cmds | \
19675 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19676 # Double-quote double-evaled strings.
19677 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19680 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19686 *'\$0 --fallback-echo"')
19687 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19693 cat <<__EOF__ >> "$cfgfile"
19694 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19696 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19698 # Shell to use when invoking shell scripts.
19701 # Whether or not to build shared libraries.
19702 build_libtool_libs=$enable_shared
19704 # Whether or not to build static libraries.
19705 build_old_libs=$enable_static
19707 # Whether or not to add -lc for building shared libraries.
19708 build_libtool_need_lc=$archive_cmds_need_lc_RC
19710 # Whether or not to disallow shared libs when runtime libs are static
19711 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19713 # Whether or not to optimize for fast installation.
19714 fast_install=$enable_fast_install
19717 host_alias=$host_alias
19721 # The build system.
19722 build_alias=$build_alias
19726 # An echo program that does not interpret backslashes.
19731 AR_FLAGS=$lt_AR_FLAGS
19736 # LTCC compiler flags.
19737 LTCFLAGS=$lt_LTCFLAGS
19739 # A language-specific compiler.
19742 # Is the compiler the GNU C compiler?
19748 # The linker used to build libraries.
19751 # Whether we need hard or soft links.
19754 # A BSD-compatible nm program.
19757 # A symbol stripping program
19760 # Used to examine libraries when file_magic_cmd begins "file"
19761 MAGIC_CMD=$MAGIC_CMD
19763 # Used on cygwin: DLL creation program.
19766 # Used on cygwin: object dumper.
19769 # Used on cygwin: assembler.
19772 # The name of the directory that contains temporary libtool files.
19775 # How to create reloadable object files.
19776 reload_flag=$lt_reload_flag
19777 reload_cmds=$lt_reload_cmds
19779 # How to pass a linker flag through the compiler.
19780 wl=$lt_lt_prog_compiler_wl_RC
19782 # Object file suffix (normally "o").
19783 objext="$ac_objext"
19785 # Old archive suffix (normally "a").
19788 # Shared library suffix (normally ".so").
19789 shrext_cmds='$shrext_cmds'
19791 # Executable file suffix (normally "").
19794 # Additional compiler flags for building library objects.
19795 pic_flag=$lt_lt_prog_compiler_pic_RC
19798 # What is the maximum length of a command?
19799 max_cmd_len=$lt_cv_sys_max_cmd_len
19801 # Does compiler simultaneously support -c and -o options?
19802 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19804 # Must we lock files when doing compilation?
19805 need_locks=$lt_need_locks
19807 # Do we need the lib prefix for modules?
19808 need_lib_prefix=$need_lib_prefix
19810 # Do we need a version for libraries?
19811 need_version=$need_version
19813 # Whether dlopen is supported.
19814 dlopen_support=$enable_dlopen
19816 # Whether dlopen of programs is supported.
19817 dlopen_self=$enable_dlopen_self
19819 # Whether dlopen of statically linked programs is supported.
19820 dlopen_self_static=$enable_dlopen_self_static
19822 # Compiler flag to prevent dynamic linking.
19823 link_static_flag=$lt_lt_prog_compiler_static_RC
19825 # Compiler flag to turn off builtin functions.
19826 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19828 # Compiler flag to allow reflexive dlopens.
19829 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19831 # Compiler flag to generate shared objects directly from archives.
19832 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19834 # Compiler flag to generate thread-safe objects.
19835 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19837 # Library versioning type.
19838 version_type=$version_type
19840 # Format of library name prefix.
19841 libname_spec=$lt_libname_spec
19843 # List of archive names. First name is the real one, the rest are links.
19844 # The last name is the one that the linker finds with -lNAME.
19845 library_names_spec=$lt_library_names_spec
19847 # The coded name of the library, if different from the real name.
19848 soname_spec=$lt_soname_spec
19850 # Commands used to build and install an old-style archive.
19852 old_archive_cmds=$lt_old_archive_cmds_RC
19853 old_postinstall_cmds=$lt_old_postinstall_cmds
19854 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19856 # Create an old-style archive from a shared archive.
19857 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19859 # Create a temporary old-style archive to link instead of a shared archive.
19860 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19862 # Commands used to build and install a shared archive.
19863 archive_cmds=$lt_archive_cmds_RC
19864 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19865 postinstall_cmds=$lt_postinstall_cmds
19866 postuninstall_cmds=$lt_postuninstall_cmds
19868 # Commands used to build a loadable module (assumed same as above if empty)
19869 module_cmds=$lt_module_cmds_RC
19870 module_expsym_cmds=$lt_module_expsym_cmds_RC
19872 # Commands to strip libraries.
19873 old_striplib=$lt_old_striplib
19874 striplib=$lt_striplib
19876 # Dependencies to place before the objects being linked to create a
19878 predep_objects=$lt_predep_objects_RC
19880 # Dependencies to place after the objects being linked to create a
19882 postdep_objects=$lt_postdep_objects_RC
19884 # Dependencies to place before the objects being linked to create a
19886 predeps=$lt_predeps_RC
19888 # Dependencies to place after the objects being linked to create a
19890 postdeps=$lt_postdeps_RC
19892 # The directories searched by this compiler when creating a shared
19894 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19896 # The library search path used internally by the compiler when linking
19897 # a shared library.
19898 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19900 # Method to check whether dependent libraries are shared objects.
19901 deplibs_check_method=$lt_deplibs_check_method
19903 # Command to use when deplibs_check_method == file_magic.
19904 file_magic_cmd=$lt_file_magic_cmd
19906 # Flag that allows shared libraries with undefined symbols to be built.
19907 allow_undefined_flag=$lt_allow_undefined_flag_RC
19909 # Flag that forces no undefined symbols.
19910 no_undefined_flag=$lt_no_undefined_flag_RC
19912 # Commands used to finish a libtool library installation in a directory.
19913 finish_cmds=$lt_finish_cmds
19915 # Same as above, but a single script fragment to be evaled but not shown.
19916 finish_eval=$lt_finish_eval
19918 # Take the output of nm and produce a listing of raw symbols and C names.
19919 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19921 # Transform the output of nm in a proper C declaration
19922 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19924 # Transform the output of nm in a C name address pair
19925 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19927 # This is the shared library runtime path variable.
19928 runpath_var=$runpath_var
19930 # This is the shared library path variable.
19931 shlibpath_var=$shlibpath_var
19933 # Is shlibpath searched before the hard-coded library search path?
19934 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19936 # How to hardcode a shared library path into an executable.
19937 hardcode_action=$hardcode_action_RC
19939 # Whether we should hardcode library paths into libraries.
19940 hardcode_into_libs=$hardcode_into_libs
19942 # Flag to hardcode \$libdir into a binary during linking.
19943 # This must work even if \$libdir does not exist.
19944 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19946 # If ld is used when linking, flag to hardcode \$libdir into
19947 # a binary during linking. This must work even if \$libdir does
19949 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19951 # Whether we need a single -rpath flag with a separated argument.
19952 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19954 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19955 # resulting binary.
19956 hardcode_direct=$hardcode_direct_RC
19958 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19959 # resulting binary.
19960 hardcode_minus_L=$hardcode_minus_L_RC
19962 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19963 # the resulting binary.
19964 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19966 # Set to yes if building a shared library automatically hardcodes DIR into the library
19967 # and all subsequent libraries and executables linked against it.
19968 hardcode_automatic=$hardcode_automatic_RC
19970 # Variables whose values should be saved in libtool wrapper scripts and
19971 # restored at relink time.
19972 variables_saved_for_relink="$variables_saved_for_relink"
19974 # Whether libtool must link a program against all its dependency libraries.
19975 link_all_deplibs=$link_all_deplibs_RC
19977 # Compile-time system search path for libraries
19978 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19980 # Run-time system search path for libraries
19981 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19983 # Fix the shell variable \$srcfile for the compiler.
19984 fix_srcfile_path=$lt_fix_srcfile_path
19986 # Set to yes if exported symbols are required.
19987 always_export_symbols=$always_export_symbols_RC
19989 # The commands to list exported symbols.
19990 export_symbols_cmds=$lt_export_symbols_cmds_RC
19992 # The commands to extract the exported symbol list from a shared archive.
19993 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19995 # Symbols that should not be listed in the preloaded symbols.
19996 exclude_expsyms=$lt_exclude_expsyms_RC
19998 # Symbols that must always be exported.
19999 include_expsyms=$lt_include_expsyms_RC
20001 # ### END LIBTOOL TAG CONFIG: $tagname
20007 # If there is no Makefile yet, we rely on a make rule to execute
20008 # `config.status --recheck' to rerun these tests and create the
20009 # libtool script then.
20010 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20011 if test -f "$ltmain_in"; then
20012 test -f Makefile && make "$ltmain"
20018 ac_cpp='$CPP $CPPFLAGS'
20019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20028 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20029 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20030 { (exit 1); exit 1; }; }
20034 # Append the new tag name to the list of available tags.
20035 if test -n "$tagname" ; then
20036 available_tags="$available_tags $tagname"
20042 # Now substitute the updated list of available tags.
20043 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20044 mv "${ofile}T" "$ofile"
20048 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20049 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20050 { (exit 1); exit 1; }; }
20056 # This can be used to rebuild libtool when needed
20057 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20059 # Always use our own libtool.
20060 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20062 # Prevent multiple expansion
20088 ## SVN version check
20090 if test -e .svn ; then
20091 VERSION="$VERSION-r`svnversion`"
20092 PACKAGE_VERSION="$PACKAGE_VERSION-r`svnversion`"
20093 PACKAGE_STRING="PACKAGE_STRING r`svnversion`"
20100 { echo "$as_me:$LINENO: result: " >&5
20101 echo "${ECHO_T}" >&6; }
20102 { echo "$as_me:$LINENO: result: ${T_MD}System checks...${T_ME}" >&5
20103 echo "${ECHO_T}${T_MD}System checks...${T_ME}" >&6; }
20106 ac_cpp='$CPP $CPPFLAGS'
20107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20110 if test -n "$ac_tool_prefix"; then
20111 for ac_prog in xlC gcc cc
20113 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20114 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20117 if test "${ac_cv_prog_CC+set}" = set; then
20118 echo $ECHO_N "(cached) $ECHO_C" >&6
20120 if test -n "$CC"; then
20121 ac_cv_prog_CC="$CC" # Let the user override the test.
20123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20124 for as_dir in $PATH
20127 test -z "$as_dir" && as_dir=.
20128 for ac_exec_ext in '' $ac_executable_extensions; do
20129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20130 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
20131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20141 if test -n "$CC"; then
20142 { echo "$as_me:$LINENO: result: $CC" >&5
20143 echo "${ECHO_T}$CC" >&6; }
20145 { echo "$as_me:$LINENO: result: no" >&5
20146 echo "${ECHO_T}no" >&6; }
20150 test -n "$CC" && break
20153 if test -z "$CC"; then
20155 for ac_prog in xlC gcc cc
20157 # Extract the first word of "$ac_prog", so it can be a program name with args.
20158 set dummy $ac_prog; ac_word=$2
20159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20161 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20162 echo $ECHO_N "(cached) $ECHO_C" >&6
20164 if test -n "$ac_ct_CC"; then
20165 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20168 for as_dir in $PATH
20171 test -z "$as_dir" && as_dir=.
20172 for ac_exec_ext in '' $ac_executable_extensions; do
20173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20174 ac_cv_prog_ac_ct_CC="$ac_prog"
20175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20184 ac_ct_CC=$ac_cv_prog_ac_ct_CC
20185 if test -n "$ac_ct_CC"; then
20186 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20187 echo "${ECHO_T}$ac_ct_CC" >&6; }
20189 { echo "$as_me:$LINENO: result: no" >&5
20190 echo "${ECHO_T}no" >&6; }
20194 test -n "$ac_ct_CC" && break
20197 if test "x$ac_ct_CC" = x; then
20200 case $cross_compiling:$ac_tool_warned in
20202 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20203 whose name does not start with the host triplet. If you think this
20204 configuration is useful to you, please write to autoconf@gnu.org." >&5
20205 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20206 whose name does not start with the host triplet. If you think this
20207 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20208 ac_tool_warned=yes ;;
20215 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
20216 See \`config.log' for more details." >&5
20217 echo "$as_me: error: no acceptable C compiler found in \$PATH
20218 See \`config.log' for more details." >&2;}
20219 { (exit 1); exit 1; }; }
20221 # Provide some information about the compiler.
20222 echo "$as_me:$LINENO: checking for C compiler version" >&5
20223 ac_compiler=`set X $ac_compile; echo $2`
20224 { (ac_try="$ac_compiler --version >&5"
20225 case "(($ac_try" in
20226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20227 *) ac_try_echo=$ac_try;;
20229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20230 (eval "$ac_compiler --version >&5") 2>&5
20232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233 (exit $ac_status); }
20234 { (ac_try="$ac_compiler -v >&5"
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_compiler -v >&5") 2>&5
20242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20243 (exit $ac_status); }
20244 { (ac_try="$ac_compiler -V >&5"
20245 case "(($ac_try" in
20246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20247 *) ac_try_echo=$ac_try;;
20249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20250 (eval "$ac_compiler -V >&5") 2>&5
20252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20253 (exit $ac_status); }
20255 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20256 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
20257 if test "${ac_cv_c_compiler_gnu+set}" = set; then
20258 echo $ECHO_N "(cached) $ECHO_C" >&6
20260 cat >conftest.$ac_ext <<_ACEOF
20263 cat confdefs.h >>conftest.$ac_ext
20264 cat >>conftest.$ac_ext <<_ACEOF
20265 /* end confdefs.h. */
20278 rm -f conftest.$ac_objext
20279 if { (ac_try="$ac_compile"
20280 case "(($ac_try" in
20281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20282 *) ac_try_echo=$ac_try;;
20284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20285 (eval "$ac_compile") 2>conftest.er1
20287 grep -v '^ *+' conftest.er1 >conftest.err
20289 cat conftest.err >&5
20290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291 (exit $ac_status); } && {
20292 test -z "$ac_c_werror_flag" ||
20293 test ! -s conftest.err
20294 } && test -s conftest.$ac_objext; then
20295 ac_compiler_gnu=yes
20297 echo "$as_me: failed program was:" >&5
20298 sed 's/^/| /' conftest.$ac_ext >&5
20303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20304 ac_cv_c_compiler_gnu=$ac_compiler_gnu
20307 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20308 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
20309 GCC=`test $ac_compiler_gnu = yes && echo yes`
20310 ac_test_CFLAGS=${CFLAGS+set}
20311 ac_save_CFLAGS=$CFLAGS
20312 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20313 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
20314 if test "${ac_cv_prog_cc_g+set}" = set; then
20315 echo $ECHO_N "(cached) $ECHO_C" >&6
20317 ac_save_c_werror_flag=$ac_c_werror_flag
20318 ac_c_werror_flag=yes
20321 cat >conftest.$ac_ext <<_ACEOF
20324 cat confdefs.h >>conftest.$ac_ext
20325 cat >>conftest.$ac_ext <<_ACEOF
20326 /* end confdefs.h. */
20336 rm -f conftest.$ac_objext
20337 if { (ac_try="$ac_compile"
20338 case "(($ac_try" in
20339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20340 *) ac_try_echo=$ac_try;;
20342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20343 (eval "$ac_compile") 2>conftest.er1
20345 grep -v '^ *+' conftest.er1 >conftest.err
20347 cat conftest.err >&5
20348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20349 (exit $ac_status); } && {
20350 test -z "$ac_c_werror_flag" ||
20351 test ! -s conftest.err
20352 } && test -s conftest.$ac_objext; then
20353 ac_cv_prog_cc_g=yes
20355 echo "$as_me: failed program was:" >&5
20356 sed 's/^/| /' conftest.$ac_ext >&5
20359 cat >conftest.$ac_ext <<_ACEOF
20362 cat confdefs.h >>conftest.$ac_ext
20363 cat >>conftest.$ac_ext <<_ACEOF
20364 /* end confdefs.h. */
20374 rm -f conftest.$ac_objext
20375 if { (ac_try="$ac_compile"
20376 case "(($ac_try" in
20377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20378 *) ac_try_echo=$ac_try;;
20380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20381 (eval "$ac_compile") 2>conftest.er1
20383 grep -v '^ *+' conftest.er1 >conftest.err
20385 cat conftest.err >&5
20386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20387 (exit $ac_status); } && {
20388 test -z "$ac_c_werror_flag" ||
20389 test ! -s conftest.err
20390 } && test -s conftest.$ac_objext; then
20393 echo "$as_me: failed program was:" >&5
20394 sed 's/^/| /' conftest.$ac_ext >&5
20396 ac_c_werror_flag=$ac_save_c_werror_flag
20398 cat >conftest.$ac_ext <<_ACEOF
20401 cat confdefs.h >>conftest.$ac_ext
20402 cat >>conftest.$ac_ext <<_ACEOF
20403 /* end confdefs.h. */
20413 rm -f conftest.$ac_objext
20414 if { (ac_try="$ac_compile"
20415 case "(($ac_try" in
20416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20417 *) ac_try_echo=$ac_try;;
20419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20420 (eval "$ac_compile") 2>conftest.er1
20422 grep -v '^ *+' conftest.er1 >conftest.err
20424 cat conftest.err >&5
20425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426 (exit $ac_status); } && {
20427 test -z "$ac_c_werror_flag" ||
20428 test ! -s conftest.err
20429 } && test -s conftest.$ac_objext; then
20430 ac_cv_prog_cc_g=yes
20432 echo "$as_me: failed program was:" >&5
20433 sed 's/^/| /' conftest.$ac_ext >&5
20438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20445 ac_c_werror_flag=$ac_save_c_werror_flag
20447 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20448 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
20449 if test "$ac_test_CFLAGS" = set; then
20450 CFLAGS=$ac_save_CFLAGS
20451 elif test $ac_cv_prog_cc_g = yes; then
20452 if test "$GCC" = yes; then
20458 if test "$GCC" = yes; then
20464 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20465 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
20466 if test "${ac_cv_prog_cc_c89+set}" = set; then
20467 echo $ECHO_N "(cached) $ECHO_C" >&6
20469 ac_cv_prog_cc_c89=no
20471 cat >conftest.$ac_ext <<_ACEOF
20474 cat confdefs.h >>conftest.$ac_ext
20475 cat >>conftest.$ac_ext <<_ACEOF
20476 /* end confdefs.h. */
20477 #include <stdarg.h>
20479 #include <sys/types.h>
20480 #include <sys/stat.h>
20481 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
20482 struct buf { int x; };
20483 FILE * (*rcsopen) (struct buf *, struct stat *, int);
20484 static char *e (p, i)
20490 static char *f (char * (*g) (char **, int), char **p, ...)
20495 s = g (p, va_arg (v,int));
20500 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
20501 function prototypes and stuff, but not '\xHH' hex character constants.
20502 These don't provoke an error unfortunately, instead are silently treated
20503 as 'x'. The following induces an error, until -std is added to get
20504 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
20505 array size at least. It's necessary to write '\x00'==0 to get something
20506 that's true only with -std. */
20507 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20509 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20510 inside strings and character constants. */
20512 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20514 int test (int i, double x);
20515 struct s1 {int (*f) (int a);};
20516 struct s2 {int (*f) (double a);};
20517 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20523 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
20528 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20529 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20531 CC="$ac_save_CC $ac_arg"
20532 rm -f conftest.$ac_objext
20533 if { (ac_try="$ac_compile"
20534 case "(($ac_try" in
20535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20536 *) ac_try_echo=$ac_try;;
20538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20539 (eval "$ac_compile") 2>conftest.er1
20541 grep -v '^ *+' conftest.er1 >conftest.err
20543 cat conftest.err >&5
20544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545 (exit $ac_status); } && {
20546 test -z "$ac_c_werror_flag" ||
20547 test ! -s conftest.err
20548 } && test -s conftest.$ac_objext; then
20549 ac_cv_prog_cc_c89=$ac_arg
20551 echo "$as_me: failed program was:" >&5
20552 sed 's/^/| /' conftest.$ac_ext >&5
20557 rm -f core conftest.err conftest.$ac_objext
20558 test "x$ac_cv_prog_cc_c89" != "xno" && break
20560 rm -f conftest.$ac_ext
20565 case "x$ac_cv_prog_cc_c89" in
20567 { echo "$as_me:$LINENO: result: none needed" >&5
20568 echo "${ECHO_T}none needed" >&6; } ;;
20570 { echo "$as_me:$LINENO: result: unsupported" >&5
20571 echo "${ECHO_T}unsupported" >&6; } ;;
20573 CC="$CC $ac_cv_prog_cc_c89"
20574 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20575 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
20580 ac_cpp='$CPP $CPPFLAGS'
20581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20585 depcc="$CC" am_compiler_list=
20587 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20588 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
20589 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20590 echo $ECHO_N "(cached) $ECHO_C" >&6
20592 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20593 # We make a subdir and do the tests there. Otherwise we can end up
20594 # making bogus files that we don't know about and never remove. For
20595 # instance it was reported that on HP-UX the gcc test will end up
20596 # making a dummy file named `D' -- because `-MD' means `put the output
20599 # Copy depcomp to subdir because otherwise we won't find it if we're
20600 # using a relative directory.
20601 cp "$am_depcomp" conftest.dir
20603 # We will build objects and dependencies in a subdirectory because
20604 # it helps to detect inapplicable dependency modes. For instance
20605 # both Tru64's cc and ICC support -MD to output dependencies as a
20606 # side effect of compilation, but ICC will put the dependencies in
20607 # the current directory while Tru64 will put them in the object
20611 am_cv_CC_dependencies_compiler_type=none
20612 if test "$am_compiler_list" = ""; then
20613 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20615 for depmode in $am_compiler_list; do
20616 # Setup a source with many dependencies, because some compilers
20617 # like to wrap large dependency lists on column 80 (with \), and
20618 # we should not choose a depcomp mode which is confused by this.
20620 # We need to recreate these files for each test, as the compiler may
20621 # overwrite some of them when testing with obscure command lines.
20622 # This happens at least with the AIX C compiler.
20624 for i in 1 2 3 4 5 6; do
20625 echo '#include "conftst'$i'.h"' >> sub/conftest.c
20626 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20627 # Solaris 8's {/usr,}/bin/sh.
20628 touch sub/conftst$i.h
20630 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20634 # after this tag, mechanisms are not by side-effect, so they'll
20635 # only be used when explicitly requested
20636 if test "x$enable_dependency_tracking" = xyes; then
20644 # We check with `-c' and `-o' for the sake of the "dashmstdout"
20645 # mode. It turns out that the SunPro C++ compiler does not properly
20646 # handle `-M -o', and we need to detect this.
20647 if depmode=$depmode \
20648 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20649 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20650 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20651 >/dev/null 2>conftest.err &&
20652 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20653 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20654 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20655 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20656 # icc doesn't choke on unknown options, it will just issue warnings
20657 # or remarks (even with -Werror). So we grep stderr for any message
20658 # that says an option was ignored or not supported.
20659 # When given -MP, icc 7.0 and 7.1 complain thusly:
20660 # icc: Command line warning: ignoring option '-M'; no argument required
20661 # The diagnosis changed in icc 8.0:
20662 # icc: Command line remark: option '-MP' not supported
20663 if (grep 'ignoring option' conftest.err ||
20664 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20665 am_cv_CC_dependencies_compiler_type=$depmode
20672 rm -rf conftest.dir
20674 am_cv_CC_dependencies_compiler_type=none
20678 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20679 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
20680 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20683 test "x$enable_dependency_tracking" != xno \
20684 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20685 am__fastdepCC_TRUE=
20686 am__fastdepCC_FALSE='#'
20688 am__fastdepCC_TRUE='#'
20689 am__fastdepCC_FALSE=
20693 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
20694 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
20697 echo timestamp > conftest.file
20698 # Do `set' in a subshell so we don't clobber the current shell's
20699 # arguments. Must try -L first in case configure is actually a
20700 # symlink; some systems play weird games with the mod time of symlinks
20701 # (eg FreeBSD returns the mod time of the symlink's containing
20704 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
20705 if test "$*" = "X"; then
20707 set X `ls -t $srcdir/configure conftest.file`
20709 rm -f conftest.file
20710 if test "$*" != "X $srcdir/configure conftest.file" \
20711 && test "$*" != "X conftest.file $srcdir/configure"; then
20713 # If neither matched, then we have a broken ls. This can happen
20714 # if, for instance, CONFIG_SHELL is bash and it inherits a
20715 # broken ls alias from the environment. This has actually
20716 # happened. Such a system could not be considered "sane".
20717 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
20718 alias in your environment" >&5
20719 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
20720 alias in your environment" >&2;}
20721 { (exit 1); exit 1; }; }
20724 test "$2" = conftest.file
20730 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
20731 Check your system clock" >&5
20732 echo "$as_me: error: newly created file is older than distributed files!
20733 Check your system clock" >&2;}
20734 { (exit 1); exit 1; }; }
20736 { echo "$as_me:$LINENO: result: yes" >&5
20737 echo "${ECHO_T}yes" >&6; }
20738 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20739 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
20740 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
20741 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
20742 echo $ECHO_N "(cached) $ECHO_C" >&6
20744 cat >conftest.make <<\_ACEOF
20747 @echo '@@@%%%=$(MAKE)=@@@%%%'
20749 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20750 case `${MAKE-make} -f conftest.make 2>/dev/null` in
20751 *@@@%%%=?*=@@@%%%*)
20752 eval ac_cv_prog_make_${ac_make}_set=yes;;
20754 eval ac_cv_prog_make_${ac_make}_set=no;;
20756 rm -f conftest.make
20758 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
20759 { echo "$as_me:$LINENO: result: yes" >&5
20760 echo "${ECHO_T}yes" >&6; }
20763 { echo "$as_me:$LINENO: result: no" >&5
20764 echo "${ECHO_T}no" >&6; }
20765 SET_MAKE="MAKE=${MAKE-make}"
20769 { echo "$as_me:$LINENO: checking whether printf(\"%s\",NULL) works..." >&5
20770 echo $ECHO_N "checking whether printf(\"%s\",NULL) works...... $ECHO_C" >&6; }
20771 if test "$cross_compiling" = yes; then
20772 { echo "$as_me:$LINENO: result: assuming the worse in cross-compilation" >&5
20773 echo "${ECHO_T}assuming the worse in cross-compilation" >&6; }
20775 cat >conftest.$ac_ext <<_ACEOF
20778 cat confdefs.h >>conftest.$ac_ext
20779 cat >>conftest.$ac_ext <<_ACEOF
20780 /* end confdefs.h. */
20790 rm -f conftest$ac_exeext
20791 if { (ac_try="$ac_link"
20792 case "(($ac_try" in
20793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20794 *) ac_try_echo=$ac_try;;
20796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20797 (eval "$ac_link") 2>&5
20799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20800 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20801 { (case "(($ac_try" in
20802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20803 *) ac_try_echo=$ac_try;;
20805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20806 (eval "$ac_try") 2>&5
20808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809 (exit $ac_status); }; }; then
20811 cat >>confdefs.h <<\_ACEOF
20812 #define PRINTF_NULL_WORKING 1
20815 { echo "$as_me:$LINENO: result: yes" >&5
20816 echo "${ECHO_T}yes" >&6; }
20818 echo "$as_me: program exited with status $ac_status" >&5
20819 echo "$as_me: failed program was:" >&5
20820 sed 's/^/| /' conftest.$ac_ext >&5
20822 ( exit $ac_status )
20823 { echo "$as_me:$LINENO: result: no" >&5
20824 echo "${ECHO_T}no" >&6; }
20826 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20832 { echo "$as_me:$LINENO: checking for va_copy() function" >&5
20833 echo $ECHO_N "checking for va_copy() function... $ECHO_C" >&6; }
20834 if test "${ac_cv_va_copy+set}" = set; then
20835 echo $ECHO_N "(cached) $ECHO_C" >&6
20842 if test ".$ac_cv_va_copy" = .; then
20843 if test "$cross_compiling" = yes; then
20844 ac_cv_va_copy="C99"
20846 cat >conftest.$ac_ext <<_ACEOF
20849 cat confdefs.h >>conftest.$ac_ext
20850 cat >>conftest.$ac_ext <<_ACEOF
20851 /* end confdefs.h. */
20853 #include <stdlib.h>
20854 #include <stdarg.h>
20855 #include <string.h>
20856 #define DO_VA_COPY(d, s) va_copy((d), (s))
20857 void test(char *str, ...)
20862 DO_VA_COPY(ap2, ap);
20863 for (i = 1; i <= 9; i++) {
20864 int k = (int)va_arg(ap, int);
20868 DO_VA_COPY(ap, ap2);
20869 for (i = 1; i <= 9; i++) {
20870 int k = (int)va_arg(ap, int);
20876 int main(int argc, char *argv[])
20878 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20883 rm -f conftest$ac_exeext
20884 if { (ac_try="$ac_link"
20885 case "(($ac_try" in
20886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20887 *) ac_try_echo=$ac_try;;
20889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20890 (eval "$ac_link") 2>&5
20892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20894 { (case "(($ac_try" in
20895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20896 *) ac_try_echo=$ac_try;;
20898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20899 (eval "$ac_try") 2>&5
20901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20902 (exit $ac_status); }; }; then
20903 ac_cv_va_copy="C99"
20905 echo "$as_me: program exited with status $ac_status" >&5
20906 echo "$as_me: failed program was:" >&5
20907 sed 's/^/| /' conftest.$ac_ext >&5
20910 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20919 if test ".$ac_cv_va_copy" = .; then
20920 if test "$cross_compiling" = yes; then
20921 ac_cv_va_copy="GCM"
20923 cat >conftest.$ac_ext <<_ACEOF
20926 cat confdefs.h >>conftest.$ac_ext
20927 cat >>conftest.$ac_ext <<_ACEOF
20928 /* end confdefs.h. */
20930 #include <stdlib.h>
20931 #include <stdarg.h>
20932 #include <string.h>
20933 #define DO_VA_COPY(d, s) VA_COPY((d), (s))
20934 void test(char *str, ...)
20939 DO_VA_COPY(ap2, ap);
20940 for (i = 1; i <= 9; i++) {
20941 int k = (int)va_arg(ap, int);
20945 DO_VA_COPY(ap, ap2);
20946 for (i = 1; i <= 9; i++) {
20947 int k = (int)va_arg(ap, int);
20953 int main(int argc, char *argv[])
20955 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20960 rm -f conftest$ac_exeext
20961 if { (ac_try="$ac_link"
20962 case "(($ac_try" in
20963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20964 *) ac_try_echo=$ac_try;;
20966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20967 (eval "$ac_link") 2>&5
20969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20970 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20971 { (case "(($ac_try" in
20972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20973 *) ac_try_echo=$ac_try;;
20975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20976 (eval "$ac_try") 2>&5
20978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979 (exit $ac_status); }; }; then
20980 ac_cv_va_copy="GCM"
20982 echo "$as_me: program exited with status $ac_status" >&5
20983 echo "$as_me: failed program was:" >&5
20984 sed 's/^/| /' conftest.$ac_ext >&5
20987 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20996 if test ".$ac_cv_va_copy" = .; then
20997 if test "$cross_compiling" = yes; then
20998 ac_cv_va_copy="GCH"
21000 cat >conftest.$ac_ext <<_ACEOF
21003 cat confdefs.h >>conftest.$ac_ext
21004 cat >>conftest.$ac_ext <<_ACEOF
21005 /* end confdefs.h. */
21007 #include <stdlib.h>
21008 #include <stdarg.h>
21009 #include <string.h>
21010 #define DO_VA_COPY(d, s) __va_copy((d), (s))
21011 void test(char *str, ...)
21016 DO_VA_COPY(ap2, ap);
21017 for (i = 1; i <= 9; i++) {
21018 int k = (int)va_arg(ap, int);
21022 DO_VA_COPY(ap, ap2);
21023 for (i = 1; i <= 9; i++) {
21024 int k = (int)va_arg(ap, int);
21030 int main(int argc, char *argv[])
21032 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
21037 rm -f conftest$ac_exeext
21038 if { (ac_try="$ac_link"
21039 case "(($ac_try" in
21040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21041 *) ac_try_echo=$ac_try;;
21043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21044 (eval "$ac_link") 2>&5
21046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21047 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21048 { (case "(($ac_try" in
21049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21050 *) ac_try_echo=$ac_try;;
21052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21053 (eval "$ac_try") 2>&5
21055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21056 (exit $ac_status); }; }; then
21057 ac_cv_va_copy="GCH"
21059 echo "$as_me: program exited with status $ac_status" >&5
21060 echo "$as_me: failed program was:" >&5
21061 sed 's/^/| /' conftest.$ac_ext >&5
21064 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21073 if test ".$ac_cv_va_copy" = .; then
21074 if test "$cross_compiling" = yes; then
21075 ac_cv_va_copy="GCB"
21077 cat >conftest.$ac_ext <<_ACEOF
21080 cat confdefs.h >>conftest.$ac_ext
21081 cat >>conftest.$ac_ext <<_ACEOF
21082 /* end confdefs.h. */
21084 #include <stdlib.h>
21085 #include <stdarg.h>
21086 #include <string.h>
21087 #define DO_VA_COPY(d, s) __builtin_va_copy((d), (s))
21088 void test(char *str, ...)
21093 DO_VA_COPY(ap2, ap);
21094 for (i = 1; i <= 9; i++) {
21095 int k = (int)va_arg(ap, int);
21099 DO_VA_COPY(ap, ap2);
21100 for (i = 1; i <= 9; i++) {
21101 int k = (int)va_arg(ap, int);
21107 int main(int argc, char *argv[])
21109 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
21114 rm -f conftest$ac_exeext
21115 if { (ac_try="$ac_link"
21116 case "(($ac_try" in
21117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21118 *) ac_try_echo=$ac_try;;
21120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21121 (eval "$ac_link") 2>&5
21123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21125 { (case "(($ac_try" in
21126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21127 *) ac_try_echo=$ac_try;;
21129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21130 (eval "$ac_try") 2>&5
21132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21133 (exit $ac_status); }; }; then
21134 ac_cv_va_copy="GCB"
21136 echo "$as_me: program exited with status $ac_status" >&5
21137 echo "$as_me: failed program was:" >&5
21138 sed 's/^/| /' conftest.$ac_ext >&5
21141 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21150 if test ".$ac_cv_va_copy" = .; then
21151 if test "$cross_compiling" = yes; then
21152 ac_cv_va_copy="ASS"
21154 cat >conftest.$ac_ext <<_ACEOF
21157 cat confdefs.h >>conftest.$ac_ext
21158 cat >>conftest.$ac_ext <<_ACEOF
21159 /* end confdefs.h. */
21161 #include <stdlib.h>
21162 #include <stdarg.h>
21163 #include <string.h>
21164 #define DO_VA_COPY(d, s) do { (d) = (s); } while (0)
21165 void test(char *str, ...)
21170 DO_VA_COPY(ap2, ap);
21171 for (i = 1; i <= 9; i++) {
21172 int k = (int)va_arg(ap, int);
21176 DO_VA_COPY(ap, ap2);
21177 for (i = 1; i <= 9; i++) {
21178 int k = (int)va_arg(ap, int);
21184 int main(int argc, char *argv[])
21186 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
21191 rm -f conftest$ac_exeext
21192 if { (ac_try="$ac_link"
21193 case "(($ac_try" in
21194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21195 *) ac_try_echo=$ac_try;;
21197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21198 (eval "$ac_link") 2>&5
21200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21201 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21202 { (case "(($ac_try" in
21203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21204 *) ac_try_echo=$ac_try;;
21206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21207 (eval "$ac_try") 2>&5
21209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21210 (exit $ac_status); }; }; then
21211 ac_cv_va_copy="ASS"
21213 echo "$as_me: program exited with status $ac_status" >&5
21214 echo "$as_me: failed program was:" >&5
21215 sed 's/^/| /' conftest.$ac_ext >&5
21218 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21227 if test ".$ac_cv_va_copy" = .; then
21228 if test "$cross_compiling" = yes; then
21229 ac_cv_va_copy="ASP"
21231 cat >conftest.$ac_ext <<_ACEOF
21234 cat confdefs.h >>conftest.$ac_ext
21235 cat >>conftest.$ac_ext <<_ACEOF
21236 /* end confdefs.h. */
21238 #include <stdlib.h>
21239 #include <stdarg.h>
21240 #include <string.h>
21241 #define DO_VA_COPY(d, s) do { *(d) = *(s); } while (0)
21242 void test(char *str, ...)
21247 DO_VA_COPY(ap2, ap);
21248 for (i = 1; i <= 9; i++) {
21249 int k = (int)va_arg(ap, int);
21253 DO_VA_COPY(ap, ap2);
21254 for (i = 1; i <= 9; i++) {
21255 int k = (int)va_arg(ap, int);
21261 int main(int argc, char *argv[])
21263 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
21268 rm -f conftest$ac_exeext
21269 if { (ac_try="$ac_link"
21270 case "(($ac_try" in
21271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21272 *) ac_try_echo=$ac_try;;
21274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21275 (eval "$ac_link") 2>&5
21277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21279 { (case "(($ac_try" in
21280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21281 *) ac_try_echo=$ac_try;;
21283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21284 (eval "$ac_try") 2>&5
21286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21287 (exit $ac_status); }; }; then
21288 ac_cv_va_copy="ASP"
21290 echo "$as_me: program exited with status $ac_status" >&5
21291 echo "$as_me: failed program was:" >&5
21292 sed 's/^/| /' conftest.$ac_ext >&5
21295 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21304 if test ".$ac_cv_va_copy" = .; then
21305 if test "$cross_compiling" = yes; then
21306 ac_cv_va_copy="CPS"
21308 cat >conftest.$ac_ext <<_ACEOF
21311 cat confdefs.h >>conftest.$ac_ext
21312 cat >>conftest.$ac_ext <<_ACEOF
21313 /* end confdefs.h. */
21315 #include <stdlib.h>
21316 #include <stdarg.h>
21317 #include <string.h>
21318 #define DO_VA_COPY(d, s) memcpy((void *)&(d), (void *)&(s))
21319 void test(char *str, ...)
21324 DO_VA_COPY(ap2, ap);
21325 for (i = 1; i <= 9; i++) {
21326 int k = (int)va_arg(ap, int);
21330 DO_VA_COPY(ap, ap2);
21331 for (i = 1; i <= 9; i++) {
21332 int k = (int)va_arg(ap, int);
21338 int main(int argc, char *argv[])
21340 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
21345 rm -f conftest$ac_exeext
21346 if { (ac_try="$ac_link"
21347 case "(($ac_try" in
21348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21349 *) ac_try_echo=$ac_try;;
21351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21352 (eval "$ac_link") 2>&5
21354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21355 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21356 { (case "(($ac_try" in
21357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21358 *) ac_try_echo=$ac_try;;
21360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21361 (eval "$ac_try") 2>&5
21363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21364 (exit $ac_status); }; }; then
21365 ac_cv_va_copy="CPS"
21367 echo "$as_me: program exited with status $ac_status" >&5
21368 echo "$as_me: failed program was:" >&5
21369 sed 's/^/| /' conftest.$ac_ext >&5
21372 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21381 if test ".$ac_cv_va_copy" = .; then
21382 if test "$cross_compiling" = yes; then
21383 ac_cv_va_copy="CPP"
21385 cat >conftest.$ac_ext <<_ACEOF
21388 cat confdefs.h >>conftest.$ac_ext
21389 cat >>conftest.$ac_ext <<_ACEOF
21390 /* end confdefs.h. */
21392 #include <stdlib.h>
21393 #include <stdarg.h>
21394 #include <string.h>
21395 #define DO_VA_COPY(d, s) memcpy((void *)(d), (void *)(s))
21396 void test(char *str, ...)
21401 DO_VA_COPY(ap2, ap);
21402 for (i = 1; i <= 9; i++) {
21403 int k = (int)va_arg(ap, int);
21407 DO_VA_COPY(ap, ap2);
21408 for (i = 1; i <= 9; i++) {
21409 int k = (int)va_arg(ap, int);
21415 int main(int argc, char *argv[])
21417 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
21422 rm -f conftest$ac_exeext
21423 if { (ac_try="$ac_link"
21424 case "(($ac_try" in
21425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21426 *) ac_try_echo=$ac_try;;
21428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21429 (eval "$ac_link") 2>&5
21431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21433 { (case "(($ac_try" in
21434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21435 *) ac_try_echo=$ac_try;;
21437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21438 (eval "$ac_try") 2>&5
21440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21441 (exit $ac_status); }; }; then
21442 ac_cv_va_copy="CPP"
21444 echo "$as_me: program exited with status $ac_status" >&5
21445 echo "$as_me: failed program was:" >&5
21446 sed 's/^/| /' conftest.$ac_ext >&5
21449 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21455 if test ".$ac_cv_va_copy" = .; then
21456 { { echo "$as_me:$LINENO: error: no working implementation found" >&5
21457 echo "$as_me: error: no working implementation found" >&2;}
21458 { (exit 1); exit 1; }; }
21463 if test ".$ac_cv_va_copy" = ".C99"; then
21465 cat >>confdefs.h <<\_ACEOF
21466 #define HAVE_VA_COPY 1
21471 cat >>confdefs.h <<_ACEOF
21472 #define __VA_COPY_USE __VA_COPY_USE_$ac_cv_va_copy
21477 if test ".$ac_cv_va_copy" = ".C99"; then
21478 { echo "$as_me:$LINENO: result: yes" >&5
21479 echo "${ECHO_T}yes" >&6; }
21481 { echo "$as_me:$LINENO: result: no (using fallback implementation)" >&5
21482 echo "${ECHO_T}no (using fallback implementation)" >&6; }
21486 # Checks for header files.
21487 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21488 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21489 if test "${ac_cv_header_stdc+set}" = set; then
21490 echo $ECHO_N "(cached) $ECHO_C" >&6
21492 cat >conftest.$ac_ext <<_ACEOF
21495 cat confdefs.h >>conftest.$ac_ext
21496 cat >>conftest.$ac_ext <<_ACEOF
21497 /* end confdefs.h. */
21498 #include <stdlib.h>
21499 #include <stdarg.h>
21500 #include <string.h>
21511 rm -f conftest.$ac_objext
21512 if { (ac_try="$ac_compile"
21513 case "(($ac_try" in
21514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21515 *) ac_try_echo=$ac_try;;
21517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21518 (eval "$ac_compile") 2>conftest.er1
21520 grep -v '^ *+' conftest.er1 >conftest.err
21522 cat conftest.err >&5
21523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21524 (exit $ac_status); } && {
21525 test -z "$ac_c_werror_flag" ||
21526 test ! -s conftest.err
21527 } && test -s conftest.$ac_objext; then
21528 ac_cv_header_stdc=yes
21530 echo "$as_me: failed program was:" >&5
21531 sed 's/^/| /' conftest.$ac_ext >&5
21533 ac_cv_header_stdc=no
21536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21538 if test $ac_cv_header_stdc = yes; then
21539 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21540 cat >conftest.$ac_ext <<_ACEOF
21543 cat confdefs.h >>conftest.$ac_ext
21544 cat >>conftest.$ac_ext <<_ACEOF
21545 /* end confdefs.h. */
21546 #include <string.h>
21549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21550 $EGREP "memchr" >/dev/null 2>&1; then
21553 ac_cv_header_stdc=no
21559 if test $ac_cv_header_stdc = yes; then
21560 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21561 cat >conftest.$ac_ext <<_ACEOF
21564 cat confdefs.h >>conftest.$ac_ext
21565 cat >>conftest.$ac_ext <<_ACEOF
21566 /* end confdefs.h. */
21567 #include <stdlib.h>
21570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21571 $EGREP "free" >/dev/null 2>&1; then
21574 ac_cv_header_stdc=no
21580 if test $ac_cv_header_stdc = yes; then
21581 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21582 if test "$cross_compiling" = yes; then
21585 cat >conftest.$ac_ext <<_ACEOF
21588 cat confdefs.h >>conftest.$ac_ext
21589 cat >>conftest.$ac_ext <<_ACEOF
21590 /* end confdefs.h. */
21592 #include <stdlib.h>
21593 #if ((' ' & 0x0FF) == 0x020)
21594 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21595 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21597 # define ISLOWER(c) \
21598 (('a' <= (c) && (c) <= 'i') \
21599 || ('j' <= (c) && (c) <= 'r') \
21600 || ('s' <= (c) && (c) <= 'z'))
21601 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21604 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21609 for (i = 0; i < 256; i++)
21610 if (XOR (islower (i), ISLOWER (i))
21611 || toupper (i) != TOUPPER (i))
21616 rm -f conftest$ac_exeext
21617 if { (ac_try="$ac_link"
21618 case "(($ac_try" in
21619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21620 *) ac_try_echo=$ac_try;;
21622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21623 (eval "$ac_link") 2>&5
21625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21626 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21627 { (case "(($ac_try" in
21628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21629 *) ac_try_echo=$ac_try;;
21631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21632 (eval "$ac_try") 2>&5
21634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21635 (exit $ac_status); }; }; then
21638 echo "$as_me: program exited with status $ac_status" >&5
21639 echo "$as_me: failed program was:" >&5
21640 sed 's/^/| /' conftest.$ac_ext >&5
21642 ( exit $ac_status )
21643 ac_cv_header_stdc=no
21645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21651 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21652 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21653 if test $ac_cv_header_stdc = yes; then
21655 cat >>confdefs.h <<\_ACEOF
21656 #define STDC_HEADERS 1
21661 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21662 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21663 if test "${ac_cv_header_time+set}" = set; then
21664 echo $ECHO_N "(cached) $ECHO_C" >&6
21666 cat >conftest.$ac_ext <<_ACEOF
21669 cat confdefs.h >>conftest.$ac_ext
21670 cat >>conftest.$ac_ext <<_ACEOF
21671 /* end confdefs.h. */
21672 #include <sys/types.h>
21673 #include <sys/time.h>
21679 if ((struct tm *) 0)
21685 rm -f conftest.$ac_objext
21686 if { (ac_try="$ac_compile"
21687 case "(($ac_try" in
21688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21689 *) ac_try_echo=$ac_try;;
21691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21692 (eval "$ac_compile") 2>conftest.er1
21694 grep -v '^ *+' conftest.er1 >conftest.err
21696 cat conftest.err >&5
21697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21698 (exit $ac_status); } && {
21699 test -z "$ac_c_werror_flag" ||
21700 test ! -s conftest.err
21701 } && test -s conftest.$ac_objext; then
21702 ac_cv_header_time=yes
21704 echo "$as_me: failed program was:" >&5
21705 sed 's/^/| /' conftest.$ac_ext >&5
21707 ac_cv_header_time=no
21710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21712 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21713 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21714 if test $ac_cv_header_time = yes; then
21716 cat >>confdefs.h <<\_ACEOF
21717 #define TIME_WITH_SYS_TIME 1
21732 for ac_header in sys/socket.h \
21734 windows.h winsock.h winsock2.h \
21740 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21741 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21742 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21743 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21744 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21745 echo $ECHO_N "(cached) $ECHO_C" >&6
21747 ac_res=`eval echo '${'$as_ac_Header'}'`
21748 { echo "$as_me:$LINENO: result: $ac_res" >&5
21749 echo "${ECHO_T}$ac_res" >&6; }
21751 # Is the header compilable?
21752 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21753 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21754 cat >conftest.$ac_ext <<_ACEOF
21757 cat confdefs.h >>conftest.$ac_ext
21758 cat >>conftest.$ac_ext <<_ACEOF
21759 /* end confdefs.h. */
21760 $ac_includes_default
21761 #include <$ac_header>
21763 rm -f conftest.$ac_objext
21764 if { (ac_try="$ac_compile"
21765 case "(($ac_try" in
21766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21767 *) ac_try_echo=$ac_try;;
21769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21770 (eval "$ac_compile") 2>conftest.er1
21772 grep -v '^ *+' conftest.er1 >conftest.err
21774 cat conftest.err >&5
21775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21776 (exit $ac_status); } && {
21777 test -z "$ac_c_werror_flag" ||
21778 test ! -s conftest.err
21779 } && test -s conftest.$ac_objext; then
21780 ac_header_compiler=yes
21782 echo "$as_me: failed program was:" >&5
21783 sed 's/^/| /' conftest.$ac_ext >&5
21785 ac_header_compiler=no
21788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21789 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21790 echo "${ECHO_T}$ac_header_compiler" >&6; }
21792 # Is the header present?
21793 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21794 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21795 cat >conftest.$ac_ext <<_ACEOF
21798 cat confdefs.h >>conftest.$ac_ext
21799 cat >>conftest.$ac_ext <<_ACEOF
21800 /* end confdefs.h. */
21801 #include <$ac_header>
21803 if { (ac_try="$ac_cpp conftest.$ac_ext"
21804 case "(($ac_try" in
21805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21806 *) ac_try_echo=$ac_try;;
21808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21811 grep -v '^ *+' conftest.er1 >conftest.err
21813 cat conftest.err >&5
21814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21815 (exit $ac_status); } >/dev/null && {
21816 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21817 test ! -s conftest.err
21819 ac_header_preproc=yes
21821 echo "$as_me: failed program was:" >&5
21822 sed 's/^/| /' conftest.$ac_ext >&5
21824 ac_header_preproc=no
21827 rm -f conftest.err conftest.$ac_ext
21828 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21829 echo "${ECHO_T}$ac_header_preproc" >&6; }
21831 # So? What about this header?
21832 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21834 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21835 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21836 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21837 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21838 ac_header_preproc=yes
21841 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21842 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21843 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21844 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21845 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21846 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21847 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21848 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21849 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21850 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21851 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21852 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21854 ## -------------------------------------------------- ##
21855 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
21856 ## -------------------------------------------------- ##
21858 ) | sed "s/^/$as_me: WARNING: /" >&2
21861 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21862 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21863 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21864 echo $ECHO_N "(cached) $ECHO_C" >&6
21866 eval "$as_ac_Header=\$ac_header_preproc"
21868 ac_res=`eval echo '${'$as_ac_Header'}'`
21869 { echo "$as_me:$LINENO: result: $ac_res" >&5
21870 echo "${ECHO_T}$ac_res" >&6; }
21873 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21874 cat >>confdefs.h <<_ACEOF
21875 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21890 for ac_func in gettimeofday usleep \
21898 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21899 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21900 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21901 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21902 echo $ECHO_N "(cached) $ECHO_C" >&6
21904 cat >conftest.$ac_ext <<_ACEOF
21907 cat confdefs.h >>conftest.$ac_ext
21908 cat >>conftest.$ac_ext <<_ACEOF
21909 /* end confdefs.h. */
21910 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21911 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21912 #define $ac_func innocuous_$ac_func
21914 /* System header to define __stub macros and hopefully few prototypes,
21915 which can conflict with char $ac_func (); below.
21916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21917 <limits.h> exists even on freestanding compilers. */
21920 # include <limits.h>
21922 # include <assert.h>
21927 /* Override any GCC internal prototype to avoid an error.
21928 Use char because int might match the return type of a GCC
21929 builtin and then its argument prototype would still apply. */
21934 /* The GNU C library defines this for functions which it implements
21935 to always fail with ENOSYS. Some functions are actually named
21936 something starting with __ and the normal name is an alias. */
21937 #if defined __stub_$ac_func || defined __stub___$ac_func
21944 return $ac_func ();
21949 rm -f conftest.$ac_objext conftest$ac_exeext
21950 if { (ac_try="$ac_link"
21951 case "(($ac_try" in
21952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21953 *) ac_try_echo=$ac_try;;
21955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21956 (eval "$ac_link") 2>conftest.er1
21958 grep -v '^ *+' conftest.er1 >conftest.err
21960 cat conftest.err >&5
21961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21962 (exit $ac_status); } && {
21963 test -z "$ac_c_werror_flag" ||
21964 test ! -s conftest.err
21965 } && test -s conftest$ac_exeext &&
21966 $as_test_x conftest$ac_exeext; then
21967 eval "$as_ac_var=yes"
21969 echo "$as_me: failed program was:" >&5
21970 sed 's/^/| /' conftest.$ac_ext >&5
21972 eval "$as_ac_var=no"
21975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21976 conftest$ac_exeext conftest.$ac_ext
21978 ac_res=`eval echo '${'$as_ac_var'}'`
21979 { echo "$as_me:$LINENO: result: $ac_res" >&5
21980 echo "${ECHO_T}$ac_res" >&6; }
21981 if test `eval echo '${'$as_ac_var'}'` = yes; then
21982 cat >>confdefs.h <<_ACEOF
21983 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21990 # check for a working snprintf (or use xbt/snprintf.c, which comes from http://www.ijs.si/software/snprintf/)
21993 for ac_func in snprintf vsnprintf
21995 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21996 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21997 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21998 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21999 echo $ECHO_N "(cached) $ECHO_C" >&6
22001 cat >conftest.$ac_ext <<_ACEOF
22004 cat confdefs.h >>conftest.$ac_ext
22005 cat >>conftest.$ac_ext <<_ACEOF
22006 /* end confdefs.h. */
22007 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22008 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22009 #define $ac_func innocuous_$ac_func
22011 /* System header to define __stub macros and hopefully few prototypes,
22012 which can conflict with char $ac_func (); below.
22013 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22014 <limits.h> exists even on freestanding compilers. */
22017 # include <limits.h>
22019 # include <assert.h>
22024 /* Override any GCC internal prototype to avoid an error.
22025 Use char because int might match the return type of a GCC
22026 builtin and then its argument prototype would still apply. */
22031 /* The GNU C library defines this for functions which it implements
22032 to always fail with ENOSYS. Some functions are actually named
22033 something starting with __ and the normal name is an alias. */
22034 #if defined __stub_$ac_func || defined __stub___$ac_func
22041 return $ac_func ();
22046 rm -f conftest.$ac_objext conftest$ac_exeext
22047 if { (ac_try="$ac_link"
22048 case "(($ac_try" in
22049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22050 *) ac_try_echo=$ac_try;;
22052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22053 (eval "$ac_link") 2>conftest.er1
22055 grep -v '^ *+' conftest.er1 >conftest.err
22057 cat conftest.err >&5
22058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22059 (exit $ac_status); } && {
22060 test -z "$ac_c_werror_flag" ||
22061 test ! -s conftest.err
22062 } && test -s conftest$ac_exeext &&
22063 $as_test_x conftest$ac_exeext; then
22064 eval "$as_ac_var=yes"
22066 echo "$as_me: failed program was:" >&5
22067 sed 's/^/| /' conftest.$ac_ext >&5
22069 eval "$as_ac_var=no"
22072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22073 conftest$ac_exeext conftest.$ac_ext
22075 ac_res=`eval echo '${'$as_ac_var'}'`
22076 { echo "$as_me:$LINENO: result: $ac_res" >&5
22077 echo "${ECHO_T}$ac_res" >&6; }
22078 if test `eval echo '${'$as_ac_var'}'` = yes; then
22079 cat >>confdefs.h <<_ACEOF
22080 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22086 { echo "$as_me:$LINENO: checking for working snprintf" >&5
22087 echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6; }
22088 if test "${ac_cv_have_working_snprintf+set}" = set; then
22089 echo $ECHO_N "(cached) $ECHO_C" >&6
22091 if test "$cross_compiling" = yes; then
22092 ac_cv_have_working_snprintf=cross
22094 cat >conftest.$ac_ext <<_ACEOF
22097 cat confdefs.h >>conftest.$ac_ext
22098 cat >>conftest.$ac_ext <<_ACEOF
22099 /* end confdefs.h. */
22104 char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
22105 char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
22107 i = snprintf (bufs, 2, "%s", "111");
22108 if (strcmp (bufs, "1")) exit (1);
22109 if (i != 3) exit (1);
22110 i = snprintf (bufd, 2, "%d", 111);
22111 if (strcmp (bufd, "1")) exit (1);
22112 if (i != 3) exit (1);
22116 rm -f conftest$ac_exeext
22117 if { (ac_try="$ac_link"
22118 case "(($ac_try" in
22119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22120 *) ac_try_echo=$ac_try;;
22122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22123 (eval "$ac_link") 2>&5
22125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22126 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22127 { (case "(($ac_try" in
22128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22129 *) ac_try_echo=$ac_try;;
22131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22132 (eval "$ac_try") 2>&5
22134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22135 (exit $ac_status); }; }; then
22136 ac_cv_have_working_snprintf=yes
22138 echo "$as_me: program exited with status $ac_status" >&5
22139 echo "$as_me: failed program was:" >&5
22140 sed 's/^/| /' conftest.$ac_ext >&5
22142 ( exit $ac_status )
22143 ac_cv_have_working_snprintf=no
22145 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22151 { echo "$as_me:$LINENO: result: $ac_cv_have_working_snprintf" >&5
22152 echo "${ECHO_T}$ac_cv_have_working_snprintf" >&6; }
22153 { echo "$as_me:$LINENO: checking for working vsnprintf" >&5
22154 echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6; }
22155 if test "${ac_cv_have_working_vsnprintf+set}" = set; then
22156 echo $ECHO_N "(cached) $ECHO_C" >&6
22158 if test "$cross_compiling" = yes; then
22159 ac_cv_have_working_vsnprintf=cross
22161 cat >conftest.$ac_ext <<_ACEOF
22164 cat confdefs.h >>conftest.$ac_ext
22165 cat >>conftest.$ac_ext <<_ACEOF
22166 /* end confdefs.h. */
22168 #include <stdarg.h>
22170 int my_vsnprintf (char *buf, const char *tmpl, ...)
22174 va_start (args, tmpl);
22175 i = vsnprintf (buf, 2, tmpl, args);
22182 char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
22183 char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
22185 i = my_vsnprintf (bufs, "%s", "111");
22186 if (strcmp (bufs, "1")) exit (1);
22187 if (i != 3) exit (1);
22188 i = my_vsnprintf (bufd, "%d", 111);
22189 if (strcmp (bufd, "1")) exit (1);
22190 if (i != 3) exit (1);
22194 rm -f conftest$ac_exeext
22195 if { (ac_try="$ac_link"
22196 case "(($ac_try" in
22197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22198 *) ac_try_echo=$ac_try;;
22200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22201 (eval "$ac_link") 2>&5
22203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22204 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22205 { (case "(($ac_try" in
22206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22207 *) ac_try_echo=$ac_try;;
22209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22210 (eval "$ac_try") 2>&5
22212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22213 (exit $ac_status); }; }; then
22214 ac_cv_have_working_vsnprintf=yes
22216 echo "$as_me: program exited with status $ac_status" >&5
22217 echo "$as_me: failed program was:" >&5
22218 sed 's/^/| /' conftest.$ac_ext >&5
22220 ( exit $ac_status )
22221 ac_cv_have_working_vsnprintf=no
22223 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22229 { echo "$as_me:$LINENO: result: $ac_cv_have_working_vsnprintf" >&5
22230 echo "${ECHO_T}$ac_cv_have_working_vsnprintf" >&6; }
22231 if test x$ac_cv_have_working_snprintf$ac_cv_have_working_vsnprintf != "xyesyes"; then
22232 case " $LIBOBJS " in
22233 *" snprintf.$ac_objext "* ) ;;
22234 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
22238 { echo "$as_me:$LINENO: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&5
22239 echo "$as_me: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&2;}
22241 cat >>confdefs.h <<\_ACEOF
22242 #define PREFER_PORTABLE_SNPRINTF 1
22246 # check for asprintf function familly (or request the replacements from xbt/snprintf.c)
22247 { echo "$as_me:$LINENO: checking for asprintf" >&5
22248 echo $ECHO_N "checking for asprintf... $ECHO_C" >&6; }
22249 if test "${ac_cv_func_asprintf+set}" = set; then
22250 echo $ECHO_N "(cached) $ECHO_C" >&6
22252 cat >conftest.$ac_ext <<_ACEOF
22255 cat confdefs.h >>conftest.$ac_ext
22256 cat >>conftest.$ac_ext <<_ACEOF
22257 /* end confdefs.h. */
22258 /* Define asprintf to an innocuous variant, in case <limits.h> declares asprintf.
22259 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22260 #define asprintf innocuous_asprintf
22262 /* System header to define __stub macros and hopefully few prototypes,
22263 which can conflict with char asprintf (); below.
22264 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22265 <limits.h> exists even on freestanding compilers. */
22268 # include <limits.h>
22270 # include <assert.h>
22275 /* Override any GCC internal prototype to avoid an error.
22276 Use char because int might match the return type of a GCC
22277 builtin and then its argument prototype would still apply. */
22282 /* The GNU C library defines this for functions which it implements
22283 to always fail with ENOSYS. Some functions are actually named
22284 something starting with __ and the normal name is an alias. */
22285 #if defined __stub_asprintf || defined __stub___asprintf
22292 return asprintf ();
22297 rm -f conftest.$ac_objext conftest$ac_exeext
22298 if { (ac_try="$ac_link"
22299 case "(($ac_try" in
22300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22301 *) ac_try_echo=$ac_try;;
22303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22304 (eval "$ac_link") 2>conftest.er1
22306 grep -v '^ *+' conftest.er1 >conftest.err
22308 cat conftest.err >&5
22309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22310 (exit $ac_status); } && {
22311 test -z "$ac_c_werror_flag" ||
22312 test ! -s conftest.err
22313 } && test -s conftest$ac_exeext &&
22314 $as_test_x conftest$ac_exeext; then
22315 ac_cv_func_asprintf=yes
22317 echo "$as_me: failed program was:" >&5
22318 sed 's/^/| /' conftest.$ac_ext >&5
22320 ac_cv_func_asprintf=no
22323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22324 conftest$ac_exeext conftest.$ac_ext
22326 { echo "$as_me:$LINENO: result: $ac_cv_func_asprintf" >&5
22327 echo "${ECHO_T}$ac_cv_func_asprintf" >&6; }
22328 if test $ac_cv_func_asprintf = yes; then
22332 cat >>confdefs.h <<\_ACEOF
22333 #define NEED_ASPRINTF 1
22338 { echo "$as_me:$LINENO: checking for vasprintf" >&5
22339 echo $ECHO_N "checking for vasprintf... $ECHO_C" >&6; }
22340 if test "${ac_cv_func_vasprintf+set}" = set; then
22341 echo $ECHO_N "(cached) $ECHO_C" >&6
22343 cat >conftest.$ac_ext <<_ACEOF
22346 cat confdefs.h >>conftest.$ac_ext
22347 cat >>conftest.$ac_ext <<_ACEOF
22348 /* end confdefs.h. */
22349 /* Define vasprintf to an innocuous variant, in case <limits.h> declares vasprintf.
22350 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22351 #define vasprintf innocuous_vasprintf
22353 /* System header to define __stub macros and hopefully few prototypes,
22354 which can conflict with char vasprintf (); below.
22355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22356 <limits.h> exists even on freestanding compilers. */
22359 # include <limits.h>
22361 # include <assert.h>
22366 /* Override any GCC internal prototype to avoid an error.
22367 Use char because int might match the return type of a GCC
22368 builtin and then its argument prototype would still apply. */
22373 /* The GNU C library defines this for functions which it implements
22374 to always fail with ENOSYS. Some functions are actually named
22375 something starting with __ and the normal name is an alias. */
22376 #if defined __stub_vasprintf || defined __stub___vasprintf
22383 return vasprintf ();
22388 rm -f conftest.$ac_objext conftest$ac_exeext
22389 if { (ac_try="$ac_link"
22390 case "(($ac_try" in
22391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22392 *) ac_try_echo=$ac_try;;
22394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22395 (eval "$ac_link") 2>conftest.er1
22397 grep -v '^ *+' conftest.er1 >conftest.err
22399 cat conftest.err >&5
22400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22401 (exit $ac_status); } && {
22402 test -z "$ac_c_werror_flag" ||
22403 test ! -s conftest.err
22404 } && test -s conftest$ac_exeext &&
22405 $as_test_x conftest$ac_exeext; then
22406 ac_cv_func_vasprintf=yes
22408 echo "$as_me: failed program was:" >&5
22409 sed 's/^/| /' conftest.$ac_ext >&5
22411 ac_cv_func_vasprintf=no
22414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22415 conftest$ac_exeext conftest.$ac_ext
22417 { echo "$as_me:$LINENO: result: $ac_cv_func_vasprintf" >&5
22418 echo "${ECHO_T}$ac_cv_func_vasprintf" >&6; }
22419 if test $ac_cv_func_vasprintf = yes; then
22423 cat >>confdefs.h <<\_ACEOF
22424 #define NEED_VASPRINTF 1
22430 # Checks for typedefs, structures, and compiler characteristics.
22431 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22432 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
22433 if test "${ac_cv_c_const+set}" = set; then
22434 echo $ECHO_N "(cached) $ECHO_C" >&6
22436 cat >conftest.$ac_ext <<_ACEOF
22439 cat confdefs.h >>conftest.$ac_ext
22440 cat >>conftest.$ac_ext <<_ACEOF
22441 /* end confdefs.h. */
22446 /* FIXME: Include the comments suggested by Paul. */
22447 #ifndef __cplusplus
22448 /* Ultrix mips cc rejects this. */
22449 typedef int charset[2];
22451 /* SunOS 4.1.1 cc rejects this. */
22452 char const *const *pcpcc;
22454 /* NEC SVR4.0.2 mips cc rejects this. */
22455 struct point {int x, y;};
22456 static struct point const zero = {0,0};
22457 /* AIX XL C 1.02.0.0 rejects this.
22458 It does not let you subtract one const X* pointer from another in
22459 an arm of an if-expression whose if-part is not a constant
22461 const char *g = "string";
22462 pcpcc = &g + (g ? g-g : 0);
22463 /* HPUX 7.0 cc rejects these. */
22465 ppc = (char**) pcpcc;
22466 pcpcc = (char const *const *) ppc;
22467 { /* SCO 3.2v4 cc rejects this. */
22469 char const *s = 0 ? (char *) 0 : (char const *) 0;
22474 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22475 int x[] = {25, 17};
22476 const int *foo = &x[0];
22479 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22480 typedef const int *iptr;
22484 { /* AIX XL C 1.02.0.0 rejects this saying
22485 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22486 struct s { int j; const int *ap[3]; };
22487 struct s *b; b->j = 5;
22489 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22490 const int foo = 10;
22491 if (!foo) return 0;
22493 return !cs[0] && !zero.x;
22500 rm -f conftest.$ac_objext
22501 if { (ac_try="$ac_compile"
22502 case "(($ac_try" in
22503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22504 *) ac_try_echo=$ac_try;;
22506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22507 (eval "$ac_compile") 2>conftest.er1
22509 grep -v '^ *+' conftest.er1 >conftest.err
22511 cat conftest.err >&5
22512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22513 (exit $ac_status); } && {
22514 test -z "$ac_c_werror_flag" ||
22515 test ! -s conftest.err
22516 } && test -s conftest.$ac_objext; then
22519 echo "$as_me: failed program was:" >&5
22520 sed 's/^/| /' conftest.$ac_ext >&5
22525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22527 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22528 echo "${ECHO_T}$ac_cv_c_const" >&6; }
22529 if test $ac_cv_c_const = no; then
22531 cat >>confdefs.h <<\_ACEOF
22537 { echo "$as_me:$LINENO: checking for inline" >&5
22538 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
22539 if test "${ac_cv_c_inline+set}" = set; then
22540 echo $ECHO_N "(cached) $ECHO_C" >&6
22543 for ac_kw in inline __inline__ __inline; do
22544 cat >conftest.$ac_ext <<_ACEOF
22547 cat confdefs.h >>conftest.$ac_ext
22548 cat >>conftest.$ac_ext <<_ACEOF
22549 /* end confdefs.h. */
22550 #ifndef __cplusplus
22552 static $ac_kw foo_t static_foo () {return 0; }
22553 $ac_kw foo_t foo () {return 0; }
22557 rm -f conftest.$ac_objext
22558 if { (ac_try="$ac_compile"
22559 case "(($ac_try" in
22560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22561 *) ac_try_echo=$ac_try;;
22563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22564 (eval "$ac_compile") 2>conftest.er1
22566 grep -v '^ *+' conftest.er1 >conftest.err
22568 cat conftest.err >&5
22569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22570 (exit $ac_status); } && {
22571 test -z "$ac_c_werror_flag" ||
22572 test ! -s conftest.err
22573 } && test -s conftest.$ac_objext; then
22574 ac_cv_c_inline=$ac_kw
22576 echo "$as_me: failed program was:" >&5
22577 sed 's/^/| /' conftest.$ac_ext >&5
22582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22583 test "$ac_cv_c_inline" != no && break
22587 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
22588 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
22591 case $ac_cv_c_inline in
22594 case $ac_cv_c_inline in
22596 *) ac_val=$ac_cv_c_inline;;
22598 cat >>confdefs.h <<_ACEOF
22599 #ifndef __cplusplus
22600 #define inline $ac_val
22606 { echo "$as_me:$LINENO: checking for size_t" >&5
22607 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22608 if test "${ac_cv_type_size_t+set}" = set; then
22609 echo $ECHO_N "(cached) $ECHO_C" >&6
22611 cat >conftest.$ac_ext <<_ACEOF
22614 cat confdefs.h >>conftest.$ac_ext
22615 cat >>conftest.$ac_ext <<_ACEOF
22616 /* end confdefs.h. */
22617 $ac_includes_default
22618 typedef size_t ac__type_new_;
22622 if ((ac__type_new_ *) 0)
22624 if (sizeof (ac__type_new_))
22630 rm -f conftest.$ac_objext
22631 if { (ac_try="$ac_compile"
22632 case "(($ac_try" in
22633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22634 *) ac_try_echo=$ac_try;;
22636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22637 (eval "$ac_compile") 2>conftest.er1
22639 grep -v '^ *+' conftest.er1 >conftest.err
22641 cat conftest.err >&5
22642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22643 (exit $ac_status); } && {
22644 test -z "$ac_c_werror_flag" ||
22645 test ! -s conftest.err
22646 } && test -s conftest.$ac_objext; then
22647 ac_cv_type_size_t=yes
22649 echo "$as_me: failed program was:" >&5
22650 sed 's/^/| /' conftest.$ac_ext >&5
22652 ac_cv_type_size_t=no
22655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22657 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22658 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22659 if test $ac_cv_type_size_t = yes; then
22663 cat >>confdefs.h <<_ACEOF
22664 #define size_t unsigned int
22670 ###################################
22671 ## SimGrid and GRAS specific checks
22675 { echo "$as_me:$LINENO: result: " >&5
22676 echo "${ECHO_T}" >&6; }
22677 { echo "$as_me:$LINENO: result: ${T_MD}Checking GRAS architecture signature...${T_ME}" >&5
22678 echo "${ECHO_T}${T_MD}Checking GRAS architecture signature...${T_ME}" >&6; }
22680 # Check architecture signature begin
22682 # Check for the architecture
22683 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22684 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
22685 if test "${ac_cv_c_bigendian+set}" = set; then
22686 echo $ECHO_N "(cached) $ECHO_C" >&6
22688 # See if sys/param.h defines the BYTE_ORDER macro.
22689 cat >conftest.$ac_ext <<_ACEOF
22692 cat confdefs.h >>conftest.$ac_ext
22693 cat >>conftest.$ac_ext <<_ACEOF
22694 /* end confdefs.h. */
22695 #include <sys/types.h>
22696 #include <sys/param.h>
22701 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
22702 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
22703 bogus endian macros
22710 rm -f conftest.$ac_objext
22711 if { (ac_try="$ac_compile"
22712 case "(($ac_try" in
22713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22714 *) ac_try_echo=$ac_try;;
22716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22717 (eval "$ac_compile") 2>conftest.er1
22719 grep -v '^ *+' conftest.er1 >conftest.err
22721 cat conftest.err >&5
22722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22723 (exit $ac_status); } && {
22724 test -z "$ac_c_werror_flag" ||
22725 test ! -s conftest.err
22726 } && test -s conftest.$ac_objext; then
22727 # It does; now see whether it defined to BIG_ENDIAN or not.
22728 cat >conftest.$ac_ext <<_ACEOF
22731 cat confdefs.h >>conftest.$ac_ext
22732 cat >>conftest.$ac_ext <<_ACEOF
22733 /* end confdefs.h. */
22734 #include <sys/types.h>
22735 #include <sys/param.h>
22740 #if BYTE_ORDER != BIG_ENDIAN
22748 rm -f conftest.$ac_objext
22749 if { (ac_try="$ac_compile"
22750 case "(($ac_try" in
22751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22752 *) ac_try_echo=$ac_try;;
22754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22755 (eval "$ac_compile") 2>conftest.er1
22757 grep -v '^ *+' conftest.er1 >conftest.err
22759 cat conftest.err >&5
22760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22761 (exit $ac_status); } && {
22762 test -z "$ac_c_werror_flag" ||
22763 test ! -s conftest.err
22764 } && test -s conftest.$ac_objext; then
22765 ac_cv_c_bigendian=yes
22767 echo "$as_me: failed program was:" >&5
22768 sed 's/^/| /' conftest.$ac_ext >&5
22770 ac_cv_c_bigendian=no
22773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22775 echo "$as_me: failed program was:" >&5
22776 sed 's/^/| /' conftest.$ac_ext >&5
22778 # It does not; compile a test program.
22779 if test "$cross_compiling" = yes; then
22780 # try to guess the endianness by grepping values into an object file
22781 ac_cv_c_bigendian=unknown
22782 cat >conftest.$ac_ext <<_ACEOF
22785 cat confdefs.h >>conftest.$ac_ext
22786 cat >>conftest.$ac_ext <<_ACEOF
22787 /* end confdefs.h. */
22788 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22789 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22790 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
22791 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22792 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22793 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
22797 _ascii (); _ebcdic ();
22802 rm -f conftest.$ac_objext
22803 if { (ac_try="$ac_compile"
22804 case "(($ac_try" in
22805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22806 *) ac_try_echo=$ac_try;;
22808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22809 (eval "$ac_compile") 2>conftest.er1
22811 grep -v '^ *+' conftest.er1 >conftest.err
22813 cat conftest.err >&5
22814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22815 (exit $ac_status); } && {
22816 test -z "$ac_c_werror_flag" ||
22817 test ! -s conftest.err
22818 } && test -s conftest.$ac_objext; then
22819 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
22820 ac_cv_c_bigendian=yes
22822 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22823 if test "$ac_cv_c_bigendian" = unknown; then
22824 ac_cv_c_bigendian=no
22826 # finding both strings is unlikely to happen, but who knows?
22827 ac_cv_c_bigendian=unknown
22831 echo "$as_me: failed program was:" >&5
22832 sed 's/^/| /' conftest.$ac_ext >&5
22837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22839 cat >conftest.$ac_ext <<_ACEOF
22842 cat confdefs.h >>conftest.$ac_ext
22843 cat >>conftest.$ac_ext <<_ACEOF
22844 /* end confdefs.h. */
22845 $ac_includes_default
22850 /* Are we little or big endian? From Harbison&Steele. */
22854 char c[sizeof (long int)];
22857 return u.c[sizeof (long int) - 1] == 1;
22863 rm -f conftest$ac_exeext
22864 if { (ac_try="$ac_link"
22865 case "(($ac_try" in
22866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22867 *) ac_try_echo=$ac_try;;
22869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22870 (eval "$ac_link") 2>&5
22872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22873 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22874 { (case "(($ac_try" in
22875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22876 *) ac_try_echo=$ac_try;;
22878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22879 (eval "$ac_try") 2>&5
22881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22882 (exit $ac_status); }; }; then
22883 ac_cv_c_bigendian=no
22885 echo "$as_me: program exited with status $ac_status" >&5
22886 echo "$as_me: failed program was:" >&5
22887 sed 's/^/| /' conftest.$ac_ext >&5
22889 ( exit $ac_status )
22890 ac_cv_c_bigendian=yes
22892 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22900 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22901 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
22902 case $ac_cv_c_bigendian in
22908 { { echo "$as_me:$LINENO: error: GRAS works only for little or big endian systems (yet)" >&5
22909 echo "$as_me: error: GRAS works only for little or big endian systems (yet)" >&2;}
22910 { (exit 1); exit 1; }; } ;;
22914 cat >>confdefs.h <<_ACEOF
22915 #define GRAS_BIGENDIAN $endian
22919 { echo "$as_me:$LINENO: checking size of char" >&5
22920 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
22921 if test "${ac_cv_sizeof_char+set}" = set; then
22922 echo $ECHO_N "(cached) $ECHO_C" >&6
22924 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22925 cat >conftest.$ac_ext <<_ACEOF
22928 cat confdefs.h >>conftest.$ac_ext
22929 cat >>conftest.$ac_ext <<_ACEOF
22930 /* end confdefs.h. */
22931 #include "confdefs.h"
22932 #include <sys/types.h>
22938 switch (0) case 0: case (sizeof (char) == $ac_size):;
22943 rm -f conftest.$ac_objext
22944 if { (ac_try="$ac_compile"
22945 case "(($ac_try" in
22946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22947 *) ac_try_echo=$ac_try;;
22949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22950 (eval "$ac_compile") 2>conftest.er1
22952 grep -v '^ *+' conftest.er1 >conftest.err
22954 cat conftest.err >&5
22955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22956 (exit $ac_status); } && {
22957 test -z "$ac_c_werror_flag" ||
22958 test ! -s conftest.err
22959 } && test -s conftest.$ac_objext; then
22960 ac_cv_sizeof_char=$ac_size
22962 echo "$as_me: failed program was:" >&5
22963 sed 's/^/| /' conftest.$ac_ext >&5
22968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22969 if test x$ac_cv_sizeof_char != x ; then break; fi
22975 unspecif=$ac_cv_sizeof_char
22976 if test x$unspecif = x ; then
22977 { { echo "$as_me:$LINENO: error: cannot determine a size for char" >&5
22978 echo "$as_me: error: cannot determine a size for char" >&2;}
22979 { (exit 1); exit 1; }; }
22982 if test "${ac_cv_sizeof_signed_char+set}" = set; then
22983 echo $ECHO_N "(cached) $ECHO_C" >&6
22985 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22986 cat >conftest.$ac_ext <<_ACEOF
22989 cat confdefs.h >>conftest.$ac_ext
22990 cat >>conftest.$ac_ext <<_ACEOF
22991 /* end confdefs.h. */
22992 #include "confdefs.h"
22993 #include <sys/types.h>
22999 switch (0) case 0: case (sizeof (signed char) == $ac_size):;
23004 rm -f conftest.$ac_objext
23005 if { (ac_try="$ac_compile"
23006 case "(($ac_try" in
23007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23008 *) ac_try_echo=$ac_try;;
23010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23011 (eval "$ac_compile") 2>conftest.er1
23013 grep -v '^ *+' conftest.er1 >conftest.err
23015 cat conftest.err >&5
23016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23017 (exit $ac_status); } && {
23018 test -z "$ac_c_werror_flag" ||
23019 test ! -s conftest.err
23020 } && test -s conftest.$ac_objext; then
23021 ac_cv_sizeof_signed_char=$ac_size
23023 echo "$as_me: failed program was:" >&5
23024 sed 's/^/| /' conftest.$ac_ext >&5
23029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23030 if test x$ac_cv_sizeof_signed_char != x ; then break; fi
23036 signed=$ac_cv_sizeof_signed_char
23037 if test x$signed = x ; then
23038 { { echo "$as_me:$LINENO: error: cannot determine a size for signed char" >&5
23039 echo "$as_me: error: cannot determine a size for signed char" >&2;}
23040 { (exit 1); exit 1; }; }
23042 if test x$unspecif != x$signed ; then
23043 { { echo "$as_me:$LINENO: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&5
23044 echo "$as_me: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&2;}
23045 { (exit 1); exit 1; }; }
23048 if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
23049 echo $ECHO_N "(cached) $ECHO_C" >&6
23051 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23052 cat >conftest.$ac_ext <<_ACEOF
23055 cat confdefs.h >>conftest.$ac_ext
23056 cat >>conftest.$ac_ext <<_ACEOF
23057 /* end confdefs.h. */
23058 #include "confdefs.h"
23059 #include <sys/types.h>
23065 switch (0) case 0: case (sizeof (unsigned char) == $ac_size):;
23070 rm -f conftest.$ac_objext
23071 if { (ac_try="$ac_compile"
23072 case "(($ac_try" in
23073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23074 *) ac_try_echo=$ac_try;;
23076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23077 (eval "$ac_compile") 2>conftest.er1
23079 grep -v '^ *+' conftest.er1 >conftest.err
23081 cat conftest.err >&5
23082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23083 (exit $ac_status); } && {
23084 test -z "$ac_c_werror_flag" ||
23085 test ! -s conftest.err
23086 } && test -s conftest.$ac_objext; then
23087 ac_cv_sizeof_unsigned_char=$ac_size
23089 echo "$as_me: failed program was:" >&5
23090 sed 's/^/| /' conftest.$ac_ext >&5
23095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23096 if test x$ac_cv_sizeof_unsigned_char != x ; then break; fi
23102 unsigned=$ac_cv_sizeof_unsigned_char
23103 if test x$unsigned = x ; then
23104 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned char" >&5
23105 echo "$as_me: error: cannot determine a size for unsigned char" >&2;}
23106 { (exit 1); exit 1; }; }
23108 if test x$unsigned != x$signed ; then
23109 { { echo "$as_me:$LINENO: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&5
23110 echo "$as_me: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&2;}
23111 { (exit 1); exit 1; }; }
23114 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
23115 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6; }
23116 { echo "$as_me:$LINENO: checking for the minimal structure boundary of char" >&5
23117 echo $ECHO_N "checking for the minimal structure boundary of char... $ECHO_C" >&6; }
23119 if test "${ac_cv_struct_boundary_char+set}" = set; then
23120 echo $ECHO_N "(cached) $ECHO_C" >&6
23122 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23123 cat >conftest.$ac_ext <<_ACEOF
23126 cat confdefs.h >>conftest.$ac_ext
23127 cat >>conftest.$ac_ext <<_ACEOF
23128 /* end confdefs.h. */
23129 #include "confdefs.h"
23130 #include <sys/types.h>
23131 struct s { char c; char i; };
23136 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(char)):;
23141 rm -f conftest.$ac_objext
23142 if { (ac_try="$ac_compile"
23143 case "(($ac_try" in
23144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23145 *) ac_try_echo=$ac_try;;
23147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23148 (eval "$ac_compile") 2>conftest.er1
23150 grep -v '^ *+' conftest.er1 >conftest.err
23152 cat conftest.err >&5
23153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23154 (exit $ac_status); } && {
23155 test -z "$ac_c_werror_flag" ||
23156 test ! -s conftest.err
23157 } && test -s conftest.$ac_objext; then
23158 ac_cv_struct_boundary_char=$ac_size
23160 echo "$as_me: failed program was:" >&5
23161 sed 's/^/| /' conftest.$ac_ext >&5
23166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23167 if test x$ac_cv_struct_boundary_char != x ; then break; fi
23172 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_char" >&5
23173 echo "${ECHO_T}$ac_cv_struct_boundary_char" >&6; }
23174 if test x$ac_cv_struct_boundary_char = x ; then
23175 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of char in structures" >&5
23176 echo "$as_me: error: Cannot determine the minimal alignment boundary of char in structures" >&2;}
23177 { (exit 1); exit 1; }; }
23180 { echo "$as_me:$LINENO: checking size of short int" >&5
23181 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
23182 if test "${ac_cv_sizeof_short_int+set}" = set; then
23183 echo $ECHO_N "(cached) $ECHO_C" >&6
23185 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23186 cat >conftest.$ac_ext <<_ACEOF
23189 cat confdefs.h >>conftest.$ac_ext
23190 cat >>conftest.$ac_ext <<_ACEOF
23191 /* end confdefs.h. */
23192 #include "confdefs.h"
23193 #include <sys/types.h>
23199 switch (0) case 0: case (sizeof (short int) == $ac_size):;
23204 rm -f conftest.$ac_objext
23205 if { (ac_try="$ac_compile"
23206 case "(($ac_try" in
23207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23208 *) ac_try_echo=$ac_try;;
23210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23211 (eval "$ac_compile") 2>conftest.er1
23213 grep -v '^ *+' conftest.er1 >conftest.err
23215 cat conftest.err >&5
23216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23217 (exit $ac_status); } && {
23218 test -z "$ac_c_werror_flag" ||
23219 test ! -s conftest.err
23220 } && test -s conftest.$ac_objext; then
23221 ac_cv_sizeof_short_int=$ac_size
23223 echo "$as_me: failed program was:" >&5
23224 sed 's/^/| /' conftest.$ac_ext >&5
23229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23230 if test x$ac_cv_sizeof_short_int != x ; then break; fi
23236 unspecif=$ac_cv_sizeof_short_int
23237 if test x$unspecif = x ; then
23238 { { echo "$as_me:$LINENO: error: cannot determine a size for short int" >&5
23239 echo "$as_me: error: cannot determine a size for short int" >&2;}
23240 { (exit 1); exit 1; }; }
23243 if test "${ac_cv_sizeof_signed_short_int+set}" = set; then
23244 echo $ECHO_N "(cached) $ECHO_C" >&6
23246 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23247 cat >conftest.$ac_ext <<_ACEOF
23250 cat confdefs.h >>conftest.$ac_ext
23251 cat >>conftest.$ac_ext <<_ACEOF
23252 /* end confdefs.h. */
23253 #include "confdefs.h"
23254 #include <sys/types.h>
23260 switch (0) case 0: case (sizeof (signed short int) == $ac_size):;
23265 rm -f conftest.$ac_objext
23266 if { (ac_try="$ac_compile"
23267 case "(($ac_try" in
23268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23269 *) ac_try_echo=$ac_try;;
23271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23272 (eval "$ac_compile") 2>conftest.er1
23274 grep -v '^ *+' conftest.er1 >conftest.err
23276 cat conftest.err >&5
23277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23278 (exit $ac_status); } && {
23279 test -z "$ac_c_werror_flag" ||
23280 test ! -s conftest.err
23281 } && test -s conftest.$ac_objext; then
23282 ac_cv_sizeof_signed_short_int=$ac_size
23284 echo "$as_me: failed program was:" >&5
23285 sed 's/^/| /' conftest.$ac_ext >&5
23290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23291 if test x$ac_cv_sizeof_signed_short_int != x ; then break; fi
23297 signed=$ac_cv_sizeof_signed_short_int
23298 if test x$signed = x ; then
23299 { { echo "$as_me:$LINENO: error: cannot determine a size for signed short int" >&5
23300 echo "$as_me: error: cannot determine a size for signed short int" >&2;}
23301 { (exit 1); exit 1; }; }
23303 if test x$unspecif != x$signed ; then
23304 { { echo "$as_me:$LINENO: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&5
23305 echo "$as_me: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&2;}
23306 { (exit 1); exit 1; }; }
23309 if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then
23310 echo $ECHO_N "(cached) $ECHO_C" >&6
23312 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23313 cat >conftest.$ac_ext <<_ACEOF
23316 cat confdefs.h >>conftest.$ac_ext
23317 cat >>conftest.$ac_ext <<_ACEOF
23318 /* end confdefs.h. */
23319 #include "confdefs.h"
23320 #include <sys/types.h>
23326 switch (0) case 0: case (sizeof (unsigned short int) == $ac_size):;
23331 rm -f conftest.$ac_objext
23332 if { (ac_try="$ac_compile"
23333 case "(($ac_try" in
23334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23335 *) ac_try_echo=$ac_try;;
23337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23338 (eval "$ac_compile") 2>conftest.er1
23340 grep -v '^ *+' conftest.er1 >conftest.err
23342 cat conftest.err >&5
23343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23344 (exit $ac_status); } && {
23345 test -z "$ac_c_werror_flag" ||
23346 test ! -s conftest.err
23347 } && test -s conftest.$ac_objext; then
23348 ac_cv_sizeof_unsigned_short_int=$ac_size
23350 echo "$as_me: failed program was:" >&5
23351 sed 's/^/| /' conftest.$ac_ext >&5
23356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23357 if test x$ac_cv_sizeof_unsigned_short_int != x ; then break; fi
23363 unsigned=$ac_cv_sizeof_unsigned_short_int
23364 if test x$unsigned = x ; then
23365 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned short int" >&5
23366 echo "$as_me: error: cannot determine a size for unsigned short int" >&2;}
23367 { (exit 1); exit 1; }; }
23369 if test x$unsigned != x$signed ; then
23370 { { echo "$as_me:$LINENO: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&5
23371 echo "$as_me: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&2;}
23372 { (exit 1); exit 1; }; }
23375 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short_int" >&5
23376 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short_int" >&6; }
23377 { echo "$as_me:$LINENO: checking for the minimal structure boundary of short int" >&5
23378 echo $ECHO_N "checking for the minimal structure boundary of short int... $ECHO_C" >&6; }
23380 if test "${ac_cv_struct_boundary_short_int+set}" = set; then
23381 echo $ECHO_N "(cached) $ECHO_C" >&6
23383 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23384 cat >conftest.$ac_ext <<_ACEOF
23387 cat confdefs.h >>conftest.$ac_ext
23388 cat >>conftest.$ac_ext <<_ACEOF
23389 /* end confdefs.h. */
23390 #include "confdefs.h"
23391 #include <sys/types.h>
23392 struct s { char c; short int i; };
23397 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(short int)):;
23402 rm -f conftest.$ac_objext
23403 if { (ac_try="$ac_compile"
23404 case "(($ac_try" in
23405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23406 *) ac_try_echo=$ac_try;;
23408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23409 (eval "$ac_compile") 2>conftest.er1
23411 grep -v '^ *+' conftest.er1 >conftest.err
23413 cat conftest.err >&5
23414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23415 (exit $ac_status); } && {
23416 test -z "$ac_c_werror_flag" ||
23417 test ! -s conftest.err
23418 } && test -s conftest.$ac_objext; then
23419 ac_cv_struct_boundary_short_int=$ac_size
23421 echo "$as_me: failed program was:" >&5
23422 sed 's/^/| /' conftest.$ac_ext >&5
23427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23428 if test x$ac_cv_struct_boundary_short_int != x ; then break; fi
23433 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_short_int" >&5
23434 echo "${ECHO_T}$ac_cv_struct_boundary_short_int" >&6; }
23435 if test x$ac_cv_struct_boundary_short_int = x ; then
23436 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of short int in structures" >&5
23437 echo "$as_me: error: Cannot determine the minimal alignment boundary of short int in structures" >&2;}
23438 { (exit 1); exit 1; }; }
23441 { echo "$as_me:$LINENO: checking size of int" >&5
23442 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
23443 if test "${ac_cv_sizeof_int+set}" = set; then
23444 echo $ECHO_N "(cached) $ECHO_C" >&6
23446 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23447 cat >conftest.$ac_ext <<_ACEOF
23450 cat confdefs.h >>conftest.$ac_ext
23451 cat >>conftest.$ac_ext <<_ACEOF
23452 /* end confdefs.h. */
23453 #include "confdefs.h"
23454 #include <sys/types.h>
23460 switch (0) case 0: case (sizeof (int) == $ac_size):;
23465 rm -f conftest.$ac_objext
23466 if { (ac_try="$ac_compile"
23467 case "(($ac_try" in
23468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23469 *) ac_try_echo=$ac_try;;
23471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23472 (eval "$ac_compile") 2>conftest.er1
23474 grep -v '^ *+' conftest.er1 >conftest.err
23476 cat conftest.err >&5
23477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23478 (exit $ac_status); } && {
23479 test -z "$ac_c_werror_flag" ||
23480 test ! -s conftest.err
23481 } && test -s conftest.$ac_objext; then
23482 ac_cv_sizeof_int=$ac_size
23484 echo "$as_me: failed program was:" >&5
23485 sed 's/^/| /' conftest.$ac_ext >&5
23490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23491 if test x$ac_cv_sizeof_int != x ; then break; fi
23497 unspecif=$ac_cv_sizeof_int
23498 if test x$unspecif = x ; then
23499 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
23500 echo "$as_me: error: cannot determine a size for int" >&2;}
23501 { (exit 1); exit 1; }; }
23504 if test "${ac_cv_sizeof_signed_int+set}" = set; then
23505 echo $ECHO_N "(cached) $ECHO_C" >&6
23507 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23508 cat >conftest.$ac_ext <<_ACEOF
23511 cat confdefs.h >>conftest.$ac_ext
23512 cat >>conftest.$ac_ext <<_ACEOF
23513 /* end confdefs.h. */
23514 #include "confdefs.h"
23515 #include <sys/types.h>
23521 switch (0) case 0: case (sizeof (signed int) == $ac_size):;
23526 rm -f conftest.$ac_objext
23527 if { (ac_try="$ac_compile"
23528 case "(($ac_try" in
23529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23530 *) ac_try_echo=$ac_try;;
23532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23533 (eval "$ac_compile") 2>conftest.er1
23535 grep -v '^ *+' conftest.er1 >conftest.err
23537 cat conftest.err >&5
23538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23539 (exit $ac_status); } && {
23540 test -z "$ac_c_werror_flag" ||
23541 test ! -s conftest.err
23542 } && test -s conftest.$ac_objext; then
23543 ac_cv_sizeof_signed_int=$ac_size
23545 echo "$as_me: failed program was:" >&5
23546 sed 's/^/| /' conftest.$ac_ext >&5
23551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23552 if test x$ac_cv_sizeof_signed_int != x ; then break; fi
23558 signed=$ac_cv_sizeof_signed_int
23559 if test x$signed = x ; then
23560 { { echo "$as_me:$LINENO: error: cannot determine a size for signed int" >&5
23561 echo "$as_me: error: cannot determine a size for signed int" >&2;}
23562 { (exit 1); exit 1; }; }
23564 if test x$unspecif != x$signed ; then
23565 { { echo "$as_me:$LINENO: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&5
23566 echo "$as_me: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&2;}
23567 { (exit 1); exit 1; }; }
23570 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
23571 echo $ECHO_N "(cached) $ECHO_C" >&6
23573 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23574 cat >conftest.$ac_ext <<_ACEOF
23577 cat confdefs.h >>conftest.$ac_ext
23578 cat >>conftest.$ac_ext <<_ACEOF
23579 /* end confdefs.h. */
23580 #include "confdefs.h"
23581 #include <sys/types.h>
23587 switch (0) case 0: case (sizeof (unsigned int) == $ac_size):;
23592 rm -f conftest.$ac_objext
23593 if { (ac_try="$ac_compile"
23594 case "(($ac_try" in
23595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23596 *) ac_try_echo=$ac_try;;
23598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23599 (eval "$ac_compile") 2>conftest.er1
23601 grep -v '^ *+' conftest.er1 >conftest.err
23603 cat conftest.err >&5
23604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23605 (exit $ac_status); } && {
23606 test -z "$ac_c_werror_flag" ||
23607 test ! -s conftest.err
23608 } && test -s conftest.$ac_objext; then
23609 ac_cv_sizeof_unsigned_int=$ac_size
23611 echo "$as_me: failed program was:" >&5
23612 sed 's/^/| /' conftest.$ac_ext >&5
23617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23618 if test x$ac_cv_sizeof_unsigned_int != x ; then break; fi
23624 unsigned=$ac_cv_sizeof_unsigned_int
23625 if test x$unsigned = x ; then
23626 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned int" >&5
23627 echo "$as_me: error: cannot determine a size for unsigned int" >&2;}
23628 { (exit 1); exit 1; }; }
23630 if test x$unsigned != x$signed ; then
23631 { { echo "$as_me:$LINENO: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&5
23632 echo "$as_me: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&2;}
23633 { (exit 1); exit 1; }; }
23636 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
23637 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6; }
23638 { echo "$as_me:$LINENO: checking for the minimal structure boundary of int" >&5
23639 echo $ECHO_N "checking for the minimal structure boundary of int... $ECHO_C" >&6; }
23641 if test "${ac_cv_struct_boundary_int+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; int i; };
23658 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(int)):;
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_int=$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_int != x ; then break; fi
23694 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_int" >&5
23695 echo "${ECHO_T}$ac_cv_struct_boundary_int" >&6; }
23696 if test x$ac_cv_struct_boundary_int = x ; then
23697 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of int in structures" >&5
23698 echo "$as_me: error: Cannot determine the minimal alignment boundary of int in structures" >&2;}
23699 { (exit 1); exit 1; }; }
23702 { echo "$as_me:$LINENO: checking size of long int" >&5
23703 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
23704 if test "${ac_cv_sizeof_long_int+set}" = set; then
23705 echo $ECHO_N "(cached) $ECHO_C" >&6
23707 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23708 cat >conftest.$ac_ext <<_ACEOF
23711 cat confdefs.h >>conftest.$ac_ext
23712 cat >>conftest.$ac_ext <<_ACEOF
23713 /* end confdefs.h. */
23714 #include "confdefs.h"
23715 #include <sys/types.h>
23721 switch (0) case 0: case (sizeof (long int) == $ac_size):;
23726 rm -f conftest.$ac_objext
23727 if { (ac_try="$ac_compile"
23728 case "(($ac_try" in
23729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23730 *) ac_try_echo=$ac_try;;
23732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23733 (eval "$ac_compile") 2>conftest.er1
23735 grep -v '^ *+' conftest.er1 >conftest.err
23737 cat conftest.err >&5
23738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23739 (exit $ac_status); } && {
23740 test -z "$ac_c_werror_flag" ||
23741 test ! -s conftest.err
23742 } && test -s conftest.$ac_objext; then
23743 ac_cv_sizeof_long_int=$ac_size
23745 echo "$as_me: failed program was:" >&5
23746 sed 's/^/| /' conftest.$ac_ext >&5
23751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23752 if test x$ac_cv_sizeof_long_int != x ; then break; fi
23758 unspecif=$ac_cv_sizeof_long_int
23759 if test x$unspecif = x ; then
23760 { { echo "$as_me:$LINENO: error: cannot determine a size for long int" >&5
23761 echo "$as_me: error: cannot determine a size for long int" >&2;}
23762 { (exit 1); exit 1; }; }
23765 if test "${ac_cv_sizeof_signed_long_int+set}" = set; then
23766 echo $ECHO_N "(cached) $ECHO_C" >&6
23768 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23769 cat >conftest.$ac_ext <<_ACEOF
23772 cat confdefs.h >>conftest.$ac_ext
23773 cat >>conftest.$ac_ext <<_ACEOF
23774 /* end confdefs.h. */
23775 #include "confdefs.h"
23776 #include <sys/types.h>
23782 switch (0) case 0: case (sizeof (signed long int) == $ac_size):;
23787 rm -f conftest.$ac_objext
23788 if { (ac_try="$ac_compile"
23789 case "(($ac_try" in
23790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23791 *) ac_try_echo=$ac_try;;
23793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23794 (eval "$ac_compile") 2>conftest.er1
23796 grep -v '^ *+' conftest.er1 >conftest.err
23798 cat conftest.err >&5
23799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23800 (exit $ac_status); } && {
23801 test -z "$ac_c_werror_flag" ||
23802 test ! -s conftest.err
23803 } && test -s conftest.$ac_objext; then
23804 ac_cv_sizeof_signed_long_int=$ac_size
23806 echo "$as_me: failed program was:" >&5
23807 sed 's/^/| /' conftest.$ac_ext >&5
23812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23813 if test x$ac_cv_sizeof_signed_long_int != x ; then break; fi
23819 signed=$ac_cv_sizeof_signed_long_int
23820 if test x$signed = x ; then
23821 { { echo "$as_me:$LINENO: error: cannot determine a size for signed long int" >&5
23822 echo "$as_me: error: cannot determine a size for signed long int" >&2;}
23823 { (exit 1); exit 1; }; }
23825 if test x$unspecif != x$signed ; then
23826 { { echo "$as_me:$LINENO: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&5
23827 echo "$as_me: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&2;}
23828 { (exit 1); exit 1; }; }
23831 if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then
23832 echo $ECHO_N "(cached) $ECHO_C" >&6
23834 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23835 cat >conftest.$ac_ext <<_ACEOF
23838 cat confdefs.h >>conftest.$ac_ext
23839 cat >>conftest.$ac_ext <<_ACEOF
23840 /* end confdefs.h. */
23841 #include "confdefs.h"
23842 #include <sys/types.h>
23848 switch (0) case 0: case (sizeof (unsigned long int) == $ac_size):;
23853 rm -f conftest.$ac_objext
23854 if { (ac_try="$ac_compile"
23855 case "(($ac_try" in
23856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23857 *) ac_try_echo=$ac_try;;
23859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23860 (eval "$ac_compile") 2>conftest.er1
23862 grep -v '^ *+' conftest.er1 >conftest.err
23864 cat conftest.err >&5
23865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23866 (exit $ac_status); } && {
23867 test -z "$ac_c_werror_flag" ||
23868 test ! -s conftest.err
23869 } && test -s conftest.$ac_objext; then
23870 ac_cv_sizeof_unsigned_long_int=$ac_size
23872 echo "$as_me: failed program was:" >&5
23873 sed 's/^/| /' conftest.$ac_ext >&5
23878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23879 if test x$ac_cv_sizeof_unsigned_long_int != x ; then break; fi
23885 unsigned=$ac_cv_sizeof_unsigned_long_int
23886 if test x$unsigned = x ; then
23887 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long int" >&5
23888 echo "$as_me: error: cannot determine a size for unsigned long int" >&2;}
23889 { (exit 1); exit 1; }; }
23891 if test x$unsigned != x$signed ; then
23892 { { echo "$as_me:$LINENO: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&5
23893 echo "$as_me: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&2;}
23894 { (exit 1); exit 1; }; }
23897 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_int" >&5
23898 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_int" >&6; }
23899 { echo "$as_me:$LINENO: checking for the minimal structure boundary of long int" >&5
23900 echo $ECHO_N "checking for the minimal structure boundary of long int... $ECHO_C" >&6; }
23902 if test "${ac_cv_struct_boundary_long_int+set}" = set; then
23903 echo $ECHO_N "(cached) $ECHO_C" >&6
23905 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23906 cat >conftest.$ac_ext <<_ACEOF
23909 cat confdefs.h >>conftest.$ac_ext
23910 cat >>conftest.$ac_ext <<_ACEOF
23911 /* end confdefs.h. */
23912 #include "confdefs.h"
23913 #include <sys/types.h>
23914 struct s { char c; long int i; };
23919 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long int)):;
23924 rm -f conftest.$ac_objext
23925 if { (ac_try="$ac_compile"
23926 case "(($ac_try" in
23927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23928 *) ac_try_echo=$ac_try;;
23930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23931 (eval "$ac_compile") 2>conftest.er1
23933 grep -v '^ *+' conftest.er1 >conftest.err
23935 cat conftest.err >&5
23936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23937 (exit $ac_status); } && {
23938 test -z "$ac_c_werror_flag" ||
23939 test ! -s conftest.err
23940 } && test -s conftest.$ac_objext; then
23941 ac_cv_struct_boundary_long_int=$ac_size
23943 echo "$as_me: failed program was:" >&5
23944 sed 's/^/| /' conftest.$ac_ext >&5
23949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23950 if test x$ac_cv_struct_boundary_long_int != x ; then break; fi
23955 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_int" >&5
23956 echo "${ECHO_T}$ac_cv_struct_boundary_long_int" >&6; }
23957 if test x$ac_cv_struct_boundary_long_int = x ; then
23958 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long int in structures" >&5
23959 echo "$as_me: error: Cannot determine the minimal alignment boundary of long int in structures" >&2;}
23960 { (exit 1); exit 1; }; }
23963 { echo "$as_me:$LINENO: checking size of long long int" >&5
23964 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
23965 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
23966 echo $ECHO_N "(cached) $ECHO_C" >&6
23968 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23969 cat >conftest.$ac_ext <<_ACEOF
23972 cat confdefs.h >>conftest.$ac_ext
23973 cat >>conftest.$ac_ext <<_ACEOF
23974 /* end confdefs.h. */
23975 #include "confdefs.h"
23976 #include <sys/types.h>
23982 switch (0) case 0: case (sizeof (long long int) == $ac_size):;
23987 rm -f conftest.$ac_objext
23988 if { (ac_try="$ac_compile"
23989 case "(($ac_try" in
23990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23991 *) ac_try_echo=$ac_try;;
23993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23994 (eval "$ac_compile") 2>conftest.er1
23996 grep -v '^ *+' conftest.er1 >conftest.err
23998 cat conftest.err >&5
23999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24000 (exit $ac_status); } && {
24001 test -z "$ac_c_werror_flag" ||
24002 test ! -s conftest.err
24003 } && test -s conftest.$ac_objext; then
24004 ac_cv_sizeof_long_long_int=$ac_size
24006 echo "$as_me: failed program was:" >&5
24007 sed 's/^/| /' conftest.$ac_ext >&5
24012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24013 if test x$ac_cv_sizeof_long_long_int != x ; then break; fi
24019 unspecif=$ac_cv_sizeof_long_long_int
24020 if test x$unspecif = x ; then
24021 { { echo "$as_me:$LINENO: error: cannot determine a size for long long int" >&5
24022 echo "$as_me: error: cannot determine a size for long long int" >&2;}
24023 { (exit 1); exit 1; }; }
24026 if test "${ac_cv_sizeof_signed_long_long_int+set}" = set; then
24027 echo $ECHO_N "(cached) $ECHO_C" >&6
24029 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
24030 cat >conftest.$ac_ext <<_ACEOF
24033 cat confdefs.h >>conftest.$ac_ext
24034 cat >>conftest.$ac_ext <<_ACEOF
24035 /* end confdefs.h. */
24036 #include "confdefs.h"
24037 #include <sys/types.h>
24043 switch (0) case 0: case (sizeof (signed long long int) == $ac_size):;
24048 rm -f conftest.$ac_objext
24049 if { (ac_try="$ac_compile"
24050 case "(($ac_try" in
24051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24052 *) ac_try_echo=$ac_try;;
24054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24055 (eval "$ac_compile") 2>conftest.er1
24057 grep -v '^ *+' conftest.er1 >conftest.err
24059 cat conftest.err >&5
24060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24061 (exit $ac_status); } && {
24062 test -z "$ac_c_werror_flag" ||
24063 test ! -s conftest.err
24064 } && test -s conftest.$ac_objext; then
24065 ac_cv_sizeof_signed_long_long_int=$ac_size
24067 echo "$as_me: failed program was:" >&5
24068 sed 's/^/| /' conftest.$ac_ext >&5
24073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24074 if test x$ac_cv_sizeof_signed_long_long_int != x ; then break; fi
24080 signed=$ac_cv_sizeof_signed_long_long_int
24081 if test x$signed = x ; then
24082 { { echo "$as_me:$LINENO: error: cannot determine a size for signed long long int" >&5
24083 echo "$as_me: error: cannot determine a size for signed long long int" >&2;}
24084 { (exit 1); exit 1; }; }
24086 if test x$unspecif != x$signed ; then
24087 { { echo "$as_me:$LINENO: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&5
24088 echo "$as_me: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&2;}
24089 { (exit 1); exit 1; }; }
24092 if test "${ac_cv_sizeof_unsigned_long_long_int+set}" = set; then
24093 echo $ECHO_N "(cached) $ECHO_C" >&6
24095 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
24096 cat >conftest.$ac_ext <<_ACEOF
24099 cat confdefs.h >>conftest.$ac_ext
24100 cat >>conftest.$ac_ext <<_ACEOF
24101 /* end confdefs.h. */
24102 #include "confdefs.h"
24103 #include <sys/types.h>
24109 switch (0) case 0: case (sizeof (unsigned long long int) == $ac_size):;
24114 rm -f conftest.$ac_objext
24115 if { (ac_try="$ac_compile"
24116 case "(($ac_try" in
24117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24118 *) ac_try_echo=$ac_try;;
24120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24121 (eval "$ac_compile") 2>conftest.er1
24123 grep -v '^ *+' conftest.er1 >conftest.err
24125 cat conftest.err >&5
24126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24127 (exit $ac_status); } && {
24128 test -z "$ac_c_werror_flag" ||
24129 test ! -s conftest.err
24130 } && test -s conftest.$ac_objext; then
24131 ac_cv_sizeof_unsigned_long_long_int=$ac_size
24133 echo "$as_me: failed program was:" >&5
24134 sed 's/^/| /' conftest.$ac_ext >&5
24139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24140 if test x$ac_cv_sizeof_unsigned_long_long_int != x ; then break; fi
24146 unsigned=$ac_cv_sizeof_unsigned_long_long_int
24147 if test x$unsigned = x ; then
24148 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long long int" >&5
24149 echo "$as_me: error: cannot determine a size for unsigned long long int" >&2;}
24150 { (exit 1); exit 1; }; }
24152 if test x$unsigned != x$signed ; then
24153 { { echo "$as_me:$LINENO: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&5
24154 echo "$as_me: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&2;}
24155 { (exit 1); exit 1; }; }
24158 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long_int" >&5
24159 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long_int" >&6; }
24160 { echo "$as_me:$LINENO: checking for the minimal structure boundary of long long int" >&5
24161 echo $ECHO_N "checking for the minimal structure boundary of long long int... $ECHO_C" >&6; }
24163 if test "${ac_cv_struct_boundary_long_long_int+set}" = set; then
24164 echo $ECHO_N "(cached) $ECHO_C" >&6
24166 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
24167 cat >conftest.$ac_ext <<_ACEOF
24170 cat confdefs.h >>conftest.$ac_ext
24171 cat >>conftest.$ac_ext <<_ACEOF
24172 /* end confdefs.h. */
24173 #include "confdefs.h"
24174 #include <sys/types.h>
24175 struct s { char c; long long int i; };
24180 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long long int)):;
24185 rm -f conftest.$ac_objext
24186 if { (ac_try="$ac_compile"
24187 case "(($ac_try" in
24188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24189 *) ac_try_echo=$ac_try;;
24191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24192 (eval "$ac_compile") 2>conftest.er1
24194 grep -v '^ *+' conftest.er1 >conftest.err
24196 cat conftest.err >&5
24197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24198 (exit $ac_status); } && {
24199 test -z "$ac_c_werror_flag" ||
24200 test ! -s conftest.err
24201 } && test -s conftest.$ac_objext; then
24202 ac_cv_struct_boundary_long_long_int=$ac_size
24204 echo "$as_me: failed program was:" >&5
24205 sed 's/^/| /' conftest.$ac_ext >&5
24210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24211 if test x$ac_cv_struct_boundary_long_long_int != x ; then break; fi
24216 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_long_int" >&5
24217 echo "${ECHO_T}$ac_cv_struct_boundary_long_long_int" >&6; }
24218 if test x$ac_cv_struct_boundary_long_long_int = x ; then
24219 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long long int in structures" >&5
24220 echo "$as_me: error: Cannot determine the minimal alignment boundary of long long int in structures" >&2;}
24221 { (exit 1); exit 1; }; }
24225 { echo "$as_me:$LINENO: checking for the minimal structure boundary of float" >&5
24226 echo $ECHO_N "checking for the minimal structure boundary of float... $ECHO_C" >&6; }
24228 if test "${ac_cv_struct_boundary_float+set}" = set; then
24229 echo $ECHO_N "(cached) $ECHO_C" >&6
24231 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
24232 cat >conftest.$ac_ext <<_ACEOF
24235 cat confdefs.h >>conftest.$ac_ext
24236 cat >>conftest.$ac_ext <<_ACEOF
24237 /* end confdefs.h. */
24238 #include "confdefs.h"
24239 #include <sys/types.h>
24240 struct s { char c; float i; };
24245 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(float)):;
24250 rm -f conftest.$ac_objext
24251 if { (ac_try="$ac_compile"
24252 case "(($ac_try" in
24253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24254 *) ac_try_echo=$ac_try;;
24256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24257 (eval "$ac_compile") 2>conftest.er1
24259 grep -v '^ *+' conftest.er1 >conftest.err
24261 cat conftest.err >&5
24262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24263 (exit $ac_status); } && {
24264 test -z "$ac_c_werror_flag" ||
24265 test ! -s conftest.err
24266 } && test -s conftest.$ac_objext; then
24267 ac_cv_struct_boundary_float=$ac_size
24269 echo "$as_me: failed program was:" >&5
24270 sed 's/^/| /' conftest.$ac_ext >&5
24275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24276 if test x$ac_cv_struct_boundary_float != x ; then break; fi
24281 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_float" >&5
24282 echo "${ECHO_T}$ac_cv_struct_boundary_float" >&6; }
24283 if test x$ac_cv_struct_boundary_float = x ; then
24284 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of float in structures" >&5
24285 echo "$as_me: error: Cannot determine the minimal alignment boundary of float in structures" >&2;}
24286 { (exit 1); exit 1; }; }
24288 { echo "$as_me:$LINENO: checking for the minimal structure boundary of double" >&5
24289 echo $ECHO_N "checking for the minimal structure boundary of double... $ECHO_C" >&6; }
24291 if test "${ac_cv_struct_boundary_double+set}" = set; then
24292 echo $ECHO_N "(cached) $ECHO_C" >&6
24294 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
24295 cat >conftest.$ac_ext <<_ACEOF
24298 cat confdefs.h >>conftest.$ac_ext
24299 cat >>conftest.$ac_ext <<_ACEOF
24300 /* end confdefs.h. */
24301 #include "confdefs.h"
24302 #include <sys/types.h>
24303 struct s { char c; double i; };
24308 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(double)):;
24313 rm -f conftest.$ac_objext
24314 if { (ac_try="$ac_compile"
24315 case "(($ac_try" in
24316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24317 *) ac_try_echo=$ac_try;;
24319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24320 (eval "$ac_compile") 2>conftest.er1
24322 grep -v '^ *+' conftest.er1 >conftest.err
24324 cat conftest.err >&5
24325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24326 (exit $ac_status); } && {
24327 test -z "$ac_c_werror_flag" ||
24328 test ! -s conftest.err
24329 } && test -s conftest.$ac_objext; then
24330 ac_cv_struct_boundary_double=$ac_size
24332 echo "$as_me: failed program was:" >&5
24333 sed 's/^/| /' conftest.$ac_ext >&5
24338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24339 if test x$ac_cv_struct_boundary_double != x ; then break; fi
24344 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_double" >&5
24345 echo "${ECHO_T}$ac_cv_struct_boundary_double" >&6; }
24346 if test x$ac_cv_struct_boundary_double = x ; then
24347 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of double in structures" >&5
24348 echo "$as_me: error: Cannot determine the minimal alignment boundary of double in structures" >&2;}
24349 { (exit 1); exit 1; }; }
24353 { echo "$as_me:$LINENO: checking size of void *" >&5
24354 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
24355 if test "${ac_cv_sizeof_void_p+set}" = set; then
24356 echo $ECHO_N "(cached) $ECHO_C" >&6
24358 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
24359 cat >conftest.$ac_ext <<_ACEOF
24362 cat confdefs.h >>conftest.$ac_ext
24363 cat >>conftest.$ac_ext <<_ACEOF
24364 /* end confdefs.h. */
24365 #include "confdefs.h"
24366 #include <sys/types.h>
24372 switch (0) case 0: case (sizeof (void *) == $ac_size):;
24377 rm -f conftest.$ac_objext
24378 if { (ac_try="$ac_compile"
24379 case "(($ac_try" in
24380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24381 *) ac_try_echo=$ac_try;;
24383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24384 (eval "$ac_compile") 2>conftest.er1
24386 grep -v '^ *+' conftest.er1 >conftest.err
24388 cat conftest.err >&5
24389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24390 (exit $ac_status); } && {
24391 test -z "$ac_c_werror_flag" ||
24392 test ! -s conftest.err
24393 } && test -s conftest.$ac_objext; then
24394 ac_cv_sizeof_void_p=$ac_size
24396 echo "$as_me: failed program was:" >&5
24397 sed 's/^/| /' conftest.$ac_ext >&5
24402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24403 if test x$ac_cv_sizeof_void_p != x ; then break; fi
24409 if test x$ac_cv_sizeof_void_p = x ; then
24410 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
24411 echo "$as_me: error: cannot determine a size for void *" >&2;}
24412 { (exit 1); exit 1; }; }
24414 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
24415 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
24416 { echo "$as_me:$LINENO: checking for the minimal structure boundary of void *" >&5
24417 echo $ECHO_N "checking for the minimal structure boundary of void *... $ECHO_C" >&6; }
24419 if test "${ac_cv_struct_boundary_void_p+set}" = set; then
24420 echo $ECHO_N "(cached) $ECHO_C" >&6
24422 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
24423 cat >conftest.$ac_ext <<_ACEOF
24426 cat confdefs.h >>conftest.$ac_ext
24427 cat >>conftest.$ac_ext <<_ACEOF
24428 /* end confdefs.h. */
24429 #include "confdefs.h"
24430 #include <sys/types.h>
24431 struct s { char c; void * i; };
24436 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(void *)):;
24441 rm -f conftest.$ac_objext
24442 if { (ac_try="$ac_compile"
24443 case "(($ac_try" in
24444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24445 *) ac_try_echo=$ac_try;;
24447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24448 (eval "$ac_compile") 2>conftest.er1
24450 grep -v '^ *+' conftest.er1 >conftest.err
24452 cat conftest.err >&5
24453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24454 (exit $ac_status); } && {
24455 test -z "$ac_c_werror_flag" ||
24456 test ! -s conftest.err
24457 } && test -s conftest.$ac_objext; then
24458 ac_cv_struct_boundary_void_p=$ac_size
24460 echo "$as_me: failed program was:" >&5
24461 sed 's/^/| /' conftest.$ac_ext >&5
24466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24467 if test x$ac_cv_struct_boundary_void_p != x ; then break; fi
24472 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_void_p" >&5
24473 echo "${ECHO_T}$ac_cv_struct_boundary_void_p" >&6; }
24474 if test x$ac_cv_struct_boundary_void_p = x ; then
24475 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of void * in structures" >&5
24476 echo "$as_me: error: Cannot determine the minimal alignment boundary of void * in structures" >&2;}
24477 { (exit 1); exit 1; }; }
24480 { echo "$as_me:$LINENO: checking size of void (*) (void)" >&5
24481 echo $ECHO_N "checking size of void (*) (void)... $ECHO_C" >&6; }
24482 if test "${ac_cv_sizeof_void_LpR_LvoidR+set}" = set; then
24483 echo $ECHO_N "(cached) $ECHO_C" >&6
24485 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
24486 cat >conftest.$ac_ext <<_ACEOF
24489 cat confdefs.h >>conftest.$ac_ext
24490 cat >>conftest.$ac_ext <<_ACEOF
24491 /* end confdefs.h. */
24492 #include "confdefs.h"
24493 #include <sys/types.h>
24499 switch (0) case 0: case (sizeof (void (*) (void)) == $ac_size):;
24504 rm -f conftest.$ac_objext
24505 if { (ac_try="$ac_compile"
24506 case "(($ac_try" in
24507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24508 *) ac_try_echo=$ac_try;;
24510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24511 (eval "$ac_compile") 2>conftest.er1
24513 grep -v '^ *+' conftest.er1 >conftest.err
24515 cat conftest.err >&5
24516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24517 (exit $ac_status); } && {
24518 test -z "$ac_c_werror_flag" ||
24519 test ! -s conftest.err
24520 } && test -s conftest.$ac_objext; then
24521 ac_cv_sizeof_void_LpR_LvoidR=$ac_size
24523 echo "$as_me: failed program was:" >&5
24524 sed 's/^/| /' conftest.$ac_ext >&5
24529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24530 if test x$ac_cv_sizeof_void_LpR_LvoidR != x ; then break; fi
24536 if test x$ac_cv_sizeof_void_LpR_LvoidR = x ; then
24537 { { echo "$as_me:$LINENO: error: cannot determine a size for void (*) (void)" >&5
24538 echo "$as_me: error: cannot determine a size for void (*) (void)" >&2;}
24539 { (exit 1); exit 1; }; }
24541 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_LpR_LvoidR" >&5
24542 echo "${ECHO_T}$ac_cv_sizeof_void_LpR_LvoidR" >&6; }
24546 { echo "$as_me:$LINENO: checking the GRAS signature of this architecture" >&5
24547 echo $ECHO_N "checking the GRAS signature of this architecture... $ECHO_C" >&6; }
24548 if test x$endian = x1 ; then
24554 trace="$trace_endian"
24556 trace="${trace}_C:${ac_cv_sizeof_char}/${ac_cv_struct_boundary_char}:"
24558 trace="${trace}_I:${ac_cv_sizeof_short_int}/${ac_cv_struct_boundary_short_int}"
24559 trace="${trace}:${ac_cv_sizeof_int}/${ac_cv_struct_boundary_int}"
24560 trace="${trace}:${ac_cv_sizeof_long_int}/${ac_cv_struct_boundary_long_int}"
24561 trace="${trace}:${ac_cv_sizeof_long_long_int}/${ac_cv_struct_boundary_long_long_int}:"
24563 trace="${trace}_P:${ac_cv_sizeof_void_p}/${ac_cv_struct_boundary_void_p}"
24564 trace="${trace}:${ac_cv_sizeof_void_LpR_LvoidR}/${ac_cv_struct_boundary_void_p}:"
24566 trace="${trace}_D:4/${ac_cv_struct_boundary_float}:8/${ac_cv_struct_boundary_double}:"
24568 # sizeof float/double are not tested since IEEE 754 is assumed.
24569 # Check README.IEEE for rational.
24571 # The numbers after the _ in the arch name are the maximal packing boundary.
24572 # big32_2 means that all data are aligned on a 2 bytes boundary. (ARM)
24573 # big32_8_4 means that some or them are aligned on 8 bytes, some are on 4 bytes (AIX)
24575 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;;
24576 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;;
24577 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;;
24578 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;;
24580 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;;
24582 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;;
24583 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;;
24584 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;;
24585 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;;
24587 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;;
24588 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;;
24590 if test x$gras_arch = xunknown ; then
24591 { echo "$as_me:$LINENO: result: damnit ($trace)" >&5
24592 echo "${ECHO_T}damnit ($trace)" >&6; }
24593 { { echo "$as_me:$LINENO: error: Impossible to determine the GRAS architecture signature.
24594 Please report this architecture trace ($trace) and what it corresponds to." >&5
24595 echo "$as_me: error: Impossible to determine the GRAS architecture signature.
24596 Please report this architecture trace ($trace) and what it corresponds to." >&2;}
24597 { (exit 1); exit 1; }; }
24599 echo "$as_me:$LINENO: GRAS trace of this machine: $trace" >&5
24601 cat >>confdefs.h <<_ACEOF
24602 #define GRAS_THISARCH $gras_arch
24605 { echo "$as_me:$LINENO: result: $gras_arch ($gras_arch_name)" >&5
24606 echo "${ECHO_T}$gras_arch ($gras_arch_name)" >&6; }
24608 if test "$gras_size" = 32; then
24609 GRAS_ARCH_32_BITS_TRUE=
24610 GRAS_ARCH_32_BITS_FALSE='#'
24612 GRAS_ARCH_32_BITS_TRUE='#'
24613 GRAS_ARCH_32_BITS_FALSE=
24617 { echo "$as_me:$LINENO: checking the maximal size of scalar" >&5
24618 echo $ECHO_N "checking the maximal size of scalar... $ECHO_C" >&6; }
24620 for s in $ac_cv_sizeof_char \
24621 $ac_cv_sizeof_short_int $ac_cv_sizeof_int $ac_cv_sizeof_long_int $ac_cv_sizeof_long_long_int \
24622 $ac_cv_sizeof_void_p $ac_cv_sizeof_void_LpR_LvoidR \
24625 if test $ac_cv_sizeof_max -lt $s ; then
24626 ac_cv_sizeof_max=$s
24629 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_max" >&5
24630 echo "${ECHO_T}$ac_cv_sizeof_max" >&6; }
24632 cat >>confdefs.h <<_ACEOF
24633 #define SIZEOF_MAX $ac_cv_sizeof_max
24638 # Check architecture signature end
24639 { echo "$as_me:$LINENO: checking whether the struct gets packed" >&5
24640 echo $ECHO_N "checking whether the struct gets packed... $ECHO_C" >&6; }
24641 cat >conftest.$ac_ext <<_ACEOF
24644 cat confdefs.h >>conftest.$ac_ext
24645 cat >>conftest.$ac_ext <<_ACEOF
24646 /* end confdefs.h. */
24647 #include "confdefs.h"
24648 #include <sys/types.h>
24649 #include <stddef.h> /* offsetof() */
24650 struct s {char c; double d;};
24657 case (sizeof(struct s) == sizeof(double)+sizeof(char)):;
24663 rm -f conftest.$ac_objext
24664 if { (ac_try="$ac_compile"
24665 case "(($ac_try" in
24666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24667 *) ac_try_echo=$ac_try;;
24669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24670 (eval "$ac_compile") 2>conftest.er1
24672 grep -v '^ *+' conftest.er1 >conftest.err
24674 cat conftest.err >&5
24675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24676 (exit $ac_status); } && {
24677 test -z "$ac_c_werror_flag" ||
24678 test ! -s conftest.err
24679 } && test -s conftest.$ac_objext; then
24680 gras_struct_packed=yes
24682 echo "$as_me: failed program was:" >&5
24683 sed 's/^/| /' conftest.$ac_ext >&5
24685 gras_struct_packed=no
24688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24690 { echo "$as_me:$LINENO: result: $gras_struct_packed" >&5
24691 echo "${ECHO_T}$gras_struct_packed" >&6; }
24692 if test x$gras_struct_packed = "xyes" ; then
24693 { { echo "$as_me:$LINENO: error: GRAS does not support packed structures since it leads to nasty misalignments" >&5
24694 echo "$as_me: error: GRAS does not support packed structures since it leads to nasty misalignments" >&2;}
24695 { (exit 1); exit 1; }; }
24698 { echo "$as_me:$LINENO: checking whether the struct gets compacted" >&5
24699 echo $ECHO_N "checking whether the struct gets compacted... $ECHO_C" >&6; }
24700 cat >conftest.$ac_ext <<_ACEOF
24703 cat confdefs.h >>conftest.$ac_ext
24704 cat >>conftest.$ac_ext <<_ACEOF
24705 /* end confdefs.h. */
24706 #include "confdefs.h"
24707 #include <sys/types.h>
24708 #include <stddef.h> /* offsetof() */
24709 struct s {double d; int i; char c;};
24716 case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
24722 rm -f conftest.$ac_objext
24723 if { (ac_try="$ac_compile"
24724 case "(($ac_try" in
24725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24726 *) ac_try_echo=$ac_try;;
24728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24729 (eval "$ac_compile") 2>conftest.er1
24731 grep -v '^ *+' conftest.er1 >conftest.err
24733 cat conftest.err >&5
24734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24735 (exit $ac_status); } && {
24736 test -z "$ac_c_werror_flag" ||
24737 test ! -s conftest.err
24738 } && test -s conftest.$ac_objext; then
24739 gras_struct_compact=yes
24741 echo "$as_me: failed program was:" >&5
24742 sed 's/^/| /' conftest.$ac_ext >&5
24744 gras_struct_compact=no
24747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24749 { echo "$as_me:$LINENO: result: $gras_struct_compact" >&5
24750 echo "${ECHO_T}$gras_struct_compact" >&6; }
24752 if test x$gras_struct_compact != xyes ; then
24753 { { echo "$as_me:$LINENO: error: GRAS works only on structure compacting architectures (yet)" >&5
24754 echo "$as_me: error: GRAS works only on structure compacting architectures (yet)" >&2;}
24755 { (exit 1); exit 1; }; }
24758 cat >>confdefs.h <<_ACEOF
24759 #define GRAS_STRUCT_COMPACT 1
24762 { echo "$as_me:$LINENO: checking whether arrays can straddle struct alignment boundaries" >&5
24763 echo $ECHO_N "checking whether arrays can straddle struct alignment boundaries... $ECHO_C" >&6; }
24765 cat >conftest.$ac_ext <<_ACEOF
24768 cat confdefs.h >>conftest.$ac_ext
24769 cat >>conftest.$ac_ext <<_ACEOF
24770 /* end confdefs.h. */
24771 #include "confdefs.h"
24772 #include <sys/types.h>
24773 #include <stddef.h> /* offsetof() */
24774 struct s { double d; int i; char c[6]; };
24781 case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
24787 rm -f conftest.$ac_objext
24788 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
24804 gras_array_straddle_struct=yes
24806 echo "$as_me: failed program was:" >&5
24807 sed 's/^/| /' conftest.$ac_ext >&5
24809 gras_array_straddle_struct=no
24812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24814 { echo "$as_me:$LINENO: result: $gras_array_straddle_struct" >&5
24815 echo "${ECHO_T}$gras_array_straddle_struct" >&6; }
24817 if test x$gras_array_straddle_struct = xyes ; then
24819 cat >>confdefs.h <<_ACEOF
24820 #define GRAS_ARRAY_STRADDLE_STRUCT 1
24824 { { echo "$as_me:$LINENO: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&5
24825 echo "$as_me: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&2;}
24826 { (exit 1); exit 1; }; }
24833 { echo "$as_me:$LINENO: result: " >&5
24834 echo "${ECHO_T}" >&6; }
24835 { echo "$as_me:$LINENO: result: ${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&5
24836 echo "${ECHO_T}${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&6; }
24841 { echo "$as_me:$LINENO: checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)" >&5
24842 echo $ECHO_N "checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)... $ECHO_C" >&6; }
24843 if test "${ac_cv_check_mcsc+set}" = set; then
24844 echo $ECHO_N "(cached) $ECHO_C" >&6
24847 if test "$cross_compiling" = yes; then
24848 ac_cv_check_mcsc=no
24851 cat >conftest.$ac_ext <<_ACEOF
24854 cat confdefs.h >>conftest.$ac_ext
24855 cat >>conftest.$ac_ext <<_ACEOF
24856 /* end confdefs.h. */
24860 #include <stdlib.h>
24861 #include <ucontext.h>
24863 ucontext_t uc_child;
24864 ucontext_t uc_main;
24868 if (swapcontext(&uc_child, &uc_main) != 0)
24872 int main(int argc, char *argv[])
24877 /* the default is that it fails */
24878 if ((fp = fopen("conftestval", "w")) == NULL)
24880 fprintf(fp, "no\n");
24883 /* configure a child user-space context */
24884 if ((stack = malloc(64*1024)) == NULL)
24886 if (getcontext(&uc_child) != 0)
24888 uc_child.uc_link = NULL;
24889 uc_child.uc_stack.ss_sp = (char *)stack+(32*1024);
24890 uc_child.uc_stack.ss_size = 32*1024;
24891 uc_child.uc_stack.ss_flags = 0;
24892 makecontext(&uc_child, child, 0);
24894 /* switch into the user context */
24895 if (swapcontext(&uc_main, &uc_child) != 0)
24898 /* Fine, child came home */
24899 if ((fp = fopen("conftestval", "w")) == NULL)
24901 fprintf(fp, "yes\n");
24904 /* die successfully */
24909 rm -f conftest$ac_exeext
24910 if { (ac_try="$ac_link"
24911 case "(($ac_try" in
24912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24913 *) ac_try_echo=$ac_try;;
24915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24916 (eval "$ac_link") 2>&5
24918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24919 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24920 { (case "(($ac_try" in
24921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24922 *) ac_try_echo=$ac_try;;
24924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24925 (eval "$ac_try") 2>&5
24927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24928 (exit $ac_status); }; }; then
24929 ac_cv_check_mcsc=`cat conftestval`
24931 echo "$as_me: program exited with status $ac_status" >&5
24932 echo "$as_me: failed program was:" >&5
24933 sed 's/^/| /' conftest.$ac_ext >&5
24935 ( exit $ac_status )
24936 ac_cv_check_mcsc=no
24938 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24943 { echo "$as_me:$LINENO: result: $ac_cv_check_mcsc" >&5
24944 echo "${ECHO_T}$ac_cv_check_mcsc" >&6; }
24945 if test ".$ac_cv_check_mcsc" = .yes; then
24953 for ac_header in pthread.h
24955 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24957 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24960 echo $ECHO_N "(cached) $ECHO_C" >&6
24962 ac_res=`eval echo '${'$as_ac_Header'}'`
24963 { echo "$as_me:$LINENO: result: $ac_res" >&5
24964 echo "${ECHO_T}$ac_res" >&6; }
24966 # Is the header compilable?
24967 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24968 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24969 cat >conftest.$ac_ext <<_ACEOF
24972 cat confdefs.h >>conftest.$ac_ext
24973 cat >>conftest.$ac_ext <<_ACEOF
24974 /* end confdefs.h. */
24975 $ac_includes_default
24976 #include <$ac_header>
24978 rm -f conftest.$ac_objext
24979 if { (ac_try="$ac_compile"
24980 case "(($ac_try" in
24981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24982 *) ac_try_echo=$ac_try;;
24984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24985 (eval "$ac_compile") 2>conftest.er1
24987 grep -v '^ *+' conftest.er1 >conftest.err
24989 cat conftest.err >&5
24990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24991 (exit $ac_status); } && {
24992 test -z "$ac_c_werror_flag" ||
24993 test ! -s conftest.err
24994 } && test -s conftest.$ac_objext; then
24995 ac_header_compiler=yes
24997 echo "$as_me: failed program was:" >&5
24998 sed 's/^/| /' conftest.$ac_ext >&5
25000 ac_header_compiler=no
25003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25004 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25005 echo "${ECHO_T}$ac_header_compiler" >&6; }
25007 # Is the header present?
25008 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25010 cat >conftest.$ac_ext <<_ACEOF
25013 cat confdefs.h >>conftest.$ac_ext
25014 cat >>conftest.$ac_ext <<_ACEOF
25015 /* end confdefs.h. */
25016 #include <$ac_header>
25018 if { (ac_try="$ac_cpp conftest.$ac_ext"
25019 case "(($ac_try" in
25020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25021 *) ac_try_echo=$ac_try;;
25023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25024 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25026 grep -v '^ *+' conftest.er1 >conftest.err
25028 cat conftest.err >&5
25029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25030 (exit $ac_status); } >/dev/null && {
25031 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25032 test ! -s conftest.err
25034 ac_header_preproc=yes
25036 echo "$as_me: failed program was:" >&5
25037 sed 's/^/| /' conftest.$ac_ext >&5
25039 ac_header_preproc=no
25042 rm -f conftest.err conftest.$ac_ext
25043 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25044 echo "${ECHO_T}$ac_header_preproc" >&6; }
25046 # So? What about this header?
25047 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25049 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25050 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25052 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25053 ac_header_preproc=yes
25056 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25057 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25058 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25059 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25060 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25061 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25062 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25063 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25064 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25065 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25066 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25067 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25069 ## -------------------------------------------------- ##
25070 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
25071 ## -------------------------------------------------- ##
25073 ) | sed "s/^/$as_me: WARNING: /" >&2
25076 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25078 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25079 echo $ECHO_N "(cached) $ECHO_C" >&6
25081 eval "$as_ac_Header=\$ac_header_preproc"
25083 ac_res=`eval echo '${'$as_ac_Header'}'`
25084 { echo "$as_me:$LINENO: result: $ac_res" >&5
25085 echo "${ECHO_T}$ac_res" >&6; }
25088 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25089 cat >>confdefs.h <<_ACEOF
25090 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25097 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
25098 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
25099 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
25100 echo $ECHO_N "(cached) $ECHO_C" >&6
25102 ac_check_lib_save_LIBS=$LIBS
25103 LIBS="-lpthread $LIBS"
25104 cat >conftest.$ac_ext <<_ACEOF
25107 cat confdefs.h >>conftest.$ac_ext
25108 cat >>conftest.$ac_ext <<_ACEOF
25109 /* end confdefs.h. */
25111 /* Override any GCC internal prototype to avoid an error.
25112 Use char because int might match the return type of a GCC
25113 builtin and then its argument prototype would still apply. */
25117 char pthread_create ();
25121 return pthread_create ();
25126 rm -f conftest.$ac_objext conftest$ac_exeext
25127 if { (ac_try="$ac_link"
25128 case "(($ac_try" in
25129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25130 *) ac_try_echo=$ac_try;;
25132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25133 (eval "$ac_link") 2>conftest.er1
25135 grep -v '^ *+' conftest.er1 >conftest.err
25137 cat conftest.err >&5
25138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25139 (exit $ac_status); } && {
25140 test -z "$ac_c_werror_flag" ||
25141 test ! -s conftest.err
25142 } && test -s conftest$ac_exeext &&
25143 $as_test_x conftest$ac_exeext; then
25144 ac_cv_lib_pthread_pthread_create=yes
25146 echo "$as_me: failed program was:" >&5
25147 sed 's/^/| /' conftest.$ac_ext >&5
25149 ac_cv_lib_pthread_pthread_create=no
25152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25153 conftest$ac_exeext conftest.$ac_ext
25154 LIBS=$ac_check_lib_save_LIBS
25156 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
25157 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
25158 if test $ac_cv_lib_pthread_pthread_create = yes; then
25165 if test x$pthread = xyes ; then
25166 { echo "$as_me:$LINENO: checking for sem_init in -lpthread" >&5
25167 echo $ECHO_N "checking for sem_init in -lpthread... $ECHO_C" >&6; }
25168 if test "${ac_cv_lib_pthread_sem_init+set}" = set; then
25169 echo $ECHO_N "(cached) $ECHO_C" >&6
25171 ac_check_lib_save_LIBS=$LIBS
25172 LIBS="-lpthread $LIBS"
25173 cat >conftest.$ac_ext <<_ACEOF
25176 cat confdefs.h >>conftest.$ac_ext
25177 cat >>conftest.$ac_ext <<_ACEOF
25178 /* end confdefs.h. */
25180 /* Override any GCC internal prototype to avoid an error.
25181 Use char because int might match the return type of a GCC
25182 builtin and then its argument prototype would still apply. */
25190 return sem_init ();
25195 rm -f conftest.$ac_objext conftest$ac_exeext
25196 if { (ac_try="$ac_link"
25197 case "(($ac_try" in
25198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25199 *) ac_try_echo=$ac_try;;
25201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25202 (eval "$ac_link") 2>conftest.er1
25204 grep -v '^ *+' conftest.er1 >conftest.err
25206 cat conftest.err >&5
25207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25208 (exit $ac_status); } && {
25209 test -z "$ac_c_werror_flag" ||
25210 test ! -s conftest.err
25211 } && test -s conftest$ac_exeext &&
25212 $as_test_x conftest$ac_exeext; then
25213 ac_cv_lib_pthread_sem_init=yes
25215 echo "$as_me: failed program was:" >&5
25216 sed 's/^/| /' conftest.$ac_ext >&5
25218 ac_cv_lib_pthread_sem_init=no
25221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25222 conftest$ac_exeext conftest.$ac_ext
25223 LIBS=$ac_check_lib_save_LIBS
25225 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_sem_init" >&5
25226 echo "${ECHO_T}$ac_cv_lib_pthread_sem_init" >&6; }
25227 if test $ac_cv_lib_pthread_sem_init = yes; then
25233 if test ${HAVE_SEM_INIT} = yes ; then
25234 { echo "$as_me:$LINENO: checking if sem_init is compilable" >&5
25235 echo $ECHO_N "checking if sem_init is compilable... $ECHO_C" >&6; }
25236 cat >conftest.$ac_ext <<_ACEOF
25239 cat confdefs.h >>conftest.$ac_ext
25240 cat >>conftest.$ac_ext <<_ACEOF
25241 /* end confdefs.h. */
25242 #include <semaphore.h>
25246 sem_t s; sem_init(&s);
25251 rm -f conftest.$ac_objext
25252 if { (ac_try="$ac_compile"
25253 case "(($ac_try" in
25254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25255 *) ac_try_echo=$ac_try;;
25257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25258 (eval "$ac_compile") 2>conftest.er1
25260 grep -v '^ *+' conftest.er1 >conftest.err
25262 cat conftest.err >&5
25263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25264 (exit $ac_status); } && {
25265 test -z "$ac_c_werror_flag" ||
25266 test ! -s conftest.err
25267 } && test -s conftest.$ac_objext; then
25270 echo "$as_me: failed program was:" >&5
25271 sed 's/^/| /' conftest.$ac_ext >&5
25276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25277 if test ${HAVE_SEM_INIT} = yes ; then
25279 cat >>confdefs.h <<\_ACEOF
25280 #define HAVE_SEM_INIT 1
25283 { echo "$as_me:$LINENO: result: yes" >&5
25284 echo "${ECHO_T}yes" >&6; }
25286 { echo "$as_me:$LINENO: result: no" >&5
25287 echo "${ECHO_T}no" >&6; }
25290 { echo "$as_me:$LINENO: checking for sem_timedwait in -lpthread" >&5
25291 echo $ECHO_N "checking for sem_timedwait in -lpthread... $ECHO_C" >&6; }
25292 if test "${ac_cv_lib_pthread_sem_timedwait+set}" = set; then
25293 echo $ECHO_N "(cached) $ECHO_C" >&6
25295 ac_check_lib_save_LIBS=$LIBS
25296 LIBS="-lpthread $LIBS"
25297 cat >conftest.$ac_ext <<_ACEOF
25300 cat confdefs.h >>conftest.$ac_ext
25301 cat >>conftest.$ac_ext <<_ACEOF
25302 /* end confdefs.h. */
25304 /* Override any GCC internal prototype to avoid an error.
25305 Use char because int might match the return type of a GCC
25306 builtin and then its argument prototype would still apply. */
25310 char sem_timedwait ();
25314 return sem_timedwait ();
25319 rm -f conftest.$ac_objext conftest$ac_exeext
25320 if { (ac_try="$ac_link"
25321 case "(($ac_try" in
25322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25323 *) ac_try_echo=$ac_try;;
25325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25326 (eval "$ac_link") 2>conftest.er1
25328 grep -v '^ *+' conftest.er1 >conftest.err
25330 cat conftest.err >&5
25331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25332 (exit $ac_status); } && {
25333 test -z "$ac_c_werror_flag" ||
25334 test ! -s conftest.err
25335 } && test -s conftest$ac_exeext &&
25336 $as_test_x conftest$ac_exeext; then
25337 ac_cv_lib_pthread_sem_timedwait=yes
25339 echo "$as_me: failed program was:" >&5
25340 sed 's/^/| /' conftest.$ac_ext >&5
25342 ac_cv_lib_pthread_sem_timedwait=no
25345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25346 conftest$ac_exeext conftest.$ac_ext
25347 LIBS=$ac_check_lib_save_LIBS
25349 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_sem_timedwait" >&5
25350 echo "${ECHO_T}$ac_cv_lib_pthread_sem_timedwait" >&6; }
25351 if test $ac_cv_lib_pthread_sem_timedwait = yes; then
25352 HAVE_SEM_TIMEDWAIT=yes
25354 HAVE_SEM_TIMEDWAIT=no
25357 if test ${HAVE_SEM_TIMEDWAIT} = yes ; then
25358 { echo "$as_me:$LINENO: checking if sem_timedwait is compilable" >&5
25359 echo $ECHO_N "checking if sem_timedwait is compilable... $ECHO_C" >&6; }
25360 cat >conftest.$ac_ext <<_ACEOF
25363 cat confdefs.h >>conftest.$ac_ext
25364 cat >>conftest.$ac_ext <<_ACEOF
25365 /* end confdefs.h. */
25366 #include <semaphore.h>
25370 sem_t *s; const struct timespec * t; sem_timedwait(s, t);
25375 rm -f conftest.$ac_objext
25376 if { (ac_try="$ac_compile"
25377 case "(($ac_try" in
25378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25379 *) ac_try_echo=$ac_try;;
25381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25382 (eval "$ac_compile") 2>conftest.er1
25384 grep -v '^ *+' conftest.er1 >conftest.err
25386 cat conftest.err >&5
25387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25388 (exit $ac_status); } && {
25389 test -z "$ac_c_werror_flag" ||
25390 test ! -s conftest.err
25391 } && test -s conftest.$ac_objext; then
25392 HAVE_SEM_TIMEDWAIT=yes
25394 echo "$as_me: failed program was:" >&5
25395 sed 's/^/| /' conftest.$ac_ext >&5
25397 HAVE_SEM_TIMEDWAIT=no
25400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25401 if test ${HAVE_SEM_TIMEDWAIT} = yes ; then
25403 cat >>confdefs.h <<\_ACEOF
25404 #define HAVE_SEM_TIMEDWAIT 1
25407 { echo "$as_me:$LINENO: result: yes" >&5
25408 echo "${ECHO_T}yes" >&6; }
25410 { echo "$as_me:$LINENO: result: no" >&5
25411 echo "${ECHO_T}no" >&6; }
25415 { echo "$as_me:$LINENO: checking for pthread_mutex_timedlock in -lpthread" >&5
25416 echo $ECHO_N "checking for pthread_mutex_timedlock in -lpthread... $ECHO_C" >&6; }
25417 if test "${ac_cv_lib_pthread_pthread_mutex_timedlock+set}" = set; then
25418 echo $ECHO_N "(cached) $ECHO_C" >&6
25420 ac_check_lib_save_LIBS=$LIBS
25421 LIBS="-lpthread $LIBS"
25422 cat >conftest.$ac_ext <<_ACEOF
25425 cat confdefs.h >>conftest.$ac_ext
25426 cat >>conftest.$ac_ext <<_ACEOF
25427 /* end confdefs.h. */
25429 /* Override any GCC internal prototype to avoid an error.
25430 Use char because int might match the return type of a GCC
25431 builtin and then its argument prototype would still apply. */
25435 char pthread_mutex_timedlock ();
25439 return pthread_mutex_timedlock ();
25444 rm -f conftest.$ac_objext conftest$ac_exeext
25445 if { (ac_try="$ac_link"
25446 case "(($ac_try" in
25447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25448 *) ac_try_echo=$ac_try;;
25450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25451 (eval "$ac_link") 2>conftest.er1
25453 grep -v '^ *+' conftest.er1 >conftest.err
25455 cat conftest.err >&5
25456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25457 (exit $ac_status); } && {
25458 test -z "$ac_c_werror_flag" ||
25459 test ! -s conftest.err
25460 } && test -s conftest$ac_exeext &&
25461 $as_test_x conftest$ac_exeext; then
25462 ac_cv_lib_pthread_pthread_mutex_timedlock=yes
25464 echo "$as_me: failed program was:" >&5
25465 sed 's/^/| /' conftest.$ac_ext >&5
25467 ac_cv_lib_pthread_pthread_mutex_timedlock=no
25470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25471 conftest$ac_exeext conftest.$ac_ext
25472 LIBS=$ac_check_lib_save_LIBS
25474 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_timedlock" >&5
25475 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_timedlock" >&6; }
25476 if test $ac_cv_lib_pthread_pthread_mutex_timedlock = yes; then
25477 HAVE_MUTEX_TIMEDLOCK=yes
25479 HAVE_MUTEX_TIMEDLOCK=no
25482 if test ${HAVE_MUTEX_TIMEDLOCK} = yes ; then
25483 { echo "$as_me:$LINENO: checking if pthread_mutex_timedlock is compilable" >&5
25484 echo $ECHO_N "checking if pthread_mutex_timedlock is compilable... $ECHO_C" >&6; }
25485 cat >conftest.$ac_ext <<_ACEOF
25488 cat confdefs.h >>conftest.$ac_ext
25489 cat >>conftest.$ac_ext <<_ACEOF
25490 /* end confdefs.h. */
25491 #include <pthread.h>
25495 pthread_mutex_t s; const struct timespec t; sem_timedlock(&s, &t);
25500 rm -f conftest.$ac_objext
25501 if { (ac_try="$ac_compile"
25502 case "(($ac_try" in
25503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25504 *) ac_try_echo=$ac_try;;
25506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25507 (eval "$ac_compile") 2>conftest.er1
25509 grep -v '^ *+' conftest.er1 >conftest.err
25511 cat conftest.err >&5
25512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25513 (exit $ac_status); } && {
25514 test -z "$ac_c_werror_flag" ||
25515 test ! -s conftest.err
25516 } && test -s conftest.$ac_objext; then
25517 HAVE_MUTEX_TIMEDLOCK=yes
25519 echo "$as_me: failed program was:" >&5
25520 sed 's/^/| /' conftest.$ac_ext >&5
25522 HAVE_MUTEX_TIMEDLOCK=no
25525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25526 if test ${HAVE_MUTEX_TIMEDLOCK} = yes ; then
25528 cat >>confdefs.h <<\_ACEOF
25529 #define HAVE_MUTEX_TIMEDLOCK 1
25532 { echo "$as_me:$LINENO: result: yes" >&5
25533 echo "${ECHO_T}yes" >&6; }
25535 { echo "$as_me:$LINENO: result: no" >&5
25536 echo "${ECHO_T}no" >&6; }
25542 if test ".$mcsc" = .yes; then
25545 elif test ".$pthread" = .yes; then
25546 # ucontext not found, but pthread found
25549 ac_header=windows.h
25550 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25552 windows_context=yes
25554 { { echo "$as_me:$LINENO: error: no appropriate backend found" >&5
25555 echo "$as_me: error: no appropriate backend found" >&2;}
25556 { (exit 1); exit 1; }; }
25559 if test x$windows_context = xyes; then
25561 IS_WINDOWS_FALSE='#'
25563 IS_WINDOWS_TRUE='#'
25570 { echo "$as_me:$LINENO: checking what kind of backend should we use" >&5
25571 echo $ECHO_N "checking what kind of backend should we use... $ECHO_C" >&6; }
25574 # Check whether --with-pthread was given.
25575 if test "${with_pthread+set}" = set; then
25576 withval=$with_pthread; with_context=pthread
25580 # Check whether --with-pthread was given.
25581 if test "${with_pthread+set}" = set; then
25582 withval=$with_pthread; with_context=pthread
25587 # Check whether --with-context was given.
25588 if test "${with_context+set}" = set; then
25589 withval=$with_context;
25595 if test "x$with_context$mcsc" = "xucontextno" ; then
25596 { { echo "$as_me:$LINENO: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&5
25597 echo "$as_me: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&2;}
25598 { (exit 77); exit 77; }; }
25601 case $with_context in
25606 auto) with_context=ucontext;;
25607 *) { { echo "$as_me:$LINENO: error: --with-context must be either ucontext or pthread" >&5
25608 echo "$as_me: error: --with-context must be either ucontext or pthread" >&2;}
25609 { (exit 1); exit 1; }; } ;;
25612 if test "x$with_context" = "xucontext" ; then
25613 if test ".$mcsc" = .yes; then
25614 { echo "$as_me:$LINENO: result: found working ucontext. Great!" >&5
25615 echo "${ECHO_T}found working ucontext. Great!" >&6; }
25617 cat >>confdefs.h <<\_ACEOF
25618 #define CONTEXT_UCONTEXT 1
25622 if test ".$windows_context" = .yes ; then
25623 { echo "$as_me:$LINENO: result: use windows context portability layer." >&5
25624 echo "${ECHO_T}use windows context portability layer." >&6; }
25625 with_context=windows
25627 { echo "$as_me:$LINENO: result: no working ucontext found. Try pthreads as a fallback" >&5
25628 echo "${ECHO_T}no working ucontext found. Try pthreads as a fallback" >&6; }
25629 with_context=pthread
25634 if test "x$with_context" = "xpthread"; then
25635 if test x$pthread != xyes ; then # reuse previous checks
25636 { { echo "$as_me:$LINENO: error: Cannot find pthreads (try --with-context=ucontext if you haven't already tried)." >&5
25637 echo "$as_me: error: Cannot find pthreads (try --with-context=ucontext if you haven't already tried)." >&2;}
25638 { (exit 1); exit 1; }; }
25641 cat >>confdefs.h <<\_ACEOF
25642 #define CONTEXT_THREADS 1
25645 { echo "$as_me:$LINENO: result: You have pthreads and requested for them. Fine." >&5
25646 echo "${ECHO_T}You have pthreads and requested for them. Fine." >&6; }
25648 if test "x$with_context" != xucontext; then
25649 CONTEXT_THREADS_TRUE=
25650 CONTEXT_THREADS_FALSE='#'
25652 CONTEXT_THREADS_TRUE='#'
25653 CONTEXT_THREADS_FALSE=
25658 if test "x$with_context" = "xucontext" ; then
25659 { echo "$as_me:$LINENO: checking for direction of stack growth" >&5
25660 echo $ECHO_N "checking for direction of stack growth... $ECHO_C" >&6; }
25661 if test "${ac_cv_check_stackgrowth+set}" = set; then
25662 echo $ECHO_N "(cached) $ECHO_C" >&6
25666 if test "$cross_compiling" = yes; then
25667 ac_cv_check_stackgrowth=down
25670 cat >conftest.$ac_ext <<_ACEOF
25673 cat confdefs.h >>conftest.$ac_ext
25674 cat >>conftest.$ac_ext <<_ACEOF
25675 /* end confdefs.h. */
25678 #include <stdlib.h>
25679 static int iterate = 10;
25680 static int growsdown(int *x)
25690 int main(int argc, char *argv[])
25694 if ((f = fopen("conftestval", "w")) == NULL)
25696 fprintf(f, "%s\n", growsdown(&x) ? "down" : "up");;
25703 rm -f conftest$ac_exeext
25704 if { (ac_try="$ac_link"
25705 case "(($ac_try" in
25706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25707 *) ac_try_echo=$ac_try;;
25709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25710 (eval "$ac_link") 2>&5
25712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25713 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25714 { (case "(($ac_try" in
25715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25716 *) ac_try_echo=$ac_try;;
25718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25719 (eval "$ac_try") 2>&5
25721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25722 (exit $ac_status); }; }; then
25723 ac_cv_check_stackgrowth=`cat conftestval`
25725 echo "$as_me: program exited with status $ac_status" >&5
25726 echo "$as_me: failed program was:" >&5
25727 sed 's/^/| /' conftest.$ac_ext >&5
25729 ( exit $ac_status )
25730 ac_cv_check_stackgrowth=down
25732 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25737 { echo "$as_me:$LINENO: result: $ac_cv_check_stackgrowth" >&5
25738 echo "${ECHO_T}$ac_cv_check_stackgrowth" >&6; }
25739 if test ".$ac_cv_check_stackgrowth" = ".down"; then
25745 cat >>confdefs.h <<_ACEOF
25746 #define PTH_STACKGROWTH $val
25750 if test ".$ac_cv_check_stackgrowth" = ".down"; then
25751 PTH_STACK_GROWTH="down"
25753 PTH_STACK_GROWTH="up"
25761 for ac_func in makecontext
25763 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25764 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25765 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25766 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25767 echo $ECHO_N "(cached) $ECHO_C" >&6
25769 cat >conftest.$ac_ext <<_ACEOF
25772 cat confdefs.h >>conftest.$ac_ext
25773 cat >>conftest.$ac_ext <<_ACEOF
25774 /* end confdefs.h. */
25775 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25776 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25777 #define $ac_func innocuous_$ac_func
25779 /* System header to define __stub macros and hopefully few prototypes,
25780 which can conflict with char $ac_func (); below.
25781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25782 <limits.h> exists even on freestanding compilers. */
25785 # include <limits.h>
25787 # include <assert.h>
25792 /* Override any GCC internal prototype to avoid an error.
25793 Use char because int might match the return type of a GCC
25794 builtin and then its argument prototype would still apply. */
25799 /* The GNU C library defines this for functions which it implements
25800 to always fail with ENOSYS. Some functions are actually named
25801 something starting with __ and the normal name is an alias. */
25802 #if defined __stub_$ac_func || defined __stub___$ac_func
25809 return $ac_func ();
25814 rm -f conftest.$ac_objext conftest$ac_exeext
25815 if { (ac_try="$ac_link"
25816 case "(($ac_try" in
25817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25818 *) ac_try_echo=$ac_try;;
25820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25821 (eval "$ac_link") 2>conftest.er1
25823 grep -v '^ *+' conftest.er1 >conftest.err
25825 cat conftest.err >&5
25826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25827 (exit $ac_status); } && {
25828 test -z "$ac_c_werror_flag" ||
25829 test ! -s conftest.err
25830 } && test -s conftest$ac_exeext &&
25831 $as_test_x conftest$ac_exeext; then
25832 eval "$as_ac_var=yes"
25834 echo "$as_me: failed program was:" >&5
25835 sed 's/^/| /' conftest.$ac_ext >&5
25837 eval "$as_ac_var=no"
25840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25841 conftest$ac_exeext conftest.$ac_ext
25843 ac_res=`eval echo '${'$as_ac_var'}'`
25844 { echo "$as_me:$LINENO: result: $ac_res" >&5
25845 echo "${ECHO_T}$ac_res" >&6; }
25846 if test `eval echo '${'$as_ac_var'}'` = yes; then
25847 cat >>confdefs.h <<_ACEOF
25848 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25855 { echo "$as_me:$LINENO: checking for stack setup via makecontext" >&5
25856 echo $ECHO_N "checking for stack setup via makecontext... $ECHO_C" >&6; }
25857 if test "${ac_cv_stacksetup_makecontext+set}" = set; then
25858 echo $ECHO_N "(cached) $ECHO_C" >&6
25861 if test ".$ac_cv_func_makecontext" = .no; then
25862 ac_cv_stacksetup_makecontext="N.A.:/*N.A.*/,/*N.A.*/"
25865 CFLAGS="$CFLAGS -DTEST_makecontext"
25867 if test "$cross_compiling" = yes; then
25869 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
25872 cat >conftest.$ac_ext <<_ACEOF
25875 cat confdefs.h >>conftest.$ac_ext
25876 cat >>conftest.$ac_ext <<_ACEOF
25877 /* end confdefs.h. */
25880 #include <stdlib.h>
25881 #include <string.h>
25882 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25883 #include <sys/types.h>
25884 #include <signal.h>
25885 #include <unistd.h>
25887 #if defined(TEST_makecontext)
25888 #include <ucontext.h>
25897 static volatile char *handler_addr = (char *)0xDEAD;
25898 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25899 static volatile int handler_done = 0;
25900 void handler(int sig)
25902 char garbage[1024];
25905 for (i = 0; i < 1024; i++)
25907 handler_addr = (char *)&dummy;
25912 #if defined(TEST_makecontext)
25913 static ucontext_t uc_handler;
25914 static ucontext_t uc_main;
25917 char garbage[1024];
25920 for (i = 0; i < 1024; i++)
25922 handler_addr = (char *)&dummy;
25923 swapcontext(&uc_handler, &uc_main);
25927 int main(int argc, char *argv[])
25936 skbuf = (char *)malloc(sksize*2+2*sizeof(union alltypes));
25939 for (i = 0; i < sksize*2+2*sizeof(union alltypes); i++)
25941 skaddr = skbuf+sizeof(union alltypes);
25942 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25944 struct sigaction sa;
25945 #if defined(TEST_sigstack)
25946 struct sigstack ss;
25947 #elif defined(TEST_sigaltstack) && defined(HAVE_STACK_T)
25950 struct sigaltstack ss;
25952 #if defined(TEST_sigstack)
25953 ss.ss_sp = (void *)(skaddr + sksize);
25955 if (sigstack(&ss, NULL) < 0)
25957 #elif defined(TEST_sigaltstack)
25958 ss.ss_sp = (void *)(skaddr + sksize);
25959 ss.ss_size = sksize;
25961 if (sigaltstack(&ss, NULL) < 0)
25964 memset((void *)&sa, 0, sizeof(struct sigaction));
25965 sa.sa_handler = handler;
25966 sa.sa_flags = SA_ONSTACK;
25967 sigemptyset(&sa.sa_mask);
25968 sigaction(SIGUSR1, &sa, NULL);
25969 kill(getpid(), SIGUSR1);
25970 while (!handler_done)
25974 #if defined(TEST_makecontext)
25976 if (getcontext(&uc_handler) != 0)
25978 uc_handler.uc_link = NULL;
25979 uc_handler.uc_stack.ss_sp = (void *)(skaddr + sksize);
25980 uc_handler.uc_stack.ss_size = sksize;
25981 uc_handler.uc_stack.ss_flags = 0;
25982 makecontext(&uc_handler, handler, 0);
25983 swapcontext(&uc_main, &uc_handler);
25986 if (handler_addr == (char *)0xDEAD)
25988 if (handler_addr < skaddr+sksize) {
25989 /* stack was placed into lower area */
25990 if (*(skaddr+sksize) != 'A')
25991 sprintf(result, "(skaddr)+(sksize)-%d,(sksize)-%d",
25992 sizeof(union alltypes), sizeof(union alltypes));
25994 strcpy(result, "(skaddr)+(sksize),(sksize)");
25997 /* stack was placed into higher area */
25998 if (*(skaddr+sksize*2) != 'A')
25999 sprintf(result, "(skaddr),(sksize)-%d", sizeof(union alltypes));
26001 strcpy(result, "(skaddr),(sksize)");
26003 if ((f = fopen("conftestval", "w")) == NULL)
26005 fprintf(f, "%s\n", result);
26011 rm -f conftest$ac_exeext
26012 if { (ac_try="$ac_link"
26013 case "(($ac_try" in
26014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26015 *) ac_try_echo=$ac_try;;
26017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26018 (eval "$ac_link") 2>&5
26020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26021 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26022 { (case "(($ac_try" in
26023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26024 *) ac_try_echo=$ac_try;;
26026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26027 (eval "$ac_try") 2>&5
26029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26030 (exit $ac_status); }; }; then
26032 ac_cv_stacksetup_makecontext=`cat conftestval`
26033 ac_cv_stacksetup_makecontext="ok:$ac_cv_stacksetup_makecontext"
26036 echo "$as_me: program exited with status $ac_status" >&5
26037 echo "$as_me: failed program was:" >&5
26038 sed 's/^/| /' conftest.$ac_ext >&5
26040 ( exit $ac_status )
26042 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
26045 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26053 type=`echo $ac_cv_stacksetup_makecontext | sed -e 's;:.*$;;'`
26054 addr=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;,.*$;;'`
26055 size=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;^.*,;;'`
26056 pth_skaddr_makecontext="#define pth_skaddr_makecontext(skaddr,sksize) ($addr)"
26057 pth_sksize_makecontext="#define pth_sksize_makecontext(skaddr,sksize) ($size)"
26058 { echo "$as_me:$LINENO: result: $type" >&5
26059 echo "${ECHO_T}$type" >&6; }
26060 if test ".$verbose" = .yes; then
26061 { echo "$as_me:$LINENO: result: $pth_skaddr_makecontext" >&5
26062 echo "${ECHO_T} $pth_skaddr_makecontext" >&6; }
26065 if test ".$verbose" = .yes; then
26066 { echo "$as_me:$LINENO: result: $pth_sksize_makecontext" >&5
26067 echo "${ECHO_T} $pth_sksize_makecontext" >&6; }
26073 #########################################
26074 ## Check for libraries extra-dependencies
26078 { echo "$as_me:$LINENO: result: " >&5
26079 echo "${ECHO_T}" >&6; }
26080 { echo "$as_me:$LINENO: result: ${T_MD}Checking extra libraries dependencies...${T_ME}" >&5
26081 echo "${ECHO_T}${T_MD}Checking extra libraries dependencies...${T_ME}" >&6; }
26088 if test xpthread=xyes ; then
26089 # if the pthreads are usable
26090 if test "x$with_context" = "xpthread" ; then
26091 # if we use them to implement the xbt_context
26092 SIMGRID_DEP="-lpthread"
26094 # we need them in any case for the gras lib (which is multithreaded), but on windows (of course)
26095 if test "x$with_context" != "xwindows" ; then
26096 GRAS_DEP="-lpthread"
26100 #########################################
26101 ## Build optional modules (gtnets)
26105 # Check whether --with-gtnets was given.
26106 if test "${with_gtnets+set}" = set; then
26107 withval=$with_gtnets; gtnets_path="$withval"
26112 if test "x$gtnets_path" = "xno" ; then
26113 { echo "$as_me:$LINENO: result: Eventually you will come to GTNetS." >&5
26114 echo "${ECHO_T}Eventually you will come to GTNetS." >&6; }
26116 { echo "$as_me:$LINENO: result: ***** You have decided to use the experimental GTNetS. We hope you know what you're doing.. *****" >&5
26117 echo "${ECHO_T}***** You have decided to use the experimental GTNetS. We hope you know what you're doing.. *****" >&6; }
26118 { echo "$as_me:$LINENO: checking for gtnets" >&5
26119 echo $ECHO_N "checking for gtnets... $ECHO_C" >&6; }
26121 ac_cpp='$CXXCPP $CPPFLAGS'
26122 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26123 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26124 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26126 GTNETS_LDFLAGS="-lgtnets -L$gtnets_path/lib"
26127 GTNETS_CPPFLAGS="-I$gtnets_path/include -I$gtnets_path/include/gtnets"
26128 LDFLAGS_SAV=$LDFLAGS
26129 CPPFLAGS_SAV=$CPPFLAGS
26130 CPPFLAGS+=$GTNETS_CPPFLAGS
26131 LDFLAGS+=$GTNETS_LDFLAGS
26132 cat >conftest.$ac_ext <<_ACEOF
26135 cat confdefs.h >>conftest.$ac_ext
26136 cat >>conftest.$ac_ext <<_ACEOF
26137 /* end confdefs.h. */
26138 #include <simulator.h>
26143 Simulator s; s.RunUntilNextCompletion();
26148 rm -f conftest.$ac_objext conftest$ac_exeext
26149 if { (ac_try="$ac_link"
26150 case "(($ac_try" in
26151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26152 *) ac_try_echo=$ac_try;;
26154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26155 (eval "$ac_link") 2>conftest.er1
26157 grep -v '^ *+' conftest.er1 >conftest.err
26159 cat conftest.err >&5
26160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26161 (exit $ac_status); } && {
26162 test -z "$ac_cxx_werror_flag" ||
26163 test ! -s conftest.err
26164 } && test -s conftest$ac_exeext &&
26165 $as_test_x conftest$ac_exeext; then
26168 echo "$as_me: failed program was:" >&5
26169 sed 's/^/| /' conftest.$ac_ext >&5
26174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26175 conftest$ac_exeext conftest.$ac_ext
26176 CPPFLAGS=$CPPFLAGS_SAV
26177 LDFLAGS=$LDFLAGS_SAV
26179 ac_cpp='$CPP $CPPFLAGS'
26180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26185 if test "x$gtnets" = xyes ; then
26186 AM_CPPFLAGS="$AM_CPPFLAGS $GTNETS_CPPFLAGS"
26187 SIMGRID_DEP="$SIMGRID_DEP $GTNETS_LDFLAGS"
26188 { echo "$as_me:$LINENO: result: Found working gtnets library." >&5
26189 echo "${ECHO_T}Found working gtnets library." >&6; }
26191 cat >>confdefs.h <<\_ACEOF
26192 #define HAVE_GTNETS 1
26196 { echo "$as_me:$LINENO: result: Could not find any working gtnets library or not patched version" >&5
26197 echo "${ECHO_T}Could not find any working gtnets library or not patched version" >&6; }
26200 if test "x$gtnets" != xno; then
26202 HAVE_GTNETS_FALSE='#'
26204 HAVE_GTNETS_TRUE='#'
26209 #########################################
26210 ## Build optional modules (csdp)
26214 # Check whether --with-csdp was given.
26215 if test "${with_csdp+set}" = set; then
26216 withval=$with_csdp; csdp_path="$withval"
26221 if test "x$csdp_path" = "xno" ; then
26222 { echo "$as_me:$LINENO: result: Eventually you will come to csdp." >&5
26223 echo "${ECHO_T}Eventually you will come to csdp." >&6; }
26225 { echo "$as_me:$LINENO: result: ***** You have decided to use csdp. Let's check whether it works or not *****" >&5
26226 echo "${ECHO_T}***** You have decided to use csdp. Let's check whether it works or not *****" >&6; }
26227 { echo "$as_me:$LINENO: checking for csdp" >&5
26228 echo $ECHO_N "checking for csdp... $ECHO_C" >&6; }
26229 CSDP_LDFLAGS="-L$csdp_path/lib -lsdp -llapack -lblas -lm"
26230 CSDP_CPPFLAGS="-I$csdp_path/include -I$csdp_path/include/csdp"
26232 { echo "$as_me:$LINENO: checking for easy_sdp in -lsdp" >&5
26233 echo $ECHO_N "checking for easy_sdp in -lsdp... $ECHO_C" >&6; }
26234 if test "${ac_cv_lib_sdp_easy_sdp+set}" = set; then
26235 echo $ECHO_N "(cached) $ECHO_C" >&6
26237 ac_check_lib_save_LIBS=$LIBS
26238 LIBS="-lsdp $CSDP_LDFLAGS $LIBS"
26239 cat >conftest.$ac_ext <<_ACEOF
26242 cat confdefs.h >>conftest.$ac_ext
26243 cat >>conftest.$ac_ext <<_ACEOF
26244 /* end confdefs.h. */
26246 /* Override any GCC internal prototype to avoid an error.
26247 Use char because int might match the return type of a GCC
26248 builtin and then its argument prototype would still apply. */
26256 return easy_sdp ();
26261 rm -f conftest.$ac_objext conftest$ac_exeext
26262 if { (ac_try="$ac_link"
26263 case "(($ac_try" in
26264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26265 *) ac_try_echo=$ac_try;;
26267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26268 (eval "$ac_link") 2>conftest.er1
26270 grep -v '^ *+' conftest.er1 >conftest.err
26272 cat conftest.err >&5
26273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26274 (exit $ac_status); } && {
26275 test -z "$ac_c_werror_flag" ||
26276 test ! -s conftest.err
26277 } && test -s conftest$ac_exeext &&
26278 $as_test_x conftest$ac_exeext; then
26279 ac_cv_lib_sdp_easy_sdp=yes
26281 echo "$as_me: failed program was:" >&5
26282 sed 's/^/| /' conftest.$ac_ext >&5
26284 ac_cv_lib_sdp_easy_sdp=no
26287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26288 conftest$ac_exeext conftest.$ac_ext
26289 LIBS=$ac_check_lib_save_LIBS
26291 { echo "$as_me:$LINENO: result: $ac_cv_lib_sdp_easy_sdp" >&5
26292 echo "${ECHO_T}$ac_cv_lib_sdp_easy_sdp" >&6; }
26293 if test $ac_cv_lib_sdp_easy_sdp = yes; then
26300 CPPFLAGS_SAV=$CPPFLAGS
26301 CPPFLAGS+=$CSDP_CPPFLAGS
26302 if test "${ac_cv_header_declarations_h+set}" = set; then
26303 { echo "$as_me:$LINENO: checking for declarations.h" >&5
26304 echo $ECHO_N "checking for declarations.h... $ECHO_C" >&6; }
26305 if test "${ac_cv_header_declarations_h+set}" = set; then
26306 echo $ECHO_N "(cached) $ECHO_C" >&6
26308 { echo "$as_me:$LINENO: result: $ac_cv_header_declarations_h" >&5
26309 echo "${ECHO_T}$ac_cv_header_declarations_h" >&6; }
26311 # Is the header compilable?
26312 { echo "$as_me:$LINENO: checking declarations.h usability" >&5
26313 echo $ECHO_N "checking declarations.h usability... $ECHO_C" >&6; }
26314 cat >conftest.$ac_ext <<_ACEOF
26317 cat confdefs.h >>conftest.$ac_ext
26318 cat >>conftest.$ac_ext <<_ACEOF
26319 /* end confdefs.h. */
26320 $ac_includes_default
26321 #include <declarations.h>
26323 rm -f conftest.$ac_objext
26324 if { (ac_try="$ac_compile"
26325 case "(($ac_try" in
26326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26327 *) ac_try_echo=$ac_try;;
26329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26330 (eval "$ac_compile") 2>conftest.er1
26332 grep -v '^ *+' conftest.er1 >conftest.err
26334 cat conftest.err >&5
26335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26336 (exit $ac_status); } && {
26337 test -z "$ac_c_werror_flag" ||
26338 test ! -s conftest.err
26339 } && test -s conftest.$ac_objext; then
26340 ac_header_compiler=yes
26342 echo "$as_me: failed program was:" >&5
26343 sed 's/^/| /' conftest.$ac_ext >&5
26345 ac_header_compiler=no
26348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26349 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26350 echo "${ECHO_T}$ac_header_compiler" >&6; }
26352 # Is the header present?
26353 { echo "$as_me:$LINENO: checking declarations.h presence" >&5
26354 echo $ECHO_N "checking declarations.h presence... $ECHO_C" >&6; }
26355 cat >conftest.$ac_ext <<_ACEOF
26358 cat confdefs.h >>conftest.$ac_ext
26359 cat >>conftest.$ac_ext <<_ACEOF
26360 /* end confdefs.h. */
26361 #include <declarations.h>
26363 if { (ac_try="$ac_cpp conftest.$ac_ext"
26364 case "(($ac_try" in
26365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26366 *) ac_try_echo=$ac_try;;
26368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26369 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26371 grep -v '^ *+' conftest.er1 >conftest.err
26373 cat conftest.err >&5
26374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26375 (exit $ac_status); } >/dev/null && {
26376 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26377 test ! -s conftest.err
26379 ac_header_preproc=yes
26381 echo "$as_me: failed program was:" >&5
26382 sed 's/^/| /' conftest.$ac_ext >&5
26384 ac_header_preproc=no
26387 rm -f conftest.err conftest.$ac_ext
26388 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26389 echo "${ECHO_T}$ac_header_preproc" >&6; }
26391 # So? What about this header?
26392 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26394 { echo "$as_me:$LINENO: WARNING: declarations.h: accepted by the compiler, rejected by the preprocessor!" >&5
26395 echo "$as_me: WARNING: declarations.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26396 { echo "$as_me:$LINENO: WARNING: declarations.h: proceeding with the compiler's result" >&5
26397 echo "$as_me: WARNING: declarations.h: proceeding with the compiler's result" >&2;}
26398 ac_header_preproc=yes
26401 { echo "$as_me:$LINENO: WARNING: declarations.h: present but cannot be compiled" >&5
26402 echo "$as_me: WARNING: declarations.h: present but cannot be compiled" >&2;}
26403 { echo "$as_me:$LINENO: WARNING: declarations.h: check for missing prerequisite headers?" >&5
26404 echo "$as_me: WARNING: declarations.h: check for missing prerequisite headers?" >&2;}
26405 { echo "$as_me:$LINENO: WARNING: declarations.h: see the Autoconf documentation" >&5
26406 echo "$as_me: WARNING: declarations.h: see the Autoconf documentation" >&2;}
26407 { echo "$as_me:$LINENO: WARNING: declarations.h: section \"Present But Cannot Be Compiled\"" >&5
26408 echo "$as_me: WARNING: declarations.h: section \"Present But Cannot Be Compiled\"" >&2;}
26409 { echo "$as_me:$LINENO: WARNING: declarations.h: proceeding with the preprocessor's result" >&5
26410 echo "$as_me: WARNING: declarations.h: proceeding with the preprocessor's result" >&2;}
26411 { echo "$as_me:$LINENO: WARNING: declarations.h: in the future, the compiler will take precedence" >&5
26412 echo "$as_me: WARNING: declarations.h: in the future, the compiler will take precedence" >&2;}
26414 ## -------------------------------------------------- ##
26415 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
26416 ## -------------------------------------------------- ##
26418 ) | sed "s/^/$as_me: WARNING: /" >&2
26421 { echo "$as_me:$LINENO: checking for declarations.h" >&5
26422 echo $ECHO_N "checking for declarations.h... $ECHO_C" >&6; }
26423 if test "${ac_cv_header_declarations_h+set}" = set; then
26424 echo $ECHO_N "(cached) $ECHO_C" >&6
26426 ac_cv_header_declarations_h=$ac_header_preproc
26428 { echo "$as_me:$LINENO: result: $ac_cv_header_declarations_h" >&5
26429 echo "${ECHO_T}$ac_cv_header_declarations_h" >&6; }
26432 if test $ac_cv_header_declarations_h = yes; then
26439 CPPFLAGS=$CPPFLAGS_SAV
26443 if test "x$csdp_lib = xyes" -a "x$csdp_header = xyes" ; then
26448 if test "x$csdp" = xyes; then
26449 AM_CPPFLAGS="$AM_CPPFLAGS $CSDP_CPPFLAGS"
26450 SIMGRID_DEP="$SIMGRID_DEP $CSDP_LDFLAGS"
26451 { echo "$as_me:$LINENO: result: Found working sdp library." >&5
26452 echo "${ECHO_T}Found working sdp library." >&6; }
26454 cat >>confdefs.h <<\_ACEOF
26459 { echo "$as_me:$LINENO: result: Could not find any working sdp library." >&5
26460 echo "${ECHO_T}Could not find any working sdp library." >&6; }
26463 if test x$csdp != xno; then
26475 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
26476 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
26477 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
26478 echo $ECHO_N "(cached) $ECHO_C" >&6
26480 ac_check_lib_save_LIBS=$LIBS
26482 cat >conftest.$ac_ext <<_ACEOF
26485 cat confdefs.h >>conftest.$ac_ext
26486 cat >>conftest.$ac_ext <<_ACEOF
26487 /* end confdefs.h. */
26489 /* Override any GCC internal prototype to avoid an error.
26490 Use char because int might match the return type of a GCC
26491 builtin and then its argument prototype would still apply. */
26495 char gethostbyname ();
26499 return gethostbyname ();
26504 rm -f conftest.$ac_objext conftest$ac_exeext
26505 if { (ac_try="$ac_link"
26506 case "(($ac_try" in
26507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26508 *) ac_try_echo=$ac_try;;
26510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26511 (eval "$ac_link") 2>conftest.er1
26513 grep -v '^ *+' conftest.er1 >conftest.err
26515 cat conftest.err >&5
26516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26517 (exit $ac_status); } && {
26518 test -z "$ac_c_werror_flag" ||
26519 test ! -s conftest.err
26520 } && test -s conftest$ac_exeext &&
26521 $as_test_x conftest$ac_exeext; then
26522 ac_cv_lib_nsl_gethostbyname=yes
26524 echo "$as_me: failed program was:" >&5
26525 sed 's/^/| /' conftest.$ac_ext >&5
26527 ac_cv_lib_nsl_gethostbyname=no
26530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26531 conftest$ac_exeext conftest.$ac_ext
26532 LIBS=$ac_check_lib_save_LIBS
26534 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
26535 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
26536 if test $ac_cv_lib_nsl_gethostbyname = yes; then
26537 GRAS_DEP="$GRAS_DEP -lnsl"
26540 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
26541 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
26542 if test "${ac_cv_lib_socket_connect+set}" = set; then
26543 echo $ECHO_N "(cached) $ECHO_C" >&6
26545 ac_check_lib_save_LIBS=$LIBS
26546 LIBS="-lsocket $LIBS"
26547 cat >conftest.$ac_ext <<_ACEOF
26550 cat confdefs.h >>conftest.$ac_ext
26551 cat >>conftest.$ac_ext <<_ACEOF
26552 /* end confdefs.h. */
26554 /* Override any GCC internal prototype to avoid an error.
26555 Use char because int might match the return type of a GCC
26556 builtin and then its argument prototype would still apply. */
26569 rm -f conftest.$ac_objext conftest$ac_exeext
26570 if { (ac_try="$ac_link"
26571 case "(($ac_try" in
26572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26573 *) ac_try_echo=$ac_try;;
26575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26576 (eval "$ac_link") 2>conftest.er1
26578 grep -v '^ *+' conftest.er1 >conftest.err
26580 cat conftest.err >&5
26581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26582 (exit $ac_status); } && {
26583 test -z "$ac_c_werror_flag" ||
26584 test ! -s conftest.err
26585 } && test -s conftest$ac_exeext &&
26586 $as_test_x conftest$ac_exeext; then
26587 ac_cv_lib_socket_connect=yes
26589 echo "$as_me: failed program was:" >&5
26590 sed 's/^/| /' conftest.$ac_ext >&5
26592 ac_cv_lib_socket_connect=no
26595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26596 conftest$ac_exeext conftest.$ac_ext
26597 LIBS=$ac_check_lib_save_LIBS
26599 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
26600 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
26601 if test $ac_cv_lib_socket_connect = yes; then
26602 GRAS_DEP="$GRAS_DEP -lsocket"
26606 { echo "$as_me:$LINENO: checking for extra dependencies of libgras" >&5
26607 echo $ECHO_N "checking for extra dependencies of libgras... $ECHO_C" >&6; }
26609 *mingw* ) GRAS_DEP="$GRAS_DEP -lws2_32" ; SIMGRID_DEP="$SIMGRID_DEP -lws2_32";
26610 AM_CPPFLAGS="$AM_CPPFLAGS -DDLL_EXPORT"
26611 cat >>confdefs.h <<\_ACEOF
26612 #define CONTEXT_THREADS 1
26619 if test "x$GRAS_DEP" = x; then
26620 { echo "$as_me:$LINENO: result: none" >&5
26621 echo "${ECHO_T}none" >&6; }
26623 { echo "$as_me:$LINENO: result: $GRAS_DEP" >&5
26624 echo "${ECHO_T}$GRAS_DEP" >&6; }
26628 ##############################################
26629 ## Enhance maintainer mode and SUBST variables
26630 ## (must be placed after any compilation tests since our overprotective flags
26631 ## let some tests fail)
26633 # Check whether we are doing a regular build or a GRAMINE (minimal) one
26634 # Next line is modified by sed when building gramine source tree
26636 if test x$gramine_mode = xyes
26638 USE_MAINTAINER_MODE=no
26640 if test x$gramine_mode != xno; then
26642 GRAMINE_MODE_FALSE='#'
26644 GRAMINE_MODE_TRUE='#'
26645 GRAMINE_MODE_FALSE=
26650 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
26651 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
26652 # Check whether --enable-maintainer-mode was given.
26653 if test "${enable_maintainer_mode+set}" = set; then
26654 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
26656 USE_MAINTAINER_MODE=no
26659 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
26660 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
26661 if test $USE_MAINTAINER_MODE = yes; then
26662 MAINTAINER_MODE_TRUE=
26663 MAINTAINER_MODE_FALSE='#'
26665 MAINTAINER_MODE_TRUE='#'
26666 MAINTAINER_MODE_FALSE=
26669 MAINT=$MAINTAINER_MODE_TRUE
26672 if test x$USE_MAINTAINER_MODE = xyes
26674 # Maintainers have no choice ! I'm a BOFH, and I plainly assume. [Mt]
26675 enable_compile_warnings=yes
26678 # Check whether --enable-compile-warnings was given.
26679 if test "${enable_compile_warnings+set}" = set; then
26680 enableval=$enable_compile_warnings; enable_compile_warnings=$enableval
26682 enable_compile_warnings=no
26686 # Check whether --enable-compile-optimizations was given.
26687 if test "${enable_compile_optimizations+set}" = set; then
26688 enableval=$enable_compile_optimizations; enable_compile_optimizations=$enableval
26690 enable_compile_optimizations=auto
26694 # AC PROG CC tests whether -g is accepted.
26695 # Cool, but it also tries to set -O2 and -g.
26696 # I don't want it with gcc, but -O3 and -g2, and optimization only when asked by user
26699 if test "$CFLAGS" = "-g -O2" ; then
26702 if test "$CXXFLAGS" = "-g -O2" ; then
26705 if test "$GCJFLAGS" = "-g -O2" ; then
26710 if test "x$enable_compile_warnings" = "xyes" ; then
26711 { echo "$as_me:$LINENO: checking the warning flags for this compiler" >&5
26712 echo $ECHO_N "checking the warning flags for this compiler... $ECHO_C" >&6; }
26714 if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
26715 case " $CFLAGS " in
26717 *) warnCFLAGS="-Wall -Wunused" ;;
26720 ## -W is not all that useful. And it cannot be controlled
26721 ## with individual -Wno-xxx flags, unlike -Wall
26723 ##Â -Wformat=2 chokes on the snprintf replacement because the format is passed to real sprintf
26724 ## -Wshadow chokes on try{ try{} } constructs
26725 if test "x$enable_compile_warnings" = "xyes"; then
26726 warnCFLAGS=`echo $warnCFLAGS -Wmissing-prototypes -Wmissing-declarations \
26727 -Wpointer-arith -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings \
26728 -Wno-unused-function -Wno-strict-aliasing \
26731 # -Wno-unused-variable -Wno-unused-label
26734 { echo "$as_me:$LINENO: result: $warnCFLAGS" >&5
26735 echo "${ECHO_T}$warnCFLAGS" >&6; }
26736 # placed before since gcc remembers the last one on conflict
26737 CFLAGS="$warnCFLAGS $CFLAGS"
26740 if test "x$enable_compile_optimizations" = "xyes" ||
26741 test "x$enable_compile_optimizations" = "xauto" ; then
26742 { echo "$as_me:$LINENO: checking the optimization flags for this compiler" >&5
26743 echo $ECHO_N "checking the optimization flags for this compiler... $ECHO_C" >&6; }
26745 if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
26746 case " $CFLAGS " in
26748 *) optCFLAGS="$optCFLAGS -O3" ;;
26750 optCFLAGS="$optCFLAGS -finline-functions -ffast-math -funroll-loops -fno-strict-aliasing"
26752 GCC_VER=`gcc --version | head -n 1 | sed 's/^^0-9*\(^ *\).*$/\1/'`
26753 GCC_VER_MAJ=`echo $GCC_VER | sed 's/^\(.\).*$/\1/'`
26754 if test "x$target_cpu" = "xpowerpc" && test "x$GCC_VER_MAJ" == "x3" ; then
26755 # avoid gcc bug #12828, which apeared in 3.x branch and is fixed in 3.4.0
26756 # but the check would be too complicated to get 3.4.
26757 # Instead, rule out any 3.x compiler.
26759 # Note that the flag didn't exist before gcc 3.0
26760 optCFLAGS="$optCFLAGS -fno-loop-optimize"
26763 { echo "$as_me:$LINENO: result: $optCFLAGS" >&5
26764 echo "${ECHO_T}$optCFLAGS" >&6; }
26765 # Take it only if CFLAGS not explicitly set. Unless the flag was explicitly given
26766 if test "x$cflags_set" != "xyes" ; then
26767 CFLAGS="$optCFLAGS $CFLAGS"
26771 if test x$lt_cv_prog_gnu_ld = xyes ; then
26772 LD_DYNAMIC_FLAGS=-Wl,--export-dynamic
26789 ##############################################
26790 ## Specific mode for build daemons.
26791 ## (they compile the SVN without having the autotools installed)
26792 # Check whether --enable-botbuild was given.
26793 if test "${enable_botbuild+set}" = set; then
26794 enableval=$enable_botbuild; botbuild=$enableval
26799 if test x$botbuild != xno; then
26800 BOTBUILD_MODE_TRUE=
26801 BOTBUILD_MODE_FALSE='#'
26803 BOTBUILD_MODE_TRUE='#'
26804 BOTBUILD_MODE_FALSE=
26808 if test -e .svn && test x$USE_MAINTAINER_MODE != xyes && test x$botbuild != xyes ; then
26810 echo "ERROR: You have to enable the maintainer mode to compile the SVN."
26811 echo "ERROR: For this, just call configure this way:"
26813 echo "ERROR: ./configure '--enable-maintainer-mode' $ac_configure_args"
26820 { echo "$as_me:$LINENO: result: " >&5
26821 echo "${ECHO_T}" >&6; }
26822 { echo "$as_me:$LINENO: result: ${T_MD}Check for Java bindings...${T_ME}" >&5
26823 echo "${ECHO_T}${T_MD}Check for Java bindings...${T_ME}" >&6; }
26826 # Check whether --enable-java was given.
26827 if test "${enable_java+set}" = set; then
26828 enableval=$enable_java; disable_java=$enableval
26833 if test "x$disable_java" != "xyes" ; then
26834 use_java="disabled by user"
26836 # Extract the first word of "javac", so it can be a program name with args.
26837 set dummy javac; ac_word=$2
26838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26840 if test "${ac_cv_path_JAVAC+set}" = set; then
26841 echo $ECHO_N "(cached) $ECHO_C" >&6
26845 ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
26848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26849 for as_dir in $PATH
26852 test -z "$as_dir" && as_dir=.
26853 for ac_exec_ext in '' $ac_executable_extensions; do
26854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26855 ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext"
26856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26863 test -z "$ac_cv_path_JAVAC" && ac_cv_path_JAVAC="`which javac`"
26867 JAVAC=$ac_cv_path_JAVAC
26868 if test -n "$JAVAC"; then
26869 { echo "$as_me:$LINENO: result: $JAVAC" >&5
26870 echo "${ECHO_T}$JAVAC" >&6; }
26872 { echo "$as_me:$LINENO: result: no" >&5
26873 echo "${ECHO_T}no" >&6; }
26877 # Extract the first word of "java ", so it can be a program name with args.
26878 set dummy java ; ac_word=$2
26879 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26881 if test "${ac_cv_path_JAVA+set}" = set; then
26882 echo $ECHO_N "(cached) $ECHO_C" >&6
26886 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.
26889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26890 for as_dir in $PATH
26893 test -z "$as_dir" && as_dir=.
26894 for ac_exec_ext in '' $ac_executable_extensions; do
26895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26896 ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext"
26897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26904 test -z "$ac_cv_path_JAVA" && ac_cv_path_JAVA="`which java`"
26908 JAVA=$ac_cv_path_JAVA
26909 if test -n "$JAVA"; then
26910 { echo "$as_me:$LINENO: result: $JAVA" >&5
26911 echo "${ECHO_T}$JAVA" >&6; }
26913 { echo "$as_me:$LINENO: result: no" >&5
26914 echo "${ECHO_T}no" >&6; }
26918 # Extract the first word of "jar ", so it can be a program name with args.
26919 set dummy jar ; ac_word=$2
26920 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26922 if test "${ac_cv_path_JAR+set}" = set; then
26923 echo $ECHO_N "(cached) $ECHO_C" >&6
26927 ac_cv_path_JAR="$JAR" # Let the user override the test with a path.
26930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26931 for as_dir in $PATH
26934 test -z "$as_dir" && as_dir=.
26935 for ac_exec_ext in '' $ac_executable_extensions; do
26936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26937 ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext"
26938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26945 test -z "$ac_cv_path_JAR" && ac_cv_path_JAR="`which jar`"
26949 JAR=$ac_cv_path_JAR
26950 if test -n "$JAR"; then
26951 { echo "$as_me:$LINENO: result: $JAR" >&5
26952 echo "${ECHO_T}$JAR" >&6; }
26954 { echo "$as_me:$LINENO: result: no" >&5
26955 echo "${ECHO_T}no" >&6; }
26960 for ac_header in jni.h
26962 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26963 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26964 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26967 echo $ECHO_N "(cached) $ECHO_C" >&6
26969 ac_res=`eval echo '${'$as_ac_Header'}'`
26970 { echo "$as_me:$LINENO: result: $ac_res" >&5
26971 echo "${ECHO_T}$ac_res" >&6; }
26973 # Is the header compilable?
26974 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26975 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26976 cat >conftest.$ac_ext <<_ACEOF
26979 cat confdefs.h >>conftest.$ac_ext
26980 cat >>conftest.$ac_ext <<_ACEOF
26981 /* end confdefs.h. */
26982 $ac_includes_default
26983 #include <$ac_header>
26985 rm -f conftest.$ac_objext
26986 if { (ac_try="$ac_compile"
26987 case "(($ac_try" in
26988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26989 *) ac_try_echo=$ac_try;;
26991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26992 (eval "$ac_compile") 2>conftest.er1
26994 grep -v '^ *+' conftest.er1 >conftest.err
26996 cat conftest.err >&5
26997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26998 (exit $ac_status); } && {
26999 test -z "$ac_c_werror_flag" ||
27000 test ! -s conftest.err
27001 } && test -s conftest.$ac_objext; then
27002 ac_header_compiler=yes
27004 echo "$as_me: failed program was:" >&5
27005 sed 's/^/| /' conftest.$ac_ext >&5
27007 ac_header_compiler=no
27010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27011 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27012 echo "${ECHO_T}$ac_header_compiler" >&6; }
27014 # Is the header present?
27015 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27016 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27017 cat >conftest.$ac_ext <<_ACEOF
27020 cat confdefs.h >>conftest.$ac_ext
27021 cat >>conftest.$ac_ext <<_ACEOF
27022 /* end confdefs.h. */
27023 #include <$ac_header>
27025 if { (ac_try="$ac_cpp conftest.$ac_ext"
27026 case "(($ac_try" in
27027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27028 *) ac_try_echo=$ac_try;;
27030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27031 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27033 grep -v '^ *+' conftest.er1 >conftest.err
27035 cat conftest.err >&5
27036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27037 (exit $ac_status); } >/dev/null && {
27038 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27039 test ! -s conftest.err
27041 ac_header_preproc=yes
27043 echo "$as_me: failed program was:" >&5
27044 sed 's/^/| /' conftest.$ac_ext >&5
27046 ac_header_preproc=no
27049 rm -f conftest.err conftest.$ac_ext
27050 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27051 echo "${ECHO_T}$ac_header_preproc" >&6; }
27053 # So? What about this header?
27054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27056 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27057 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27059 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27060 ac_header_preproc=yes
27063 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27064 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27065 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27066 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27067 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27068 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27069 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27070 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27071 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27072 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27073 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27074 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27076 ## -------------------------------------------------- ##
27077 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
27078 ## -------------------------------------------------- ##
27080 ) | sed "s/^/$as_me: WARNING: /" >&2
27083 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27086 echo $ECHO_N "(cached) $ECHO_C" >&6
27088 eval "$as_ac_Header=\$ac_header_preproc"
27090 ac_res=`eval echo '${'$as_ac_Header'}'`
27091 { echo "$as_me:$LINENO: result: $ac_res" >&5
27092 echo "${ECHO_T}$ac_res" >&6; }
27095 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27096 cat >>confdefs.h <<_ACEOF
27097 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27104 if test -n "$JAVAC" \
27105 && test -n "$JAVA" \
27106 && test -n "$JAR" \
27107 && test "x$ac_cv_header_jni_h" = "xyes" ; then
27111 cat >>confdefs.h <<\_ACEOF
27112 #define HAVE_JAVA 1
27119 { echo "$as_me:$LINENO: result: decide whether to compile java bindings... $use_java" >&5
27120 echo "${ECHO_T}decide whether to compile java bindings... $use_java" >&6; }
27121 if test "x$use_java" = "xyes"; then
27123 HAVE_JAVA_FALSE='#'
27131 #####################
27132 ## Check for programs
27136 { echo "$as_me:$LINENO: result: " >&5
27137 echo "${ECHO_T}" >&6; }
27138 { echo "$as_me:$LINENO: result: ${T_MD}Check for programs...${T_ME}" >&5
27139 echo "${ECHO_T}${T_MD}Check for programs...${T_ME}" >&6; }
27141 # Extract the first word of "bash", so it can be a program name with args.
27142 set dummy bash; ac_word=$2
27143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27145 if test "${ac_cv_prog_BASH+set}" = set; then
27146 echo $ECHO_N "(cached) $ECHO_C" >&6
27148 if test -n "$BASH"; then
27149 ac_cv_prog_BASH="$BASH" # Let the user override the test.
27151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27152 for as_dir in $PATH
27155 test -z "$as_dir" && as_dir=.
27156 for ac_exec_ext in '' $ac_executable_extensions; do
27157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27158 ac_cv_prog_BASH="`which bash`"
27159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27166 test -z "$ac_cv_prog_BASH" && ac_cv_prog_BASH="/bin/sh"
27169 BASH=$ac_cv_prog_BASH
27170 if test -n "$BASH"; then
27171 { echo "$as_me:$LINENO: result: $BASH" >&5
27172 echo "${ECHO_T}$BASH" >&6; }
27174 { echo "$as_me:$LINENO: result: no" >&5
27175 echo "${ECHO_T}no" >&6; }
27179 WARNING="This file is generated, do not edit"
27183 # Can we rebuild the parsers?
27184 # We really want flex and refuse other lex. So, the parser is portable and
27185 # does not induce extra lib dependency
27186 for ac_prog in flex lex
27188 # Extract the first word of "$ac_prog", so it can be a program name with args.
27189 set dummy $ac_prog; ac_word=$2
27190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27192 if test "${ac_cv_prog_LEX+set}" = set; then
27193 echo $ECHO_N "(cached) $ECHO_C" >&6
27195 if test -n "$LEX"; then
27196 ac_cv_prog_LEX="$LEX" # Let the user override the test.
27198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27199 for as_dir in $PATH
27202 test -z "$as_dir" && as_dir=.
27203 for ac_exec_ext in '' $ac_executable_extensions; do
27204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27205 ac_cv_prog_LEX="$ac_prog"
27206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27215 LEX=$ac_cv_prog_LEX
27216 if test -n "$LEX"; then
27217 { echo "$as_me:$LINENO: result: $LEX" >&5
27218 echo "${ECHO_T}$LEX" >&6; }
27220 { echo "$as_me:$LINENO: result: no" >&5
27221 echo "${ECHO_T}no" >&6; }
27225 test -n "$LEX" && break
27227 test -n "$LEX" || LEX=":"
27229 if test "x$LEX" != "x:"; then
27230 cat >conftest.l <<_ACEOF
27236 e { yyless (input () != 0); }
27237 f { unput (yytext[0]); }
27238 . { BEGIN INITIAL; }
27240 #ifdef YYTEXT_POINTER
27241 extern char *yytext;
27246 return ! yylex () + ! yywrap ();
27249 { (ac_try="$LEX conftest.l"
27250 case "(($ac_try" in
27251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27252 *) ac_try_echo=$ac_try;;
27254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27255 (eval "$LEX conftest.l") 2>&5
27257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27258 (exit $ac_status); }
27259 { echo "$as_me:$LINENO: checking lex output file root" >&5
27260 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
27261 if test "${ac_cv_prog_lex_root+set}" = set; then
27262 echo $ECHO_N "(cached) $ECHO_C" >&6
27265 if test -f lex.yy.c; then
27266 ac_cv_prog_lex_root=lex.yy
27267 elif test -f lexyy.c; then
27268 ac_cv_prog_lex_root=lexyy
27270 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
27271 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
27272 { (exit 1); exit 1; }; }
27275 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
27276 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
27277 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
27279 if test -z "${LEXLIB+set}"; then
27280 { echo "$as_me:$LINENO: checking lex library" >&5
27281 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
27282 if test "${ac_cv_lib_lex+set}" = set; then
27283 echo $ECHO_N "(cached) $ECHO_C" >&6
27287 ac_cv_lib_lex='none needed'
27288 for ac_lib in '' -lfl -ll; do
27289 LIBS="$ac_lib $ac_save_LIBS"
27290 cat >conftest.$ac_ext <<_ACEOF
27291 `cat $LEX_OUTPUT_ROOT.c`
27293 rm -f conftest.$ac_objext conftest$ac_exeext
27294 if { (ac_try="$ac_link"
27295 case "(($ac_try" in
27296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27297 *) ac_try_echo=$ac_try;;
27299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27300 (eval "$ac_link") 2>conftest.er1
27302 grep -v '^ *+' conftest.er1 >conftest.err
27304 cat conftest.err >&5
27305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27306 (exit $ac_status); } && {
27307 test -z "$ac_c_werror_flag" ||
27308 test ! -s conftest.err
27309 } && test -s conftest$ac_exeext &&
27310 $as_test_x conftest$ac_exeext; then
27311 ac_cv_lib_lex=$ac_lib
27313 echo "$as_me: failed program was:" >&5
27314 sed 's/^/| /' conftest.$ac_ext >&5
27319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27320 conftest$ac_exeext conftest.$ac_ext
27321 test "$ac_cv_lib_lex" != 'none needed' && break
27326 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
27327 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
27328 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
27332 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
27333 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
27334 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
27335 echo $ECHO_N "(cached) $ECHO_C" >&6
27337 # POSIX says lex can declare yytext either as a pointer or an array; the
27338 # default is implementation-dependent. Figure out which it is, since
27339 # not all implementations provide the %pointer and %array declarations.
27340 ac_cv_prog_lex_yytext_pointer=no
27342 LIBS="$LEXLIB $ac_save_LIBS"
27343 cat >conftest.$ac_ext <<_ACEOF
27344 #define YYTEXT_POINTER 1
27345 `cat $LEX_OUTPUT_ROOT.c`
27347 rm -f conftest.$ac_objext conftest$ac_exeext
27348 if { (ac_try="$ac_link"
27349 case "(($ac_try" in
27350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27351 *) ac_try_echo=$ac_try;;
27353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27354 (eval "$ac_link") 2>conftest.er1
27356 grep -v '^ *+' conftest.er1 >conftest.err
27358 cat conftest.err >&5
27359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27360 (exit $ac_status); } && {
27361 test -z "$ac_c_werror_flag" ||
27362 test ! -s conftest.err
27363 } && test -s conftest$ac_exeext &&
27364 $as_test_x conftest$ac_exeext; then
27365 ac_cv_prog_lex_yytext_pointer=yes
27367 echo "$as_me: failed program was:" >&5
27368 sed 's/^/| /' conftest.$ac_ext >&5
27373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27374 conftest$ac_exeext conftest.$ac_ext
27378 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
27379 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
27380 if test $ac_cv_prog_lex_yytext_pointer = yes; then
27382 cat >>confdefs.h <<\_ACEOF
27383 #define YYTEXT_POINTER 1
27387 rm -f conftest.l $LEX_OUTPUT_ROOT.c
27391 if test "$LEX" != flex; then
27392 { echo "$as_me:$LINENO: Flex not found. Parsers won't get updated." >&5
27393 echo "$as_me: Flex not found. Parsers won't get updated." >&6;}
27394 LEX=${am_missing_run}flex
27398 if test "x2.5.30" != "x" ; then
27399 FLEX_VERSION=`flex --version | sed -e 's/^[^0-9]*//' -e 's/[^0-9]*$//'`
27401 FLEX_VER_MAJ=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
27402 FLEX_VER_MED=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
27403 FLEX_VER_MIN=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
27405 WANT_VER_MAJ=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`;
27406 WANT_VER_MED=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`;
27407 WANT_VER_MIN=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`;
27409 if test "$FLEX_VER_MAJ" -lt "$WANT_VER_MAJ" ||
27410 test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -lt "$WANT_VER_MED" ||
27411 test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -eq "$WANT_VER_MED" -a "$FLEX_VER_MIN" -lt "$WANT_VER_MIN" ;
27413 { echo "$as_me:$LINENO: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&5
27414 echo "$as_me: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&6;}
27415 LEX=${am_missing_run}flex
27419 { echo "$as_me:$LINENO: Flex found. Parsers will get updated" >&5
27420 echo "$as_me: Flex found. Parsers will get updated" >&6;}
27426 # Can we rebuild the xml-lexers from the XML specification?
27427 # if not, simply touch the flex source files (which are distributed in
27428 # tarballs even if generated by flexml) and hope for the best.
27429 # Extract the first word of "flexml", so it can be a program name with args.
27430 set dummy flexml; ac_word=$2
27431 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27433 if test "${ac_cv_prog_FLEXML+set}" = set; then
27434 echo $ECHO_N "(cached) $ECHO_C" >&6
27436 if test -n "$FLEXML"; then
27437 ac_cv_prog_FLEXML="$FLEXML" # Let the user override the test.
27439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27440 for as_dir in $PATH
27443 test -z "$as_dir" && as_dir=.
27444 for ac_exec_ext in '' $ac_executable_extensions; do
27445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27446 ac_cv_prog_FLEXML="`which flexml`"
27447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27454 test -z "$ac_cv_prog_FLEXML" && ac_cv_prog_FLEXML="NOTFOUND"
27457 FLEXML=$ac_cv_prog_FLEXML
27458 if test -n "$FLEXML"; then
27459 { echo "$as_me:$LINENO: result: $FLEXML" >&5
27460 echo "${ECHO_T}$FLEXML" >&6; }
27462 { echo "$as_me:$LINENO: result: no" >&5
27463 echo "${ECHO_T}no" >&6; }
27467 if test x$FLEXML != xNOTFOUND; then
27469 HAVE_FLEXML_FALSE='#'
27471 HAVE_FLEXML_TRUE='#'
27476 if test x$USE_MAINTAINER_MODE = xyes
27478 # Check for doxygen when in maintainer mode since dist* targets fail
27480 # Extract the first word of "doxygen", so it can be a program name with args.
27481 set dummy doxygen; ac_word=$2
27482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27484 if test "${ac_cv_path_DOXYGEN+set}" = set; then
27485 echo $ECHO_N "(cached) $ECHO_C" >&6
27489 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
27492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27493 for as_dir in $PATH
27496 test -z "$as_dir" && as_dir=.
27497 for ac_exec_ext in '' $ac_executable_extensions; do
27498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27499 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
27500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27507 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="`which doxygen`"
27511 DOXYGEN=$ac_cv_path_DOXYGEN
27512 if test -n "$DOXYGEN"; then
27513 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
27514 echo "${ECHO_T}$DOXYGEN" >&6; }
27516 { echo "$as_me:$LINENO: result: no" >&5
27517 echo "${ECHO_T}no" >&6; }
27521 if test x$DOXYGEN = x ; then
27522 { { echo "$as_me:$LINENO: error: doxygen is mandatory in maintainer mode" >&5
27523 echo "$as_me: error: doxygen is mandatory in maintainer mode" >&2;}
27524 { (exit 1); exit 1; }; }
27528 # Can we extract really usable backtraces? (also need the popen function)
27529 # Extract the first word of "addr2line", so it can be a program name with args.
27530 set dummy addr2line; ac_word=$2
27531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27533 if test "${ac_cv_path_ADDR2LINE+set}" = set; then
27534 echo $ECHO_N "(cached) $ECHO_C" >&6
27538 ac_cv_path_ADDR2LINE="$ADDR2LINE" # Let the user override the test with a path.
27541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27542 for as_dir in $PATH
27545 test -z "$as_dir" && as_dir=.
27546 for ac_exec_ext in '' $ac_executable_extensions; do
27547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27548 ac_cv_path_ADDR2LINE="$as_dir/$ac_word$ac_exec_ext"
27549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27559 ADDR2LINE=$ac_cv_path_ADDR2LINE
27560 if test -n "$ADDR2LINE"; then
27561 { echo "$as_me:$LINENO: result: $ADDR2LINE" >&5
27562 echo "${ECHO_T}$ADDR2LINE" >&6; }
27564 { echo "$as_me:$LINENO: result: no" >&5
27565 echo "${ECHO_T}no" >&6; }
27569 if test x$ADDR2LINE != x ; then
27571 cat >>confdefs.h <<_ACEOF
27572 #define ADDR2LINE "$ADDR2LINE"
27579 cat >>confdefs.h <<_ACEOF
27580 #define AC_CONFIGURE_ARGS "$ac_configure_args"
27583 # Can we make status line about the compilation result?
27584 build_id="$PACKAGE ver=$VERSION args=\"$ac_configure_args\""
27587 ###################
27588 ## Makes the output
27593 # examples/gras/chord/Makefile examples/gras/chord/test_sg examples/gras/chord/test_rl
27594 # src/amok/Makefile
27597 { echo "$as_me:$LINENO: result: " >&5
27598 echo "${ECHO_T}" >&6; }
27599 { echo "$as_me:$LINENO: result: ${T_MD}Generating files...${T_ME}" >&5
27600 echo "${ECHO_T}${T_MD}Generating files...${T_ME}" >&6; }
27603 # Core of the libraries
27605 ac_config_files="$ac_config_files Makefile include/Makefile src/Makefile src/context_sysv_config.h"
27608 # Tools being embeeded in gramine (stub generator)
27609 ac_config_files="$ac_config_files tools/Makefile tools/gras/Makefile tools/tesh/Makefile"
27613 # GRAMINE_CUT_BEGIN
27615 # Tools NOT being embeeded in gramine
27616 ac_config_files="$ac_config_files tools/graspe-slave"
27621 ac_config_files="$ac_config_files testsuite/Makefile testsuite/run_tests"
27624 # Teshsuite (testsuite using tesh)
27625 ac_config_files="$ac_config_files teshsuite/Makefile"
27629 ac_config_files="$ac_config_files doc/Makefile doc/Doxyfile"
27634 # examples/gras/p2p/Makefile
27635 # examples/gras/p2p/chord/Makefile
27636 # examples/gras/p2p/can/Makefile
27638 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"
27641 ac_config_files="$ac_config_files examples/Makefile examples/msg/Makefile examples/simdag/Makefile 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/properties/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"
27644 ac_config_files="$ac_config_files src/smpi/smpicc src/smpi/smpirun"
27649 cat >confcache <<\_ACEOF
27650 # This file is a shell script that caches the results of configure
27651 # tests run on this system so they can be shared between configure
27652 # scripts and configure runs, see configure's option --config-cache.
27653 # It is not useful on other systems. If it contains results you don't
27654 # want to keep, you may remove or edit it.
27656 # config.status only pays attention to the cache file if you give it
27657 # the --recheck option to rerun configure.
27659 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27660 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27661 # following values.
27665 # The following way of writing the cache mishandles newlines in values,
27666 # but we know of no workaround that is simple, portable, and efficient.
27667 # So, we kill variables containing newlines.
27668 # Ultrix sh set writes to stderr and can't be redirected directly,
27669 # and sets the high bit in the cache file unless we assign to the vars.
27671 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27672 eval ac_val=\$$ac_var
27676 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27677 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27680 _ | IFS | as_nl) ;; #(
27681 *) $as_unset $ac_var ;;
27687 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27688 *${as_nl}ac_space=\ *)
27689 # `set' does not quote correctly, so add quotes (double-quote
27690 # substitution turns \\\\ into \\, and sed turns \\ into \).
27693 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27696 # `set' quotes correctly as required by POSIX, so do not add quotes.
27697 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27706 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27708 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27710 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27711 if test -w "$cache_file"; then
27712 test "x$cache_file" != "x/dev/null" &&
27713 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
27714 echo "$as_me: updating cache $cache_file" >&6;}
27715 cat confcache >$cache_file
27717 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27718 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27723 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27724 # Let make expand exec_prefix.
27725 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27727 DEFS=-DHAVE_CONFIG_H
27731 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27732 # 1. Remove the extension, and $U if already installed.
27733 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27734 ac_i=`echo "$ac_i" | sed "$ac_script"`
27735 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27736 # will be set to the directory where LIBOBJS objects are built.
27737 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27738 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
27740 LIBOBJS=$ac_libobjs
27742 LTLIBOBJS=$ac_ltlibobjs
27745 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27746 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
27747 Usually this means the macro was only invoked conditionally." >&5
27748 echo "$as_me: error: conditional \"AMDEP\" was never defined.
27749 Usually this means the macro was only invoked conditionally." >&2;}
27750 { (exit 1); exit 1; }; }
27752 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
27753 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
27754 Usually this means the macro was only invoked conditionally." >&5
27755 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
27756 Usually this means the macro was only invoked conditionally." >&2;}
27757 { (exit 1); exit 1; }; }
27759 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27760 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27761 Usually this means the macro was only invoked conditionally." >&5
27762 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27763 Usually this means the macro was only invoked conditionally." >&2;}
27764 { (exit 1); exit 1; }; }
27766 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27767 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
27768 Usually this means the macro was only invoked conditionally." >&5
27769 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
27770 Usually this means the macro was only invoked conditionally." >&2;}
27771 { (exit 1); exit 1; }; }
27773 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27774 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27775 Usually this means the macro was only invoked conditionally." >&5
27776 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27777 Usually this means the macro was only invoked conditionally." >&2;}
27778 { (exit 1); exit 1; }; }
27780 if test -z "${GRAS_ARCH_32_BITS_TRUE}" && test -z "${GRAS_ARCH_32_BITS_FALSE}"; then
27781 { { echo "$as_me:$LINENO: error: conditional \"GRAS_ARCH_32_BITS\" was never defined.
27782 Usually this means the macro was only invoked conditionally." >&5
27783 echo "$as_me: error: conditional \"GRAS_ARCH_32_BITS\" was never defined.
27784 Usually this means the macro was only invoked conditionally." >&2;}
27785 { (exit 1); exit 1; }; }
27787 if test -z "${IS_WINDOWS_TRUE}" && test -z "${IS_WINDOWS_FALSE}"; then
27788 { { echo "$as_me:$LINENO: error: conditional \"IS_WINDOWS\" was never defined.
27789 Usually this means the macro was only invoked conditionally." >&5
27790 echo "$as_me: error: conditional \"IS_WINDOWS\" was never defined.
27791 Usually this means the macro was only invoked conditionally." >&2;}
27792 { (exit 1); exit 1; }; }
27794 if test -z "${CONTEXT_THREADS_TRUE}" && test -z "${CONTEXT_THREADS_FALSE}"; then
27795 { { echo "$as_me:$LINENO: error: conditional \"CONTEXT_THREADS\" was never defined.
27796 Usually this means the macro was only invoked conditionally." >&5
27797 echo "$as_me: error: conditional \"CONTEXT_THREADS\" was never defined.
27798 Usually this means the macro was only invoked conditionally." >&2;}
27799 { (exit 1); exit 1; }; }
27801 if test -z "${HAVE_GTNETS_TRUE}" && test -z "${HAVE_GTNETS_FALSE}"; then
27802 { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTNETS\" was never defined.
27803 Usually this means the macro was only invoked conditionally." >&5
27804 echo "$as_me: error: conditional \"HAVE_GTNETS\" was never defined.
27805 Usually this means the macro was only invoked conditionally." >&2;}
27806 { (exit 1); exit 1; }; }
27808 if test -z "${HAVE_SDP_TRUE}" && test -z "${HAVE_SDP_FALSE}"; then
27809 { { echo "$as_me:$LINENO: error: conditional \"HAVE_SDP\" was never defined.
27810 Usually this means the macro was only invoked conditionally." >&5
27811 echo "$as_me: error: conditional \"HAVE_SDP\" was never defined.
27812 Usually this means the macro was only invoked conditionally." >&2;}
27813 { (exit 1); exit 1; }; }
27815 if test -z "${GRAMINE_MODE_TRUE}" && test -z "${GRAMINE_MODE_FALSE}"; then
27816 { { echo "$as_me:$LINENO: error: conditional \"GRAMINE_MODE\" was never defined.
27817 Usually this means the macro was only invoked conditionally." >&5
27818 echo "$as_me: error: conditional \"GRAMINE_MODE\" was never defined.
27819 Usually this means the macro was only invoked conditionally." >&2;}
27820 { (exit 1); exit 1; }; }
27822 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
27823 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
27824 Usually this means the macro was only invoked conditionally." >&5
27825 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
27826 Usually this means the macro was only invoked conditionally." >&2;}
27827 { (exit 1); exit 1; }; }
27829 if test -z "${BOTBUILD_MODE_TRUE}" && test -z "${BOTBUILD_MODE_FALSE}"; then
27830 { { echo "$as_me:$LINENO: error: conditional \"BOTBUILD_MODE\" was never defined.
27831 Usually this means the macro was only invoked conditionally." >&5
27832 echo "$as_me: error: conditional \"BOTBUILD_MODE\" was never defined.
27833 Usually this means the macro was only invoked conditionally." >&2;}
27834 { (exit 1); exit 1; }; }
27836 if test -z "${HAVE_JAVA_TRUE}" && test -z "${HAVE_JAVA_FALSE}"; then
27837 { { echo "$as_me:$LINENO: error: conditional \"HAVE_JAVA\" was never defined.
27838 Usually this means the macro was only invoked conditionally." >&5
27839 echo "$as_me: error: conditional \"HAVE_JAVA\" was never defined.
27840 Usually this means the macro was only invoked conditionally." >&2;}
27841 { (exit 1); exit 1; }; }
27843 if test -z "${HAVE_FLEXML_TRUE}" && test -z "${HAVE_FLEXML_FALSE}"; then
27844 { { echo "$as_me:$LINENO: error: conditional \"HAVE_FLEXML\" was never defined.
27845 Usually this means the macro was only invoked conditionally." >&5
27846 echo "$as_me: error: conditional \"HAVE_FLEXML\" was never defined.
27847 Usually this means the macro was only invoked conditionally." >&2;}
27848 { (exit 1); exit 1; }; }
27851 : ${CONFIG_STATUS=./config.status}
27852 ac_clean_files_save=$ac_clean_files
27853 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27854 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27855 echo "$as_me: creating $CONFIG_STATUS" >&6;}
27856 cat >$CONFIG_STATUS <<_ACEOF
27858 # Generated by $as_me.
27859 # Run this file to recreate the current configuration.
27860 # Compiler output produced by configure, useful for debugging
27861 # configure, is in config.log if it exists.
27864 ac_cs_recheck=false
27866 SHELL=\${CONFIG_SHELL-$SHELL}
27869 cat >>$CONFIG_STATUS <<\_ACEOF
27870 ## --------------------- ##
27871 ## M4sh Initialization. ##
27872 ## --------------------- ##
27874 # Be more Bourne compatible
27875 DUALCASE=1; export DUALCASE # for MKS sh
27876 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27879 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27880 # is contrary to our usage. Disable this feature.
27881 alias -g '${1+"$@"}'='"$@"'
27882 setopt NO_GLOB_SUBST
27884 case `(set -o) 2>/dev/null` in
27885 *posix*) set -o posix ;;
27894 # Avoid depending upon Character Ranges.
27895 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27896 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27897 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27898 as_cr_digits='0123456789'
27899 as_cr_alnum=$as_cr_Letters$as_cr_digits
27901 # The user is always right.
27902 if test "${PATH_SEPARATOR+set}" != set; then
27903 echo "#! /bin/sh" >conf$$.sh
27904 echo "exit 0" >>conf$$.sh
27906 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27914 # Support unset when possible.
27915 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27923 # We need space, tab and new line, in precisely that order. Quoting is
27924 # there to prevent editors from complaining about space-tab.
27925 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27926 # splitting by setting IFS to empty value.)
27931 # Find who we are. Look in the path if we contain no directory separator.
27933 *[\\/]* ) as_myself=$0 ;;
27934 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27935 for as_dir in $PATH
27938 test -z "$as_dir" && as_dir=.
27939 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27945 # We did not find ourselves, most probably we were run as `sh COMMAND'
27946 # in which case we are not to be found in the path.
27947 if test "x$as_myself" = x; then
27950 if test ! -f "$as_myself"; then
27951 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27952 { (exit 1); exit 1; }
27955 # Work around bugs in pre-3.0 UWIN ksh.
27956 for as_var in ENV MAIL MAILPATH
27957 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27965 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27966 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27967 LC_TELEPHONE LC_TIME
27969 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27970 eval $as_var=C; export $as_var
27972 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27976 # Required to use basename.
27977 if expr a : '\(a\)' >/dev/null 2>&1 &&
27978 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27984 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27985 as_basename=basename
27991 # Name of the executable.
27992 as_me=`$as_basename -- "$0" ||
27993 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27994 X"$0" : 'X\(//\)$' \| \
27995 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27997 sed '/^.*\/\([^/][^/]*\)\/*$/{
28016 as_lineno_1=$LINENO
28017 as_lineno_2=$LINENO
28018 test "x$as_lineno_1" != "x$as_lineno_2" &&
28019 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
28021 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
28022 # uniformly replaced by the line number. The first 'sed' inserts a
28023 # line-number line after each line using $LINENO; the second 'sed'
28024 # does the real work. The second script uses 'N' to pair each
28025 # line-number line with the line containing $LINENO, and appends
28026 # trailing '-' during substitution so that $LINENO is not a special
28027 # case at line end.
28028 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
28029 # scripts with optimization help from Paolo Bonzini. Blame Lee
28030 # E. McMahon (1931-1989) for sed's syntax. :-)
28042 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
28045 ' >$as_me.lineno &&
28046 chmod +x "$as_me.lineno" ||
28047 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
28048 { (exit 1); exit 1; }; }
28050 # Don't try to exec as it changes $[0], causing all sort of problems
28051 # (the dirname of $[0] is not the place where we might find the
28052 # original and so on. Autoconf is especially sensitive to this).
28053 . "./$as_me.lineno"
28054 # Exit status is that of the last command.
28059 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28065 ECHO_C= ECHO_N= ECHO_T=
28066 case `echo -n x` in
28068 case `echo 'x\c'` in
28069 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
28076 if expr a : '\(a\)' >/dev/null 2>&1 &&
28077 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28083 rm -f conf$$ conf$$.exe conf$$.file
28084 if test -d conf$$.dir; then
28085 rm -f conf$$.dir/conf$$.file
28091 if ln -s conf$$.file conf$$ 2>/dev/null; then
28093 # ... but there are two gotchas:
28094 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28095 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28096 # In both cases, we have to default to `cp -p'.
28097 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28099 elif ln conf$$.file conf$$ 2>/dev/null; then
28104 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28105 rmdir conf$$.dir 2>/dev/null
28107 if mkdir -p . 2>/dev/null; then
28110 test -d ./-p && rmdir ./-p
28114 if test -x / >/dev/null 2>&1; then
28115 as_test_x='test -x'
28117 if ls -dL / >/dev/null 2>&1; then
28124 if test -d "$1"; then
28130 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
28131 ???[sx]*):;;*)false;;esac;fi
28135 as_executable_p=$as_test_x
28137 # Sed expression to map a string onto a valid CPP name.
28138 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28140 # Sed expression to map a string onto a valid variable name.
28141 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28146 # Save the log message, to keep $[0] and so on meaningful, and to
28147 # report actual input values of CONFIG_FILES etc. instead of their
28148 # values after options handling.
28150 This file was extended by simgrid $as_me 3.3-svn, which was
28151 generated by GNU Autoconf 2.61. Invocation command line was
28153 CONFIG_FILES = $CONFIG_FILES
28154 CONFIG_HEADERS = $CONFIG_HEADERS
28155 CONFIG_LINKS = $CONFIG_LINKS
28156 CONFIG_COMMANDS = $CONFIG_COMMANDS
28159 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28164 cat >>$CONFIG_STATUS <<_ACEOF
28165 # Files that config.status was made for.
28166 config_files="$ac_config_files"
28167 config_headers="$ac_config_headers"
28168 config_commands="$ac_config_commands"
28172 cat >>$CONFIG_STATUS <<\_ACEOF
28174 \`$as_me' instantiates files from templates according to the
28175 current configuration.
28177 Usage: $0 [OPTIONS] [FILE]...
28179 -h, --help print this help, then exit
28180 -V, --version print version number and configuration settings, then exit
28181 -q, --quiet do not print progress messages
28182 -d, --debug don't remove temporary files
28183 --recheck update $as_me by reconfiguring in the same conditions
28184 --file=FILE[:TEMPLATE]
28185 instantiate the configuration file FILE
28186 --header=FILE[:TEMPLATE]
28187 instantiate the configuration header FILE
28189 Configuration files:
28192 Configuration headers:
28195 Configuration commands:
28198 Report bugs to <bug-autoconf@gnu.org>."
28201 cat >>$CONFIG_STATUS <<_ACEOF
28203 simgrid config.status 3.3-svn
28204 configured by $0, generated by GNU Autoconf 2.61,
28205 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28207 Copyright (C) 2006 Free Software Foundation, Inc.
28208 This config.status script is free software; the Free Software Foundation
28209 gives unlimited permission to copy, distribute and modify it."
28217 cat >>$CONFIG_STATUS <<\_ACEOF
28218 # If no file are specified by the user, then we need to provide default
28219 # value. By we need to know if files were specified by the user.
28225 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28226 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28237 # Handling of the options.
28238 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28240 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28241 echo "$ac_cs_version"; exit ;;
28242 --debug | --debu | --deb | --de | --d | -d )
28244 --file | --fil | --fi | --f )
28246 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
28247 ac_need_defaults=false;;
28248 --header | --heade | --head | --hea )
28250 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
28251 ac_need_defaults=false;;
28253 # Conflict between --help and --header
28254 { echo "$as_me: error: ambiguous option: $1
28255 Try \`$0 --help' for more information." >&2
28256 { (exit 1); exit 1; }; };;
28257 --help | --hel | -h )
28258 echo "$ac_cs_usage"; exit ;;
28259 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28260 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28263 # This is an error.
28264 -*) { echo "$as_me: error: unrecognized option: $1
28265 Try \`$0 --help' for more information." >&2
28266 { (exit 1); exit 1; }; } ;;
28268 *) ac_config_targets="$ac_config_targets $1"
28269 ac_need_defaults=false ;;
28275 ac_configure_extra_args=
28277 if $ac_cs_silent; then
28279 ac_configure_extra_args="$ac_configure_extra_args --silent"
28283 cat >>$CONFIG_STATUS <<_ACEOF
28284 if \$ac_cs_recheck; then
28285 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
28286 CONFIG_SHELL=$SHELL
28287 export CONFIG_SHELL
28288 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28292 cat >>$CONFIG_STATUS <<\_ACEOF
28296 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28297 ## Running $as_me. ##
28303 cat >>$CONFIG_STATUS <<_ACEOF
28307 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28311 cat >>$CONFIG_STATUS <<\_ACEOF
28313 # Handling of arguments.
28314 for ac_config_target in $ac_config_targets
28316 case $ac_config_target in
28317 "src/gras_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/gras_config.h" ;;
28318 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
28319 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28320 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
28321 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
28322 "src/context_sysv_config.h") CONFIG_FILES="$CONFIG_FILES src/context_sysv_config.h" ;;
28323 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
28324 "tools/gras/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gras/Makefile" ;;
28325 "tools/tesh/Makefile") CONFIG_FILES="$CONFIG_FILES tools/tesh/Makefile" ;;
28326 "tools/graspe-slave") CONFIG_FILES="$CONFIG_FILES tools/graspe-slave" ;;
28327 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
28328 "testsuite/run_tests") CONFIG_FILES="$CONFIG_FILES testsuite/run_tests" ;;
28329 "teshsuite/Makefile") CONFIG_FILES="$CONFIG_FILES teshsuite/Makefile" ;;
28330 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
28331 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
28332 "examples/java/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/Makefile" ;;
28333 "examples/java/basic/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/basic/Makefile" ;;
28334 "examples/java/comm_time/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/comm_time/Makefile" ;;
28335 "examples/java/suspend/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/suspend/Makefile" ;;
28336 "examples/java/ping_pong/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/ping_pong/Makefile" ;;
28337 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
28338 "examples/msg/Makefile") CONFIG_FILES="$CONFIG_FILES examples/msg/Makefile" ;;
28339 "examples/simdag/Makefile") CONFIG_FILES="$CONFIG_FILES examples/simdag/Makefile" ;;
28340 "examples/gras/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/Makefile" ;;
28341 "examples/gras/ping/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/ping/Makefile" ;;
28342 "examples/gras/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/rpc/Makefile" ;;
28343 "examples/gras/spawn/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/spawn/Makefile" ;;
28344 "examples/gras/synchro/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/synchro/Makefile" ;;
28345 "examples/gras/timer/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/timer/Makefile" ;;
28346 "examples/gras/properties/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/properties/Makefile" ;;
28347 "examples/gras/chrono/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/chrono/Makefile" ;;
28348 "examples/gras/mutual_exclusion/simple_token/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/mutual_exclusion/simple_token/Makefile" ;;
28349 "examples/gras/mmrpc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/mmrpc/Makefile" ;;
28350 "examples/gras/pmm/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/pmm/Makefile" ;;
28351 "examples/gras/all2all/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/all2all/Makefile" ;;
28352 "examples/amok/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/Makefile" ;;
28353 "src/smpi/smpicc") CONFIG_FILES="$CONFIG_FILES src/smpi/smpicc" ;;
28354 "src/smpi/smpirun") CONFIG_FILES="$CONFIG_FILES src/smpi/smpirun" ;;
28356 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
28357 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
28358 { (exit 1); exit 1; }; };;
28363 # If the user did not use the arguments to specify the items to instantiate,
28364 # then the envvar interface is used. Set only those that are not.
28365 # We use the long form for the default assignment because of an extremely
28366 # bizarre bug on SunOS 4.1.3.
28367 if $ac_need_defaults; then
28368 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28369 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28370 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28373 # Have a temporary directory for convenience. Make it in the build tree
28374 # simply because there is no reason against having it here, and in addition,
28375 # creating and moving files from /tmp can sometimes cause problems.
28376 # Hook for its removal unless debugging.
28377 # Note that there is a small window in which the directory will not be cleaned:
28378 # after its creation but before its name has been assigned to `$tmp'.
28382 trap 'exit_status=$?
28383 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28385 trap '{ (exit 1); exit 1; }' 1 2 13 15
28387 # Create a (secure) tmp directory for tmp files.
28390 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28391 test -n "$tmp" && test -d "$tmp"
28394 tmp=./conf$$-$RANDOM
28395 (umask 077 && mkdir "$tmp")
28398 echo "$me: cannot create a temporary directory in ." >&2
28399 { (exit 1); exit 1; }
28403 # Set up the sed scripts for CONFIG_FILES section.
28406 # No need to generate the scripts if there are no CONFIG_FILES.
28407 # This happens for instance when ./config.status config.h
28408 if test -n "$CONFIG_FILES"; then
28415 for ac_last_try in false false false false false :; do
28416 cat >conf$$subs.sed <<_ACEOF
28417 SHELL!$SHELL$ac_delim
28418 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
28419 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
28420 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
28421 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
28422 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
28423 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
28424 exec_prefix!$exec_prefix$ac_delim
28425 prefix!$prefix$ac_delim
28426 program_transform_name!$program_transform_name$ac_delim
28427 bindir!$bindir$ac_delim
28428 sbindir!$sbindir$ac_delim
28429 libexecdir!$libexecdir$ac_delim
28430 datarootdir!$datarootdir$ac_delim
28431 datadir!$datadir$ac_delim
28432 sysconfdir!$sysconfdir$ac_delim
28433 sharedstatedir!$sharedstatedir$ac_delim
28434 localstatedir!$localstatedir$ac_delim
28435 includedir!$includedir$ac_delim
28436 oldincludedir!$oldincludedir$ac_delim
28437 docdir!$docdir$ac_delim
28438 infodir!$infodir$ac_delim
28439 htmldir!$htmldir$ac_delim
28440 dvidir!$dvidir$ac_delim
28441 pdfdir!$pdfdir$ac_delim
28442 psdir!$psdir$ac_delim
28443 libdir!$libdir$ac_delim
28444 localedir!$localedir$ac_delim
28445 mandir!$mandir$ac_delim
28446 DEFS!$DEFS$ac_delim
28447 ECHO_C!$ECHO_C$ac_delim
28448 ECHO_N!$ECHO_N$ac_delim
28449 ECHO_T!$ECHO_T$ac_delim
28450 LIBS!$LIBS$ac_delim
28451 build_alias!$build_alias$ac_delim
28452 host_alias!$host_alias$ac_delim
28453 target_alias!$target_alias$ac_delim
28454 build!$build$ac_delim
28455 build_cpu!$build_cpu$ac_delim
28456 build_vendor!$build_vendor$ac_delim
28457 build_os!$build_os$ac_delim
28458 host!$host$ac_delim
28459 host_cpu!$host_cpu$ac_delim
28460 host_vendor!$host_vendor$ac_delim
28461 host_os!$host_os$ac_delim
28462 target!$target$ac_delim
28463 target_cpu!$target_cpu$ac_delim
28464 target_vendor!$target_vendor$ac_delim
28465 target_os!$target_os$ac_delim
28467 GCJFLAGS!$GCJFLAGS$ac_delim
28468 am__leading_dot!$am__leading_dot$ac_delim
28469 DEPDIR!$DEPDIR$ac_delim
28470 am__include!$am__include$ac_delim
28471 am__quote!$am__quote$ac_delim
28472 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
28473 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
28474 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
28475 GCJDEPMODE!$GCJDEPMODE$ac_delim
28476 am__fastdepGCJ_TRUE!$am__fastdepGCJ_TRUE$ac_delim
28477 am__fastdepGCJ_FALSE!$am__fastdepGCJ_FALSE$ac_delim
28478 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
28479 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
28480 INSTALL_DATA!$INSTALL_DATA$ac_delim
28481 am__isrc!$am__isrc$ac_delim
28482 CYGPATH_W!$CYGPATH_W$ac_delim
28483 PACKAGE!$PACKAGE$ac_delim
28484 VERSION!$VERSION$ac_delim
28485 ACLOCAL!$ACLOCAL$ac_delim
28486 AUTOCONF!$AUTOCONF$ac_delim
28487 AUTOMAKE!$AUTOMAKE$ac_delim
28488 AUTOHEADER!$AUTOHEADER$ac_delim
28489 MAKEINFO!$MAKEINFO$ac_delim
28490 install_sh!$install_sh$ac_delim
28491 STRIP!$STRIP$ac_delim
28492 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
28493 mkdir_p!$mkdir_p$ac_delim
28495 SET_MAKE!$SET_MAKE$ac_delim
28496 AMTAR!$AMTAR$ac_delim
28497 am__tar!$am__tar$ac_delim
28498 am__untar!$am__untar$ac_delim
28500 CFLAGS!$CFLAGS$ac_delim
28501 LDFLAGS!$LDFLAGS$ac_delim
28502 CPPFLAGS!$CPPFLAGS$ac_delim
28503 ac_ct_CC!$ac_ct_CC$ac_delim
28504 EXEEXT!$EXEEXT$ac_delim
28505 OBJEXT!$OBJEXT$ac_delim
28506 CCDEPMODE!$CCDEPMODE$ac_delim
28507 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
28508 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
28510 GREP!$GREP$ac_delim
28511 EGREP!$EGREP$ac_delim
28512 LN_S!$LN_S$ac_delim
28513 ECHO!$ECHO$ac_delim
28516 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
28518 elif $ac_last_try; then
28519 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28520 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28521 { (exit 1); exit 1; }; }
28523 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28527 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28528 if test -n "$ac_eof"; then
28529 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
28530 ac_eof=`expr $ac_eof + 1`
28533 cat >>$CONFIG_STATUS <<_ACEOF
28534 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
28535 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28538 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28539 s/^/s,@/; s/!/@,|#_!!_#|/
28542 s/'"$ac_delim"'$/,g/; t
28544 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28545 ' >>$CONFIG_STATUS <conf$$subs.sed
28546 rm -f conf$$subs.sed
28547 cat >>$CONFIG_STATUS <<_ACEOF
28553 for ac_last_try in false false false false false :; do
28554 cat >conf$$subs.sed <<_ACEOF
28556 RANLIB!$RANLIB$ac_delim
28557 DSYMUTIL!$DSYMUTIL$ac_delim
28558 NMEDIT!$NMEDIT$ac_delim
28559 DLLTOOL!$DLLTOOL$ac_delim
28561 OBJDUMP!$OBJDUMP$ac_delim
28564 CXXFLAGS!$CXXFLAGS$ac_delim
28565 ac_ct_CXX!$ac_ct_CXX$ac_delim
28566 CXXDEPMODE!$CXXDEPMODE$ac_delim
28567 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
28568 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
28569 CXXCPP!$CXXCPP$ac_delim
28570 LIBTOOL!$LIBTOOL$ac_delim
28571 LIBOBJS!$LIBOBJS$ac_delim
28572 GRAS_ARCH_32_BITS_TRUE!$GRAS_ARCH_32_BITS_TRUE$ac_delim
28573 GRAS_ARCH_32_BITS_FALSE!$GRAS_ARCH_32_BITS_FALSE$ac_delim
28574 IS_WINDOWS_TRUE!$IS_WINDOWS_TRUE$ac_delim
28575 IS_WINDOWS_FALSE!$IS_WINDOWS_FALSE$ac_delim
28576 CONTEXT_THREADS_TRUE!$CONTEXT_THREADS_TRUE$ac_delim
28577 CONTEXT_THREADS_FALSE!$CONTEXT_THREADS_FALSE$ac_delim
28578 PTH_STACK_GROWTH!$PTH_STACK_GROWTH$ac_delim
28579 pth_skaddr_makecontext!$pth_skaddr_makecontext$ac_delim
28580 pth_sksize_makecontext!$pth_sksize_makecontext$ac_delim
28581 HAVE_GTNETS_TRUE!$HAVE_GTNETS_TRUE$ac_delim
28582 HAVE_GTNETS_FALSE!$HAVE_GTNETS_FALSE$ac_delim
28583 HAVE_SDP_TRUE!$HAVE_SDP_TRUE$ac_delim
28584 HAVE_SDP_FALSE!$HAVE_SDP_FALSE$ac_delim
28585 SIMGRID_DEP!$SIMGRID_DEP$ac_delim
28586 SMPI_DEP!$SMPI_DEP$ac_delim
28587 GRAS_DEP!$GRAS_DEP$ac_delim
28588 GRAMINE_MODE_TRUE!$GRAMINE_MODE_TRUE$ac_delim
28589 GRAMINE_MODE_FALSE!$GRAMINE_MODE_FALSE$ac_delim
28590 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
28591 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
28592 MAINT!$MAINT$ac_delim
28593 LD_DYNAMIC_FLAGS!$LD_DYNAMIC_FLAGS$ac_delim
28594 AM_CPPFLAGS!$AM_CPPFLAGS$ac_delim
28595 abs_builddir!$abs_builddir$ac_delim
28596 abs_srcdir!$abs_srcdir$ac_delim
28597 abs_top_builddir!$abs_top_builddir$ac_delim
28598 abs_top_srcdir!$abs_top_srcdir$ac_delim
28599 BOTBUILD_MODE_TRUE!$BOTBUILD_MODE_TRUE$ac_delim
28600 BOTBUILD_MODE_FALSE!$BOTBUILD_MODE_FALSE$ac_delim
28601 JAVAC!$JAVAC$ac_delim
28602 JAVA!$JAVA$ac_delim
28604 HAVE_JAVA_TRUE!$HAVE_JAVA_TRUE$ac_delim
28605 HAVE_JAVA_FALSE!$HAVE_JAVA_FALSE$ac_delim
28606 BASH!$BASH$ac_delim
28607 WARNING!$WARNING$ac_delim
28609 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
28610 LEXLIB!$LEXLIB$ac_delim
28611 FLEXML!$FLEXML$ac_delim
28612 HAVE_FLEXML_TRUE!$HAVE_FLEXML_TRUE$ac_delim
28613 HAVE_FLEXML_FALSE!$HAVE_FLEXML_FALSE$ac_delim
28614 DOXYGEN!$DOXYGEN$ac_delim
28615 ADDR2LINE!$ADDR2LINE$ac_delim
28616 ac_configure_args!$ac_configure_args$ac_delim
28617 build_id!$build_id$ac_delim
28618 LTLIBOBJS!$LTLIBOBJS$ac_delim
28621 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 64; then
28623 elif $ac_last_try; then
28624 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28625 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28626 { (exit 1); exit 1; }; }
28628 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28632 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28633 if test -n "$ac_eof"; then
28634 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
28635 ac_eof=`expr $ac_eof + 1`
28638 cat >>$CONFIG_STATUS <<_ACEOF
28639 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
28640 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
28643 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28644 s/^/s,@/; s/!/@,|#_!!_#|/
28647 s/'"$ac_delim"'$/,g/; t
28649 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28650 ' >>$CONFIG_STATUS <conf$$subs.sed
28651 rm -f conf$$subs.sed
28652 cat >>$CONFIG_STATUS <<_ACEOF
28659 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28660 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28661 # trailing colons and then remove the whole line if VPATH becomes empty
28662 # (actually we leave an empty line to preserve line numbers).
28663 if test "x$srcdir" = x.; then
28664 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28665 s/:*\$(srcdir):*/:/
28666 s/:*\${srcdir}:*/:/
28668 s/^\([^=]*=[ ]*\):*/\1/
28674 cat >>$CONFIG_STATUS <<\_ACEOF
28675 fi # test -n "$CONFIG_FILES"
28678 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
28681 :[FHLC]) ac_mode=$ac_tag; continue;;
28683 case $ac_mode$ac_tag in
28685 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
28686 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
28687 { (exit 1); exit 1; }; };;
28688 :[FH]-) ac_tag=-:-;;
28689 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28706 -) ac_f="$tmp/stdin";;
28707 *) # Look for the file first in the build tree, then in the source tree
28708 # (if the path is not absolute). The absolute path cannot be DOS-style,
28709 # because $ac_f cannot contain `:'.
28713 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28715 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
28716 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
28717 { (exit 1); exit 1; }; };;
28719 ac_file_inputs="$ac_file_inputs $ac_f"
28722 # Let's still pretend it is `configure' which instantiates (i.e., don't
28723 # use $as_me), people would be surprised to read:
28724 # /* config.h. Generated by config.status. */
28725 configure_input="Generated from "`IFS=:
28726 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
28727 if test x"$ac_file" != x-; then
28728 configure_input="$ac_file. $configure_input"
28729 { echo "$as_me:$LINENO: creating $ac_file" >&5
28730 echo "$as_me: creating $ac_file" >&6;}
28734 *:-:* | *:-) cat >"$tmp/stdin";;
28739 ac_dir=`$as_dirname -- "$ac_file" ||
28740 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28741 X"$ac_file" : 'X\(//\)[^/]' \| \
28742 X"$ac_file" : 'X\(//\)$' \| \
28743 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28745 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28749 /^X\(\/\/\)[^/].*/{
28764 -*) as_dir=./$as_dir;;
28766 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
28770 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
28771 *) as_qdir=$as_dir;;
28773 as_dirs="'$as_qdir' $as_dirs"
28774 as_dir=`$as_dirname -- "$as_dir" ||
28775 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28776 X"$as_dir" : 'X\(//\)[^/]' \| \
28777 X"$as_dir" : 'X\(//\)$' \| \
28778 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28780 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28784 /^X\(\/\/\)[^/].*/{
28797 test -d "$as_dir" && break
28799 test -z "$as_dirs" || eval "mkdir $as_dirs"
28800 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28801 echo "$as_me: error: cannot create directory $as_dir" >&2;}
28802 { (exit 1); exit 1; }; }; }
28806 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28808 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28809 # A ".." for each directory in $ac_dir_suffix.
28810 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
28811 case $ac_top_builddir_sub in
28812 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28813 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28816 ac_abs_top_builddir=$ac_pwd
28817 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28818 # for backward compatibility:
28819 ac_top_builddir=$ac_top_build_prefix
28822 .) # We are building in place.
28824 ac_top_srcdir=$ac_top_builddir_sub
28825 ac_abs_top_srcdir=$ac_pwd ;;
28826 [\\/]* | ?:[\\/]* ) # Absolute name.
28827 ac_srcdir=$srcdir$ac_dir_suffix;
28828 ac_top_srcdir=$srcdir
28829 ac_abs_top_srcdir=$srcdir ;;
28830 *) # Relative name.
28831 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28832 ac_top_srcdir=$ac_top_build_prefix$srcdir
28833 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28835 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28845 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28846 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28848 ac_MKDIR_P=$MKDIR_P
28850 [\\/$]* | ?:[\\/]* ) ;;
28851 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28855 cat >>$CONFIG_STATUS <<\_ACEOF
28856 # If the template does not know about datarootdir, expand it.
28857 # FIXME: This hack should be removed a few years after 2.60.
28858 ac_datarootdir_hack=; ac_datarootdir_seen=
28860 case `sed -n '/datarootdir/ {
28869 ' $ac_file_inputs` in
28870 *datarootdir*) ac_datarootdir_seen=yes;;
28871 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28872 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28873 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28875 cat >>$CONFIG_STATUS <<_ACEOF
28876 ac_datarootdir_hack='
28877 s&@datadir@&$datadir&g
28878 s&@docdir@&$docdir&g
28879 s&@infodir@&$infodir&g
28880 s&@localedir@&$localedir&g
28881 s&@mandir@&$mandir&g
28882 s&\\\${datarootdir}&$datarootdir&g' ;;
28886 # Neutralize VPATH when `$srcdir' = `.'.
28887 # Shell code in configure.ac might set extrasub.
28888 # FIXME: do we really want to maintain this feature?
28889 cat >>$CONFIG_STATUS <<_ACEOF
28893 cat >>$CONFIG_STATUS <<\_ACEOF
28895 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28896 s&@configure_input@&$configure_input&;t t
28897 s&@top_builddir@&$ac_top_builddir_sub&;t t
28898 s&@srcdir@&$ac_srcdir&;t t
28899 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28900 s&@top_srcdir@&$ac_top_srcdir&;t t
28901 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28902 s&@builddir@&$ac_builddir&;t t
28903 s&@abs_builddir@&$ac_abs_builddir&;t t
28904 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28905 s&@INSTALL@&$ac_INSTALL&;t t
28906 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28907 $ac_datarootdir_hack
28908 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
28910 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28911 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28912 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28913 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28914 which seems to be undefined. Please make sure it is defined." >&5
28915 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28916 which seems to be undefined. Please make sure it is defined." >&2;}
28920 -) cat "$tmp/out"; rm -f "$tmp/out";;
28921 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
28930 # Transform confdefs.h into a sed script `conftest.defines', that
28931 # substitutes the proper values into config.h.in to produce config.h.
28932 rm -f conftest.defines conftest.tail
28933 # First, append a space to every undef/define line, to ease matching.
28934 echo 's/$/ /' >conftest.defines
28935 # Then, protect against being on the right side of a sed subst, or in
28936 # an unquoted here document, in config.status. If some macros were
28937 # called several times there might be several #defines for the same
28938 # symbol, which is useless. But do not sort them, since the last
28939 # AC_DEFINE must be honored.
28940 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28941 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
28942 # NAME is the cpp macro being defined, VALUE is the value it is being given.
28943 # PARAMS is the parameter list in the macro definition--in most cases, it's
28944 # just an empty string.
28945 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
28946 ac_dB='\\)[ (].*,\\1define\\2'
28954 s/^[ ]*#[ ]*define[ ][ ]*//
28959 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
28960 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
28961 ' >>conftest.defines
28963 # Remove the space that was appended to ease matching.
28964 # Then replace #undef with comments. This is necessary, for
28965 # example, in the case of _POSIX_SOURCE, which is predefined and required
28966 # on some systems where configure will not decide to define it.
28967 # (The regexp can be short, since the line contains either #define or #undef.)
28969 s,^[ #]*u.*,/* & */,' >>conftest.defines
28971 # Break up conftest.defines:
28972 ac_max_sed_lines=50
28974 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
28975 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
28976 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
28978 ac_in='$ac_file_inputs'
28979 ac_out='"$tmp/out1"'
28980 ac_nxt='"$tmp/out2"'
28984 # Write a here document:
28985 cat >>$CONFIG_STATUS <<_ACEOF
28986 # First, check the format of the line:
28987 cat >"\$tmp/defines.sed" <<\\CEOF
28988 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
28989 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
28993 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
28995 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
28996 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
28997 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
28998 grep . conftest.tail >/dev/null || break
28999 rm -f conftest.defines
29000 mv conftest.tail conftest.defines
29002 rm -f conftest.defines conftest.tail
29004 echo "ac_result=$ac_in" >>$CONFIG_STATUS
29005 cat >>$CONFIG_STATUS <<\_ACEOF
29006 if test x"$ac_file" != x-; then
29007 echo "/* $configure_input */" >"$tmp/config.h"
29008 cat "$ac_result" >>"$tmp/config.h"
29009 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
29010 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
29011 echo "$as_me: $ac_file is unchanged" >&6;}
29014 mv "$tmp/config.h" $ac_file
29017 echo "/* $configure_input */"
29021 # Compute $ac_file's index in $config_headers.
29024 for _am_header in $config_headers :; do
29025 case $_am_header in
29026 $_am_arg | $_am_arg:* )
29029 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
29032 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
29033 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29034 X"$_am_arg" : 'X\(//\)[^/]' \| \
29035 X"$_am_arg" : 'X\(//\)$' \| \
29036 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
29038 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29042 /^X\(\/\/\)[^/].*/{
29054 s/.*/./; q'`/stamp-h$_am_stamp_count
29057 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
29058 echo "$as_me: executing $ac_file commands" >&6;}
29063 case $ac_file$ac_mode in
29064 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
29065 # Strip MF so we end up with the name of the file.
29066 mf=`echo "$mf" | sed -e 's/:.*$//'`
29067 # Check whether this is an Automake generated Makefile or not.
29068 # We used to match only the files named `Makefile.in', but
29069 # some people rename them; so instead we look at the file content.
29070 # Grep'ing the first line is not enough: some people post-process
29071 # each Makefile.in and add a new line on top of each file to say so.
29072 # Grep'ing the whole file is not good either: AIX grep has a line
29073 # limit of 2048, but all sed's we know have understand at least 4000.
29074 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
29075 dirpart=`$as_dirname -- "$mf" ||
29076 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29077 X"$mf" : 'X\(//\)[^/]' \| \
29078 X"$mf" : 'X\(//\)$' \| \
29079 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
29081 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29085 /^X\(\/\/\)[^/].*/{
29101 # Extract the definition of DEPDIR, am__include, and am__quote
29102 # from the Makefile without running `make'.
29103 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
29104 test -z "$DEPDIR" && continue
29105 am__include=`sed -n 's/^am__include = //p' < "$mf"`
29106 test -z "am__include" && continue
29107 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
29108 # When using ansi2knr, U may be empty or an underscore; expand it
29109 U=`sed -n 's/^U = //p' < "$mf"`
29110 # Find all dependency output files, they are included files with
29111 # $(DEPDIR) in their names. We invoke sed twice because it is the
29112 # simplest approach to changing $(DEPDIR) to its actual value in the
29114 for file in `sed -n "
29115 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
29116 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
29117 # Make sure the directory exists.
29118 test -f "$dirpart/$file" && continue
29119 fdir=`$as_dirname -- "$file" ||
29120 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29121 X"$file" : 'X\(//\)[^/]' \| \
29122 X"$file" : 'X\(//\)$' \| \
29123 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
29125 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29129 /^X\(\/\/\)[^/].*/{
29142 { as_dir=$dirpart/$fdir
29144 -*) as_dir=./$as_dir;;
29146 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
29150 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
29151 *) as_qdir=$as_dir;;
29153 as_dirs="'$as_qdir' $as_dirs"
29154 as_dir=`$as_dirname -- "$as_dir" ||
29155 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29156 X"$as_dir" : 'X\(//\)[^/]' \| \
29157 X"$as_dir" : 'X\(//\)$' \| \
29158 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29164 /^X\(\/\/\)[^/].*/{
29177 test -d "$as_dir" && break
29179 test -z "$as_dirs" || eval "mkdir $as_dirs"
29180 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
29181 echo "$as_me: error: cannot create directory $as_dir" >&2;}
29182 { (exit 1); exit 1; }; }; }
29183 # echo "creating $dirpart/$file"
29184 echo '# dummy' > "$dirpart/$file"
29188 "tools/graspe-slave":F)
29190 tools/graspe-slave tools/graspe-master \
29192 test -e $file && chmod +x $file; \
29195 "testsuite/Makefile":F)
29197 testsuite/run_tests \
29199 test -e $file && chmod +x $file; \
29202 "testsuite/run_tests":F)
29204 testsuite/run_tests \
29206 test -e $file && chmod +x $file; \
29214 { (exit 0); exit 0; }
29216 chmod +x $CONFIG_STATUS
29217 ac_clean_files=$ac_clean_files_save
29220 # configure is writing to config.log, and then calls config.status.
29221 # config.status does its own redirection, appending to config.log.
29222 # Unfortunately, on DOS this fails, as config.log is still kept open
29223 # by configure, so config.status won't be able to write to it; its
29224 # output is simply discarded. So we exec the FD to /dev/null,
29225 # effectively closing config.log, so it can be properly (re)opened and
29226 # appended to by config.status. When coming back to configure, we
29227 # need to make the FD available again.
29228 if test "$no_create" != yes; then
29230 ac_config_status_args=
29231 test "$silent" = yes &&
29232 ac_config_status_args="$ac_config_status_args --quiet"
29234 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29236 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29237 # would make configure fail if this is the last instruction.
29238 $ac_cs_success || { (exit 1); exit 1; }
29244 Configuration of package \`${PACKAGE}' (version ${VERSION}) on $gras_arch_name (=$gras_arch):
29246 Compiler: ${CC} (version: ${GCC_VERSION})
29249 CPPFlags: ${CPPFLAGS}
29250 LDFlags: ${LDFLAGS}
29252 Context backend: ${with_context}
29253 Compile Java: ${use_java}
29255 Maintainer mode: ${USE_MAINTAINER_MODE}
29258 if test x$botbuild = xyes ; then
29259 echo " This is a bot build. Do not specify --enable-botbuild if you are not a bot."
29263 if test -e .svn && test x$USE_MAINTAINER_MODE != xyes && test x$botbuild = xyes ; then
29265 echo "WARNING: You are compiling the SVN in botbuild mode. If you are not a daemon, don't do so. "
29266 echo "WARNING: Remove the --enable-botbuild from your configure line, and add --enable-maintainer-mode instead."
29268 echo "WARNING: You won't be able to build archives until then (make dist is likely to fail). "
29272 echo $build_id > stamp.configure