2 # From configure.ac Revision: 1.154 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for simgrid 3.3-cvs.
6 # Report bugs to <simgrid-devel@lists.gforge.inria.fr>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
48 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
65 # We need space, tab and new line, in precisely that order. Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
73 # Find who we are. Look in the path if we contain no directory separator.
75 *[\\/]* ) as_myself=$0 ;;
76 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
80 test -z "$as_dir" && as_dir=.
81 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
92 if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C; export $as_var
114 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
157 if test "x$CONFIG_SHELL" = x; then
158 if (eval ":") 2>/dev/null; then
164 if test $as_have_required = yes && (eval ":
174 as_func_ret_success () {
177 as_func_ret_failure () {
182 if as_func_success; then
186 echo as_func_success failed.
189 if as_func_failure; then
191 echo as_func_failure succeeded.
194 if as_func_ret_success; then
198 echo as_func_ret_success failed.
201 if as_func_ret_failure; then
203 echo as_func_ret_failure succeeded.
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
210 echo positional parameters were not saved.
213 test \$exitcode = 0) || { (exit 1); exit 1; }
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
228 test -z "$as_dir" && as_dir=.
231 for as_base in sh bash ksh sh5; do
232 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
239 for as_shell in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
251 case `(set -o) 2>/dev/null` in
252 *posix*) set -o posix ;;
261 CONFIG_SHELL=$as_shell
263 if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
272 case `(set -o) 2>/dev/null` in
273 *posix*) set -o posix ;;
289 as_func_ret_success () {
292 as_func_ret_failure () {
297 if as_func_success; then
301 echo as_func_success failed.
304 if as_func_failure; then
306 echo as_func_failure succeeded.
309 if as_func_ret_success; then
313 echo as_func_ret_success failed.
316 if as_func_ret_failure; then
318 echo as_func_ret_failure succeeded.
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
325 echo positional parameters were not saved.
328 test $exitcode = 0) || { (exit 1); exit 1; }
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
345 if test "x$CONFIG_SHELL" != x; then
346 for as_var in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
354 if test $as_have_required = no; then
355 echo This script requires a shell more modern than all the
356 echo shells that I found on your system. Please install a
357 echo modern shell, or manually run the script under such a
358 echo shell if you do have one.
359 { (exit 1); exit 1; }
369 (eval "as_func_return () {
378 as_func_ret_success () {
381 as_func_ret_failure () {
386 if as_func_success; then
390 echo as_func_success failed.
393 if as_func_failure; then
395 echo as_func_failure succeeded.
398 if as_func_ret_success; then
402 echo as_func_ret_success failed.
405 if as_func_ret_failure; then
407 echo as_func_ret_failure succeeded.
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
414 echo positional parameters were not saved.
417 test \$exitcode = 0") || {
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system,
420 echo including any error possibly output before this
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
456 chmod +x "$as_me.lineno" ||
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
464 # Exit status is that of the last command.
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
475 ECHO_C= ECHO_N= ECHO_T=
479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495 rm -f conf$$.dir/conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
509 elif ln conf$$.file conf$$ 2>/dev/null; then
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
517 if mkdir -p . 2>/dev/null; then
520 test -d ./-p && rmdir ./-p
524 if test -x / >/dev/null 2>&1; then
527 if ls -dL / >/dev/null 2>&1; then
534 if test -d "$1"; then
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
545 as_executable_p=$as_test_x
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
556 # Check that we are running under the correct shell.
557 SHELL=${CONFIG_SHELL-/bin/sh}
561 # Remove one level of quotation (which was required for Make).
562 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
567 if test "X$1" = X--no-reexec; then
568 # Discard the --no-reexec flag, and continue.
570 elif test "X$1" = X--fallback-echo; then
571 # Avoid inline document here, it may be left over
573 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
574 # Yippee, $echo works!
577 # Restart under the correct shell.
578 exec $SHELL "$0" --no-reexec ${1+"$@"}
581 if test "X$1" = X--fallback-echo; then
582 # used as fallback echo
590 # The HP-UX ksh and POSIX shell print the target directory to stdout
592 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
594 if test -z "$ECHO"; then
595 if test "X${echo_test_string+set}" != Xset; then
596 # find a string as large as possible, as long as the shell can cope with it
597 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
598 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
599 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
600 echo_test_string=`eval $cmd` &&
601 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
608 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
609 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
610 test "X$echo_testing_string" = "X$echo_test_string"; then
613 # The Solaris, AIX, and Digital Unix default echo programs unquote
614 # backslashes. This makes it impossible to quote backslashes using
615 # echo "$something" | sed 's/\\/\\\\/g'
617 # So, first we look for a working echo in the user's PATH.
619 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
620 for dir in $PATH /usr/ucb; do
622 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
623 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
624 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
625 test "X$echo_testing_string" = "X$echo_test_string"; then
632 if test "X$echo" = Xecho; then
633 # We didn't find a better echo, so look for alternatives.
634 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
635 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
636 test "X$echo_testing_string" = "X$echo_test_string"; then
637 # This shell has a builtin print -r that does the trick.
639 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
640 test "X$CONFIG_SHELL" != X/bin/ksh; then
641 # If we have ksh, try running configure again with it.
642 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
643 export ORIGINAL_CONFIG_SHELL
644 CONFIG_SHELL=/bin/ksh
646 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
650 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
651 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
652 test "X$echo_testing_string" = "X$echo_test_string"; then
655 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
656 test "X$echo_testing_string" = 'X\t' &&
657 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
658 test "X$echo_testing_string" = "X$echo_test_string"; then
659 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
661 SHELL="$CONFIG_SHELL"
663 echo="$CONFIG_SHELL $0 --fallback-echo"
664 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
665 test "X$echo_testing_string" = 'X\t' &&
666 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
667 test "X$echo_testing_string" = "X$echo_test_string"; then
668 echo="$CONFIG_SHELL $0 --fallback-echo"
670 # maybe with a smaller string...
673 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
674 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
681 if test "$prev" != 'sed 50q "$0"'; then
682 echo_test_string=`eval $prev`
683 export echo_test_string
684 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
686 # Oops. We lost completely, so just stick with echo.
695 # Copy echo and quote the copy suitably for passing to libtool from
696 # the Makefile, instead of quoting the original, which is used later.
698 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
699 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
705 tagnames=${tagnames+${tagnames},}CXX
707 tagnames=${tagnames+${tagnames},}F77
709 exec 7<&0 </dev/null 6>&1
712 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
713 # so uname gets run too.
714 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
719 ac_default_prefix=/usr/local
721 ac_config_libobj_dir=.
727 SHELL=${CONFIG_SHELL-/bin/sh}
729 # Identity of this package.
730 PACKAGE_NAME='simgrid'
731 PACKAGE_TARNAME='simgrid'
732 PACKAGE_VERSION='3.3-cvs'
733 PACKAGE_STRING='simgrid 3.3-cvs'
734 PACKAGE_BUGREPORT='simgrid-devel@lists.gforge.inria.fr'
736 ac_unique_file="include/gras.h"
737 # Factoring default headers for most tests.
738 ac_includes_default="\
740 #ifdef HAVE_SYS_TYPES_H
741 # include <sys/types.h>
743 #ifdef HAVE_SYS_STAT_H
744 # include <sys/stat.h>
750 # ifdef HAVE_STDLIB_H
755 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
760 #ifdef HAVE_STRINGS_H
761 # include <strings.h>
763 #ifdef HAVE_INTTYPES_H
764 # include <inttypes.h>
782 program_transform_name
835 INSTALL_STRIP_PROGRAM
882 pth_skaddr_makecontext
883 pth_sksize_makecontext
898 MAINTAINER_MODE_FALSE
920 ac_precious_vars='build_alias
937 # Initialize some variables set by options.
939 ac_init_version=false
940 # The variables have the same names as the options, with
941 # dashes changed to underlines.
949 program_transform_name=s,x,x,
957 # Installation directory options.
958 # These are left unexpanded so users can "make install exec_prefix=/foo"
959 # and all the variables that are supposed to be based on exec_prefix
960 # by default will actually change.
961 # Use braces instead of parens because sh, perl, etc. also accept them.
962 # (The list follows the same order as the GNU Coding Standards.)
963 bindir='${exec_prefix}/bin'
964 sbindir='${exec_prefix}/sbin'
965 libexecdir='${exec_prefix}/libexec'
966 datarootdir='${prefix}/share'
967 datadir='${datarootdir}'
968 sysconfdir='${prefix}/etc'
969 sharedstatedir='${prefix}/com'
970 localstatedir='${prefix}/var'
971 includedir='${prefix}/include'
972 oldincludedir='/usr/include'
973 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
974 infodir='${datarootdir}/info'
979 libdir='${exec_prefix}/lib'
980 localedir='${datarootdir}/locale'
981 mandir='${datarootdir}/man'
987 # If the previous option needs an argument, assign it.
988 if test -n "$ac_prev"; then
989 eval $ac_prev=\$ac_option
995 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
999 # Accept the important Cygnus configure options, so we can diagnose typos.
1001 case $ac_dashdash$ac_option in
1005 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1007 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1008 bindir=$ac_optarg ;;
1010 -build | --build | --buil | --bui | --bu)
1011 ac_prev=build_alias ;;
1012 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1013 build_alias=$ac_optarg ;;
1015 -cache-file | --cache-file | --cache-fil | --cache-fi \
1016 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1017 ac_prev=cache_file ;;
1018 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1019 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1020 cache_file=$ac_optarg ;;
1022 --config-cache | -C)
1023 cache_file=config.cache ;;
1025 -datadir | --datadir | --datadi | --datad)
1027 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1028 datadir=$ac_optarg ;;
1030 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1031 | --dataroo | --dataro | --datar)
1032 ac_prev=datarootdir ;;
1033 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1034 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1035 datarootdir=$ac_optarg ;;
1037 -disable-* | --disable-*)
1038 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1039 # Reject names that are not valid shell variable names.
1040 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1041 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1042 { (exit 1); exit 1; }; }
1043 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1044 eval enable_$ac_feature=no ;;
1046 -docdir | --docdir | --docdi | --doc | --do)
1048 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1049 docdir=$ac_optarg ;;
1051 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1053 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1054 dvidir=$ac_optarg ;;
1056 -enable-* | --enable-*)
1057 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1058 # Reject names that are not valid shell variable names.
1059 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1060 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1061 { (exit 1); exit 1; }; }
1062 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1063 eval enable_$ac_feature=\$ac_optarg ;;
1065 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1066 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1067 | --exec | --exe | --ex)
1068 ac_prev=exec_prefix ;;
1069 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1070 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1071 | --exec=* | --exe=* | --ex=*)
1072 exec_prefix=$ac_optarg ;;
1074 -gas | --gas | --ga | --g)
1075 # Obsolete; use --with-gas.
1078 -help | --help | --hel | --he | -h)
1079 ac_init_help=long ;;
1080 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1081 ac_init_help=recursive ;;
1082 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1083 ac_init_help=short ;;
1085 -host | --host | --hos | --ho)
1086 ac_prev=host_alias ;;
1087 -host=* | --host=* | --hos=* | --ho=*)
1088 host_alias=$ac_optarg ;;
1090 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1092 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1094 htmldir=$ac_optarg ;;
1096 -includedir | --includedir | --includedi | --included | --include \
1097 | --includ | --inclu | --incl | --inc)
1098 ac_prev=includedir ;;
1099 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1100 | --includ=* | --inclu=* | --incl=* | --inc=*)
1101 includedir=$ac_optarg ;;
1103 -infodir | --infodir | --infodi | --infod | --info | --inf)
1105 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1106 infodir=$ac_optarg ;;
1108 -libdir | --libdir | --libdi | --libd)
1110 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1111 libdir=$ac_optarg ;;
1113 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1114 | --libexe | --libex | --libe)
1115 ac_prev=libexecdir ;;
1116 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1117 | --libexe=* | --libex=* | --libe=*)
1118 libexecdir=$ac_optarg ;;
1120 -localedir | --localedir | --localedi | --localed | --locale)
1121 ac_prev=localedir ;;
1122 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1123 localedir=$ac_optarg ;;
1125 -localstatedir | --localstatedir | --localstatedi | --localstated \
1126 | --localstate | --localstat | --localsta | --localst | --locals)
1127 ac_prev=localstatedir ;;
1128 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1129 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1130 localstatedir=$ac_optarg ;;
1132 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1134 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1135 mandir=$ac_optarg ;;
1137 -nfp | --nfp | --nf)
1138 # Obsolete; use --without-fp.
1141 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1142 | --no-cr | --no-c | -n)
1145 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1146 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1149 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1150 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1151 | --oldin | --oldi | --old | --ol | --o)
1152 ac_prev=oldincludedir ;;
1153 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1154 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1155 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1156 oldincludedir=$ac_optarg ;;
1158 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1160 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1161 prefix=$ac_optarg ;;
1163 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1164 | --program-pre | --program-pr | --program-p)
1165 ac_prev=program_prefix ;;
1166 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1167 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1168 program_prefix=$ac_optarg ;;
1170 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1171 | --program-suf | --program-su | --program-s)
1172 ac_prev=program_suffix ;;
1173 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1174 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1175 program_suffix=$ac_optarg ;;
1177 -program-transform-name | --program-transform-name \
1178 | --program-transform-nam | --program-transform-na \
1179 | --program-transform-n | --program-transform- \
1180 | --program-transform | --program-transfor \
1181 | --program-transfo | --program-transf \
1182 | --program-trans | --program-tran \
1183 | --progr-tra | --program-tr | --program-t)
1184 ac_prev=program_transform_name ;;
1185 -program-transform-name=* | --program-transform-name=* \
1186 | --program-transform-nam=* | --program-transform-na=* \
1187 | --program-transform-n=* | --program-transform-=* \
1188 | --program-transform=* | --program-transfor=* \
1189 | --program-transfo=* | --program-transf=* \
1190 | --program-trans=* | --program-tran=* \
1191 | --progr-tra=* | --program-tr=* | --program-t=*)
1192 program_transform_name=$ac_optarg ;;
1194 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1196 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1197 pdfdir=$ac_optarg ;;
1199 -psdir | --psdir | --psdi | --psd | --ps)
1201 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1204 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1205 | -silent | --silent | --silen | --sile | --sil)
1208 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1210 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1212 sbindir=$ac_optarg ;;
1214 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1215 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1216 | --sharedst | --shareds | --shared | --share | --shar \
1218 ac_prev=sharedstatedir ;;
1219 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1220 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1221 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1223 sharedstatedir=$ac_optarg ;;
1225 -site | --site | --sit)
1227 -site=* | --site=* | --sit=*)
1230 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1232 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1233 srcdir=$ac_optarg ;;
1235 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1236 | --syscon | --sysco | --sysc | --sys | --sy)
1237 ac_prev=sysconfdir ;;
1238 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1239 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1240 sysconfdir=$ac_optarg ;;
1242 -target | --target | --targe | --targ | --tar | --ta | --t)
1243 ac_prev=target_alias ;;
1244 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1245 target_alias=$ac_optarg ;;
1247 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1250 -version | --version | --versio | --versi | --vers | -V)
1251 ac_init_version=: ;;
1254 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1255 # Reject names that are not valid shell variable names.
1256 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1257 { echo "$as_me: error: invalid package name: $ac_package" >&2
1258 { (exit 1); exit 1; }; }
1259 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1260 eval with_$ac_package=\$ac_optarg ;;
1262 -without-* | --without-*)
1263 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1264 # Reject names that are not valid shell variable names.
1265 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1266 { echo "$as_me: error: invalid package name: $ac_package" >&2
1267 { (exit 1); exit 1; }; }
1268 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1269 eval with_$ac_package=no ;;
1272 # Obsolete; use --with-x.
1275 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1276 | --x-incl | --x-inc | --x-in | --x-i)
1277 ac_prev=x_includes ;;
1278 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1279 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1280 x_includes=$ac_optarg ;;
1282 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1283 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1284 ac_prev=x_libraries ;;
1285 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1286 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1287 x_libraries=$ac_optarg ;;
1289 -*) { echo "$as_me: error: unrecognized option: $ac_option
1290 Try \`$0 --help' for more information." >&2
1291 { (exit 1); exit 1; }; }
1295 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1296 # Reject names that are not valid shell variable names.
1297 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1298 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1299 { (exit 1); exit 1; }; }
1300 eval $ac_envvar=\$ac_optarg
1301 export $ac_envvar ;;
1304 # FIXME: should be removed in autoconf 3.0.
1305 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1306 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1307 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1308 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1314 if test -n "$ac_prev"; then
1315 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1316 { echo "$as_me: error: missing argument to $ac_option" >&2
1317 { (exit 1); exit 1; }; }
1320 # Be sure to have absolute directory names.
1321 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1322 datadir sysconfdir sharedstatedir localstatedir includedir \
1323 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1324 libdir localedir mandir
1326 eval ac_val=\$$ac_var
1328 [\\/$]* | ?:[\\/]* ) continue;;
1329 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1331 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1332 { (exit 1); exit 1; }; }
1335 # There might be people who depend on the old broken behavior: `$host'
1336 # used to hold the argument of --host etc.
1337 # FIXME: To remove some day.
1340 target=$target_alias
1342 # FIXME: To remove some day.
1343 if test "x$host_alias" != x; then
1344 if test "x$build_alias" = x; then
1345 cross_compiling=maybe
1346 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1347 If a cross compiler is detected then cross compile mode will be used." >&2
1348 elif test "x$build_alias" != "x$host_alias"; then
1354 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1356 test "$silent" = yes && exec 6>/dev/null
1359 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1360 ac_ls_di=`ls -di .` &&
1361 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1362 { echo "$as_me: error: Working directory cannot be determined" >&2
1363 { (exit 1); exit 1; }; }
1364 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1365 { echo "$as_me: error: pwd does not report name of working directory" >&2
1366 { (exit 1); exit 1; }; }
1369 # Find the source files, if location was not specified.
1370 if test -z "$srcdir"; then
1371 ac_srcdir_defaulted=yes
1372 # Try the directory containing this script, then the parent directory.
1373 ac_confdir=`$as_dirname -- "$0" ||
1374 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1375 X"$0" : 'X\(//\)[^/]' \| \
1376 X"$0" : 'X\(//\)$' \| \
1377 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1397 if test ! -r "$srcdir/$ac_unique_file"; then
1401 ac_srcdir_defaulted=no
1403 if test ! -r "$srcdir/$ac_unique_file"; then
1404 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1405 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1406 { (exit 1); exit 1; }; }
1408 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1410 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1411 { (exit 1); exit 1; }; }
1413 # When building in place, set srcdir=.
1414 if test "$ac_abs_confdir" = "$ac_pwd"; then
1417 # Remove unnecessary trailing slashes from srcdir.
1418 # Double slashes in file names in object file debugging info
1419 # mess up M-x gdb in Emacs.
1421 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1423 for ac_var in $ac_precious_vars; do
1424 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1425 eval ac_env_${ac_var}_value=\$${ac_var}
1426 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1427 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1431 # Report the --help message.
1433 if test "$ac_init_help" = "long"; then
1434 # Omit some internal or obsolete options to make the list less imposing.
1435 # This message is too long to be a string in the A/UX 3.1 sh.
1437 \`configure' configures simgrid 3.3-cvs to adapt to many kinds of systems.
1439 Usage: $0 [OPTION]... [VAR=VALUE]...
1441 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1442 VAR=VALUE. See below for descriptions of some of the useful variables.
1444 Defaults for the options are specified in brackets.
1447 -h, --help display this help and exit
1448 --help=short display options specific to this package
1449 --help=recursive display the short help of all the included packages
1450 -V, --version display version information and exit
1451 -q, --quiet, --silent do not print \`checking...' messages
1452 --cache-file=FILE cache test results in FILE [disabled]
1453 -C, --config-cache alias for \`--cache-file=config.cache'
1454 -n, --no-create do not create output files
1455 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1457 Installation directories:
1458 --prefix=PREFIX install architecture-independent files in PREFIX
1459 [$ac_default_prefix]
1460 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1463 By default, \`make install' will install all the files in
1464 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1465 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1466 for instance \`--prefix=\$HOME'.
1468 For better control, use the options below.
1470 Fine tuning of the installation directories:
1471 --bindir=DIR user executables [EPREFIX/bin]
1472 --sbindir=DIR system admin executables [EPREFIX/sbin]
1473 --libexecdir=DIR program executables [EPREFIX/libexec]
1474 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1475 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1476 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1477 --libdir=DIR object code libraries [EPREFIX/lib]
1478 --includedir=DIR C header files [PREFIX/include]
1479 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1480 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1481 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1482 --infodir=DIR info documentation [DATAROOTDIR/info]
1483 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1484 --mandir=DIR man documentation [DATAROOTDIR/man]
1485 --docdir=DIR documentation root [DATAROOTDIR/doc/simgrid]
1486 --htmldir=DIR html documentation [DOCDIR]
1487 --dvidir=DIR dvi documentation [DOCDIR]
1488 --pdfdir=DIR pdf documentation [DOCDIR]
1489 --psdir=DIR ps documentation [DOCDIR]
1495 --program-prefix=PREFIX prepend PREFIX to installed program names
1496 --program-suffix=SUFFIX append SUFFIX to installed program names
1497 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1500 --build=BUILD configure for building on BUILD [guessed]
1501 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1502 --target=TARGET configure for building compilers for TARGET [HOST]
1506 if test -n "$ac_init_help"; then
1507 case $ac_init_help in
1508 short | recursive ) echo "Configuration of simgrid 3.3-cvs:";;
1513 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1514 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1515 --enable-shared[=PKGS] build shared libraries [default=yes]
1516 --enable-static[=PKGS] build static libraries [default=yes]
1517 --enable-fast-install[=PKGS]
1518 optimize for fast installation [default=yes]
1519 --disable-dependency-tracking speeds up one-time build
1520 --enable-dependency-tracking do not reject slow dependency extractors
1521 --disable-libtool-lock avoid locking (might break parallel builds)
1522 --enable-simix Use the new SimIX module (default=no)
1523 --enable-maintainer-mode enable make rules and dependencies not useful
1524 (and sometimes confusing) to the casual installer
1525 --enable-compile-warnings
1526 use compiler warnings (default=no, unless in
1528 --disable-compile-optimizations
1529 use compiler optimizations (default=yes, unless if
1530 CFLAGS is explicitly set)
1533 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1534 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1535 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1536 --with-pic try to use only PIC/non-PIC objects [default=use
1538 --with-tags[=TAGS] include additional configurations [automatic]
1539 --with-pthread Use pthread instead of ucontext.
1540 --with-pthreads Use pthread instead of ucontext.
1541 --with-context=ucontext/pthread Use either (System V) swapcontext or pthread [default=auto].
1542 --with-gtnets Path to GTNetS installation (default to empty, ie
1545 Some influential environment variables:
1546 CC C compiler command
1547 CFLAGS C compiler flags
1548 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1549 nonstandard directory <lib dir>
1550 LIBS libraries to pass to the linker, e.g. -l<library>
1551 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1552 you have headers in a nonstandard directory <include dir>
1554 CXX C++ compiler command
1555 CXXFLAGS C++ compiler flags
1556 CXXCPP C++ preprocessor
1557 F77 Fortran 77 compiler command
1558 FFLAGS Fortran 77 compiler flags
1560 Use these variables to override the choices made by `configure' or to help
1561 it to find libraries and programs with nonstandard names/locations.
1563 Report bugs to <simgrid-devel@lists.gforge.inria.fr>.
1568 if test "$ac_init_help" = "recursive"; then
1569 # If there are subdirs, report their specific --help.
1570 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1571 test -d "$ac_dir" || continue
1575 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1577 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1578 # A ".." for each directory in $ac_dir_suffix.
1579 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1580 case $ac_top_builddir_sub in
1581 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1582 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1585 ac_abs_top_builddir=$ac_pwd
1586 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1587 # for backward compatibility:
1588 ac_top_builddir=$ac_top_build_prefix
1591 .) # We are building in place.
1593 ac_top_srcdir=$ac_top_builddir_sub
1594 ac_abs_top_srcdir=$ac_pwd ;;
1595 [\\/]* | ?:[\\/]* ) # Absolute name.
1596 ac_srcdir=$srcdir$ac_dir_suffix;
1597 ac_top_srcdir=$srcdir
1598 ac_abs_top_srcdir=$srcdir ;;
1600 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1601 ac_top_srcdir=$ac_top_build_prefix$srcdir
1602 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1604 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1606 cd "$ac_dir" || { ac_status=$?; continue; }
1607 # Check for guested configure.
1608 if test -f "$ac_srcdir/configure.gnu"; then
1610 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1611 elif test -f "$ac_srcdir/configure"; then
1613 $SHELL "$ac_srcdir/configure" --help=recursive
1615 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1617 cd "$ac_pwd" || { ac_status=$?; break; }
1621 test -n "$ac_init_help" && exit $ac_status
1622 if $ac_init_version; then
1624 simgrid configure 3.3-cvs
1625 generated by GNU Autoconf 2.61
1627 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1628 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1629 This configure script is free software; the Free Software Foundation
1630 gives unlimited permission to copy, distribute and modify it.
1634 cat >config.log <<_ACEOF
1635 This file contains any messages produced by compilers while
1636 running configure, to aid debugging if configure makes a mistake.
1638 It was created by simgrid $as_me 3.3-cvs, which was
1639 generated by GNU Autoconf 2.61. Invocation command line was
1651 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1652 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1653 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1654 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1655 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1657 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1658 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1660 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1661 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1662 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1663 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1664 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1665 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1666 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1674 test -z "$as_dir" && as_dir=.
1675 echo "PATH: $as_dir"
1691 # Keep a trace of the command line.
1692 # Strip out --no-create and --no-recursion so they do not pile up.
1693 # Strip out --silent because we don't want to record it for future runs.
1694 # Also quote any args containing shell meta-characters.
1695 # Make two passes to allow for proper duplicate-argument suppression.
1699 ac_must_keep_next=false
1705 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1706 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1707 | -silent | --silent | --silen | --sile | --sil)
1710 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1713 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1715 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1716 if test $ac_must_keep_next = true; then
1717 ac_must_keep_next=false # Got value, back to normal.
1720 *=* | --config-cache | -C | -disable-* | --disable-* \
1721 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1722 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1723 | -with-* | --with-* | -without-* | --without-* | --x)
1724 case "$ac_configure_args0 " in
1725 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1728 -* ) ac_must_keep_next=true ;;
1731 ac_configure_args="$ac_configure_args '$ac_arg'"
1736 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1737 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1739 # When interrupted or exit'd, cleanup temporary files, and complete
1740 # config.log. We remove comments because anyway the quotes in there
1741 # would cause problems or look ugly.
1742 # WARNING: Use '\'' to represent an apostrophe within the trap.
1743 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1744 trap 'exit_status=$?
1745 # Save into config.log some information that might help in debugging.
1750 ## ---------------- ##
1751 ## Cache variables. ##
1752 ## ---------------- ##
1755 # The following way of writing the cache mishandles newlines in values,
1757 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1758 eval ac_val=\$$ac_var
1762 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1763 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1766 _ | IFS | as_nl) ;; #(
1767 *) $as_unset $ac_var ;;
1772 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1773 *${as_nl}ac_space=\ *)
1775 "s/'\''/'\''\\\\'\'''\''/g;
1776 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1779 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1787 ## ----------------- ##
1788 ## Output variables. ##
1789 ## ----------------- ##
1792 for ac_var in $ac_subst_vars
1794 eval ac_val=\$$ac_var
1796 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1798 echo "$ac_var='\''$ac_val'\''"
1802 if test -n "$ac_subst_files"; then
1804 ## ------------------- ##
1805 ## File substitutions. ##
1806 ## ------------------- ##
1809 for ac_var in $ac_subst_files
1811 eval ac_val=\$$ac_var
1813 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1815 echo "$ac_var='\''$ac_val'\''"
1820 if test -s confdefs.h; then
1830 test "$ac_signal" != 0 &&
1831 echo "$as_me: caught signal $ac_signal"
1832 echo "$as_me: exit $exit_status"
1834 rm -f core *.core core.conftest.* &&
1835 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1838 for ac_signal in 1 2 13 15; do
1839 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1843 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1844 rm -f -r conftest* confdefs.h
1846 # Predefined preprocessor variables.
1848 cat >>confdefs.h <<_ACEOF
1849 #define PACKAGE_NAME "$PACKAGE_NAME"
1853 cat >>confdefs.h <<_ACEOF
1854 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1858 cat >>confdefs.h <<_ACEOF
1859 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1863 cat >>confdefs.h <<_ACEOF
1864 #define PACKAGE_STRING "$PACKAGE_STRING"
1868 cat >>confdefs.h <<_ACEOF
1869 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1873 # Let the site file select an alternate cache file if it wants to.
1874 # Prefer explicitly selected file to automatically selected ones.
1875 if test -n "$CONFIG_SITE"; then
1876 set x "$CONFIG_SITE"
1877 elif test "x$prefix" != xNONE; then
1878 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1880 set x "$ac_default_prefix/share/config.site" \
1881 "$ac_default_prefix/etc/config.site"
1886 if test -r "$ac_site_file"; then
1887 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1888 echo "$as_me: loading site script $ac_site_file" >&6;}
1889 sed 's/^/| /' "$ac_site_file" >&5
1894 if test -r "$cache_file"; then
1895 # Some versions of bash will fail to source /dev/null (special
1896 # files actually), so we avoid doing that.
1897 if test -f "$cache_file"; then
1898 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1899 echo "$as_me: loading cache $cache_file" >&6;}
1901 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1902 *) . "./$cache_file";;
1906 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1907 echo "$as_me: creating cache $cache_file" >&6;}
1911 # Check that the precious variables saved in the cache have kept the same
1913 ac_cache_corrupted=false
1914 for ac_var in $ac_precious_vars; do
1915 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1916 eval ac_new_set=\$ac_env_${ac_var}_set
1917 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1918 eval ac_new_val=\$ac_env_${ac_var}_value
1919 case $ac_old_set,$ac_new_set in
1921 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1922 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1923 ac_cache_corrupted=: ;;
1925 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1926 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1927 ac_cache_corrupted=: ;;
1930 if test "x$ac_old_val" != "x$ac_new_val"; then
1931 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1932 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1933 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1934 echo "$as_me: former value: $ac_old_val" >&2;}
1935 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1936 echo "$as_me: current value: $ac_new_val" >&2;}
1937 ac_cache_corrupted=:
1940 # Pass precious variables to config.status.
1941 if test "$ac_new_set" = set; then
1943 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1944 *) ac_arg=$ac_var=$ac_new_val ;;
1946 case " $ac_configure_args " in
1947 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1948 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1952 if $ac_cache_corrupted; then
1953 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1954 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1955 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1956 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1957 { (exit 1); exit 1; }; }
1985 ac_cpp='$CPP $CPPFLAGS'
1986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1992 ac_config_headers="$ac_config_headers src/gras_config.h"
1994 # A CI_PREREQ(2003.01.16) # We need a recent ACI when having sub-modules
1998 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1999 if test -f "$ac_dir/install-sh"; then
2001 ac_install_sh="$ac_aux_dir/install-sh -c"
2003 elif test -f "$ac_dir/install.sh"; then
2005 ac_install_sh="$ac_aux_dir/install.sh -c"
2007 elif test -f "$ac_dir/shtool"; then
2009 ac_install_sh="$ac_aux_dir/shtool install -c"
2013 if test -z "$ac_aux_dir"; then
2014 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2015 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2016 { (exit 1); exit 1; }; }
2019 # These three variables are undocumented and unsupported,
2020 # and are intended to be withdrawn in a future Autoconf release.
2021 # They can cause serious problems if a builder's source tree is in a directory
2022 # whose full name contains unusual characters.
2023 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2024 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2025 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2028 # Make sure we can run config.sub.
2029 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2030 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2031 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2032 { (exit 1); exit 1; }; }
2034 { echo "$as_me:$LINENO: checking build system type" >&5
2035 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2036 if test "${ac_cv_build+set}" = set; then
2037 echo $ECHO_N "(cached) $ECHO_C" >&6
2039 ac_build_alias=$build_alias
2040 test "x$ac_build_alias" = x &&
2041 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2042 test "x$ac_build_alias" = x &&
2043 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2044 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2045 { (exit 1); exit 1; }; }
2046 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2047 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2048 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2049 { (exit 1); exit 1; }; }
2052 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2053 echo "${ECHO_T}$ac_cv_build" >&6; }
2054 case $ac_cv_build in
2056 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2057 echo "$as_me: error: invalid value of canonical build" >&2;}
2058 { (exit 1); exit 1; }; };;
2061 ac_save_IFS=$IFS; IFS='-'
2067 # Remember, the first character of IFS is used to create $*,
2068 # except with old shells:
2071 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2074 { echo "$as_me:$LINENO: checking host system type" >&5
2075 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2076 if test "${ac_cv_host+set}" = set; then
2077 echo $ECHO_N "(cached) $ECHO_C" >&6
2079 if test "x$host_alias" = x; then
2080 ac_cv_host=$ac_cv_build
2082 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2083 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2084 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2085 { (exit 1); exit 1; }; }
2089 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2090 echo "${ECHO_T}$ac_cv_host" >&6; }
2093 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2094 echo "$as_me: error: invalid value of canonical host" >&2;}
2095 { (exit 1); exit 1; }; };;
2098 ac_save_IFS=$IFS; IFS='-'
2104 # Remember, the first character of IFS is used to create $*,
2105 # except with old shells:
2108 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2111 { echo "$as_me:$LINENO: checking target system type" >&5
2112 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2113 if test "${ac_cv_target+set}" = set; then
2114 echo $ECHO_N "(cached) $ECHO_C" >&6
2116 if test "x$target_alias" = x; then
2117 ac_cv_target=$ac_cv_host
2119 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2120 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2121 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2122 { (exit 1); exit 1; }; }
2126 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2127 echo "${ECHO_T}$ac_cv_target" >&6; }
2128 case $ac_cv_target in
2130 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2131 echo "$as_me: error: invalid value of canonical target" >&2;}
2132 { (exit 1); exit 1; }; };;
2134 target=$ac_cv_target
2135 ac_save_IFS=$IFS; IFS='-'
2141 # Remember, the first character of IFS is used to create $*,
2142 # except with old shells:
2145 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2148 # The aliases save the names the user supplied, while $host etc.
2149 # will get canonicalized.
2150 test -n "$target_alias" &&
2151 test "$program_prefix$program_suffix$program_transform_name" = \
2153 program_prefix=${target_alias}-
2155 ac_cpp='$CPP $CPPFLAGS'
2156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2161 am__api_version="1.9"
2162 # Find a good install program. We prefer a C program (faster),
2163 # so one script is as good as another. But avoid the broken or
2164 # incompatible versions:
2165 # SysV /etc/install, /usr/sbin/install
2166 # SunOS /usr/etc/install
2167 # IRIX /sbin/install
2169 # AmigaOS /C/install, which installs bootblocks on floppy discs
2170 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2171 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2172 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2173 # OS/2's system install, which has a completely different semantic
2174 # ./install, which can be erroneously created by make from ./install.sh.
2175 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2176 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2177 if test -z "$INSTALL"; then
2178 if test "${ac_cv_path_install+set}" = set; then
2179 echo $ECHO_N "(cached) $ECHO_C" >&6
2181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2185 test -z "$as_dir" && as_dir=.
2186 # Account for people who put trailing slashes in PATH elements.
2188 ./ | .// | /cC/* | \
2189 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2190 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2193 # OSF1 and SCO ODT 3.0 have their own names for install.
2194 # Don't use installbsd from OSF since it installs stuff as root
2196 for ac_prog in ginstall scoinst install; do
2197 for ac_exec_ext in '' $ac_executable_extensions; do
2198 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2199 if test $ac_prog = install &&
2200 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2201 # AIX install. It has an incompatible calling convention.
2203 elif test $ac_prog = install &&
2204 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2205 # program-specific install script used by HP pwplus--don't use.
2208 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2221 if test "${ac_cv_path_install+set}" = set; then
2222 INSTALL=$ac_cv_path_install
2224 # As a last resort, use the slow shell script. Don't cache a
2225 # value for INSTALL within a source directory, because that will
2226 # break other packages using the cache if that directory is
2227 # removed, or if the value is a relative name.
2228 INSTALL=$ac_install_sh
2231 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2232 echo "${ECHO_T}$INSTALL" >&6; }
2234 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2235 # It thinks the first close brace ends the variable substitution.
2236 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2238 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2240 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2242 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2243 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2246 echo timestamp > conftest.file
2247 # Do `set' in a subshell so we don't clobber the current shell's
2248 # arguments. Must try -L first in case configure is actually a
2249 # symlink; some systems play weird games with the mod time of symlinks
2250 # (eg FreeBSD returns the mod time of the symlink's containing
2253 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2254 if test "$*" = "X"; then
2256 set X `ls -t $srcdir/configure conftest.file`
2259 if test "$*" != "X $srcdir/configure conftest.file" \
2260 && test "$*" != "X conftest.file $srcdir/configure"; then
2262 # If neither matched, then we have a broken ls. This can happen
2263 # if, for instance, CONFIG_SHELL is bash and it inherits a
2264 # broken ls alias from the environment. This has actually
2265 # happened. Such a system could not be considered "sane".
2266 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2267 alias in your environment" >&5
2268 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2269 alias in your environment" >&2;}
2270 { (exit 1); exit 1; }; }
2273 test "$2" = conftest.file
2279 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2280 Check your system clock" >&5
2281 echo "$as_me: error: newly created file is older than distributed files!
2282 Check your system clock" >&2;}
2283 { (exit 1); exit 1; }; }
2285 { echo "$as_me:$LINENO: result: yes" >&5
2286 echo "${ECHO_T}yes" >&6; }
2287 test "$program_prefix" != NONE &&
2288 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2289 # Use a double $ so make ignores it.
2290 test "$program_suffix" != NONE &&
2291 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2292 # Double any \ or $. echo might interpret backslashes.
2293 # By default was `s,x,x', remove it if useless.
2294 cat <<\_ACEOF >conftest.sed
2295 s/[\\$]/&&/g;s/;s,x,x,$//
2297 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2300 # expand $ac_aux_dir to an absolute path
2301 am_aux_dir=`cd $ac_aux_dir && pwd`
2303 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2304 # Use eval to expand $SHELL
2305 if eval "$MISSING --run true"; then
2306 am_missing_run="$MISSING --run "
2309 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2310 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2313 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2314 # We used to keeping the `.' as first argument, in order to
2315 # allow $(mkdir_p) to be used without argument. As in
2316 # $(mkdir_p) $(somedir)
2317 # where $(somedir) is conditionally defined. However this is wrong
2319 # 1. if the package is installed by a user who cannot write `.'
2320 # make install will fail,
2321 # 2. the above comment should most certainly read
2322 # $(mkdir_p) $(DESTDIR)$(somedir)
2323 # so it does not work when $(somedir) is undefined and
2324 # $(DESTDIR) is not.
2325 # To support the latter case, we have to write
2326 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2327 # so the `.' trick is pointless.
2328 mkdir_p='mkdir -p --'
2330 # On NextStep and OpenStep, the `mkdir' command does not
2331 # recognize any option. It will interpret all options as
2332 # directories to create, and then abort because `.' already
2334 for d in ./-p ./--version;
2336 test -d $d && rmdir $d
2338 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2339 if test -f "$ac_aux_dir/mkinstalldirs"; then
2340 mkdir_p='$(mkinstalldirs)'
2342 mkdir_p='$(install_sh) -d'
2346 for ac_prog in gawk mawk nawk awk
2348 # Extract the first word of "$ac_prog", so it can be a program name with args.
2349 set dummy $ac_prog; ac_word=$2
2350 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2352 if test "${ac_cv_prog_AWK+set}" = set; then
2353 echo $ECHO_N "(cached) $ECHO_C" >&6
2355 if test -n "$AWK"; then
2356 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2362 test -z "$as_dir" && as_dir=.
2363 for ac_exec_ext in '' $ac_executable_extensions; do
2364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2365 ac_cv_prog_AWK="$ac_prog"
2366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2376 if test -n "$AWK"; then
2377 { echo "$as_me:$LINENO: result: $AWK" >&5
2378 echo "${ECHO_T}$AWK" >&6; }
2380 { echo "$as_me:$LINENO: result: no" >&5
2381 echo "${ECHO_T}no" >&6; }
2385 test -n "$AWK" && break
2388 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2389 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2390 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2391 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2392 echo $ECHO_N "(cached) $ECHO_C" >&6
2394 cat >conftest.make <<\_ACEOF
2397 @echo '@@@%%%=$(MAKE)=@@@%%%'
2399 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2400 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2402 eval ac_cv_prog_make_${ac_make}_set=yes;;
2404 eval ac_cv_prog_make_${ac_make}_set=no;;
2408 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2409 { echo "$as_me:$LINENO: result: yes" >&5
2410 echo "${ECHO_T}yes" >&6; }
2413 { echo "$as_me:$LINENO: result: no" >&5
2414 echo "${ECHO_T}no" >&6; }
2415 SET_MAKE="MAKE=${MAKE-make}"
2418 rm -rf .tst 2>/dev/null
2419 mkdir .tst 2>/dev/null
2420 if test -d .tst; then
2425 rmdir .tst 2>/dev/null
2427 # test to see if srcdir already configured
2428 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2429 test -f $srcdir/config.status; then
2430 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2431 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2432 { (exit 1); exit 1; }; }
2435 # test whether we have cygpath
2436 if test -z "$CYGPATH_W"; then
2437 if (cygpath --version) >/dev/null 2>/dev/null; then
2438 CYGPATH_W='cygpath -w'
2445 # Define the identity of the package.
2450 cat >>confdefs.h <<_ACEOF
2451 #define PACKAGE "$PACKAGE"
2455 cat >>confdefs.h <<_ACEOF
2456 #define VERSION "$VERSION"
2459 # Some tools Automake needs.
2461 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2464 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2467 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2470 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2473 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2475 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2477 # Installed binaries are usually stripped using `strip' when the user
2478 # run `make install-strip'. However `strip' might not be the right
2479 # tool to use in cross-compilation environments, therefore Automake
2480 # will honor the `STRIP' environment variable to overrule this program.
2481 if test "$cross_compiling" != no; then
2482 if test -n "$ac_tool_prefix"; then
2483 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2484 set dummy ${ac_tool_prefix}strip; ac_word=$2
2485 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2487 if test "${ac_cv_prog_STRIP+set}" = set; then
2488 echo $ECHO_N "(cached) $ECHO_C" >&6
2490 if test -n "$STRIP"; then
2491 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2497 test -z "$as_dir" && as_dir=.
2498 for ac_exec_ext in '' $ac_executable_extensions; do
2499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2500 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2510 STRIP=$ac_cv_prog_STRIP
2511 if test -n "$STRIP"; then
2512 { echo "$as_me:$LINENO: result: $STRIP" >&5
2513 echo "${ECHO_T}$STRIP" >&6; }
2515 { echo "$as_me:$LINENO: result: no" >&5
2516 echo "${ECHO_T}no" >&6; }
2521 if test -z "$ac_cv_prog_STRIP"; then
2523 # Extract the first word of "strip", so it can be a program name with args.
2524 set dummy strip; ac_word=$2
2525 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2527 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2528 echo $ECHO_N "(cached) $ECHO_C" >&6
2530 if test -n "$ac_ct_STRIP"; then
2531 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2537 test -z "$as_dir" && as_dir=.
2538 for ac_exec_ext in '' $ac_executable_extensions; do
2539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2540 ac_cv_prog_ac_ct_STRIP="strip"
2541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2550 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2551 if test -n "$ac_ct_STRIP"; then
2552 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2553 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2555 { echo "$as_me:$LINENO: result: no" >&5
2556 echo "${ECHO_T}no" >&6; }
2559 if test "x$ac_ct_STRIP" = x; then
2562 case $cross_compiling:$ac_tool_warned in
2564 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2565 whose name does not start with the host triplet. If you think this
2566 configuration is useful to you, please write to autoconf@gnu.org." >&5
2567 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2568 whose name does not start with the host triplet. If you think this
2569 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2570 ac_tool_warned=yes ;;
2575 STRIP="$ac_cv_prog_STRIP"
2579 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2581 # We need awk for the "check" target. The system "awk" is bad on
2583 # Always define AMTAR for backward compatibility.
2585 AMTAR=${AMTAR-"${am_missing_run}tar"}
2587 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2594 ACLOCAL="$ACLOCAL -I acmacro"
2597 # Check whether --enable-shared was given.
2598 if test "${enable_shared+set}" = set; then
2599 enableval=$enable_shared; p=${PACKAGE-default}
2601 yes) enable_shared=yes ;;
2602 no) enable_shared=no ;;
2605 # Look at the argument we got. We use all the common list separators.
2606 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2607 for pkg in $enableval; do
2609 if test "X$pkg" = "X$p"; then
2621 # Check whether --enable-static was given.
2622 if test "${enable_static+set}" = set; then
2623 enableval=$enable_static; p=${PACKAGE-default}
2625 yes) enable_static=yes ;;
2626 no) enable_static=no ;;
2629 # Look at the argument we got. We use all the common list separators.
2630 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2631 for pkg in $enableval; do
2633 if test "X$pkg" = "X$p"; then
2645 # Check whether --enable-fast-install was given.
2646 if test "${enable_fast_install+set}" = set; then
2647 enableval=$enable_fast_install; p=${PACKAGE-default}
2649 yes) enable_fast_install=yes ;;
2650 no) enable_fast_install=no ;;
2652 enable_fast_install=no
2653 # Look at the argument we got. We use all the common list separators.
2654 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2655 for pkg in $enableval; do
2657 if test "X$pkg" = "X$p"; then
2658 enable_fast_install=yes
2665 enable_fast_install=yes
2669 DEPDIR="${am__leading_dot}deps"
2671 ac_config_commands="$ac_config_commands depfiles"
2674 am_make=${MAKE-make}
2675 cat > confinc << 'END'
2680 # If we don't find an include directive, just comment out the code.
2681 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2682 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2686 # First try GNU make style include.
2687 echo "include confinc" > confmf
2688 # We grep out `Entering directory' and `Leaving directory'
2689 # messages which can occur if `w' ends up in MAKEFLAGS.
2690 # In particular we don't look at `^make:' because GNU make might
2691 # be invoked under some other name (usually "gmake"), in which
2692 # case it prints its new name instead of `make'.
2693 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2698 # Now try BSD make style include.
2699 if test "$am__include" = "#"; then
2700 echo '.include "confinc"' > confmf
2701 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2702 am__include=.include
2709 { echo "$as_me:$LINENO: result: $_am_result" >&5
2710 echo "${ECHO_T}$_am_result" >&6; }
2711 rm -f confinc confmf
2713 # Check whether --enable-dependency-tracking was given.
2714 if test "${enable_dependency_tracking+set}" = set; then
2715 enableval=$enable_dependency_tracking;
2718 if test "x$enable_dependency_tracking" != xno; then
2719 am_depcomp="$ac_aux_dir/depcomp"
2724 if test "x$enable_dependency_tracking" != xno; then
2735 ac_cpp='$CPP $CPPFLAGS'
2736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2739 if test -n "$ac_tool_prefix"; then
2740 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2741 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2744 if test "${ac_cv_prog_CC+set}" = set; then
2745 echo $ECHO_N "(cached) $ECHO_C" >&6
2747 if test -n "$CC"; then
2748 ac_cv_prog_CC="$CC" # Let the user override the test.
2750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2754 test -z "$as_dir" && as_dir=.
2755 for ac_exec_ext in '' $ac_executable_extensions; do
2756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2757 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2768 if test -n "$CC"; then
2769 { echo "$as_me:$LINENO: result: $CC" >&5
2770 echo "${ECHO_T}$CC" >&6; }
2772 { echo "$as_me:$LINENO: result: no" >&5
2773 echo "${ECHO_T}no" >&6; }
2778 if test -z "$ac_cv_prog_CC"; then
2780 # Extract the first word of "gcc", so it can be a program name with args.
2781 set dummy gcc; ac_word=$2
2782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2784 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2785 echo $ECHO_N "(cached) $ECHO_C" >&6
2787 if test -n "$ac_ct_CC"; then
2788 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794 test -z "$as_dir" && as_dir=.
2795 for ac_exec_ext in '' $ac_executable_extensions; do
2796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2797 ac_cv_prog_ac_ct_CC="gcc"
2798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2807 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2808 if test -n "$ac_ct_CC"; then
2809 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2810 echo "${ECHO_T}$ac_ct_CC" >&6; }
2812 { echo "$as_me:$LINENO: result: no" >&5
2813 echo "${ECHO_T}no" >&6; }
2816 if test "x$ac_ct_CC" = x; then
2819 case $cross_compiling:$ac_tool_warned in
2821 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2822 whose name does not start with the host triplet. If you think this
2823 configuration is useful to you, please write to autoconf@gnu.org." >&5
2824 echo "$as_me: 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." >&2;}
2827 ac_tool_warned=yes ;;
2835 if test -z "$CC"; then
2836 if test -n "$ac_tool_prefix"; then
2837 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2838 set dummy ${ac_tool_prefix}cc; ac_word=$2
2839 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2841 if test "${ac_cv_prog_CC+set}" = set; then
2842 echo $ECHO_N "(cached) $ECHO_C" >&6
2844 if test -n "$CC"; then
2845 ac_cv_prog_CC="$CC" # Let the user override the test.
2847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2851 test -z "$as_dir" && as_dir=.
2852 for ac_exec_ext in '' $ac_executable_extensions; do
2853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2854 ac_cv_prog_CC="${ac_tool_prefix}cc"
2855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2865 if test -n "$CC"; then
2866 { echo "$as_me:$LINENO: result: $CC" >&5
2867 echo "${ECHO_T}$CC" >&6; }
2869 { echo "$as_me:$LINENO: result: no" >&5
2870 echo "${ECHO_T}no" >&6; }
2876 if test -z "$CC"; then
2877 # Extract the first word of "cc", so it can be a program name with args.
2878 set dummy cc; ac_word=$2
2879 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2881 if test "${ac_cv_prog_CC+set}" = set; then
2882 echo $ECHO_N "(cached) $ECHO_C" >&6
2884 if test -n "$CC"; then
2885 ac_cv_prog_CC="$CC" # Let the user override the test.
2888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2892 test -z "$as_dir" && as_dir=.
2893 for ac_exec_ext in '' $ac_executable_extensions; do
2894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2895 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2896 ac_prog_rejected=yes
2900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2907 if test $ac_prog_rejected = yes; then
2908 # We found a bogon in the path, so make sure we never use it.
2909 set dummy $ac_cv_prog_CC
2911 if test $# != 0; then
2912 # We chose a different compiler from the bogus one.
2913 # However, it has the same basename, so the bogon will be chosen
2914 # first if we set CC to just the basename; use the full file name.
2916 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2922 if test -n "$CC"; then
2923 { echo "$as_me:$LINENO: result: $CC" >&5
2924 echo "${ECHO_T}$CC" >&6; }
2926 { echo "$as_me:$LINENO: result: no" >&5
2927 echo "${ECHO_T}no" >&6; }
2932 if test -z "$CC"; then
2933 if test -n "$ac_tool_prefix"; then
2934 for ac_prog in cl.exe
2936 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2937 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2938 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2940 if test "${ac_cv_prog_CC+set}" = set; then
2941 echo $ECHO_N "(cached) $ECHO_C" >&6
2943 if test -n "$CC"; then
2944 ac_cv_prog_CC="$CC" # Let the user override the test.
2946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950 test -z "$as_dir" && as_dir=.
2951 for ac_exec_ext in '' $ac_executable_extensions; do
2952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2953 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2964 if test -n "$CC"; then
2965 { echo "$as_me:$LINENO: result: $CC" >&5
2966 echo "${ECHO_T}$CC" >&6; }
2968 { echo "$as_me:$LINENO: result: no" >&5
2969 echo "${ECHO_T}no" >&6; }
2973 test -n "$CC" && break
2976 if test -z "$CC"; then
2978 for ac_prog in cl.exe
2980 # Extract the first word of "$ac_prog", so it can be a program name with args.
2981 set dummy $ac_prog; ac_word=$2
2982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2984 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2985 echo $ECHO_N "(cached) $ECHO_C" >&6
2987 if test -n "$ac_ct_CC"; then
2988 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2994 test -z "$as_dir" && as_dir=.
2995 for ac_exec_ext in '' $ac_executable_extensions; do
2996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2997 ac_cv_prog_ac_ct_CC="$ac_prog"
2998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3007 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3008 if test -n "$ac_ct_CC"; then
3009 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3010 echo "${ECHO_T}$ac_ct_CC" >&6; }
3012 { echo "$as_me:$LINENO: result: no" >&5
3013 echo "${ECHO_T}no" >&6; }
3017 test -n "$ac_ct_CC" && break
3020 if test "x$ac_ct_CC" = x; then
3023 case $cross_compiling:$ac_tool_warned in
3025 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3026 whose name does not start with the host triplet. If you think this
3027 configuration is useful to you, please write to autoconf@gnu.org." >&5
3028 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3029 whose name does not start with the host triplet. If you think this
3030 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3031 ac_tool_warned=yes ;;
3040 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3041 See \`config.log' for more details." >&5
3042 echo "$as_me: error: no acceptable C compiler found in \$PATH
3043 See \`config.log' for more details." >&2;}
3044 { (exit 1); exit 1; }; }
3046 # Provide some information about the compiler.
3047 echo "$as_me:$LINENO: checking for C compiler version" >&5
3048 ac_compiler=`set X $ac_compile; echo $2`
3049 { (ac_try="$ac_compiler --version >&5"
3051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052 *) ac_try_echo=$ac_try;;
3054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3055 (eval "$ac_compiler --version >&5") 2>&5
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); }
3059 { (ac_try="$ac_compiler -v >&5"
3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062 *) ac_try_echo=$ac_try;;
3064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3065 (eval "$ac_compiler -v >&5") 2>&5
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); }
3069 { (ac_try="$ac_compiler -V >&5"
3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072 *) ac_try_echo=$ac_try;;
3074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3075 (eval "$ac_compiler -V >&5") 2>&5
3077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078 (exit $ac_status); }
3080 cat >conftest.$ac_ext <<_ACEOF
3083 cat confdefs.h >>conftest.$ac_ext
3084 cat >>conftest.$ac_ext <<_ACEOF
3085 /* end confdefs.h. */
3095 ac_clean_files_save=$ac_clean_files
3096 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3097 # Try to create an executable without -o first, disregard a.out.
3098 # It will help us diagnose broken compilers, and finding out an intuition
3100 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3101 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3102 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3104 # List of possible output files, starting from the most likely.
3105 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3106 # only as a last resort. b.out is created by i960 compilers.
3107 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3109 # The IRIX 6 linker writes into existing files which may not be
3110 # executable, retaining their permissions. Remove them first so a
3111 # subsequent execution test works.
3113 for ac_file in $ac_files
3116 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3117 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3122 if { (ac_try="$ac_link_default"
3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125 *) ac_try_echo=$ac_try;;
3127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3128 (eval "$ac_link_default") 2>&5
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); }; then
3132 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3133 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3134 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3135 # so that the user can short-circuit this test for compilers unknown to
3137 for ac_file in $ac_files ''
3139 test -f "$ac_file" || continue
3141 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3144 # We found the default executable, but exeext='' is most
3148 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3150 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3152 # We set ac_cv_exeext here because the later test for it is not
3153 # safe: cross compilers may not add the suffix if given an `-o'
3154 # argument, so we may need to know it at that point already.
3155 # Even if this section looks crufty: it has the advantage of
3162 test "$ac_cv_exeext" = no && ac_cv_exeext=
3168 { echo "$as_me:$LINENO: result: $ac_file" >&5
3169 echo "${ECHO_T}$ac_file" >&6; }
3170 if test -z "$ac_file"; then
3171 echo "$as_me: failed program was:" >&5
3172 sed 's/^/| /' conftest.$ac_ext >&5
3174 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3175 See \`config.log' for more details." >&5
3176 echo "$as_me: error: C compiler cannot create executables
3177 See \`config.log' for more details." >&2;}
3178 { (exit 77); exit 77; }; }
3181 ac_exeext=$ac_cv_exeext
3183 # Check that the compiler produces executables we can run. If not, either
3184 # the compiler is broken, or we cross compile.
3185 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3186 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3187 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3188 # If not cross compiling, check that we can run a simple program.
3189 if test "$cross_compiling" != yes; then
3190 if { ac_try='./$ac_file'
3191 { (case "(($ac_try" in
3192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3193 *) ac_try_echo=$ac_try;;
3195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3196 (eval "$ac_try") 2>&5
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); }; }; then
3202 if test "$cross_compiling" = maybe; then
3205 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3206 If you meant to cross compile, use \`--host'.
3207 See \`config.log' for more details." >&5
3208 echo "$as_me: error: cannot run C compiled programs.
3209 If you meant to cross compile, use \`--host'.
3210 See \`config.log' for more details." >&2;}
3211 { (exit 1); exit 1; }; }
3215 { echo "$as_me:$LINENO: result: yes" >&5
3216 echo "${ECHO_T}yes" >&6; }
3218 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3219 ac_clean_files=$ac_clean_files_save
3220 # Check that the compiler produces executables we can run. If not, either
3221 # the compiler is broken, or we cross compile.
3222 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3223 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3224 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3225 echo "${ECHO_T}$cross_compiling" >&6; }
3227 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3228 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3229 if { (ac_try="$ac_link"
3231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232 *) ac_try_echo=$ac_try;;
3234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3235 (eval "$ac_link") 2>&5
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); }; then
3239 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3240 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3241 # work properly (i.e., refer to `conftest.exe'), while it won't with
3243 for ac_file in conftest.exe conftest conftest.*; do
3244 test -f "$ac_file" || continue
3246 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3247 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3253 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3254 See \`config.log' for more details." >&5
3255 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3256 See \`config.log' for more details." >&2;}
3257 { (exit 1); exit 1; }; }
3260 rm -f conftest$ac_cv_exeext
3261 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3262 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3264 rm -f conftest.$ac_ext
3265 EXEEXT=$ac_cv_exeext
3267 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3268 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3269 if test "${ac_cv_objext+set}" = set; then
3270 echo $ECHO_N "(cached) $ECHO_C" >&6
3272 cat >conftest.$ac_ext <<_ACEOF
3275 cat confdefs.h >>conftest.$ac_ext
3276 cat >>conftest.$ac_ext <<_ACEOF
3277 /* end confdefs.h. */
3287 rm -f conftest.o conftest.obj
3288 if { (ac_try="$ac_compile"
3290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291 *) ac_try_echo=$ac_try;;
3293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3294 (eval "$ac_compile") 2>&5
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); }; then
3298 for ac_file in conftest.o conftest.obj conftest.*; do
3299 test -f "$ac_file" || continue;
3301 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3302 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3307 echo "$as_me: failed program was:" >&5
3308 sed 's/^/| /' conftest.$ac_ext >&5
3310 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3311 See \`config.log' for more details." >&5
3312 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3313 See \`config.log' for more details." >&2;}
3314 { (exit 1); exit 1; }; }
3317 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3319 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3320 echo "${ECHO_T}$ac_cv_objext" >&6; }
3321 OBJEXT=$ac_cv_objext
3323 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3324 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3325 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3326 echo $ECHO_N "(cached) $ECHO_C" >&6
3328 cat >conftest.$ac_ext <<_ACEOF
3331 cat confdefs.h >>conftest.$ac_ext
3332 cat >>conftest.$ac_ext <<_ACEOF
3333 /* end confdefs.h. */
3346 rm -f conftest.$ac_objext
3347 if { (ac_try="$ac_compile"
3349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350 *) ac_try_echo=$ac_try;;
3352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3353 (eval "$ac_compile") 2>conftest.er1
3355 grep -v '^ *+' conftest.er1 >conftest.err
3357 cat conftest.err >&5
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); } && {
3360 test -z "$ac_c_werror_flag" ||
3361 test ! -s conftest.err
3362 } && test -s conftest.$ac_objext; then
3365 echo "$as_me: failed program was:" >&5
3366 sed 's/^/| /' conftest.$ac_ext >&5
3371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3372 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3375 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3376 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3377 GCC=`test $ac_compiler_gnu = yes && echo yes`
3378 ac_test_CFLAGS=${CFLAGS+set}
3379 ac_save_CFLAGS=$CFLAGS
3380 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3381 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3382 if test "${ac_cv_prog_cc_g+set}" = set; then
3383 echo $ECHO_N "(cached) $ECHO_C" >&6
3385 ac_save_c_werror_flag=$ac_c_werror_flag
3386 ac_c_werror_flag=yes
3389 cat >conftest.$ac_ext <<_ACEOF
3392 cat confdefs.h >>conftest.$ac_ext
3393 cat >>conftest.$ac_ext <<_ACEOF
3394 /* end confdefs.h. */
3404 rm -f conftest.$ac_objext
3405 if { (ac_try="$ac_compile"
3407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3408 *) ac_try_echo=$ac_try;;
3410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3411 (eval "$ac_compile") 2>conftest.er1
3413 grep -v '^ *+' conftest.er1 >conftest.err
3415 cat conftest.err >&5
3416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417 (exit $ac_status); } && {
3418 test -z "$ac_c_werror_flag" ||
3419 test ! -s conftest.err
3420 } && test -s conftest.$ac_objext; then
3423 echo "$as_me: failed program was:" >&5
3424 sed 's/^/| /' conftest.$ac_ext >&5
3427 cat >conftest.$ac_ext <<_ACEOF
3430 cat confdefs.h >>conftest.$ac_ext
3431 cat >>conftest.$ac_ext <<_ACEOF
3432 /* end confdefs.h. */
3442 rm -f conftest.$ac_objext
3443 if { (ac_try="$ac_compile"
3445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3446 *) ac_try_echo=$ac_try;;
3448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3449 (eval "$ac_compile") 2>conftest.er1
3451 grep -v '^ *+' conftest.er1 >conftest.err
3453 cat conftest.err >&5
3454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455 (exit $ac_status); } && {
3456 test -z "$ac_c_werror_flag" ||
3457 test ! -s conftest.err
3458 } && test -s conftest.$ac_objext; then
3461 echo "$as_me: failed program was:" >&5
3462 sed 's/^/| /' conftest.$ac_ext >&5
3464 ac_c_werror_flag=$ac_save_c_werror_flag
3466 cat >conftest.$ac_ext <<_ACEOF
3469 cat confdefs.h >>conftest.$ac_ext
3470 cat >>conftest.$ac_ext <<_ACEOF
3471 /* end confdefs.h. */
3481 rm -f conftest.$ac_objext
3482 if { (ac_try="$ac_compile"
3484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485 *) ac_try_echo=$ac_try;;
3487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3488 (eval "$ac_compile") 2>conftest.er1
3490 grep -v '^ *+' conftest.er1 >conftest.err
3492 cat conftest.err >&5
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); } && {
3495 test -z "$ac_c_werror_flag" ||
3496 test ! -s conftest.err
3497 } && test -s conftest.$ac_objext; then
3500 echo "$as_me: failed program was:" >&5
3501 sed 's/^/| /' conftest.$ac_ext >&5
3506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3513 ac_c_werror_flag=$ac_save_c_werror_flag
3515 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3516 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3517 if test "$ac_test_CFLAGS" = set; then
3518 CFLAGS=$ac_save_CFLAGS
3519 elif test $ac_cv_prog_cc_g = yes; then
3520 if test "$GCC" = yes; then
3526 if test "$GCC" = yes; then
3532 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3533 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3534 if test "${ac_cv_prog_cc_c89+set}" = set; then
3535 echo $ECHO_N "(cached) $ECHO_C" >&6
3537 ac_cv_prog_cc_c89=no
3539 cat >conftest.$ac_ext <<_ACEOF
3542 cat confdefs.h >>conftest.$ac_ext
3543 cat >>conftest.$ac_ext <<_ACEOF
3544 /* end confdefs.h. */
3547 #include <sys/types.h>
3548 #include <sys/stat.h>
3549 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3550 struct buf { int x; };
3551 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3552 static char *e (p, i)
3558 static char *f (char * (*g) (char **, int), char **p, ...)
3563 s = g (p, va_arg (v,int));
3568 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3569 function prototypes and stuff, but not '\xHH' hex character constants.
3570 These don't provoke an error unfortunately, instead are silently treated
3571 as 'x'. The following induces an error, until -std is added to get
3572 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3573 array size at least. It's necessary to write '\x00'==0 to get something
3574 that's true only with -std. */
3575 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3577 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3578 inside strings and character constants. */
3580 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3582 int test (int i, double x);
3583 struct s1 {int (*f) (int a);};
3584 struct s2 {int (*f) (double a);};
3585 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3591 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3596 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3597 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3599 CC="$ac_save_CC $ac_arg"
3600 rm -f conftest.$ac_objext
3601 if { (ac_try="$ac_compile"
3603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604 *) ac_try_echo=$ac_try;;
3606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3607 (eval "$ac_compile") 2>conftest.er1
3609 grep -v '^ *+' conftest.er1 >conftest.err
3611 cat conftest.err >&5
3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613 (exit $ac_status); } && {
3614 test -z "$ac_c_werror_flag" ||
3615 test ! -s conftest.err
3616 } && test -s conftest.$ac_objext; then
3617 ac_cv_prog_cc_c89=$ac_arg
3619 echo "$as_me: failed program was:" >&5
3620 sed 's/^/| /' conftest.$ac_ext >&5
3625 rm -f core conftest.err conftest.$ac_objext
3626 test "x$ac_cv_prog_cc_c89" != "xno" && break
3628 rm -f conftest.$ac_ext
3633 case "x$ac_cv_prog_cc_c89" in
3635 { echo "$as_me:$LINENO: result: none needed" >&5
3636 echo "${ECHO_T}none needed" >&6; } ;;
3638 { echo "$as_me:$LINENO: result: unsupported" >&5
3639 echo "${ECHO_T}unsupported" >&6; } ;;
3641 CC="$CC $ac_cv_prog_cc_c89"
3642 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3643 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3648 ac_cpp='$CPP $CPPFLAGS'
3649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3653 depcc="$CC" am_compiler_list=
3655 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3656 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3657 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3658 echo $ECHO_N "(cached) $ECHO_C" >&6
3660 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3661 # We make a subdir and do the tests there. Otherwise we can end up
3662 # making bogus files that we don't know about and never remove. For
3663 # instance it was reported that on HP-UX the gcc test will end up
3664 # making a dummy file named `D' -- because `-MD' means `put the output
3667 # Copy depcomp to subdir because otherwise we won't find it if we're
3668 # using a relative directory.
3669 cp "$am_depcomp" conftest.dir
3671 # We will build objects and dependencies in a subdirectory because
3672 # it helps to detect inapplicable dependency modes. For instance
3673 # both Tru64's cc and ICC support -MD to output dependencies as a
3674 # side effect of compilation, but ICC will put the dependencies in
3675 # the current directory while Tru64 will put them in the object
3679 am_cv_CC_dependencies_compiler_type=none
3680 if test "$am_compiler_list" = ""; then
3681 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3683 for depmode in $am_compiler_list; do
3684 # Setup a source with many dependencies, because some compilers
3685 # like to wrap large dependency lists on column 80 (with \), and
3686 # we should not choose a depcomp mode which is confused by this.
3688 # We need to recreate these files for each test, as the compiler may
3689 # overwrite some of them when testing with obscure command lines.
3690 # This happens at least with the AIX C compiler.
3692 for i in 1 2 3 4 5 6; do
3693 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3694 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3695 # Solaris 8's {/usr,}/bin/sh.
3696 touch sub/conftst$i.h
3698 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3702 # after this tag, mechanisms are not by side-effect, so they'll
3703 # only be used when explicitly requested
3704 if test "x$enable_dependency_tracking" = xyes; then
3712 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3713 # mode. It turns out that the SunPro C++ compiler does not properly
3714 # handle `-M -o', and we need to detect this.
3715 if depmode=$depmode \
3716 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3717 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3718 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3719 >/dev/null 2>conftest.err &&
3720 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3721 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3722 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3723 # icc doesn't choke on unknown options, it will just issue warnings
3724 # or remarks (even with -Werror). So we grep stderr for any message
3725 # that says an option was ignored or not supported.
3726 # When given -MP, icc 7.0 and 7.1 complain thusly:
3727 # icc: Command line warning: ignoring option '-M'; no argument required
3728 # The diagnosis changed in icc 8.0:
3729 # icc: Command line remark: option '-MP' not supported
3730 if (grep 'ignoring option' conftest.err ||
3731 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3732 am_cv_CC_dependencies_compiler_type=$depmode
3741 am_cv_CC_dependencies_compiler_type=none
3745 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3746 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3747 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3752 test "x$enable_dependency_tracking" != xno \
3753 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3755 am__fastdepCC_FALSE='#'
3757 am__fastdepCC_TRUE='#'
3758 am__fastdepCC_FALSE=
3762 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3763 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3764 if test "${lt_cv_path_SED+set}" = set; then
3765 echo $ECHO_N "(cached) $ECHO_C" >&6
3767 # Loop through the user's path and test for sed and gsed.
3768 # Then use that list of sed's as ones to test for truncation.
3769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3773 test -z "$as_dir" && as_dir=.
3774 for lt_ac_prog in sed gsed; do
3775 for ac_exec_ext in '' $ac_executable_extensions; do
3776 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3777 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3784 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3785 # along with /bin/sed that truncates output.
3786 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3787 test ! -f $lt_ac_sed && continue
3788 cat /dev/null > conftest.in
3790 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3791 # Check for GNU sed and select it if it is found.
3792 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3793 lt_cv_path_SED=$lt_ac_sed
3797 cat conftest.in conftest.in >conftest.tmp
3798 mv conftest.tmp conftest.in
3799 cp conftest.in conftest.nl
3801 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3802 cmp -s conftest.out conftest.nl || break
3803 # 10000 chars as input seems more than enough
3804 test $lt_ac_count -gt 10 && break
3805 lt_ac_count=`expr $lt_ac_count + 1`
3806 if test $lt_ac_count -gt $lt_ac_max; then
3807 lt_ac_max=$lt_ac_count
3808 lt_cv_path_SED=$lt_ac_sed
3816 { echo "$as_me:$LINENO: result: $SED" >&5
3817 echo "${ECHO_T}$SED" >&6; }
3819 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3820 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3821 if test "${ac_cv_path_GREP+set}" = set; then
3822 echo $ECHO_N "(cached) $ECHO_C" >&6
3824 # Extract the first word of "grep ggrep" to use in msg output
3825 if test -z "$GREP"; then
3826 set dummy grep ggrep; ac_prog_name=$2
3827 if test "${ac_cv_path_GREP+set}" = set; then
3828 echo $ECHO_N "(cached) $ECHO_C" >&6
3830 ac_path_GREP_found=false
3831 # Loop through the user's path and test for each of PROGNAME-LIST
3832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3833 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3836 test -z "$as_dir" && as_dir=.
3837 for ac_prog in grep ggrep; do
3838 for ac_exec_ext in '' $ac_executable_extensions; do
3839 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3840 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3841 # Check for GNU ac_path_GREP and select it if it is found.
3842 # Check for GNU $ac_path_GREP
3843 case `"$ac_path_GREP" --version 2>&1` in
3845 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3848 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3851 cat "conftest.in" "conftest.in" >"conftest.tmp"
3852 mv "conftest.tmp" "conftest.in"
3853 cp "conftest.in" "conftest.nl"
3854 echo 'GREP' >> "conftest.nl"
3855 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3856 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3857 ac_count=`expr $ac_count + 1`
3858 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3859 # Best one so far, save it but keep looking for a better one
3860 ac_cv_path_GREP="$ac_path_GREP"
3861 ac_path_GREP_max=$ac_count
3863 # 10*(2^10) chars as input seems more than enough
3864 test $ac_count -gt 10 && break
3866 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3870 $ac_path_GREP_found && break 3
3880 GREP="$ac_cv_path_GREP"
3881 if test -z "$GREP"; then
3882 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3883 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3884 { (exit 1); exit 1; }; }
3888 ac_cv_path_GREP=$GREP
3893 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3894 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3895 GREP="$ac_cv_path_GREP"
3898 { echo "$as_me:$LINENO: checking for egrep" >&5
3899 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3900 if test "${ac_cv_path_EGREP+set}" = set; then
3901 echo $ECHO_N "(cached) $ECHO_C" >&6
3903 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3904 then ac_cv_path_EGREP="$GREP -E"
3906 # Extract the first word of "egrep" to use in msg output
3907 if test -z "$EGREP"; then
3908 set dummy egrep; ac_prog_name=$2
3909 if test "${ac_cv_path_EGREP+set}" = set; then
3910 echo $ECHO_N "(cached) $ECHO_C" >&6
3912 ac_path_EGREP_found=false
3913 # Loop through the user's path and test for each of PROGNAME-LIST
3914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3918 test -z "$as_dir" && as_dir=.
3919 for ac_prog in egrep; do
3920 for ac_exec_ext in '' $ac_executable_extensions; do
3921 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3922 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3923 # Check for GNU ac_path_EGREP and select it if it is found.
3924 # Check for GNU $ac_path_EGREP
3925 case `"$ac_path_EGREP" --version 2>&1` in
3927 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3930 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3933 cat "conftest.in" "conftest.in" >"conftest.tmp"
3934 mv "conftest.tmp" "conftest.in"
3935 cp "conftest.in" "conftest.nl"
3936 echo 'EGREP' >> "conftest.nl"
3937 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3938 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3939 ac_count=`expr $ac_count + 1`
3940 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3941 # Best one so far, save it but keep looking for a better one
3942 ac_cv_path_EGREP="$ac_path_EGREP"
3943 ac_path_EGREP_max=$ac_count
3945 # 10*(2^10) chars as input seems more than enough
3946 test $ac_count -gt 10 && break
3948 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3952 $ac_path_EGREP_found && break 3
3962 EGREP="$ac_cv_path_EGREP"
3963 if test -z "$EGREP"; then
3964 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3965 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3966 { (exit 1); exit 1; }; }
3970 ac_cv_path_EGREP=$EGREP
3976 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3977 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3978 EGREP="$ac_cv_path_EGREP"
3982 # Check whether --with-gnu-ld was given.
3983 if test "${with_gnu_ld+set}" = set; then
3984 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3990 if test "$GCC" = yes; then
3991 # Check if gcc -print-prog-name=ld gives a path.
3992 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3993 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3996 # gcc leaves a trailing carriage return which upsets mingw
3997 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3999 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4002 # Accept absolute paths.
4004 re_direlt='/[^/][^/]*/\.\./'
4005 # Canonicalize the pathname of ld
4006 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4007 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4008 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4010 test -z "$LD" && LD="$ac_prog"
4013 # If it fails, then pretend we aren't using GCC.
4017 # If it is relative, then search for the first ld in PATH.
4021 elif test "$with_gnu_ld" = yes; then
4022 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4023 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4025 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4026 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4028 if test "${lt_cv_path_LD+set}" = set; then
4029 echo $ECHO_N "(cached) $ECHO_C" >&6
4031 if test -z "$LD"; then
4032 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4033 for ac_dir in $PATH; do
4035 test -z "$ac_dir" && ac_dir=.
4036 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4037 lt_cv_path_LD="$ac_dir/$ac_prog"
4038 # Check to see if the program is GNU ld. I'd rather use --version,
4039 # but apparently some variants of GNU ld only accept -v.
4040 # Break only if it was the GNU/non-GNU ld that we prefer.
4041 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4042 *GNU* | *'with BFD'*)
4043 test "$with_gnu_ld" != no && break
4046 test "$with_gnu_ld" != yes && break
4053 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4058 if test -n "$LD"; then
4059 { echo "$as_me:$LINENO: result: $LD" >&5
4060 echo "${ECHO_T}$LD" >&6; }
4062 { echo "$as_me:$LINENO: result: no" >&5
4063 echo "${ECHO_T}no" >&6; }
4065 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4066 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4067 { (exit 1); exit 1; }; }
4068 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4069 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4070 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4071 echo $ECHO_N "(cached) $ECHO_C" >&6
4073 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4074 case `$LD -v 2>&1 </dev/null` in
4075 *GNU* | *'with BFD'*)
4076 lt_cv_prog_gnu_ld=yes
4079 lt_cv_prog_gnu_ld=no
4083 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4084 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4085 with_gnu_ld=$lt_cv_prog_gnu_ld
4088 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4089 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4090 if test "${lt_cv_ld_reload_flag+set}" = set; then
4091 echo $ECHO_N "(cached) $ECHO_C" >&6
4093 lt_cv_ld_reload_flag='-r'
4095 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4096 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4097 reload_flag=$lt_cv_ld_reload_flag
4098 case $reload_flag in
4100 *) reload_flag=" $reload_flag" ;;
4102 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4105 if test "$GCC" = yes; then
4106 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4108 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4113 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4114 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4115 if test "${lt_cv_path_NM+set}" = set; then
4116 echo $ECHO_N "(cached) $ECHO_C" >&6
4118 if test -n "$NM"; then
4119 # Let the user override the test.
4122 lt_nm_to_check="${ac_tool_prefix}nm"
4123 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4124 lt_nm_to_check="$lt_nm_to_check nm"
4126 for lt_tmp_nm in $lt_nm_to_check; do
4127 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4128 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4130 test -z "$ac_dir" && ac_dir=.
4131 tmp_nm="$ac_dir/$lt_tmp_nm"
4132 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4133 # Check to see if the nm accepts a BSD-compat flag.
4134 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4135 # nm: unknown option "B" ignored
4136 # Tru64's nm complains that /dev/null is an invalid object file
4137 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4138 */dev/null* | *'Invalid file or object type'*)
4139 lt_cv_path_NM="$tmp_nm -B"
4143 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4145 lt_cv_path_NM="$tmp_nm -p"
4149 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4150 continue # so that we can try to find one that supports BSD flags
4159 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4162 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4163 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4166 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4167 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4169 if test "$LN_S" = "ln -s"; then
4170 { echo "$as_me:$LINENO: result: yes" >&5
4171 echo "${ECHO_T}yes" >&6; }
4173 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4174 echo "${ECHO_T}no, using $LN_S" >&6; }
4177 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4178 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4179 if test "${lt_cv_deplibs_check_method+set}" = set; then
4180 echo $ECHO_N "(cached) $ECHO_C" >&6
4182 lt_cv_file_magic_cmd='$MAGIC_CMD'
4183 lt_cv_file_magic_test_file=
4184 lt_cv_deplibs_check_method='unknown'
4185 # Need to set the preceding variable on all platforms that support
4186 # interlibrary dependencies.
4187 # 'none' -- dependencies not supported.
4188 # `unknown' -- same as none, but documents that we really don't know.
4189 # 'pass_all' -- all dependencies passed with no checks.
4190 # 'test_compile' -- check by making test program.
4191 # 'file_magic [[regex]]' -- check by looking for files in library path
4192 # which responds to the $file_magic_cmd with a given extended regex.
4193 # If you have `file' or equivalent on your system and you're not sure
4194 # whether `pass_all' will *always* work, you probably want this one.
4198 lt_cv_deplibs_check_method=pass_all
4202 lt_cv_deplibs_check_method=pass_all
4206 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4207 lt_cv_file_magic_cmd='/usr/bin/file -L'
4208 lt_cv_file_magic_test_file=/shlib/libc.so
4212 # func_win32_libid is a shell function defined in ltmain.sh
4213 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4214 lt_cv_file_magic_cmd='func_win32_libid'
4218 # Base MSYS/MinGW do not provide the 'file' command needed by
4219 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4220 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4221 lt_cv_file_magic_cmd='$OBJDUMP -f'
4224 darwin* | rhapsody*)
4225 lt_cv_deplibs_check_method=pass_all
4228 freebsd* | dragonfly*)
4229 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4232 # Not sure whether the presence of OpenBSD here was a mistake.
4233 # Let's accept both of them until this is cleared up.
4234 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4235 lt_cv_file_magic_cmd=/usr/bin/file
4236 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4240 lt_cv_deplibs_check_method=pass_all
4245 lt_cv_deplibs_check_method=pass_all
4248 hpux10.20* | hpux11*)
4249 lt_cv_file_magic_cmd=/usr/bin/file
4252 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4253 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4256 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]'
4257 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4260 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4261 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4267 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4268 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4271 irix5* | irix6* | nonstopux*)
4273 *-32|*"-32 ") libmagic=32-bit;;
4274 *-n32|*"-n32 ") libmagic=N32;;
4275 *-64|*"-64 ") libmagic=64-bit;;
4276 *) libmagic=never-match;;
4278 lt_cv_deplibs_check_method=pass_all
4281 # This must be Linux ELF.
4282 linux* | k*bsd*-gnu)
4283 lt_cv_deplibs_check_method=pass_all
4286 netbsd* | netbsdelf*-gnu)
4287 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4288 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4290 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4295 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4296 lt_cv_file_magic_cmd=/usr/bin/file
4297 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4301 lt_cv_deplibs_check_method=unknown
4305 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4306 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4308 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4312 osf3* | osf4* | osf5*)
4313 lt_cv_deplibs_check_method=pass_all
4317 lt_cv_deplibs_check_method=pass_all
4321 case $host_vendor in
4323 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]'
4324 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4327 lt_cv_deplibs_check_method=pass_all
4330 lt_cv_file_magic_cmd='/bin/file'
4331 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4334 lt_cv_file_magic_cmd='/bin/file'
4335 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4336 lt_cv_file_magic_test_file=/lib/libc.so
4339 lt_cv_deplibs_check_method=pass_all
4342 lt_cv_deplibs_check_method=pass_all
4347 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4348 lt_cv_deplibs_check_method=pass_all
4353 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4354 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4355 file_magic_cmd=$lt_cv_file_magic_cmd
4356 deplibs_check_method=$lt_cv_deplibs_check_method
4357 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4362 # If no C compiler was specified, use CC.
4365 # If no C compiler flags were specified, use CFLAGS.
4366 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4368 # Allow CC to be a program name with arguments.
4372 # Check whether --enable-libtool-lock was given.
4373 if test "${enable_libtool_lock+set}" = set; then
4374 enableval=$enable_libtool_lock;
4377 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4379 # Some flags need to be propagated to the compiler or linker for good
4383 # Find out which ABI we are using.
4384 echo 'int i;' > conftest.$ac_ext
4385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4386 (eval $ac_compile) 2>&5
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); }; then
4390 case `/usr/bin/file conftest.$ac_objext` in
4402 # Find out which ABI we are using.
4403 echo '#line 4403 "configure"' > conftest.$ac_ext
4404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4405 (eval $ac_compile) 2>&5
4407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408 (exit $ac_status); }; then
4409 if test "$lt_cv_prog_gnu_ld" = yes; then
4410 case `/usr/bin/file conftest.$ac_objext` in
4412 LD="${LD-ld} -melf32bsmip"
4415 LD="${LD-ld} -melf32bmipn32"
4418 LD="${LD-ld} -melf64bmip"
4422 case `/usr/bin/file conftest.$ac_objext` in
4438 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4439 # Find out which ABI we are using.
4440 echo 'int i;' > conftest.$ac_ext
4441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4442 (eval $ac_compile) 2>&5
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); }; then
4446 case `/usr/bin/file conftest.o` in
4450 LD="${LD-ld} -m elf_i386"
4452 ppc64-*linux*|powerpc64-*linux*)
4453 LD="${LD-ld} -m elf32ppclinux"
4456 LD="${LD-ld} -m elf_s390"
4459 LD="${LD-ld} -m elf32_sparc"
4466 LD="${LD-ld} -m elf_x86_64"
4468 ppc*-*linux*|powerpc*-*linux*)
4469 LD="${LD-ld} -m elf64ppc"
4472 LD="${LD-ld} -m elf64_s390"
4475 LD="${LD-ld} -m elf64_sparc"
4485 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4486 SAVE_CFLAGS="$CFLAGS"
4487 CFLAGS="$CFLAGS -belf"
4488 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4489 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4490 if test "${lt_cv_cc_needs_belf+set}" = set; then
4491 echo $ECHO_N "(cached) $ECHO_C" >&6
4494 ac_cpp='$CPP $CPPFLAGS'
4495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4499 cat >conftest.$ac_ext <<_ACEOF
4502 cat confdefs.h >>conftest.$ac_ext
4503 cat >>conftest.$ac_ext <<_ACEOF
4504 /* end confdefs.h. */
4514 rm -f conftest.$ac_objext conftest$ac_exeext
4515 if { (ac_try="$ac_link"
4517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4518 *) ac_try_echo=$ac_try;;
4520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4521 (eval "$ac_link") 2>conftest.er1
4523 grep -v '^ *+' conftest.er1 >conftest.err
4525 cat conftest.err >&5
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); } && {
4528 test -z "$ac_c_werror_flag" ||
4529 test ! -s conftest.err
4530 } && test -s conftest$ac_exeext &&
4531 $as_test_x conftest$ac_exeext; then
4532 lt_cv_cc_needs_belf=yes
4534 echo "$as_me: failed program was:" >&5
4535 sed 's/^/| /' conftest.$ac_ext >&5
4537 lt_cv_cc_needs_belf=no
4540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4541 conftest$ac_exeext conftest.$ac_ext
4543 ac_cpp='$CPP $CPPFLAGS'
4544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4549 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4550 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4551 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4552 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4553 CFLAGS="$SAVE_CFLAGS"
4557 # Find out which ABI we are using.
4558 echo 'int i;' > conftest.$ac_ext
4559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4560 (eval $ac_compile) 2>&5
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); }; then
4564 case `/usr/bin/file conftest.o` in
4566 case $lt_cv_prog_gnu_ld in
4567 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4568 *) LD="${LD-ld} -64" ;;
4576 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4577 if test -n "$ac_tool_prefix"; then
4578 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4579 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4580 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4582 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4583 echo $ECHO_N "(cached) $ECHO_C" >&6
4585 if test -n "$DLLTOOL"; then
4586 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4592 test -z "$as_dir" && as_dir=.
4593 for ac_exec_ext in '' $ac_executable_extensions; do
4594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4595 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4605 DLLTOOL=$ac_cv_prog_DLLTOOL
4606 if test -n "$DLLTOOL"; then
4607 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4608 echo "${ECHO_T}$DLLTOOL" >&6; }
4610 { echo "$as_me:$LINENO: result: no" >&5
4611 echo "${ECHO_T}no" >&6; }
4616 if test -z "$ac_cv_prog_DLLTOOL"; then
4617 ac_ct_DLLTOOL=$DLLTOOL
4618 # Extract the first word of "dlltool", so it can be a program name with args.
4619 set dummy dlltool; ac_word=$2
4620 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4622 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4623 echo $ECHO_N "(cached) $ECHO_C" >&6
4625 if test -n "$ac_ct_DLLTOOL"; then
4626 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4632 test -z "$as_dir" && as_dir=.
4633 for ac_exec_ext in '' $ac_executable_extensions; do
4634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4635 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4645 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4646 if test -n "$ac_ct_DLLTOOL"; then
4647 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4648 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
4650 { echo "$as_me:$LINENO: result: no" >&5
4651 echo "${ECHO_T}no" >&6; }
4654 if test "x$ac_ct_DLLTOOL" = x; then
4657 case $cross_compiling:$ac_tool_warned in
4659 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4660 whose name does not start with the host triplet. If you think this
4661 configuration is useful to you, please write to autoconf@gnu.org." >&5
4662 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4663 whose name does not start with the host triplet. If you think this
4664 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4665 ac_tool_warned=yes ;;
4667 DLLTOOL=$ac_ct_DLLTOOL
4670 DLLTOOL="$ac_cv_prog_DLLTOOL"
4673 if test -n "$ac_tool_prefix"; then
4674 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4675 set dummy ${ac_tool_prefix}as; ac_word=$2
4676 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4678 if test "${ac_cv_prog_AS+set}" = set; then
4679 echo $ECHO_N "(cached) $ECHO_C" >&6
4681 if test -n "$AS"; then
4682 ac_cv_prog_AS="$AS" # Let the user override the test.
4684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4688 test -z "$as_dir" && as_dir=.
4689 for ac_exec_ext in '' $ac_executable_extensions; do
4690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4691 ac_cv_prog_AS="${ac_tool_prefix}as"
4692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4702 if test -n "$AS"; then
4703 { echo "$as_me:$LINENO: result: $AS" >&5
4704 echo "${ECHO_T}$AS" >&6; }
4706 { echo "$as_me:$LINENO: result: no" >&5
4707 echo "${ECHO_T}no" >&6; }
4712 if test -z "$ac_cv_prog_AS"; then
4714 # Extract the first word of "as", so it can be a program name with args.
4715 set dummy as; ac_word=$2
4716 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4718 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4719 echo $ECHO_N "(cached) $ECHO_C" >&6
4721 if test -n "$ac_ct_AS"; then
4722 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4728 test -z "$as_dir" && as_dir=.
4729 for ac_exec_ext in '' $ac_executable_extensions; do
4730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4731 ac_cv_prog_ac_ct_AS="as"
4732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4741 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4742 if test -n "$ac_ct_AS"; then
4743 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4744 echo "${ECHO_T}$ac_ct_AS" >&6; }
4746 { echo "$as_me:$LINENO: result: no" >&5
4747 echo "${ECHO_T}no" >&6; }
4750 if test "x$ac_ct_AS" = x; then
4753 case $cross_compiling:$ac_tool_warned in
4755 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4756 whose name does not start with the host triplet. If you think this
4757 configuration is useful to you, please write to autoconf@gnu.org." >&5
4758 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4759 whose name does not start with the host triplet. If you think this
4760 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4761 ac_tool_warned=yes ;;
4769 if test -n "$ac_tool_prefix"; then
4770 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4771 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4772 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4774 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4775 echo $ECHO_N "(cached) $ECHO_C" >&6
4777 if test -n "$OBJDUMP"; then
4778 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4784 test -z "$as_dir" && as_dir=.
4785 for ac_exec_ext in '' $ac_executable_extensions; do
4786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4787 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4797 OBJDUMP=$ac_cv_prog_OBJDUMP
4798 if test -n "$OBJDUMP"; then
4799 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4800 echo "${ECHO_T}$OBJDUMP" >&6; }
4802 { echo "$as_me:$LINENO: result: no" >&5
4803 echo "${ECHO_T}no" >&6; }
4808 if test -z "$ac_cv_prog_OBJDUMP"; then
4809 ac_ct_OBJDUMP=$OBJDUMP
4810 # Extract the first word of "objdump", so it can be a program name with args.
4811 set dummy objdump; ac_word=$2
4812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4814 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4815 echo $ECHO_N "(cached) $ECHO_C" >&6
4817 if test -n "$ac_ct_OBJDUMP"; then
4818 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824 test -z "$as_dir" && as_dir=.
4825 for ac_exec_ext in '' $ac_executable_extensions; do
4826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4827 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4837 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4838 if test -n "$ac_ct_OBJDUMP"; then
4839 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4840 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
4842 { echo "$as_me:$LINENO: result: no" >&5
4843 echo "${ECHO_T}no" >&6; }
4846 if test "x$ac_ct_OBJDUMP" = x; then
4849 case $cross_compiling:$ac_tool_warned in
4851 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4852 whose name does not start with the host triplet. If you think this
4853 configuration is useful to you, please write to autoconf@gnu.org." >&5
4854 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4855 whose name does not start with the host triplet. If you think this
4856 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4857 ac_tool_warned=yes ;;
4859 OBJDUMP=$ac_ct_OBJDUMP
4862 OBJDUMP="$ac_cv_prog_OBJDUMP"
4869 need_locks="$enable_libtool_lock"
4873 ac_cpp='$CPP $CPPFLAGS'
4874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4877 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4878 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4879 # On Suns, sometimes $CPP names a directory.
4880 if test -n "$CPP" && test -d "$CPP"; then
4883 if test -z "$CPP"; then
4884 if test "${ac_cv_prog_CPP+set}" = set; then
4885 echo $ECHO_N "(cached) $ECHO_C" >&6
4887 # Double quotes because CPP needs to be expanded
4888 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4891 for ac_c_preproc_warn_flag in '' yes
4893 # Use a header file that comes with gcc, so configuring glibc
4894 # with a fresh cross-compiler works.
4895 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4896 # <limits.h> exists even on freestanding compilers.
4897 # On the NeXT, cc -E runs the code through the compiler's parser,
4898 # not just through cpp. "Syntax error" is here to catch this case.
4899 cat >conftest.$ac_ext <<_ACEOF
4902 cat confdefs.h >>conftest.$ac_ext
4903 cat >>conftest.$ac_ext <<_ACEOF
4904 /* end confdefs.h. */
4906 # include <limits.h>
4908 # include <assert.h>
4912 if { (ac_try="$ac_cpp conftest.$ac_ext"
4914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4915 *) ac_try_echo=$ac_try;;
4917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4918 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4920 grep -v '^ *+' conftest.er1 >conftest.err
4922 cat conftest.err >&5
4923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924 (exit $ac_status); } >/dev/null && {
4925 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4926 test ! -s conftest.err
4930 echo "$as_me: failed program was:" >&5
4931 sed 's/^/| /' conftest.$ac_ext >&5
4933 # Broken: fails on valid input.
4937 rm -f conftest.err conftest.$ac_ext
4939 # OK, works on sane cases. Now check whether nonexistent headers
4940 # can be detected and how.
4941 cat >conftest.$ac_ext <<_ACEOF
4944 cat confdefs.h >>conftest.$ac_ext
4945 cat >>conftest.$ac_ext <<_ACEOF
4946 /* end confdefs.h. */
4947 #include <ac_nonexistent.h>
4949 if { (ac_try="$ac_cpp conftest.$ac_ext"
4951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4952 *) ac_try_echo=$ac_try;;
4954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4955 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4957 grep -v '^ *+' conftest.er1 >conftest.err
4959 cat conftest.err >&5
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); } >/dev/null && {
4962 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4963 test ! -s conftest.err
4965 # Broken: success on invalid input.
4968 echo "$as_me: failed program was:" >&5
4969 sed 's/^/| /' conftest.$ac_ext >&5
4971 # Passes both tests.
4976 rm -f conftest.err conftest.$ac_ext
4979 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4980 rm -f conftest.err conftest.$ac_ext
4981 if $ac_preproc_ok; then
4993 { echo "$as_me:$LINENO: result: $CPP" >&5
4994 echo "${ECHO_T}$CPP" >&6; }
4996 for ac_c_preproc_warn_flag in '' yes
4998 # Use a header file that comes with gcc, so configuring glibc
4999 # with a fresh cross-compiler works.
5000 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5001 # <limits.h> exists even on freestanding compilers.
5002 # On the NeXT, cc -E runs the code through the compiler's parser,
5003 # not just through cpp. "Syntax error" is here to catch this case.
5004 cat >conftest.$ac_ext <<_ACEOF
5007 cat confdefs.h >>conftest.$ac_ext
5008 cat >>conftest.$ac_ext <<_ACEOF
5009 /* end confdefs.h. */
5011 # include <limits.h>
5013 # include <assert.h>
5017 if { (ac_try="$ac_cpp conftest.$ac_ext"
5019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5020 *) ac_try_echo=$ac_try;;
5022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5023 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5025 grep -v '^ *+' conftest.er1 >conftest.err
5027 cat conftest.err >&5
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); } >/dev/null && {
5030 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5031 test ! -s conftest.err
5035 echo "$as_me: failed program was:" >&5
5036 sed 's/^/| /' conftest.$ac_ext >&5
5038 # Broken: fails on valid input.
5042 rm -f conftest.err conftest.$ac_ext
5044 # OK, works on sane cases. Now check whether nonexistent headers
5045 # can be detected and how.
5046 cat >conftest.$ac_ext <<_ACEOF
5049 cat confdefs.h >>conftest.$ac_ext
5050 cat >>conftest.$ac_ext <<_ACEOF
5051 /* end confdefs.h. */
5052 #include <ac_nonexistent.h>
5054 if { (ac_try="$ac_cpp conftest.$ac_ext"
5056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5057 *) ac_try_echo=$ac_try;;
5059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5060 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5062 grep -v '^ *+' conftest.er1 >conftest.err
5064 cat conftest.err >&5
5065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066 (exit $ac_status); } >/dev/null && {
5067 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5068 test ! -s conftest.err
5070 # Broken: success on invalid input.
5073 echo "$as_me: failed program was:" >&5
5074 sed 's/^/| /' conftest.$ac_ext >&5
5076 # Passes both tests.
5081 rm -f conftest.err conftest.$ac_ext
5084 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5085 rm -f conftest.err conftest.$ac_ext
5086 if $ac_preproc_ok; then
5089 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5090 See \`config.log' for more details." >&5
5091 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5092 See \`config.log' for more details." >&2;}
5093 { (exit 1); exit 1; }; }
5097 ac_cpp='$CPP $CPPFLAGS'
5098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5103 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5104 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5105 if test "${ac_cv_header_stdc+set}" = set; then
5106 echo $ECHO_N "(cached) $ECHO_C" >&6
5108 cat >conftest.$ac_ext <<_ACEOF
5111 cat confdefs.h >>conftest.$ac_ext
5112 cat >>conftest.$ac_ext <<_ACEOF
5113 /* end confdefs.h. */
5127 rm -f conftest.$ac_objext
5128 if { (ac_try="$ac_compile"
5130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5131 *) ac_try_echo=$ac_try;;
5133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5134 (eval "$ac_compile") 2>conftest.er1
5136 grep -v '^ *+' conftest.er1 >conftest.err
5138 cat conftest.err >&5
5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140 (exit $ac_status); } && {
5141 test -z "$ac_c_werror_flag" ||
5142 test ! -s conftest.err
5143 } && test -s conftest.$ac_objext; then
5144 ac_cv_header_stdc=yes
5146 echo "$as_me: failed program was:" >&5
5147 sed 's/^/| /' conftest.$ac_ext >&5
5149 ac_cv_header_stdc=no
5152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5154 if test $ac_cv_header_stdc = yes; then
5155 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5156 cat >conftest.$ac_ext <<_ACEOF
5159 cat confdefs.h >>conftest.$ac_ext
5160 cat >>conftest.$ac_ext <<_ACEOF
5161 /* end confdefs.h. */
5165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5166 $EGREP "memchr" >/dev/null 2>&1; then
5169 ac_cv_header_stdc=no
5175 if test $ac_cv_header_stdc = yes; then
5176 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5177 cat >conftest.$ac_ext <<_ACEOF
5180 cat confdefs.h >>conftest.$ac_ext
5181 cat >>conftest.$ac_ext <<_ACEOF
5182 /* end confdefs.h. */
5186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5187 $EGREP "free" >/dev/null 2>&1; then
5190 ac_cv_header_stdc=no
5196 if test $ac_cv_header_stdc = yes; then
5197 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5198 if test "$cross_compiling" = yes; then
5201 cat >conftest.$ac_ext <<_ACEOF
5204 cat confdefs.h >>conftest.$ac_ext
5205 cat >>conftest.$ac_ext <<_ACEOF
5206 /* end confdefs.h. */
5209 #if ((' ' & 0x0FF) == 0x020)
5210 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5211 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5213 # define ISLOWER(c) \
5214 (('a' <= (c) && (c) <= 'i') \
5215 || ('j' <= (c) && (c) <= 'r') \
5216 || ('s' <= (c) && (c) <= 'z'))
5217 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5220 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5225 for (i = 0; i < 256; i++)
5226 if (XOR (islower (i), ISLOWER (i))
5227 || toupper (i) != TOUPPER (i))
5232 rm -f conftest$ac_exeext
5233 if { (ac_try="$ac_link"
5235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5236 *) ac_try_echo=$ac_try;;
5238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5239 (eval "$ac_link") 2>&5
5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5243 { (case "(($ac_try" in
5244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5245 *) ac_try_echo=$ac_try;;
5247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5248 (eval "$ac_try") 2>&5
5250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251 (exit $ac_status); }; }; then
5254 echo "$as_me: program exited with status $ac_status" >&5
5255 echo "$as_me: failed program was:" >&5
5256 sed 's/^/| /' conftest.$ac_ext >&5
5259 ac_cv_header_stdc=no
5261 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5267 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5268 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5269 if test $ac_cv_header_stdc = yes; then
5271 cat >>confdefs.h <<\_ACEOF
5272 #define STDC_HEADERS 1
5277 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5287 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5288 inttypes.h stdint.h unistd.h
5290 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5291 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5294 echo $ECHO_N "(cached) $ECHO_C" >&6
5296 cat >conftest.$ac_ext <<_ACEOF
5299 cat confdefs.h >>conftest.$ac_ext
5300 cat >>conftest.$ac_ext <<_ACEOF
5301 /* end confdefs.h. */
5302 $ac_includes_default
5304 #include <$ac_header>
5306 rm -f conftest.$ac_objext
5307 if { (ac_try="$ac_compile"
5309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5310 *) ac_try_echo=$ac_try;;
5312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5313 (eval "$ac_compile") 2>conftest.er1
5315 grep -v '^ *+' conftest.er1 >conftest.err
5317 cat conftest.err >&5
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); } && {
5320 test -z "$ac_c_werror_flag" ||
5321 test ! -s conftest.err
5322 } && test -s conftest.$ac_objext; then
5323 eval "$as_ac_Header=yes"
5325 echo "$as_me: failed program was:" >&5
5326 sed 's/^/| /' conftest.$ac_ext >&5
5328 eval "$as_ac_Header=no"
5331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5333 ac_res=`eval echo '${'$as_ac_Header'}'`
5334 { echo "$as_me:$LINENO: result: $ac_res" >&5
5335 echo "${ECHO_T}$ac_res" >&6; }
5336 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5337 cat >>confdefs.h <<_ACEOF
5338 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5347 for ac_header in dlfcn.h
5349 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5350 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5351 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5354 echo $ECHO_N "(cached) $ECHO_C" >&6
5356 ac_res=`eval echo '${'$as_ac_Header'}'`
5357 { echo "$as_me:$LINENO: result: $ac_res" >&5
5358 echo "${ECHO_T}$ac_res" >&6; }
5360 # Is the header compilable?
5361 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5362 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5363 cat >conftest.$ac_ext <<_ACEOF
5366 cat confdefs.h >>conftest.$ac_ext
5367 cat >>conftest.$ac_ext <<_ACEOF
5368 /* end confdefs.h. */
5369 $ac_includes_default
5370 #include <$ac_header>
5372 rm -f conftest.$ac_objext
5373 if { (ac_try="$ac_compile"
5375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5376 *) ac_try_echo=$ac_try;;
5378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5379 (eval "$ac_compile") 2>conftest.er1
5381 grep -v '^ *+' conftest.er1 >conftest.err
5383 cat conftest.err >&5
5384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385 (exit $ac_status); } && {
5386 test -z "$ac_c_werror_flag" ||
5387 test ! -s conftest.err
5388 } && test -s conftest.$ac_objext; then
5389 ac_header_compiler=yes
5391 echo "$as_me: failed program was:" >&5
5392 sed 's/^/| /' conftest.$ac_ext >&5
5394 ac_header_compiler=no
5397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5398 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5399 echo "${ECHO_T}$ac_header_compiler" >&6; }
5401 # Is the header present?
5402 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5403 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5404 cat >conftest.$ac_ext <<_ACEOF
5407 cat confdefs.h >>conftest.$ac_ext
5408 cat >>conftest.$ac_ext <<_ACEOF
5409 /* end confdefs.h. */
5410 #include <$ac_header>
5412 if { (ac_try="$ac_cpp conftest.$ac_ext"
5414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5415 *) ac_try_echo=$ac_try;;
5417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5418 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5420 grep -v '^ *+' conftest.er1 >conftest.err
5422 cat conftest.err >&5
5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424 (exit $ac_status); } >/dev/null && {
5425 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5426 test ! -s conftest.err
5428 ac_header_preproc=yes
5430 echo "$as_me: failed program was:" >&5
5431 sed 's/^/| /' conftest.$ac_ext >&5
5433 ac_header_preproc=no
5436 rm -f conftest.err conftest.$ac_ext
5437 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5438 echo "${ECHO_T}$ac_header_preproc" >&6; }
5440 # So? What about this header?
5441 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5443 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5444 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5446 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5447 ac_header_preproc=yes
5450 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5451 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5452 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5453 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5454 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5455 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5456 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5457 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5459 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5460 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5461 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5463 ## -------------------------------------------------- ##
5464 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
5465 ## -------------------------------------------------- ##
5467 ) | sed "s/^/$as_me: WARNING: /" >&2
5470 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5473 echo $ECHO_N "(cached) $ECHO_C" >&6
5475 eval "$as_ac_Header=\$ac_header_preproc"
5477 ac_res=`eval echo '${'$as_ac_Header'}'`
5478 { echo "$as_me:$LINENO: result: $ac_res" >&5
5479 echo "${ECHO_T}$ac_res" >&6; }
5482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5483 cat >>confdefs.h <<_ACEOF
5484 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5492 ac_cpp='$CXXCPP $CPPFLAGS'
5493 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5494 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5495 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5496 if test -z "$CXX"; then
5497 if test -n "$CCC"; then
5500 if test -n "$ac_tool_prefix"; then
5501 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5503 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5504 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5507 if test "${ac_cv_prog_CXX+set}" = set; then
5508 echo $ECHO_N "(cached) $ECHO_C" >&6
5510 if test -n "$CXX"; then
5511 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5517 test -z "$as_dir" && as_dir=.
5518 for ac_exec_ext in '' $ac_executable_extensions; do
5519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5520 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5531 if test -n "$CXX"; then
5532 { echo "$as_me:$LINENO: result: $CXX" >&5
5533 echo "${ECHO_T}$CXX" >&6; }
5535 { echo "$as_me:$LINENO: result: no" >&5
5536 echo "${ECHO_T}no" >&6; }
5540 test -n "$CXX" && break
5543 if test -z "$CXX"; then
5545 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5547 # Extract the first word of "$ac_prog", so it can be a program name with args.
5548 set dummy $ac_prog; ac_word=$2
5549 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5551 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5552 echo $ECHO_N "(cached) $ECHO_C" >&6
5554 if test -n "$ac_ct_CXX"; then
5555 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5561 test -z "$as_dir" && as_dir=.
5562 for ac_exec_ext in '' $ac_executable_extensions; do
5563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5564 ac_cv_prog_ac_ct_CXX="$ac_prog"
5565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5574 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5575 if test -n "$ac_ct_CXX"; then
5576 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5577 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5579 { echo "$as_me:$LINENO: result: no" >&5
5580 echo "${ECHO_T}no" >&6; }
5584 test -n "$ac_ct_CXX" && break
5587 if test "x$ac_ct_CXX" = x; then
5590 case $cross_compiling:$ac_tool_warned in
5592 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5593 whose name does not start with the host triplet. If you think this
5594 configuration is useful to you, please write to autoconf@gnu.org." >&5
5595 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5596 whose name does not start with the host triplet. If you think this
5597 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5598 ac_tool_warned=yes ;;
5606 # Provide some information about the compiler.
5607 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5608 ac_compiler=`set X $ac_compile; echo $2`
5609 { (ac_try="$ac_compiler --version >&5"
5611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5612 *) ac_try_echo=$ac_try;;
5614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5615 (eval "$ac_compiler --version >&5") 2>&5
5617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618 (exit $ac_status); }
5619 { (ac_try="$ac_compiler -v >&5"
5621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5622 *) ac_try_echo=$ac_try;;
5624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5625 (eval "$ac_compiler -v >&5") 2>&5
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); }
5629 { (ac_try="$ac_compiler -V >&5"
5631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5632 *) ac_try_echo=$ac_try;;
5634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5635 (eval "$ac_compiler -V >&5") 2>&5
5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); }
5640 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5641 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5642 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5643 echo $ECHO_N "(cached) $ECHO_C" >&6
5645 cat >conftest.$ac_ext <<_ACEOF
5648 cat confdefs.h >>conftest.$ac_ext
5649 cat >>conftest.$ac_ext <<_ACEOF
5650 /* end confdefs.h. */
5663 rm -f conftest.$ac_objext
5664 if { (ac_try="$ac_compile"
5666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5667 *) ac_try_echo=$ac_try;;
5669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5670 (eval "$ac_compile") 2>conftest.er1
5672 grep -v '^ *+' conftest.er1 >conftest.err
5674 cat conftest.err >&5
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); } && {
5677 test -z "$ac_cxx_werror_flag" ||
5678 test ! -s conftest.err
5679 } && test -s conftest.$ac_objext; then
5682 echo "$as_me: failed program was:" >&5
5683 sed 's/^/| /' conftest.$ac_ext >&5
5688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5689 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5692 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5693 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5694 GXX=`test $ac_compiler_gnu = yes && echo yes`
5695 ac_test_CXXFLAGS=${CXXFLAGS+set}
5696 ac_save_CXXFLAGS=$CXXFLAGS
5697 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5698 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5699 if test "${ac_cv_prog_cxx_g+set}" = set; then
5700 echo $ECHO_N "(cached) $ECHO_C" >&6
5702 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5703 ac_cxx_werror_flag=yes
5706 cat >conftest.$ac_ext <<_ACEOF
5709 cat confdefs.h >>conftest.$ac_ext
5710 cat >>conftest.$ac_ext <<_ACEOF
5711 /* end confdefs.h. */
5721 rm -f conftest.$ac_objext
5722 if { (ac_try="$ac_compile"
5724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5725 *) ac_try_echo=$ac_try;;
5727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5728 (eval "$ac_compile") 2>conftest.er1
5730 grep -v '^ *+' conftest.er1 >conftest.err
5732 cat conftest.err >&5
5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); } && {
5735 test -z "$ac_cxx_werror_flag" ||
5736 test ! -s conftest.err
5737 } && test -s conftest.$ac_objext; then
5738 ac_cv_prog_cxx_g=yes
5740 echo "$as_me: failed program was:" >&5
5741 sed 's/^/| /' conftest.$ac_ext >&5
5744 cat >conftest.$ac_ext <<_ACEOF
5747 cat confdefs.h >>conftest.$ac_ext
5748 cat >>conftest.$ac_ext <<_ACEOF
5749 /* end confdefs.h. */
5759 rm -f conftest.$ac_objext
5760 if { (ac_try="$ac_compile"
5762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5763 *) ac_try_echo=$ac_try;;
5765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5766 (eval "$ac_compile") 2>conftest.er1
5768 grep -v '^ *+' conftest.er1 >conftest.err
5770 cat conftest.err >&5
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); } && {
5773 test -z "$ac_cxx_werror_flag" ||
5774 test ! -s conftest.err
5775 } && test -s conftest.$ac_objext; then
5778 echo "$as_me: failed program was:" >&5
5779 sed 's/^/| /' conftest.$ac_ext >&5
5781 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5783 cat >conftest.$ac_ext <<_ACEOF
5786 cat confdefs.h >>conftest.$ac_ext
5787 cat >>conftest.$ac_ext <<_ACEOF
5788 /* end confdefs.h. */
5798 rm -f conftest.$ac_objext
5799 if { (ac_try="$ac_compile"
5801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5802 *) ac_try_echo=$ac_try;;
5804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5805 (eval "$ac_compile") 2>conftest.er1
5807 grep -v '^ *+' conftest.er1 >conftest.err
5809 cat conftest.err >&5
5810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); } && {
5812 test -z "$ac_cxx_werror_flag" ||
5813 test ! -s conftest.err
5814 } && test -s conftest.$ac_objext; then
5815 ac_cv_prog_cxx_g=yes
5817 echo "$as_me: failed program was:" >&5
5818 sed 's/^/| /' conftest.$ac_ext >&5
5823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5830 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5832 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5833 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5834 if test "$ac_test_CXXFLAGS" = set; then
5835 CXXFLAGS=$ac_save_CXXFLAGS
5836 elif test $ac_cv_prog_cxx_g = yes; then
5837 if test "$GXX" = yes; then
5843 if test "$GXX" = yes; then
5850 ac_cpp='$CXXCPP $CPPFLAGS'
5851 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5852 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5853 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5855 depcc="$CXX" am_compiler_list=
5857 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5858 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5859 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5860 echo $ECHO_N "(cached) $ECHO_C" >&6
5862 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5863 # We make a subdir and do the tests there. Otherwise we can end up
5864 # making bogus files that we don't know about and never remove. For
5865 # instance it was reported that on HP-UX the gcc test will end up
5866 # making a dummy file named `D' -- because `-MD' means `put the output
5869 # Copy depcomp to subdir because otherwise we won't find it if we're
5870 # using a relative directory.
5871 cp "$am_depcomp" conftest.dir
5873 # We will build objects and dependencies in a subdirectory because
5874 # it helps to detect inapplicable dependency modes. For instance
5875 # both Tru64's cc and ICC support -MD to output dependencies as a
5876 # side effect of compilation, but ICC will put the dependencies in
5877 # the current directory while Tru64 will put them in the object
5881 am_cv_CXX_dependencies_compiler_type=none
5882 if test "$am_compiler_list" = ""; then
5883 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5885 for depmode in $am_compiler_list; do
5886 # Setup a source with many dependencies, because some compilers
5887 # like to wrap large dependency lists on column 80 (with \), and
5888 # we should not choose a depcomp mode which is confused by this.
5890 # We need to recreate these files for each test, as the compiler may
5891 # overwrite some of them when testing with obscure command lines.
5892 # This happens at least with the AIX C compiler.
5894 for i in 1 2 3 4 5 6; do
5895 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5896 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5897 # Solaris 8's {/usr,}/bin/sh.
5898 touch sub/conftst$i.h
5900 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5904 # after this tag, mechanisms are not by side-effect, so they'll
5905 # only be used when explicitly requested
5906 if test "x$enable_dependency_tracking" = xyes; then
5914 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5915 # mode. It turns out that the SunPro C++ compiler does not properly
5916 # handle `-M -o', and we need to detect this.
5917 if depmode=$depmode \
5918 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5919 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5920 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5921 >/dev/null 2>conftest.err &&
5922 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5923 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5924 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5925 # icc doesn't choke on unknown options, it will just issue warnings
5926 # or remarks (even with -Werror). So we grep stderr for any message
5927 # that says an option was ignored or not supported.
5928 # When given -MP, icc 7.0 and 7.1 complain thusly:
5929 # icc: Command line warning: ignoring option '-M'; no argument required
5930 # The diagnosis changed in icc 8.0:
5931 # icc: Command line remark: option '-MP' not supported
5932 if (grep 'ignoring option' conftest.err ||
5933 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5934 am_cv_CXX_dependencies_compiler_type=$depmode
5943 am_cv_CXX_dependencies_compiler_type=none
5947 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5948 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5949 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5954 test "x$enable_dependency_tracking" != xno \
5955 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5956 am__fastdepCXX_TRUE=
5957 am__fastdepCXX_FALSE='#'
5959 am__fastdepCXX_TRUE='#'
5960 am__fastdepCXX_FALSE=
5966 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5967 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5968 (test "X$CXX" != "Xg++"))) ; then
5970 ac_cpp='$CXXCPP $CPPFLAGS'
5971 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5972 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5973 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5974 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5975 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5976 if test -z "$CXXCPP"; then
5977 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5978 echo $ECHO_N "(cached) $ECHO_C" >&6
5980 # Double quotes because CXXCPP needs to be expanded
5981 for CXXCPP in "$CXX -E" "/lib/cpp"
5984 for ac_cxx_preproc_warn_flag in '' yes
5986 # Use a header file that comes with gcc, so configuring glibc
5987 # with a fresh cross-compiler works.
5988 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5989 # <limits.h> exists even on freestanding compilers.
5990 # On the NeXT, cc -E runs the code through the compiler's parser,
5991 # not just through cpp. "Syntax error" is here to catch this case.
5992 cat >conftest.$ac_ext <<_ACEOF
5995 cat confdefs.h >>conftest.$ac_ext
5996 cat >>conftest.$ac_ext <<_ACEOF
5997 /* end confdefs.h. */
5999 # include <limits.h>
6001 # include <assert.h>
6005 if { (ac_try="$ac_cpp conftest.$ac_ext"
6007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6008 *) ac_try_echo=$ac_try;;
6010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6011 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6013 grep -v '^ *+' conftest.er1 >conftest.err
6015 cat conftest.err >&5
6016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017 (exit $ac_status); } >/dev/null && {
6018 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6019 test ! -s conftest.err
6023 echo "$as_me: failed program was:" >&5
6024 sed 's/^/| /' conftest.$ac_ext >&5
6026 # Broken: fails on valid input.
6030 rm -f conftest.err conftest.$ac_ext
6032 # OK, works on sane cases. Now check whether nonexistent headers
6033 # can be detected and how.
6034 cat >conftest.$ac_ext <<_ACEOF
6037 cat confdefs.h >>conftest.$ac_ext
6038 cat >>conftest.$ac_ext <<_ACEOF
6039 /* end confdefs.h. */
6040 #include <ac_nonexistent.h>
6042 if { (ac_try="$ac_cpp conftest.$ac_ext"
6044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6045 *) ac_try_echo=$ac_try;;
6047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6050 grep -v '^ *+' conftest.er1 >conftest.err
6052 cat conftest.err >&5
6053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054 (exit $ac_status); } >/dev/null && {
6055 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6056 test ! -s conftest.err
6058 # Broken: success on invalid input.
6061 echo "$as_me: failed program was:" >&5
6062 sed 's/^/| /' conftest.$ac_ext >&5
6064 # Passes both tests.
6069 rm -f conftest.err conftest.$ac_ext
6072 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6073 rm -f conftest.err conftest.$ac_ext
6074 if $ac_preproc_ok; then
6079 ac_cv_prog_CXXCPP=$CXXCPP
6082 CXXCPP=$ac_cv_prog_CXXCPP
6084 ac_cv_prog_CXXCPP=$CXXCPP
6086 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6087 echo "${ECHO_T}$CXXCPP" >&6; }
6089 for ac_cxx_preproc_warn_flag in '' yes
6091 # Use a header file that comes with gcc, so configuring glibc
6092 # with a fresh cross-compiler works.
6093 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6094 # <limits.h> exists even on freestanding compilers.
6095 # On the NeXT, cc -E runs the code through the compiler's parser,
6096 # not just through cpp. "Syntax error" is here to catch this case.
6097 cat >conftest.$ac_ext <<_ACEOF
6100 cat confdefs.h >>conftest.$ac_ext
6101 cat >>conftest.$ac_ext <<_ACEOF
6102 /* end confdefs.h. */
6104 # include <limits.h>
6106 # include <assert.h>
6110 if { (ac_try="$ac_cpp conftest.$ac_ext"
6112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6113 *) ac_try_echo=$ac_try;;
6115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6116 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6118 grep -v '^ *+' conftest.er1 >conftest.err
6120 cat conftest.err >&5
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); } >/dev/null && {
6123 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6124 test ! -s conftest.err
6128 echo "$as_me: failed program was:" >&5
6129 sed 's/^/| /' conftest.$ac_ext >&5
6131 # Broken: fails on valid input.
6135 rm -f conftest.err conftest.$ac_ext
6137 # OK, works on sane cases. Now check whether nonexistent headers
6138 # can be detected and how.
6139 cat >conftest.$ac_ext <<_ACEOF
6142 cat confdefs.h >>conftest.$ac_ext
6143 cat >>conftest.$ac_ext <<_ACEOF
6144 /* end confdefs.h. */
6145 #include <ac_nonexistent.h>
6147 if { (ac_try="$ac_cpp conftest.$ac_ext"
6149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6150 *) ac_try_echo=$ac_try;;
6152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6153 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6155 grep -v '^ *+' conftest.er1 >conftest.err
6157 cat conftest.err >&5
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); } >/dev/null && {
6160 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6161 test ! -s conftest.err
6163 # Broken: success on invalid input.
6166 echo "$as_me: failed program was:" >&5
6167 sed 's/^/| /' conftest.$ac_ext >&5
6169 # Passes both tests.
6174 rm -f conftest.err conftest.$ac_ext
6177 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6178 rm -f conftest.err conftest.$ac_ext
6179 if $ac_preproc_ok; then
6182 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6183 See \`config.log' for more details." >&5
6184 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6185 See \`config.log' for more details." >&2;}
6186 { (exit 1); exit 1; }; }
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
6199 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6200 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6201 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6202 if test -n "$ac_tool_prefix"; then
6203 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6205 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6206 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6207 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6209 if test "${ac_cv_prog_F77+set}" = set; then
6210 echo $ECHO_N "(cached) $ECHO_C" >&6
6212 if test -n "$F77"; then
6213 ac_cv_prog_F77="$F77" # Let the user override the test.
6215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6219 test -z "$as_dir" && as_dir=.
6220 for ac_exec_ext in '' $ac_executable_extensions; do
6221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6222 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6233 if test -n "$F77"; then
6234 { echo "$as_me:$LINENO: result: $F77" >&5
6235 echo "${ECHO_T}$F77" >&6; }
6237 { echo "$as_me:$LINENO: result: no" >&5
6238 echo "${ECHO_T}no" >&6; }
6242 test -n "$F77" && break
6245 if test -z "$F77"; then
6247 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6249 # Extract the first word of "$ac_prog", so it can be a program name with args.
6250 set dummy $ac_prog; ac_word=$2
6251 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6253 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6254 echo $ECHO_N "(cached) $ECHO_C" >&6
6256 if test -n "$ac_ct_F77"; then
6257 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6263 test -z "$as_dir" && as_dir=.
6264 for ac_exec_ext in '' $ac_executable_extensions; do
6265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6266 ac_cv_prog_ac_ct_F77="$ac_prog"
6267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6276 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6277 if test -n "$ac_ct_F77"; then
6278 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6279 echo "${ECHO_T}$ac_ct_F77" >&6; }
6281 { echo "$as_me:$LINENO: result: no" >&5
6282 echo "${ECHO_T}no" >&6; }
6286 test -n "$ac_ct_F77" && break
6289 if test "x$ac_ct_F77" = x; then
6292 case $cross_compiling:$ac_tool_warned in
6294 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6295 whose name does not start with the host triplet. If you think this
6296 configuration is useful to you, please write to autoconf@gnu.org." >&5
6297 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6298 whose name does not start with the host triplet. If you think this
6299 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6300 ac_tool_warned=yes ;;
6307 # Provide some information about the compiler.
6308 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6309 ac_compiler=`set X $ac_compile; echo $2`
6310 { (ac_try="$ac_compiler --version >&5"
6312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6313 *) ac_try_echo=$ac_try;;
6315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6316 (eval "$ac_compiler --version >&5") 2>&5
6318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319 (exit $ac_status); }
6320 { (ac_try="$ac_compiler -v >&5"
6322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6323 *) ac_try_echo=$ac_try;;
6325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6326 (eval "$ac_compiler -v >&5") 2>&5
6328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329 (exit $ac_status); }
6330 { (ac_try="$ac_compiler -V >&5"
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_compiler -V >&5") 2>&5
6338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339 (exit $ac_status); }
6342 # If we don't use `.F' as extension, the preprocessor is not run on the
6343 # input file. (Note that this only needs to work for GNU compilers.)
6346 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6347 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6348 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6349 echo $ECHO_N "(cached) $ECHO_C" >&6
6351 cat >conftest.$ac_ext <<_ACEOF
6359 rm -f conftest.$ac_objext
6360 if { (ac_try="$ac_compile"
6362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6363 *) ac_try_echo=$ac_try;;
6365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6366 (eval "$ac_compile") 2>conftest.er1
6368 grep -v '^ *+' conftest.er1 >conftest.err
6370 cat conftest.err >&5
6371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 (exit $ac_status); } && {
6373 test -z "$ac_f77_werror_flag" ||
6374 test ! -s conftest.err
6375 } && test -s conftest.$ac_objext; then
6378 echo "$as_me: failed program was:" >&5
6379 sed 's/^/| /' conftest.$ac_ext >&5
6384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6385 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6388 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6389 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6391 ac_test_FFLAGS=${FFLAGS+set}
6392 ac_save_FFLAGS=$FFLAGS
6394 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6395 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6396 if test "${ac_cv_prog_f77_g+set}" = set; then
6397 echo $ECHO_N "(cached) $ECHO_C" >&6
6400 cat >conftest.$ac_ext <<_ACEOF
6405 rm -f conftest.$ac_objext
6406 if { (ac_try="$ac_compile"
6408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6409 *) ac_try_echo=$ac_try;;
6411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6412 (eval "$ac_compile") 2>conftest.er1
6414 grep -v '^ *+' conftest.er1 >conftest.err
6416 cat conftest.err >&5
6417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418 (exit $ac_status); } && {
6419 test -z "$ac_f77_werror_flag" ||
6420 test ! -s conftest.err
6421 } && test -s conftest.$ac_objext; then
6422 ac_cv_prog_f77_g=yes
6424 echo "$as_me: failed program was:" >&5
6425 sed 's/^/| /' conftest.$ac_ext >&5
6430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6433 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6434 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6435 if test "$ac_test_FFLAGS" = set; then
6436 FFLAGS=$ac_save_FFLAGS
6437 elif test $ac_cv_prog_f77_g = yes; then
6438 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6444 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6451 G77=`test $ac_compiler_gnu = yes && echo yes`
6453 ac_cpp='$CPP $CPPFLAGS'
6454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6460 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6462 # find the maximum length of command line arguments
6463 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6464 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6465 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6466 echo $ECHO_N "(cached) $ECHO_C" >&6
6473 # On DJGPP, this test can blow up pretty badly due to problems in libc
6474 # (any single argument exceeding 2000 bytes causes a buffer overrun
6475 # during glob expansion). Even if it were fixed, the result of this
6476 # check would be larger than it should be.
6477 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6481 # Under GNU Hurd, this test is not required because there is
6482 # no limit to the length of command line arguments.
6483 # Libtool will interpret -1 as no limit whatsoever
6484 lt_cv_sys_max_cmd_len=-1;
6488 # On Win9x/ME, this test blows up -- it succeeds, but takes
6489 # about 5 minutes as the teststring grows exponentially.
6490 # Worse, since 9x/ME are not pre-emptively multitasking,
6491 # you end up with a "frozen" computer, even though with patience
6492 # the test eventually succeeds (with a max line length of 256k).
6493 # Instead, let's just punt: use the minimum linelength reported by
6494 # all of the supported platforms: 8192 (on NT/2K/XP).
6495 lt_cv_sys_max_cmd_len=8192;
6499 # On AmigaOS with pdksh, this test takes hours, literally.
6500 # So we just punt and use a minimum line length of 8192.
6501 lt_cv_sys_max_cmd_len=8192;
6504 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6505 # This has been around since 386BSD, at least. Likely further.
6506 if test -x /sbin/sysctl; then
6507 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6508 elif test -x /usr/sbin/sysctl; then
6509 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6511 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6513 # And add a safety zone
6514 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6515 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6519 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6520 lt_cv_sys_max_cmd_len=196608
6524 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6525 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6526 # nice to cause kernel panics so lets avoid the loop below.
6527 # First set a reasonable default.
6528 lt_cv_sys_max_cmd_len=16384
6530 if test -x /sbin/sysconfig; then
6531 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6532 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6537 lt_cv_sys_max_cmd_len=102400
6539 sysv5* | sco5v6* | sysv4.2uw2*)
6540 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6541 if test -n "$kargmax"; then
6542 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6544 lt_cv_sys_max_cmd_len=32768
6548 # If test is not a shell built-in, we'll probably end up computing a
6549 # maximum length that is only half of the actual maximum length, but
6551 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6552 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6553 = "XX$teststring") >/dev/null 2>&1 &&
6554 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6555 lt_cv_sys_max_cmd_len=$new_result &&
6556 test $i != 17 # 1/2 MB should be enough
6559 teststring=$teststring$teststring
6562 # Add a significant safety factor because C++ compilers can tack on massive
6563 # amounts of additional arguments before passing them to the linker.
6564 # It appears as though 1/2 is a usable value.
6565 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6571 if test -n $lt_cv_sys_max_cmd_len ; then
6572 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6573 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6575 { echo "$as_me:$LINENO: result: none" >&5
6576 echo "${ECHO_T}none" >&6; }
6582 # Check for command to grab the raw symbol name followed by C symbol from nm.
6583 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6584 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6585 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6586 echo $ECHO_N "(cached) $ECHO_C" >&6
6589 # These are sane defaults that work on at least a few old systems.
6590 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6592 # Character class describing NM global symbol codes.
6593 symcode='[BCDEGRST]'
6595 # Regexp to match symbols that can be accessed directly from C.
6596 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6598 # Transform an extracted symbol line into a proper C declaration
6599 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6601 # Transform an extracted symbol line into symbol name and symbol address
6602 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'"
6604 # Define system-specific variables.
6609 cygwin* | mingw* | pw32*)
6610 symcode='[ABCDGISTW]'
6612 hpux*) # Its linker distinguishes data from code symbols
6613 if test "$host_cpu" = ia64; then
6614 symcode='[ABCDEGRST]'
6616 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6617 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'"
6619 linux* | k*bsd*-gnu)
6620 if test "$host_cpu" = ia64; then
6621 symcode='[ABCDGIRSTW]'
6622 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6623 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'"
6627 symcode='[BCDEGRST]'
6630 symcode='[BCDEGQRST]'
6641 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6649 # Handle CRLF in mingw tool chain
6653 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6657 # If we're using GNU nm, then use its standard symbol codes.
6658 case `$NM -V 2>&1` in
6659 *GNU* | *'with BFD'*)
6660 symcode='[ABCDGIRSTW]' ;;
6663 # Try without a prefix undercore, then with it.
6664 for ac_symprfx in "" "_"; do
6666 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6667 symxfrm="\\1 $ac_symprfx\\2 \\2"
6669 # Write the raw and C identifiers.
6670 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6672 # Check to see that the pipe works correctly.
6676 cat > conftest.$ac_ext <<EOF
6681 void nm_test_func(){}
6685 int main(){nm_test_var='a';nm_test_func();return(0);}
6688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6689 (eval $ac_compile) 2>&5
6691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692 (exit $ac_status); }; then
6693 # Now try to grab the symbols.
6695 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6696 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); } && test -s "$nlist"; then
6700 # Try sorting and uniquifying the output.
6701 if sort "$nlist" | uniq > "$nlist"T; then
6702 mv -f "$nlist"T "$nlist"
6707 # Make sure that we snagged all the symbols we need.
6708 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6709 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6710 cat <<EOF > conftest.$ac_ext
6716 # Now generate the symbol file.
6717 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6719 cat <<EOF >> conftest.$ac_ext
6720 #if defined (__STDC__) && __STDC__
6721 # define lt_ptr_t void *
6723 # define lt_ptr_t char *
6727 /* The mapping between symbol names and symbols. */
6732 lt_preloaded_symbols[] =
6735 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6736 cat <<\EOF >> conftest.$ac_ext
6744 # Now try linking the two files.
6745 mv conftest.$ac_objext conftstm.$ac_objext
6746 lt_save_LIBS="$LIBS"
6747 lt_save_CFLAGS="$CFLAGS"
6748 LIBS="conftstm.$ac_objext"
6749 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6751 (eval $ac_link) 2>&5
6753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6757 LIBS="$lt_save_LIBS"
6758 CFLAGS="$lt_save_CFLAGS"
6760 echo "cannot find nm_test_func in $nlist" >&5
6763 echo "cannot find nm_test_var in $nlist" >&5
6766 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6769 echo "$progname: failed program was:" >&5
6770 cat conftest.$ac_ext >&5
6772 rm -f conftest* conftst*
6774 # Do not use the global_symbol_pipe unless it works.
6775 if test "$pipe_works" = yes; then
6778 lt_cv_sys_global_symbol_pipe=
6784 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6785 lt_cv_sys_global_symbol_to_cdecl=
6787 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6788 { echo "$as_me:$LINENO: result: failed" >&5
6789 echo "${ECHO_T}failed" >&6; }
6791 { echo "$as_me:$LINENO: result: ok" >&5
6792 echo "${ECHO_T}ok" >&6; }
6795 { echo "$as_me:$LINENO: checking for objdir" >&5
6796 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6797 if test "${lt_cv_objdir+set}" = set; then
6798 echo $ECHO_N "(cached) $ECHO_C" >&6
6800 rm -f .libs 2>/dev/null
6801 mkdir .libs 2>/dev/null
6802 if test -d .libs; then
6805 # MS-DOS does not allow filenames that begin with a dot.
6808 rmdir .libs 2>/dev/null
6810 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6811 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6812 objdir=$lt_cv_objdir
6820 # AIX sometimes has problems with the GCC collect2 program. For some
6821 # reason, if we set the COLLECT_NAMES environment variable, the problems
6822 # vanish in a puff of smoke.
6823 if test "X${COLLECT_NAMES+set}" != Xset; then
6825 export COLLECT_NAMES
6830 # Sed substitution that helps us do robust quoting. It backslashifies
6831 # metacharacters that are still active within double-quoted strings.
6832 Xsed='sed -e 1s/^X//'
6833 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6835 # Same as above, but do not quote variable references.
6836 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6838 # Sed substitution to delay expansion of an escaped shell variable in a
6839 # double_quote_subst'ed string.
6840 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6842 # Sed substitution to avoid accidental globbing in evaled expressions
6843 no_glob_subst='s/\*/\\\*/g'
6849 default_ofile=libtool
6850 can_build_shared=yes
6852 # All known linkers require a `.a' archive for static linking (except MSVC,
6853 # which needs '.lib').
6855 ltmain="$ac_aux_dir/ltmain.sh"
6856 ofile="$default_ofile"
6857 with_gnu_ld="$lt_cv_prog_gnu_ld"
6859 if test -n "$ac_tool_prefix"; then
6860 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6861 set dummy ${ac_tool_prefix}ar; ac_word=$2
6862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6864 if test "${ac_cv_prog_AR+set}" = set; then
6865 echo $ECHO_N "(cached) $ECHO_C" >&6
6867 if test -n "$AR"; then
6868 ac_cv_prog_AR="$AR" # Let the user override the test.
6870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6874 test -z "$as_dir" && as_dir=.
6875 for ac_exec_ext in '' $ac_executable_extensions; do
6876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6877 ac_cv_prog_AR="${ac_tool_prefix}ar"
6878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6888 if test -n "$AR"; then
6889 { echo "$as_me:$LINENO: result: $AR" >&5
6890 echo "${ECHO_T}$AR" >&6; }
6892 { echo "$as_me:$LINENO: result: no" >&5
6893 echo "${ECHO_T}no" >&6; }
6898 if test -z "$ac_cv_prog_AR"; then
6900 # Extract the first word of "ar", so it can be a program name with args.
6901 set dummy ar; ac_word=$2
6902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6904 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6905 echo $ECHO_N "(cached) $ECHO_C" >&6
6907 if test -n "$ac_ct_AR"; then
6908 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6914 test -z "$as_dir" && as_dir=.
6915 for ac_exec_ext in '' $ac_executable_extensions; do
6916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6917 ac_cv_prog_ac_ct_AR="ar"
6918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6927 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6928 if test -n "$ac_ct_AR"; then
6929 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6930 echo "${ECHO_T}$ac_ct_AR" >&6; }
6932 { echo "$as_me:$LINENO: result: no" >&5
6933 echo "${ECHO_T}no" >&6; }
6936 if test "x$ac_ct_AR" = x; then
6939 case $cross_compiling:$ac_tool_warned in
6941 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6942 whose name does not start with the host triplet. If you think this
6943 configuration is useful to you, please write to autoconf@gnu.org." >&5
6944 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6945 whose name does not start with the host triplet. If you think this
6946 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6947 ac_tool_warned=yes ;;
6955 if test -n "$ac_tool_prefix"; then
6956 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6957 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6958 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6960 if test "${ac_cv_prog_RANLIB+set}" = set; then
6961 echo $ECHO_N "(cached) $ECHO_C" >&6
6963 if test -n "$RANLIB"; then
6964 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6970 test -z "$as_dir" && as_dir=.
6971 for ac_exec_ext in '' $ac_executable_extensions; do
6972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6973 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6983 RANLIB=$ac_cv_prog_RANLIB
6984 if test -n "$RANLIB"; then
6985 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6986 echo "${ECHO_T}$RANLIB" >&6; }
6988 { echo "$as_me:$LINENO: result: no" >&5
6989 echo "${ECHO_T}no" >&6; }
6994 if test -z "$ac_cv_prog_RANLIB"; then
6995 ac_ct_RANLIB=$RANLIB
6996 # Extract the first word of "ranlib", so it can be a program name with args.
6997 set dummy ranlib; ac_word=$2
6998 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7000 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7001 echo $ECHO_N "(cached) $ECHO_C" >&6
7003 if test -n "$ac_ct_RANLIB"; then
7004 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7010 test -z "$as_dir" && as_dir=.
7011 for ac_exec_ext in '' $ac_executable_extensions; do
7012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7013 ac_cv_prog_ac_ct_RANLIB="ranlib"
7014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7023 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7024 if test -n "$ac_ct_RANLIB"; then
7025 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7026 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7028 { echo "$as_me:$LINENO: result: no" >&5
7029 echo "${ECHO_T}no" >&6; }
7032 if test "x$ac_ct_RANLIB" = x; then
7035 case $cross_compiling:$ac_tool_warned in
7037 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7038 whose name does not start with the host triplet. If you think this
7039 configuration is useful to you, please write to autoconf@gnu.org." >&5
7040 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7041 whose name does not start with the host triplet. If you think this
7042 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7043 ac_tool_warned=yes ;;
7045 RANLIB=$ac_ct_RANLIB
7048 RANLIB="$ac_cv_prog_RANLIB"
7051 if test -n "$ac_tool_prefix"; then
7052 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7053 set dummy ${ac_tool_prefix}strip; ac_word=$2
7054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7056 if test "${ac_cv_prog_STRIP+set}" = set; then
7057 echo $ECHO_N "(cached) $ECHO_C" >&6
7059 if test -n "$STRIP"; then
7060 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7066 test -z "$as_dir" && as_dir=.
7067 for ac_exec_ext in '' $ac_executable_extensions; do
7068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7069 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7079 STRIP=$ac_cv_prog_STRIP
7080 if test -n "$STRIP"; then
7081 { echo "$as_me:$LINENO: result: $STRIP" >&5
7082 echo "${ECHO_T}$STRIP" >&6; }
7084 { echo "$as_me:$LINENO: result: no" >&5
7085 echo "${ECHO_T}no" >&6; }
7090 if test -z "$ac_cv_prog_STRIP"; then
7092 # Extract the first word of "strip", so it can be a program name with args.
7093 set dummy strip; ac_word=$2
7094 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7096 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7097 echo $ECHO_N "(cached) $ECHO_C" >&6
7099 if test -n "$ac_ct_STRIP"; then
7100 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106 test -z "$as_dir" && as_dir=.
7107 for ac_exec_ext in '' $ac_executable_extensions; do
7108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7109 ac_cv_prog_ac_ct_STRIP="strip"
7110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7119 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7120 if test -n "$ac_ct_STRIP"; then
7121 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7122 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7124 { echo "$as_me:$LINENO: result: no" >&5
7125 echo "${ECHO_T}no" >&6; }
7128 if test "x$ac_ct_STRIP" = x; then
7131 case $cross_compiling:$ac_tool_warned in
7133 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7134 whose name does not start with the host triplet. If you think this
7135 configuration is useful to you, please write to autoconf@gnu.org." >&5
7136 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7137 whose name does not start with the host triplet. If you think this
7138 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7139 ac_tool_warned=yes ;;
7144 STRIP="$ac_cv_prog_STRIP"
7149 old_CFLAGS="$CFLAGS"
7151 # Set sane defaults for various variables
7152 test -z "$AR" && AR=ar
7153 test -z "$AR_FLAGS" && AR_FLAGS=cru
7154 test -z "$AS" && AS=as
7155 test -z "$CC" && CC=cc
7156 test -z "$LTCC" && LTCC=$CC
7157 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7158 test -z "$DLLTOOL" && DLLTOOL=dlltool
7159 test -z "$LD" && LD=ld
7160 test -z "$LN_S" && LN_S="ln -s"
7161 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7162 test -z "$NM" && NM=nm
7163 test -z "$SED" && SED=sed
7164 test -z "$OBJDUMP" && OBJDUMP=objdump
7165 test -z "$RANLIB" && RANLIB=:
7166 test -z "$STRIP" && STRIP=:
7167 test -z "$ac_objext" && ac_objext=o
7169 # Determine commands to create old-style static archives.
7170 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7171 old_postinstall_cmds='chmod 644 $oldlib'
7172 old_postuninstall_cmds=
7174 if test -n "$RANLIB"; then
7177 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7180 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7183 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7186 for cc_temp in $compiler""; do
7188 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7189 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7194 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7197 # Only perform the check for file, if the check method requires it
7198 case $deplibs_check_method in
7200 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7201 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7202 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7203 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7204 echo $ECHO_N "(cached) $ECHO_C" >&6
7208 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7211 lt_save_MAGIC_CMD="$MAGIC_CMD"
7212 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7213 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7214 for ac_dir in $ac_dummy; do
7216 test -z "$ac_dir" && ac_dir=.
7217 if test -f $ac_dir/${ac_tool_prefix}file; then
7218 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7219 if test -n "$file_magic_test_file"; then
7220 case $deplibs_check_method in
7222 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7223 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7224 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7225 $EGREP "$file_magic_regex" > /dev/null; then
7230 *** Warning: the command libtool uses to detect shared libraries,
7231 *** $file_magic_cmd, produces output that libtool cannot recognize.
7232 *** The result is that libtool may fail to recognize shared libraries
7233 *** as such. This will affect the creation of libtool libraries that
7234 *** depend on shared libraries, but programs linked with such libtool
7235 *** libraries will work regardless of this problem. Nevertheless, you
7236 *** may want to report the problem to your system manager and/or to
7237 *** bug-libtool@gnu.org
7247 MAGIC_CMD="$lt_save_MAGIC_CMD"
7252 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7253 if test -n "$MAGIC_CMD"; then
7254 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7255 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7257 { echo "$as_me:$LINENO: result: no" >&5
7258 echo "${ECHO_T}no" >&6; }
7261 if test -z "$lt_cv_path_MAGIC_CMD"; then
7262 if test -n "$ac_tool_prefix"; then
7263 { echo "$as_me:$LINENO: checking for file" >&5
7264 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7265 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7266 echo $ECHO_N "(cached) $ECHO_C" >&6
7270 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7273 lt_save_MAGIC_CMD="$MAGIC_CMD"
7274 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7275 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7276 for ac_dir in $ac_dummy; do
7278 test -z "$ac_dir" && ac_dir=.
7279 if test -f $ac_dir/file; then
7280 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7281 if test -n "$file_magic_test_file"; then
7282 case $deplibs_check_method in
7284 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7285 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7286 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7287 $EGREP "$file_magic_regex" > /dev/null; then
7292 *** Warning: the command libtool uses to detect shared libraries,
7293 *** $file_magic_cmd, produces output that libtool cannot recognize.
7294 *** The result is that libtool may fail to recognize shared libraries
7295 *** as such. This will affect the creation of libtool libraries that
7296 *** depend on shared libraries, but programs linked with such libtool
7297 *** libraries will work regardless of this problem. Nevertheless, you
7298 *** may want to report the problem to your system manager and/or to
7299 *** bug-libtool@gnu.org
7309 MAGIC_CMD="$lt_save_MAGIC_CMD"
7314 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7315 if test -n "$MAGIC_CMD"; then
7316 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7317 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7319 { echo "$as_me:$LINENO: result: no" >&5
7320 echo "${ECHO_T}no" >&6; }
7333 enable_win32_dll=yes
7335 # Check whether --enable-libtool-lock was given.
7336 if test "${enable_libtool_lock+set}" = set; then
7337 enableval=$enable_libtool_lock;
7340 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7343 # Check whether --with-pic was given.
7344 if test "${with_pic+set}" = set; then
7345 withval=$with_pic; pic_mode="$withval"
7350 test -z "$pic_mode" && pic_mode=default
7352 # Use C for the default configuration in the libtool script
7356 ac_cpp='$CPP $CPPFLAGS'
7357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7362 # Source file extension for C test sources.
7365 # Object file extension for compiled C test sources.
7369 # Code to be used in simple compile tests
7370 lt_simple_compile_test_code="int some_variable = 0;\n"
7372 # Code to be used in simple link tests
7373 lt_simple_link_test_code='int main(){return(0);}\n'
7376 # If no C compiler was specified, use CC.
7379 # If no C compiler flags were specified, use CFLAGS.
7380 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7382 # Allow CC to be a program name with arguments.
7386 # save warnings/boilerplate of simple test code
7387 ac_outfile=conftest.$ac_objext
7388 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7389 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7390 _lt_compiler_boilerplate=`cat conftest.err`
7393 ac_outfile=conftest.$ac_objext
7394 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7395 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7396 _lt_linker_boilerplate=`cat conftest.err`
7401 lt_prog_compiler_no_builtin_flag=
7403 if test "$GCC" = yes; then
7404 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7407 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7408 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7409 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7410 echo $ECHO_N "(cached) $ECHO_C" >&6
7412 lt_cv_prog_compiler_rtti_exceptions=no
7413 ac_outfile=conftest.$ac_objext
7414 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7415 lt_compiler_flag="-fno-rtti -fno-exceptions"
7416 # Insert the option either (1) after the last *FLAGS variable, or
7417 # (2) before a word containing "conftest.", or (3) at the end.
7418 # Note that $ac_compile itself does not contain backslashes and begins
7419 # with a dollar sign (not a hyphen), so the echo should work correctly.
7420 # The option is referenced via a variable to avoid confusing sed.
7421 lt_compile=`echo "$ac_compile" | $SED \
7422 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7423 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7424 -e 's:$: $lt_compiler_flag:'`
7425 (eval echo "\"\$as_me:7425: $lt_compile\"" >&5)
7426 (eval "$lt_compile" 2>conftest.err)
7428 cat conftest.err >&5
7429 echo "$as_me:7429: \$? = $ac_status" >&5
7430 if (exit $ac_status) && test -s "$ac_outfile"; then
7431 # The compiler can only warn and ignore the option if not recognized
7432 # So say no if there are warnings other than the usual output.
7433 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7434 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7435 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7436 lt_cv_prog_compiler_rtti_exceptions=yes
7442 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7443 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7445 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7446 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7453 lt_prog_compiler_wl=
7454 lt_prog_compiler_pic=
7455 lt_prog_compiler_static=
7457 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7458 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7460 if test "$GCC" = yes; then
7461 lt_prog_compiler_wl='-Wl,'
7462 lt_prog_compiler_static='-static'
7466 # All AIX code is PIC.
7467 if test "$host_cpu" = ia64; then
7468 # AIX 5 now supports IA64 processor
7469 lt_prog_compiler_static='-Bstatic'
7474 # FIXME: we need at least 68020 code to build shared libraries, but
7475 # adding the `-m68020' flag to GCC prevents building anything better,
7477 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7480 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7481 # PIC is the default for these OSes.
7484 mingw* | pw32* | os2*)
7485 # This hack is so that the source file can tell whether it is being
7486 # built for inclusion in a dll (and should export symbols for example).
7487 lt_prog_compiler_pic='-DDLL_EXPORT'
7490 darwin* | rhapsody*)
7491 # PIC is the default on this platform
7492 # Common symbols not allowed in MH_DYLIB files
7493 lt_prog_compiler_pic='-fno-common'
7497 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7498 # Instead, we relocate shared libraries at runtime.
7502 # Just because we use GCC doesn't mean we suddenly get shared libraries
7503 # on systems that don't support them.
7504 lt_prog_compiler_can_build_shared=no
7509 if test -d /usr/nec; then
7510 lt_prog_compiler_pic=-Kconform_pic
7515 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7522 lt_prog_compiler_pic='-fPIC'
7528 lt_prog_compiler_pic='-fPIC'
7532 # PORTME Check for flag to pass linker flags through the system compiler.
7535 lt_prog_compiler_wl='-Wl,'
7536 if test "$host_cpu" = ia64; then
7537 # AIX 5 now supports IA64 processor
7538 lt_prog_compiler_static='-Bstatic'
7540 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7544 # PIC is the default on this platform
7545 # Common symbols not allowed in MH_DYLIB files
7546 case $cc_basename in
7548 lt_prog_compiler_pic='-qnocommon'
7549 lt_prog_compiler_wl='-Wl,'
7554 mingw* | pw32* | os2*)
7555 # This hack is so that the source file can tell whether it is being
7556 # built for inclusion in a dll (and should export symbols for example).
7557 lt_prog_compiler_pic='-DDLL_EXPORT'
7560 hpux9* | hpux10* | hpux11*)
7561 lt_prog_compiler_wl='-Wl,'
7562 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7569 lt_prog_compiler_pic='+Z'
7572 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7573 lt_prog_compiler_static='${wl}-a ${wl}archive'
7576 irix5* | irix6* | nonstopux*)
7577 lt_prog_compiler_wl='-Wl,'
7578 # PIC (with -KPIC) is the default.
7579 lt_prog_compiler_static='-non_shared'
7583 lt_prog_compiler_pic='-KPIC'
7584 lt_prog_compiler_static='-Bstatic'
7587 linux* | k*bsd*-gnu)
7588 case $cc_basename in
7590 lt_prog_compiler_wl='-Wl,'
7591 lt_prog_compiler_pic='-KPIC'
7592 lt_prog_compiler_static='-static'
7594 pgcc* | pgf77* | pgf90* | pgf95*)
7595 # Portland Group compilers (*not* the Pentium gcc compiler,
7596 # which looks to be a dead project)
7597 lt_prog_compiler_wl='-Wl,'
7598 lt_prog_compiler_pic='-fpic'
7599 lt_prog_compiler_static='-Bstatic'
7602 lt_prog_compiler_wl='-Wl,'
7603 # All Alpha code is PIC.
7604 lt_prog_compiler_static='-non_shared'
7609 osf3* | osf4* | osf5*)
7610 lt_prog_compiler_wl='-Wl,'
7611 # All OSF/1 code is PIC.
7612 lt_prog_compiler_static='-non_shared'
7616 lt_prog_compiler_pic='-KPIC'
7617 lt_prog_compiler_static='-Bstatic'
7618 case $cc_basename in
7620 lt_prog_compiler_wl='-Qoption ld ';;
7622 lt_prog_compiler_wl='-Wl,';;
7627 lt_prog_compiler_wl='-Qoption ld '
7628 lt_prog_compiler_pic='-PIC'
7629 lt_prog_compiler_static='-Bstatic'
7632 sysv4 | sysv4.2uw2* | sysv4.3*)
7633 lt_prog_compiler_wl='-Wl,'
7634 lt_prog_compiler_pic='-KPIC'
7635 lt_prog_compiler_static='-Bstatic'
7639 if test -d /usr/nec ;then
7640 lt_prog_compiler_pic='-Kconform_pic'
7641 lt_prog_compiler_static='-Bstatic'
7645 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7646 lt_prog_compiler_wl='-Wl,'
7647 lt_prog_compiler_pic='-KPIC'
7648 lt_prog_compiler_static='-Bstatic'
7652 lt_prog_compiler_wl='-Wl,'
7653 lt_prog_compiler_can_build_shared=no
7657 lt_prog_compiler_pic='-pic'
7658 lt_prog_compiler_static='-Bstatic'
7662 lt_prog_compiler_can_build_shared=no
7667 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7668 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7671 # Check to make sure the PIC flag actually works.
7673 if test -n "$lt_prog_compiler_pic"; then
7675 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7676 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7677 if test "${lt_prog_compiler_pic_works+set}" = set; then
7678 echo $ECHO_N "(cached) $ECHO_C" >&6
7680 lt_prog_compiler_pic_works=no
7681 ac_outfile=conftest.$ac_objext
7682 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7683 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7684 # Insert the option either (1) after the last *FLAGS variable, or
7685 # (2) before a word containing "conftest.", or (3) at the end.
7686 # Note that $ac_compile itself does not contain backslashes and begins
7687 # with a dollar sign (not a hyphen), so the echo should work correctly.
7688 # The option is referenced via a variable to avoid confusing sed.
7689 lt_compile=`echo "$ac_compile" | $SED \
7690 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7691 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7692 -e 's:$: $lt_compiler_flag:'`
7693 (eval echo "\"\$as_me:7693: $lt_compile\"" >&5)
7694 (eval "$lt_compile" 2>conftest.err)
7696 cat conftest.err >&5
7697 echo "$as_me:7697: \$? = $ac_status" >&5
7698 if (exit $ac_status) && test -s "$ac_outfile"; then
7699 # The compiler can only warn and ignore the option if not recognized
7700 # So say no if there are warnings other than the usual output.
7701 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7702 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7703 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7704 lt_prog_compiler_pic_works=yes
7710 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7711 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7713 if test x"$lt_prog_compiler_pic_works" = xyes; then
7714 case $lt_prog_compiler_pic in
7716 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7719 lt_prog_compiler_pic=
7720 lt_prog_compiler_can_build_shared=no
7725 # For platforms which do not support PIC, -DPIC is meaningless:
7727 lt_prog_compiler_pic=
7730 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7735 # Check to make sure the static flag actually works.
7737 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7738 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7739 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7740 if test "${lt_prog_compiler_static_works+set}" = set; then
7741 echo $ECHO_N "(cached) $ECHO_C" >&6
7743 lt_prog_compiler_static_works=no
7744 save_LDFLAGS="$LDFLAGS"
7745 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7746 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7747 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7748 # The linker can only warn and ignore the option if not recognized
7749 # So say no if there are warnings
7750 if test -s conftest.err; then
7751 # Append any errors to the config.log.
7752 cat conftest.err 1>&5
7753 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7754 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7755 if diff conftest.exp conftest.er2 >/dev/null; then
7756 lt_prog_compiler_static_works=yes
7759 lt_prog_compiler_static_works=yes
7763 LDFLAGS="$save_LDFLAGS"
7766 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7767 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7769 if test x"$lt_prog_compiler_static_works" = xyes; then
7772 lt_prog_compiler_static=
7776 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7777 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7778 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7779 echo $ECHO_N "(cached) $ECHO_C" >&6
7781 lt_cv_prog_compiler_c_o=no
7782 $rm -r conftest 2>/dev/null
7786 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7788 lt_compiler_flag="-o out/conftest2.$ac_objext"
7789 # Insert the option either (1) after the last *FLAGS variable, or
7790 # (2) before a word containing "conftest.", or (3) at the end.
7791 # Note that $ac_compile itself does not contain backslashes and begins
7792 # with a dollar sign (not a hyphen), so the echo should work correctly.
7793 lt_compile=`echo "$ac_compile" | $SED \
7794 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7795 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7796 -e 's:$: $lt_compiler_flag:'`
7797 (eval echo "\"\$as_me:7797: $lt_compile\"" >&5)
7798 (eval "$lt_compile" 2>out/conftest.err)
7800 cat out/conftest.err >&5
7801 echo "$as_me:7801: \$? = $ac_status" >&5
7802 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7804 # The compiler can only warn and ignore the option if not recognized
7805 # So say no if there are warnings
7806 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7807 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7808 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7809 lt_cv_prog_compiler_c_o=yes
7814 # SGI C++ compiler will create directory out/ii_files/ for
7815 # template instantiation
7816 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7817 $rm out/* && rmdir out
7823 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7824 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7827 hard_links="nottested"
7828 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7829 # do not overwrite the value of need_locks provided by the user
7830 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7831 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7834 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7836 ln conftest.a conftest.b 2>&5 || hard_links=no
7837 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7838 { echo "$as_me:$LINENO: result: $hard_links" >&5
7839 echo "${ECHO_T}$hard_links" >&6; }
7840 if test "$hard_links" = no; then
7841 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7842 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7849 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7850 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7853 allow_undefined_flag=
7854 enable_shared_with_static_runtimes=no
7856 archive_expsym_cmds=
7857 old_archive_From_new_cmds=
7858 old_archive_from_expsyms_cmds=
7859 export_dynamic_flag_spec=
7860 whole_archive_flag_spec=
7861 thread_safe_flag_spec=
7862 hardcode_libdir_flag_spec=
7863 hardcode_libdir_flag_spec_ld=
7864 hardcode_libdir_separator=
7867 hardcode_shlibpath_var=unsupported
7868 link_all_deplibs=unknown
7869 hardcode_automatic=no
7872 always_export_symbols=no
7873 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7874 # include_expsyms should be a list of space-separated symbols to be *always*
7875 # included in the symbol list
7877 # exclude_expsyms can be an extended regexp of symbols to exclude
7878 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7879 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7880 # as well as any symbol that contains `d'.
7881 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7882 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7883 # platforms (ab)use it in PIC code, but their linkers get confused if
7884 # the symbol is explicitly referenced. Since portable code cannot
7885 # rely on this symbol name, it's probably fine to never include it in
7886 # preloaded symbol tables.
7887 extract_expsyms_cmds=
7888 # Just being paranoid about ensuring that cc_basename is set.
7889 for cc_temp in $compiler""; do
7891 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7892 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7897 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7900 cygwin* | mingw* | pw32*)
7901 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7902 # When not using gcc, we currently assume that we are using
7903 # Microsoft Visual C++.
7904 if test "$GCC" != yes; then
7909 # we just hope/assume this is gcc and not c89 (= MSVC++)
7918 if test "$with_gnu_ld" = yes; then
7919 # If archive_cmds runs LD, not CC, wlarc should be empty
7922 # Set some defaults for GNU ld with shared library support. These
7923 # are reset later if shared libraries are not supported. Putting them
7924 # here allows them to be overridden if necessary.
7925 runpath_var=LD_RUN_PATH
7926 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7927 export_dynamic_flag_spec='${wl}--export-dynamic'
7928 # ancient GNU ld didn't support --whole-archive et. al.
7929 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7930 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7932 whole_archive_flag_spec=
7934 supports_anon_versioning=no
7935 case `$LD -v 2>/dev/null` in
7936 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7937 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7938 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7939 *\ 2.11.*) ;; # other 2.11 versions
7940 *) supports_anon_versioning=yes ;;
7943 # See if GNU ld supports shared libraries.
7945 aix3* | aix4* | aix5*)
7946 # On AIX/PPC, the GNU linker is very broken
7947 if test "$host_cpu" != ia64; then
7951 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7952 *** to be unable to reliably create shared libraries on AIX.
7953 *** Therefore, libtool is disabling shared libraries support. If you
7954 *** really care for shared libraries, you may want to modify your PATH
7955 *** so that a non-GNU linker is found, and then restart.
7962 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)'
7963 hardcode_libdir_flag_spec='-L$libdir'
7964 hardcode_minus_L=yes
7966 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7967 # that the semantics of dynamic libraries on AmigaOS, at least up
7968 # to version 4, is to share data among multiple programs linked
7969 # with the same dynamic library. Since this doesn't match the
7970 # behavior of shared libraries on other platforms, we can't use
7976 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7977 allow_undefined_flag=unsupported
7978 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7979 # support --undefined. This deserves some investigation. FIXME
7980 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7986 cygwin* | mingw* | pw32*)
7987 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7988 # as there is no search path for DLLs.
7989 hardcode_libdir_flag_spec='-L$libdir'
7990 allow_undefined_flag=unsupported
7991 always_export_symbols=no
7992 enable_shared_with_static_runtimes=yes
7993 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7995 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7996 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7997 # If the export-symbols file already is a .def file (1st line
7998 # is EXPORTS), use it as is; otherwise, prepend...
7999 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8000 cp $export_symbols $output_objdir/$soname.def;
8002 echo EXPORTS > $output_objdir/$soname.def;
8003 cat $export_symbols >> $output_objdir/$soname.def;
8005 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8013 hardcode_shlibpath_var=no
8014 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8015 export_dynamic_flag_spec='${wl}-E'
8016 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8017 # Instead, shared libraries are loaded at an image base (0x10000000 by
8018 # default) and relocated if they conflict, which is a slow very memory
8019 # consuming and fragmenting process. To avoid this, we pick a random,
8020 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8021 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8022 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8023 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'
8026 linux* | k*bsd*-gnu)
8027 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8029 case $cc_basename,$host_cpu in
8030 pgcc*) # Portland Group C compiler
8031 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'
8032 tmp_addflag=' $pic_flag'
8034 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8035 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'
8036 tmp_addflag=' $pic_flag -Mnomain' ;;
8037 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8038 tmp_addflag=' -i_dynamic' ;;
8039 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8040 tmp_addflag=' -i_dynamic -nofor_main' ;;
8041 ifc* | ifort*) # Intel Fortran compiler
8042 tmp_addflag=' -nofor_main' ;;
8044 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8046 if test $supports_anon_versioning = yes; then
8047 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8048 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8049 $echo "local: *; };" >> $output_objdir/$libname.ver~
8050 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8058 netbsd* | netbsdelf*-gnu)
8059 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8060 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8063 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8064 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8069 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8073 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8074 *** create shared libraries on Solaris systems. Therefore, libtool
8075 *** is disabling shared libraries support. We urge you to upgrade GNU
8076 *** binutils to release 2.9.1 or newer. Another option is to modify
8077 *** your PATH or compiler configuration so that the native linker is
8078 *** used, and then restart.
8081 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8082 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8083 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8089 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8090 case `$LD -v 2>&1` in
8091 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8095 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8096 *** reliably create shared libraries on SCO systems. Therefore, libtool
8097 *** is disabling shared libraries support. We urge you to upgrade GNU
8098 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8099 *** your PATH or compiler configuration so that the native linker is
8100 *** used, and then restart.
8105 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8106 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8107 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8108 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8117 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8120 hardcode_shlibpath_var=no
8124 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8125 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8126 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8133 if test "$ld_shlibs" = no; then
8135 hardcode_libdir_flag_spec=
8136 export_dynamic_flag_spec=
8137 whole_archive_flag_spec=
8140 # PORTME fill in a description of your system's linker (not GNU ld)
8143 allow_undefined_flag=unsupported
8144 always_export_symbols=yes
8145 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'
8146 # Note: this linker hardcodes the directories in LIBPATH if there
8147 # are no directories specified by -L.
8148 hardcode_minus_L=yes
8149 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8150 # Neither direct hardcoding nor static linking is supported with a
8152 hardcode_direct=unsupported
8157 if test "$host_cpu" = ia64; then
8158 # On IA64, the linker does run time linking by default, so we don't
8159 # have to do anything special.
8160 aix_use_runtimelinking=no
8161 exp_sym_flag='-Bexport'
8164 # If we're using GNU nm, then we don't want the "-C" option.
8165 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8166 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8167 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'
8169 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'
8171 aix_use_runtimelinking=no
8173 # Test if we are trying to use run time linking or normal
8174 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8175 # need to do runtime linking.
8176 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8177 for ld_flag in $LDFLAGS; do
8178 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8179 aix_use_runtimelinking=yes
8186 exp_sym_flag='-bexport'
8187 no_entry_flag='-bnoentry'
8190 # When large executables or shared objects are built, AIX ld can
8191 # have problems creating the table of contents. If linking a library
8192 # or program results in "error TOC overflow" add -mminimal-toc to
8193 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8194 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8198 hardcode_libdir_separator=':'
8199 link_all_deplibs=yes
8201 if test "$GCC" = yes; then
8202 case $host_os in aix4.[012]|aix4.[012].*)
8203 # We only want to do this on AIX 4.2 and lower, the check
8204 # below for broken collect2 doesn't work under 4.3+
8205 collect2name=`${CC} -print-prog-name=collect2`
8206 if test -f "$collect2name" && \
8207 strings "$collect2name" | grep resolve_lib_name >/dev/null
8209 # We have reworked collect2
8212 # We have old collect2
8213 hardcode_direct=unsupported
8214 # It fails to find uninstalled libraries when the uninstalled
8215 # path is not listed in the libpath. Setting hardcode_minus_L
8216 # to unsupported forces relinking
8217 hardcode_minus_L=yes
8218 hardcode_libdir_flag_spec='-L$libdir'
8219 hardcode_libdir_separator=
8223 shared_flag='-shared'
8224 if test "$aix_use_runtimelinking" = yes; then
8225 shared_flag="$shared_flag "'${wl}-G'
8229 if test "$host_cpu" = ia64; then
8230 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8231 # chokes on -Wl,-G. The following line is correct:
8234 if test "$aix_use_runtimelinking" = yes; then
8235 shared_flag='${wl}-G'
8237 shared_flag='${wl}-bM:SRE'
8242 # It seems that -bexpall does not export symbols beginning with
8243 # underscore (_), so it is better to generate a list of symbols to export.
8244 always_export_symbols=yes
8245 if test "$aix_use_runtimelinking" = yes; then
8246 # Warning - without using the other runtime loading flags (-brtl),
8247 # -berok will link without error, but may produce a broken library.
8248 allow_undefined_flag='-berok'
8249 # Determine the default libpath from the value encoded in an empty executable.
8250 cat >conftest.$ac_ext <<_ACEOF
8253 cat confdefs.h >>conftest.$ac_ext
8254 cat >>conftest.$ac_ext <<_ACEOF
8255 /* end confdefs.h. */
8265 rm -f conftest.$ac_objext conftest$ac_exeext
8266 if { (ac_try="$ac_link"
8268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8269 *) ac_try_echo=$ac_try;;
8271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8272 (eval "$ac_link") 2>conftest.er1
8274 grep -v '^ *+' conftest.er1 >conftest.err
8276 cat conftest.err >&5
8277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8278 (exit $ac_status); } && {
8279 test -z "$ac_c_werror_flag" ||
8280 test ! -s conftest.err
8281 } && test -s conftest$ac_exeext &&
8282 $as_test_x conftest$ac_exeext; then
8284 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8286 # Check for a 64-bit object if we didn't find anything.
8287 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8290 echo "$as_me: failed program was:" >&5
8291 sed 's/^/| /' conftest.$ac_ext >&5
8296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8297 conftest$ac_exeext conftest.$ac_ext
8298 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8300 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8301 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"
8303 if test "$host_cpu" = ia64; then
8304 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8305 allow_undefined_flag="-z nodefs"
8306 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"
8308 # Determine the default libpath from the value encoded in an empty executable.
8309 cat >conftest.$ac_ext <<_ACEOF
8312 cat confdefs.h >>conftest.$ac_ext
8313 cat >>conftest.$ac_ext <<_ACEOF
8314 /* end confdefs.h. */
8324 rm -f conftest.$ac_objext conftest$ac_exeext
8325 if { (ac_try="$ac_link"
8327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8328 *) ac_try_echo=$ac_try;;
8330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8331 (eval "$ac_link") 2>conftest.er1
8333 grep -v '^ *+' conftest.er1 >conftest.err
8335 cat conftest.err >&5
8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 (exit $ac_status); } && {
8338 test -z "$ac_c_werror_flag" ||
8339 test ! -s conftest.err
8340 } && test -s conftest$ac_exeext &&
8341 $as_test_x conftest$ac_exeext; then
8343 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8345 # Check for a 64-bit object if we didn't find anything.
8346 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8349 echo "$as_me: failed program was:" >&5
8350 sed 's/^/| /' conftest.$ac_ext >&5
8355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8356 conftest$ac_exeext conftest.$ac_ext
8357 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8359 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8360 # Warning - without using the other run time loading flags,
8361 # -berok will link without error, but may produce a broken library.
8362 no_undefined_flag=' ${wl}-bernotok'
8363 allow_undefined_flag=' ${wl}-berok'
8364 # Exported symbols can be pulled into shared objects from archives
8365 whole_archive_flag_spec='$convenience'
8366 archive_cmds_need_lc=yes
8367 # This is similar to how AIX traditionally builds its shared libraries.
8368 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'
8374 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)'
8375 hardcode_libdir_flag_spec='-L$libdir'
8376 hardcode_minus_L=yes
8377 # see comment about different semantics on the GNU ld section
8382 export_dynamic_flag_spec=-rdynamic
8385 cygwin* | mingw* | pw32*)
8386 # When not using gcc, we currently assume that we are using
8387 # Microsoft Visual C++.
8388 # hardcode_libdir_flag_spec is actually meaningless, as there is
8389 # no search path for DLLs.
8390 hardcode_libdir_flag_spec=' '
8391 allow_undefined_flag=unsupported
8392 # Tell ltmain to make .lib files, not .a files.
8394 # Tell ltmain to make .dll files, not .so files.
8396 # FIXME: Setting linknames here is a bad hack.
8397 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8398 # The linker will automatically build a .lib file if we build a DLL.
8399 old_archive_From_new_cmds='true'
8400 # FIXME: Should let the user specify the lib program.
8401 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8402 fix_srcfile_path='`cygpath -w "$srcfile"`'
8403 enable_shared_with_static_runtimes=yes
8406 darwin* | rhapsody*)
8408 rhapsody* | darwin1.[012])
8409 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8412 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8413 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8415 case ${MACOSX_DEPLOYMENT_TARGET} in
8417 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8420 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8426 archive_cmds_need_lc=no
8428 hardcode_automatic=yes
8429 hardcode_shlibpath_var=unsupported
8430 whole_archive_flag_spec=''
8431 link_all_deplibs=yes
8432 if test "$GCC" = yes ; then
8433 output_verbose_link_cmd='echo'
8434 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8435 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8436 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8437 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8438 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}'
8440 case $cc_basename in
8442 output_verbose_link_cmd='echo'
8443 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8444 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8445 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8446 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8447 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}'
8457 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8458 hardcode_libdir_flag_spec='-L$libdir'
8459 hardcode_shlibpath_var=no
8466 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8467 # support. Future versions do this automatically, but an explicit c++rt0.o
8468 # does not break anything, and helps significantly (at the cost of a little
8471 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8472 hardcode_libdir_flag_spec='-R$libdir'
8474 hardcode_shlibpath_var=no
8477 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8479 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8481 hardcode_minus_L=yes
8482 hardcode_shlibpath_var=no
8485 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8486 freebsd* | dragonfly*)
8487 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8488 hardcode_libdir_flag_spec='-R$libdir'
8490 hardcode_shlibpath_var=no
8494 if test "$GCC" = yes; then
8495 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'
8497 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'
8499 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8500 hardcode_libdir_separator=:
8503 # hardcode_minus_L: Not really in the search PATH,
8504 # but as the default location of the library.
8505 hardcode_minus_L=yes
8506 export_dynamic_flag_spec='${wl}-E'
8510 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8511 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8513 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8515 if test "$with_gnu_ld" = no; then
8516 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8517 hardcode_libdir_separator=:
8520 export_dynamic_flag_spec='${wl}-E'
8522 # hardcode_minus_L: Not really in the search PATH,
8523 # but as the default location of the library.
8524 hardcode_minus_L=yes
8529 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8532 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8535 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8538 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8544 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8547 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8550 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8554 if test "$with_gnu_ld" = no; then
8555 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8556 hardcode_libdir_separator=:
8560 hardcode_libdir_flag_spec_ld='+b $libdir'
8562 hardcode_shlibpath_var=no
8566 export_dynamic_flag_spec='${wl}-E'
8568 # hardcode_minus_L: Not really in the search PATH,
8569 # but as the default location of the library.
8570 hardcode_minus_L=yes
8576 irix5* | irix6* | nonstopux*)
8577 if test "$GCC" = yes; then
8578 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'
8580 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'
8581 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8583 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8584 hardcode_libdir_separator=:
8585 link_all_deplibs=yes
8588 netbsd* | netbsdelf*-gnu)
8589 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8590 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8592 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8594 hardcode_libdir_flag_spec='-R$libdir'
8596 hardcode_shlibpath_var=no
8600 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8602 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8603 hardcode_libdir_separator=:
8604 hardcode_shlibpath_var=no
8609 hardcode_shlibpath_var=no
8610 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8611 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8612 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8613 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8614 export_dynamic_flag_spec='${wl}-E'
8617 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8618 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8619 hardcode_libdir_flag_spec='-R$libdir'
8622 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8623 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8630 hardcode_libdir_flag_spec='-L$libdir'
8631 hardcode_minus_L=yes
8632 allow_undefined_flag=unsupported
8633 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'
8634 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8638 if test "$GCC" = yes; then
8639 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8640 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'
8642 allow_undefined_flag=' -expect_unresolved \*'
8643 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'
8645 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8646 hardcode_libdir_separator=:
8649 osf4* | osf5*) # as osf3* with the addition of -msym flag
8650 if test "$GCC" = yes; then
8651 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8652 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'
8653 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8655 allow_undefined_flag=' -expect_unresolved \*'
8656 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'
8657 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8658 $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'
8660 # Both c and cxx compiler support -rpath directly
8661 hardcode_libdir_flag_spec='-rpath $libdir'
8663 hardcode_libdir_separator=:
8667 no_undefined_flag=' -z text'
8668 if test "$GCC" = yes; then
8670 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8671 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8672 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8675 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8676 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8677 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8679 hardcode_libdir_flag_spec='-R$libdir'
8680 hardcode_shlibpath_var=no
8682 solaris2.[0-5] | solaris2.[0-5].*) ;;
8684 # The compiler driver will combine linker options so we
8685 # cannot just pass the convience library names through
8686 # without $wl, iff we do not link with $LD.
8687 # Luckily, gcc supports the same syntax we need for Sun Studio.
8688 # Supported since Solaris 2.6 (maybe 2.5.1?)
8691 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8693 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8696 link_all_deplibs=yes
8700 if test "x$host_vendor" = xsequent; then
8701 # Use $CC to link under sequent, because it throws in some extra .o
8702 # files that make .init and .fini sections work.
8703 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8705 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8707 hardcode_libdir_flag_spec='-L$libdir'
8709 hardcode_minus_L=yes
8710 hardcode_shlibpath_var=no
8714 case $host_vendor in
8716 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8717 hardcode_direct=yes # is this really true???
8720 ## LD is ld it makes a PLAMLIB
8721 ## CC just makes a GrossModule.
8722 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8723 reload_cmds='$CC -r -o $output$reload_objs'
8727 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8728 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8731 runpath_var='LD_RUN_PATH'
8732 hardcode_shlibpath_var=no
8736 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8737 hardcode_shlibpath_var=no
8738 export_dynamic_flag_spec='-Bexport'
8742 if test -d /usr/nec; then
8743 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8744 hardcode_shlibpath_var=no
8745 runpath_var=LD_RUN_PATH
8746 hardcode_runpath_var=yes
8751 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8752 no_undefined_flag='${wl}-z,text'
8753 archive_cmds_need_lc=no
8754 hardcode_shlibpath_var=no
8755 runpath_var='LD_RUN_PATH'
8757 if test "$GCC" = yes; then
8758 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8759 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8761 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8762 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8766 sysv5* | sco3.2v5* | sco5v6*)
8767 # Note: We can NOT use -z defs as we might desire, because we do not
8768 # link with -lc, and that would cause any symbols used from libc to
8769 # always be unresolved, which means just about no library would
8770 # ever link correctly. If we're not using GNU ld we use -z text
8771 # though, which does catch some bad symbols but isn't as heavy-handed
8773 no_undefined_flag='${wl}-z,text'
8774 allow_undefined_flag='${wl}-z,nodefs'
8775 archive_cmds_need_lc=no
8776 hardcode_shlibpath_var=no
8777 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8778 hardcode_libdir_separator=':'
8779 link_all_deplibs=yes
8780 export_dynamic_flag_spec='${wl}-Bexport'
8781 runpath_var='LD_RUN_PATH'
8783 if test "$GCC" = yes; then
8784 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8785 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8787 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8788 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8793 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8794 hardcode_libdir_flag_spec='-L$libdir'
8795 hardcode_shlibpath_var=no
8804 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8805 echo "${ECHO_T}$ld_shlibs" >&6; }
8806 test "$ld_shlibs" = no && can_build_shared=no
8809 # Do we need to explicitly link libc?
8811 case "x$archive_cmds_need_lc" in
8813 # Assume -lc should be added
8814 archive_cmds_need_lc=yes
8816 if test "$enable_shared" = yes && test "$GCC" = yes; then
8817 case $archive_cmds in
8819 # FIXME: we may have to deal with multi-command sequences.
8822 # Test whether the compiler implicitly links with -lc since on some
8823 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8824 # to ld, don't add -lc before -lgcc.
8825 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8826 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8828 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8831 (eval $ac_compile) 2>&5
8833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834 (exit $ac_status); } 2>conftest.err; then
8837 libobjs=conftest.$ac_objext
8839 wl=$lt_prog_compiler_wl
8840 pic_flag=$lt_prog_compiler_pic
8846 lt_save_allow_undefined_flag=$allow_undefined_flag
8847 allow_undefined_flag=
8848 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8849 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852 (exit $ac_status); }
8854 archive_cmds_need_lc=no
8856 archive_cmds_need_lc=yes
8858 allow_undefined_flag=$lt_save_allow_undefined_flag
8860 cat conftest.err 1>&5
8863 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8864 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8871 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8872 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8874 libname_spec='lib$name'
8882 shlibpath_overrides_runpath=unknown
8884 dynamic_linker="$host_os ld.so"
8885 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8886 if test "$GCC" = yes; then
8887 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8888 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8889 # if the path contains ";" then we assume it to be the separator
8890 # otherwise default to the standard path separator (i.e. ":") - it is
8891 # assumed that no part of a normal pathname contains ";" but that should
8892 # okay in the real world where ";" in dirpaths is itself problematic.
8893 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8895 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8898 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8900 need_lib_prefix=unknown
8901 hardcode_into_libs=no
8903 # when you set need_version to no, make sure it does not cause -set_version
8904 # flags to be left without arguments
8905 need_version=unknown
8910 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8911 shlibpath_var=LIBPATH
8913 # AIX 3 has no versioning support, so we append a major version to the name.
8914 soname_spec='${libname}${release}${shared_ext}$major'
8921 hardcode_into_libs=yes
8922 if test "$host_cpu" = ia64; then
8923 # AIX 5 supports IA64
8924 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8925 shlibpath_var=LD_LIBRARY_PATH
8927 # With GCC up to 2.95.x, collect2 would create an import file
8928 # for dependence libraries. The import file would start with
8929 # the line `#! .'. This would cause the generated library to
8930 # depend on `.', always an invalid library. This was fixed in
8931 # development snapshots of GCC prior to 3.0.
8933 aix4 | aix4.[01] | aix4.[01].*)
8934 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8936 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8943 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8944 # soname into executable. Probably we can add versioning support to
8945 # collect2, so additional links can be useful in future.
8946 if test "$aix_use_runtimelinking" = yes; then
8947 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8948 # instead of lib<name>.a to let people know that these are not
8949 # typical AIX shared libraries.
8950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8952 # We preserve .a as extension for shared libraries through AIX4.2
8953 # and later when we are not doing run time linking.
8954 library_names_spec='${libname}${release}.a $libname.a'
8955 soname_spec='${libname}${release}${shared_ext}$major'
8957 shlibpath_var=LIBPATH
8962 library_names_spec='$libname.ixlibrary $libname.a'
8963 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8964 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'
8968 library_names_spec='${libname}${shared_ext}'
8969 dynamic_linker="$host_os ld.so"
8970 shlibpath_var=LIBRARY_PATH
8976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8977 soname_spec='${libname}${release}${shared_ext}$major'
8978 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8979 shlibpath_var=LD_LIBRARY_PATH
8980 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8981 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8982 # the default ld.so.conf also contains /usr/contrib/lib and
8983 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8984 # libtool to hard-code these into programs
8987 cygwin* | mingw* | pw32*)
8988 version_type=windows
8993 case $GCC,$host_os in
8994 yes,cygwin* | yes,mingw* | yes,pw32*)
8995 library_names_spec='$libname.dll.a'
8996 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8997 postinstall_cmds='base_file=`basename \${file}`~
8998 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8999 dldir=$destdir/`dirname \$dlpath`~
9000 test -d \$dldir || mkdir -p \$dldir~
9001 $install_prog $dir/$dlname \$dldir/$dlname~
9002 chmod a+x \$dldir/$dlname'
9003 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9004 dlpath=$dir/\$dldll~
9006 shlibpath_overrides_runpath=yes
9010 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9011 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9012 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9015 # MinGW DLLs use traditional 'lib' prefix
9016 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9017 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9018 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9019 # It is most probably a Windows format PATH printed by
9020 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9021 # path with ; separators, and with drive letters. We can handle the
9022 # drive letters (cygwin fileutils understands them), so leave them,
9023 # especially as we might pass files found there to a mingw objdump,
9024 # which wouldn't understand a cygwinified path. Ahh.
9025 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9027 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9031 # pw32 DLLs use 'pw' prefix rather than 'lib'
9032 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9038 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9041 dynamic_linker='Win32 ld.exe'
9042 # FIXME: first we should search . and the directory the executable is in
9046 darwin* | rhapsody*)
9047 dynamic_linker="$host_os dyld"
9051 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9052 soname_spec='${libname}${release}${major}$shared_ext'
9053 shlibpath_overrides_runpath=yes
9054 shlibpath_var=DYLD_LIBRARY_PATH
9055 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9056 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9057 if test "$GCC" = yes; then
9058 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9060 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9062 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9070 soname_spec='${libname}${release}${shared_ext}$major'
9071 shlibpath_var=LD_LIBRARY_PATH
9078 freebsd* | dragonfly*)
9079 # DragonFly does not have aout. When/if they implement a new
9080 # versioning mechanism, adjust this.
9081 if test -x /usr/bin/objformat; then
9082 objformat=`/usr/bin/objformat`
9085 freebsd[123]*) objformat=aout ;;
9089 version_type=freebsd-$objformat
9090 case $version_type in
9092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9097 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9101 shlibpath_var=LD_LIBRARY_PATH
9104 shlibpath_overrides_runpath=yes
9106 freebsd3.[01]* | freebsdelf3.[01]*)
9107 shlibpath_overrides_runpath=yes
9108 hardcode_into_libs=yes
9110 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9111 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9112 shlibpath_overrides_runpath=no
9113 hardcode_into_libs=yes
9115 freebsd*) # from 4.6 on
9116 shlibpath_overrides_runpath=yes
9117 hardcode_into_libs=yes
9126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9127 soname_spec='${libname}${release}${shared_ext}$major'
9128 shlibpath_var=LD_LIBRARY_PATH
9129 hardcode_into_libs=yes
9132 hpux9* | hpux10* | hpux11*)
9133 # Give a soname corresponding to the major version so that dld.sl refuses to
9134 # link against other versions.
9141 hardcode_into_libs=yes
9142 dynamic_linker="$host_os dld.so"
9143 shlibpath_var=LD_LIBRARY_PATH
9144 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9146 soname_spec='${libname}${release}${shared_ext}$major'
9147 if test "X$HPUX_IA64_MODE" = X32; then
9148 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9150 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9152 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9156 hardcode_into_libs=yes
9157 dynamic_linker="$host_os dld.sl"
9158 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9159 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9161 soname_spec='${libname}${release}${shared_ext}$major'
9162 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9163 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9167 dynamic_linker="$host_os dld.sl"
9168 shlibpath_var=SHLIB_PATH
9169 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9171 soname_spec='${libname}${release}${shared_ext}$major'
9174 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9175 postinstall_cmds='chmod 555 $lib'
9182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9183 soname_spec='${libname}${release}${shared_ext}$major'
9184 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9185 shlibpath_var=LD_LIBRARY_PATH
9186 shlibpath_overrides_runpath=no
9187 hardcode_into_libs=yes
9190 irix5* | irix6* | nonstopux*)
9192 nonstopux*) version_type=nonstopux ;;
9194 if test "$lt_cv_prog_gnu_ld" = yes; then
9202 soname_spec='${libname}${release}${shared_ext}$major'
9203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9205 irix5* | nonstopux*)
9209 case $LD in # libtool.m4 will add one of these switches to LD
9210 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9211 libsuff= shlibsuff= libmagic=32-bit;;
9212 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9213 libsuff=32 shlibsuff=N32 libmagic=N32;;
9214 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9215 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9216 *) libsuff= shlibsuff= libmagic=never-match;;
9220 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9221 shlibpath_overrides_runpath=no
9222 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9223 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9224 hardcode_into_libs=yes
9227 # No shared lib support for Linux oldld, aout, or coff.
9228 linux*oldld* | linux*aout* | linux*coff*)
9232 # This must be Linux ELF.
9233 linux* | k*bsd*-gnu)
9237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9238 soname_spec='${libname}${release}${shared_ext}$major'
9239 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9240 shlibpath_var=LD_LIBRARY_PATH
9241 shlibpath_overrides_runpath=no
9242 # This implies no fast_install, which is unacceptable.
9243 # Some rework will be needed to allow for fast_install
9244 # before this can be enabled.
9245 hardcode_into_libs=yes
9247 # Append ld.so.conf contents to the search path
9248 if test -f /etc/ld.so.conf; then
9249 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9250 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9253 # We used to test for /lib/ld.so.1 and disable shared libraries on
9254 # powerpc, because MkLinux only supported shared libraries with the
9255 # GNU dynamic linker. Since this was broken with cross compilers,
9256 # most powerpc-linux boxes support dynamic linking these days and
9257 # people can always --disable-shared, the test was removed, and we
9258 # assume the GNU/Linux dynamic linker is in use.
9259 dynamic_linker='GNU/Linux ld.so'
9266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9267 soname_spec='${libname}${release}${shared_ext}$major'
9268 shlibpath_var=LD_LIBRARY_PATH
9269 shlibpath_overrides_runpath=no
9270 hardcode_into_libs=yes
9271 dynamic_linker='NetBSD ld.elf_so'
9278 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9280 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9281 dynamic_linker='NetBSD (a.out) ld.so'
9283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9284 soname_spec='${libname}${release}${shared_ext}$major'
9285 dynamic_linker='NetBSD ld.elf_so'
9287 shlibpath_var=LD_LIBRARY_PATH
9288 shlibpath_overrides_runpath=yes
9289 hardcode_into_libs=yes
9294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9295 shlibpath_var=LD_LIBRARY_PATH
9296 shlibpath_overrides_runpath=yes
9303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9304 soname_spec='${libname}${release}${shared_ext}$major'
9305 shlibpath_var=LD_LIBRARY_PATH
9306 shlibpath_overrides_runpath=yes
9311 sys_lib_dlsearch_path_spec="/usr/lib"
9313 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9315 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9316 *) need_version=no ;;
9318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9319 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9320 shlibpath_var=LD_LIBRARY_PATH
9321 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9323 openbsd2.[89] | openbsd2.[89].*)
9324 shlibpath_overrides_runpath=no
9327 shlibpath_overrides_runpath=yes
9331 shlibpath_overrides_runpath=yes
9336 libname_spec='$name'
9339 library_names_spec='$libname${shared_ext} $libname.a'
9340 dynamic_linker='OS/2 ld.exe'
9341 shlibpath_var=LIBPATH
9344 osf3* | osf4* | osf5*)
9348 soname_spec='${libname}${release}${shared_ext}$major'
9349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9350 shlibpath_var=LD_LIBRARY_PATH
9351 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9352 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9360 soname_spec='${libname}${release}${shared_ext}$major'
9361 shlibpath_var=LD_LIBRARY_PATH
9362 shlibpath_overrides_runpath=yes
9363 hardcode_into_libs=yes
9364 # ldd complains unless libraries are executable
9365 postinstall_cmds='chmod +x $lib'
9370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9371 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9372 shlibpath_var=LD_LIBRARY_PATH
9373 shlibpath_overrides_runpath=yes
9374 if test "$with_gnu_ld" = yes; then
9382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9383 soname_spec='${libname}${release}${shared_ext}$major'
9384 shlibpath_var=LD_LIBRARY_PATH
9385 case $host_vendor in
9387 shlibpath_overrides_runpath=no
9389 export_dynamic_flag_spec='${wl}-Blargedynsym'
9390 runpath_var=LD_RUN_PATH
9398 shlibpath_overrides_runpath=no
9399 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9405 if test -d /usr/nec ;then
9407 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9408 soname_spec='$libname${shared_ext}.$major'
9409 shlibpath_var=LD_LIBRARY_PATH
9413 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9414 version_type=freebsd-elf
9417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9418 soname_spec='${libname}${release}${shared_ext}$major'
9419 shlibpath_var=LD_LIBRARY_PATH
9420 hardcode_into_libs=yes
9421 if test "$with_gnu_ld" = yes; then
9422 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9423 shlibpath_overrides_runpath=no
9425 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9426 shlibpath_overrides_runpath=yes
9429 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9433 sys_lib_dlsearch_path_spec='/usr/lib'
9438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9439 soname_spec='${libname}${release}${shared_ext}$major'
9440 shlibpath_var=LD_LIBRARY_PATH
9447 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9448 echo "${ECHO_T}$dynamic_linker" >&6; }
9449 test "$dynamic_linker" = no && can_build_shared=no
9451 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9452 if test "$GCC" = yes; then
9453 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9456 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9457 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9459 if test -n "$hardcode_libdir_flag_spec" || \
9460 test -n "$runpath_var" || \
9461 test "X$hardcode_automatic" = "Xyes" ; then
9463 # We can hardcode non-existant directories.
9464 if test "$hardcode_direct" != no &&
9465 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9466 # have to relink, otherwise we might link with an installed library
9467 # when we should be linking with a yet-to-be-installed one
9468 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9469 test "$hardcode_minus_L" != no; then
9470 # Linking always hardcodes the temporary library directory.
9471 hardcode_action=relink
9473 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9474 hardcode_action=immediate
9477 # We cannot hardcode anything, or else we can only hardcode existing
9479 hardcode_action=unsupported
9481 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9482 echo "${ECHO_T}$hardcode_action" >&6; }
9484 if test "$hardcode_action" = relink; then
9485 # Fast installation is not supported
9486 enable_fast_install=no
9487 elif test "$shlibpath_overrides_runpath" = yes ||
9488 test "$enable_shared" = no; then
9489 # Fast installation is not necessary
9490 enable_fast_install=needless
9495 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9496 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9497 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9498 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9499 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9500 { echo "$as_me:$LINENO: result: yes" >&5
9501 echo "${ECHO_T}yes" >&6; }
9503 # FIXME - insert some real tests, host_os isn't really good enough
9506 if test -n "$STRIP" ; then
9507 striplib="$STRIP -x"
9508 { echo "$as_me:$LINENO: result: yes" >&5
9509 echo "${ECHO_T}yes" >&6; }
9511 { echo "$as_me:$LINENO: result: no" >&5
9512 echo "${ECHO_T}no" >&6; }
9516 { echo "$as_me:$LINENO: result: no" >&5
9517 echo "${ECHO_T}no" >&6; }
9522 if test "x$enable_dlopen" != xyes; then
9523 enable_dlopen=unknown
9524 enable_dlopen_self=unknown
9525 enable_dlopen_self_static=unknown
9532 lt_cv_dlopen="load_add_on"
9534 lt_cv_dlopen_self=yes
9538 lt_cv_dlopen="LoadLibrary"
9543 lt_cv_dlopen="dlopen"
9548 # if libdl is installed we need to link against it
9549 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9550 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9551 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9552 echo $ECHO_N "(cached) $ECHO_C" >&6
9554 ac_check_lib_save_LIBS=$LIBS
9556 cat >conftest.$ac_ext <<_ACEOF
9559 cat confdefs.h >>conftest.$ac_ext
9560 cat >>conftest.$ac_ext <<_ACEOF
9561 /* end confdefs.h. */
9563 /* Override any GCC internal prototype to avoid an error.
9564 Use char because int might match the return type of a GCC
9565 builtin and then its argument prototype would still apply. */
9578 rm -f conftest.$ac_objext conftest$ac_exeext
9579 if { (ac_try="$ac_link"
9581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9582 *) ac_try_echo=$ac_try;;
9584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9585 (eval "$ac_link") 2>conftest.er1
9587 grep -v '^ *+' conftest.er1 >conftest.err
9589 cat conftest.err >&5
9590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 (exit $ac_status); } && {
9592 test -z "$ac_c_werror_flag" ||
9593 test ! -s conftest.err
9594 } && test -s conftest$ac_exeext &&
9595 $as_test_x conftest$ac_exeext; then
9596 ac_cv_lib_dl_dlopen=yes
9598 echo "$as_me: failed program was:" >&5
9599 sed 's/^/| /' conftest.$ac_ext >&5
9601 ac_cv_lib_dl_dlopen=no
9604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9605 conftest$ac_exeext conftest.$ac_ext
9606 LIBS=$ac_check_lib_save_LIBS
9608 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9609 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9610 if test $ac_cv_lib_dl_dlopen = yes; then
9611 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9616 lt_cv_dlopen_self=yes
9623 { echo "$as_me:$LINENO: checking for shl_load" >&5
9624 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9625 if test "${ac_cv_func_shl_load+set}" = set; then
9626 echo $ECHO_N "(cached) $ECHO_C" >&6
9628 cat >conftest.$ac_ext <<_ACEOF
9631 cat confdefs.h >>conftest.$ac_ext
9632 cat >>conftest.$ac_ext <<_ACEOF
9633 /* end confdefs.h. */
9634 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9635 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9636 #define shl_load innocuous_shl_load
9638 /* System header to define __stub macros and hopefully few prototypes,
9639 which can conflict with char shl_load (); below.
9640 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9641 <limits.h> exists even on freestanding compilers. */
9644 # include <limits.h>
9646 # include <assert.h>
9651 /* Override any GCC internal prototype to avoid an error.
9652 Use char because int might match the return type of a GCC
9653 builtin and then its argument prototype would still apply. */
9658 /* The GNU C library defines this for functions which it implements
9659 to always fail with ENOSYS. Some functions are actually named
9660 something starting with __ and the normal name is an alias. */
9661 #if defined __stub_shl_load || defined __stub___shl_load
9673 rm -f conftest.$ac_objext conftest$ac_exeext
9674 if { (ac_try="$ac_link"
9676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9677 *) ac_try_echo=$ac_try;;
9679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9680 (eval "$ac_link") 2>conftest.er1
9682 grep -v '^ *+' conftest.er1 >conftest.err
9684 cat conftest.err >&5
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); } && {
9687 test -z "$ac_c_werror_flag" ||
9688 test ! -s conftest.err
9689 } && test -s conftest$ac_exeext &&
9690 $as_test_x conftest$ac_exeext; then
9691 ac_cv_func_shl_load=yes
9693 echo "$as_me: failed program was:" >&5
9694 sed 's/^/| /' conftest.$ac_ext >&5
9696 ac_cv_func_shl_load=no
9699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9700 conftest$ac_exeext conftest.$ac_ext
9702 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9703 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9704 if test $ac_cv_func_shl_load = yes; then
9705 lt_cv_dlopen="shl_load"
9707 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9708 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9709 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9710 echo $ECHO_N "(cached) $ECHO_C" >&6
9712 ac_check_lib_save_LIBS=$LIBS
9714 cat >conftest.$ac_ext <<_ACEOF
9717 cat confdefs.h >>conftest.$ac_ext
9718 cat >>conftest.$ac_ext <<_ACEOF
9719 /* end confdefs.h. */
9721 /* Override any GCC internal prototype to avoid an error.
9722 Use char because int might match the return type of a GCC
9723 builtin and then its argument prototype would still apply. */
9736 rm -f conftest.$ac_objext conftest$ac_exeext
9737 if { (ac_try="$ac_link"
9739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9740 *) ac_try_echo=$ac_try;;
9742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9743 (eval "$ac_link") 2>conftest.er1
9745 grep -v '^ *+' conftest.er1 >conftest.err
9747 cat conftest.err >&5
9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749 (exit $ac_status); } && {
9750 test -z "$ac_c_werror_flag" ||
9751 test ! -s conftest.err
9752 } && test -s conftest$ac_exeext &&
9753 $as_test_x conftest$ac_exeext; then
9754 ac_cv_lib_dld_shl_load=yes
9756 echo "$as_me: failed program was:" >&5
9757 sed 's/^/| /' conftest.$ac_ext >&5
9759 ac_cv_lib_dld_shl_load=no
9762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9763 conftest$ac_exeext conftest.$ac_ext
9764 LIBS=$ac_check_lib_save_LIBS
9766 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9767 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9768 if test $ac_cv_lib_dld_shl_load = yes; then
9769 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9771 { echo "$as_me:$LINENO: checking for dlopen" >&5
9772 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9773 if test "${ac_cv_func_dlopen+set}" = set; then
9774 echo $ECHO_N "(cached) $ECHO_C" >&6
9776 cat >conftest.$ac_ext <<_ACEOF
9779 cat confdefs.h >>conftest.$ac_ext
9780 cat >>conftest.$ac_ext <<_ACEOF
9781 /* end confdefs.h. */
9782 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9784 #define dlopen innocuous_dlopen
9786 /* System header to define __stub macros and hopefully few prototypes,
9787 which can conflict with char dlopen (); below.
9788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9789 <limits.h> exists even on freestanding compilers. */
9792 # include <limits.h>
9794 # include <assert.h>
9799 /* Override any GCC internal prototype to avoid an error.
9800 Use char because int might match the return type of a GCC
9801 builtin and then its argument prototype would still apply. */
9806 /* The GNU C library defines this for functions which it implements
9807 to always fail with ENOSYS. Some functions are actually named
9808 something starting with __ and the normal name is an alias. */
9809 #if defined __stub_dlopen || defined __stub___dlopen
9821 rm -f conftest.$ac_objext conftest$ac_exeext
9822 if { (ac_try="$ac_link"
9824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9825 *) ac_try_echo=$ac_try;;
9827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9828 (eval "$ac_link") 2>conftest.er1
9830 grep -v '^ *+' conftest.er1 >conftest.err
9832 cat conftest.err >&5
9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834 (exit $ac_status); } && {
9835 test -z "$ac_c_werror_flag" ||
9836 test ! -s conftest.err
9837 } && test -s conftest$ac_exeext &&
9838 $as_test_x conftest$ac_exeext; then
9839 ac_cv_func_dlopen=yes
9841 echo "$as_me: failed program was:" >&5
9842 sed 's/^/| /' conftest.$ac_ext >&5
9844 ac_cv_func_dlopen=no
9847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9848 conftest$ac_exeext conftest.$ac_ext
9850 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9851 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9852 if test $ac_cv_func_dlopen = yes; then
9853 lt_cv_dlopen="dlopen"
9855 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9856 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9857 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9858 echo $ECHO_N "(cached) $ECHO_C" >&6
9860 ac_check_lib_save_LIBS=$LIBS
9862 cat >conftest.$ac_ext <<_ACEOF
9865 cat confdefs.h >>conftest.$ac_ext
9866 cat >>conftest.$ac_ext <<_ACEOF
9867 /* end confdefs.h. */
9869 /* Override any GCC internal prototype to avoid an error.
9870 Use char because int might match the return type of a GCC
9871 builtin and then its argument prototype would still apply. */
9884 rm -f conftest.$ac_objext conftest$ac_exeext
9885 if { (ac_try="$ac_link"
9887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9888 *) ac_try_echo=$ac_try;;
9890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9891 (eval "$ac_link") 2>conftest.er1
9893 grep -v '^ *+' conftest.er1 >conftest.err
9895 cat conftest.err >&5
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); } && {
9898 test -z "$ac_c_werror_flag" ||
9899 test ! -s conftest.err
9900 } && test -s conftest$ac_exeext &&
9901 $as_test_x conftest$ac_exeext; then
9902 ac_cv_lib_dl_dlopen=yes
9904 echo "$as_me: failed program was:" >&5
9905 sed 's/^/| /' conftest.$ac_ext >&5
9907 ac_cv_lib_dl_dlopen=no
9910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9911 conftest$ac_exeext conftest.$ac_ext
9912 LIBS=$ac_check_lib_save_LIBS
9914 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9915 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9916 if test $ac_cv_lib_dl_dlopen = yes; then
9917 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9919 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9920 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9921 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9922 echo $ECHO_N "(cached) $ECHO_C" >&6
9924 ac_check_lib_save_LIBS=$LIBS
9926 cat >conftest.$ac_ext <<_ACEOF
9929 cat confdefs.h >>conftest.$ac_ext
9930 cat >>conftest.$ac_ext <<_ACEOF
9931 /* end confdefs.h. */
9933 /* Override any GCC internal prototype to avoid an error.
9934 Use char because int might match the return type of a GCC
9935 builtin and then its argument prototype would still apply. */
9948 rm -f conftest.$ac_objext conftest$ac_exeext
9949 if { (ac_try="$ac_link"
9951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9952 *) ac_try_echo=$ac_try;;
9954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9955 (eval "$ac_link") 2>conftest.er1
9957 grep -v '^ *+' conftest.er1 >conftest.err
9959 cat conftest.err >&5
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); } && {
9962 test -z "$ac_c_werror_flag" ||
9963 test ! -s conftest.err
9964 } && test -s conftest$ac_exeext &&
9965 $as_test_x conftest$ac_exeext; then
9966 ac_cv_lib_svld_dlopen=yes
9968 echo "$as_me: failed program was:" >&5
9969 sed 's/^/| /' conftest.$ac_ext >&5
9971 ac_cv_lib_svld_dlopen=no
9974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9975 conftest$ac_exeext conftest.$ac_ext
9976 LIBS=$ac_check_lib_save_LIBS
9978 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9979 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9980 if test $ac_cv_lib_svld_dlopen = yes; then
9981 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9983 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9984 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9985 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9986 echo $ECHO_N "(cached) $ECHO_C" >&6
9988 ac_check_lib_save_LIBS=$LIBS
9990 cat >conftest.$ac_ext <<_ACEOF
9993 cat confdefs.h >>conftest.$ac_ext
9994 cat >>conftest.$ac_ext <<_ACEOF
9995 /* end confdefs.h. */
9997 /* Override any GCC internal prototype to avoid an error.
9998 Use char because int might match the return type of a GCC
9999 builtin and then its argument prototype would still apply. */
10007 return dld_link ();
10012 rm -f conftest.$ac_objext conftest$ac_exeext
10013 if { (ac_try="$ac_link"
10014 case "(($ac_try" in
10015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10016 *) ac_try_echo=$ac_try;;
10018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10019 (eval "$ac_link") 2>conftest.er1
10021 grep -v '^ *+' conftest.er1 >conftest.err
10023 cat conftest.err >&5
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); } && {
10026 test -z "$ac_c_werror_flag" ||
10027 test ! -s conftest.err
10028 } && test -s conftest$ac_exeext &&
10029 $as_test_x conftest$ac_exeext; then
10030 ac_cv_lib_dld_dld_link=yes
10032 echo "$as_me: failed program was:" >&5
10033 sed 's/^/| /' conftest.$ac_ext >&5
10035 ac_cv_lib_dld_dld_link=no
10038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10039 conftest$ac_exeext conftest.$ac_ext
10040 LIBS=$ac_check_lib_save_LIBS
10042 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10043 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10044 if test $ac_cv_lib_dld_dld_link = yes; then
10045 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10066 if test "x$lt_cv_dlopen" != xno; then
10072 case $lt_cv_dlopen in
10074 save_CPPFLAGS="$CPPFLAGS"
10075 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10077 save_LDFLAGS="$LDFLAGS"
10078 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10081 LIBS="$lt_cv_dlopen_libs $LIBS"
10083 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10084 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10085 if test "${lt_cv_dlopen_self+set}" = set; then
10086 echo $ECHO_N "(cached) $ECHO_C" >&6
10088 if test "$cross_compiling" = yes; then :
10089 lt_cv_dlopen_self=cross
10091 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10092 lt_status=$lt_dlunknown
10093 cat > conftest.$ac_ext <<EOF
10094 #line 10094 "configure"
10095 #include "confdefs.h"
10104 # define LT_DLGLOBAL RTLD_GLOBAL
10107 # define LT_DLGLOBAL DL_GLOBAL
10109 # define LT_DLGLOBAL 0
10113 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10114 find out it does not work in some platform. */
10115 #ifndef LT_DLLAZY_OR_NOW
10117 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10120 # define LT_DLLAZY_OR_NOW DL_LAZY
10123 # define LT_DLLAZY_OR_NOW RTLD_NOW
10126 # define LT_DLLAZY_OR_NOW DL_NOW
10128 # define LT_DLLAZY_OR_NOW 0
10136 extern "C" void exit (int);
10139 void fnord() { int i=42;}
10142 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10143 int status = $lt_dlunknown;
10147 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10148 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10149 /* dlclose (self); */
10157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10158 (eval $ac_link) 2>&5
10160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10162 (./conftest; exit; ) >&5 2>/dev/null
10164 case x$lt_status in
10165 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10166 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10167 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10170 # compilation failed
10171 lt_cv_dlopen_self=no
10178 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10179 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10181 if test "x$lt_cv_dlopen_self" = xyes; then
10182 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10183 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10184 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10185 if test "${lt_cv_dlopen_self_static+set}" = set; then
10186 echo $ECHO_N "(cached) $ECHO_C" >&6
10188 if test "$cross_compiling" = yes; then :
10189 lt_cv_dlopen_self_static=cross
10191 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10192 lt_status=$lt_dlunknown
10193 cat > conftest.$ac_ext <<EOF
10194 #line 10194 "configure"
10195 #include "confdefs.h"
10204 # define LT_DLGLOBAL RTLD_GLOBAL
10207 # define LT_DLGLOBAL DL_GLOBAL
10209 # define LT_DLGLOBAL 0
10213 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10214 find out it does not work in some platform. */
10215 #ifndef LT_DLLAZY_OR_NOW
10217 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10220 # define LT_DLLAZY_OR_NOW DL_LAZY
10223 # define LT_DLLAZY_OR_NOW RTLD_NOW
10226 # define LT_DLLAZY_OR_NOW DL_NOW
10228 # define LT_DLLAZY_OR_NOW 0
10236 extern "C" void exit (int);
10239 void fnord() { int i=42;}
10242 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10243 int status = $lt_dlunknown;
10247 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10248 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10249 /* dlclose (self); */
10257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10258 (eval $ac_link) 2>&5
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10262 (./conftest; exit; ) >&5 2>/dev/null
10264 case x$lt_status in
10265 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10266 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10267 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10270 # compilation failed
10271 lt_cv_dlopen_self_static=no
10278 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10279 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10282 CPPFLAGS="$save_CPPFLAGS"
10283 LDFLAGS="$save_LDFLAGS"
10288 case $lt_cv_dlopen_self in
10289 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10290 *) enable_dlopen_self=unknown ;;
10293 case $lt_cv_dlopen_self_static in
10294 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10295 *) enable_dlopen_self_static=unknown ;;
10300 # Report which library types will actually be built
10301 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10302 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10303 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10304 echo "${ECHO_T}$can_build_shared" >&6; }
10306 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10307 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10308 test "$can_build_shared" = "no" && enable_shared=no
10310 # On AIX, shared libraries and static libraries use the same namespace, and
10311 # are all built from PIC.
10314 test "$enable_shared" = yes && enable_static=no
10315 if test -n "$RANLIB"; then
10316 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10317 postinstall_cmds='$RANLIB $lib'
10322 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10323 test "$enable_shared" = yes && enable_static=no
10327 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10328 echo "${ECHO_T}$enable_shared" >&6; }
10330 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10331 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10332 # Make sure either enable_shared or enable_static is yes.
10333 test "$enable_shared" = yes || enable_static=yes
10334 { echo "$as_me:$LINENO: result: $enable_static" >&5
10335 echo "${ECHO_T}$enable_static" >&6; }
10337 # The else clause should only fire when bootstrapping the
10338 # libtool distribution, otherwise you forgot to ship ltmain.sh
10339 # with your package, and you will get complaints that there are
10340 # no rules to generate ltmain.sh.
10341 if test -f "$ltmain"; then
10342 # See if we are running on zsh, and set the options which allow our commands through
10343 # without removal of \ escapes.
10344 if test -n "${ZSH_VERSION+set}" ; then
10345 setopt NO_GLOB_SUBST
10347 # Now quote all the things that may contain metacharacters while being
10348 # careful not to overquote the AC_SUBSTed values. We take copies of the
10349 # variables and quote the copies for generation of the libtool script.
10350 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10352 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10353 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10354 deplibs_check_method reload_flag reload_cmds need_locks \
10355 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10356 lt_cv_sys_global_symbol_to_c_name_address \
10357 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10358 old_postinstall_cmds old_postuninstall_cmds \
10362 lt_prog_compiler_wl \
10363 lt_prog_compiler_pic \
10364 lt_prog_compiler_static \
10365 lt_prog_compiler_no_builtin_flag \
10366 export_dynamic_flag_spec \
10367 thread_safe_flag_spec \
10368 whole_archive_flag_spec \
10369 enable_shared_with_static_runtimes \
10371 old_archive_from_new_cmds \
10376 compiler_lib_search_path \
10378 archive_expsym_cmds \
10380 postuninstall_cmds \
10381 old_archive_from_expsyms_cmds \
10382 allow_undefined_flag \
10383 no_undefined_flag \
10384 export_symbols_cmds \
10385 hardcode_libdir_flag_spec \
10386 hardcode_libdir_flag_spec_ld \
10387 hardcode_libdir_separator \
10388 hardcode_automatic \
10390 module_expsym_cmds \
10391 lt_cv_prog_compiler_c_o \
10393 include_expsyms; do
10396 old_archive_cmds | \
10397 old_archive_from_new_cmds | \
10399 archive_expsym_cmds | \
10401 module_expsym_cmds | \
10402 old_archive_from_expsyms_cmds | \
10403 export_symbols_cmds | \
10404 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10405 postinstall_cmds | postuninstall_cmds | \
10406 old_postinstall_cmds | old_postuninstall_cmds | \
10407 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10408 # Double-quote double-evaled strings.
10409 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10412 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10418 *'\$0 --fallback-echo"')
10419 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10423 cfgfile="${ofile}T"
10424 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10426 { echo "$as_me:$LINENO: creating $ofile" >&5
10427 echo "$as_me: creating $ofile" >&6;}
10429 cat <<__EOF__ >> "$cfgfile"
10432 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10433 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10434 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10436 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10437 # Free Software Foundation, Inc.
10439 # This file is part of GNU Libtool:
10440 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10442 # This program is free software; you can redistribute it and/or modify
10443 # it under the terms of the GNU General Public License as published by
10444 # the Free Software Foundation; either version 2 of the License, or
10445 # (at your option) any later version.
10447 # This program is distributed in the hope that it will be useful, but
10448 # WITHOUT ANY WARRANTY; without even the implied warranty of
10449 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10450 # General Public License for more details.
10452 # You should have received a copy of the GNU General Public License
10453 # along with this program; if not, write to the Free Software
10454 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10456 # As a special exception to the GNU General Public License, if you
10457 # distribute this file as part of a program that contains a
10458 # configuration script generated by Autoconf, you may include it under
10459 # the same distribution terms that you use for the rest of that program.
10461 # A sed program that does not truncate output.
10464 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10465 Xsed="$SED -e 1s/^X//"
10467 # The HP-UX ksh and POSIX shell print the target directory to stdout
10468 # if CDPATH is set.
10469 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10471 # The names of the tagged configurations supported by this script.
10474 # ### BEGIN LIBTOOL CONFIG
10476 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10478 # Shell to use when invoking shell scripts.
10481 # Whether or not to build shared libraries.
10482 build_libtool_libs=$enable_shared
10484 # Whether or not to build static libraries.
10485 build_old_libs=$enable_static
10487 # Whether or not to add -lc for building shared libraries.
10488 build_libtool_need_lc=$archive_cmds_need_lc
10490 # Whether or not to disallow shared libs when runtime libs are static
10491 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10493 # Whether or not to optimize for fast installation.
10494 fast_install=$enable_fast_install
10497 host_alias=$host_alias
10501 # The build system.
10502 build_alias=$build_alias
10506 # An echo program that does not interpret backslashes.
10511 AR_FLAGS=$lt_AR_FLAGS
10516 # LTCC compiler flags.
10517 LTCFLAGS=$lt_LTCFLAGS
10519 # A language-specific compiler.
10522 # Is the compiler the GNU C compiler?
10528 # The linker used to build libraries.
10531 # Whether we need hard or soft links.
10534 # A BSD-compatible nm program.
10537 # A symbol stripping program
10540 # Used to examine libraries when file_magic_cmd begins "file"
10541 MAGIC_CMD=$MAGIC_CMD
10543 # Used on cygwin: DLL creation program.
10546 # Used on cygwin: object dumper.
10549 # Used on cygwin: assembler.
10552 # The name of the directory that contains temporary libtool files.
10555 # How to create reloadable object files.
10556 reload_flag=$lt_reload_flag
10557 reload_cmds=$lt_reload_cmds
10559 # How to pass a linker flag through the compiler.
10560 wl=$lt_lt_prog_compiler_wl
10562 # Object file suffix (normally "o").
10563 objext="$ac_objext"
10565 # Old archive suffix (normally "a").
10568 # Shared library suffix (normally ".so").
10569 shrext_cmds='$shrext_cmds'
10571 # Executable file suffix (normally "").
10574 # Additional compiler flags for building library objects.
10575 pic_flag=$lt_lt_prog_compiler_pic
10578 # What is the maximum length of a command?
10579 max_cmd_len=$lt_cv_sys_max_cmd_len
10581 # Does compiler simultaneously support -c and -o options?
10582 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10584 # Must we lock files when doing compilation?
10585 need_locks=$lt_need_locks
10587 # Do we need the lib prefix for modules?
10588 need_lib_prefix=$need_lib_prefix
10590 # Do we need a version for libraries?
10591 need_version=$need_version
10593 # Whether dlopen is supported.
10594 dlopen_support=$enable_dlopen
10596 # Whether dlopen of programs is supported.
10597 dlopen_self=$enable_dlopen_self
10599 # Whether dlopen of statically linked programs is supported.
10600 dlopen_self_static=$enable_dlopen_self_static
10602 # Compiler flag to prevent dynamic linking.
10603 link_static_flag=$lt_lt_prog_compiler_static
10605 # Compiler flag to turn off builtin functions.
10606 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10608 # Compiler flag to allow reflexive dlopens.
10609 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10611 # Compiler flag to generate shared objects directly from archives.
10612 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10614 # Compiler flag to generate thread-safe objects.
10615 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10617 # Library versioning type.
10618 version_type=$version_type
10620 # Format of library name prefix.
10621 libname_spec=$lt_libname_spec
10623 # List of archive names. First name is the real one, the rest are links.
10624 # The last name is the one that the linker finds with -lNAME.
10625 library_names_spec=$lt_library_names_spec
10627 # The coded name of the library, if different from the real name.
10628 soname_spec=$lt_soname_spec
10630 # Commands used to build and install an old-style archive.
10632 old_archive_cmds=$lt_old_archive_cmds
10633 old_postinstall_cmds=$lt_old_postinstall_cmds
10634 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10636 # Create an old-style archive from a shared archive.
10637 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10639 # Create a temporary old-style archive to link instead of a shared archive.
10640 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10642 # Commands used to build and install a shared archive.
10643 archive_cmds=$lt_archive_cmds
10644 archive_expsym_cmds=$lt_archive_expsym_cmds
10645 postinstall_cmds=$lt_postinstall_cmds
10646 postuninstall_cmds=$lt_postuninstall_cmds
10648 # Commands used to build a loadable module (assumed same as above if empty)
10649 module_cmds=$lt_module_cmds
10650 module_expsym_cmds=$lt_module_expsym_cmds
10652 # Commands to strip libraries.
10653 old_striplib=$lt_old_striplib
10654 striplib=$lt_striplib
10656 # Dependencies to place before the objects being linked to create a
10658 predep_objects=$lt_predep_objects
10660 # Dependencies to place after the objects being linked to create a
10662 postdep_objects=$lt_postdep_objects
10664 # Dependencies to place before the objects being linked to create a
10666 predeps=$lt_predeps
10668 # Dependencies to place after the objects being linked to create a
10670 postdeps=$lt_postdeps
10672 # The library search path used internally by the compiler when linking
10673 # a shared library.
10674 compiler_lib_search_path=$lt_compiler_lib_search_path
10676 # Method to check whether dependent libraries are shared objects.
10677 deplibs_check_method=$lt_deplibs_check_method
10679 # Command to use when deplibs_check_method == file_magic.
10680 file_magic_cmd=$lt_file_magic_cmd
10682 # Flag that allows shared libraries with undefined symbols to be built.
10683 allow_undefined_flag=$lt_allow_undefined_flag
10685 # Flag that forces no undefined symbols.
10686 no_undefined_flag=$lt_no_undefined_flag
10688 # Commands used to finish a libtool library installation in a directory.
10689 finish_cmds=$lt_finish_cmds
10691 # Same as above, but a single script fragment to be evaled but not shown.
10692 finish_eval=$lt_finish_eval
10694 # Take the output of nm and produce a listing of raw symbols and C names.
10695 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10697 # Transform the output of nm in a proper C declaration
10698 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10700 # Transform the output of nm in a C name address pair
10701 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10703 # This is the shared library runtime path variable.
10704 runpath_var=$runpath_var
10706 # This is the shared library path variable.
10707 shlibpath_var=$shlibpath_var
10709 # Is shlibpath searched before the hard-coded library search path?
10710 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10712 # How to hardcode a shared library path into an executable.
10713 hardcode_action=$hardcode_action
10715 # Whether we should hardcode library paths into libraries.
10716 hardcode_into_libs=$hardcode_into_libs
10718 # Flag to hardcode \$libdir into a binary during linking.
10719 # This must work even if \$libdir does not exist.
10720 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10722 # If ld is used when linking, flag to hardcode \$libdir into
10723 # a binary during linking. This must work even if \$libdir does
10725 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10727 # Whether we need a single -rpath flag with a separated argument.
10728 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10730 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10731 # resulting binary.
10732 hardcode_direct=$hardcode_direct
10734 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10735 # resulting binary.
10736 hardcode_minus_L=$hardcode_minus_L
10738 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10739 # the resulting binary.
10740 hardcode_shlibpath_var=$hardcode_shlibpath_var
10742 # Set to yes if building a shared library automatically hardcodes DIR into the library
10743 # and all subsequent libraries and executables linked against it.
10744 hardcode_automatic=$hardcode_automatic
10746 # Variables whose values should be saved in libtool wrapper scripts and
10747 # restored at relink time.
10748 variables_saved_for_relink="$variables_saved_for_relink"
10750 # Whether libtool must link a program against all its dependency libraries.
10751 link_all_deplibs=$link_all_deplibs
10753 # Compile-time system search path for libraries
10754 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10756 # Run-time system search path for libraries
10757 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10759 # Fix the shell variable \$srcfile for the compiler.
10760 fix_srcfile_path="$fix_srcfile_path"
10762 # Set to yes if exported symbols are required.
10763 always_export_symbols=$always_export_symbols
10765 # The commands to list exported symbols.
10766 export_symbols_cmds=$lt_export_symbols_cmds
10768 # The commands to extract the exported symbol list from a shared archive.
10769 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10771 # Symbols that should not be listed in the preloaded symbols.
10772 exclude_expsyms=$lt_exclude_expsyms
10774 # Symbols that must always be exported.
10775 include_expsyms=$lt_include_expsyms
10777 # ### END LIBTOOL CONFIG
10784 cat <<\EOF >> "$cfgfile"
10786 # AIX sometimes has problems with the GCC collect2 program. For some
10787 # reason, if we set the COLLECT_NAMES environment variable, the problems
10788 # vanish in a puff of smoke.
10789 if test "X${COLLECT_NAMES+set}" != Xset; then
10791 export COLLECT_NAMES
10797 # We use sed instead of cat because bash on DJGPP gets confused if
10798 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10799 # text mode, it properly converts lines to CR/LF. This bash problem
10800 # is reportedly fixed, but why not run on old versions too?
10801 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10803 mv -f "$cfgfile" "$ofile" || \
10804 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10808 # If there is no Makefile yet, we rely on a make rule to execute
10809 # `config.status --recheck' to rerun these tests and create the
10810 # libtool script then.
10811 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10812 if test -f "$ltmain_in"; then
10813 test -f Makefile && make "$ltmain"
10819 ac_cpp='$CPP $CPPFLAGS'
10820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10827 # Check whether --with-tags was given.
10828 if test "${with_tags+set}" = set; then
10829 withval=$with_tags; tagnames="$withval"
10833 if test -f "$ltmain" && test -n "$tagnames"; then
10834 if test ! -f "${ofile}"; then
10835 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10836 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10839 if test -z "$LTCC"; then
10840 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10841 if test -z "$LTCC"; then
10842 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10843 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10845 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10846 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10849 if test -z "$LTCFLAGS"; then
10850 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10853 # Extract list of available tagged configurations in $ofile.
10854 # Note that this assumes the entire list is on one line.
10855 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10857 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10858 for tagname in $tagnames; do
10860 # Check whether tagname contains only valid characters
10861 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10863 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10864 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10865 { (exit 1); exit 1; }; }
10869 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10871 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10872 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10873 { (exit 1); exit 1; }; }
10876 # Update the list of available tags.
10877 if test -n "$tagname"; then
10878 echo appending configuration tag \"$tagname\" to $ofile
10882 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10883 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10884 (test "X$CXX" != "Xg++"))) ; then
10886 ac_cpp='$CXXCPP $CPPFLAGS'
10887 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10888 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10889 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10894 archive_cmds_need_lc_CXX=no
10895 allow_undefined_flag_CXX=
10896 always_export_symbols_CXX=no
10897 archive_expsym_cmds_CXX=
10898 export_dynamic_flag_spec_CXX=
10899 hardcode_direct_CXX=no
10900 hardcode_libdir_flag_spec_CXX=
10901 hardcode_libdir_flag_spec_ld_CXX=
10902 hardcode_libdir_separator_CXX=
10903 hardcode_minus_L_CXX=no
10904 hardcode_shlibpath_var_CXX=unsupported
10905 hardcode_automatic_CXX=no
10907 module_expsym_cmds_CXX=
10908 link_all_deplibs_CXX=unknown
10909 old_archive_cmds_CXX=$old_archive_cmds
10910 no_undefined_flag_CXX=
10911 whole_archive_flag_spec_CXX=
10912 enable_shared_with_static_runtimes_CXX=no
10914 # Dependencies to place before and after the object being linked:
10915 predep_objects_CXX=
10916 postdep_objects_CXX=
10919 compiler_lib_search_path_CXX=
10921 # Source file extension for C++ test sources.
10924 # Object file extension for compiled C++ test sources.
10928 # Code to be used in simple compile tests
10929 lt_simple_compile_test_code="int some_variable = 0;\n"
10931 # Code to be used in simple link tests
10932 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10934 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10936 # If no C compiler was specified, use CC.
10939 # If no C compiler flags were specified, use CFLAGS.
10940 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10942 # Allow CC to be a program name with arguments.
10946 # save warnings/boilerplate of simple test code
10947 ac_outfile=conftest.$ac_objext
10948 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10949 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10950 _lt_compiler_boilerplate=`cat conftest.err`
10953 ac_outfile=conftest.$ac_objext
10954 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10955 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10956 _lt_linker_boilerplate=`cat conftest.err`
10960 # Allow CC to be a program name with arguments.
10965 lt_save_with_gnu_ld=$with_gnu_ld
10966 lt_save_path_LD=$lt_cv_path_LD
10967 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10968 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10970 $as_unset lt_cv_prog_gnu_ld
10972 if test -n "${lt_cv_path_LDCXX+set}"; then
10973 lt_cv_path_LD=$lt_cv_path_LDCXX
10975 $as_unset lt_cv_path_LD
10977 test -z "${LDCXX+set}" || LD=$LDCXX
10981 for cc_temp in $compiler""; do
10983 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10984 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10989 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10992 # We don't want -fno-exception wen compiling C++ code, so set the
10993 # no_builtin_flag separately
10994 if test "$GXX" = yes; then
10995 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10997 lt_prog_compiler_no_builtin_flag_CXX=
11000 if test "$GXX" = yes; then
11001 # Set up default GNU C++ configuration
11004 # Check whether --with-gnu-ld was given.
11005 if test "${with_gnu_ld+set}" = set; then
11006 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11012 if test "$GCC" = yes; then
11013 # Check if gcc -print-prog-name=ld gives a path.
11014 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11015 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11018 # gcc leaves a trailing carriage return which upsets mingw
11019 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11021 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11024 # Accept absolute paths.
11026 re_direlt='/[^/][^/]*/\.\./'
11027 # Canonicalize the pathname of ld
11028 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11029 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11030 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11032 test -z "$LD" && LD="$ac_prog"
11035 # If it fails, then pretend we aren't using GCC.
11039 # If it is relative, then search for the first ld in PATH.
11040 with_gnu_ld=unknown
11043 elif test "$with_gnu_ld" = yes; then
11044 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11045 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11047 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11048 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11050 if test "${lt_cv_path_LD+set}" = set; then
11051 echo $ECHO_N "(cached) $ECHO_C" >&6
11053 if test -z "$LD"; then
11054 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11055 for ac_dir in $PATH; do
11057 test -z "$ac_dir" && ac_dir=.
11058 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11059 lt_cv_path_LD="$ac_dir/$ac_prog"
11060 # Check to see if the program is GNU ld. I'd rather use --version,
11061 # but apparently some variants of GNU ld only accept -v.
11062 # Break only if it was the GNU/non-GNU ld that we prefer.
11063 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11064 *GNU* | *'with BFD'*)
11065 test "$with_gnu_ld" != no && break
11068 test "$with_gnu_ld" != yes && break
11075 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11079 LD="$lt_cv_path_LD"
11080 if test -n "$LD"; then
11081 { echo "$as_me:$LINENO: result: $LD" >&5
11082 echo "${ECHO_T}$LD" >&6; }
11084 { echo "$as_me:$LINENO: result: no" >&5
11085 echo "${ECHO_T}no" >&6; }
11087 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11088 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11089 { (exit 1); exit 1; }; }
11090 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11091 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11092 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11093 echo $ECHO_N "(cached) $ECHO_C" >&6
11095 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11096 case `$LD -v 2>&1 </dev/null` in
11097 *GNU* | *'with BFD'*)
11098 lt_cv_prog_gnu_ld=yes
11101 lt_cv_prog_gnu_ld=no
11105 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11106 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11107 with_gnu_ld=$lt_cv_prog_gnu_ld
11111 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11112 # archiving commands below assume that GNU ld is being used.
11113 if test "$with_gnu_ld" = yes; then
11114 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11115 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'
11117 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11118 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11120 # If archive_cmds runs LD, not CC, wlarc should be empty
11121 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11122 # investigate it a little bit more. (MM)
11125 # ancient GNU ld didn't support --whole-archive et. al.
11126 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11127 grep 'no-whole-archive' > /dev/null; then
11128 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11130 whole_archive_flag_spec_CXX=
11136 # A generic and very simple default shared library creation
11137 # command for GNU C++ for the case where it uses the native
11138 # linker, instead of GNU ld. If possible, this setting should
11139 # overridden to take advantage of the native linker features on
11140 # the platform it is being used on.
11141 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11144 # Commands to make compiler produce verbose output that lists
11145 # what "hidden" libraries, object files and flags are used when
11146 # linking a shared library.
11147 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11155 # PORTME: fill in a description of your system's C++ link characteristics
11156 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11157 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11161 # FIXME: insert proper C++ library support
11165 if test "$host_cpu" = ia64; then
11166 # On IA64, the linker does run time linking by default, so we don't
11167 # have to do anything special.
11168 aix_use_runtimelinking=no
11169 exp_sym_flag='-Bexport'
11172 aix_use_runtimelinking=no
11174 # Test if we are trying to use run time linking or normal
11175 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11176 # need to do runtime linking.
11177 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11178 for ld_flag in $LDFLAGS; do
11181 aix_use_runtimelinking=yes
11189 exp_sym_flag='-bexport'
11190 no_entry_flag='-bnoentry'
11193 # When large executables or shared objects are built, AIX ld can
11194 # have problems creating the table of contents. If linking a library
11195 # or program results in "error TOC overflow" add -mminimal-toc to
11196 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11197 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11199 archive_cmds_CXX=''
11200 hardcode_direct_CXX=yes
11201 hardcode_libdir_separator_CXX=':'
11202 link_all_deplibs_CXX=yes
11204 if test "$GXX" = yes; then
11205 case $host_os in aix4.[012]|aix4.[012].*)
11206 # We only want to do this on AIX 4.2 and lower, the check
11207 # below for broken collect2 doesn't work under 4.3+
11208 collect2name=`${CC} -print-prog-name=collect2`
11209 if test -f "$collect2name" && \
11210 strings "$collect2name" | grep resolve_lib_name >/dev/null
11212 # We have reworked collect2
11213 hardcode_direct_CXX=yes
11215 # We have old collect2
11216 hardcode_direct_CXX=unsupported
11217 # It fails to find uninstalled libraries when the uninstalled
11218 # path is not listed in the libpath. Setting hardcode_minus_L
11219 # to unsupported forces relinking
11220 hardcode_minus_L_CXX=yes
11221 hardcode_libdir_flag_spec_CXX='-L$libdir'
11222 hardcode_libdir_separator_CXX=
11226 shared_flag='-shared'
11227 if test "$aix_use_runtimelinking" = yes; then
11228 shared_flag="$shared_flag "'${wl}-G'
11232 if test "$host_cpu" = ia64; then
11233 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11234 # chokes on -Wl,-G. The following line is correct:
11237 if test "$aix_use_runtimelinking" = yes; then
11238 shared_flag='${wl}-G'
11240 shared_flag='${wl}-bM:SRE'
11245 # It seems that -bexpall does not export symbols beginning with
11246 # underscore (_), so it is better to generate a list of symbols to export.
11247 always_export_symbols_CXX=yes
11248 if test "$aix_use_runtimelinking" = yes; then
11249 # Warning - without using the other runtime loading flags (-brtl),
11250 # -berok will link without error, but may produce a broken library.
11251 allow_undefined_flag_CXX='-berok'
11252 # Determine the default libpath from the value encoded in an empty executable.
11253 cat >conftest.$ac_ext <<_ACEOF
11256 cat confdefs.h >>conftest.$ac_ext
11257 cat >>conftest.$ac_ext <<_ACEOF
11258 /* end confdefs.h. */
11268 rm -f conftest.$ac_objext conftest$ac_exeext
11269 if { (ac_try="$ac_link"
11270 case "(($ac_try" in
11271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11272 *) ac_try_echo=$ac_try;;
11274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11275 (eval "$ac_link") 2>conftest.er1
11277 grep -v '^ *+' conftest.er1 >conftest.err
11279 cat conftest.err >&5
11280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281 (exit $ac_status); } && {
11282 test -z "$ac_cxx_werror_flag" ||
11283 test ! -s conftest.err
11284 } && test -s conftest$ac_exeext &&
11285 $as_test_x conftest$ac_exeext; then
11287 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11289 # Check for a 64-bit object if we didn't find anything.
11290 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11293 echo "$as_me: failed program was:" >&5
11294 sed 's/^/| /' conftest.$ac_ext >&5
11299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11300 conftest$ac_exeext conftest.$ac_ext
11301 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11303 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11305 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"
11307 if test "$host_cpu" = ia64; then
11308 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11309 allow_undefined_flag_CXX="-z nodefs"
11310 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"
11312 # Determine the default libpath from the value encoded in an empty executable.
11313 cat >conftest.$ac_ext <<_ACEOF
11316 cat confdefs.h >>conftest.$ac_ext
11317 cat >>conftest.$ac_ext <<_ACEOF
11318 /* end confdefs.h. */
11328 rm -f conftest.$ac_objext conftest$ac_exeext
11329 if { (ac_try="$ac_link"
11330 case "(($ac_try" in
11331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11332 *) ac_try_echo=$ac_try;;
11334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11335 (eval "$ac_link") 2>conftest.er1
11337 grep -v '^ *+' conftest.er1 >conftest.err
11339 cat conftest.err >&5
11340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 (exit $ac_status); } && {
11342 test -z "$ac_cxx_werror_flag" ||
11343 test ! -s conftest.err
11344 } && test -s conftest$ac_exeext &&
11345 $as_test_x conftest$ac_exeext; then
11347 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11349 # Check for a 64-bit object if we didn't find anything.
11350 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11353 echo "$as_me: failed program was:" >&5
11354 sed 's/^/| /' conftest.$ac_ext >&5
11359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11360 conftest$ac_exeext conftest.$ac_ext
11361 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11363 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11364 # Warning - without using the other run time loading flags,
11365 # -berok will link without error, but may produce a broken library.
11366 no_undefined_flag_CXX=' ${wl}-bernotok'
11367 allow_undefined_flag_CXX=' ${wl}-berok'
11368 # Exported symbols can be pulled into shared objects from archives
11369 whole_archive_flag_spec_CXX='$convenience'
11370 archive_cmds_need_lc_CXX=yes
11371 # This is similar to how AIX traditionally builds its shared libraries.
11372 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'
11378 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11379 allow_undefined_flag_CXX=unsupported
11380 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11381 # support --undefined. This deserves some investigation. FIXME
11382 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11389 case $cc_basename in
11391 # FIXME: insert proper C++ library support
11397 cygwin* | mingw* | pw32*)
11398 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11399 # as there is no search path for DLLs.
11400 hardcode_libdir_flag_spec_CXX='-L$libdir'
11401 allow_undefined_flag_CXX=unsupported
11402 always_export_symbols_CXX=no
11403 enable_shared_with_static_runtimes_CXX=yes
11405 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11406 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'
11407 # If the export-symbols file already is a .def file (1st line
11408 # is EXPORTS), use it as is; otherwise, prepend...
11409 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11410 cp $export_symbols $output_objdir/$soname.def;
11412 echo EXPORTS > $output_objdir/$soname.def;
11413 cat $export_symbols >> $output_objdir/$soname.def;
11415 $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'
11420 darwin* | rhapsody*)
11422 rhapsody* | darwin1.[012])
11423 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11426 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11427 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11429 case ${MACOSX_DEPLOYMENT_TARGET} in
11431 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11434 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11440 archive_cmds_need_lc_CXX=no
11441 hardcode_direct_CXX=no
11442 hardcode_automatic_CXX=yes
11443 hardcode_shlibpath_var_CXX=unsupported
11444 whole_archive_flag_spec_CXX=''
11445 link_all_deplibs_CXX=yes
11447 if test "$GXX" = yes ; then
11448 lt_int_apple_cc_single_mod=no
11449 output_verbose_link_cmd='echo'
11450 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11451 lt_int_apple_cc_single_mod=yes
11453 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11454 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11456 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'
11458 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11459 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11460 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11461 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11463 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11465 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}'
11467 case $cc_basename in
11469 output_verbose_link_cmd='echo'
11470 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11471 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11472 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11473 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11474 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}'
11484 case $cc_basename in
11486 # FIXME: insert proper C++ library support
11490 # Green Hills C++ Compiler
11491 # FIXME: insert proper C++ library support
11495 # FIXME: insert proper C++ library support
11501 # C++ shared libraries reported to be fairly broken before switch to ELF
11505 archive_cmds_need_lc_CXX=no
11507 freebsd* | dragonfly*)
11508 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11515 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11516 hardcode_libdir_separator_CXX=:
11517 export_dynamic_flag_spec_CXX='${wl}-E'
11518 hardcode_direct_CXX=yes
11519 hardcode_minus_L_CXX=yes # Not in the search PATH,
11520 # but as the default
11521 # location of the library.
11523 case $cc_basename in
11525 # FIXME: insert proper C++ library support
11529 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'
11530 # Commands to make compiler produce verbose output that lists
11531 # what "hidden" libraries, object files and flags are used when
11532 # linking a shared library.
11534 # There doesn't appear to be a way to prevent this compiler from
11535 # explicitly linking system object files so we need to strip them
11536 # from the output so that they don't get included in the library
11538 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'
11541 if test "$GXX" = yes; then
11542 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'
11544 # FIXME: insert proper C++ library support
11551 if test $with_gnu_ld = no; then
11552 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11553 hardcode_libdir_separator_CXX=:
11557 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11560 export_dynamic_flag_spec_CXX='${wl}-E'
11566 hardcode_direct_CXX=no
11567 hardcode_shlibpath_var_CXX=no
11570 hardcode_direct_CXX=yes
11571 hardcode_minus_L_CXX=yes # Not in the search PATH,
11572 # but as the default
11573 # location of the library.
11577 case $cc_basename in
11579 # FIXME: insert proper C++ library support
11585 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11588 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11591 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11594 # Commands to make compiler produce verbose output that lists
11595 # what "hidden" libraries, object files and flags are used when
11596 # linking a shared library.
11598 # There doesn't appear to be a way to prevent this compiler from
11599 # explicitly linking system object files so we need to strip them
11600 # from the output so that they don't get included in the library
11602 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'
11605 if test "$GXX" = yes; then
11606 if test $with_gnu_ld = no; then
11609 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11612 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11615 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'
11620 # FIXME: insert proper C++ library support
11627 hardcode_direct_CXX=no
11628 hardcode_shlibpath_var_CXX=no
11629 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11630 export_dynamic_flag_spec_CXX='${wl}-E'
11631 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11632 # Instead, shared libraries are loaded at an image base (0x10000000 by
11633 # default) and relocated if they conflict, which is a slow very memory
11634 # consuming and fragmenting process. To avoid this, we pick a random,
11635 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11636 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11637 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'
11638 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'
11641 case $cc_basename in
11644 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'
11646 # Archives containing C++ object files must be created using
11647 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11648 # necessary to make sure instantiated templates are included
11650 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11653 if test "$GXX" = yes; then
11654 if test "$with_gnu_ld" = no; then
11655 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'
11657 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'
11660 link_all_deplibs_CXX=yes
11663 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11664 hardcode_libdir_separator_CXX=:
11666 linux* | k*bsd*-gnu)
11667 case $cc_basename in
11669 # Kuck and Associates, Inc. (KAI) C++ Compiler
11671 # KCC will only create a shared library if the output file
11672 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11673 # to its proper name (with version) after linking.
11674 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'
11675 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'
11676 # Commands to make compiler produce verbose output that lists
11677 # what "hidden" libraries, object files and flags are used when
11678 # linking a shared library.
11680 # There doesn't appear to be a way to prevent this compiler from
11681 # explicitly linking system object files so we need to strip them
11682 # from the output so that they don't get included in the library
11684 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'
11686 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11687 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11689 # Archives containing C++ object files must be created using
11690 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11691 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11696 # version 8.0 and above of icpc choke on multiply defined symbols
11697 # if we add $predep_objects and $postdep_objects, however 7.1 and
11698 # earlier do not add the objects themselves.
11699 case `$CC -V 2>&1` in
11701 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11702 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'
11704 *) # Version 8.0 or newer
11707 ia64*) tmp_idyn=' -i_dynamic';;
11709 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11710 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'
11713 archive_cmds_need_lc_CXX=no
11714 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11715 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11716 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11719 # Portland Group C++ compiler
11720 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11721 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'
11723 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11724 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11725 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'
11729 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11730 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'
11732 runpath_var=LD_RUN_PATH
11733 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11734 hardcode_libdir_separator_CXX=:
11736 # Commands to make compiler produce verbose output that lists
11737 # what "hidden" libraries, object files and flags are used when
11738 # linking a shared library.
11740 # There doesn't appear to be a way to prevent this compiler from
11741 # explicitly linking system object files so we need to strip them
11742 # from the output so that they don't get included in the library
11744 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'
11749 # FIXME: insert proper C++ library support
11753 # FIXME: insert proper C++ library support
11757 case $cc_basename in
11759 # FIXME: insert proper C++ library support
11763 # FIXME: insert proper C++ library support
11768 netbsd* | netbsdelf*-gnu)
11769 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11770 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11772 hardcode_libdir_flag_spec_CXX='-R$libdir'
11773 hardcode_direct_CXX=yes
11774 hardcode_shlibpath_var_CXX=no
11776 # Workaround some broken pre-1.5 toolchains
11777 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11780 # C++ shared libraries are fairly broken
11784 hardcode_direct_CXX=yes
11785 hardcode_shlibpath_var_CXX=no
11786 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11787 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11788 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11789 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11790 export_dynamic_flag_spec_CXX='${wl}-E'
11791 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11793 output_verbose_link_cmd='echo'
11796 case $cc_basename in
11798 # Kuck and Associates, Inc. (KAI) C++ Compiler
11800 # KCC will only create a shared library if the output file
11801 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11802 # to its proper name (with version) after linking.
11803 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'
11805 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11806 hardcode_libdir_separator_CXX=:
11808 # Archives containing C++ object files must be created using
11809 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11810 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11814 # Rational C++ 2.4.1
11815 # FIXME: insert proper C++ library support
11819 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11820 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'
11822 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11823 hardcode_libdir_separator_CXX=:
11825 # Commands to make compiler produce verbose output that lists
11826 # what "hidden" libraries, object files and flags are used when
11827 # linking a shared library.
11829 # There doesn't appear to be a way to prevent this compiler from
11830 # explicitly linking system object files so we need to strip them
11831 # from the output so that they don't get included in the library
11833 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'
11836 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11837 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11838 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'
11840 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11841 hardcode_libdir_separator_CXX=:
11843 # Commands to make compiler produce verbose output that lists
11844 # what "hidden" libraries, object files and flags are used when
11845 # linking a shared library.
11846 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11849 # FIXME: insert proper C++ library support
11856 case $cc_basename in
11858 # Kuck and Associates, Inc. (KAI) C++ Compiler
11860 # KCC will only create a shared library if the output file
11861 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11862 # to its proper name (with version) after linking.
11863 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'
11865 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11866 hardcode_libdir_separator_CXX=:
11868 # Archives containing C++ object files must be created using
11869 # the KAI C++ compiler.
11870 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11873 # Rational C++ 2.4.1
11874 # FIXME: insert proper C++ library support
11878 allow_undefined_flag_CXX=' -expect_unresolved \*'
11879 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'
11880 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11881 echo "-hidden">> $lib.exp~
11882 $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~
11885 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11886 hardcode_libdir_separator_CXX=:
11888 # Commands to make compiler produce verbose output that lists
11889 # what "hidden" libraries, object files and flags are used when
11890 # linking a shared library.
11892 # There doesn't appear to be a way to prevent this compiler from
11893 # explicitly linking system object files so we need to strip them
11894 # from the output so that they don't get included in the library
11896 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'
11899 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11900 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11901 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'
11903 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11904 hardcode_libdir_separator_CXX=:
11906 # Commands to make compiler produce verbose output that lists
11907 # what "hidden" libraries, object files and flags are used when
11908 # linking a shared library.
11909 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11912 # FIXME: insert proper C++ library support
11919 # FIXME: insert proper C++ library support
11923 case $cc_basename in
11926 # FIXME: insert proper C++ library support
11931 # FIXME: insert proper C++ library support
11935 # FIXME: insert proper C++ library support
11941 case $cc_basename in
11943 # Sun C++ 4.2, 5.x and Centerline C++
11944 archive_cmds_need_lc_CXX=yes
11945 no_undefined_flag_CXX=' -zdefs'
11946 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11947 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11948 $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'
11950 hardcode_libdir_flag_spec_CXX='-R$libdir'
11951 hardcode_shlibpath_var_CXX=no
11953 solaris2.[0-5] | solaris2.[0-5].*) ;;
11955 # The C++ compiler is used as linker so we must use $wl
11956 # flag to pass the commands to the underlying system
11957 # linker. We must also pass each convience library through
11958 # to the system linker between allextract/defaultextract.
11959 # The C++ compiler will combine linker options so we
11960 # cannot just pass the convience library names through
11962 # Supported since Solaris 2.6 (maybe 2.5.1?)
11963 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11966 link_all_deplibs_CXX=yes
11968 output_verbose_link_cmd='echo'
11970 # Archives containing C++ object files must be created using
11971 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11972 # necessary to make sure instantiated templates are included
11974 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11977 # Green Hills C++ Compiler
11978 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11980 # The C++ compiler must be used to create the archive.
11981 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11984 # GNU C++ compiler with Solaris linker
11985 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11986 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11987 if $CC --version | grep -v '^2\.7' > /dev/null; then
11988 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11989 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11990 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11992 # Commands to make compiler produce verbose output that lists
11993 # what "hidden" libraries, object files and flags are used when
11994 # linking a shared library.
11995 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11997 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11999 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12000 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12001 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12003 # Commands to make compiler produce verbose output that lists
12004 # what "hidden" libraries, object files and flags are used when
12005 # linking a shared library.
12006 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12009 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12014 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12015 no_undefined_flag_CXX='${wl}-z,text'
12016 archive_cmds_need_lc_CXX=no
12017 hardcode_shlibpath_var_CXX=no
12018 runpath_var='LD_RUN_PATH'
12020 case $cc_basename in
12022 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12023 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12026 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12027 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12031 sysv5* | sco3.2v5* | sco5v6*)
12032 # Note: We can NOT use -z defs as we might desire, because we do not
12033 # link with -lc, and that would cause any symbols used from libc to
12034 # always be unresolved, which means just about no library would
12035 # ever link correctly. If we're not using GNU ld we use -z text
12036 # though, which does catch some bad symbols but isn't as heavy-handed
12038 # For security reasons, it is highly recommended that you always
12039 # use absolute paths for naming shared libraries, and exclude the
12040 # DT_RUNPATH tag from executables and libraries. But doing so
12041 # requires that you compile everything twice, which is a pain.
12042 # So that behaviour is only enabled if SCOABSPATH is set to a
12043 # non-empty value in the environment. Most likely only useful for
12044 # creating official distributions of packages.
12045 # This is a hack until libtool officially supports absolute path
12046 # names for shared libraries.
12047 no_undefined_flag_CXX='${wl}-z,text'
12048 allow_undefined_flag_CXX='${wl}-z,nodefs'
12049 archive_cmds_need_lc_CXX=no
12050 hardcode_shlibpath_var_CXX=no
12051 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12052 hardcode_libdir_separator_CXX=':'
12053 link_all_deplibs_CXX=yes
12054 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12055 runpath_var='LD_RUN_PATH'
12057 case $cc_basename in
12059 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12060 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12063 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12064 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12069 case $cc_basename in
12071 # NonStop-UX NCC 3.20
12072 # FIXME: insert proper C++ library support
12076 # FIXME: insert proper C++ library support
12082 # FIXME: insert proper C++ library support
12086 # FIXME: insert proper C++ library support
12090 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12091 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12092 test "$ld_shlibs_CXX" = no && can_build_shared=no
12098 cat > conftest.$ac_ext <<EOF
12102 Foo (void) { a = 0; }
12108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12109 (eval $ac_compile) 2>&5
12111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112 (exit $ac_status); }; then
12113 # Parse the compiler output and extract the necessary
12114 # objects, libraries and library flags.
12116 # Sentinel used to keep track of whether or not we are before
12117 # the conftest object file.
12118 pre_test_object_deps_done=no
12120 # The `*' in the case matches for architectures that use `case' in
12121 # $output_verbose_cmd can trigger glob expansion during the loop
12122 # eval without this substitution.
12123 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12125 for p in `eval $output_verbose_link_cmd`; do
12129 # Some compilers place space between "-{L,R}" and the path.
12130 # Remove the space.
12131 if test $p = "-L" \
12132 || test $p = "-R"; then
12139 if test "$pre_test_object_deps_done" = no; then
12142 # Internal compiler library paths should come after those
12143 # provided the user. The postdeps already come after the
12144 # user supplied libs so there is no need to process them.
12145 if test -z "$compiler_lib_search_path_CXX"; then
12146 compiler_lib_search_path_CXX="${prev}${p}"
12148 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12151 # The "-l" case would never come before the object being
12152 # linked, so don't bother handling this case.
12155 if test -z "$postdeps_CXX"; then
12156 postdeps_CXX="${prev}${p}"
12158 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12164 # This assumes that the test object file only shows up
12165 # once in the compiler output.
12166 if test "$p" = "conftest.$objext"; then
12167 pre_test_object_deps_done=yes
12171 if test "$pre_test_object_deps_done" = no; then
12172 if test -z "$predep_objects_CXX"; then
12173 predep_objects_CXX="$p"
12175 predep_objects_CXX="$predep_objects_CXX $p"
12178 if test -z "$postdep_objects_CXX"; then
12179 postdep_objects_CXX="$p"
12181 postdep_objects_CXX="$postdep_objects_CXX $p"
12186 *) ;; # Ignore the rest.
12194 echo "libtool.m4: error: problem compiling CXX test program"
12197 $rm -f confest.$objext
12199 # PORTME: override above test on systems where it is broken
12202 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12203 # hack all around it, let's just trust "g++" to DTRT.
12204 predep_objects_CXX=
12205 postdep_objects_CXX=
12210 case $cc_basename in
12212 # Adding this requires a known-good setup of shared libraries for
12213 # Sun compiler versions before 5.6, else PIC objects from an old
12214 # archive will be linked into the output, leading to subtle bugs.
12215 postdeps_CXX='-lCstd -lCrun'
12222 case " $postdeps_CXX " in
12223 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12226 lt_prog_compiler_wl_CXX=
12227 lt_prog_compiler_pic_CXX=
12228 lt_prog_compiler_static_CXX=
12230 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12231 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12233 # C++ specific cases for pic, static, wl, etc.
12234 if test "$GXX" = yes; then
12235 lt_prog_compiler_wl_CXX='-Wl,'
12236 lt_prog_compiler_static_CXX='-static'
12240 # All AIX code is PIC.
12241 if test "$host_cpu" = ia64; then
12242 # AIX 5 now supports IA64 processor
12243 lt_prog_compiler_static_CXX='-Bstatic'
12247 # FIXME: we need at least 68020 code to build shared libraries, but
12248 # adding the `-m68020' flag to GCC prevents building anything better,
12250 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12252 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12253 # PIC is the default for these OSes.
12255 mingw* | os2* | pw32*)
12256 # This hack is so that the source file can tell whether it is being
12257 # built for inclusion in a dll (and should export symbols for example).
12258 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12260 darwin* | rhapsody*)
12261 # PIC is the default on this platform
12262 # Common symbols not allowed in MH_DYLIB files
12263 lt_prog_compiler_pic_CXX='-fno-common'
12266 # DJGPP does not support shared libraries at all
12267 lt_prog_compiler_pic_CXX=
12270 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12271 # Instead, we relocate shared libraries at runtime.
12274 if test -d /usr/nec; then
12275 lt_prog_compiler_pic_CXX=-Kconform_pic
12279 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12280 # not for PA HP-UX.
12285 lt_prog_compiler_pic_CXX='-fPIC'
12290 lt_prog_compiler_pic_CXX='-fPIC'
12296 # All AIX code is PIC.
12297 if test "$host_cpu" = ia64; then
12298 # AIX 5 now supports IA64 processor
12299 lt_prog_compiler_static_CXX='-Bstatic'
12301 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12305 case $cc_basename in
12307 # Green Hills C++ Compiler
12308 # _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"
12313 # PIC is the default on this platform
12314 # Common symbols not allowed in MH_DYLIB files
12315 case $cc_basename in
12317 lt_prog_compiler_pic_CXX='-qnocommon'
12318 lt_prog_compiler_wl_CXX='-Wl,'
12323 case $cc_basename in
12325 lt_prog_compiler_pic_CXX='-KPIC'
12328 # Green Hills C++ Compiler
12329 lt_prog_compiler_pic_CXX='-pic'
12335 freebsd* | dragonfly*)
12336 # FreeBSD uses GNU C++
12338 hpux9* | hpux10* | hpux11*)
12339 case $cc_basename in
12341 lt_prog_compiler_wl_CXX='-Wl,'
12342 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12343 if test "$host_cpu" != ia64; then
12344 lt_prog_compiler_pic_CXX='+Z'
12348 lt_prog_compiler_wl_CXX='-Wl,'
12349 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12355 lt_prog_compiler_pic_CXX='+Z'
12364 # This is c89, which is MS Visual C++ (no shared libs)
12365 # Anyone wants to do a port?
12367 irix5* | irix6* | nonstopux*)
12368 case $cc_basename in
12370 lt_prog_compiler_wl_CXX='-Wl,'
12371 lt_prog_compiler_static_CXX='-non_shared'
12372 # CC pic flag -KPIC is the default.
12378 linux* | k*bsd*-gnu)
12379 case $cc_basename in
12382 lt_prog_compiler_wl_CXX='--backend -Wl,'
12383 lt_prog_compiler_pic_CXX='-fPIC'
12387 lt_prog_compiler_wl_CXX='-Wl,'
12388 lt_prog_compiler_pic_CXX='-KPIC'
12389 lt_prog_compiler_static_CXX='-static'
12392 # Portland Group C++ compiler.
12393 lt_prog_compiler_wl_CXX='-Wl,'
12394 lt_prog_compiler_pic_CXX='-fpic'
12395 lt_prog_compiler_static_CXX='-Bstatic'
12399 # Make sure the PIC flag is empty. It appears that all Alpha
12400 # Linux and Compaq Tru64 Unix objects are PIC.
12401 lt_prog_compiler_pic_CXX=
12402 lt_prog_compiler_static_CXX='-non_shared'
12413 case $cc_basename in
12415 lt_prog_compiler_pic_CXX='-W c,exportall'
12421 netbsd* | netbsdelf*-gnu)
12423 osf3* | osf4* | osf5*)
12424 case $cc_basename in
12426 lt_prog_compiler_wl_CXX='--backend -Wl,'
12429 # Rational C++ 2.4.1
12430 lt_prog_compiler_pic_CXX='-pic'
12433 # Digital/Compaq C++
12434 lt_prog_compiler_wl_CXX='-Wl,'
12435 # Make sure the PIC flag is empty. It appears that all Alpha
12436 # Linux and Compaq Tru64 Unix objects are PIC.
12437 lt_prog_compiler_pic_CXX=
12438 lt_prog_compiler_static_CXX='-non_shared'
12447 case $cc_basename in
12449 # Sun C++ 4.2, 5.x and Centerline C++
12450 lt_prog_compiler_pic_CXX='-KPIC'
12451 lt_prog_compiler_static_CXX='-Bstatic'
12452 lt_prog_compiler_wl_CXX='-Qoption ld '
12455 # Green Hills C++ Compiler
12456 lt_prog_compiler_pic_CXX='-PIC'
12463 case $cc_basename in
12466 lt_prog_compiler_pic_CXX='-pic'
12467 lt_prog_compiler_static_CXX='-Bstatic'
12471 lt_prog_compiler_pic_CXX='-pic'
12478 case $cc_basename in
12480 # NonStop-UX NCC 3.20
12481 lt_prog_compiler_pic_CXX='-KPIC'
12487 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12488 case $cc_basename in
12490 lt_prog_compiler_wl_CXX='-Wl,'
12491 lt_prog_compiler_pic_CXX='-KPIC'
12492 lt_prog_compiler_static_CXX='-Bstatic'
12499 lt_prog_compiler_can_build_shared_CXX=no
12504 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12505 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12508 # Check to make sure the PIC flag actually works.
12510 if test -n "$lt_prog_compiler_pic_CXX"; then
12512 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12513 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12514 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12515 echo $ECHO_N "(cached) $ECHO_C" >&6
12517 lt_prog_compiler_pic_works_CXX=no
12518 ac_outfile=conftest.$ac_objext
12519 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12520 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12521 # Insert the option either (1) after the last *FLAGS variable, or
12522 # (2) before a word containing "conftest.", or (3) at the end.
12523 # Note that $ac_compile itself does not contain backslashes and begins
12524 # with a dollar sign (not a hyphen), so the echo should work correctly.
12525 # The option is referenced via a variable to avoid confusing sed.
12526 lt_compile=`echo "$ac_compile" | $SED \
12527 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12528 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12529 -e 's:$: $lt_compiler_flag:'`
12530 (eval echo "\"\$as_me:12530: $lt_compile\"" >&5)
12531 (eval "$lt_compile" 2>conftest.err)
12533 cat conftest.err >&5
12534 echo "$as_me:12534: \$? = $ac_status" >&5
12535 if (exit $ac_status) && test -s "$ac_outfile"; then
12536 # The compiler can only warn and ignore the option if not recognized
12537 # So say no if there are warnings other than the usual output.
12538 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12539 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12540 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12541 lt_prog_compiler_pic_works_CXX=yes
12547 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12548 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12550 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12551 case $lt_prog_compiler_pic_CXX in
12553 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12556 lt_prog_compiler_pic_CXX=
12557 lt_prog_compiler_can_build_shared_CXX=no
12562 # For platforms which do not support PIC, -DPIC is meaningless:
12564 lt_prog_compiler_pic_CXX=
12567 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12572 # Check to make sure the static flag actually works.
12574 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12575 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12576 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12577 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12578 echo $ECHO_N "(cached) $ECHO_C" >&6
12580 lt_prog_compiler_static_works_CXX=no
12581 save_LDFLAGS="$LDFLAGS"
12582 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12583 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12584 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12585 # The linker can only warn and ignore the option if not recognized
12586 # So say no if there are warnings
12587 if test -s conftest.err; then
12588 # Append any errors to the config.log.
12589 cat conftest.err 1>&5
12590 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12591 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12592 if diff conftest.exp conftest.er2 >/dev/null; then
12593 lt_prog_compiler_static_works_CXX=yes
12596 lt_prog_compiler_static_works_CXX=yes
12600 LDFLAGS="$save_LDFLAGS"
12603 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12604 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12606 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12609 lt_prog_compiler_static_CXX=
12613 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12614 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12615 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12616 echo $ECHO_N "(cached) $ECHO_C" >&6
12618 lt_cv_prog_compiler_c_o_CXX=no
12619 $rm -r conftest 2>/dev/null
12623 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12625 lt_compiler_flag="-o out/conftest2.$ac_objext"
12626 # Insert the option either (1) after the last *FLAGS variable, or
12627 # (2) before a word containing "conftest.", or (3) at the end.
12628 # Note that $ac_compile itself does not contain backslashes and begins
12629 # with a dollar sign (not a hyphen), so the echo should work correctly.
12630 lt_compile=`echo "$ac_compile" | $SED \
12631 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12632 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12633 -e 's:$: $lt_compiler_flag:'`
12634 (eval echo "\"\$as_me:12634: $lt_compile\"" >&5)
12635 (eval "$lt_compile" 2>out/conftest.err)
12637 cat out/conftest.err >&5
12638 echo "$as_me:12638: \$? = $ac_status" >&5
12639 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12641 # The compiler can only warn and ignore the option if not recognized
12642 # So say no if there are warnings
12643 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12644 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12645 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12646 lt_cv_prog_compiler_c_o_CXX=yes
12651 # SGI C++ compiler will create directory out/ii_files/ for
12652 # template instantiation
12653 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12654 $rm out/* && rmdir out
12660 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12661 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12664 hard_links="nottested"
12665 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12666 # do not overwrite the value of need_locks provided by the user
12667 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12668 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12671 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12673 ln conftest.a conftest.b 2>&5 || hard_links=no
12674 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12675 { echo "$as_me:$LINENO: result: $hard_links" >&5
12676 echo "${ECHO_T}$hard_links" >&6; }
12677 if test "$hard_links" = no; then
12678 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12679 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12686 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12687 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12689 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12692 # If we're using GNU nm, then we don't want the "-C" option.
12693 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12694 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12695 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'
12697 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'
12701 export_symbols_cmds_CXX="$ltdll_cmds"
12704 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'
12706 linux* | k*bsd*-gnu)
12707 link_all_deplibs_CXX=no
12710 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12714 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12715 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12716 test "$ld_shlibs_CXX" = no && can_build_shared=no
12719 # Do we need to explicitly link libc?
12721 case "x$archive_cmds_need_lc_CXX" in
12723 # Assume -lc should be added
12724 archive_cmds_need_lc_CXX=yes
12726 if test "$enable_shared" = yes && test "$GCC" = yes; then
12727 case $archive_cmds_CXX in
12729 # FIXME: we may have to deal with multi-command sequences.
12732 # Test whether the compiler implicitly links with -lc since on some
12733 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12734 # to ld, don't add -lc before -lgcc.
12735 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12736 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12738 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12741 (eval $ac_compile) 2>&5
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); } 2>conftest.err; then
12747 libobjs=conftest.$ac_objext
12749 wl=$lt_prog_compiler_wl_CXX
12750 pic_flag=$lt_prog_compiler_pic_CXX
12756 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12757 allow_undefined_flag_CXX=
12758 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12759 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762 (exit $ac_status); }
12764 archive_cmds_need_lc_CXX=no
12766 archive_cmds_need_lc_CXX=yes
12768 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12770 cat conftest.err 1>&5
12773 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12774 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12781 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12782 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12783 library_names_spec=
12784 libname_spec='lib$name'
12788 postuninstall_cmds=
12792 shlibpath_overrides_runpath=unknown
12794 dynamic_linker="$host_os ld.so"
12795 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12796 if test "$GCC" = yes; then
12797 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12798 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12799 # if the path contains ";" then we assume it to be the separator
12800 # otherwise default to the standard path separator (i.e. ":") - it is
12801 # assumed that no part of a normal pathname contains ";" but that should
12802 # okay in the real world where ";" in dirpaths is itself problematic.
12803 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12805 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12808 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12810 need_lib_prefix=unknown
12811 hardcode_into_libs=no
12813 # when you set need_version to no, make sure it does not cause -set_version
12814 # flags to be left without arguments
12815 need_version=unknown
12820 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12821 shlibpath_var=LIBPATH
12823 # AIX 3 has no versioning support, so we append a major version to the name.
12824 soname_spec='${libname}${release}${shared_ext}$major'
12831 hardcode_into_libs=yes
12832 if test "$host_cpu" = ia64; then
12833 # AIX 5 supports IA64
12834 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12835 shlibpath_var=LD_LIBRARY_PATH
12837 # With GCC up to 2.95.x, collect2 would create an import file
12838 # for dependence libraries. The import file would start with
12839 # the line `#! .'. This would cause the generated library to
12840 # depend on `.', always an invalid library. This was fixed in
12841 # development snapshots of GCC prior to 3.0.
12843 aix4 | aix4.[01] | aix4.[01].*)
12844 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12846 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12849 can_build_shared=no
12853 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12854 # soname into executable. Probably we can add versioning support to
12855 # collect2, so additional links can be useful in future.
12856 if test "$aix_use_runtimelinking" = yes; then
12857 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12858 # instead of lib<name>.a to let people know that these are not
12859 # typical AIX shared libraries.
12860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12862 # We preserve .a as extension for shared libraries through AIX4.2
12863 # and later when we are not doing run time linking.
12864 library_names_spec='${libname}${release}.a $libname.a'
12865 soname_spec='${libname}${release}${shared_ext}$major'
12867 shlibpath_var=LIBPATH
12872 library_names_spec='$libname.ixlibrary $libname.a'
12873 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12874 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'
12878 library_names_spec='${libname}${shared_ext}'
12879 dynamic_linker="$host_os ld.so"
12880 shlibpath_var=LIBRARY_PATH
12886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12887 soname_spec='${libname}${release}${shared_ext}$major'
12888 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12889 shlibpath_var=LD_LIBRARY_PATH
12890 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12891 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12892 # the default ld.so.conf also contains /usr/contrib/lib and
12893 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12894 # libtool to hard-code these into programs
12897 cygwin* | mingw* | pw32*)
12898 version_type=windows
12903 case $GCC,$host_os in
12904 yes,cygwin* | yes,mingw* | yes,pw32*)
12905 library_names_spec='$libname.dll.a'
12906 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12907 postinstall_cmds='base_file=`basename \${file}`~
12908 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12909 dldir=$destdir/`dirname \$dlpath`~
12910 test -d \$dldir || mkdir -p \$dldir~
12911 $install_prog $dir/$dlname \$dldir/$dlname~
12912 chmod a+x \$dldir/$dlname'
12913 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12914 dlpath=$dir/\$dldll~
12916 shlibpath_overrides_runpath=yes
12920 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12921 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12922 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12925 # MinGW DLLs use traditional 'lib' prefix
12926 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12927 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12928 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12929 # It is most probably a Windows format PATH printed by
12930 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12931 # path with ; separators, and with drive letters. We can handle the
12932 # drive letters (cygwin fileutils understands them), so leave them,
12933 # especially as we might pass files found there to a mingw objdump,
12934 # which wouldn't understand a cygwinified path. Ahh.
12935 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12937 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12941 # pw32 DLLs use 'pw' prefix rather than 'lib'
12942 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12948 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12951 dynamic_linker='Win32 ld.exe'
12952 # FIXME: first we should search . and the directory the executable is in
12956 darwin* | rhapsody*)
12957 dynamic_linker="$host_os dyld"
12958 version_type=darwin
12961 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12962 soname_spec='${libname}${release}${major}$shared_ext'
12963 shlibpath_overrides_runpath=yes
12964 shlibpath_var=DYLD_LIBRARY_PATH
12965 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12966 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12967 if test "$GCC" = yes; then
12968 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12970 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12972 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12980 soname_spec='${libname}${release}${shared_ext}$major'
12981 shlibpath_var=LD_LIBRARY_PATH
12988 freebsd* | dragonfly*)
12989 # DragonFly does not have aout. When/if they implement a new
12990 # versioning mechanism, adjust this.
12991 if test -x /usr/bin/objformat; then
12992 objformat=`/usr/bin/objformat`
12995 freebsd[123]*) objformat=aout ;;
12996 *) objformat=elf ;;
12999 version_type=freebsd-$objformat
13000 case $version_type in
13002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13007 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13011 shlibpath_var=LD_LIBRARY_PATH
13014 shlibpath_overrides_runpath=yes
13016 freebsd3.[01]* | freebsdelf3.[01]*)
13017 shlibpath_overrides_runpath=yes
13018 hardcode_into_libs=yes
13020 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13021 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13022 shlibpath_overrides_runpath=no
13023 hardcode_into_libs=yes
13025 freebsd*) # from 4.6 on
13026 shlibpath_overrides_runpath=yes
13027 hardcode_into_libs=yes
13036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13037 soname_spec='${libname}${release}${shared_ext}$major'
13038 shlibpath_var=LD_LIBRARY_PATH
13039 hardcode_into_libs=yes
13042 hpux9* | hpux10* | hpux11*)
13043 # Give a soname corresponding to the major version so that dld.sl refuses to
13044 # link against other versions.
13051 hardcode_into_libs=yes
13052 dynamic_linker="$host_os dld.so"
13053 shlibpath_var=LD_LIBRARY_PATH
13054 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13056 soname_spec='${libname}${release}${shared_ext}$major'
13057 if test "X$HPUX_IA64_MODE" = X32; then
13058 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13060 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13062 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13066 hardcode_into_libs=yes
13067 dynamic_linker="$host_os dld.sl"
13068 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13069 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13071 soname_spec='${libname}${release}${shared_ext}$major'
13072 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13073 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13077 dynamic_linker="$host_os dld.sl"
13078 shlibpath_var=SHLIB_PATH
13079 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13081 soname_spec='${libname}${release}${shared_ext}$major'
13084 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13085 postinstall_cmds='chmod 555 $lib'
13092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13093 soname_spec='${libname}${release}${shared_ext}$major'
13094 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13095 shlibpath_var=LD_LIBRARY_PATH
13096 shlibpath_overrides_runpath=no
13097 hardcode_into_libs=yes
13100 irix5* | irix6* | nonstopux*)
13102 nonstopux*) version_type=nonstopux ;;
13104 if test "$lt_cv_prog_gnu_ld" = yes; then
13112 soname_spec='${libname}${release}${shared_ext}$major'
13113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13115 irix5* | nonstopux*)
13116 libsuff= shlibsuff=
13119 case $LD in # libtool.m4 will add one of these switches to LD
13120 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13121 libsuff= shlibsuff= libmagic=32-bit;;
13122 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13123 libsuff=32 shlibsuff=N32 libmagic=N32;;
13124 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13125 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13126 *) libsuff= shlibsuff= libmagic=never-match;;
13130 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13131 shlibpath_overrides_runpath=no
13132 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13133 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13134 hardcode_into_libs=yes
13137 # No shared lib support for Linux oldld, aout, or coff.
13138 linux*oldld* | linux*aout* | linux*coff*)
13142 # This must be Linux ELF.
13143 linux* | k*bsd*-gnu)
13147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13148 soname_spec='${libname}${release}${shared_ext}$major'
13149 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13150 shlibpath_var=LD_LIBRARY_PATH
13151 shlibpath_overrides_runpath=no
13152 # This implies no fast_install, which is unacceptable.
13153 # Some rework will be needed to allow for fast_install
13154 # before this can be enabled.
13155 hardcode_into_libs=yes
13157 # Append ld.so.conf contents to the search path
13158 if test -f /etc/ld.so.conf; then
13159 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13160 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13163 # We used to test for /lib/ld.so.1 and disable shared libraries on
13164 # powerpc, because MkLinux only supported shared libraries with the
13165 # GNU dynamic linker. Since this was broken with cross compilers,
13166 # most powerpc-linux boxes support dynamic linking these days and
13167 # people can always --disable-shared, the test was removed, and we
13168 # assume the GNU/Linux dynamic linker is in use.
13169 dynamic_linker='GNU/Linux ld.so'
13176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13177 soname_spec='${libname}${release}${shared_ext}$major'
13178 shlibpath_var=LD_LIBRARY_PATH
13179 shlibpath_overrides_runpath=no
13180 hardcode_into_libs=yes
13181 dynamic_linker='NetBSD ld.elf_so'
13188 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13190 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13191 dynamic_linker='NetBSD (a.out) ld.so'
13193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13194 soname_spec='${libname}${release}${shared_ext}$major'
13195 dynamic_linker='NetBSD ld.elf_so'
13197 shlibpath_var=LD_LIBRARY_PATH
13198 shlibpath_overrides_runpath=yes
13199 hardcode_into_libs=yes
13204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13205 shlibpath_var=LD_LIBRARY_PATH
13206 shlibpath_overrides_runpath=yes
13213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13214 soname_spec='${libname}${release}${shared_ext}$major'
13215 shlibpath_var=LD_LIBRARY_PATH
13216 shlibpath_overrides_runpath=yes
13221 sys_lib_dlsearch_path_spec="/usr/lib"
13223 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13225 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13226 *) need_version=no ;;
13228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13229 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13230 shlibpath_var=LD_LIBRARY_PATH
13231 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13233 openbsd2.[89] | openbsd2.[89].*)
13234 shlibpath_overrides_runpath=no
13237 shlibpath_overrides_runpath=yes
13241 shlibpath_overrides_runpath=yes
13246 libname_spec='$name'
13249 library_names_spec='$libname${shared_ext} $libname.a'
13250 dynamic_linker='OS/2 ld.exe'
13251 shlibpath_var=LIBPATH
13254 osf3* | osf4* | osf5*)
13258 soname_spec='${libname}${release}${shared_ext}$major'
13259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13260 shlibpath_var=LD_LIBRARY_PATH
13261 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13262 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13270 soname_spec='${libname}${release}${shared_ext}$major'
13271 shlibpath_var=LD_LIBRARY_PATH
13272 shlibpath_overrides_runpath=yes
13273 hardcode_into_libs=yes
13274 # ldd complains unless libraries are executable
13275 postinstall_cmds='chmod +x $lib'
13280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13281 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13282 shlibpath_var=LD_LIBRARY_PATH
13283 shlibpath_overrides_runpath=yes
13284 if test "$with_gnu_ld" = yes; then
13292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13293 soname_spec='${libname}${release}${shared_ext}$major'
13294 shlibpath_var=LD_LIBRARY_PATH
13295 case $host_vendor in
13297 shlibpath_overrides_runpath=no
13299 export_dynamic_flag_spec='${wl}-Blargedynsym'
13300 runpath_var=LD_RUN_PATH
13308 shlibpath_overrides_runpath=no
13309 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13315 if test -d /usr/nec ;then
13317 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13318 soname_spec='$libname${shared_ext}.$major'
13319 shlibpath_var=LD_LIBRARY_PATH
13323 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13324 version_type=freebsd-elf
13327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13328 soname_spec='${libname}${release}${shared_ext}$major'
13329 shlibpath_var=LD_LIBRARY_PATH
13330 hardcode_into_libs=yes
13331 if test "$with_gnu_ld" = yes; then
13332 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13333 shlibpath_overrides_runpath=no
13335 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13336 shlibpath_overrides_runpath=yes
13339 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13343 sys_lib_dlsearch_path_spec='/usr/lib'
13348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13349 soname_spec='${libname}${release}${shared_ext}$major'
13350 shlibpath_var=LD_LIBRARY_PATH
13357 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13358 echo "${ECHO_T}$dynamic_linker" >&6; }
13359 test "$dynamic_linker" = no && can_build_shared=no
13361 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13362 if test "$GCC" = yes; then
13363 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13366 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13367 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13368 hardcode_action_CXX=
13369 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13370 test -n "$runpath_var_CXX" || \
13371 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13373 # We can hardcode non-existant directories.
13374 if test "$hardcode_direct_CXX" != no &&
13375 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13376 # have to relink, otherwise we might link with an installed library
13377 # when we should be linking with a yet-to-be-installed one
13378 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13379 test "$hardcode_minus_L_CXX" != no; then
13380 # Linking always hardcodes the temporary library directory.
13381 hardcode_action_CXX=relink
13383 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13384 hardcode_action_CXX=immediate
13387 # We cannot hardcode anything, or else we can only hardcode existing
13389 hardcode_action_CXX=unsupported
13391 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13392 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13394 if test "$hardcode_action_CXX" = relink; then
13395 # Fast installation is not supported
13396 enable_fast_install=no
13397 elif test "$shlibpath_overrides_runpath" = yes ||
13398 test "$enable_shared" = no; then
13399 # Fast installation is not necessary
13400 enable_fast_install=needless
13404 # The else clause should only fire when bootstrapping the
13405 # libtool distribution, otherwise you forgot to ship ltmain.sh
13406 # with your package, and you will get complaints that there are
13407 # no rules to generate ltmain.sh.
13408 if test -f "$ltmain"; then
13409 # See if we are running on zsh, and set the options which allow our commands through
13410 # without removal of \ escapes.
13411 if test -n "${ZSH_VERSION+set}" ; then
13412 setopt NO_GLOB_SUBST
13414 # Now quote all the things that may contain metacharacters while being
13415 # careful not to overquote the AC_SUBSTed values. We take copies of the
13416 # variables and quote the copies for generation of the libtool script.
13417 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13419 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13420 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13421 deplibs_check_method reload_flag reload_cmds need_locks \
13422 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13423 lt_cv_sys_global_symbol_to_c_name_address \
13424 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13425 old_postinstall_cmds old_postuninstall_cmds \
13429 lt_prog_compiler_wl_CXX \
13430 lt_prog_compiler_pic_CXX \
13431 lt_prog_compiler_static_CXX \
13432 lt_prog_compiler_no_builtin_flag_CXX \
13433 export_dynamic_flag_spec_CXX \
13434 thread_safe_flag_spec_CXX \
13435 whole_archive_flag_spec_CXX \
13436 enable_shared_with_static_runtimes_CXX \
13437 old_archive_cmds_CXX \
13438 old_archive_from_new_cmds_CXX \
13439 predep_objects_CXX \
13440 postdep_objects_CXX \
13443 compiler_lib_search_path_CXX \
13445 archive_expsym_cmds_CXX \
13446 postinstall_cmds_CXX \
13447 postuninstall_cmds_CXX \
13448 old_archive_from_expsyms_cmds_CXX \
13449 allow_undefined_flag_CXX \
13450 no_undefined_flag_CXX \
13451 export_symbols_cmds_CXX \
13452 hardcode_libdir_flag_spec_CXX \
13453 hardcode_libdir_flag_spec_ld_CXX \
13454 hardcode_libdir_separator_CXX \
13455 hardcode_automatic_CXX \
13457 module_expsym_cmds_CXX \
13458 lt_cv_prog_compiler_c_o_CXX \
13459 exclude_expsyms_CXX \
13460 include_expsyms_CXX; do
13463 old_archive_cmds_CXX | \
13464 old_archive_from_new_cmds_CXX | \
13465 archive_cmds_CXX | \
13466 archive_expsym_cmds_CXX | \
13467 module_cmds_CXX | \
13468 module_expsym_cmds_CXX | \
13469 old_archive_from_expsyms_cmds_CXX | \
13470 export_symbols_cmds_CXX | \
13471 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13472 postinstall_cmds | postuninstall_cmds | \
13473 old_postinstall_cmds | old_postuninstall_cmds | \
13474 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13475 # Double-quote double-evaled strings.
13476 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13479 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13485 *'\$0 --fallback-echo"')
13486 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13492 cat <<__EOF__ >> "$cfgfile"
13493 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13495 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13497 # Shell to use when invoking shell scripts.
13500 # Whether or not to build shared libraries.
13501 build_libtool_libs=$enable_shared
13503 # Whether or not to build static libraries.
13504 build_old_libs=$enable_static
13506 # Whether or not to add -lc for building shared libraries.
13507 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13509 # Whether or not to disallow shared libs when runtime libs are static
13510 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13512 # Whether or not to optimize for fast installation.
13513 fast_install=$enable_fast_install
13516 host_alias=$host_alias
13520 # The build system.
13521 build_alias=$build_alias
13525 # An echo program that does not interpret backslashes.
13530 AR_FLAGS=$lt_AR_FLAGS
13535 # LTCC compiler flags.
13536 LTCFLAGS=$lt_LTCFLAGS
13538 # A language-specific compiler.
13539 CC=$lt_compiler_CXX
13541 # Is the compiler the GNU C compiler?
13547 # The linker used to build libraries.
13550 # Whether we need hard or soft links.
13553 # A BSD-compatible nm program.
13556 # A symbol stripping program
13559 # Used to examine libraries when file_magic_cmd begins "file"
13560 MAGIC_CMD=$MAGIC_CMD
13562 # Used on cygwin: DLL creation program.
13565 # Used on cygwin: object dumper.
13568 # Used on cygwin: assembler.
13571 # The name of the directory that contains temporary libtool files.
13574 # How to create reloadable object files.
13575 reload_flag=$lt_reload_flag
13576 reload_cmds=$lt_reload_cmds
13578 # How to pass a linker flag through the compiler.
13579 wl=$lt_lt_prog_compiler_wl_CXX
13581 # Object file suffix (normally "o").
13582 objext="$ac_objext"
13584 # Old archive suffix (normally "a").
13587 # Shared library suffix (normally ".so").
13588 shrext_cmds='$shrext_cmds'
13590 # Executable file suffix (normally "").
13593 # Additional compiler flags for building library objects.
13594 pic_flag=$lt_lt_prog_compiler_pic_CXX
13597 # What is the maximum length of a command?
13598 max_cmd_len=$lt_cv_sys_max_cmd_len
13600 # Does compiler simultaneously support -c and -o options?
13601 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13603 # Must we lock files when doing compilation?
13604 need_locks=$lt_need_locks
13606 # Do we need the lib prefix for modules?
13607 need_lib_prefix=$need_lib_prefix
13609 # Do we need a version for libraries?
13610 need_version=$need_version
13612 # Whether dlopen is supported.
13613 dlopen_support=$enable_dlopen
13615 # Whether dlopen of programs is supported.
13616 dlopen_self=$enable_dlopen_self
13618 # Whether dlopen of statically linked programs is supported.
13619 dlopen_self_static=$enable_dlopen_self_static
13621 # Compiler flag to prevent dynamic linking.
13622 link_static_flag=$lt_lt_prog_compiler_static_CXX
13624 # Compiler flag to turn off builtin functions.
13625 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13627 # Compiler flag to allow reflexive dlopens.
13628 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13630 # Compiler flag to generate shared objects directly from archives.
13631 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13633 # Compiler flag to generate thread-safe objects.
13634 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13636 # Library versioning type.
13637 version_type=$version_type
13639 # Format of library name prefix.
13640 libname_spec=$lt_libname_spec
13642 # List of archive names. First name is the real one, the rest are links.
13643 # The last name is the one that the linker finds with -lNAME.
13644 library_names_spec=$lt_library_names_spec
13646 # The coded name of the library, if different from the real name.
13647 soname_spec=$lt_soname_spec
13649 # Commands used to build and install an old-style archive.
13651 old_archive_cmds=$lt_old_archive_cmds_CXX
13652 old_postinstall_cmds=$lt_old_postinstall_cmds
13653 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13655 # Create an old-style archive from a shared archive.
13656 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13658 # Create a temporary old-style archive to link instead of a shared archive.
13659 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13661 # Commands used to build and install a shared archive.
13662 archive_cmds=$lt_archive_cmds_CXX
13663 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13664 postinstall_cmds=$lt_postinstall_cmds
13665 postuninstall_cmds=$lt_postuninstall_cmds
13667 # Commands used to build a loadable module (assumed same as above if empty)
13668 module_cmds=$lt_module_cmds_CXX
13669 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13671 # Commands to strip libraries.
13672 old_striplib=$lt_old_striplib
13673 striplib=$lt_striplib
13675 # Dependencies to place before the objects being linked to create a
13677 predep_objects=$lt_predep_objects_CXX
13679 # Dependencies to place after the objects being linked to create a
13681 postdep_objects=$lt_postdep_objects_CXX
13683 # Dependencies to place before the objects being linked to create a
13685 predeps=$lt_predeps_CXX
13687 # Dependencies to place after the objects being linked to create a
13689 postdeps=$lt_postdeps_CXX
13691 # The library search path used internally by the compiler when linking
13692 # a shared library.
13693 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13695 # Method to check whether dependent libraries are shared objects.
13696 deplibs_check_method=$lt_deplibs_check_method
13698 # Command to use when deplibs_check_method == file_magic.
13699 file_magic_cmd=$lt_file_magic_cmd
13701 # Flag that allows shared libraries with undefined symbols to be built.
13702 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13704 # Flag that forces no undefined symbols.
13705 no_undefined_flag=$lt_no_undefined_flag_CXX
13707 # Commands used to finish a libtool library installation in a directory.
13708 finish_cmds=$lt_finish_cmds
13710 # Same as above, but a single script fragment to be evaled but not shown.
13711 finish_eval=$lt_finish_eval
13713 # Take the output of nm and produce a listing of raw symbols and C names.
13714 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13716 # Transform the output of nm in a proper C declaration
13717 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13719 # Transform the output of nm in a C name address pair
13720 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13722 # This is the shared library runtime path variable.
13723 runpath_var=$runpath_var
13725 # This is the shared library path variable.
13726 shlibpath_var=$shlibpath_var
13728 # Is shlibpath searched before the hard-coded library search path?
13729 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13731 # How to hardcode a shared library path into an executable.
13732 hardcode_action=$hardcode_action_CXX
13734 # Whether we should hardcode library paths into libraries.
13735 hardcode_into_libs=$hardcode_into_libs
13737 # Flag to hardcode \$libdir into a binary during linking.
13738 # This must work even if \$libdir does not exist.
13739 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13741 # If ld is used when linking, flag to hardcode \$libdir into
13742 # a binary during linking. This must work even if \$libdir does
13744 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13746 # Whether we need a single -rpath flag with a separated argument.
13747 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13749 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13750 # resulting binary.
13751 hardcode_direct=$hardcode_direct_CXX
13753 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13754 # resulting binary.
13755 hardcode_minus_L=$hardcode_minus_L_CXX
13757 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13758 # the resulting binary.
13759 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13761 # Set to yes if building a shared library automatically hardcodes DIR into the library
13762 # and all subsequent libraries and executables linked against it.
13763 hardcode_automatic=$hardcode_automatic_CXX
13765 # Variables whose values should be saved in libtool wrapper scripts and
13766 # restored at relink time.
13767 variables_saved_for_relink="$variables_saved_for_relink"
13769 # Whether libtool must link a program against all its dependency libraries.
13770 link_all_deplibs=$link_all_deplibs_CXX
13772 # Compile-time system search path for libraries
13773 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13775 # Run-time system search path for libraries
13776 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13778 # Fix the shell variable \$srcfile for the compiler.
13779 fix_srcfile_path="$fix_srcfile_path_CXX"
13781 # Set to yes if exported symbols are required.
13782 always_export_symbols=$always_export_symbols_CXX
13784 # The commands to list exported symbols.
13785 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13787 # The commands to extract the exported symbol list from a shared archive.
13788 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13790 # Symbols that should not be listed in the preloaded symbols.
13791 exclude_expsyms=$lt_exclude_expsyms_CXX
13793 # Symbols that must always be exported.
13794 include_expsyms=$lt_include_expsyms_CXX
13796 # ### END LIBTOOL TAG CONFIG: $tagname
13802 # If there is no Makefile yet, we rely on a make rule to execute
13803 # `config.status --recheck' to rerun these tests and create the
13804 # libtool script then.
13805 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13806 if test -f "$ltmain_in"; then
13807 test -f Makefile && make "$ltmain"
13813 ac_cpp='$CPP $CPPFLAGS'
13814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13822 with_gnu_ldcxx=$with_gnu_ld
13823 with_gnu_ld=$lt_save_with_gnu_ld
13824 lt_cv_path_LDCXX=$lt_cv_path_LD
13825 lt_cv_path_LD=$lt_save_path_LD
13826 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13827 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13835 if test -n "$F77" && test "X$F77" != "Xno"; then
13838 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13839 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13840 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13843 archive_cmds_need_lc_F77=no
13844 allow_undefined_flag_F77=
13845 always_export_symbols_F77=no
13846 archive_expsym_cmds_F77=
13847 export_dynamic_flag_spec_F77=
13848 hardcode_direct_F77=no
13849 hardcode_libdir_flag_spec_F77=
13850 hardcode_libdir_flag_spec_ld_F77=
13851 hardcode_libdir_separator_F77=
13852 hardcode_minus_L_F77=no
13853 hardcode_automatic_F77=no
13855 module_expsym_cmds_F77=
13856 link_all_deplibs_F77=unknown
13857 old_archive_cmds_F77=$old_archive_cmds
13858 no_undefined_flag_F77=
13859 whole_archive_flag_spec_F77=
13860 enable_shared_with_static_runtimes_F77=no
13862 # Source file extension for f77 test sources.
13865 # Object file extension for compiled f77 test sources.
13869 # Code to be used in simple compile tests
13870 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13872 # Code to be used in simple link tests
13873 lt_simple_link_test_code=" program t\n end\n"
13875 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13877 # If no C compiler was specified, use CC.
13880 # If no C compiler flags were specified, use CFLAGS.
13881 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13883 # Allow CC to be a program name with arguments.
13887 # save warnings/boilerplate of simple test code
13888 ac_outfile=conftest.$ac_objext
13889 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13890 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13891 _lt_compiler_boilerplate=`cat conftest.err`
13894 ac_outfile=conftest.$ac_objext
13895 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13896 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13897 _lt_linker_boilerplate=`cat conftest.err`
13901 # Allow CC to be a program name with arguments.
13906 for cc_temp in $compiler""; do
13908 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13909 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13914 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13917 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13918 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13919 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13920 echo "${ECHO_T}$can_build_shared" >&6; }
13922 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13923 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13924 test "$can_build_shared" = "no" && enable_shared=no
13926 # On AIX, shared libraries and static libraries use the same namespace, and
13927 # are all built from PIC.
13930 test "$enable_shared" = yes && enable_static=no
13931 if test -n "$RANLIB"; then
13932 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13933 postinstall_cmds='$RANLIB $lib'
13937 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13938 test "$enable_shared" = yes && enable_static=no
13942 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13943 echo "${ECHO_T}$enable_shared" >&6; }
13945 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13946 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13947 # Make sure either enable_shared or enable_static is yes.
13948 test "$enable_shared" = yes || enable_static=yes
13949 { echo "$as_me:$LINENO: result: $enable_static" >&5
13950 echo "${ECHO_T}$enable_static" >&6; }
13955 lt_prog_compiler_wl_F77=
13956 lt_prog_compiler_pic_F77=
13957 lt_prog_compiler_static_F77=
13959 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13960 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13962 if test "$GCC" = yes; then
13963 lt_prog_compiler_wl_F77='-Wl,'
13964 lt_prog_compiler_static_F77='-static'
13968 # All AIX code is PIC.
13969 if test "$host_cpu" = ia64; then
13970 # AIX 5 now supports IA64 processor
13971 lt_prog_compiler_static_F77='-Bstatic'
13976 # FIXME: we need at least 68020 code to build shared libraries, but
13977 # adding the `-m68020' flag to GCC prevents building anything better,
13979 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13982 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13983 # PIC is the default for these OSes.
13986 mingw* | pw32* | os2*)
13987 # This hack is so that the source file can tell whether it is being
13988 # built for inclusion in a dll (and should export symbols for example).
13989 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13992 darwin* | rhapsody*)
13993 # PIC is the default on this platform
13994 # Common symbols not allowed in MH_DYLIB files
13995 lt_prog_compiler_pic_F77='-fno-common'
13999 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14000 # Instead, we relocate shared libraries at runtime.
14004 # Just because we use GCC doesn't mean we suddenly get shared libraries
14005 # on systems that don't support them.
14006 lt_prog_compiler_can_build_shared_F77=no
14011 if test -d /usr/nec; then
14012 lt_prog_compiler_pic_F77=-Kconform_pic
14017 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14018 # not for PA HP-UX.
14024 lt_prog_compiler_pic_F77='-fPIC'
14030 lt_prog_compiler_pic_F77='-fPIC'
14034 # PORTME Check for flag to pass linker flags through the system compiler.
14037 lt_prog_compiler_wl_F77='-Wl,'
14038 if test "$host_cpu" = ia64; then
14039 # AIX 5 now supports IA64 processor
14040 lt_prog_compiler_static_F77='-Bstatic'
14042 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14046 # PIC is the default on this platform
14047 # Common symbols not allowed in MH_DYLIB files
14048 case $cc_basename in
14050 lt_prog_compiler_pic_F77='-qnocommon'
14051 lt_prog_compiler_wl_F77='-Wl,'
14056 mingw* | pw32* | os2*)
14057 # This hack is so that the source file can tell whether it is being
14058 # built for inclusion in a dll (and should export symbols for example).
14059 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14062 hpux9* | hpux10* | hpux11*)
14063 lt_prog_compiler_wl_F77='-Wl,'
14064 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14065 # not for PA HP-UX.
14071 lt_prog_compiler_pic_F77='+Z'
14074 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14075 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14078 irix5* | irix6* | nonstopux*)
14079 lt_prog_compiler_wl_F77='-Wl,'
14080 # PIC (with -KPIC) is the default.
14081 lt_prog_compiler_static_F77='-non_shared'
14085 lt_prog_compiler_pic_F77='-KPIC'
14086 lt_prog_compiler_static_F77='-Bstatic'
14089 linux* | k*bsd*-gnu)
14090 case $cc_basename in
14092 lt_prog_compiler_wl_F77='-Wl,'
14093 lt_prog_compiler_pic_F77='-KPIC'
14094 lt_prog_compiler_static_F77='-static'
14096 pgcc* | pgf77* | pgf90* | pgf95*)
14097 # Portland Group compilers (*not* the Pentium gcc compiler,
14098 # which looks to be a dead project)
14099 lt_prog_compiler_wl_F77='-Wl,'
14100 lt_prog_compiler_pic_F77='-fpic'
14101 lt_prog_compiler_static_F77='-Bstatic'
14104 lt_prog_compiler_wl_F77='-Wl,'
14105 # All Alpha code is PIC.
14106 lt_prog_compiler_static_F77='-non_shared'
14111 osf3* | osf4* | osf5*)
14112 lt_prog_compiler_wl_F77='-Wl,'
14113 # All OSF/1 code is PIC.
14114 lt_prog_compiler_static_F77='-non_shared'
14118 lt_prog_compiler_pic_F77='-KPIC'
14119 lt_prog_compiler_static_F77='-Bstatic'
14120 case $cc_basename in
14121 f77* | f90* | f95*)
14122 lt_prog_compiler_wl_F77='-Qoption ld ';;
14124 lt_prog_compiler_wl_F77='-Wl,';;
14129 lt_prog_compiler_wl_F77='-Qoption ld '
14130 lt_prog_compiler_pic_F77='-PIC'
14131 lt_prog_compiler_static_F77='-Bstatic'
14134 sysv4 | sysv4.2uw2* | sysv4.3*)
14135 lt_prog_compiler_wl_F77='-Wl,'
14136 lt_prog_compiler_pic_F77='-KPIC'
14137 lt_prog_compiler_static_F77='-Bstatic'
14141 if test -d /usr/nec ;then
14142 lt_prog_compiler_pic_F77='-Kconform_pic'
14143 lt_prog_compiler_static_F77='-Bstatic'
14147 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14148 lt_prog_compiler_wl_F77='-Wl,'
14149 lt_prog_compiler_pic_F77='-KPIC'
14150 lt_prog_compiler_static_F77='-Bstatic'
14154 lt_prog_compiler_wl_F77='-Wl,'
14155 lt_prog_compiler_can_build_shared_F77=no
14159 lt_prog_compiler_pic_F77='-pic'
14160 lt_prog_compiler_static_F77='-Bstatic'
14164 lt_prog_compiler_can_build_shared_F77=no
14169 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14170 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14173 # Check to make sure the PIC flag actually works.
14175 if test -n "$lt_prog_compiler_pic_F77"; then
14177 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14178 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14179 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14180 echo $ECHO_N "(cached) $ECHO_C" >&6
14182 lt_prog_compiler_pic_works_F77=no
14183 ac_outfile=conftest.$ac_objext
14184 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14185 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14186 # Insert the option either (1) after the last *FLAGS variable, or
14187 # (2) before a word containing "conftest.", or (3) at the end.
14188 # Note that $ac_compile itself does not contain backslashes and begins
14189 # with a dollar sign (not a hyphen), so the echo should work correctly.
14190 # The option is referenced via a variable to avoid confusing sed.
14191 lt_compile=`echo "$ac_compile" | $SED \
14192 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14193 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14194 -e 's:$: $lt_compiler_flag:'`
14195 (eval echo "\"\$as_me:14195: $lt_compile\"" >&5)
14196 (eval "$lt_compile" 2>conftest.err)
14198 cat conftest.err >&5
14199 echo "$as_me:14199: \$? = $ac_status" >&5
14200 if (exit $ac_status) && test -s "$ac_outfile"; then
14201 # The compiler can only warn and ignore the option if not recognized
14202 # So say no if there are warnings other than the usual output.
14203 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14204 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14205 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14206 lt_prog_compiler_pic_works_F77=yes
14212 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14213 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14215 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14216 case $lt_prog_compiler_pic_F77 in
14218 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14221 lt_prog_compiler_pic_F77=
14222 lt_prog_compiler_can_build_shared_F77=no
14227 # For platforms which do not support PIC, -DPIC is meaningless:
14229 lt_prog_compiler_pic_F77=
14232 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14237 # Check to make sure the static flag actually works.
14239 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14240 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14241 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14242 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14243 echo $ECHO_N "(cached) $ECHO_C" >&6
14245 lt_prog_compiler_static_works_F77=no
14246 save_LDFLAGS="$LDFLAGS"
14247 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14248 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14249 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14250 # The linker can only warn and ignore the option if not recognized
14251 # So say no if there are warnings
14252 if test -s conftest.err; then
14253 # Append any errors to the config.log.
14254 cat conftest.err 1>&5
14255 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14256 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14257 if diff conftest.exp conftest.er2 >/dev/null; then
14258 lt_prog_compiler_static_works_F77=yes
14261 lt_prog_compiler_static_works_F77=yes
14265 LDFLAGS="$save_LDFLAGS"
14268 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14269 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14271 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14274 lt_prog_compiler_static_F77=
14278 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14279 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14280 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14281 echo $ECHO_N "(cached) $ECHO_C" >&6
14283 lt_cv_prog_compiler_c_o_F77=no
14284 $rm -r conftest 2>/dev/null
14288 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14290 lt_compiler_flag="-o out/conftest2.$ac_objext"
14291 # Insert the option either (1) after the last *FLAGS variable, or
14292 # (2) before a word containing "conftest.", or (3) at the end.
14293 # Note that $ac_compile itself does not contain backslashes and begins
14294 # with a dollar sign (not a hyphen), so the echo should work correctly.
14295 lt_compile=`echo "$ac_compile" | $SED \
14296 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14297 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14298 -e 's:$: $lt_compiler_flag:'`
14299 (eval echo "\"\$as_me:14299: $lt_compile\"" >&5)
14300 (eval "$lt_compile" 2>out/conftest.err)
14302 cat out/conftest.err >&5
14303 echo "$as_me:14303: \$? = $ac_status" >&5
14304 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14306 # The compiler can only warn and ignore the option if not recognized
14307 # So say no if there are warnings
14308 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14309 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14310 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14311 lt_cv_prog_compiler_c_o_F77=yes
14316 # SGI C++ compiler will create directory out/ii_files/ for
14317 # template instantiation
14318 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14319 $rm out/* && rmdir out
14325 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14326 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14329 hard_links="nottested"
14330 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14331 # do not overwrite the value of need_locks provided by the user
14332 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14333 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14336 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14338 ln conftest.a conftest.b 2>&5 || hard_links=no
14339 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14340 { echo "$as_me:$LINENO: result: $hard_links" >&5
14341 echo "${ECHO_T}$hard_links" >&6; }
14342 if test "$hard_links" = no; then
14343 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14344 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14351 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14352 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14355 allow_undefined_flag_F77=
14356 enable_shared_with_static_runtimes_F77=no
14358 archive_expsym_cmds_F77=
14359 old_archive_From_new_cmds_F77=
14360 old_archive_from_expsyms_cmds_F77=
14361 export_dynamic_flag_spec_F77=
14362 whole_archive_flag_spec_F77=
14363 thread_safe_flag_spec_F77=
14364 hardcode_libdir_flag_spec_F77=
14365 hardcode_libdir_flag_spec_ld_F77=
14366 hardcode_libdir_separator_F77=
14367 hardcode_direct_F77=no
14368 hardcode_minus_L_F77=no
14369 hardcode_shlibpath_var_F77=unsupported
14370 link_all_deplibs_F77=unknown
14371 hardcode_automatic_F77=no
14373 module_expsym_cmds_F77=
14374 always_export_symbols_F77=no
14375 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14376 # include_expsyms should be a list of space-separated symbols to be *always*
14377 # included in the symbol list
14378 include_expsyms_F77=
14379 # exclude_expsyms can be an extended regexp of symbols to exclude
14380 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14381 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14382 # as well as any symbol that contains `d'.
14383 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14384 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14385 # platforms (ab)use it in PIC code, but their linkers get confused if
14386 # the symbol is explicitly referenced. Since portable code cannot
14387 # rely on this symbol name, it's probably fine to never include it in
14388 # preloaded symbol tables.
14389 extract_expsyms_cmds=
14390 # Just being paranoid about ensuring that cc_basename is set.
14391 for cc_temp in $compiler""; do
14393 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14394 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14399 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14402 cygwin* | mingw* | pw32*)
14403 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14404 # When not using gcc, we currently assume that we are using
14405 # Microsoft Visual C++.
14406 if test "$GCC" != yes; then
14411 # we just hope/assume this is gcc and not c89 (= MSVC++)
14420 if test "$with_gnu_ld" = yes; then
14421 # If archive_cmds runs LD, not CC, wlarc should be empty
14424 # Set some defaults for GNU ld with shared library support. These
14425 # are reset later if shared libraries are not supported. Putting them
14426 # here allows them to be overridden if necessary.
14427 runpath_var=LD_RUN_PATH
14428 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14429 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14430 # ancient GNU ld didn't support --whole-archive et. al.
14431 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14432 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14434 whole_archive_flag_spec_F77=
14436 supports_anon_versioning=no
14437 case `$LD -v 2>/dev/null` in
14438 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14439 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14440 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14441 *\ 2.11.*) ;; # other 2.11 versions
14442 *) supports_anon_versioning=yes ;;
14445 # See if GNU ld supports shared libraries.
14447 aix3* | aix4* | aix5*)
14448 # On AIX/PPC, the GNU linker is very broken
14449 if test "$host_cpu" != ia64; then
14453 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14454 *** to be unable to reliably create shared libraries on AIX.
14455 *** Therefore, libtool is disabling shared libraries support. If you
14456 *** really care for shared libraries, you may want to modify your PATH
14457 *** so that a non-GNU linker is found, and then restart.
14464 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)'
14465 hardcode_libdir_flag_spec_F77='-L$libdir'
14466 hardcode_minus_L_F77=yes
14468 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14469 # that the semantics of dynamic libraries on AmigaOS, at least up
14470 # to version 4, is to share data among multiple programs linked
14471 # with the same dynamic library. Since this doesn't match the
14472 # behavior of shared libraries on other platforms, we can't use
14478 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14479 allow_undefined_flag_F77=unsupported
14480 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14481 # support --undefined. This deserves some investigation. FIXME
14482 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14488 cygwin* | mingw* | pw32*)
14489 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14490 # as there is no search path for DLLs.
14491 hardcode_libdir_flag_spec_F77='-L$libdir'
14492 allow_undefined_flag_F77=unsupported
14493 always_export_symbols_F77=no
14494 enable_shared_with_static_runtimes_F77=yes
14495 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14497 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14498 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14499 # If the export-symbols file already is a .def file (1st line
14500 # is EXPORTS), use it as is; otherwise, prepend...
14501 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14502 cp $export_symbols $output_objdir/$soname.def;
14504 echo EXPORTS > $output_objdir/$soname.def;
14505 cat $export_symbols >> $output_objdir/$soname.def;
14507 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14514 hardcode_direct_F77=no
14515 hardcode_shlibpath_var_F77=no
14516 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14517 export_dynamic_flag_spec_F77='${wl}-E'
14518 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14519 # Instead, shared libraries are loaded at an image base (0x10000000 by
14520 # default) and relocated if they conflict, which is a slow very memory
14521 # consuming and fragmenting process. To avoid this, we pick a random,
14522 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14523 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14524 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'
14525 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'
14528 linux* | k*bsd*-gnu)
14529 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14531 case $cc_basename,$host_cpu in
14532 pgcc*) # Portland Group C compiler
14533 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'
14534 tmp_addflag=' $pic_flag'
14536 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14537 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'
14538 tmp_addflag=' $pic_flag -Mnomain' ;;
14539 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14540 tmp_addflag=' -i_dynamic' ;;
14541 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14542 tmp_addflag=' -i_dynamic -nofor_main' ;;
14543 ifc* | ifort*) # Intel Fortran compiler
14544 tmp_addflag=' -nofor_main' ;;
14546 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14548 if test $supports_anon_versioning = yes; then
14549 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14550 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14551 $echo "local: *; };" >> $output_objdir/$libname.ver~
14552 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14554 link_all_deplibs_F77=no
14560 netbsd* | netbsdelf*-gnu)
14561 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14562 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14565 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14566 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14571 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14575 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14576 *** create shared libraries on Solaris systems. Therefore, libtool
14577 *** is disabling shared libraries support. We urge you to upgrade GNU
14578 *** binutils to release 2.9.1 or newer. Another option is to modify
14579 *** your PATH or compiler configuration so that the native linker is
14580 *** used, and then restart.
14583 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14584 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14585 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14591 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14592 case `$LD -v 2>&1` in
14593 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14597 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14598 *** reliably create shared libraries on SCO systems. Therefore, libtool
14599 *** is disabling shared libraries support. We urge you to upgrade GNU
14600 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14601 *** your PATH or compiler configuration so that the native linker is
14602 *** used, and then restart.
14607 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14608 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14609 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14610 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14619 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14621 hardcode_direct_F77=yes
14622 hardcode_shlibpath_var_F77=no
14626 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14627 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14628 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14635 if test "$ld_shlibs_F77" = no; then
14637 hardcode_libdir_flag_spec_F77=
14638 export_dynamic_flag_spec_F77=
14639 whole_archive_flag_spec_F77=
14642 # PORTME fill in a description of your system's linker (not GNU ld)
14645 allow_undefined_flag_F77=unsupported
14646 always_export_symbols_F77=yes
14647 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'
14648 # Note: this linker hardcodes the directories in LIBPATH if there
14649 # are no directories specified by -L.
14650 hardcode_minus_L_F77=yes
14651 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14652 # Neither direct hardcoding nor static linking is supported with a
14654 hardcode_direct_F77=unsupported
14659 if test "$host_cpu" = ia64; then
14660 # On IA64, the linker does run time linking by default, so we don't
14661 # have to do anything special.
14662 aix_use_runtimelinking=no
14663 exp_sym_flag='-Bexport'
14666 # If we're using GNU nm, then we don't want the "-C" option.
14667 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14668 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14669 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'
14671 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'
14673 aix_use_runtimelinking=no
14675 # Test if we are trying to use run time linking or normal
14676 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14677 # need to do runtime linking.
14678 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14679 for ld_flag in $LDFLAGS; do
14680 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14681 aix_use_runtimelinking=yes
14688 exp_sym_flag='-bexport'
14689 no_entry_flag='-bnoentry'
14692 # When large executables or shared objects are built, AIX ld can
14693 # have problems creating the table of contents. If linking a library
14694 # or program results in "error TOC overflow" add -mminimal-toc to
14695 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14696 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14698 archive_cmds_F77=''
14699 hardcode_direct_F77=yes
14700 hardcode_libdir_separator_F77=':'
14701 link_all_deplibs_F77=yes
14703 if test "$GCC" = yes; then
14704 case $host_os in aix4.[012]|aix4.[012].*)
14705 # We only want to do this on AIX 4.2 and lower, the check
14706 # below for broken collect2 doesn't work under 4.3+
14707 collect2name=`${CC} -print-prog-name=collect2`
14708 if test -f "$collect2name" && \
14709 strings "$collect2name" | grep resolve_lib_name >/dev/null
14711 # We have reworked collect2
14712 hardcode_direct_F77=yes
14714 # We have old collect2
14715 hardcode_direct_F77=unsupported
14716 # It fails to find uninstalled libraries when the uninstalled
14717 # path is not listed in the libpath. Setting hardcode_minus_L
14718 # to unsupported forces relinking
14719 hardcode_minus_L_F77=yes
14720 hardcode_libdir_flag_spec_F77='-L$libdir'
14721 hardcode_libdir_separator_F77=
14725 shared_flag='-shared'
14726 if test "$aix_use_runtimelinking" = yes; then
14727 shared_flag="$shared_flag "'${wl}-G'
14731 if test "$host_cpu" = ia64; then
14732 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14733 # chokes on -Wl,-G. The following line is correct:
14736 if test "$aix_use_runtimelinking" = yes; then
14737 shared_flag='${wl}-G'
14739 shared_flag='${wl}-bM:SRE'
14744 # It seems that -bexpall does not export symbols beginning with
14745 # underscore (_), so it is better to generate a list of symbols to export.
14746 always_export_symbols_F77=yes
14747 if test "$aix_use_runtimelinking" = yes; then
14748 # Warning - without using the other runtime loading flags (-brtl),
14749 # -berok will link without error, but may produce a broken library.
14750 allow_undefined_flag_F77='-berok'
14751 # Determine the default libpath from the value encoded in an empty executable.
14752 cat >conftest.$ac_ext <<_ACEOF
14757 rm -f conftest.$ac_objext conftest$ac_exeext
14758 if { (ac_try="$ac_link"
14759 case "(($ac_try" in
14760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14761 *) ac_try_echo=$ac_try;;
14763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14764 (eval "$ac_link") 2>conftest.er1
14766 grep -v '^ *+' conftest.er1 >conftest.err
14768 cat conftest.err >&5
14769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14770 (exit $ac_status); } && {
14771 test -z "$ac_f77_werror_flag" ||
14772 test ! -s conftest.err
14773 } && test -s conftest$ac_exeext &&
14774 $as_test_x conftest$ac_exeext; then
14776 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14778 # Check for a 64-bit object if we didn't find anything.
14779 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14782 echo "$as_me: failed program was:" >&5
14783 sed 's/^/| /' conftest.$ac_ext >&5
14788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14789 conftest$ac_exeext conftest.$ac_ext
14790 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14792 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14793 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"
14795 if test "$host_cpu" = ia64; then
14796 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14797 allow_undefined_flag_F77="-z nodefs"
14798 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"
14800 # Determine the default libpath from the value encoded in an empty executable.
14801 cat >conftest.$ac_ext <<_ACEOF
14806 rm -f conftest.$ac_objext conftest$ac_exeext
14807 if { (ac_try="$ac_link"
14808 case "(($ac_try" in
14809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14810 *) ac_try_echo=$ac_try;;
14812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14813 (eval "$ac_link") 2>conftest.er1
14815 grep -v '^ *+' conftest.er1 >conftest.err
14817 cat conftest.err >&5
14818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819 (exit $ac_status); } && {
14820 test -z "$ac_f77_werror_flag" ||
14821 test ! -s conftest.err
14822 } && test -s conftest$ac_exeext &&
14823 $as_test_x conftest$ac_exeext; then
14825 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14827 # Check for a 64-bit object if we didn't find anything.
14828 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14831 echo "$as_me: failed program was:" >&5
14832 sed 's/^/| /' conftest.$ac_ext >&5
14837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14838 conftest$ac_exeext conftest.$ac_ext
14839 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14841 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14842 # Warning - without using the other run time loading flags,
14843 # -berok will link without error, but may produce a broken library.
14844 no_undefined_flag_F77=' ${wl}-bernotok'
14845 allow_undefined_flag_F77=' ${wl}-berok'
14846 # Exported symbols can be pulled into shared objects from archives
14847 whole_archive_flag_spec_F77='$convenience'
14848 archive_cmds_need_lc_F77=yes
14849 # This is similar to how AIX traditionally builds its shared libraries.
14850 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'
14856 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)'
14857 hardcode_libdir_flag_spec_F77='-L$libdir'
14858 hardcode_minus_L_F77=yes
14859 # see comment about different semantics on the GNU ld section
14864 export_dynamic_flag_spec_F77=-rdynamic
14867 cygwin* | mingw* | pw32*)
14868 # When not using gcc, we currently assume that we are using
14869 # Microsoft Visual C++.
14870 # hardcode_libdir_flag_spec is actually meaningless, as there is
14871 # no search path for DLLs.
14872 hardcode_libdir_flag_spec_F77=' '
14873 allow_undefined_flag_F77=unsupported
14874 # Tell ltmain to make .lib files, not .a files.
14876 # Tell ltmain to make .dll files, not .so files.
14878 # FIXME: Setting linknames here is a bad hack.
14879 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14880 # The linker will automatically build a .lib file if we build a DLL.
14881 old_archive_From_new_cmds_F77='true'
14882 # FIXME: Should let the user specify the lib program.
14883 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14884 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14885 enable_shared_with_static_runtimes_F77=yes
14888 darwin* | rhapsody*)
14890 rhapsody* | darwin1.[012])
14891 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14894 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14895 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14897 case ${MACOSX_DEPLOYMENT_TARGET} in
14899 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14902 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14908 archive_cmds_need_lc_F77=no
14909 hardcode_direct_F77=no
14910 hardcode_automatic_F77=yes
14911 hardcode_shlibpath_var_F77=unsupported
14912 whole_archive_flag_spec_F77=''
14913 link_all_deplibs_F77=yes
14914 if test "$GCC" = yes ; then
14915 output_verbose_link_cmd='echo'
14916 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14917 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14918 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14919 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14920 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}'
14922 case $cc_basename in
14924 output_verbose_link_cmd='echo'
14925 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14926 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14927 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14928 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14929 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}'
14939 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14940 hardcode_libdir_flag_spec_F77='-L$libdir'
14941 hardcode_shlibpath_var_F77=no
14948 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14949 # support. Future versions do this automatically, but an explicit c++rt0.o
14950 # does not break anything, and helps significantly (at the cost of a little
14953 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14954 hardcode_libdir_flag_spec_F77='-R$libdir'
14955 hardcode_direct_F77=yes
14956 hardcode_shlibpath_var_F77=no
14959 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14961 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14962 hardcode_direct_F77=yes
14963 hardcode_minus_L_F77=yes
14964 hardcode_shlibpath_var_F77=no
14967 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14968 freebsd* | dragonfly*)
14969 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14970 hardcode_libdir_flag_spec_F77='-R$libdir'
14971 hardcode_direct_F77=yes
14972 hardcode_shlibpath_var_F77=no
14976 if test "$GCC" = yes; then
14977 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'
14979 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'
14981 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14982 hardcode_libdir_separator_F77=:
14983 hardcode_direct_F77=yes
14985 # hardcode_minus_L: Not really in the search PATH,
14986 # but as the default location of the library.
14987 hardcode_minus_L_F77=yes
14988 export_dynamic_flag_spec_F77='${wl}-E'
14992 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14993 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14995 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14997 if test "$with_gnu_ld" = no; then
14998 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14999 hardcode_libdir_separator_F77=:
15001 hardcode_direct_F77=yes
15002 export_dynamic_flag_spec_F77='${wl}-E'
15004 # hardcode_minus_L: Not really in the search PATH,
15005 # but as the default location of the library.
15006 hardcode_minus_L_F77=yes
15011 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15014 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15017 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15020 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15026 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15029 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15032 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15036 if test "$with_gnu_ld" = no; then
15037 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15038 hardcode_libdir_separator_F77=:
15042 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15043 hardcode_direct_F77=no
15044 hardcode_shlibpath_var_F77=no
15047 hardcode_direct_F77=yes
15048 export_dynamic_flag_spec_F77='${wl}-E'
15050 # hardcode_minus_L: Not really in the search PATH,
15051 # but as the default location of the library.
15052 hardcode_minus_L_F77=yes
15058 irix5* | irix6* | nonstopux*)
15059 if test "$GCC" = yes; then
15060 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'
15062 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'
15063 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15065 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15066 hardcode_libdir_separator_F77=:
15067 link_all_deplibs_F77=yes
15070 netbsd* | netbsdelf*-gnu)
15071 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15072 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15074 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15076 hardcode_libdir_flag_spec_F77='-R$libdir'
15077 hardcode_direct_F77=yes
15078 hardcode_shlibpath_var_F77=no
15082 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15083 hardcode_direct_F77=yes
15084 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15085 hardcode_libdir_separator_F77=:
15086 hardcode_shlibpath_var_F77=no
15090 hardcode_direct_F77=yes
15091 hardcode_shlibpath_var_F77=no
15092 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15093 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15094 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15095 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15096 export_dynamic_flag_spec_F77='${wl}-E'
15099 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15100 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15101 hardcode_libdir_flag_spec_F77='-R$libdir'
15104 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15105 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15112 hardcode_libdir_flag_spec_F77='-L$libdir'
15113 hardcode_minus_L_F77=yes
15114 allow_undefined_flag_F77=unsupported
15115 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'
15116 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15120 if test "$GCC" = yes; then
15121 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15122 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'
15124 allow_undefined_flag_F77=' -expect_unresolved \*'
15125 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'
15127 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15128 hardcode_libdir_separator_F77=:
15131 osf4* | osf5*) # as osf3* with the addition of -msym flag
15132 if test "$GCC" = yes; then
15133 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15134 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'
15135 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15137 allow_undefined_flag_F77=' -expect_unresolved \*'
15138 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'
15139 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~
15140 $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'
15142 # Both c and cxx compiler support -rpath directly
15143 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15145 hardcode_libdir_separator_F77=:
15149 no_undefined_flag_F77=' -z text'
15150 if test "$GCC" = yes; then
15152 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15153 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15154 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15157 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15158 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15159 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15161 hardcode_libdir_flag_spec_F77='-R$libdir'
15162 hardcode_shlibpath_var_F77=no
15164 solaris2.[0-5] | solaris2.[0-5].*) ;;
15166 # The compiler driver will combine linker options so we
15167 # cannot just pass the convience library names through
15168 # without $wl, iff we do not link with $LD.
15169 # Luckily, gcc supports the same syntax we need for Sun Studio.
15170 # Supported since Solaris 2.6 (maybe 2.5.1?)
15173 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15175 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15178 link_all_deplibs_F77=yes
15182 if test "x$host_vendor" = xsequent; then
15183 # Use $CC to link under sequent, because it throws in some extra .o
15184 # files that make .init and .fini sections work.
15185 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15187 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15189 hardcode_libdir_flag_spec_F77='-L$libdir'
15190 hardcode_direct_F77=yes
15191 hardcode_minus_L_F77=yes
15192 hardcode_shlibpath_var_F77=no
15196 case $host_vendor in
15198 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15199 hardcode_direct_F77=yes # is this really true???
15202 ## LD is ld it makes a PLAMLIB
15203 ## CC just makes a GrossModule.
15204 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15205 reload_cmds_F77='$CC -r -o $output$reload_objs'
15206 hardcode_direct_F77=no
15209 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15210 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15213 runpath_var='LD_RUN_PATH'
15214 hardcode_shlibpath_var_F77=no
15218 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15219 hardcode_shlibpath_var_F77=no
15220 export_dynamic_flag_spec_F77='-Bexport'
15224 if test -d /usr/nec; then
15225 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15226 hardcode_shlibpath_var_F77=no
15227 runpath_var=LD_RUN_PATH
15228 hardcode_runpath_var=yes
15233 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15234 no_undefined_flag_F77='${wl}-z,text'
15235 archive_cmds_need_lc_F77=no
15236 hardcode_shlibpath_var_F77=no
15237 runpath_var='LD_RUN_PATH'
15239 if test "$GCC" = yes; then
15240 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15241 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15243 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15244 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15248 sysv5* | sco3.2v5* | sco5v6*)
15249 # Note: We can NOT use -z defs as we might desire, because we do not
15250 # link with -lc, and that would cause any symbols used from libc to
15251 # always be unresolved, which means just about no library would
15252 # ever link correctly. If we're not using GNU ld we use -z text
15253 # though, which does catch some bad symbols but isn't as heavy-handed
15255 no_undefined_flag_F77='${wl}-z,text'
15256 allow_undefined_flag_F77='${wl}-z,nodefs'
15257 archive_cmds_need_lc_F77=no
15258 hardcode_shlibpath_var_F77=no
15259 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15260 hardcode_libdir_separator_F77=':'
15261 link_all_deplibs_F77=yes
15262 export_dynamic_flag_spec_F77='${wl}-Bexport'
15263 runpath_var='LD_RUN_PATH'
15265 if test "$GCC" = yes; then
15266 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15267 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15269 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15270 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15275 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15276 hardcode_libdir_flag_spec_F77='-L$libdir'
15277 hardcode_shlibpath_var_F77=no
15286 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15287 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15288 test "$ld_shlibs_F77" = no && can_build_shared=no
15291 # Do we need to explicitly link libc?
15293 case "x$archive_cmds_need_lc_F77" in
15295 # Assume -lc should be added
15296 archive_cmds_need_lc_F77=yes
15298 if test "$enable_shared" = yes && test "$GCC" = yes; then
15299 case $archive_cmds_F77 in
15301 # FIXME: we may have to deal with multi-command sequences.
15304 # Test whether the compiler implicitly links with -lc since on some
15305 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15306 # to ld, don't add -lc before -lgcc.
15307 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15308 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15310 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15313 (eval $ac_compile) 2>&5
15315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15316 (exit $ac_status); } 2>conftest.err; then
15319 libobjs=conftest.$ac_objext
15321 wl=$lt_prog_compiler_wl_F77
15322 pic_flag=$lt_prog_compiler_pic_F77
15328 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15329 allow_undefined_flag_F77=
15330 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15331 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334 (exit $ac_status); }
15336 archive_cmds_need_lc_F77=no
15338 archive_cmds_need_lc_F77=yes
15340 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15342 cat conftest.err 1>&5
15345 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15346 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15353 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15354 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15355 library_names_spec=
15356 libname_spec='lib$name'
15360 postuninstall_cmds=
15364 shlibpath_overrides_runpath=unknown
15366 dynamic_linker="$host_os ld.so"
15367 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15368 if test "$GCC" = yes; then
15369 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15370 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15371 # if the path contains ";" then we assume it to be the separator
15372 # otherwise default to the standard path separator (i.e. ":") - it is
15373 # assumed that no part of a normal pathname contains ";" but that should
15374 # okay in the real world where ";" in dirpaths is itself problematic.
15375 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15377 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15380 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15382 need_lib_prefix=unknown
15383 hardcode_into_libs=no
15385 # when you set need_version to no, make sure it does not cause -set_version
15386 # flags to be left without arguments
15387 need_version=unknown
15392 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15393 shlibpath_var=LIBPATH
15395 # AIX 3 has no versioning support, so we append a major version to the name.
15396 soname_spec='${libname}${release}${shared_ext}$major'
15403 hardcode_into_libs=yes
15404 if test "$host_cpu" = ia64; then
15405 # AIX 5 supports IA64
15406 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15407 shlibpath_var=LD_LIBRARY_PATH
15409 # With GCC up to 2.95.x, collect2 would create an import file
15410 # for dependence libraries. The import file would start with
15411 # the line `#! .'. This would cause the generated library to
15412 # depend on `.', always an invalid library. This was fixed in
15413 # development snapshots of GCC prior to 3.0.
15415 aix4 | aix4.[01] | aix4.[01].*)
15416 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15418 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15421 can_build_shared=no
15425 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15426 # soname into executable. Probably we can add versioning support to
15427 # collect2, so additional links can be useful in future.
15428 if test "$aix_use_runtimelinking" = yes; then
15429 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15430 # instead of lib<name>.a to let people know that these are not
15431 # typical AIX shared libraries.
15432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15434 # We preserve .a as extension for shared libraries through AIX4.2
15435 # and later when we are not doing run time linking.
15436 library_names_spec='${libname}${release}.a $libname.a'
15437 soname_spec='${libname}${release}${shared_ext}$major'
15439 shlibpath_var=LIBPATH
15444 library_names_spec='$libname.ixlibrary $libname.a'
15445 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15446 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'
15450 library_names_spec='${libname}${shared_ext}'
15451 dynamic_linker="$host_os ld.so"
15452 shlibpath_var=LIBRARY_PATH
15458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15459 soname_spec='${libname}${release}${shared_ext}$major'
15460 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15461 shlibpath_var=LD_LIBRARY_PATH
15462 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15463 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15464 # the default ld.so.conf also contains /usr/contrib/lib and
15465 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15466 # libtool to hard-code these into programs
15469 cygwin* | mingw* | pw32*)
15470 version_type=windows
15475 case $GCC,$host_os in
15476 yes,cygwin* | yes,mingw* | yes,pw32*)
15477 library_names_spec='$libname.dll.a'
15478 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15479 postinstall_cmds='base_file=`basename \${file}`~
15480 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15481 dldir=$destdir/`dirname \$dlpath`~
15482 test -d \$dldir || mkdir -p \$dldir~
15483 $install_prog $dir/$dlname \$dldir/$dlname~
15484 chmod a+x \$dldir/$dlname'
15485 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15486 dlpath=$dir/\$dldll~
15488 shlibpath_overrides_runpath=yes
15492 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15493 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15494 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15497 # MinGW DLLs use traditional 'lib' prefix
15498 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15499 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15500 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15501 # It is most probably a Windows format PATH printed by
15502 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15503 # path with ; separators, and with drive letters. We can handle the
15504 # drive letters (cygwin fileutils understands them), so leave them,
15505 # especially as we might pass files found there to a mingw objdump,
15506 # which wouldn't understand a cygwinified path. Ahh.
15507 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15509 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15513 # pw32 DLLs use 'pw' prefix rather than 'lib'
15514 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15520 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15523 dynamic_linker='Win32 ld.exe'
15524 # FIXME: first we should search . and the directory the executable is in
15528 darwin* | rhapsody*)
15529 dynamic_linker="$host_os dyld"
15530 version_type=darwin
15533 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15534 soname_spec='${libname}${release}${major}$shared_ext'
15535 shlibpath_overrides_runpath=yes
15536 shlibpath_var=DYLD_LIBRARY_PATH
15537 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15538 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15539 if test "$GCC" = yes; then
15540 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15542 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15544 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15552 soname_spec='${libname}${release}${shared_ext}$major'
15553 shlibpath_var=LD_LIBRARY_PATH
15560 freebsd* | dragonfly*)
15561 # DragonFly does not have aout. When/if they implement a new
15562 # versioning mechanism, adjust this.
15563 if test -x /usr/bin/objformat; then
15564 objformat=`/usr/bin/objformat`
15567 freebsd[123]*) objformat=aout ;;
15568 *) objformat=elf ;;
15571 version_type=freebsd-$objformat
15572 case $version_type in
15574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15579 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15583 shlibpath_var=LD_LIBRARY_PATH
15586 shlibpath_overrides_runpath=yes
15588 freebsd3.[01]* | freebsdelf3.[01]*)
15589 shlibpath_overrides_runpath=yes
15590 hardcode_into_libs=yes
15592 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15593 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15594 shlibpath_overrides_runpath=no
15595 hardcode_into_libs=yes
15597 freebsd*) # from 4.6 on
15598 shlibpath_overrides_runpath=yes
15599 hardcode_into_libs=yes
15608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15609 soname_spec='${libname}${release}${shared_ext}$major'
15610 shlibpath_var=LD_LIBRARY_PATH
15611 hardcode_into_libs=yes
15614 hpux9* | hpux10* | hpux11*)
15615 # Give a soname corresponding to the major version so that dld.sl refuses to
15616 # link against other versions.
15623 hardcode_into_libs=yes
15624 dynamic_linker="$host_os dld.so"
15625 shlibpath_var=LD_LIBRARY_PATH
15626 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15628 soname_spec='${libname}${release}${shared_ext}$major'
15629 if test "X$HPUX_IA64_MODE" = X32; then
15630 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15632 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15634 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15638 hardcode_into_libs=yes
15639 dynamic_linker="$host_os dld.sl"
15640 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15641 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15643 soname_spec='${libname}${release}${shared_ext}$major'
15644 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15645 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15649 dynamic_linker="$host_os dld.sl"
15650 shlibpath_var=SHLIB_PATH
15651 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15653 soname_spec='${libname}${release}${shared_ext}$major'
15656 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15657 postinstall_cmds='chmod 555 $lib'
15664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15665 soname_spec='${libname}${release}${shared_ext}$major'
15666 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15667 shlibpath_var=LD_LIBRARY_PATH
15668 shlibpath_overrides_runpath=no
15669 hardcode_into_libs=yes
15672 irix5* | irix6* | nonstopux*)
15674 nonstopux*) version_type=nonstopux ;;
15676 if test "$lt_cv_prog_gnu_ld" = yes; then
15684 soname_spec='${libname}${release}${shared_ext}$major'
15685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15687 irix5* | nonstopux*)
15688 libsuff= shlibsuff=
15691 case $LD in # libtool.m4 will add one of these switches to LD
15692 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15693 libsuff= shlibsuff= libmagic=32-bit;;
15694 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15695 libsuff=32 shlibsuff=N32 libmagic=N32;;
15696 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15697 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15698 *) libsuff= shlibsuff= libmagic=never-match;;
15702 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15703 shlibpath_overrides_runpath=no
15704 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15705 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15706 hardcode_into_libs=yes
15709 # No shared lib support for Linux oldld, aout, or coff.
15710 linux*oldld* | linux*aout* | linux*coff*)
15714 # This must be Linux ELF.
15715 linux* | k*bsd*-gnu)
15719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15720 soname_spec='${libname}${release}${shared_ext}$major'
15721 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15722 shlibpath_var=LD_LIBRARY_PATH
15723 shlibpath_overrides_runpath=no
15724 # This implies no fast_install, which is unacceptable.
15725 # Some rework will be needed to allow for fast_install
15726 # before this can be enabled.
15727 hardcode_into_libs=yes
15729 # Append ld.so.conf contents to the search path
15730 if test -f /etc/ld.so.conf; then
15731 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15732 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15735 # We used to test for /lib/ld.so.1 and disable shared libraries on
15736 # powerpc, because MkLinux only supported shared libraries with the
15737 # GNU dynamic linker. Since this was broken with cross compilers,
15738 # most powerpc-linux boxes support dynamic linking these days and
15739 # people can always --disable-shared, the test was removed, and we
15740 # assume the GNU/Linux dynamic linker is in use.
15741 dynamic_linker='GNU/Linux ld.so'
15748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15749 soname_spec='${libname}${release}${shared_ext}$major'
15750 shlibpath_var=LD_LIBRARY_PATH
15751 shlibpath_overrides_runpath=no
15752 hardcode_into_libs=yes
15753 dynamic_linker='NetBSD ld.elf_so'
15760 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15762 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15763 dynamic_linker='NetBSD (a.out) ld.so'
15765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15766 soname_spec='${libname}${release}${shared_ext}$major'
15767 dynamic_linker='NetBSD ld.elf_so'
15769 shlibpath_var=LD_LIBRARY_PATH
15770 shlibpath_overrides_runpath=yes
15771 hardcode_into_libs=yes
15776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15777 shlibpath_var=LD_LIBRARY_PATH
15778 shlibpath_overrides_runpath=yes
15785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15786 soname_spec='${libname}${release}${shared_ext}$major'
15787 shlibpath_var=LD_LIBRARY_PATH
15788 shlibpath_overrides_runpath=yes
15793 sys_lib_dlsearch_path_spec="/usr/lib"
15795 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15797 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15798 *) need_version=no ;;
15800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15801 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15802 shlibpath_var=LD_LIBRARY_PATH
15803 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15805 openbsd2.[89] | openbsd2.[89].*)
15806 shlibpath_overrides_runpath=no
15809 shlibpath_overrides_runpath=yes
15813 shlibpath_overrides_runpath=yes
15818 libname_spec='$name'
15821 library_names_spec='$libname${shared_ext} $libname.a'
15822 dynamic_linker='OS/2 ld.exe'
15823 shlibpath_var=LIBPATH
15826 osf3* | osf4* | osf5*)
15830 soname_spec='${libname}${release}${shared_ext}$major'
15831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15832 shlibpath_var=LD_LIBRARY_PATH
15833 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15834 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15842 soname_spec='${libname}${release}${shared_ext}$major'
15843 shlibpath_var=LD_LIBRARY_PATH
15844 shlibpath_overrides_runpath=yes
15845 hardcode_into_libs=yes
15846 # ldd complains unless libraries are executable
15847 postinstall_cmds='chmod +x $lib'
15852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15853 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15854 shlibpath_var=LD_LIBRARY_PATH
15855 shlibpath_overrides_runpath=yes
15856 if test "$with_gnu_ld" = yes; then
15864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15865 soname_spec='${libname}${release}${shared_ext}$major'
15866 shlibpath_var=LD_LIBRARY_PATH
15867 case $host_vendor in
15869 shlibpath_overrides_runpath=no
15871 export_dynamic_flag_spec='${wl}-Blargedynsym'
15872 runpath_var=LD_RUN_PATH
15880 shlibpath_overrides_runpath=no
15881 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15887 if test -d /usr/nec ;then
15889 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15890 soname_spec='$libname${shared_ext}.$major'
15891 shlibpath_var=LD_LIBRARY_PATH
15895 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15896 version_type=freebsd-elf
15899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15900 soname_spec='${libname}${release}${shared_ext}$major'
15901 shlibpath_var=LD_LIBRARY_PATH
15902 hardcode_into_libs=yes
15903 if test "$with_gnu_ld" = yes; then
15904 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15905 shlibpath_overrides_runpath=no
15907 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15908 shlibpath_overrides_runpath=yes
15911 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15915 sys_lib_dlsearch_path_spec='/usr/lib'
15920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15921 soname_spec='${libname}${release}${shared_ext}$major'
15922 shlibpath_var=LD_LIBRARY_PATH
15929 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15930 echo "${ECHO_T}$dynamic_linker" >&6; }
15931 test "$dynamic_linker" = no && can_build_shared=no
15933 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15934 if test "$GCC" = yes; then
15935 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15938 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15939 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15940 hardcode_action_F77=
15941 if test -n "$hardcode_libdir_flag_spec_F77" || \
15942 test -n "$runpath_var_F77" || \
15943 test "X$hardcode_automatic_F77" = "Xyes" ; then
15945 # We can hardcode non-existant directories.
15946 if test "$hardcode_direct_F77" != no &&
15947 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15948 # have to relink, otherwise we might link with an installed library
15949 # when we should be linking with a yet-to-be-installed one
15950 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15951 test "$hardcode_minus_L_F77" != no; then
15952 # Linking always hardcodes the temporary library directory.
15953 hardcode_action_F77=relink
15955 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15956 hardcode_action_F77=immediate
15959 # We cannot hardcode anything, or else we can only hardcode existing
15961 hardcode_action_F77=unsupported
15963 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15964 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15966 if test "$hardcode_action_F77" = relink; then
15967 # Fast installation is not supported
15968 enable_fast_install=no
15969 elif test "$shlibpath_overrides_runpath" = yes ||
15970 test "$enable_shared" = no; then
15971 # Fast installation is not necessary
15972 enable_fast_install=needless
15976 # The else clause should only fire when bootstrapping the
15977 # libtool distribution, otherwise you forgot to ship ltmain.sh
15978 # with your package, and you will get complaints that there are
15979 # no rules to generate ltmain.sh.
15980 if test -f "$ltmain"; then
15981 # See if we are running on zsh, and set the options which allow our commands through
15982 # without removal of \ escapes.
15983 if test -n "${ZSH_VERSION+set}" ; then
15984 setopt NO_GLOB_SUBST
15986 # Now quote all the things that may contain metacharacters while being
15987 # careful not to overquote the AC_SUBSTed values. We take copies of the
15988 # variables and quote the copies for generation of the libtool script.
15989 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15991 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15992 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15993 deplibs_check_method reload_flag reload_cmds need_locks \
15994 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15995 lt_cv_sys_global_symbol_to_c_name_address \
15996 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15997 old_postinstall_cmds old_postuninstall_cmds \
16001 lt_prog_compiler_wl_F77 \
16002 lt_prog_compiler_pic_F77 \
16003 lt_prog_compiler_static_F77 \
16004 lt_prog_compiler_no_builtin_flag_F77 \
16005 export_dynamic_flag_spec_F77 \
16006 thread_safe_flag_spec_F77 \
16007 whole_archive_flag_spec_F77 \
16008 enable_shared_with_static_runtimes_F77 \
16009 old_archive_cmds_F77 \
16010 old_archive_from_new_cmds_F77 \
16011 predep_objects_F77 \
16012 postdep_objects_F77 \
16015 compiler_lib_search_path_F77 \
16017 archive_expsym_cmds_F77 \
16018 postinstall_cmds_F77 \
16019 postuninstall_cmds_F77 \
16020 old_archive_from_expsyms_cmds_F77 \
16021 allow_undefined_flag_F77 \
16022 no_undefined_flag_F77 \
16023 export_symbols_cmds_F77 \
16024 hardcode_libdir_flag_spec_F77 \
16025 hardcode_libdir_flag_spec_ld_F77 \
16026 hardcode_libdir_separator_F77 \
16027 hardcode_automatic_F77 \
16029 module_expsym_cmds_F77 \
16030 lt_cv_prog_compiler_c_o_F77 \
16031 exclude_expsyms_F77 \
16032 include_expsyms_F77; do
16035 old_archive_cmds_F77 | \
16036 old_archive_from_new_cmds_F77 | \
16037 archive_cmds_F77 | \
16038 archive_expsym_cmds_F77 | \
16039 module_cmds_F77 | \
16040 module_expsym_cmds_F77 | \
16041 old_archive_from_expsyms_cmds_F77 | \
16042 export_symbols_cmds_F77 | \
16043 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16044 postinstall_cmds | postuninstall_cmds | \
16045 old_postinstall_cmds | old_postuninstall_cmds | \
16046 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16047 # Double-quote double-evaled strings.
16048 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16051 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16057 *'\$0 --fallback-echo"')
16058 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16064 cat <<__EOF__ >> "$cfgfile"
16065 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16067 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16069 # Shell to use when invoking shell scripts.
16072 # Whether or not to build shared libraries.
16073 build_libtool_libs=$enable_shared
16075 # Whether or not to build static libraries.
16076 build_old_libs=$enable_static
16078 # Whether or not to add -lc for building shared libraries.
16079 build_libtool_need_lc=$archive_cmds_need_lc_F77
16081 # Whether or not to disallow shared libs when runtime libs are static
16082 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16084 # Whether or not to optimize for fast installation.
16085 fast_install=$enable_fast_install
16088 host_alias=$host_alias
16092 # The build system.
16093 build_alias=$build_alias
16097 # An echo program that does not interpret backslashes.
16102 AR_FLAGS=$lt_AR_FLAGS
16107 # LTCC compiler flags.
16108 LTCFLAGS=$lt_LTCFLAGS
16110 # A language-specific compiler.
16111 CC=$lt_compiler_F77
16113 # Is the compiler the GNU C compiler?
16119 # The linker used to build libraries.
16122 # Whether we need hard or soft links.
16125 # A BSD-compatible nm program.
16128 # A symbol stripping program
16131 # Used to examine libraries when file_magic_cmd begins "file"
16132 MAGIC_CMD=$MAGIC_CMD
16134 # Used on cygwin: DLL creation program.
16137 # Used on cygwin: object dumper.
16140 # Used on cygwin: assembler.
16143 # The name of the directory that contains temporary libtool files.
16146 # How to create reloadable object files.
16147 reload_flag=$lt_reload_flag
16148 reload_cmds=$lt_reload_cmds
16150 # How to pass a linker flag through the compiler.
16151 wl=$lt_lt_prog_compiler_wl_F77
16153 # Object file suffix (normally "o").
16154 objext="$ac_objext"
16156 # Old archive suffix (normally "a").
16159 # Shared library suffix (normally ".so").
16160 shrext_cmds='$shrext_cmds'
16162 # Executable file suffix (normally "").
16165 # Additional compiler flags for building library objects.
16166 pic_flag=$lt_lt_prog_compiler_pic_F77
16169 # What is the maximum length of a command?
16170 max_cmd_len=$lt_cv_sys_max_cmd_len
16172 # Does compiler simultaneously support -c and -o options?
16173 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16175 # Must we lock files when doing compilation?
16176 need_locks=$lt_need_locks
16178 # Do we need the lib prefix for modules?
16179 need_lib_prefix=$need_lib_prefix
16181 # Do we need a version for libraries?
16182 need_version=$need_version
16184 # Whether dlopen is supported.
16185 dlopen_support=$enable_dlopen
16187 # Whether dlopen of programs is supported.
16188 dlopen_self=$enable_dlopen_self
16190 # Whether dlopen of statically linked programs is supported.
16191 dlopen_self_static=$enable_dlopen_self_static
16193 # Compiler flag to prevent dynamic linking.
16194 link_static_flag=$lt_lt_prog_compiler_static_F77
16196 # Compiler flag to turn off builtin functions.
16197 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16199 # Compiler flag to allow reflexive dlopens.
16200 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16202 # Compiler flag to generate shared objects directly from archives.
16203 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16205 # Compiler flag to generate thread-safe objects.
16206 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16208 # Library versioning type.
16209 version_type=$version_type
16211 # Format of library name prefix.
16212 libname_spec=$lt_libname_spec
16214 # List of archive names. First name is the real one, the rest are links.
16215 # The last name is the one that the linker finds with -lNAME.
16216 library_names_spec=$lt_library_names_spec
16218 # The coded name of the library, if different from the real name.
16219 soname_spec=$lt_soname_spec
16221 # Commands used to build and install an old-style archive.
16223 old_archive_cmds=$lt_old_archive_cmds_F77
16224 old_postinstall_cmds=$lt_old_postinstall_cmds
16225 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16227 # Create an old-style archive from a shared archive.
16228 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16230 # Create a temporary old-style archive to link instead of a shared archive.
16231 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16233 # Commands used to build and install a shared archive.
16234 archive_cmds=$lt_archive_cmds_F77
16235 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16236 postinstall_cmds=$lt_postinstall_cmds
16237 postuninstall_cmds=$lt_postuninstall_cmds
16239 # Commands used to build a loadable module (assumed same as above if empty)
16240 module_cmds=$lt_module_cmds_F77
16241 module_expsym_cmds=$lt_module_expsym_cmds_F77
16243 # Commands to strip libraries.
16244 old_striplib=$lt_old_striplib
16245 striplib=$lt_striplib
16247 # Dependencies to place before the objects being linked to create a
16249 predep_objects=$lt_predep_objects_F77
16251 # Dependencies to place after the objects being linked to create a
16253 postdep_objects=$lt_postdep_objects_F77
16255 # Dependencies to place before the objects being linked to create a
16257 predeps=$lt_predeps_F77
16259 # Dependencies to place after the objects being linked to create a
16261 postdeps=$lt_postdeps_F77
16263 # The library search path used internally by the compiler when linking
16264 # a shared library.
16265 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16267 # Method to check whether dependent libraries are shared objects.
16268 deplibs_check_method=$lt_deplibs_check_method
16270 # Command to use when deplibs_check_method == file_magic.
16271 file_magic_cmd=$lt_file_magic_cmd
16273 # Flag that allows shared libraries with undefined symbols to be built.
16274 allow_undefined_flag=$lt_allow_undefined_flag_F77
16276 # Flag that forces no undefined symbols.
16277 no_undefined_flag=$lt_no_undefined_flag_F77
16279 # Commands used to finish a libtool library installation in a directory.
16280 finish_cmds=$lt_finish_cmds
16282 # Same as above, but a single script fragment to be evaled but not shown.
16283 finish_eval=$lt_finish_eval
16285 # Take the output of nm and produce a listing of raw symbols and C names.
16286 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16288 # Transform the output of nm in a proper C declaration
16289 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16291 # Transform the output of nm in a C name address pair
16292 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16294 # This is the shared library runtime path variable.
16295 runpath_var=$runpath_var
16297 # This is the shared library path variable.
16298 shlibpath_var=$shlibpath_var
16300 # Is shlibpath searched before the hard-coded library search path?
16301 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16303 # How to hardcode a shared library path into an executable.
16304 hardcode_action=$hardcode_action_F77
16306 # Whether we should hardcode library paths into libraries.
16307 hardcode_into_libs=$hardcode_into_libs
16309 # Flag to hardcode \$libdir into a binary during linking.
16310 # This must work even if \$libdir does not exist.
16311 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16313 # If ld is used when linking, flag to hardcode \$libdir into
16314 # a binary during linking. This must work even if \$libdir does
16316 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16318 # Whether we need a single -rpath flag with a separated argument.
16319 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16321 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16322 # resulting binary.
16323 hardcode_direct=$hardcode_direct_F77
16325 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16326 # resulting binary.
16327 hardcode_minus_L=$hardcode_minus_L_F77
16329 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16330 # the resulting binary.
16331 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16333 # Set to yes if building a shared library automatically hardcodes DIR into the library
16334 # and all subsequent libraries and executables linked against it.
16335 hardcode_automatic=$hardcode_automatic_F77
16337 # Variables whose values should be saved in libtool wrapper scripts and
16338 # restored at relink time.
16339 variables_saved_for_relink="$variables_saved_for_relink"
16341 # Whether libtool must link a program against all its dependency libraries.
16342 link_all_deplibs=$link_all_deplibs_F77
16344 # Compile-time system search path for libraries
16345 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16347 # Run-time system search path for libraries
16348 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16350 # Fix the shell variable \$srcfile for the compiler.
16351 fix_srcfile_path="$fix_srcfile_path_F77"
16353 # Set to yes if exported symbols are required.
16354 always_export_symbols=$always_export_symbols_F77
16356 # The commands to list exported symbols.
16357 export_symbols_cmds=$lt_export_symbols_cmds_F77
16359 # The commands to extract the exported symbol list from a shared archive.
16360 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16362 # Symbols that should not be listed in the preloaded symbols.
16363 exclude_expsyms=$lt_exclude_expsyms_F77
16365 # Symbols that must always be exported.
16366 include_expsyms=$lt_include_expsyms_F77
16368 # ### END LIBTOOL TAG CONFIG: $tagname
16374 # If there is no Makefile yet, we rely on a make rule to execute
16375 # `config.status --recheck' to rerun these tests and create the
16376 # libtool script then.
16377 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16378 if test -f "$ltmain_in"; then
16379 test -f Makefile && make "$ltmain"
16385 ac_cpp='$CPP $CPPFLAGS'
16386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16398 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16401 # Source file extension for Java test sources.
16404 # Object file extension for compiled Java test sources.
16408 # Code to be used in simple compile tests
16409 lt_simple_compile_test_code="class foo {}\n"
16411 # Code to be used in simple link tests
16412 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16414 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16416 # If no C compiler was specified, use CC.
16419 # If no C compiler flags were specified, use CFLAGS.
16420 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16422 # Allow CC to be a program name with arguments.
16426 # save warnings/boilerplate of simple test code
16427 ac_outfile=conftest.$ac_objext
16428 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16429 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16430 _lt_compiler_boilerplate=`cat conftest.err`
16433 ac_outfile=conftest.$ac_objext
16434 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16435 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16436 _lt_linker_boilerplate=`cat conftest.err`
16440 # Allow CC to be a program name with arguments.
16445 for cc_temp in $compiler""; do
16447 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16448 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16453 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16456 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16457 archive_cmds_need_lc_GCJ=no
16459 old_archive_cmds_GCJ=$old_archive_cmds
16462 lt_prog_compiler_no_builtin_flag_GCJ=
16464 if test "$GCC" = yes; then
16465 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16468 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16469 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16470 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16471 echo $ECHO_N "(cached) $ECHO_C" >&6
16473 lt_cv_prog_compiler_rtti_exceptions=no
16474 ac_outfile=conftest.$ac_objext
16475 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16476 lt_compiler_flag="-fno-rtti -fno-exceptions"
16477 # Insert the option either (1) after the last *FLAGS variable, or
16478 # (2) before a word containing "conftest.", or (3) at the end.
16479 # Note that $ac_compile itself does not contain backslashes and begins
16480 # with a dollar sign (not a hyphen), so the echo should work correctly.
16481 # The option is referenced via a variable to avoid confusing sed.
16482 lt_compile=`echo "$ac_compile" | $SED \
16483 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16484 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16485 -e 's:$: $lt_compiler_flag:'`
16486 (eval echo "\"\$as_me:16486: $lt_compile\"" >&5)
16487 (eval "$lt_compile" 2>conftest.err)
16489 cat conftest.err >&5
16490 echo "$as_me:16490: \$? = $ac_status" >&5
16491 if (exit $ac_status) && test -s "$ac_outfile"; then
16492 # The compiler can only warn and ignore the option if not recognized
16493 # So say no if there are warnings other than the usual output.
16494 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16495 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16496 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16497 lt_cv_prog_compiler_rtti_exceptions=yes
16503 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16504 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16506 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16507 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16514 lt_prog_compiler_wl_GCJ=
16515 lt_prog_compiler_pic_GCJ=
16516 lt_prog_compiler_static_GCJ=
16518 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16519 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16521 if test "$GCC" = yes; then
16522 lt_prog_compiler_wl_GCJ='-Wl,'
16523 lt_prog_compiler_static_GCJ='-static'
16527 # All AIX code is PIC.
16528 if test "$host_cpu" = ia64; then
16529 # AIX 5 now supports IA64 processor
16530 lt_prog_compiler_static_GCJ='-Bstatic'
16535 # FIXME: we need at least 68020 code to build shared libraries, but
16536 # adding the `-m68020' flag to GCC prevents building anything better,
16538 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16541 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16542 # PIC is the default for these OSes.
16545 mingw* | pw32* | os2*)
16546 # This hack is so that the source file can tell whether it is being
16547 # built for inclusion in a dll (and should export symbols for example).
16548 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16551 darwin* | rhapsody*)
16552 # PIC is the default on this platform
16553 # Common symbols not allowed in MH_DYLIB files
16554 lt_prog_compiler_pic_GCJ='-fno-common'
16558 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16559 # Instead, we relocate shared libraries at runtime.
16563 # Just because we use GCC doesn't mean we suddenly get shared libraries
16564 # on systems that don't support them.
16565 lt_prog_compiler_can_build_shared_GCJ=no
16570 if test -d /usr/nec; then
16571 lt_prog_compiler_pic_GCJ=-Kconform_pic
16576 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16577 # not for PA HP-UX.
16583 lt_prog_compiler_pic_GCJ='-fPIC'
16589 lt_prog_compiler_pic_GCJ='-fPIC'
16593 # PORTME Check for flag to pass linker flags through the system compiler.
16596 lt_prog_compiler_wl_GCJ='-Wl,'
16597 if test "$host_cpu" = ia64; then
16598 # AIX 5 now supports IA64 processor
16599 lt_prog_compiler_static_GCJ='-Bstatic'
16601 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16605 # PIC is the default on this platform
16606 # Common symbols not allowed in MH_DYLIB files
16607 case $cc_basename in
16609 lt_prog_compiler_pic_GCJ='-qnocommon'
16610 lt_prog_compiler_wl_GCJ='-Wl,'
16615 mingw* | pw32* | os2*)
16616 # This hack is so that the source file can tell whether it is being
16617 # built for inclusion in a dll (and should export symbols for example).
16618 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16621 hpux9* | hpux10* | hpux11*)
16622 lt_prog_compiler_wl_GCJ='-Wl,'
16623 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16624 # not for PA HP-UX.
16630 lt_prog_compiler_pic_GCJ='+Z'
16633 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16634 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16637 irix5* | irix6* | nonstopux*)
16638 lt_prog_compiler_wl_GCJ='-Wl,'
16639 # PIC (with -KPIC) is the default.
16640 lt_prog_compiler_static_GCJ='-non_shared'
16644 lt_prog_compiler_pic_GCJ='-KPIC'
16645 lt_prog_compiler_static_GCJ='-Bstatic'
16648 linux* | k*bsd*-gnu)
16649 case $cc_basename in
16651 lt_prog_compiler_wl_GCJ='-Wl,'
16652 lt_prog_compiler_pic_GCJ='-KPIC'
16653 lt_prog_compiler_static_GCJ='-static'
16655 pgcc* | pgf77* | pgf90* | pgf95*)
16656 # Portland Group compilers (*not* the Pentium gcc compiler,
16657 # which looks to be a dead project)
16658 lt_prog_compiler_wl_GCJ='-Wl,'
16659 lt_prog_compiler_pic_GCJ='-fpic'
16660 lt_prog_compiler_static_GCJ='-Bstatic'
16663 lt_prog_compiler_wl_GCJ='-Wl,'
16664 # All Alpha code is PIC.
16665 lt_prog_compiler_static_GCJ='-non_shared'
16670 osf3* | osf4* | osf5*)
16671 lt_prog_compiler_wl_GCJ='-Wl,'
16672 # All OSF/1 code is PIC.
16673 lt_prog_compiler_static_GCJ='-non_shared'
16677 lt_prog_compiler_pic_GCJ='-KPIC'
16678 lt_prog_compiler_static_GCJ='-Bstatic'
16679 case $cc_basename in
16680 f77* | f90* | f95*)
16681 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16683 lt_prog_compiler_wl_GCJ='-Wl,';;
16688 lt_prog_compiler_wl_GCJ='-Qoption ld '
16689 lt_prog_compiler_pic_GCJ='-PIC'
16690 lt_prog_compiler_static_GCJ='-Bstatic'
16693 sysv4 | sysv4.2uw2* | sysv4.3*)
16694 lt_prog_compiler_wl_GCJ='-Wl,'
16695 lt_prog_compiler_pic_GCJ='-KPIC'
16696 lt_prog_compiler_static_GCJ='-Bstatic'
16700 if test -d /usr/nec ;then
16701 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16702 lt_prog_compiler_static_GCJ='-Bstatic'
16706 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16707 lt_prog_compiler_wl_GCJ='-Wl,'
16708 lt_prog_compiler_pic_GCJ='-KPIC'
16709 lt_prog_compiler_static_GCJ='-Bstatic'
16713 lt_prog_compiler_wl_GCJ='-Wl,'
16714 lt_prog_compiler_can_build_shared_GCJ=no
16718 lt_prog_compiler_pic_GCJ='-pic'
16719 lt_prog_compiler_static_GCJ='-Bstatic'
16723 lt_prog_compiler_can_build_shared_GCJ=no
16728 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16729 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16732 # Check to make sure the PIC flag actually works.
16734 if test -n "$lt_prog_compiler_pic_GCJ"; then
16736 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16737 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16738 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16739 echo $ECHO_N "(cached) $ECHO_C" >&6
16741 lt_prog_compiler_pic_works_GCJ=no
16742 ac_outfile=conftest.$ac_objext
16743 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16744 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16745 # Insert the option either (1) after the last *FLAGS variable, or
16746 # (2) before a word containing "conftest.", or (3) at the end.
16747 # Note that $ac_compile itself does not contain backslashes and begins
16748 # with a dollar sign (not a hyphen), so the echo should work correctly.
16749 # The option is referenced via a variable to avoid confusing sed.
16750 lt_compile=`echo "$ac_compile" | $SED \
16751 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16752 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16753 -e 's:$: $lt_compiler_flag:'`
16754 (eval echo "\"\$as_me:16754: $lt_compile\"" >&5)
16755 (eval "$lt_compile" 2>conftest.err)
16757 cat conftest.err >&5
16758 echo "$as_me:16758: \$? = $ac_status" >&5
16759 if (exit $ac_status) && test -s "$ac_outfile"; then
16760 # The compiler can only warn and ignore the option if not recognized
16761 # So say no if there are warnings other than the usual output.
16762 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16763 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16764 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16765 lt_prog_compiler_pic_works_GCJ=yes
16771 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16772 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16774 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16775 case $lt_prog_compiler_pic_GCJ in
16777 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16780 lt_prog_compiler_pic_GCJ=
16781 lt_prog_compiler_can_build_shared_GCJ=no
16786 # For platforms which do not support PIC, -DPIC is meaningless:
16788 lt_prog_compiler_pic_GCJ=
16791 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16796 # Check to make sure the static flag actually works.
16798 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16799 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16800 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16801 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16802 echo $ECHO_N "(cached) $ECHO_C" >&6
16804 lt_prog_compiler_static_works_GCJ=no
16805 save_LDFLAGS="$LDFLAGS"
16806 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16807 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16808 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16809 # The linker can only warn and ignore the option if not recognized
16810 # So say no if there are warnings
16811 if test -s conftest.err; then
16812 # Append any errors to the config.log.
16813 cat conftest.err 1>&5
16814 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16815 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16816 if diff conftest.exp conftest.er2 >/dev/null; then
16817 lt_prog_compiler_static_works_GCJ=yes
16820 lt_prog_compiler_static_works_GCJ=yes
16824 LDFLAGS="$save_LDFLAGS"
16827 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16828 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16830 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16833 lt_prog_compiler_static_GCJ=
16837 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16838 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16839 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16840 echo $ECHO_N "(cached) $ECHO_C" >&6
16842 lt_cv_prog_compiler_c_o_GCJ=no
16843 $rm -r conftest 2>/dev/null
16847 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16849 lt_compiler_flag="-o out/conftest2.$ac_objext"
16850 # Insert the option either (1) after the last *FLAGS variable, or
16851 # (2) before a word containing "conftest.", or (3) at the end.
16852 # Note that $ac_compile itself does not contain backslashes and begins
16853 # with a dollar sign (not a hyphen), so the echo should work correctly.
16854 lt_compile=`echo "$ac_compile" | $SED \
16855 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16856 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16857 -e 's:$: $lt_compiler_flag:'`
16858 (eval echo "\"\$as_me:16858: $lt_compile\"" >&5)
16859 (eval "$lt_compile" 2>out/conftest.err)
16861 cat out/conftest.err >&5
16862 echo "$as_me:16862: \$? = $ac_status" >&5
16863 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16865 # The compiler can only warn and ignore the option if not recognized
16866 # So say no if there are warnings
16867 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16868 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16869 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16870 lt_cv_prog_compiler_c_o_GCJ=yes
16875 # SGI C++ compiler will create directory out/ii_files/ for
16876 # template instantiation
16877 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16878 $rm out/* && rmdir out
16884 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16885 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16888 hard_links="nottested"
16889 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16890 # do not overwrite the value of need_locks provided by the user
16891 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16892 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16895 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16897 ln conftest.a conftest.b 2>&5 || hard_links=no
16898 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16899 { echo "$as_me:$LINENO: result: $hard_links" >&5
16900 echo "${ECHO_T}$hard_links" >&6; }
16901 if test "$hard_links" = no; then
16902 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16903 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16910 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16911 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16914 allow_undefined_flag_GCJ=
16915 enable_shared_with_static_runtimes_GCJ=no
16917 archive_expsym_cmds_GCJ=
16918 old_archive_From_new_cmds_GCJ=
16919 old_archive_from_expsyms_cmds_GCJ=
16920 export_dynamic_flag_spec_GCJ=
16921 whole_archive_flag_spec_GCJ=
16922 thread_safe_flag_spec_GCJ=
16923 hardcode_libdir_flag_spec_GCJ=
16924 hardcode_libdir_flag_spec_ld_GCJ=
16925 hardcode_libdir_separator_GCJ=
16926 hardcode_direct_GCJ=no
16927 hardcode_minus_L_GCJ=no
16928 hardcode_shlibpath_var_GCJ=unsupported
16929 link_all_deplibs_GCJ=unknown
16930 hardcode_automatic_GCJ=no
16932 module_expsym_cmds_GCJ=
16933 always_export_symbols_GCJ=no
16934 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16935 # include_expsyms should be a list of space-separated symbols to be *always*
16936 # included in the symbol list
16937 include_expsyms_GCJ=
16938 # exclude_expsyms can be an extended regexp of symbols to exclude
16939 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16940 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16941 # as well as any symbol that contains `d'.
16942 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16943 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16944 # platforms (ab)use it in PIC code, but their linkers get confused if
16945 # the symbol is explicitly referenced. Since portable code cannot
16946 # rely on this symbol name, it's probably fine to never include it in
16947 # preloaded symbol tables.
16948 extract_expsyms_cmds=
16949 # Just being paranoid about ensuring that cc_basename is set.
16950 for cc_temp in $compiler""; do
16952 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16953 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16958 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16961 cygwin* | mingw* | pw32*)
16962 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16963 # When not using gcc, we currently assume that we are using
16964 # Microsoft Visual C++.
16965 if test "$GCC" != yes; then
16970 # we just hope/assume this is gcc and not c89 (= MSVC++)
16979 if test "$with_gnu_ld" = yes; then
16980 # If archive_cmds runs LD, not CC, wlarc should be empty
16983 # Set some defaults for GNU ld with shared library support. These
16984 # are reset later if shared libraries are not supported. Putting them
16985 # here allows them to be overridden if necessary.
16986 runpath_var=LD_RUN_PATH
16987 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16988 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16989 # ancient GNU ld didn't support --whole-archive et. al.
16990 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16991 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16993 whole_archive_flag_spec_GCJ=
16995 supports_anon_versioning=no
16996 case `$LD -v 2>/dev/null` in
16997 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16998 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16999 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17000 *\ 2.11.*) ;; # other 2.11 versions
17001 *) supports_anon_versioning=yes ;;
17004 # See if GNU ld supports shared libraries.
17006 aix3* | aix4* | aix5*)
17007 # On AIX/PPC, the GNU linker is very broken
17008 if test "$host_cpu" != ia64; then
17012 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17013 *** to be unable to reliably create shared libraries on AIX.
17014 *** Therefore, libtool is disabling shared libraries support. If you
17015 *** really care for shared libraries, you may want to modify your PATH
17016 *** so that a non-GNU linker is found, and then restart.
17023 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)'
17024 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17025 hardcode_minus_L_GCJ=yes
17027 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17028 # that the semantics of dynamic libraries on AmigaOS, at least up
17029 # to version 4, is to share data among multiple programs linked
17030 # with the same dynamic library. Since this doesn't match the
17031 # behavior of shared libraries on other platforms, we can't use
17037 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17038 allow_undefined_flag_GCJ=unsupported
17039 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17040 # support --undefined. This deserves some investigation. FIXME
17041 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17047 cygwin* | mingw* | pw32*)
17048 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17049 # as there is no search path for DLLs.
17050 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17051 allow_undefined_flag_GCJ=unsupported
17052 always_export_symbols_GCJ=no
17053 enable_shared_with_static_runtimes_GCJ=yes
17054 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17056 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17057 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17058 # If the export-symbols file already is a .def file (1st line
17059 # is EXPORTS), use it as is; otherwise, prepend...
17060 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17061 cp $export_symbols $output_objdir/$soname.def;
17063 echo EXPORTS > $output_objdir/$soname.def;
17064 cat $export_symbols >> $output_objdir/$soname.def;
17066 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17073 hardcode_direct_GCJ=no
17074 hardcode_shlibpath_var_GCJ=no
17075 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17076 export_dynamic_flag_spec_GCJ='${wl}-E'
17077 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17078 # Instead, shared libraries are loaded at an image base (0x10000000 by
17079 # default) and relocated if they conflict, which is a slow very memory
17080 # consuming and fragmenting process. To avoid this, we pick a random,
17081 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17082 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17083 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'
17084 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'
17087 linux* | k*bsd*-gnu)
17088 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17090 case $cc_basename,$host_cpu in
17091 pgcc*) # Portland Group C compiler
17092 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'
17093 tmp_addflag=' $pic_flag'
17095 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17096 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'
17097 tmp_addflag=' $pic_flag -Mnomain' ;;
17098 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17099 tmp_addflag=' -i_dynamic' ;;
17100 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17101 tmp_addflag=' -i_dynamic -nofor_main' ;;
17102 ifc* | ifort*) # Intel Fortran compiler
17103 tmp_addflag=' -nofor_main' ;;
17105 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17107 if test $supports_anon_versioning = yes; then
17108 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17109 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17110 $echo "local: *; };" >> $output_objdir/$libname.ver~
17111 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17113 link_all_deplibs_GCJ=no
17119 netbsd* | netbsdelf*-gnu)
17120 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17121 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17124 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17125 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17130 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17134 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17135 *** create shared libraries on Solaris systems. Therefore, libtool
17136 *** is disabling shared libraries support. We urge you to upgrade GNU
17137 *** binutils to release 2.9.1 or newer. Another option is to modify
17138 *** your PATH or compiler configuration so that the native linker is
17139 *** used, and then restart.
17142 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17143 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17144 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17150 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17151 case `$LD -v 2>&1` in
17152 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17156 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17157 *** reliably create shared libraries on SCO systems. Therefore, libtool
17158 *** is disabling shared libraries support. We urge you to upgrade GNU
17159 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17160 *** your PATH or compiler configuration so that the native linker is
17161 *** used, and then restart.
17166 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17167 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17168 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17169 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17178 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17180 hardcode_direct_GCJ=yes
17181 hardcode_shlibpath_var_GCJ=no
17185 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17186 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17187 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17194 if test "$ld_shlibs_GCJ" = no; then
17196 hardcode_libdir_flag_spec_GCJ=
17197 export_dynamic_flag_spec_GCJ=
17198 whole_archive_flag_spec_GCJ=
17201 # PORTME fill in a description of your system's linker (not GNU ld)
17204 allow_undefined_flag_GCJ=unsupported
17205 always_export_symbols_GCJ=yes
17206 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'
17207 # Note: this linker hardcodes the directories in LIBPATH if there
17208 # are no directories specified by -L.
17209 hardcode_minus_L_GCJ=yes
17210 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17211 # Neither direct hardcoding nor static linking is supported with a
17213 hardcode_direct_GCJ=unsupported
17218 if test "$host_cpu" = ia64; then
17219 # On IA64, the linker does run time linking by default, so we don't
17220 # have to do anything special.
17221 aix_use_runtimelinking=no
17222 exp_sym_flag='-Bexport'
17225 # If we're using GNU nm, then we don't want the "-C" option.
17226 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17227 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17228 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'
17230 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'
17232 aix_use_runtimelinking=no
17234 # Test if we are trying to use run time linking or normal
17235 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17236 # need to do runtime linking.
17237 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17238 for ld_flag in $LDFLAGS; do
17239 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17240 aix_use_runtimelinking=yes
17247 exp_sym_flag='-bexport'
17248 no_entry_flag='-bnoentry'
17251 # When large executables or shared objects are built, AIX ld can
17252 # have problems creating the table of contents. If linking a library
17253 # or program results in "error TOC overflow" add -mminimal-toc to
17254 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17255 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17257 archive_cmds_GCJ=''
17258 hardcode_direct_GCJ=yes
17259 hardcode_libdir_separator_GCJ=':'
17260 link_all_deplibs_GCJ=yes
17262 if test "$GCC" = yes; then
17263 case $host_os in aix4.[012]|aix4.[012].*)
17264 # We only want to do this on AIX 4.2 and lower, the check
17265 # below for broken collect2 doesn't work under 4.3+
17266 collect2name=`${CC} -print-prog-name=collect2`
17267 if test -f "$collect2name" && \
17268 strings "$collect2name" | grep resolve_lib_name >/dev/null
17270 # We have reworked collect2
17271 hardcode_direct_GCJ=yes
17273 # We have old collect2
17274 hardcode_direct_GCJ=unsupported
17275 # It fails to find uninstalled libraries when the uninstalled
17276 # path is not listed in the libpath. Setting hardcode_minus_L
17277 # to unsupported forces relinking
17278 hardcode_minus_L_GCJ=yes
17279 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17280 hardcode_libdir_separator_GCJ=
17284 shared_flag='-shared'
17285 if test "$aix_use_runtimelinking" = yes; then
17286 shared_flag="$shared_flag "'${wl}-G'
17290 if test "$host_cpu" = ia64; then
17291 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17292 # chokes on -Wl,-G. The following line is correct:
17295 if test "$aix_use_runtimelinking" = yes; then
17296 shared_flag='${wl}-G'
17298 shared_flag='${wl}-bM:SRE'
17303 # It seems that -bexpall does not export symbols beginning with
17304 # underscore (_), so it is better to generate a list of symbols to export.
17305 always_export_symbols_GCJ=yes
17306 if test "$aix_use_runtimelinking" = yes; then
17307 # Warning - without using the other runtime loading flags (-brtl),
17308 # -berok will link without error, but may produce a broken library.
17309 allow_undefined_flag_GCJ='-berok'
17310 # Determine the default libpath from the value encoded in an empty executable.
17311 cat >conftest.$ac_ext <<_ACEOF
17314 cat confdefs.h >>conftest.$ac_ext
17315 cat >>conftest.$ac_ext <<_ACEOF
17316 /* end confdefs.h. */
17326 rm -f conftest.$ac_objext conftest$ac_exeext
17327 if { (ac_try="$ac_link"
17328 case "(($ac_try" in
17329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17330 *) ac_try_echo=$ac_try;;
17332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17333 (eval "$ac_link") 2>conftest.er1
17335 grep -v '^ *+' conftest.er1 >conftest.err
17337 cat conftest.err >&5
17338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339 (exit $ac_status); } && {
17340 test -z "$ac_c_werror_flag" ||
17341 test ! -s conftest.err
17342 } && test -s conftest$ac_exeext &&
17343 $as_test_x conftest$ac_exeext; then
17345 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17347 # Check for a 64-bit object if we didn't find anything.
17348 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17351 echo "$as_me: failed program was:" >&5
17352 sed 's/^/| /' conftest.$ac_ext >&5
17357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17358 conftest$ac_exeext conftest.$ac_ext
17359 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17361 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17362 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"
17364 if test "$host_cpu" = ia64; then
17365 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17366 allow_undefined_flag_GCJ="-z nodefs"
17367 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"
17369 # Determine the default libpath from the value encoded in an empty executable.
17370 cat >conftest.$ac_ext <<_ACEOF
17373 cat confdefs.h >>conftest.$ac_ext
17374 cat >>conftest.$ac_ext <<_ACEOF
17375 /* end confdefs.h. */
17385 rm -f conftest.$ac_objext conftest$ac_exeext
17386 if { (ac_try="$ac_link"
17387 case "(($ac_try" in
17388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17389 *) ac_try_echo=$ac_try;;
17391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17392 (eval "$ac_link") 2>conftest.er1
17394 grep -v '^ *+' conftest.er1 >conftest.err
17396 cat conftest.err >&5
17397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); } && {
17399 test -z "$ac_c_werror_flag" ||
17400 test ! -s conftest.err
17401 } && test -s conftest$ac_exeext &&
17402 $as_test_x conftest$ac_exeext; then
17404 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17406 # Check for a 64-bit object if we didn't find anything.
17407 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17410 echo "$as_me: failed program was:" >&5
17411 sed 's/^/| /' conftest.$ac_ext >&5
17416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17417 conftest$ac_exeext conftest.$ac_ext
17418 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17420 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17421 # Warning - without using the other run time loading flags,
17422 # -berok will link without error, but may produce a broken library.
17423 no_undefined_flag_GCJ=' ${wl}-bernotok'
17424 allow_undefined_flag_GCJ=' ${wl}-berok'
17425 # Exported symbols can be pulled into shared objects from archives
17426 whole_archive_flag_spec_GCJ='$convenience'
17427 archive_cmds_need_lc_GCJ=yes
17428 # This is similar to how AIX traditionally builds its shared libraries.
17429 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'
17435 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)'
17436 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17437 hardcode_minus_L_GCJ=yes
17438 # see comment about different semantics on the GNU ld section
17443 export_dynamic_flag_spec_GCJ=-rdynamic
17446 cygwin* | mingw* | pw32*)
17447 # When not using gcc, we currently assume that we are using
17448 # Microsoft Visual C++.
17449 # hardcode_libdir_flag_spec is actually meaningless, as there is
17450 # no search path for DLLs.
17451 hardcode_libdir_flag_spec_GCJ=' '
17452 allow_undefined_flag_GCJ=unsupported
17453 # Tell ltmain to make .lib files, not .a files.
17455 # Tell ltmain to make .dll files, not .so files.
17457 # FIXME: Setting linknames here is a bad hack.
17458 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17459 # The linker will automatically build a .lib file if we build a DLL.
17460 old_archive_From_new_cmds_GCJ='true'
17461 # FIXME: Should let the user specify the lib program.
17462 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17463 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17464 enable_shared_with_static_runtimes_GCJ=yes
17467 darwin* | rhapsody*)
17469 rhapsody* | darwin1.[012])
17470 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17473 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17474 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17476 case ${MACOSX_DEPLOYMENT_TARGET} in
17478 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17481 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17487 archive_cmds_need_lc_GCJ=no
17488 hardcode_direct_GCJ=no
17489 hardcode_automatic_GCJ=yes
17490 hardcode_shlibpath_var_GCJ=unsupported
17491 whole_archive_flag_spec_GCJ=''
17492 link_all_deplibs_GCJ=yes
17493 if test "$GCC" = yes ; then
17494 output_verbose_link_cmd='echo'
17495 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17496 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17497 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17498 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17499 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}'
17501 case $cc_basename in
17503 output_verbose_link_cmd='echo'
17504 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17505 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17506 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17507 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17508 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}'
17518 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17519 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17520 hardcode_shlibpath_var_GCJ=no
17527 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17528 # support. Future versions do this automatically, but an explicit c++rt0.o
17529 # does not break anything, and helps significantly (at the cost of a little
17532 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17533 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17534 hardcode_direct_GCJ=yes
17535 hardcode_shlibpath_var_GCJ=no
17538 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17540 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17541 hardcode_direct_GCJ=yes
17542 hardcode_minus_L_GCJ=yes
17543 hardcode_shlibpath_var_GCJ=no
17546 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17547 freebsd* | dragonfly*)
17548 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17549 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17550 hardcode_direct_GCJ=yes
17551 hardcode_shlibpath_var_GCJ=no
17555 if test "$GCC" = yes; then
17556 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'
17558 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'
17560 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17561 hardcode_libdir_separator_GCJ=:
17562 hardcode_direct_GCJ=yes
17564 # hardcode_minus_L: Not really in the search PATH,
17565 # but as the default location of the library.
17566 hardcode_minus_L_GCJ=yes
17567 export_dynamic_flag_spec_GCJ='${wl}-E'
17571 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17572 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17574 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17576 if test "$with_gnu_ld" = no; then
17577 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17578 hardcode_libdir_separator_GCJ=:
17580 hardcode_direct_GCJ=yes
17581 export_dynamic_flag_spec_GCJ='${wl}-E'
17583 # hardcode_minus_L: Not really in the search PATH,
17584 # but as the default location of the library.
17585 hardcode_minus_L_GCJ=yes
17590 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17593 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17596 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17599 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17605 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17608 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17611 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17615 if test "$with_gnu_ld" = no; then
17616 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17617 hardcode_libdir_separator_GCJ=:
17621 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17622 hardcode_direct_GCJ=no
17623 hardcode_shlibpath_var_GCJ=no
17626 hardcode_direct_GCJ=yes
17627 export_dynamic_flag_spec_GCJ='${wl}-E'
17629 # hardcode_minus_L: Not really in the search PATH,
17630 # but as the default location of the library.
17631 hardcode_minus_L_GCJ=yes
17637 irix5* | irix6* | nonstopux*)
17638 if test "$GCC" = yes; then
17639 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'
17641 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'
17642 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17644 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17645 hardcode_libdir_separator_GCJ=:
17646 link_all_deplibs_GCJ=yes
17649 netbsd* | netbsdelf*-gnu)
17650 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17651 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17653 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17655 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17656 hardcode_direct_GCJ=yes
17657 hardcode_shlibpath_var_GCJ=no
17661 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17662 hardcode_direct_GCJ=yes
17663 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17664 hardcode_libdir_separator_GCJ=:
17665 hardcode_shlibpath_var_GCJ=no
17669 hardcode_direct_GCJ=yes
17670 hardcode_shlibpath_var_GCJ=no
17671 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17672 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17673 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17674 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17675 export_dynamic_flag_spec_GCJ='${wl}-E'
17678 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17679 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17680 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17683 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17684 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17691 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17692 hardcode_minus_L_GCJ=yes
17693 allow_undefined_flag_GCJ=unsupported
17694 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'
17695 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17699 if test "$GCC" = yes; then
17700 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17701 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'
17703 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17704 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'
17706 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17707 hardcode_libdir_separator_GCJ=:
17710 osf4* | osf5*) # as osf3* with the addition of -msym flag
17711 if test "$GCC" = yes; then
17712 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17713 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'
17714 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17716 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17717 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'
17718 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~
17719 $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'
17721 # Both c and cxx compiler support -rpath directly
17722 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17724 hardcode_libdir_separator_GCJ=:
17728 no_undefined_flag_GCJ=' -z text'
17729 if test "$GCC" = yes; then
17731 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17732 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17733 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17736 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17737 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17738 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17740 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17741 hardcode_shlibpath_var_GCJ=no
17743 solaris2.[0-5] | solaris2.[0-5].*) ;;
17745 # The compiler driver will combine linker options so we
17746 # cannot just pass the convience library names through
17747 # without $wl, iff we do not link with $LD.
17748 # Luckily, gcc supports the same syntax we need for Sun Studio.
17749 # Supported since Solaris 2.6 (maybe 2.5.1?)
17752 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17754 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17757 link_all_deplibs_GCJ=yes
17761 if test "x$host_vendor" = xsequent; then
17762 # Use $CC to link under sequent, because it throws in some extra .o
17763 # files that make .init and .fini sections work.
17764 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17766 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17768 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17769 hardcode_direct_GCJ=yes
17770 hardcode_minus_L_GCJ=yes
17771 hardcode_shlibpath_var_GCJ=no
17775 case $host_vendor in
17777 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17778 hardcode_direct_GCJ=yes # is this really true???
17781 ## LD is ld it makes a PLAMLIB
17782 ## CC just makes a GrossModule.
17783 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17784 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17785 hardcode_direct_GCJ=no
17788 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17789 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17792 runpath_var='LD_RUN_PATH'
17793 hardcode_shlibpath_var_GCJ=no
17797 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17798 hardcode_shlibpath_var_GCJ=no
17799 export_dynamic_flag_spec_GCJ='-Bexport'
17803 if test -d /usr/nec; then
17804 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17805 hardcode_shlibpath_var_GCJ=no
17806 runpath_var=LD_RUN_PATH
17807 hardcode_runpath_var=yes
17812 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17813 no_undefined_flag_GCJ='${wl}-z,text'
17814 archive_cmds_need_lc_GCJ=no
17815 hardcode_shlibpath_var_GCJ=no
17816 runpath_var='LD_RUN_PATH'
17818 if test "$GCC" = yes; then
17819 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17820 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17822 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17823 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17827 sysv5* | sco3.2v5* | sco5v6*)
17828 # Note: We can NOT use -z defs as we might desire, because we do not
17829 # link with -lc, and that would cause any symbols used from libc to
17830 # always be unresolved, which means just about no library would
17831 # ever link correctly. If we're not using GNU ld we use -z text
17832 # though, which does catch some bad symbols but isn't as heavy-handed
17834 no_undefined_flag_GCJ='${wl}-z,text'
17835 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17836 archive_cmds_need_lc_GCJ=no
17837 hardcode_shlibpath_var_GCJ=no
17838 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17839 hardcode_libdir_separator_GCJ=':'
17840 link_all_deplibs_GCJ=yes
17841 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17842 runpath_var='LD_RUN_PATH'
17844 if test "$GCC" = yes; then
17845 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17846 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17848 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17849 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17854 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17855 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17856 hardcode_shlibpath_var_GCJ=no
17865 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17866 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17867 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17870 # Do we need to explicitly link libc?
17872 case "x$archive_cmds_need_lc_GCJ" in
17874 # Assume -lc should be added
17875 archive_cmds_need_lc_GCJ=yes
17877 if test "$enable_shared" = yes && test "$GCC" = yes; then
17878 case $archive_cmds_GCJ in
17880 # FIXME: we may have to deal with multi-command sequences.
17883 # Test whether the compiler implicitly links with -lc since on some
17884 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17885 # to ld, don't add -lc before -lgcc.
17886 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17887 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17889 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17892 (eval $ac_compile) 2>&5
17894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); } 2>conftest.err; then
17898 libobjs=conftest.$ac_objext
17900 wl=$lt_prog_compiler_wl_GCJ
17901 pic_flag=$lt_prog_compiler_pic_GCJ
17907 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17908 allow_undefined_flag_GCJ=
17909 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17910 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17913 (exit $ac_status); }
17915 archive_cmds_need_lc_GCJ=no
17917 archive_cmds_need_lc_GCJ=yes
17919 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17921 cat conftest.err 1>&5
17924 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17925 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17932 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17933 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17934 library_names_spec=
17935 libname_spec='lib$name'
17939 postuninstall_cmds=
17943 shlibpath_overrides_runpath=unknown
17945 dynamic_linker="$host_os ld.so"
17946 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17947 if test "$GCC" = yes; then
17948 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17949 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17950 # if the path contains ";" then we assume it to be the separator
17951 # otherwise default to the standard path separator (i.e. ":") - it is
17952 # assumed that no part of a normal pathname contains ";" but that should
17953 # okay in the real world where ";" in dirpaths is itself problematic.
17954 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17956 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17959 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17961 need_lib_prefix=unknown
17962 hardcode_into_libs=no
17964 # when you set need_version to no, make sure it does not cause -set_version
17965 # flags to be left without arguments
17966 need_version=unknown
17971 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17972 shlibpath_var=LIBPATH
17974 # AIX 3 has no versioning support, so we append a major version to the name.
17975 soname_spec='${libname}${release}${shared_ext}$major'
17982 hardcode_into_libs=yes
17983 if test "$host_cpu" = ia64; then
17984 # AIX 5 supports IA64
17985 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17986 shlibpath_var=LD_LIBRARY_PATH
17988 # With GCC up to 2.95.x, collect2 would create an import file
17989 # for dependence libraries. The import file would start with
17990 # the line `#! .'. This would cause the generated library to
17991 # depend on `.', always an invalid library. This was fixed in
17992 # development snapshots of GCC prior to 3.0.
17994 aix4 | aix4.[01] | aix4.[01].*)
17995 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17997 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18000 can_build_shared=no
18004 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18005 # soname into executable. Probably we can add versioning support to
18006 # collect2, so additional links can be useful in future.
18007 if test "$aix_use_runtimelinking" = yes; then
18008 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18009 # instead of lib<name>.a to let people know that these are not
18010 # typical AIX shared libraries.
18011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18013 # We preserve .a as extension for shared libraries through AIX4.2
18014 # and later when we are not doing run time linking.
18015 library_names_spec='${libname}${release}.a $libname.a'
18016 soname_spec='${libname}${release}${shared_ext}$major'
18018 shlibpath_var=LIBPATH
18023 library_names_spec='$libname.ixlibrary $libname.a'
18024 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18025 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'
18029 library_names_spec='${libname}${shared_ext}'
18030 dynamic_linker="$host_os ld.so"
18031 shlibpath_var=LIBRARY_PATH
18037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18038 soname_spec='${libname}${release}${shared_ext}$major'
18039 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18040 shlibpath_var=LD_LIBRARY_PATH
18041 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18042 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18043 # the default ld.so.conf also contains /usr/contrib/lib and
18044 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18045 # libtool to hard-code these into programs
18048 cygwin* | mingw* | pw32*)
18049 version_type=windows
18054 case $GCC,$host_os in
18055 yes,cygwin* | yes,mingw* | yes,pw32*)
18056 library_names_spec='$libname.dll.a'
18057 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18058 postinstall_cmds='base_file=`basename \${file}`~
18059 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18060 dldir=$destdir/`dirname \$dlpath`~
18061 test -d \$dldir || mkdir -p \$dldir~
18062 $install_prog $dir/$dlname \$dldir/$dlname~
18063 chmod a+x \$dldir/$dlname'
18064 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18065 dlpath=$dir/\$dldll~
18067 shlibpath_overrides_runpath=yes
18071 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18072 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18073 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18076 # MinGW DLLs use traditional 'lib' prefix
18077 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18078 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18079 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18080 # It is most probably a Windows format PATH printed by
18081 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18082 # path with ; separators, and with drive letters. We can handle the
18083 # drive letters (cygwin fileutils understands them), so leave them,
18084 # especially as we might pass files found there to a mingw objdump,
18085 # which wouldn't understand a cygwinified path. Ahh.
18086 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18088 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18092 # pw32 DLLs use 'pw' prefix rather than 'lib'
18093 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18099 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18102 dynamic_linker='Win32 ld.exe'
18103 # FIXME: first we should search . and the directory the executable is in
18107 darwin* | rhapsody*)
18108 dynamic_linker="$host_os dyld"
18109 version_type=darwin
18112 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18113 soname_spec='${libname}${release}${major}$shared_ext'
18114 shlibpath_overrides_runpath=yes
18115 shlibpath_var=DYLD_LIBRARY_PATH
18116 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18117 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18118 if test "$GCC" = yes; then
18119 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18121 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18123 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18131 soname_spec='${libname}${release}${shared_ext}$major'
18132 shlibpath_var=LD_LIBRARY_PATH
18139 freebsd* | dragonfly*)
18140 # DragonFly does not have aout. When/if they implement a new
18141 # versioning mechanism, adjust this.
18142 if test -x /usr/bin/objformat; then
18143 objformat=`/usr/bin/objformat`
18146 freebsd[123]*) objformat=aout ;;
18147 *) objformat=elf ;;
18150 version_type=freebsd-$objformat
18151 case $version_type in
18153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18158 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18162 shlibpath_var=LD_LIBRARY_PATH
18165 shlibpath_overrides_runpath=yes
18167 freebsd3.[01]* | freebsdelf3.[01]*)
18168 shlibpath_overrides_runpath=yes
18169 hardcode_into_libs=yes
18171 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18172 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18173 shlibpath_overrides_runpath=no
18174 hardcode_into_libs=yes
18176 freebsd*) # from 4.6 on
18177 shlibpath_overrides_runpath=yes
18178 hardcode_into_libs=yes
18187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18188 soname_spec='${libname}${release}${shared_ext}$major'
18189 shlibpath_var=LD_LIBRARY_PATH
18190 hardcode_into_libs=yes
18193 hpux9* | hpux10* | hpux11*)
18194 # Give a soname corresponding to the major version so that dld.sl refuses to
18195 # link against other versions.
18202 hardcode_into_libs=yes
18203 dynamic_linker="$host_os dld.so"
18204 shlibpath_var=LD_LIBRARY_PATH
18205 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18207 soname_spec='${libname}${release}${shared_ext}$major'
18208 if test "X$HPUX_IA64_MODE" = X32; then
18209 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18211 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18213 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18217 hardcode_into_libs=yes
18218 dynamic_linker="$host_os dld.sl"
18219 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18220 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18222 soname_spec='${libname}${release}${shared_ext}$major'
18223 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18224 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18228 dynamic_linker="$host_os dld.sl"
18229 shlibpath_var=SHLIB_PATH
18230 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18232 soname_spec='${libname}${release}${shared_ext}$major'
18235 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18236 postinstall_cmds='chmod 555 $lib'
18243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18244 soname_spec='${libname}${release}${shared_ext}$major'
18245 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18246 shlibpath_var=LD_LIBRARY_PATH
18247 shlibpath_overrides_runpath=no
18248 hardcode_into_libs=yes
18251 irix5* | irix6* | nonstopux*)
18253 nonstopux*) version_type=nonstopux ;;
18255 if test "$lt_cv_prog_gnu_ld" = yes; then
18263 soname_spec='${libname}${release}${shared_ext}$major'
18264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18266 irix5* | nonstopux*)
18267 libsuff= shlibsuff=
18270 case $LD in # libtool.m4 will add one of these switches to LD
18271 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18272 libsuff= shlibsuff= libmagic=32-bit;;
18273 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18274 libsuff=32 shlibsuff=N32 libmagic=N32;;
18275 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18276 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18277 *) libsuff= shlibsuff= libmagic=never-match;;
18281 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18282 shlibpath_overrides_runpath=no
18283 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18284 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18285 hardcode_into_libs=yes
18288 # No shared lib support for Linux oldld, aout, or coff.
18289 linux*oldld* | linux*aout* | linux*coff*)
18293 # This must be Linux ELF.
18294 linux* | k*bsd*-gnu)
18298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18299 soname_spec='${libname}${release}${shared_ext}$major'
18300 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18301 shlibpath_var=LD_LIBRARY_PATH
18302 shlibpath_overrides_runpath=no
18303 # This implies no fast_install, which is unacceptable.
18304 # Some rework will be needed to allow for fast_install
18305 # before this can be enabled.
18306 hardcode_into_libs=yes
18308 # Append ld.so.conf contents to the search path
18309 if test -f /etc/ld.so.conf; then
18310 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18311 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18314 # We used to test for /lib/ld.so.1 and disable shared libraries on
18315 # powerpc, because MkLinux only supported shared libraries with the
18316 # GNU dynamic linker. Since this was broken with cross compilers,
18317 # most powerpc-linux boxes support dynamic linking these days and
18318 # people can always --disable-shared, the test was removed, and we
18319 # assume the GNU/Linux dynamic linker is in use.
18320 dynamic_linker='GNU/Linux ld.so'
18327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18328 soname_spec='${libname}${release}${shared_ext}$major'
18329 shlibpath_var=LD_LIBRARY_PATH
18330 shlibpath_overrides_runpath=no
18331 hardcode_into_libs=yes
18332 dynamic_linker='NetBSD ld.elf_so'
18339 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18341 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18342 dynamic_linker='NetBSD (a.out) ld.so'
18344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18345 soname_spec='${libname}${release}${shared_ext}$major'
18346 dynamic_linker='NetBSD ld.elf_so'
18348 shlibpath_var=LD_LIBRARY_PATH
18349 shlibpath_overrides_runpath=yes
18350 hardcode_into_libs=yes
18355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18356 shlibpath_var=LD_LIBRARY_PATH
18357 shlibpath_overrides_runpath=yes
18364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18365 soname_spec='${libname}${release}${shared_ext}$major'
18366 shlibpath_var=LD_LIBRARY_PATH
18367 shlibpath_overrides_runpath=yes
18372 sys_lib_dlsearch_path_spec="/usr/lib"
18374 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18376 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18377 *) need_version=no ;;
18379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18380 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18381 shlibpath_var=LD_LIBRARY_PATH
18382 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18384 openbsd2.[89] | openbsd2.[89].*)
18385 shlibpath_overrides_runpath=no
18388 shlibpath_overrides_runpath=yes
18392 shlibpath_overrides_runpath=yes
18397 libname_spec='$name'
18400 library_names_spec='$libname${shared_ext} $libname.a'
18401 dynamic_linker='OS/2 ld.exe'
18402 shlibpath_var=LIBPATH
18405 osf3* | osf4* | osf5*)
18409 soname_spec='${libname}${release}${shared_ext}$major'
18410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18411 shlibpath_var=LD_LIBRARY_PATH
18412 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18413 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18421 soname_spec='${libname}${release}${shared_ext}$major'
18422 shlibpath_var=LD_LIBRARY_PATH
18423 shlibpath_overrides_runpath=yes
18424 hardcode_into_libs=yes
18425 # ldd complains unless libraries are executable
18426 postinstall_cmds='chmod +x $lib'
18431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18432 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18433 shlibpath_var=LD_LIBRARY_PATH
18434 shlibpath_overrides_runpath=yes
18435 if test "$with_gnu_ld" = yes; then
18443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18444 soname_spec='${libname}${release}${shared_ext}$major'
18445 shlibpath_var=LD_LIBRARY_PATH
18446 case $host_vendor in
18448 shlibpath_overrides_runpath=no
18450 export_dynamic_flag_spec='${wl}-Blargedynsym'
18451 runpath_var=LD_RUN_PATH
18459 shlibpath_overrides_runpath=no
18460 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18466 if test -d /usr/nec ;then
18468 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18469 soname_spec='$libname${shared_ext}.$major'
18470 shlibpath_var=LD_LIBRARY_PATH
18474 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18475 version_type=freebsd-elf
18478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18479 soname_spec='${libname}${release}${shared_ext}$major'
18480 shlibpath_var=LD_LIBRARY_PATH
18481 hardcode_into_libs=yes
18482 if test "$with_gnu_ld" = yes; then
18483 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18484 shlibpath_overrides_runpath=no
18486 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18487 shlibpath_overrides_runpath=yes
18490 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18494 sys_lib_dlsearch_path_spec='/usr/lib'
18499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18500 soname_spec='${libname}${release}${shared_ext}$major'
18501 shlibpath_var=LD_LIBRARY_PATH
18508 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18509 echo "${ECHO_T}$dynamic_linker" >&6; }
18510 test "$dynamic_linker" = no && can_build_shared=no
18512 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18513 if test "$GCC" = yes; then
18514 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18517 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18518 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18519 hardcode_action_GCJ=
18520 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18521 test -n "$runpath_var_GCJ" || \
18522 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18524 # We can hardcode non-existant directories.
18525 if test "$hardcode_direct_GCJ" != no &&
18526 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18527 # have to relink, otherwise we might link with an installed library
18528 # when we should be linking with a yet-to-be-installed one
18529 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18530 test "$hardcode_minus_L_GCJ" != no; then
18531 # Linking always hardcodes the temporary library directory.
18532 hardcode_action_GCJ=relink
18534 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18535 hardcode_action_GCJ=immediate
18538 # We cannot hardcode anything, or else we can only hardcode existing
18540 hardcode_action_GCJ=unsupported
18542 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18543 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18545 if test "$hardcode_action_GCJ" = relink; then
18546 # Fast installation is not supported
18547 enable_fast_install=no
18548 elif test "$shlibpath_overrides_runpath" = yes ||
18549 test "$enable_shared" = no; then
18550 # Fast installation is not necessary
18551 enable_fast_install=needless
18555 # The else clause should only fire when bootstrapping the
18556 # libtool distribution, otherwise you forgot to ship ltmain.sh
18557 # with your package, and you will get complaints that there are
18558 # no rules to generate ltmain.sh.
18559 if test -f "$ltmain"; then
18560 # See if we are running on zsh, and set the options which allow our commands through
18561 # without removal of \ escapes.
18562 if test -n "${ZSH_VERSION+set}" ; then
18563 setopt NO_GLOB_SUBST
18565 # Now quote all the things that may contain metacharacters while being
18566 # careful not to overquote the AC_SUBSTed values. We take copies of the
18567 # variables and quote the copies for generation of the libtool script.
18568 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18570 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18571 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18572 deplibs_check_method reload_flag reload_cmds need_locks \
18573 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18574 lt_cv_sys_global_symbol_to_c_name_address \
18575 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18576 old_postinstall_cmds old_postuninstall_cmds \
18580 lt_prog_compiler_wl_GCJ \
18581 lt_prog_compiler_pic_GCJ \
18582 lt_prog_compiler_static_GCJ \
18583 lt_prog_compiler_no_builtin_flag_GCJ \
18584 export_dynamic_flag_spec_GCJ \
18585 thread_safe_flag_spec_GCJ \
18586 whole_archive_flag_spec_GCJ \
18587 enable_shared_with_static_runtimes_GCJ \
18588 old_archive_cmds_GCJ \
18589 old_archive_from_new_cmds_GCJ \
18590 predep_objects_GCJ \
18591 postdep_objects_GCJ \
18594 compiler_lib_search_path_GCJ \
18596 archive_expsym_cmds_GCJ \
18597 postinstall_cmds_GCJ \
18598 postuninstall_cmds_GCJ \
18599 old_archive_from_expsyms_cmds_GCJ \
18600 allow_undefined_flag_GCJ \
18601 no_undefined_flag_GCJ \
18602 export_symbols_cmds_GCJ \
18603 hardcode_libdir_flag_spec_GCJ \
18604 hardcode_libdir_flag_spec_ld_GCJ \
18605 hardcode_libdir_separator_GCJ \
18606 hardcode_automatic_GCJ \
18608 module_expsym_cmds_GCJ \
18609 lt_cv_prog_compiler_c_o_GCJ \
18610 exclude_expsyms_GCJ \
18611 include_expsyms_GCJ; do
18614 old_archive_cmds_GCJ | \
18615 old_archive_from_new_cmds_GCJ | \
18616 archive_cmds_GCJ | \
18617 archive_expsym_cmds_GCJ | \
18618 module_cmds_GCJ | \
18619 module_expsym_cmds_GCJ | \
18620 old_archive_from_expsyms_cmds_GCJ | \
18621 export_symbols_cmds_GCJ | \
18622 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18623 postinstall_cmds | postuninstall_cmds | \
18624 old_postinstall_cmds | old_postuninstall_cmds | \
18625 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18626 # Double-quote double-evaled strings.
18627 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18630 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18636 *'\$0 --fallback-echo"')
18637 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18643 cat <<__EOF__ >> "$cfgfile"
18644 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18646 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18648 # Shell to use when invoking shell scripts.
18651 # Whether or not to build shared libraries.
18652 build_libtool_libs=$enable_shared
18654 # Whether or not to build static libraries.
18655 build_old_libs=$enable_static
18657 # Whether or not to add -lc for building shared libraries.
18658 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18660 # Whether or not to disallow shared libs when runtime libs are static
18661 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18663 # Whether or not to optimize for fast installation.
18664 fast_install=$enable_fast_install
18667 host_alias=$host_alias
18671 # The build system.
18672 build_alias=$build_alias
18676 # An echo program that does not interpret backslashes.
18681 AR_FLAGS=$lt_AR_FLAGS
18686 # LTCC compiler flags.
18687 LTCFLAGS=$lt_LTCFLAGS
18689 # A language-specific compiler.
18690 CC=$lt_compiler_GCJ
18692 # Is the compiler the GNU C compiler?
18698 # The linker used to build libraries.
18701 # Whether we need hard or soft links.
18704 # A BSD-compatible nm program.
18707 # A symbol stripping program
18710 # Used to examine libraries when file_magic_cmd begins "file"
18711 MAGIC_CMD=$MAGIC_CMD
18713 # Used on cygwin: DLL creation program.
18716 # Used on cygwin: object dumper.
18719 # Used on cygwin: assembler.
18722 # The name of the directory that contains temporary libtool files.
18725 # How to create reloadable object files.
18726 reload_flag=$lt_reload_flag
18727 reload_cmds=$lt_reload_cmds
18729 # How to pass a linker flag through the compiler.
18730 wl=$lt_lt_prog_compiler_wl_GCJ
18732 # Object file suffix (normally "o").
18733 objext="$ac_objext"
18735 # Old archive suffix (normally "a").
18738 # Shared library suffix (normally ".so").
18739 shrext_cmds='$shrext_cmds'
18741 # Executable file suffix (normally "").
18744 # Additional compiler flags for building library objects.
18745 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18748 # What is the maximum length of a command?
18749 max_cmd_len=$lt_cv_sys_max_cmd_len
18751 # Does compiler simultaneously support -c and -o options?
18752 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18754 # Must we lock files when doing compilation?
18755 need_locks=$lt_need_locks
18757 # Do we need the lib prefix for modules?
18758 need_lib_prefix=$need_lib_prefix
18760 # Do we need a version for libraries?
18761 need_version=$need_version
18763 # Whether dlopen is supported.
18764 dlopen_support=$enable_dlopen
18766 # Whether dlopen of programs is supported.
18767 dlopen_self=$enable_dlopen_self
18769 # Whether dlopen of statically linked programs is supported.
18770 dlopen_self_static=$enable_dlopen_self_static
18772 # Compiler flag to prevent dynamic linking.
18773 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18775 # Compiler flag to turn off builtin functions.
18776 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18778 # Compiler flag to allow reflexive dlopens.
18779 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18781 # Compiler flag to generate shared objects directly from archives.
18782 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18784 # Compiler flag to generate thread-safe objects.
18785 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18787 # Library versioning type.
18788 version_type=$version_type
18790 # Format of library name prefix.
18791 libname_spec=$lt_libname_spec
18793 # List of archive names. First name is the real one, the rest are links.
18794 # The last name is the one that the linker finds with -lNAME.
18795 library_names_spec=$lt_library_names_spec
18797 # The coded name of the library, if different from the real name.
18798 soname_spec=$lt_soname_spec
18800 # Commands used to build and install an old-style archive.
18802 old_archive_cmds=$lt_old_archive_cmds_GCJ
18803 old_postinstall_cmds=$lt_old_postinstall_cmds
18804 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18806 # Create an old-style archive from a shared archive.
18807 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18809 # Create a temporary old-style archive to link instead of a shared archive.
18810 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18812 # Commands used to build and install a shared archive.
18813 archive_cmds=$lt_archive_cmds_GCJ
18814 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18815 postinstall_cmds=$lt_postinstall_cmds
18816 postuninstall_cmds=$lt_postuninstall_cmds
18818 # Commands used to build a loadable module (assumed same as above if empty)
18819 module_cmds=$lt_module_cmds_GCJ
18820 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18822 # Commands to strip libraries.
18823 old_striplib=$lt_old_striplib
18824 striplib=$lt_striplib
18826 # Dependencies to place before the objects being linked to create a
18828 predep_objects=$lt_predep_objects_GCJ
18830 # Dependencies to place after the objects being linked to create a
18832 postdep_objects=$lt_postdep_objects_GCJ
18834 # Dependencies to place before the objects being linked to create a
18836 predeps=$lt_predeps_GCJ
18838 # Dependencies to place after the objects being linked to create a
18840 postdeps=$lt_postdeps_GCJ
18842 # The library search path used internally by the compiler when linking
18843 # a shared library.
18844 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18846 # Method to check whether dependent libraries are shared objects.
18847 deplibs_check_method=$lt_deplibs_check_method
18849 # Command to use when deplibs_check_method == file_magic.
18850 file_magic_cmd=$lt_file_magic_cmd
18852 # Flag that allows shared libraries with undefined symbols to be built.
18853 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18855 # Flag that forces no undefined symbols.
18856 no_undefined_flag=$lt_no_undefined_flag_GCJ
18858 # Commands used to finish a libtool library installation in a directory.
18859 finish_cmds=$lt_finish_cmds
18861 # Same as above, but a single script fragment to be evaled but not shown.
18862 finish_eval=$lt_finish_eval
18864 # Take the output of nm and produce a listing of raw symbols and C names.
18865 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18867 # Transform the output of nm in a proper C declaration
18868 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18870 # Transform the output of nm in a C name address pair
18871 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18873 # This is the shared library runtime path variable.
18874 runpath_var=$runpath_var
18876 # This is the shared library path variable.
18877 shlibpath_var=$shlibpath_var
18879 # Is shlibpath searched before the hard-coded library search path?
18880 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18882 # How to hardcode a shared library path into an executable.
18883 hardcode_action=$hardcode_action_GCJ
18885 # Whether we should hardcode library paths into libraries.
18886 hardcode_into_libs=$hardcode_into_libs
18888 # Flag to hardcode \$libdir into a binary during linking.
18889 # This must work even if \$libdir does not exist.
18890 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18892 # If ld is used when linking, flag to hardcode \$libdir into
18893 # a binary during linking. This must work even if \$libdir does
18895 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18897 # Whether we need a single -rpath flag with a separated argument.
18898 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18900 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18901 # resulting binary.
18902 hardcode_direct=$hardcode_direct_GCJ
18904 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18905 # resulting binary.
18906 hardcode_minus_L=$hardcode_minus_L_GCJ
18908 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18909 # the resulting binary.
18910 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18912 # Set to yes if building a shared library automatically hardcodes DIR into the library
18913 # and all subsequent libraries and executables linked against it.
18914 hardcode_automatic=$hardcode_automatic_GCJ
18916 # Variables whose values should be saved in libtool wrapper scripts and
18917 # restored at relink time.
18918 variables_saved_for_relink="$variables_saved_for_relink"
18920 # Whether libtool must link a program against all its dependency libraries.
18921 link_all_deplibs=$link_all_deplibs_GCJ
18923 # Compile-time system search path for libraries
18924 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18926 # Run-time system search path for libraries
18927 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18929 # Fix the shell variable \$srcfile for the compiler.
18930 fix_srcfile_path="$fix_srcfile_path_GCJ"
18932 # Set to yes if exported symbols are required.
18933 always_export_symbols=$always_export_symbols_GCJ
18935 # The commands to list exported symbols.
18936 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18938 # The commands to extract the exported symbol list from a shared archive.
18939 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18941 # Symbols that should not be listed in the preloaded symbols.
18942 exclude_expsyms=$lt_exclude_expsyms_GCJ
18944 # Symbols that must always be exported.
18945 include_expsyms=$lt_include_expsyms_GCJ
18947 # ### END LIBTOOL TAG CONFIG: $tagname
18953 # If there is no Makefile yet, we rely on a make rule to execute
18954 # `config.status --recheck' to rerun these tests and create the
18955 # libtool script then.
18956 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18957 if test -f "$ltmain_in"; then
18958 test -f Makefile && make "$ltmain"
18964 ac_cpp='$CPP $CPPFLAGS'
18965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18979 # Source file extension for RC test sources.
18982 # Object file extension for compiled RC test sources.
18986 # Code to be used in simple compile tests
18987 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18989 # Code to be used in simple link tests
18990 lt_simple_link_test_code="$lt_simple_compile_test_code"
18992 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18994 # If no C compiler was specified, use CC.
18997 # If no C compiler flags were specified, use CFLAGS.
18998 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19000 # Allow CC to be a program name with arguments.
19004 # save warnings/boilerplate of simple test code
19005 ac_outfile=conftest.$ac_objext
19006 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19007 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19008 _lt_compiler_boilerplate=`cat conftest.err`
19011 ac_outfile=conftest.$ac_objext
19012 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19013 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19014 _lt_linker_boilerplate=`cat conftest.err`
19018 # Allow CC to be a program name with arguments.
19023 for cc_temp in $compiler""; do
19025 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19026 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19031 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19033 lt_cv_prog_compiler_c_o_RC=yes
19035 # The else clause should only fire when bootstrapping the
19036 # libtool distribution, otherwise you forgot to ship ltmain.sh
19037 # with your package, and you will get complaints that there are
19038 # no rules to generate ltmain.sh.
19039 if test -f "$ltmain"; then
19040 # See if we are running on zsh, and set the options which allow our commands through
19041 # without removal of \ escapes.
19042 if test -n "${ZSH_VERSION+set}" ; then
19043 setopt NO_GLOB_SUBST
19045 # Now quote all the things that may contain metacharacters while being
19046 # careful not to overquote the AC_SUBSTed values. We take copies of the
19047 # variables and quote the copies for generation of the libtool script.
19048 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19050 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19051 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19052 deplibs_check_method reload_flag reload_cmds need_locks \
19053 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19054 lt_cv_sys_global_symbol_to_c_name_address \
19055 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19056 old_postinstall_cmds old_postuninstall_cmds \
19060 lt_prog_compiler_wl_RC \
19061 lt_prog_compiler_pic_RC \
19062 lt_prog_compiler_static_RC \
19063 lt_prog_compiler_no_builtin_flag_RC \
19064 export_dynamic_flag_spec_RC \
19065 thread_safe_flag_spec_RC \
19066 whole_archive_flag_spec_RC \
19067 enable_shared_with_static_runtimes_RC \
19068 old_archive_cmds_RC \
19069 old_archive_from_new_cmds_RC \
19070 predep_objects_RC \
19071 postdep_objects_RC \
19074 compiler_lib_search_path_RC \
19076 archive_expsym_cmds_RC \
19077 postinstall_cmds_RC \
19078 postuninstall_cmds_RC \
19079 old_archive_from_expsyms_cmds_RC \
19080 allow_undefined_flag_RC \
19081 no_undefined_flag_RC \
19082 export_symbols_cmds_RC \
19083 hardcode_libdir_flag_spec_RC \
19084 hardcode_libdir_flag_spec_ld_RC \
19085 hardcode_libdir_separator_RC \
19086 hardcode_automatic_RC \
19088 module_expsym_cmds_RC \
19089 lt_cv_prog_compiler_c_o_RC \
19090 exclude_expsyms_RC \
19091 include_expsyms_RC; do
19094 old_archive_cmds_RC | \
19095 old_archive_from_new_cmds_RC | \
19096 archive_cmds_RC | \
19097 archive_expsym_cmds_RC | \
19099 module_expsym_cmds_RC | \
19100 old_archive_from_expsyms_cmds_RC | \
19101 export_symbols_cmds_RC | \
19102 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19103 postinstall_cmds | postuninstall_cmds | \
19104 old_postinstall_cmds | old_postuninstall_cmds | \
19105 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19106 # Double-quote double-evaled strings.
19107 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19110 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19116 *'\$0 --fallback-echo"')
19117 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19123 cat <<__EOF__ >> "$cfgfile"
19124 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19126 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19128 # Shell to use when invoking shell scripts.
19131 # Whether or not to build shared libraries.
19132 build_libtool_libs=$enable_shared
19134 # Whether or not to build static libraries.
19135 build_old_libs=$enable_static
19137 # Whether or not to add -lc for building shared libraries.
19138 build_libtool_need_lc=$archive_cmds_need_lc_RC
19140 # Whether or not to disallow shared libs when runtime libs are static
19141 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19143 # Whether or not to optimize for fast installation.
19144 fast_install=$enable_fast_install
19147 host_alias=$host_alias
19151 # The build system.
19152 build_alias=$build_alias
19156 # An echo program that does not interpret backslashes.
19161 AR_FLAGS=$lt_AR_FLAGS
19166 # LTCC compiler flags.
19167 LTCFLAGS=$lt_LTCFLAGS
19169 # A language-specific compiler.
19172 # Is the compiler the GNU C compiler?
19178 # The linker used to build libraries.
19181 # Whether we need hard or soft links.
19184 # A BSD-compatible nm program.
19187 # A symbol stripping program
19190 # Used to examine libraries when file_magic_cmd begins "file"
19191 MAGIC_CMD=$MAGIC_CMD
19193 # Used on cygwin: DLL creation program.
19196 # Used on cygwin: object dumper.
19199 # Used on cygwin: assembler.
19202 # The name of the directory that contains temporary libtool files.
19205 # How to create reloadable object files.
19206 reload_flag=$lt_reload_flag
19207 reload_cmds=$lt_reload_cmds
19209 # How to pass a linker flag through the compiler.
19210 wl=$lt_lt_prog_compiler_wl_RC
19212 # Object file suffix (normally "o").
19213 objext="$ac_objext"
19215 # Old archive suffix (normally "a").
19218 # Shared library suffix (normally ".so").
19219 shrext_cmds='$shrext_cmds'
19221 # Executable file suffix (normally "").
19224 # Additional compiler flags for building library objects.
19225 pic_flag=$lt_lt_prog_compiler_pic_RC
19228 # What is the maximum length of a command?
19229 max_cmd_len=$lt_cv_sys_max_cmd_len
19231 # Does compiler simultaneously support -c and -o options?
19232 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19234 # Must we lock files when doing compilation?
19235 need_locks=$lt_need_locks
19237 # Do we need the lib prefix for modules?
19238 need_lib_prefix=$need_lib_prefix
19240 # Do we need a version for libraries?
19241 need_version=$need_version
19243 # Whether dlopen is supported.
19244 dlopen_support=$enable_dlopen
19246 # Whether dlopen of programs is supported.
19247 dlopen_self=$enable_dlopen_self
19249 # Whether dlopen of statically linked programs is supported.
19250 dlopen_self_static=$enable_dlopen_self_static
19252 # Compiler flag to prevent dynamic linking.
19253 link_static_flag=$lt_lt_prog_compiler_static_RC
19255 # Compiler flag to turn off builtin functions.
19256 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19258 # Compiler flag to allow reflexive dlopens.
19259 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19261 # Compiler flag to generate shared objects directly from archives.
19262 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19264 # Compiler flag to generate thread-safe objects.
19265 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19267 # Library versioning type.
19268 version_type=$version_type
19270 # Format of library name prefix.
19271 libname_spec=$lt_libname_spec
19273 # List of archive names. First name is the real one, the rest are links.
19274 # The last name is the one that the linker finds with -lNAME.
19275 library_names_spec=$lt_library_names_spec
19277 # The coded name of the library, if different from the real name.
19278 soname_spec=$lt_soname_spec
19280 # Commands used to build and install an old-style archive.
19282 old_archive_cmds=$lt_old_archive_cmds_RC
19283 old_postinstall_cmds=$lt_old_postinstall_cmds
19284 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19286 # Create an old-style archive from a shared archive.
19287 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19289 # Create a temporary old-style archive to link instead of a shared archive.
19290 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19292 # Commands used to build and install a shared archive.
19293 archive_cmds=$lt_archive_cmds_RC
19294 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19295 postinstall_cmds=$lt_postinstall_cmds
19296 postuninstall_cmds=$lt_postuninstall_cmds
19298 # Commands used to build a loadable module (assumed same as above if empty)
19299 module_cmds=$lt_module_cmds_RC
19300 module_expsym_cmds=$lt_module_expsym_cmds_RC
19302 # Commands to strip libraries.
19303 old_striplib=$lt_old_striplib
19304 striplib=$lt_striplib
19306 # Dependencies to place before the objects being linked to create a
19308 predep_objects=$lt_predep_objects_RC
19310 # Dependencies to place after the objects being linked to create a
19312 postdep_objects=$lt_postdep_objects_RC
19314 # Dependencies to place before the objects being linked to create a
19316 predeps=$lt_predeps_RC
19318 # Dependencies to place after the objects being linked to create a
19320 postdeps=$lt_postdeps_RC
19322 # The library search path used internally by the compiler when linking
19323 # a shared library.
19324 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19326 # Method to check whether dependent libraries are shared objects.
19327 deplibs_check_method=$lt_deplibs_check_method
19329 # Command to use when deplibs_check_method == file_magic.
19330 file_magic_cmd=$lt_file_magic_cmd
19332 # Flag that allows shared libraries with undefined symbols to be built.
19333 allow_undefined_flag=$lt_allow_undefined_flag_RC
19335 # Flag that forces no undefined symbols.
19336 no_undefined_flag=$lt_no_undefined_flag_RC
19338 # Commands used to finish a libtool library installation in a directory.
19339 finish_cmds=$lt_finish_cmds
19341 # Same as above, but a single script fragment to be evaled but not shown.
19342 finish_eval=$lt_finish_eval
19344 # Take the output of nm and produce a listing of raw symbols and C names.
19345 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19347 # Transform the output of nm in a proper C declaration
19348 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19350 # Transform the output of nm in a C name address pair
19351 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19353 # This is the shared library runtime path variable.
19354 runpath_var=$runpath_var
19356 # This is the shared library path variable.
19357 shlibpath_var=$shlibpath_var
19359 # Is shlibpath searched before the hard-coded library search path?
19360 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19362 # How to hardcode a shared library path into an executable.
19363 hardcode_action=$hardcode_action_RC
19365 # Whether we should hardcode library paths into libraries.
19366 hardcode_into_libs=$hardcode_into_libs
19368 # Flag to hardcode \$libdir into a binary during linking.
19369 # This must work even if \$libdir does not exist.
19370 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19372 # If ld is used when linking, flag to hardcode \$libdir into
19373 # a binary during linking. This must work even if \$libdir does
19375 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19377 # Whether we need a single -rpath flag with a separated argument.
19378 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19380 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19381 # resulting binary.
19382 hardcode_direct=$hardcode_direct_RC
19384 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19385 # resulting binary.
19386 hardcode_minus_L=$hardcode_minus_L_RC
19388 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19389 # the resulting binary.
19390 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19392 # Set to yes if building a shared library automatically hardcodes DIR into the library
19393 # and all subsequent libraries and executables linked against it.
19394 hardcode_automatic=$hardcode_automatic_RC
19396 # Variables whose values should be saved in libtool wrapper scripts and
19397 # restored at relink time.
19398 variables_saved_for_relink="$variables_saved_for_relink"
19400 # Whether libtool must link a program against all its dependency libraries.
19401 link_all_deplibs=$link_all_deplibs_RC
19403 # Compile-time system search path for libraries
19404 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19406 # Run-time system search path for libraries
19407 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19409 # Fix the shell variable \$srcfile for the compiler.
19410 fix_srcfile_path="$fix_srcfile_path_RC"
19412 # Set to yes if exported symbols are required.
19413 always_export_symbols=$always_export_symbols_RC
19415 # The commands to list exported symbols.
19416 export_symbols_cmds=$lt_export_symbols_cmds_RC
19418 # The commands to extract the exported symbol list from a shared archive.
19419 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19421 # Symbols that should not be listed in the preloaded symbols.
19422 exclude_expsyms=$lt_exclude_expsyms_RC
19424 # Symbols that must always be exported.
19425 include_expsyms=$lt_include_expsyms_RC
19427 # ### END LIBTOOL TAG CONFIG: $tagname
19433 # If there is no Makefile yet, we rely on a make rule to execute
19434 # `config.status --recheck' to rerun these tests and create the
19435 # libtool script then.
19436 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19437 if test -f "$ltmain_in"; then
19438 test -f Makefile && make "$ltmain"
19444 ac_cpp='$CPP $CPPFLAGS'
19445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19454 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19455 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19456 { (exit 1); exit 1; }; }
19460 # Append the new tag name to the list of available tags.
19461 if test -n "$tagname" ; then
19462 available_tags="$available_tags $tagname"
19468 # Now substitute the updated list of available tags.
19469 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19470 mv "${ofile}T" "$ofile"
19474 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19475 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19476 { (exit 1); exit 1; }; }
19482 # This can be used to rebuild libtool when needed
19483 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19485 # Always use our own libtool.
19486 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19488 # Prevent multiple expansion
19514 { echo "$as_me:$LINENO: result: " >&5
19515 echo "${ECHO_T}" >&6; }
19516 { echo "$as_me:$LINENO: result: ${T_MD}System checks...${T_ME}" >&5
19517 echo "${ECHO_T}${T_MD}System checks...${T_ME}" >&6; }
19520 ac_cpp='$CPP $CPPFLAGS'
19521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19524 if test -n "$ac_tool_prefix"; then
19525 for ac_prog in xlC gcc cc
19527 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19528 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19531 if test "${ac_cv_prog_CC+set}" = set; then
19532 echo $ECHO_N "(cached) $ECHO_C" >&6
19534 if test -n "$CC"; then
19535 ac_cv_prog_CC="$CC" # Let the user override the test.
19537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19538 for as_dir in $PATH
19541 test -z "$as_dir" && as_dir=.
19542 for ac_exec_ext in '' $ac_executable_extensions; do
19543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19544 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19555 if test -n "$CC"; then
19556 { echo "$as_me:$LINENO: result: $CC" >&5
19557 echo "${ECHO_T}$CC" >&6; }
19559 { echo "$as_me:$LINENO: result: no" >&5
19560 echo "${ECHO_T}no" >&6; }
19564 test -n "$CC" && break
19567 if test -z "$CC"; then
19569 for ac_prog in xlC gcc cc
19571 # Extract the first word of "$ac_prog", so it can be a program name with args.
19572 set dummy $ac_prog; ac_word=$2
19573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19575 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19576 echo $ECHO_N "(cached) $ECHO_C" >&6
19578 if test -n "$ac_ct_CC"; then
19579 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19582 for as_dir in $PATH
19585 test -z "$as_dir" && as_dir=.
19586 for ac_exec_ext in '' $ac_executable_extensions; do
19587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19588 ac_cv_prog_ac_ct_CC="$ac_prog"
19589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19598 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19599 if test -n "$ac_ct_CC"; then
19600 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19601 echo "${ECHO_T}$ac_ct_CC" >&6; }
19603 { echo "$as_me:$LINENO: result: no" >&5
19604 echo "${ECHO_T}no" >&6; }
19608 test -n "$ac_ct_CC" && break
19611 if test "x$ac_ct_CC" = x; then
19614 case $cross_compiling:$ac_tool_warned in
19616 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19617 whose name does not start with the host triplet. If you think this
19618 configuration is useful to you, please write to autoconf@gnu.org." >&5
19619 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19620 whose name does not start with the host triplet. If you think this
19621 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19622 ac_tool_warned=yes ;;
19629 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19630 See \`config.log' for more details." >&5
19631 echo "$as_me: error: no acceptable C compiler found in \$PATH
19632 See \`config.log' for more details." >&2;}
19633 { (exit 1); exit 1; }; }
19635 # Provide some information about the compiler.
19636 echo "$as_me:$LINENO: checking for C compiler version" >&5
19637 ac_compiler=`set X $ac_compile; echo $2`
19638 { (ac_try="$ac_compiler --version >&5"
19639 case "(($ac_try" in
19640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19641 *) ac_try_echo=$ac_try;;
19643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19644 (eval "$ac_compiler --version >&5") 2>&5
19646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647 (exit $ac_status); }
19648 { (ac_try="$ac_compiler -v >&5"
19649 case "(($ac_try" in
19650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19651 *) ac_try_echo=$ac_try;;
19653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19654 (eval "$ac_compiler -v >&5") 2>&5
19656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657 (exit $ac_status); }
19658 { (ac_try="$ac_compiler -V >&5"
19659 case "(($ac_try" in
19660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19661 *) ac_try_echo=$ac_try;;
19663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19664 (eval "$ac_compiler -V >&5") 2>&5
19666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667 (exit $ac_status); }
19669 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19670 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
19671 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19672 echo $ECHO_N "(cached) $ECHO_C" >&6
19674 cat >conftest.$ac_ext <<_ACEOF
19677 cat confdefs.h >>conftest.$ac_ext
19678 cat >>conftest.$ac_ext <<_ACEOF
19679 /* end confdefs.h. */
19692 rm -f conftest.$ac_objext
19693 if { (ac_try="$ac_compile"
19694 case "(($ac_try" in
19695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19696 *) ac_try_echo=$ac_try;;
19698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19699 (eval "$ac_compile") 2>conftest.er1
19701 grep -v '^ *+' conftest.er1 >conftest.err
19703 cat conftest.err >&5
19704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19705 (exit $ac_status); } && {
19706 test -z "$ac_c_werror_flag" ||
19707 test ! -s conftest.err
19708 } && test -s conftest.$ac_objext; then
19709 ac_compiler_gnu=yes
19711 echo "$as_me: failed program was:" >&5
19712 sed 's/^/| /' conftest.$ac_ext >&5
19717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19718 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19721 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19722 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
19723 GCC=`test $ac_compiler_gnu = yes && echo yes`
19724 ac_test_CFLAGS=${CFLAGS+set}
19725 ac_save_CFLAGS=$CFLAGS
19726 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19727 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
19728 if test "${ac_cv_prog_cc_g+set}" = set; then
19729 echo $ECHO_N "(cached) $ECHO_C" >&6
19731 ac_save_c_werror_flag=$ac_c_werror_flag
19732 ac_c_werror_flag=yes
19735 cat >conftest.$ac_ext <<_ACEOF
19738 cat confdefs.h >>conftest.$ac_ext
19739 cat >>conftest.$ac_ext <<_ACEOF
19740 /* end confdefs.h. */
19750 rm -f conftest.$ac_objext
19751 if { (ac_try="$ac_compile"
19752 case "(($ac_try" in
19753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19754 *) ac_try_echo=$ac_try;;
19756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19757 (eval "$ac_compile") 2>conftest.er1
19759 grep -v '^ *+' conftest.er1 >conftest.err
19761 cat conftest.err >&5
19762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19763 (exit $ac_status); } && {
19764 test -z "$ac_c_werror_flag" ||
19765 test ! -s conftest.err
19766 } && test -s conftest.$ac_objext; then
19767 ac_cv_prog_cc_g=yes
19769 echo "$as_me: failed program was:" >&5
19770 sed 's/^/| /' conftest.$ac_ext >&5
19773 cat >conftest.$ac_ext <<_ACEOF
19776 cat confdefs.h >>conftest.$ac_ext
19777 cat >>conftest.$ac_ext <<_ACEOF
19778 /* end confdefs.h. */
19788 rm -f conftest.$ac_objext
19789 if { (ac_try="$ac_compile"
19790 case "(($ac_try" in
19791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19792 *) ac_try_echo=$ac_try;;
19794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19795 (eval "$ac_compile") 2>conftest.er1
19797 grep -v '^ *+' conftest.er1 >conftest.err
19799 cat conftest.err >&5
19800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801 (exit $ac_status); } && {
19802 test -z "$ac_c_werror_flag" ||
19803 test ! -s conftest.err
19804 } && test -s conftest.$ac_objext; then
19807 echo "$as_me: failed program was:" >&5
19808 sed 's/^/| /' conftest.$ac_ext >&5
19810 ac_c_werror_flag=$ac_save_c_werror_flag
19812 cat >conftest.$ac_ext <<_ACEOF
19815 cat confdefs.h >>conftest.$ac_ext
19816 cat >>conftest.$ac_ext <<_ACEOF
19817 /* end confdefs.h. */
19827 rm -f conftest.$ac_objext
19828 if { (ac_try="$ac_compile"
19829 case "(($ac_try" in
19830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19831 *) ac_try_echo=$ac_try;;
19833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19834 (eval "$ac_compile") 2>conftest.er1
19836 grep -v '^ *+' conftest.er1 >conftest.err
19838 cat conftest.err >&5
19839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19840 (exit $ac_status); } && {
19841 test -z "$ac_c_werror_flag" ||
19842 test ! -s conftest.err
19843 } && test -s conftest.$ac_objext; then
19844 ac_cv_prog_cc_g=yes
19846 echo "$as_me: failed program was:" >&5
19847 sed 's/^/| /' conftest.$ac_ext >&5
19852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19859 ac_c_werror_flag=$ac_save_c_werror_flag
19861 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19862 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
19863 if test "$ac_test_CFLAGS" = set; then
19864 CFLAGS=$ac_save_CFLAGS
19865 elif test $ac_cv_prog_cc_g = yes; then
19866 if test "$GCC" = yes; then
19872 if test "$GCC" = yes; then
19878 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
19879 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
19880 if test "${ac_cv_prog_cc_c89+set}" = set; then
19881 echo $ECHO_N "(cached) $ECHO_C" >&6
19883 ac_cv_prog_cc_c89=no
19885 cat >conftest.$ac_ext <<_ACEOF
19888 cat confdefs.h >>conftest.$ac_ext
19889 cat >>conftest.$ac_ext <<_ACEOF
19890 /* end confdefs.h. */
19891 #include <stdarg.h>
19893 #include <sys/types.h>
19894 #include <sys/stat.h>
19895 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19896 struct buf { int x; };
19897 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19898 static char *e (p, i)
19904 static char *f (char * (*g) (char **, int), char **p, ...)
19909 s = g (p, va_arg (v,int));
19914 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19915 function prototypes and stuff, but not '\xHH' hex character constants.
19916 These don't provoke an error unfortunately, instead are silently treated
19917 as 'x'. The following induces an error, until -std is added to get
19918 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
19919 array size at least. It's necessary to write '\x00'==0 to get something
19920 that's true only with -std. */
19921 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19923 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
19924 inside strings and character constants. */
19926 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
19928 int test (int i, double x);
19929 struct s1 {int (*f) (int a);};
19930 struct s2 {int (*f) (double a);};
19931 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19937 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19942 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
19943 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19945 CC="$ac_save_CC $ac_arg"
19946 rm -f conftest.$ac_objext
19947 if { (ac_try="$ac_compile"
19948 case "(($ac_try" in
19949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19950 *) ac_try_echo=$ac_try;;
19952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19953 (eval "$ac_compile") 2>conftest.er1
19955 grep -v '^ *+' conftest.er1 >conftest.err
19957 cat conftest.err >&5
19958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19959 (exit $ac_status); } && {
19960 test -z "$ac_c_werror_flag" ||
19961 test ! -s conftest.err
19962 } && test -s conftest.$ac_objext; then
19963 ac_cv_prog_cc_c89=$ac_arg
19965 echo "$as_me: failed program was:" >&5
19966 sed 's/^/| /' conftest.$ac_ext >&5
19971 rm -f core conftest.err conftest.$ac_objext
19972 test "x$ac_cv_prog_cc_c89" != "xno" && break
19974 rm -f conftest.$ac_ext
19979 case "x$ac_cv_prog_cc_c89" in
19981 { echo "$as_me:$LINENO: result: none needed" >&5
19982 echo "${ECHO_T}none needed" >&6; } ;;
19984 { echo "$as_me:$LINENO: result: unsupported" >&5
19985 echo "${ECHO_T}unsupported" >&6; } ;;
19987 CC="$CC $ac_cv_prog_cc_c89"
19988 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
19989 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
19994 ac_cpp='$CPP $CPPFLAGS'
19995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19999 depcc="$CC" am_compiler_list=
20001 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20002 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
20003 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20004 echo $ECHO_N "(cached) $ECHO_C" >&6
20006 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20007 # We make a subdir and do the tests there. Otherwise we can end up
20008 # making bogus files that we don't know about and never remove. For
20009 # instance it was reported that on HP-UX the gcc test will end up
20010 # making a dummy file named `D' -- because `-MD' means `put the output
20013 # Copy depcomp to subdir because otherwise we won't find it if we're
20014 # using a relative directory.
20015 cp "$am_depcomp" conftest.dir
20017 # We will build objects and dependencies in a subdirectory because
20018 # it helps to detect inapplicable dependency modes. For instance
20019 # both Tru64's cc and ICC support -MD to output dependencies as a
20020 # side effect of compilation, but ICC will put the dependencies in
20021 # the current directory while Tru64 will put them in the object
20025 am_cv_CC_dependencies_compiler_type=none
20026 if test "$am_compiler_list" = ""; then
20027 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20029 for depmode in $am_compiler_list; do
20030 # Setup a source with many dependencies, because some compilers
20031 # like to wrap large dependency lists on column 80 (with \), and
20032 # we should not choose a depcomp mode which is confused by this.
20034 # We need to recreate these files for each test, as the compiler may
20035 # overwrite some of them when testing with obscure command lines.
20036 # This happens at least with the AIX C compiler.
20038 for i in 1 2 3 4 5 6; do
20039 echo '#include "conftst'$i'.h"' >> sub/conftest.c
20040 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20041 # Solaris 8's {/usr,}/bin/sh.
20042 touch sub/conftst$i.h
20044 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20048 # after this tag, mechanisms are not by side-effect, so they'll
20049 # only be used when explicitly requested
20050 if test "x$enable_dependency_tracking" = xyes; then
20058 # We check with `-c' and `-o' for the sake of the "dashmstdout"
20059 # mode. It turns out that the SunPro C++ compiler does not properly
20060 # handle `-M -o', and we need to detect this.
20061 if depmode=$depmode \
20062 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20063 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20064 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20065 >/dev/null 2>conftest.err &&
20066 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20067 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20068 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20069 # icc doesn't choke on unknown options, it will just issue warnings
20070 # or remarks (even with -Werror). So we grep stderr for any message
20071 # that says an option was ignored or not supported.
20072 # When given -MP, icc 7.0 and 7.1 complain thusly:
20073 # icc: Command line warning: ignoring option '-M'; no argument required
20074 # The diagnosis changed in icc 8.0:
20075 # icc: Command line remark: option '-MP' not supported
20076 if (grep 'ignoring option' conftest.err ||
20077 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20078 am_cv_CC_dependencies_compiler_type=$depmode
20085 rm -rf conftest.dir
20087 am_cv_CC_dependencies_compiler_type=none
20091 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20092 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
20093 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20098 test "x$enable_dependency_tracking" != xno \
20099 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20100 am__fastdepCC_TRUE=
20101 am__fastdepCC_FALSE='#'
20103 am__fastdepCC_TRUE='#'
20104 am__fastdepCC_FALSE=
20108 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
20109 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
20112 echo timestamp > conftest.file
20113 # Do `set' in a subshell so we don't clobber the current shell's
20114 # arguments. Must try -L first in case configure is actually a
20115 # symlink; some systems play weird games with the mod time of symlinks
20116 # (eg FreeBSD returns the mod time of the symlink's containing
20119 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
20120 if test "$*" = "X"; then
20122 set X `ls -t $srcdir/configure conftest.file`
20124 rm -f conftest.file
20125 if test "$*" != "X $srcdir/configure conftest.file" \
20126 && test "$*" != "X conftest.file $srcdir/configure"; then
20128 # If neither matched, then we have a broken ls. This can happen
20129 # if, for instance, CONFIG_SHELL is bash and it inherits a
20130 # broken ls alias from the environment. This has actually
20131 # happened. Such a system could not be considered "sane".
20132 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
20133 alias in your environment" >&5
20134 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
20135 alias in your environment" >&2;}
20136 { (exit 1); exit 1; }; }
20139 test "$2" = conftest.file
20145 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
20146 Check your system clock" >&5
20147 echo "$as_me: error: newly created file is older than distributed files!
20148 Check your system clock" >&2;}
20149 { (exit 1); exit 1; }; }
20151 { echo "$as_me:$LINENO: result: yes" >&5
20152 echo "${ECHO_T}yes" >&6; }
20153 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20154 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
20155 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
20156 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
20157 echo $ECHO_N "(cached) $ECHO_C" >&6
20159 cat >conftest.make <<\_ACEOF
20162 @echo '@@@%%%=$(MAKE)=@@@%%%'
20164 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20165 case `${MAKE-make} -f conftest.make 2>/dev/null` in
20166 *@@@%%%=?*=@@@%%%*)
20167 eval ac_cv_prog_make_${ac_make}_set=yes;;
20169 eval ac_cv_prog_make_${ac_make}_set=no;;
20171 rm -f conftest.make
20173 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
20174 { echo "$as_me:$LINENO: result: yes" >&5
20175 echo "${ECHO_T}yes" >&6; }
20178 { echo "$as_me:$LINENO: result: no" >&5
20179 echo "${ECHO_T}no" >&6; }
20180 SET_MAKE="MAKE=${MAKE-make}"
20184 { echo "$as_me:$LINENO: checking whether printf(\"%s\",NULL) works..." >&5
20185 echo $ECHO_N "checking whether printf(\"%s\",NULL) works...... $ECHO_C" >&6; }
20186 if test "$cross_compiling" = yes; then
20187 { echo "$as_me:$LINENO: result: assuming the worse in cross-compilation" >&5
20188 echo "${ECHO_T}assuming the worse in cross-compilation" >&6; }
20190 cat >conftest.$ac_ext <<_ACEOF
20193 cat confdefs.h >>conftest.$ac_ext
20194 cat >>conftest.$ac_ext <<_ACEOF
20195 /* end confdefs.h. */
20205 rm -f conftest$ac_exeext
20206 if { (ac_try="$ac_link"
20207 case "(($ac_try" in
20208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20209 *) ac_try_echo=$ac_try;;
20211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20212 (eval "$ac_link") 2>&5
20214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20216 { (case "(($ac_try" in
20217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20218 *) ac_try_echo=$ac_try;;
20220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20221 (eval "$ac_try") 2>&5
20223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20224 (exit $ac_status); }; }; then
20226 cat >>confdefs.h <<\_ACEOF
20227 #define PRINTF_NULL_WORKING 1
20230 { echo "$as_me:$LINENO: result: yes" >&5
20231 echo "${ECHO_T}yes" >&6; }
20233 echo "$as_me: program exited with status $ac_status" >&5
20234 echo "$as_me: failed program was:" >&5
20235 sed 's/^/| /' conftest.$ac_ext >&5
20237 ( exit $ac_status )
20238 { echo "$as_me:$LINENO: result: no" >&5
20239 echo "${ECHO_T}no" >&6; }
20241 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20247 { echo "$as_me:$LINENO: checking for va_copy() function" >&5
20248 echo $ECHO_N "checking for va_copy() function... $ECHO_C" >&6; }
20249 if test "${ac_cv_va_copy+set}" = set; then
20250 echo $ECHO_N "(cached) $ECHO_C" >&6
20257 if test ".$ac_cv_va_copy" = .; then
20258 if test "$cross_compiling" = yes; then
20259 ac_cv_va_copy="C99"
20261 cat >conftest.$ac_ext <<_ACEOF
20264 cat confdefs.h >>conftest.$ac_ext
20265 cat >>conftest.$ac_ext <<_ACEOF
20266 /* end confdefs.h. */
20268 #include <stdlib.h>
20269 #include <stdarg.h>
20270 #include <string.h>
20271 #define DO_VA_COPY(d, s) va_copy((d), (s))
20272 void test(char *str, ...)
20277 DO_VA_COPY(ap2, ap);
20278 for (i = 1; i <= 9; i++) {
20279 int k = (int)va_arg(ap, int);
20283 DO_VA_COPY(ap, ap2);
20284 for (i = 1; i <= 9; i++) {
20285 int k = (int)va_arg(ap, int);
20291 int main(int argc, char *argv[])
20293 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20298 rm -f conftest$ac_exeext
20299 if { (ac_try="$ac_link"
20300 case "(($ac_try" in
20301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20302 *) ac_try_echo=$ac_try;;
20304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20305 (eval "$ac_link") 2>&5
20307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20309 { (case "(($ac_try" in
20310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20311 *) ac_try_echo=$ac_try;;
20313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20314 (eval "$ac_try") 2>&5
20316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317 (exit $ac_status); }; }; then
20318 ac_cv_va_copy="C99"
20320 echo "$as_me: program exited with status $ac_status" >&5
20321 echo "$as_me: failed program was:" >&5
20322 sed 's/^/| /' conftest.$ac_ext >&5
20325 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20334 if test ".$ac_cv_va_copy" = .; then
20335 if test "$cross_compiling" = yes; then
20336 ac_cv_va_copy="GCM"
20338 cat >conftest.$ac_ext <<_ACEOF
20341 cat confdefs.h >>conftest.$ac_ext
20342 cat >>conftest.$ac_ext <<_ACEOF
20343 /* end confdefs.h. */
20345 #include <stdlib.h>
20346 #include <stdarg.h>
20347 #include <string.h>
20348 #define DO_VA_COPY(d, s) VA_COPY((d), (s))
20349 void test(char *str, ...)
20354 DO_VA_COPY(ap2, ap);
20355 for (i = 1; i <= 9; i++) {
20356 int k = (int)va_arg(ap, int);
20360 DO_VA_COPY(ap, ap2);
20361 for (i = 1; i <= 9; i++) {
20362 int k = (int)va_arg(ap, int);
20368 int main(int argc, char *argv[])
20370 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20375 rm -f conftest$ac_exeext
20376 if { (ac_try="$ac_link"
20377 case "(($ac_try" in
20378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20379 *) ac_try_echo=$ac_try;;
20381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20382 (eval "$ac_link") 2>&5
20384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20385 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20386 { (case "(($ac_try" in
20387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20388 *) ac_try_echo=$ac_try;;
20390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20391 (eval "$ac_try") 2>&5
20393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394 (exit $ac_status); }; }; then
20395 ac_cv_va_copy="GCM"
20397 echo "$as_me: program exited with status $ac_status" >&5
20398 echo "$as_me: failed program was:" >&5
20399 sed 's/^/| /' conftest.$ac_ext >&5
20402 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20411 if test ".$ac_cv_va_copy" = .; then
20412 if test "$cross_compiling" = yes; then
20413 ac_cv_va_copy="GCH"
20415 cat >conftest.$ac_ext <<_ACEOF
20418 cat confdefs.h >>conftest.$ac_ext
20419 cat >>conftest.$ac_ext <<_ACEOF
20420 /* end confdefs.h. */
20422 #include <stdlib.h>
20423 #include <stdarg.h>
20424 #include <string.h>
20425 #define DO_VA_COPY(d, s) __va_copy((d), (s))
20426 void test(char *str, ...)
20431 DO_VA_COPY(ap2, ap);
20432 for (i = 1; i <= 9; i++) {
20433 int k = (int)va_arg(ap, int);
20437 DO_VA_COPY(ap, ap2);
20438 for (i = 1; i <= 9; i++) {
20439 int k = (int)va_arg(ap, int);
20445 int main(int argc, char *argv[])
20447 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20452 rm -f conftest$ac_exeext
20453 if { (ac_try="$ac_link"
20454 case "(($ac_try" in
20455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20456 *) ac_try_echo=$ac_try;;
20458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20459 (eval "$ac_link") 2>&5
20461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20462 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20463 { (case "(($ac_try" in
20464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20465 *) ac_try_echo=$ac_try;;
20467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20468 (eval "$ac_try") 2>&5
20470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471 (exit $ac_status); }; }; then
20472 ac_cv_va_copy="GCH"
20474 echo "$as_me: program exited with status $ac_status" >&5
20475 echo "$as_me: failed program was:" >&5
20476 sed 's/^/| /' conftest.$ac_ext >&5
20479 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20488 if test ".$ac_cv_va_copy" = .; then
20489 if test "$cross_compiling" = yes; then
20490 ac_cv_va_copy="GCB"
20492 cat >conftest.$ac_ext <<_ACEOF
20495 cat confdefs.h >>conftest.$ac_ext
20496 cat >>conftest.$ac_ext <<_ACEOF
20497 /* end confdefs.h. */
20499 #include <stdlib.h>
20500 #include <stdarg.h>
20501 #include <string.h>
20502 #define DO_VA_COPY(d, s) __builtin_va_copy((d), (s))
20503 void test(char *str, ...)
20508 DO_VA_COPY(ap2, ap);
20509 for (i = 1; i <= 9; i++) {
20510 int k = (int)va_arg(ap, int);
20514 DO_VA_COPY(ap, ap2);
20515 for (i = 1; i <= 9; i++) {
20516 int k = (int)va_arg(ap, int);
20522 int main(int argc, char *argv[])
20524 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20529 rm -f conftest$ac_exeext
20530 if { (ac_try="$ac_link"
20531 case "(($ac_try" in
20532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20533 *) ac_try_echo=$ac_try;;
20535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20536 (eval "$ac_link") 2>&5
20538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20539 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20540 { (case "(($ac_try" in
20541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20542 *) ac_try_echo=$ac_try;;
20544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20545 (eval "$ac_try") 2>&5
20547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548 (exit $ac_status); }; }; then
20549 ac_cv_va_copy="GCB"
20551 echo "$as_me: program exited with status $ac_status" >&5
20552 echo "$as_me: failed program was:" >&5
20553 sed 's/^/| /' conftest.$ac_ext >&5
20556 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20565 if test ".$ac_cv_va_copy" = .; then
20566 if test "$cross_compiling" = yes; then
20567 ac_cv_va_copy="ASS"
20569 cat >conftest.$ac_ext <<_ACEOF
20572 cat confdefs.h >>conftest.$ac_ext
20573 cat >>conftest.$ac_ext <<_ACEOF
20574 /* end confdefs.h. */
20576 #include <stdlib.h>
20577 #include <stdarg.h>
20578 #include <string.h>
20579 #define DO_VA_COPY(d, s) do { (d) = (s); } while (0)
20580 void test(char *str, ...)
20585 DO_VA_COPY(ap2, ap);
20586 for (i = 1; i <= 9; i++) {
20587 int k = (int)va_arg(ap, int);
20591 DO_VA_COPY(ap, ap2);
20592 for (i = 1; i <= 9; i++) {
20593 int k = (int)va_arg(ap, int);
20599 int main(int argc, char *argv[])
20601 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20606 rm -f conftest$ac_exeext
20607 if { (ac_try="$ac_link"
20608 case "(($ac_try" in
20609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20610 *) ac_try_echo=$ac_try;;
20612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20613 (eval "$ac_link") 2>&5
20615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20616 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20617 { (case "(($ac_try" in
20618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20619 *) ac_try_echo=$ac_try;;
20621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20622 (eval "$ac_try") 2>&5
20624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20625 (exit $ac_status); }; }; then
20626 ac_cv_va_copy="ASS"
20628 echo "$as_me: program exited with status $ac_status" >&5
20629 echo "$as_me: failed program was:" >&5
20630 sed 's/^/| /' conftest.$ac_ext >&5
20633 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20642 if test ".$ac_cv_va_copy" = .; then
20643 if test "$cross_compiling" = yes; then
20644 ac_cv_va_copy="ASP"
20646 cat >conftest.$ac_ext <<_ACEOF
20649 cat confdefs.h >>conftest.$ac_ext
20650 cat >>conftest.$ac_ext <<_ACEOF
20651 /* end confdefs.h. */
20653 #include <stdlib.h>
20654 #include <stdarg.h>
20655 #include <string.h>
20656 #define DO_VA_COPY(d, s) do { *(d) = *(s); } while (0)
20657 void test(char *str, ...)
20662 DO_VA_COPY(ap2, ap);
20663 for (i = 1; i <= 9; i++) {
20664 int k = (int)va_arg(ap, int);
20668 DO_VA_COPY(ap, ap2);
20669 for (i = 1; i <= 9; i++) {
20670 int k = (int)va_arg(ap, int);
20676 int main(int argc, char *argv[])
20678 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20683 rm -f conftest$ac_exeext
20684 if { (ac_try="$ac_link"
20685 case "(($ac_try" in
20686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20687 *) ac_try_echo=$ac_try;;
20689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20690 (eval "$ac_link") 2>&5
20692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20693 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20694 { (case "(($ac_try" in
20695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20696 *) ac_try_echo=$ac_try;;
20698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20699 (eval "$ac_try") 2>&5
20701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702 (exit $ac_status); }; }; then
20703 ac_cv_va_copy="ASP"
20705 echo "$as_me: program exited with status $ac_status" >&5
20706 echo "$as_me: failed program was:" >&5
20707 sed 's/^/| /' conftest.$ac_ext >&5
20710 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20719 if test ".$ac_cv_va_copy" = .; then
20720 if test "$cross_compiling" = yes; then
20721 ac_cv_va_copy="CPS"
20723 cat >conftest.$ac_ext <<_ACEOF
20726 cat confdefs.h >>conftest.$ac_ext
20727 cat >>conftest.$ac_ext <<_ACEOF
20728 /* end confdefs.h. */
20730 #include <stdlib.h>
20731 #include <stdarg.h>
20732 #include <string.h>
20733 #define DO_VA_COPY(d, s) memcpy((void *)&(d), (void *)&(s))
20734 void test(char *str, ...)
20739 DO_VA_COPY(ap2, ap);
20740 for (i = 1; i <= 9; i++) {
20741 int k = (int)va_arg(ap, int);
20745 DO_VA_COPY(ap, ap2);
20746 for (i = 1; i <= 9; i++) {
20747 int k = (int)va_arg(ap, int);
20753 int main(int argc, char *argv[])
20755 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20760 rm -f conftest$ac_exeext
20761 if { (ac_try="$ac_link"
20762 case "(($ac_try" in
20763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20764 *) ac_try_echo=$ac_try;;
20766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20767 (eval "$ac_link") 2>&5
20769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20771 { (case "(($ac_try" in
20772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20773 *) ac_try_echo=$ac_try;;
20775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20776 (eval "$ac_try") 2>&5
20778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20779 (exit $ac_status); }; }; then
20780 ac_cv_va_copy="CPS"
20782 echo "$as_me: program exited with status $ac_status" >&5
20783 echo "$as_me: failed program was:" >&5
20784 sed 's/^/| /' conftest.$ac_ext >&5
20787 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20796 if test ".$ac_cv_va_copy" = .; then
20797 if test "$cross_compiling" = yes; then
20798 ac_cv_va_copy="CPP"
20800 cat >conftest.$ac_ext <<_ACEOF
20803 cat confdefs.h >>conftest.$ac_ext
20804 cat >>conftest.$ac_ext <<_ACEOF
20805 /* end confdefs.h. */
20807 #include <stdlib.h>
20808 #include <stdarg.h>
20809 #include <string.h>
20810 #define DO_VA_COPY(d, s) memcpy((void *)(d), (void *)(s))
20811 void test(char *str, ...)
20816 DO_VA_COPY(ap2, ap);
20817 for (i = 1; i <= 9; i++) {
20818 int k = (int)va_arg(ap, int);
20822 DO_VA_COPY(ap, ap2);
20823 for (i = 1; i <= 9; i++) {
20824 int k = (int)va_arg(ap, int);
20830 int main(int argc, char *argv[])
20832 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20837 rm -f conftest$ac_exeext
20838 if { (ac_try="$ac_link"
20839 case "(($ac_try" in
20840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20841 *) ac_try_echo=$ac_try;;
20843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20844 (eval "$ac_link") 2>&5
20846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20847 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20848 { (case "(($ac_try" in
20849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20850 *) ac_try_echo=$ac_try;;
20852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20853 (eval "$ac_try") 2>&5
20855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856 (exit $ac_status); }; }; then
20857 ac_cv_va_copy="CPP"
20859 echo "$as_me: program exited with status $ac_status" >&5
20860 echo "$as_me: failed program was:" >&5
20861 sed 's/^/| /' conftest.$ac_ext >&5
20864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20870 if test ".$ac_cv_va_copy" = .; then
20871 { { echo "$as_me:$LINENO: error: no working implementation found" >&5
20872 echo "$as_me: error: no working implementation found" >&2;}
20873 { (exit 1); exit 1; }; }
20878 if test ".$ac_cv_va_copy" = ".C99"; then
20880 cat >>confdefs.h <<\_ACEOF
20881 #define HAVE_VA_COPY 1
20886 cat >>confdefs.h <<_ACEOF
20887 #define __VA_COPY_USE __VA_COPY_USE_$ac_cv_va_copy
20892 if test ".$ac_cv_va_copy" = ".C99"; then
20893 { echo "$as_me:$LINENO: result: yes" >&5
20894 echo "${ECHO_T}yes" >&6; }
20896 { echo "$as_me:$LINENO: result: no (using fallback implementation)" >&5
20897 echo "${ECHO_T}no (using fallback implementation)" >&6; }
20901 # Checks for header files.
20902 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20903 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20904 if test "${ac_cv_header_stdc+set}" = set; then
20905 echo $ECHO_N "(cached) $ECHO_C" >&6
20907 cat >conftest.$ac_ext <<_ACEOF
20910 cat confdefs.h >>conftest.$ac_ext
20911 cat >>conftest.$ac_ext <<_ACEOF
20912 /* end confdefs.h. */
20913 #include <stdlib.h>
20914 #include <stdarg.h>
20915 #include <string.h>
20926 rm -f conftest.$ac_objext
20927 if { (ac_try="$ac_compile"
20928 case "(($ac_try" in
20929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20930 *) ac_try_echo=$ac_try;;
20932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20933 (eval "$ac_compile") 2>conftest.er1
20935 grep -v '^ *+' conftest.er1 >conftest.err
20937 cat conftest.err >&5
20938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20939 (exit $ac_status); } && {
20940 test -z "$ac_c_werror_flag" ||
20941 test ! -s conftest.err
20942 } && test -s conftest.$ac_objext; then
20943 ac_cv_header_stdc=yes
20945 echo "$as_me: failed program was:" >&5
20946 sed 's/^/| /' conftest.$ac_ext >&5
20948 ac_cv_header_stdc=no
20951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20953 if test $ac_cv_header_stdc = yes; then
20954 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20955 cat >conftest.$ac_ext <<_ACEOF
20958 cat confdefs.h >>conftest.$ac_ext
20959 cat >>conftest.$ac_ext <<_ACEOF
20960 /* end confdefs.h. */
20961 #include <string.h>
20964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20965 $EGREP "memchr" >/dev/null 2>&1; then
20968 ac_cv_header_stdc=no
20974 if test $ac_cv_header_stdc = yes; then
20975 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20976 cat >conftest.$ac_ext <<_ACEOF
20979 cat confdefs.h >>conftest.$ac_ext
20980 cat >>conftest.$ac_ext <<_ACEOF
20981 /* end confdefs.h. */
20982 #include <stdlib.h>
20985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20986 $EGREP "free" >/dev/null 2>&1; then
20989 ac_cv_header_stdc=no
20995 if test $ac_cv_header_stdc = yes; then
20996 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20997 if test "$cross_compiling" = yes; then
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 #if ((' ' & 0x0FF) == 0x020)
21009 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21010 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21012 # define ISLOWER(c) \
21013 (('a' <= (c) && (c) <= 'i') \
21014 || ('j' <= (c) && (c) <= 'r') \
21015 || ('s' <= (c) && (c) <= 'z'))
21016 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21019 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21024 for (i = 0; i < 256; i++)
21025 if (XOR (islower (i), ISLOWER (i))
21026 || toupper (i) != TOUPPER (i))
21031 rm -f conftest$ac_exeext
21032 if { (ac_try="$ac_link"
21033 case "(($ac_try" in
21034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21035 *) ac_try_echo=$ac_try;;
21037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21038 (eval "$ac_link") 2>&5
21040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21041 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21042 { (case "(($ac_try" in
21043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21044 *) ac_try_echo=$ac_try;;
21046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21047 (eval "$ac_try") 2>&5
21049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050 (exit $ac_status); }; }; then
21053 echo "$as_me: program exited with status $ac_status" >&5
21054 echo "$as_me: failed program was:" >&5
21055 sed 's/^/| /' conftest.$ac_ext >&5
21057 ( exit $ac_status )
21058 ac_cv_header_stdc=no
21060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21066 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21067 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21068 if test $ac_cv_header_stdc = yes; then
21070 cat >>confdefs.h <<\_ACEOF
21071 #define STDC_HEADERS 1
21076 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21077 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21078 if test "${ac_cv_header_time+set}" = set; then
21079 echo $ECHO_N "(cached) $ECHO_C" >&6
21081 cat >conftest.$ac_ext <<_ACEOF
21084 cat confdefs.h >>conftest.$ac_ext
21085 cat >>conftest.$ac_ext <<_ACEOF
21086 /* end confdefs.h. */
21087 #include <sys/types.h>
21088 #include <sys/time.h>
21094 if ((struct tm *) 0)
21100 rm -f conftest.$ac_objext
21101 if { (ac_try="$ac_compile"
21102 case "(($ac_try" in
21103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21104 *) ac_try_echo=$ac_try;;
21106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21107 (eval "$ac_compile") 2>conftest.er1
21109 grep -v '^ *+' conftest.er1 >conftest.err
21111 cat conftest.err >&5
21112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21113 (exit $ac_status); } && {
21114 test -z "$ac_c_werror_flag" ||
21115 test ! -s conftest.err
21116 } && test -s conftest.$ac_objext; then
21117 ac_cv_header_time=yes
21119 echo "$as_me: failed program was:" >&5
21120 sed 's/^/| /' conftest.$ac_ext >&5
21122 ac_cv_header_time=no
21125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21127 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21128 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21129 if test $ac_cv_header_time = yes; then
21131 cat >>confdefs.h <<\_ACEOF
21132 #define TIME_WITH_SYS_TIME 1
21147 for ac_header in sys/socket.h \
21149 windows.h winsock.h winsock2.h \
21155 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21157 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21158 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21160 echo $ECHO_N "(cached) $ECHO_C" >&6
21162 ac_res=`eval echo '${'$as_ac_Header'}'`
21163 { echo "$as_me:$LINENO: result: $ac_res" >&5
21164 echo "${ECHO_T}$ac_res" >&6; }
21166 # Is the header compilable?
21167 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21168 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21169 cat >conftest.$ac_ext <<_ACEOF
21172 cat confdefs.h >>conftest.$ac_ext
21173 cat >>conftest.$ac_ext <<_ACEOF
21174 /* end confdefs.h. */
21175 $ac_includes_default
21176 #include <$ac_header>
21178 rm -f conftest.$ac_objext
21179 if { (ac_try="$ac_compile"
21180 case "(($ac_try" in
21181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21182 *) ac_try_echo=$ac_try;;
21184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21185 (eval "$ac_compile") 2>conftest.er1
21187 grep -v '^ *+' conftest.er1 >conftest.err
21189 cat conftest.err >&5
21190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21191 (exit $ac_status); } && {
21192 test -z "$ac_c_werror_flag" ||
21193 test ! -s conftest.err
21194 } && test -s conftest.$ac_objext; then
21195 ac_header_compiler=yes
21197 echo "$as_me: failed program was:" >&5
21198 sed 's/^/| /' conftest.$ac_ext >&5
21200 ac_header_compiler=no
21203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21204 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21205 echo "${ECHO_T}$ac_header_compiler" >&6; }
21207 # Is the header present?
21208 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21209 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21210 cat >conftest.$ac_ext <<_ACEOF
21213 cat confdefs.h >>conftest.$ac_ext
21214 cat >>conftest.$ac_ext <<_ACEOF
21215 /* end confdefs.h. */
21216 #include <$ac_header>
21218 if { (ac_try="$ac_cpp conftest.$ac_ext"
21219 case "(($ac_try" in
21220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21221 *) ac_try_echo=$ac_try;;
21223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21224 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21226 grep -v '^ *+' conftest.er1 >conftest.err
21228 cat conftest.err >&5
21229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21230 (exit $ac_status); } >/dev/null && {
21231 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21232 test ! -s conftest.err
21234 ac_header_preproc=yes
21236 echo "$as_me: failed program was:" >&5
21237 sed 's/^/| /' conftest.$ac_ext >&5
21239 ac_header_preproc=no
21242 rm -f conftest.err conftest.$ac_ext
21243 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21244 echo "${ECHO_T}$ac_header_preproc" >&6; }
21246 # So? What about this header?
21247 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21249 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21250 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21252 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21253 ac_header_preproc=yes
21256 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21257 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21258 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21259 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21260 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21261 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21262 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21263 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21264 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21265 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21266 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21267 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21269 ## -------------------------------------------------- ##
21270 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
21271 ## -------------------------------------------------- ##
21273 ) | sed "s/^/$as_me: WARNING: /" >&2
21276 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21279 echo $ECHO_N "(cached) $ECHO_C" >&6
21281 eval "$as_ac_Header=\$ac_header_preproc"
21283 ac_res=`eval echo '${'$as_ac_Header'}'`
21284 { echo "$as_me:$LINENO: result: $ac_res" >&5
21285 echo "${ECHO_T}$ac_res" >&6; }
21288 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21289 cat >>confdefs.h <<_ACEOF
21290 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21305 for ac_func in gettimeofday usleep \
21313 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21314 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21315 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21316 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21317 echo $ECHO_N "(cached) $ECHO_C" >&6
21319 cat >conftest.$ac_ext <<_ACEOF
21322 cat confdefs.h >>conftest.$ac_ext
21323 cat >>conftest.$ac_ext <<_ACEOF
21324 /* end confdefs.h. */
21325 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21326 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21327 #define $ac_func innocuous_$ac_func
21329 /* System header to define __stub macros and hopefully few prototypes,
21330 which can conflict with char $ac_func (); below.
21331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21332 <limits.h> exists even on freestanding compilers. */
21335 # include <limits.h>
21337 # include <assert.h>
21342 /* Override any GCC internal prototype to avoid an error.
21343 Use char because int might match the return type of a GCC
21344 builtin and then its argument prototype would still apply. */
21349 /* The GNU C library defines this for functions which it implements
21350 to always fail with ENOSYS. Some functions are actually named
21351 something starting with __ and the normal name is an alias. */
21352 #if defined __stub_$ac_func || defined __stub___$ac_func
21359 return $ac_func ();
21364 rm -f conftest.$ac_objext conftest$ac_exeext
21365 if { (ac_try="$ac_link"
21366 case "(($ac_try" in
21367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21368 *) ac_try_echo=$ac_try;;
21370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21371 (eval "$ac_link") 2>conftest.er1
21373 grep -v '^ *+' conftest.er1 >conftest.err
21375 cat conftest.err >&5
21376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21377 (exit $ac_status); } && {
21378 test -z "$ac_c_werror_flag" ||
21379 test ! -s conftest.err
21380 } && test -s conftest$ac_exeext &&
21381 $as_test_x conftest$ac_exeext; then
21382 eval "$as_ac_var=yes"
21384 echo "$as_me: failed program was:" >&5
21385 sed 's/^/| /' conftest.$ac_ext >&5
21387 eval "$as_ac_var=no"
21390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21391 conftest$ac_exeext conftest.$ac_ext
21393 ac_res=`eval echo '${'$as_ac_var'}'`
21394 { echo "$as_me:$LINENO: result: $ac_res" >&5
21395 echo "${ECHO_T}$ac_res" >&6; }
21396 if test `eval echo '${'$as_ac_var'}'` = yes; then
21397 cat >>confdefs.h <<_ACEOF
21398 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21405 # check for a working snprintf (or use xbt/snprintf.c, which comes from http://www.ijs.si/software/snprintf/)
21408 for ac_func in snprintf vsnprintf
21410 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21411 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21412 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21413 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21414 echo $ECHO_N "(cached) $ECHO_C" >&6
21416 cat >conftest.$ac_ext <<_ACEOF
21419 cat confdefs.h >>conftest.$ac_ext
21420 cat >>conftest.$ac_ext <<_ACEOF
21421 /* end confdefs.h. */
21422 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21423 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21424 #define $ac_func innocuous_$ac_func
21426 /* System header to define __stub macros and hopefully few prototypes,
21427 which can conflict with char $ac_func (); below.
21428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21429 <limits.h> exists even on freestanding compilers. */
21432 # include <limits.h>
21434 # include <assert.h>
21439 /* Override any GCC internal prototype to avoid an error.
21440 Use char because int might match the return type of a GCC
21441 builtin and then its argument prototype would still apply. */
21446 /* The GNU C library defines this for functions which it implements
21447 to always fail with ENOSYS. Some functions are actually named
21448 something starting with __ and the normal name is an alias. */
21449 #if defined __stub_$ac_func || defined __stub___$ac_func
21456 return $ac_func ();
21461 rm -f conftest.$ac_objext conftest$ac_exeext
21462 if { (ac_try="$ac_link"
21463 case "(($ac_try" in
21464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21465 *) ac_try_echo=$ac_try;;
21467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21468 (eval "$ac_link") 2>conftest.er1
21470 grep -v '^ *+' conftest.er1 >conftest.err
21472 cat conftest.err >&5
21473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21474 (exit $ac_status); } && {
21475 test -z "$ac_c_werror_flag" ||
21476 test ! -s conftest.err
21477 } && test -s conftest$ac_exeext &&
21478 $as_test_x conftest$ac_exeext; then
21479 eval "$as_ac_var=yes"
21481 echo "$as_me: failed program was:" >&5
21482 sed 's/^/| /' conftest.$ac_ext >&5
21484 eval "$as_ac_var=no"
21487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21488 conftest$ac_exeext conftest.$ac_ext
21490 ac_res=`eval echo '${'$as_ac_var'}'`
21491 { echo "$as_me:$LINENO: result: $ac_res" >&5
21492 echo "${ECHO_T}$ac_res" >&6; }
21493 if test `eval echo '${'$as_ac_var'}'` = yes; then
21494 cat >>confdefs.h <<_ACEOF
21495 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21501 { echo "$as_me:$LINENO: checking for working snprintf" >&5
21502 echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6; }
21503 if test "${ac_cv_have_working_snprintf+set}" = set; then
21504 echo $ECHO_N "(cached) $ECHO_C" >&6
21506 if test "$cross_compiling" = yes; then
21507 ac_cv_have_working_snprintf=cross
21509 cat >conftest.$ac_ext <<_ACEOF
21512 cat confdefs.h >>conftest.$ac_ext
21513 cat >>conftest.$ac_ext <<_ACEOF
21514 /* end confdefs.h. */
21519 char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
21520 char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
21522 i = snprintf (bufs, 2, "%s", "111");
21523 if (strcmp (bufs, "1")) exit (1);
21524 if (i != 3) exit (1);
21525 i = snprintf (bufd, 2, "%d", 111);
21526 if (strcmp (bufd, "1")) exit (1);
21527 if (i != 3) exit (1);
21531 rm -f conftest$ac_exeext
21532 if { (ac_try="$ac_link"
21533 case "(($ac_try" in
21534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21535 *) ac_try_echo=$ac_try;;
21537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21538 (eval "$ac_link") 2>&5
21540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21541 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21542 { (case "(($ac_try" in
21543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21544 *) ac_try_echo=$ac_try;;
21546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21547 (eval "$ac_try") 2>&5
21549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21550 (exit $ac_status); }; }; then
21551 ac_cv_have_working_snprintf=yes
21553 echo "$as_me: program exited with status $ac_status" >&5
21554 echo "$as_me: failed program was:" >&5
21555 sed 's/^/| /' conftest.$ac_ext >&5
21557 ( exit $ac_status )
21558 ac_cv_have_working_snprintf=no
21560 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21566 { echo "$as_me:$LINENO: result: $ac_cv_have_working_snprintf" >&5
21567 echo "${ECHO_T}$ac_cv_have_working_snprintf" >&6; }
21568 { echo "$as_me:$LINENO: checking for working vsnprintf" >&5
21569 echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6; }
21570 if test "${ac_cv_have_working_vsnprintf+set}" = set; then
21571 echo $ECHO_N "(cached) $ECHO_C" >&6
21573 if test "$cross_compiling" = yes; then
21574 ac_cv_have_working_vsnprintf=cross
21576 cat >conftest.$ac_ext <<_ACEOF
21579 cat confdefs.h >>conftest.$ac_ext
21580 cat >>conftest.$ac_ext <<_ACEOF
21581 /* end confdefs.h. */
21583 #include <stdarg.h>
21585 int my_vsnprintf (char *buf, const char *tmpl, ...)
21589 va_start (args, tmpl);
21590 i = vsnprintf (buf, 2, tmpl, args);
21597 char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
21598 char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
21600 i = my_vsnprintf (bufs, "%s", "111");
21601 if (strcmp (bufs, "1")) exit (1);
21602 if (i != 3) exit (1);
21603 i = my_vsnprintf (bufd, "%d", 111);
21604 if (strcmp (bufd, "1")) exit (1);
21605 if (i != 3) exit (1);
21609 rm -f conftest$ac_exeext
21610 if { (ac_try="$ac_link"
21611 case "(($ac_try" in
21612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21613 *) ac_try_echo=$ac_try;;
21615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21616 (eval "$ac_link") 2>&5
21618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21619 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21620 { (case "(($ac_try" in
21621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21622 *) ac_try_echo=$ac_try;;
21624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21625 (eval "$ac_try") 2>&5
21627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21628 (exit $ac_status); }; }; then
21629 ac_cv_have_working_vsnprintf=yes
21631 echo "$as_me: program exited with status $ac_status" >&5
21632 echo "$as_me: failed program was:" >&5
21633 sed 's/^/| /' conftest.$ac_ext >&5
21635 ( exit $ac_status )
21636 ac_cv_have_working_vsnprintf=no
21638 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21644 { echo "$as_me:$LINENO: result: $ac_cv_have_working_vsnprintf" >&5
21645 echo "${ECHO_T}$ac_cv_have_working_vsnprintf" >&6; }
21646 if test x$ac_cv_have_working_snprintf$ac_cv_have_working_vsnprintf != "xyesyes"; then
21647 case " $LIBOBJS " in
21648 *" snprintf.$ac_objext "* ) ;;
21649 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
21653 { echo "$as_me:$LINENO: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&5
21654 echo "$as_me: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&2;}
21656 cat >>confdefs.h <<\_ACEOF
21657 #define PREFER_PORTABLE_SNPRINTF 1
21661 # check for asprintf function familly (or request the replacements from xbt/snprintf.c)
21662 { echo "$as_me:$LINENO: checking for asprintf" >&5
21663 echo $ECHO_N "checking for asprintf... $ECHO_C" >&6; }
21664 if test "${ac_cv_func_asprintf+set}" = set; then
21665 echo $ECHO_N "(cached) $ECHO_C" >&6
21667 cat >conftest.$ac_ext <<_ACEOF
21670 cat confdefs.h >>conftest.$ac_ext
21671 cat >>conftest.$ac_ext <<_ACEOF
21672 /* end confdefs.h. */
21673 /* Define asprintf to an innocuous variant, in case <limits.h> declares asprintf.
21674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21675 #define asprintf innocuous_asprintf
21677 /* System header to define __stub macros and hopefully few prototypes,
21678 which can conflict with char asprintf (); below.
21679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21680 <limits.h> exists even on freestanding compilers. */
21683 # include <limits.h>
21685 # include <assert.h>
21690 /* Override any GCC internal prototype to avoid an error.
21691 Use char because int might match the return type of a GCC
21692 builtin and then its argument prototype would still apply. */
21697 /* The GNU C library defines this for functions which it implements
21698 to always fail with ENOSYS. Some functions are actually named
21699 something starting with __ and the normal name is an alias. */
21700 #if defined __stub_asprintf || defined __stub___asprintf
21707 return asprintf ();
21712 rm -f conftest.$ac_objext conftest$ac_exeext
21713 if { (ac_try="$ac_link"
21714 case "(($ac_try" in
21715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21716 *) ac_try_echo=$ac_try;;
21718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21719 (eval "$ac_link") 2>conftest.er1
21721 grep -v '^ *+' conftest.er1 >conftest.err
21723 cat conftest.err >&5
21724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21725 (exit $ac_status); } && {
21726 test -z "$ac_c_werror_flag" ||
21727 test ! -s conftest.err
21728 } && test -s conftest$ac_exeext &&
21729 $as_test_x conftest$ac_exeext; then
21730 ac_cv_func_asprintf=yes
21732 echo "$as_me: failed program was:" >&5
21733 sed 's/^/| /' conftest.$ac_ext >&5
21735 ac_cv_func_asprintf=no
21738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21739 conftest$ac_exeext conftest.$ac_ext
21741 { echo "$as_me:$LINENO: result: $ac_cv_func_asprintf" >&5
21742 echo "${ECHO_T}$ac_cv_func_asprintf" >&6; }
21743 if test $ac_cv_func_asprintf = yes; then
21747 cat >>confdefs.h <<\_ACEOF
21748 #define NEED_ASPRINTF 1
21753 { echo "$as_me:$LINENO: checking for vasprintf" >&5
21754 echo $ECHO_N "checking for vasprintf... $ECHO_C" >&6; }
21755 if test "${ac_cv_func_vasprintf+set}" = set; then
21756 echo $ECHO_N "(cached) $ECHO_C" >&6
21758 cat >conftest.$ac_ext <<_ACEOF
21761 cat confdefs.h >>conftest.$ac_ext
21762 cat >>conftest.$ac_ext <<_ACEOF
21763 /* end confdefs.h. */
21764 /* Define vasprintf to an innocuous variant, in case <limits.h> declares vasprintf.
21765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21766 #define vasprintf innocuous_vasprintf
21768 /* System header to define __stub macros and hopefully few prototypes,
21769 which can conflict with char vasprintf (); below.
21770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21771 <limits.h> exists even on freestanding compilers. */
21774 # include <limits.h>
21776 # include <assert.h>
21781 /* Override any GCC internal prototype to avoid an error.
21782 Use char because int might match the return type of a GCC
21783 builtin and then its argument prototype would still apply. */
21788 /* The GNU C library defines this for functions which it implements
21789 to always fail with ENOSYS. Some functions are actually named
21790 something starting with __ and the normal name is an alias. */
21791 #if defined __stub_vasprintf || defined __stub___vasprintf
21798 return vasprintf ();
21803 rm -f conftest.$ac_objext conftest$ac_exeext
21804 if { (ac_try="$ac_link"
21805 case "(($ac_try" in
21806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21807 *) ac_try_echo=$ac_try;;
21809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21810 (eval "$ac_link") 2>conftest.er1
21812 grep -v '^ *+' conftest.er1 >conftest.err
21814 cat conftest.err >&5
21815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21816 (exit $ac_status); } && {
21817 test -z "$ac_c_werror_flag" ||
21818 test ! -s conftest.err
21819 } && test -s conftest$ac_exeext &&
21820 $as_test_x conftest$ac_exeext; then
21821 ac_cv_func_vasprintf=yes
21823 echo "$as_me: failed program was:" >&5
21824 sed 's/^/| /' conftest.$ac_ext >&5
21826 ac_cv_func_vasprintf=no
21829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21830 conftest$ac_exeext conftest.$ac_ext
21832 { echo "$as_me:$LINENO: result: $ac_cv_func_vasprintf" >&5
21833 echo "${ECHO_T}$ac_cv_func_vasprintf" >&6; }
21834 if test $ac_cv_func_vasprintf = yes; then
21838 cat >>confdefs.h <<\_ACEOF
21839 #define NEED_VASPRINTF 1
21845 # Checks for typedefs, structures, and compiler characteristics.
21846 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21847 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21848 if test "${ac_cv_c_const+set}" = set; then
21849 echo $ECHO_N "(cached) $ECHO_C" >&6
21851 cat >conftest.$ac_ext <<_ACEOF
21854 cat confdefs.h >>conftest.$ac_ext
21855 cat >>conftest.$ac_ext <<_ACEOF
21856 /* end confdefs.h. */
21861 /* FIXME: Include the comments suggested by Paul. */
21862 #ifndef __cplusplus
21863 /* Ultrix mips cc rejects this. */
21864 typedef int charset[2];
21866 /* SunOS 4.1.1 cc rejects this. */
21867 char const *const *pcpcc;
21869 /* NEC SVR4.0.2 mips cc rejects this. */
21870 struct point {int x, y;};
21871 static struct point const zero = {0,0};
21872 /* AIX XL C 1.02.0.0 rejects this.
21873 It does not let you subtract one const X* pointer from another in
21874 an arm of an if-expression whose if-part is not a constant
21876 const char *g = "string";
21877 pcpcc = &g + (g ? g-g : 0);
21878 /* HPUX 7.0 cc rejects these. */
21880 ppc = (char**) pcpcc;
21881 pcpcc = (char const *const *) ppc;
21882 { /* SCO 3.2v4 cc rejects this. */
21884 char const *s = 0 ? (char *) 0 : (char const *) 0;
21889 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21890 int x[] = {25, 17};
21891 const int *foo = &x[0];
21894 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21895 typedef const int *iptr;
21899 { /* AIX XL C 1.02.0.0 rejects this saying
21900 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21901 struct s { int j; const int *ap[3]; };
21902 struct s *b; b->j = 5;
21904 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21905 const int foo = 10;
21906 if (!foo) return 0;
21908 return !cs[0] && !zero.x;
21915 rm -f conftest.$ac_objext
21916 if { (ac_try="$ac_compile"
21917 case "(($ac_try" in
21918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21919 *) ac_try_echo=$ac_try;;
21921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21922 (eval "$ac_compile") 2>conftest.er1
21924 grep -v '^ *+' conftest.er1 >conftest.err
21926 cat conftest.err >&5
21927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21928 (exit $ac_status); } && {
21929 test -z "$ac_c_werror_flag" ||
21930 test ! -s conftest.err
21931 } && test -s conftest.$ac_objext; then
21934 echo "$as_me: failed program was:" >&5
21935 sed 's/^/| /' conftest.$ac_ext >&5
21940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21942 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21943 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21944 if test $ac_cv_c_const = no; then
21946 cat >>confdefs.h <<\_ACEOF
21952 { echo "$as_me:$LINENO: checking for inline" >&5
21953 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
21954 if test "${ac_cv_c_inline+set}" = set; then
21955 echo $ECHO_N "(cached) $ECHO_C" >&6
21958 for ac_kw in inline __inline__ __inline; do
21959 cat >conftest.$ac_ext <<_ACEOF
21962 cat confdefs.h >>conftest.$ac_ext
21963 cat >>conftest.$ac_ext <<_ACEOF
21964 /* end confdefs.h. */
21965 #ifndef __cplusplus
21967 static $ac_kw foo_t static_foo () {return 0; }
21968 $ac_kw foo_t foo () {return 0; }
21972 rm -f conftest.$ac_objext
21973 if { (ac_try="$ac_compile"
21974 case "(($ac_try" in
21975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21976 *) ac_try_echo=$ac_try;;
21978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21979 (eval "$ac_compile") 2>conftest.er1
21981 grep -v '^ *+' conftest.er1 >conftest.err
21983 cat conftest.err >&5
21984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21985 (exit $ac_status); } && {
21986 test -z "$ac_c_werror_flag" ||
21987 test ! -s conftest.err
21988 } && test -s conftest.$ac_objext; then
21989 ac_cv_c_inline=$ac_kw
21991 echo "$as_me: failed program was:" >&5
21992 sed 's/^/| /' conftest.$ac_ext >&5
21997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21998 test "$ac_cv_c_inline" != no && break
22002 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
22003 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
22006 case $ac_cv_c_inline in
22009 case $ac_cv_c_inline in
22011 *) ac_val=$ac_cv_c_inline;;
22013 cat >>confdefs.h <<_ACEOF
22014 #ifndef __cplusplus
22015 #define inline $ac_val
22021 { echo "$as_me:$LINENO: checking for size_t" >&5
22022 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22023 if test "${ac_cv_type_size_t+set}" = set; then
22024 echo $ECHO_N "(cached) $ECHO_C" >&6
22026 cat >conftest.$ac_ext <<_ACEOF
22029 cat confdefs.h >>conftest.$ac_ext
22030 cat >>conftest.$ac_ext <<_ACEOF
22031 /* end confdefs.h. */
22032 $ac_includes_default
22033 typedef size_t ac__type_new_;
22037 if ((ac__type_new_ *) 0)
22039 if (sizeof (ac__type_new_))
22045 rm -f conftest.$ac_objext
22046 if { (ac_try="$ac_compile"
22047 case "(($ac_try" in
22048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22049 *) ac_try_echo=$ac_try;;
22051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22052 (eval "$ac_compile") 2>conftest.er1
22054 grep -v '^ *+' conftest.er1 >conftest.err
22056 cat conftest.err >&5
22057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22058 (exit $ac_status); } && {
22059 test -z "$ac_c_werror_flag" ||
22060 test ! -s conftest.err
22061 } && test -s conftest.$ac_objext; then
22062 ac_cv_type_size_t=yes
22064 echo "$as_me: failed program was:" >&5
22065 sed 's/^/| /' conftest.$ac_ext >&5
22067 ac_cv_type_size_t=no
22070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22072 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22073 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22074 if test $ac_cv_type_size_t = yes; then
22078 cat >>confdefs.h <<_ACEOF
22079 #define size_t unsigned int
22085 ###################################
22086 ## SimGrid and GRAS specific checks
22090 { echo "$as_me:$LINENO: result: " >&5
22091 echo "${ECHO_T}" >&6; }
22092 { echo "$as_me:$LINENO: result: ${T_MD}Checking GRAS architecture signature...${T_ME}" >&5
22093 echo "${ECHO_T}${T_MD}Checking GRAS architecture signature...${T_ME}" >&6; }
22095 # Check architecture signature begin
22097 # Check for the architecture
22098 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22099 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
22100 if test "${ac_cv_c_bigendian+set}" = set; then
22101 echo $ECHO_N "(cached) $ECHO_C" >&6
22103 # See if sys/param.h defines the BYTE_ORDER macro.
22104 cat >conftest.$ac_ext <<_ACEOF
22107 cat confdefs.h >>conftest.$ac_ext
22108 cat >>conftest.$ac_ext <<_ACEOF
22109 /* end confdefs.h. */
22110 #include <sys/types.h>
22111 #include <sys/param.h>
22116 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
22117 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
22118 bogus endian macros
22125 rm -f conftest.$ac_objext
22126 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
22134 grep -v '^ *+' conftest.er1 >conftest.err
22136 cat conftest.err >&5
22137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22138 (exit $ac_status); } && {
22139 test -z "$ac_c_werror_flag" ||
22140 test ! -s conftest.err
22141 } && test -s conftest.$ac_objext; then
22142 # It does; now see whether it defined to BIG_ENDIAN or not.
22143 cat >conftest.$ac_ext <<_ACEOF
22146 cat confdefs.h >>conftest.$ac_ext
22147 cat >>conftest.$ac_ext <<_ACEOF
22148 /* end confdefs.h. */
22149 #include <sys/types.h>
22150 #include <sys/param.h>
22155 #if BYTE_ORDER != BIG_ENDIAN
22163 rm -f conftest.$ac_objext
22164 if { (ac_try="$ac_compile"
22165 case "(($ac_try" in
22166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22167 *) ac_try_echo=$ac_try;;
22169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22170 (eval "$ac_compile") 2>conftest.er1
22172 grep -v '^ *+' conftest.er1 >conftest.err
22174 cat conftest.err >&5
22175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22176 (exit $ac_status); } && {
22177 test -z "$ac_c_werror_flag" ||
22178 test ! -s conftest.err
22179 } && test -s conftest.$ac_objext; then
22180 ac_cv_c_bigendian=yes
22182 echo "$as_me: failed program was:" >&5
22183 sed 's/^/| /' conftest.$ac_ext >&5
22185 ac_cv_c_bigendian=no
22188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22190 echo "$as_me: failed program was:" >&5
22191 sed 's/^/| /' conftest.$ac_ext >&5
22193 # It does not; compile a test program.
22194 if test "$cross_compiling" = yes; then
22195 # try to guess the endianness by grepping values into an object file
22196 ac_cv_c_bigendian=unknown
22197 cat >conftest.$ac_ext <<_ACEOF
22200 cat confdefs.h >>conftest.$ac_ext
22201 cat >>conftest.$ac_ext <<_ACEOF
22202 /* end confdefs.h. */
22203 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22204 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22205 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
22206 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22207 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22208 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
22212 _ascii (); _ebcdic ();
22217 rm -f conftest.$ac_objext
22218 if { (ac_try="$ac_compile"
22219 case "(($ac_try" in
22220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22221 *) ac_try_echo=$ac_try;;
22223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22224 (eval "$ac_compile") 2>conftest.er1
22226 grep -v '^ *+' conftest.er1 >conftest.err
22228 cat conftest.err >&5
22229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22230 (exit $ac_status); } && {
22231 test -z "$ac_c_werror_flag" ||
22232 test ! -s conftest.err
22233 } && test -s conftest.$ac_objext; then
22234 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
22235 ac_cv_c_bigendian=yes
22237 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22238 if test "$ac_cv_c_bigendian" = unknown; then
22239 ac_cv_c_bigendian=no
22241 # finding both strings is unlikely to happen, but who knows?
22242 ac_cv_c_bigendian=unknown
22246 echo "$as_me: failed program was:" >&5
22247 sed 's/^/| /' conftest.$ac_ext >&5
22252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22254 cat >conftest.$ac_ext <<_ACEOF
22257 cat confdefs.h >>conftest.$ac_ext
22258 cat >>conftest.$ac_ext <<_ACEOF
22259 /* end confdefs.h. */
22260 $ac_includes_default
22265 /* Are we little or big endian? From Harbison&Steele. */
22269 char c[sizeof (long int)];
22272 return u.c[sizeof (long int) - 1] == 1;
22278 rm -f conftest$ac_exeext
22279 if { (ac_try="$ac_link"
22280 case "(($ac_try" in
22281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22282 *) ac_try_echo=$ac_try;;
22284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22285 (eval "$ac_link") 2>&5
22287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22288 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22289 { (case "(($ac_try" in
22290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22291 *) ac_try_echo=$ac_try;;
22293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22294 (eval "$ac_try") 2>&5
22296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22297 (exit $ac_status); }; }; then
22298 ac_cv_c_bigendian=no
22300 echo "$as_me: program exited with status $ac_status" >&5
22301 echo "$as_me: failed program was:" >&5
22302 sed 's/^/| /' conftest.$ac_ext >&5
22304 ( exit $ac_status )
22305 ac_cv_c_bigendian=yes
22307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22315 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22316 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
22317 case $ac_cv_c_bigendian in
22323 { { echo "$as_me:$LINENO: error: GRAS works only for little or big endian systems (yet)" >&5
22324 echo "$as_me: error: GRAS works only for little or big endian systems (yet)" >&2;}
22325 { (exit 1); exit 1; }; } ;;
22329 cat >>confdefs.h <<_ACEOF
22330 #define GRAS_BIGENDIAN $endian
22334 { echo "$as_me:$LINENO: checking size of char" >&5
22335 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
22336 if test "${ac_cv_sizeof_char+set}" = set; then
22337 echo $ECHO_N "(cached) $ECHO_C" >&6
22339 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22340 cat >conftest.$ac_ext <<_ACEOF
22343 cat confdefs.h >>conftest.$ac_ext
22344 cat >>conftest.$ac_ext <<_ACEOF
22345 /* end confdefs.h. */
22346 #include "confdefs.h"
22347 #include <sys/types.h>
22353 switch (0) case 0: case (sizeof (char) == $ac_size):;
22358 rm -f conftest.$ac_objext
22359 if { (ac_try="$ac_compile"
22360 case "(($ac_try" in
22361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22362 *) ac_try_echo=$ac_try;;
22364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22365 (eval "$ac_compile") 2>conftest.er1
22367 grep -v '^ *+' conftest.er1 >conftest.err
22369 cat conftest.err >&5
22370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22371 (exit $ac_status); } && {
22372 test -z "$ac_c_werror_flag" ||
22373 test ! -s conftest.err
22374 } && test -s conftest.$ac_objext; then
22375 ac_cv_sizeof_char=$ac_size
22377 echo "$as_me: failed program was:" >&5
22378 sed 's/^/| /' conftest.$ac_ext >&5
22383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22384 if test x$ac_cv_sizeof_char != x ; then break; fi
22390 unspecif=$ac_cv_sizeof_char
22391 if test x$unspecif = x ; then
22392 { { echo "$as_me:$LINENO: error: cannot determine a size for char" >&5
22393 echo "$as_me: error: cannot determine a size for char" >&2;}
22394 { (exit 1); exit 1; }; }
22397 if test "${ac_cv_sizeof_signed_char+set}" = set; then
22398 echo $ECHO_N "(cached) $ECHO_C" >&6
22400 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22401 cat >conftest.$ac_ext <<_ACEOF
22404 cat confdefs.h >>conftest.$ac_ext
22405 cat >>conftest.$ac_ext <<_ACEOF
22406 /* end confdefs.h. */
22407 #include "confdefs.h"
22408 #include <sys/types.h>
22414 switch (0) case 0: case (sizeof (signed char) == $ac_size):;
22419 rm -f conftest.$ac_objext
22420 if { (ac_try="$ac_compile"
22421 case "(($ac_try" in
22422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22423 *) ac_try_echo=$ac_try;;
22425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22426 (eval "$ac_compile") 2>conftest.er1
22428 grep -v '^ *+' conftest.er1 >conftest.err
22430 cat conftest.err >&5
22431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22432 (exit $ac_status); } && {
22433 test -z "$ac_c_werror_flag" ||
22434 test ! -s conftest.err
22435 } && test -s conftest.$ac_objext; then
22436 ac_cv_sizeof_signed_char=$ac_size
22438 echo "$as_me: failed program was:" >&5
22439 sed 's/^/| /' conftest.$ac_ext >&5
22444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22445 if test x$ac_cv_sizeof_signed_char != x ; then break; fi
22451 signed=$ac_cv_sizeof_signed_char
22452 if test x$signed = x ; then
22453 { { echo "$as_me:$LINENO: error: cannot determine a size for signed char" >&5
22454 echo "$as_me: error: cannot determine a size for signed char" >&2;}
22455 { (exit 1); exit 1; }; }
22457 if test x$unspecif != x$signed ; then
22458 { { echo "$as_me:$LINENO: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&5
22459 echo "$as_me: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&2;}
22460 { (exit 1); exit 1; }; }
22463 if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
22464 echo $ECHO_N "(cached) $ECHO_C" >&6
22466 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22467 cat >conftest.$ac_ext <<_ACEOF
22470 cat confdefs.h >>conftest.$ac_ext
22471 cat >>conftest.$ac_ext <<_ACEOF
22472 /* end confdefs.h. */
22473 #include "confdefs.h"
22474 #include <sys/types.h>
22480 switch (0) case 0: case (sizeof (unsigned char) == $ac_size):;
22485 rm -f conftest.$ac_objext
22486 if { (ac_try="$ac_compile"
22487 case "(($ac_try" in
22488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22489 *) ac_try_echo=$ac_try;;
22491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22492 (eval "$ac_compile") 2>conftest.er1
22494 grep -v '^ *+' conftest.er1 >conftest.err
22496 cat conftest.err >&5
22497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22498 (exit $ac_status); } && {
22499 test -z "$ac_c_werror_flag" ||
22500 test ! -s conftest.err
22501 } && test -s conftest.$ac_objext; then
22502 ac_cv_sizeof_unsigned_char=$ac_size
22504 echo "$as_me: failed program was:" >&5
22505 sed 's/^/| /' conftest.$ac_ext >&5
22510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22511 if test x$ac_cv_sizeof_unsigned_char != x ; then break; fi
22517 unsigned=$ac_cv_sizeof_unsigned_char
22518 if test x$unsigned = x ; then
22519 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned char" >&5
22520 echo "$as_me: error: cannot determine a size for unsigned char" >&2;}
22521 { (exit 1); exit 1; }; }
22523 if test x$unsigned != x$signed ; then
22524 { { echo "$as_me:$LINENO: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&5
22525 echo "$as_me: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&2;}
22526 { (exit 1); exit 1; }; }
22529 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
22530 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6; }
22531 { echo "$as_me:$LINENO: checking for the minimal structure boundary of char" >&5
22532 echo $ECHO_N "checking for the minimal structure boundary of char... $ECHO_C" >&6; }
22534 if test "${ac_cv_struct_boundary_char+set}" = set; then
22535 echo $ECHO_N "(cached) $ECHO_C" >&6
22537 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22538 cat >conftest.$ac_ext <<_ACEOF
22541 cat confdefs.h >>conftest.$ac_ext
22542 cat >>conftest.$ac_ext <<_ACEOF
22543 /* end confdefs.h. */
22544 #include "confdefs.h"
22545 #include <sys/types.h>
22546 struct s { char c; char i; };
22551 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(char)):;
22556 rm -f conftest.$ac_objext
22557 if { (ac_try="$ac_compile"
22558 case "(($ac_try" in
22559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22560 *) ac_try_echo=$ac_try;;
22562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22563 (eval "$ac_compile") 2>conftest.er1
22565 grep -v '^ *+' conftest.er1 >conftest.err
22567 cat conftest.err >&5
22568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22569 (exit $ac_status); } && {
22570 test -z "$ac_c_werror_flag" ||
22571 test ! -s conftest.err
22572 } && test -s conftest.$ac_objext; then
22573 ac_cv_struct_boundary_char=$ac_size
22575 echo "$as_me: failed program was:" >&5
22576 sed 's/^/| /' conftest.$ac_ext >&5
22581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22582 if test x$ac_cv_struct_boundary_char != x ; then break; fi
22587 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_char" >&5
22588 echo "${ECHO_T}$ac_cv_struct_boundary_char" >&6; }
22589 if test x$ac_cv_struct_boundary_char = x ; then
22590 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of char in structures" >&5
22591 echo "$as_me: error: Cannot determine the minimal alignment boundary of char in structures" >&2;}
22592 { (exit 1); exit 1; }; }
22595 { echo "$as_me:$LINENO: checking size of short int" >&5
22596 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
22597 if test "${ac_cv_sizeof_short_int+set}" = set; then
22598 echo $ECHO_N "(cached) $ECHO_C" >&6
22600 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22601 cat >conftest.$ac_ext <<_ACEOF
22604 cat confdefs.h >>conftest.$ac_ext
22605 cat >>conftest.$ac_ext <<_ACEOF
22606 /* end confdefs.h. */
22607 #include "confdefs.h"
22608 #include <sys/types.h>
22614 switch (0) case 0: case (sizeof (short int) == $ac_size):;
22619 rm -f conftest.$ac_objext
22620 if { (ac_try="$ac_compile"
22621 case "(($ac_try" in
22622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22623 *) ac_try_echo=$ac_try;;
22625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22626 (eval "$ac_compile") 2>conftest.er1
22628 grep -v '^ *+' conftest.er1 >conftest.err
22630 cat conftest.err >&5
22631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22632 (exit $ac_status); } && {
22633 test -z "$ac_c_werror_flag" ||
22634 test ! -s conftest.err
22635 } && test -s conftest.$ac_objext; then
22636 ac_cv_sizeof_short_int=$ac_size
22638 echo "$as_me: failed program was:" >&5
22639 sed 's/^/| /' conftest.$ac_ext >&5
22644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22645 if test x$ac_cv_sizeof_short_int != x ; then break; fi
22651 unspecif=$ac_cv_sizeof_short_int
22652 if test x$unspecif = x ; then
22653 { { echo "$as_me:$LINENO: error: cannot determine a size for short int" >&5
22654 echo "$as_me: error: cannot determine a size for short int" >&2;}
22655 { (exit 1); exit 1; }; }
22658 if test "${ac_cv_sizeof_signed_short_int+set}" = set; then
22659 echo $ECHO_N "(cached) $ECHO_C" >&6
22661 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22662 cat >conftest.$ac_ext <<_ACEOF
22665 cat confdefs.h >>conftest.$ac_ext
22666 cat >>conftest.$ac_ext <<_ACEOF
22667 /* end confdefs.h. */
22668 #include "confdefs.h"
22669 #include <sys/types.h>
22675 switch (0) case 0: case (sizeof (signed short int) == $ac_size):;
22680 rm -f conftest.$ac_objext
22681 if { (ac_try="$ac_compile"
22682 case "(($ac_try" in
22683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22684 *) ac_try_echo=$ac_try;;
22686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22687 (eval "$ac_compile") 2>conftest.er1
22689 grep -v '^ *+' conftest.er1 >conftest.err
22691 cat conftest.err >&5
22692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22693 (exit $ac_status); } && {
22694 test -z "$ac_c_werror_flag" ||
22695 test ! -s conftest.err
22696 } && test -s conftest.$ac_objext; then
22697 ac_cv_sizeof_signed_short_int=$ac_size
22699 echo "$as_me: failed program was:" >&5
22700 sed 's/^/| /' conftest.$ac_ext >&5
22705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22706 if test x$ac_cv_sizeof_signed_short_int != x ; then break; fi
22712 signed=$ac_cv_sizeof_signed_short_int
22713 if test x$signed = x ; then
22714 { { echo "$as_me:$LINENO: error: cannot determine a size for signed short int" >&5
22715 echo "$as_me: error: cannot determine a size for signed short int" >&2;}
22716 { (exit 1); exit 1; }; }
22718 if test x$unspecif != x$signed ; then
22719 { { echo "$as_me:$LINENO: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&5
22720 echo "$as_me: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&2;}
22721 { (exit 1); exit 1; }; }
22724 if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then
22725 echo $ECHO_N "(cached) $ECHO_C" >&6
22727 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
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 "confdefs.h"
22735 #include <sys/types.h>
22741 switch (0) case 0: case (sizeof (unsigned short int) == $ac_size):;
22746 rm -f conftest.$ac_objext
22747 if { (ac_try="$ac_compile"
22748 case "(($ac_try" in
22749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22750 *) ac_try_echo=$ac_try;;
22752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22753 (eval "$ac_compile") 2>conftest.er1
22755 grep -v '^ *+' conftest.er1 >conftest.err
22757 cat conftest.err >&5
22758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22759 (exit $ac_status); } && {
22760 test -z "$ac_c_werror_flag" ||
22761 test ! -s conftest.err
22762 } && test -s conftest.$ac_objext; then
22763 ac_cv_sizeof_unsigned_short_int=$ac_size
22765 echo "$as_me: failed program was:" >&5
22766 sed 's/^/| /' conftest.$ac_ext >&5
22771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22772 if test x$ac_cv_sizeof_unsigned_short_int != x ; then break; fi
22778 unsigned=$ac_cv_sizeof_unsigned_short_int
22779 if test x$unsigned = x ; then
22780 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned short int" >&5
22781 echo "$as_me: error: cannot determine a size for unsigned short int" >&2;}
22782 { (exit 1); exit 1; }; }
22784 if test x$unsigned != x$signed ; then
22785 { { echo "$as_me:$LINENO: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&5
22786 echo "$as_me: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&2;}
22787 { (exit 1); exit 1; }; }
22790 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short_int" >&5
22791 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short_int" >&6; }
22792 { echo "$as_me:$LINENO: checking for the minimal structure boundary of short int" >&5
22793 echo $ECHO_N "checking for the minimal structure boundary of short int... $ECHO_C" >&6; }
22795 if test "${ac_cv_struct_boundary_short_int+set}" = set; then
22796 echo $ECHO_N "(cached) $ECHO_C" >&6
22798 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22799 cat >conftest.$ac_ext <<_ACEOF
22802 cat confdefs.h >>conftest.$ac_ext
22803 cat >>conftest.$ac_ext <<_ACEOF
22804 /* end confdefs.h. */
22805 #include "confdefs.h"
22806 #include <sys/types.h>
22807 struct s { char c; short int i; };
22812 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(short int)):;
22817 rm -f conftest.$ac_objext
22818 if { (ac_try="$ac_compile"
22819 case "(($ac_try" in
22820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22821 *) ac_try_echo=$ac_try;;
22823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22824 (eval "$ac_compile") 2>conftest.er1
22826 grep -v '^ *+' conftest.er1 >conftest.err
22828 cat conftest.err >&5
22829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22830 (exit $ac_status); } && {
22831 test -z "$ac_c_werror_flag" ||
22832 test ! -s conftest.err
22833 } && test -s conftest.$ac_objext; then
22834 ac_cv_struct_boundary_short_int=$ac_size
22836 echo "$as_me: failed program was:" >&5
22837 sed 's/^/| /' conftest.$ac_ext >&5
22842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22843 if test x$ac_cv_struct_boundary_short_int != x ; then break; fi
22848 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_short_int" >&5
22849 echo "${ECHO_T}$ac_cv_struct_boundary_short_int" >&6; }
22850 if test x$ac_cv_struct_boundary_short_int = x ; then
22851 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of short int in structures" >&5
22852 echo "$as_me: error: Cannot determine the minimal alignment boundary of short int in structures" >&2;}
22853 { (exit 1); exit 1; }; }
22856 { echo "$as_me:$LINENO: checking size of int" >&5
22857 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
22858 if test "${ac_cv_sizeof_int+set}" = set; then
22859 echo $ECHO_N "(cached) $ECHO_C" >&6
22861 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22862 cat >conftest.$ac_ext <<_ACEOF
22865 cat confdefs.h >>conftest.$ac_ext
22866 cat >>conftest.$ac_ext <<_ACEOF
22867 /* end confdefs.h. */
22868 #include "confdefs.h"
22869 #include <sys/types.h>
22875 switch (0) case 0: case (sizeof (int) == $ac_size):;
22880 rm -f conftest.$ac_objext
22881 if { (ac_try="$ac_compile"
22882 case "(($ac_try" in
22883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22884 *) ac_try_echo=$ac_try;;
22886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22887 (eval "$ac_compile") 2>conftest.er1
22889 grep -v '^ *+' conftest.er1 >conftest.err
22891 cat conftest.err >&5
22892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22893 (exit $ac_status); } && {
22894 test -z "$ac_c_werror_flag" ||
22895 test ! -s conftest.err
22896 } && test -s conftest.$ac_objext; then
22897 ac_cv_sizeof_int=$ac_size
22899 echo "$as_me: failed program was:" >&5
22900 sed 's/^/| /' conftest.$ac_ext >&5
22905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22906 if test x$ac_cv_sizeof_int != x ; then break; fi
22912 unspecif=$ac_cv_sizeof_int
22913 if test x$unspecif = x ; then
22914 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
22915 echo "$as_me: error: cannot determine a size for int" >&2;}
22916 { (exit 1); exit 1; }; }
22919 if test "${ac_cv_sizeof_signed_int+set}" = set; then
22920 echo $ECHO_N "(cached) $ECHO_C" >&6
22922 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22923 cat >conftest.$ac_ext <<_ACEOF
22926 cat confdefs.h >>conftest.$ac_ext
22927 cat >>conftest.$ac_ext <<_ACEOF
22928 /* end confdefs.h. */
22929 #include "confdefs.h"
22930 #include <sys/types.h>
22936 switch (0) case 0: case (sizeof (signed int) == $ac_size):;
22941 rm -f conftest.$ac_objext
22942 if { (ac_try="$ac_compile"
22943 case "(($ac_try" in
22944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22945 *) ac_try_echo=$ac_try;;
22947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22948 (eval "$ac_compile") 2>conftest.er1
22950 grep -v '^ *+' conftest.er1 >conftest.err
22952 cat conftest.err >&5
22953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22954 (exit $ac_status); } && {
22955 test -z "$ac_c_werror_flag" ||
22956 test ! -s conftest.err
22957 } && test -s conftest.$ac_objext; then
22958 ac_cv_sizeof_signed_int=$ac_size
22960 echo "$as_me: failed program was:" >&5
22961 sed 's/^/| /' conftest.$ac_ext >&5
22966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22967 if test x$ac_cv_sizeof_signed_int != x ; then break; fi
22973 signed=$ac_cv_sizeof_signed_int
22974 if test x$signed = x ; then
22975 { { echo "$as_me:$LINENO: error: cannot determine a size for signed int" >&5
22976 echo "$as_me: error: cannot determine a size for signed int" >&2;}
22977 { (exit 1); exit 1; }; }
22979 if test x$unspecif != x$signed ; then
22980 { { echo "$as_me:$LINENO: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&5
22981 echo "$as_me: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&2;}
22982 { (exit 1); exit 1; }; }
22985 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
22986 echo $ECHO_N "(cached) $ECHO_C" >&6
22988 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22989 cat >conftest.$ac_ext <<_ACEOF
22992 cat confdefs.h >>conftest.$ac_ext
22993 cat >>conftest.$ac_ext <<_ACEOF
22994 /* end confdefs.h. */
22995 #include "confdefs.h"
22996 #include <sys/types.h>
23002 switch (0) case 0: case (sizeof (unsigned int) == $ac_size):;
23007 rm -f conftest.$ac_objext
23008 if { (ac_try="$ac_compile"
23009 case "(($ac_try" in
23010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23011 *) ac_try_echo=$ac_try;;
23013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23014 (eval "$ac_compile") 2>conftest.er1
23016 grep -v '^ *+' conftest.er1 >conftest.err
23018 cat conftest.err >&5
23019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23020 (exit $ac_status); } && {
23021 test -z "$ac_c_werror_flag" ||
23022 test ! -s conftest.err
23023 } && test -s conftest.$ac_objext; then
23024 ac_cv_sizeof_unsigned_int=$ac_size
23026 echo "$as_me: failed program was:" >&5
23027 sed 's/^/| /' conftest.$ac_ext >&5
23032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23033 if test x$ac_cv_sizeof_unsigned_int != x ; then break; fi
23039 unsigned=$ac_cv_sizeof_unsigned_int
23040 if test x$unsigned = x ; then
23041 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned int" >&5
23042 echo "$as_me: error: cannot determine a size for unsigned int" >&2;}
23043 { (exit 1); exit 1; }; }
23045 if test x$unsigned != x$signed ; then
23046 { { echo "$as_me:$LINENO: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&5
23047 echo "$as_me: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&2;}
23048 { (exit 1); exit 1; }; }
23051 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
23052 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6; }
23053 { echo "$as_me:$LINENO: checking for the minimal structure boundary of int" >&5
23054 echo $ECHO_N "checking for the minimal structure boundary of int... $ECHO_C" >&6; }
23056 if test "${ac_cv_struct_boundary_int+set}" = set; then
23057 echo $ECHO_N "(cached) $ECHO_C" >&6
23059 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23060 cat >conftest.$ac_ext <<_ACEOF
23063 cat confdefs.h >>conftest.$ac_ext
23064 cat >>conftest.$ac_ext <<_ACEOF
23065 /* end confdefs.h. */
23066 #include "confdefs.h"
23067 #include <sys/types.h>
23068 struct s { char c; int i; };
23073 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(int)):;
23078 rm -f conftest.$ac_objext
23079 if { (ac_try="$ac_compile"
23080 case "(($ac_try" in
23081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23082 *) ac_try_echo=$ac_try;;
23084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23085 (eval "$ac_compile") 2>conftest.er1
23087 grep -v '^ *+' conftest.er1 >conftest.err
23089 cat conftest.err >&5
23090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23091 (exit $ac_status); } && {
23092 test -z "$ac_c_werror_flag" ||
23093 test ! -s conftest.err
23094 } && test -s conftest.$ac_objext; then
23095 ac_cv_struct_boundary_int=$ac_size
23097 echo "$as_me: failed program was:" >&5
23098 sed 's/^/| /' conftest.$ac_ext >&5
23103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23104 if test x$ac_cv_struct_boundary_int != x ; then break; fi
23109 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_int" >&5
23110 echo "${ECHO_T}$ac_cv_struct_boundary_int" >&6; }
23111 if test x$ac_cv_struct_boundary_int = x ; then
23112 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of int in structures" >&5
23113 echo "$as_me: error: Cannot determine the minimal alignment boundary of int in structures" >&2;}
23114 { (exit 1); exit 1; }; }
23117 { echo "$as_me:$LINENO: checking size of long int" >&5
23118 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
23119 if test "${ac_cv_sizeof_long_int+set}" = set; then
23120 echo $ECHO_N "(cached) $ECHO_C" >&6
23122 for ac_size in 4 8 1 2 16 ; 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>
23136 switch (0) case 0: case (sizeof (long int) == $ac_size):;
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_sizeof_long_int=$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_sizeof_long_int != x ; then break; fi
23173 unspecif=$ac_cv_sizeof_long_int
23174 if test x$unspecif = x ; then
23175 { { echo "$as_me:$LINENO: error: cannot determine a size for long int" >&5
23176 echo "$as_me: error: cannot determine a size for long int" >&2;}
23177 { (exit 1); exit 1; }; }
23180 if test "${ac_cv_sizeof_signed_long_int+set}" = set; then
23181 echo $ECHO_N "(cached) $ECHO_C" >&6
23183 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23184 cat >conftest.$ac_ext <<_ACEOF
23187 cat confdefs.h >>conftest.$ac_ext
23188 cat >>conftest.$ac_ext <<_ACEOF
23189 /* end confdefs.h. */
23190 #include "confdefs.h"
23191 #include <sys/types.h>
23197 switch (0) case 0: case (sizeof (signed long int) == $ac_size):;
23202 rm -f conftest.$ac_objext
23203 if { (ac_try="$ac_compile"
23204 case "(($ac_try" in
23205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23206 *) ac_try_echo=$ac_try;;
23208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23209 (eval "$ac_compile") 2>conftest.er1
23211 grep -v '^ *+' conftest.er1 >conftest.err
23213 cat conftest.err >&5
23214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23215 (exit $ac_status); } && {
23216 test -z "$ac_c_werror_flag" ||
23217 test ! -s conftest.err
23218 } && test -s conftest.$ac_objext; then
23219 ac_cv_sizeof_signed_long_int=$ac_size
23221 echo "$as_me: failed program was:" >&5
23222 sed 's/^/| /' conftest.$ac_ext >&5
23227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23228 if test x$ac_cv_sizeof_signed_long_int != x ; then break; fi
23234 signed=$ac_cv_sizeof_signed_long_int
23235 if test x$signed = x ; then
23236 { { echo "$as_me:$LINENO: error: cannot determine a size for signed long int" >&5
23237 echo "$as_me: error: cannot determine a size for signed long int" >&2;}
23238 { (exit 1); exit 1; }; }
23240 if test x$unspecif != x$signed ; then
23241 { { echo "$as_me:$LINENO: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&5
23242 echo "$as_me: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&2;}
23243 { (exit 1); exit 1; }; }
23246 if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then
23247 echo $ECHO_N "(cached) $ECHO_C" >&6
23249 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23250 cat >conftest.$ac_ext <<_ACEOF
23253 cat confdefs.h >>conftest.$ac_ext
23254 cat >>conftest.$ac_ext <<_ACEOF
23255 /* end confdefs.h. */
23256 #include "confdefs.h"
23257 #include <sys/types.h>
23263 switch (0) case 0: case (sizeof (unsigned long int) == $ac_size):;
23268 rm -f conftest.$ac_objext
23269 if { (ac_try="$ac_compile"
23270 case "(($ac_try" in
23271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23272 *) ac_try_echo=$ac_try;;
23274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23275 (eval "$ac_compile") 2>conftest.er1
23277 grep -v '^ *+' conftest.er1 >conftest.err
23279 cat conftest.err >&5
23280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23281 (exit $ac_status); } && {
23282 test -z "$ac_c_werror_flag" ||
23283 test ! -s conftest.err
23284 } && test -s conftest.$ac_objext; then
23285 ac_cv_sizeof_unsigned_long_int=$ac_size
23287 echo "$as_me: failed program was:" >&5
23288 sed 's/^/| /' conftest.$ac_ext >&5
23293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23294 if test x$ac_cv_sizeof_unsigned_long_int != x ; then break; fi
23300 unsigned=$ac_cv_sizeof_unsigned_long_int
23301 if test x$unsigned = x ; then
23302 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long int" >&5
23303 echo "$as_me: error: cannot determine a size for unsigned long int" >&2;}
23304 { (exit 1); exit 1; }; }
23306 if test x$unsigned != x$signed ; then
23307 { { echo "$as_me:$LINENO: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&5
23308 echo "$as_me: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&2;}
23309 { (exit 1); exit 1; }; }
23312 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_int" >&5
23313 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_int" >&6; }
23314 { echo "$as_me:$LINENO: checking for the minimal structure boundary of long int" >&5
23315 echo $ECHO_N "checking for the minimal structure boundary of long int... $ECHO_C" >&6; }
23317 if test "${ac_cv_struct_boundary_long_int+set}" = set; then
23318 echo $ECHO_N "(cached) $ECHO_C" >&6
23320 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23321 cat >conftest.$ac_ext <<_ACEOF
23324 cat confdefs.h >>conftest.$ac_ext
23325 cat >>conftest.$ac_ext <<_ACEOF
23326 /* end confdefs.h. */
23327 #include "confdefs.h"
23328 #include <sys/types.h>
23329 struct s { char c; long int i; };
23334 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long int)):;
23339 rm -f conftest.$ac_objext
23340 if { (ac_try="$ac_compile"
23341 case "(($ac_try" in
23342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23343 *) ac_try_echo=$ac_try;;
23345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23346 (eval "$ac_compile") 2>conftest.er1
23348 grep -v '^ *+' conftest.er1 >conftest.err
23350 cat conftest.err >&5
23351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23352 (exit $ac_status); } && {
23353 test -z "$ac_c_werror_flag" ||
23354 test ! -s conftest.err
23355 } && test -s conftest.$ac_objext; then
23356 ac_cv_struct_boundary_long_int=$ac_size
23358 echo "$as_me: failed program was:" >&5
23359 sed 's/^/| /' conftest.$ac_ext >&5
23364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23365 if test x$ac_cv_struct_boundary_long_int != x ; then break; fi
23370 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_int" >&5
23371 echo "${ECHO_T}$ac_cv_struct_boundary_long_int" >&6; }
23372 if test x$ac_cv_struct_boundary_long_int = x ; then
23373 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long int in structures" >&5
23374 echo "$as_me: error: Cannot determine the minimal alignment boundary of long int in structures" >&2;}
23375 { (exit 1); exit 1; }; }
23378 { echo "$as_me:$LINENO: checking size of long long int" >&5
23379 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
23380 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
23381 echo $ECHO_N "(cached) $ECHO_C" >&6
23383 for ac_size in 4 8 1 2 16 ; 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>
23397 switch (0) case 0: case (sizeof (long long int) == $ac_size):;
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_sizeof_long_long_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_sizeof_long_long_int != x ; then break; fi
23434 unspecif=$ac_cv_sizeof_long_long_int
23435 if test x$unspecif = x ; then
23436 { { echo "$as_me:$LINENO: error: cannot determine a size for long long int" >&5
23437 echo "$as_me: error: cannot determine a size for long long int" >&2;}
23438 { (exit 1); exit 1; }; }
23441 if test "${ac_cv_sizeof_signed_long_long_int+set}" = set; then
23442 echo $ECHO_N "(cached) $ECHO_C" >&6
23444 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23445 cat >conftest.$ac_ext <<_ACEOF
23448 cat confdefs.h >>conftest.$ac_ext
23449 cat >>conftest.$ac_ext <<_ACEOF
23450 /* end confdefs.h. */
23451 #include "confdefs.h"
23452 #include <sys/types.h>
23458 switch (0) case 0: case (sizeof (signed long long int) == $ac_size):;
23463 rm -f conftest.$ac_objext
23464 if { (ac_try="$ac_compile"
23465 case "(($ac_try" in
23466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23467 *) ac_try_echo=$ac_try;;
23469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23470 (eval "$ac_compile") 2>conftest.er1
23472 grep -v '^ *+' conftest.er1 >conftest.err
23474 cat conftest.err >&5
23475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23476 (exit $ac_status); } && {
23477 test -z "$ac_c_werror_flag" ||
23478 test ! -s conftest.err
23479 } && test -s conftest.$ac_objext; then
23480 ac_cv_sizeof_signed_long_long_int=$ac_size
23482 echo "$as_me: failed program was:" >&5
23483 sed 's/^/| /' conftest.$ac_ext >&5
23488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23489 if test x$ac_cv_sizeof_signed_long_long_int != x ; then break; fi
23495 signed=$ac_cv_sizeof_signed_long_long_int
23496 if test x$signed = x ; then
23497 { { echo "$as_me:$LINENO: error: cannot determine a size for signed long long int" >&5
23498 echo "$as_me: error: cannot determine a size for signed long long int" >&2;}
23499 { (exit 1); exit 1; }; }
23501 if test x$unspecif != x$signed ; then
23502 { { echo "$as_me:$LINENO: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&5
23503 echo "$as_me: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&2;}
23504 { (exit 1); exit 1; }; }
23507 if test "${ac_cv_sizeof_unsigned_long_long_int+set}" = set; then
23508 echo $ECHO_N "(cached) $ECHO_C" >&6
23510 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23511 cat >conftest.$ac_ext <<_ACEOF
23514 cat confdefs.h >>conftest.$ac_ext
23515 cat >>conftest.$ac_ext <<_ACEOF
23516 /* end confdefs.h. */
23517 #include "confdefs.h"
23518 #include <sys/types.h>
23524 switch (0) case 0: case (sizeof (unsigned long long int) == $ac_size):;
23529 rm -f conftest.$ac_objext
23530 if { (ac_try="$ac_compile"
23531 case "(($ac_try" in
23532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23533 *) ac_try_echo=$ac_try;;
23535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23536 (eval "$ac_compile") 2>conftest.er1
23538 grep -v '^ *+' conftest.er1 >conftest.err
23540 cat conftest.err >&5
23541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23542 (exit $ac_status); } && {
23543 test -z "$ac_c_werror_flag" ||
23544 test ! -s conftest.err
23545 } && test -s conftest.$ac_objext; then
23546 ac_cv_sizeof_unsigned_long_long_int=$ac_size
23548 echo "$as_me: failed program was:" >&5
23549 sed 's/^/| /' conftest.$ac_ext >&5
23554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23555 if test x$ac_cv_sizeof_unsigned_long_long_int != x ; then break; fi
23561 unsigned=$ac_cv_sizeof_unsigned_long_long_int
23562 if test x$unsigned = x ; then
23563 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long long int" >&5
23564 echo "$as_me: error: cannot determine a size for unsigned long long int" >&2;}
23565 { (exit 1); exit 1; }; }
23567 if test x$unsigned != x$signed ; then
23568 { { echo "$as_me:$LINENO: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&5
23569 echo "$as_me: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&2;}
23570 { (exit 1); exit 1; }; }
23573 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long_int" >&5
23574 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long_int" >&6; }
23575 { echo "$as_me:$LINENO: checking for the minimal structure boundary of long long int" >&5
23576 echo $ECHO_N "checking for the minimal structure boundary of long long int... $ECHO_C" >&6; }
23578 if test "${ac_cv_struct_boundary_long_long_int+set}" = set; then
23579 echo $ECHO_N "(cached) $ECHO_C" >&6
23581 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23582 cat >conftest.$ac_ext <<_ACEOF
23585 cat confdefs.h >>conftest.$ac_ext
23586 cat >>conftest.$ac_ext <<_ACEOF
23587 /* end confdefs.h. */
23588 #include "confdefs.h"
23589 #include <sys/types.h>
23590 struct s { char c; long long int i; };
23595 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long long int)):;
23600 rm -f conftest.$ac_objext
23601 if { (ac_try="$ac_compile"
23602 case "(($ac_try" in
23603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23604 *) ac_try_echo=$ac_try;;
23606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23607 (eval "$ac_compile") 2>conftest.er1
23609 grep -v '^ *+' conftest.er1 >conftest.err
23611 cat conftest.err >&5
23612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23613 (exit $ac_status); } && {
23614 test -z "$ac_c_werror_flag" ||
23615 test ! -s conftest.err
23616 } && test -s conftest.$ac_objext; then
23617 ac_cv_struct_boundary_long_long_int=$ac_size
23619 echo "$as_me: failed program was:" >&5
23620 sed 's/^/| /' conftest.$ac_ext >&5
23625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23626 if test x$ac_cv_struct_boundary_long_long_int != x ; then break; fi
23631 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_long_int" >&5
23632 echo "${ECHO_T}$ac_cv_struct_boundary_long_long_int" >&6; }
23633 if test x$ac_cv_struct_boundary_long_long_int = x ; then
23634 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long long int in structures" >&5
23635 echo "$as_me: error: Cannot determine the minimal alignment boundary of long long int in structures" >&2;}
23636 { (exit 1); exit 1; }; }
23640 { echo "$as_me:$LINENO: checking for the minimal structure boundary of float" >&5
23641 echo $ECHO_N "checking for the minimal structure boundary of float... $ECHO_C" >&6; }
23643 if test "${ac_cv_struct_boundary_float+set}" = set; then
23644 echo $ECHO_N "(cached) $ECHO_C" >&6
23646 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23647 cat >conftest.$ac_ext <<_ACEOF
23650 cat confdefs.h >>conftest.$ac_ext
23651 cat >>conftest.$ac_ext <<_ACEOF
23652 /* end confdefs.h. */
23653 #include "confdefs.h"
23654 #include <sys/types.h>
23655 struct s { char c; float i; };
23660 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(float)):;
23665 rm -f conftest.$ac_objext
23666 if { (ac_try="$ac_compile"
23667 case "(($ac_try" in
23668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23669 *) ac_try_echo=$ac_try;;
23671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23672 (eval "$ac_compile") 2>conftest.er1
23674 grep -v '^ *+' conftest.er1 >conftest.err
23676 cat conftest.err >&5
23677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23678 (exit $ac_status); } && {
23679 test -z "$ac_c_werror_flag" ||
23680 test ! -s conftest.err
23681 } && test -s conftest.$ac_objext; then
23682 ac_cv_struct_boundary_float=$ac_size
23684 echo "$as_me: failed program was:" >&5
23685 sed 's/^/| /' conftest.$ac_ext >&5
23690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23691 if test x$ac_cv_struct_boundary_float != x ; then break; fi
23696 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_float" >&5
23697 echo "${ECHO_T}$ac_cv_struct_boundary_float" >&6; }
23698 if test x$ac_cv_struct_boundary_float = x ; then
23699 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of float in structures" >&5
23700 echo "$as_me: error: Cannot determine the minimal alignment boundary of float in structures" >&2;}
23701 { (exit 1); exit 1; }; }
23703 { echo "$as_me:$LINENO: checking for the minimal structure boundary of double" >&5
23704 echo $ECHO_N "checking for the minimal structure boundary of double... $ECHO_C" >&6; }
23706 if test "${ac_cv_struct_boundary_double+set}" = set; then
23707 echo $ECHO_N "(cached) $ECHO_C" >&6
23709 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23710 cat >conftest.$ac_ext <<_ACEOF
23713 cat confdefs.h >>conftest.$ac_ext
23714 cat >>conftest.$ac_ext <<_ACEOF
23715 /* end confdefs.h. */
23716 #include "confdefs.h"
23717 #include <sys/types.h>
23718 struct s { char c; double i; };
23723 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(double)):;
23728 rm -f conftest.$ac_objext
23729 if { (ac_try="$ac_compile"
23730 case "(($ac_try" in
23731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23732 *) ac_try_echo=$ac_try;;
23734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23735 (eval "$ac_compile") 2>conftest.er1
23737 grep -v '^ *+' conftest.er1 >conftest.err
23739 cat conftest.err >&5
23740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23741 (exit $ac_status); } && {
23742 test -z "$ac_c_werror_flag" ||
23743 test ! -s conftest.err
23744 } && test -s conftest.$ac_objext; then
23745 ac_cv_struct_boundary_double=$ac_size
23747 echo "$as_me: failed program was:" >&5
23748 sed 's/^/| /' conftest.$ac_ext >&5
23753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23754 if test x$ac_cv_struct_boundary_double != x ; then break; fi
23759 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_double" >&5
23760 echo "${ECHO_T}$ac_cv_struct_boundary_double" >&6; }
23761 if test x$ac_cv_struct_boundary_double = x ; then
23762 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of double in structures" >&5
23763 echo "$as_me: error: Cannot determine the minimal alignment boundary of double in structures" >&2;}
23764 { (exit 1); exit 1; }; }
23768 { echo "$as_me:$LINENO: checking size of void *" >&5
23769 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
23770 if test "${ac_cv_sizeof_void_p+set}" = set; then
23771 echo $ECHO_N "(cached) $ECHO_C" >&6
23773 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23774 cat >conftest.$ac_ext <<_ACEOF
23777 cat confdefs.h >>conftest.$ac_ext
23778 cat >>conftest.$ac_ext <<_ACEOF
23779 /* end confdefs.h. */
23780 #include "confdefs.h"
23781 #include <sys/types.h>
23787 switch (0) case 0: case (sizeof (void *) == $ac_size):;
23792 rm -f conftest.$ac_objext
23793 if { (ac_try="$ac_compile"
23794 case "(($ac_try" in
23795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23796 *) ac_try_echo=$ac_try;;
23798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23799 (eval "$ac_compile") 2>conftest.er1
23801 grep -v '^ *+' conftest.er1 >conftest.err
23803 cat conftest.err >&5
23804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23805 (exit $ac_status); } && {
23806 test -z "$ac_c_werror_flag" ||
23807 test ! -s conftest.err
23808 } && test -s conftest.$ac_objext; then
23809 ac_cv_sizeof_void_p=$ac_size
23811 echo "$as_me: failed program was:" >&5
23812 sed 's/^/| /' conftest.$ac_ext >&5
23817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23818 if test x$ac_cv_sizeof_void_p != x ; then break; fi
23824 if test x$ac_cv_sizeof_void_p = x ; then
23825 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
23826 echo "$as_me: error: cannot determine a size for void *" >&2;}
23827 { (exit 1); exit 1; }; }
23829 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
23830 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
23831 { echo "$as_me:$LINENO: checking for the minimal structure boundary of void *" >&5
23832 echo $ECHO_N "checking for the minimal structure boundary of void *... $ECHO_C" >&6; }
23834 if test "${ac_cv_struct_boundary_void_p+set}" = set; then
23835 echo $ECHO_N "(cached) $ECHO_C" >&6
23837 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23838 cat >conftest.$ac_ext <<_ACEOF
23841 cat confdefs.h >>conftest.$ac_ext
23842 cat >>conftest.$ac_ext <<_ACEOF
23843 /* end confdefs.h. */
23844 #include "confdefs.h"
23845 #include <sys/types.h>
23846 struct s { char c; void * i; };
23851 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(void *)):;
23856 rm -f conftest.$ac_objext
23857 if { (ac_try="$ac_compile"
23858 case "(($ac_try" in
23859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23860 *) ac_try_echo=$ac_try;;
23862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23863 (eval "$ac_compile") 2>conftest.er1
23865 grep -v '^ *+' conftest.er1 >conftest.err
23867 cat conftest.err >&5
23868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23869 (exit $ac_status); } && {
23870 test -z "$ac_c_werror_flag" ||
23871 test ! -s conftest.err
23872 } && test -s conftest.$ac_objext; then
23873 ac_cv_struct_boundary_void_p=$ac_size
23875 echo "$as_me: failed program was:" >&5
23876 sed 's/^/| /' conftest.$ac_ext >&5
23881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23882 if test x$ac_cv_struct_boundary_void_p != x ; then break; fi
23887 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_void_p" >&5
23888 echo "${ECHO_T}$ac_cv_struct_boundary_void_p" >&6; }
23889 if test x$ac_cv_struct_boundary_void_p = x ; then
23890 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of void * in structures" >&5
23891 echo "$as_me: error: Cannot determine the minimal alignment boundary of void * in structures" >&2;}
23892 { (exit 1); exit 1; }; }
23895 { echo "$as_me:$LINENO: checking size of void (*) (void)" >&5
23896 echo $ECHO_N "checking size of void (*) (void)... $ECHO_C" >&6; }
23897 if test "${ac_cv_sizeof_void_LpR_LvoidR+set}" = set; then
23898 echo $ECHO_N "(cached) $ECHO_C" >&6
23900 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23901 cat >conftest.$ac_ext <<_ACEOF
23904 cat confdefs.h >>conftest.$ac_ext
23905 cat >>conftest.$ac_ext <<_ACEOF
23906 /* end confdefs.h. */
23907 #include "confdefs.h"
23908 #include <sys/types.h>
23914 switch (0) case 0: case (sizeof (void (*) (void)) == $ac_size):;
23919 rm -f conftest.$ac_objext
23920 if { (ac_try="$ac_compile"
23921 case "(($ac_try" in
23922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23923 *) ac_try_echo=$ac_try;;
23925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23926 (eval "$ac_compile") 2>conftest.er1
23928 grep -v '^ *+' conftest.er1 >conftest.err
23930 cat conftest.err >&5
23931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23932 (exit $ac_status); } && {
23933 test -z "$ac_c_werror_flag" ||
23934 test ! -s conftest.err
23935 } && test -s conftest.$ac_objext; then
23936 ac_cv_sizeof_void_LpR_LvoidR=$ac_size
23938 echo "$as_me: failed program was:" >&5
23939 sed 's/^/| /' conftest.$ac_ext >&5
23944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23945 if test x$ac_cv_sizeof_void_LpR_LvoidR != x ; then break; fi
23951 if test x$ac_cv_sizeof_void_LpR_LvoidR = x ; then
23952 { { echo "$as_me:$LINENO: error: cannot determine a size for void (*) (void)" >&5
23953 echo "$as_me: error: cannot determine a size for void (*) (void)" >&2;}
23954 { (exit 1); exit 1; }; }
23956 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_LpR_LvoidR" >&5
23957 echo "${ECHO_T}$ac_cv_sizeof_void_LpR_LvoidR" >&6; }
23961 { echo "$as_me:$LINENO: checking the GRAS signature of this architecture" >&5
23962 echo $ECHO_N "checking the GRAS signature of this architecture... $ECHO_C" >&6; }
23963 if test x$endian = x1 ; then
23969 trace="$trace_endian"
23971 trace="${trace}_C:${ac_cv_sizeof_char}/${ac_cv_struct_boundary_char}:"
23973 trace="${trace}_I:${ac_cv_sizeof_short_int}/${ac_cv_struct_boundary_short_int}"
23974 trace="${trace}:${ac_cv_sizeof_int}/${ac_cv_struct_boundary_int}"
23975 trace="${trace}:${ac_cv_sizeof_long_int}/${ac_cv_struct_boundary_long_int}"
23976 trace="${trace}:${ac_cv_sizeof_long_long_int}/${ac_cv_struct_boundary_long_long_int}:"
23978 trace="${trace}_P:${ac_cv_sizeof_void_p}/${ac_cv_struct_boundary_void_p}"
23979 trace="${trace}:${ac_cv_sizeof_void_LpR_LvoidR}/${ac_cv_struct_boundary_void_p}:"
23981 trace="${trace}_D:4/${ac_cv_struct_boundary_float}:8/${ac_cv_struct_boundary_double}:"
23983 # sizeof float/double are not tested since IEEE 754 is assumed.
23984 # Check README.IEEE for rational.
23986 # The numbers after the _ in the arch name are the maximal packing boundary.
23987 # big32_2 means that all data are aligned on a 2 bytes boundary. (ARM)
23988 # big32_8_4 means that some or them are aligned on 8 bytes, some are on 4 bytes (AIX)
23990 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_arch_name=little32_1;;
23991 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_arch_name=little32_2;;
23992 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_arch_name=little32_4;;
23993 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_arch_name=little32_8;;
23995 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_arch_name=little64;;
23997 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_arch_name=big32;;
23998 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_arch_name=big32_8_4;;
23999 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_arch_name=big32_4;;
24000 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_arch_name=big32_2;;
24002 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_arch_name=big64;;
24003 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_arch_name=big64_8_4;;
24005 if test x$gras_arch = xunknown ; then
24006 { echo "$as_me:$LINENO: result: damnit ($trace)" >&5
24007 echo "${ECHO_T}damnit ($trace)" >&6; }
24008 { { echo "$as_me:$LINENO: error: Impossible to determine the GRAS architecture signature.
24009 Please report this architecture trace ($trace) and what it corresponds to." >&5
24010 echo "$as_me: error: Impossible to determine the GRAS architecture signature.
24011 Please report this architecture trace ($trace) and what it corresponds to." >&2;}
24012 { (exit 1); exit 1; }; }
24014 echo "$as_me:$LINENO: GRAS trace of this machine: $trace" >&5
24016 cat >>confdefs.h <<_ACEOF
24017 #define GRAS_THISARCH $gras_arch
24020 { echo "$as_me:$LINENO: result: $gras_arch ($gras_arch_name)" >&5
24021 echo "${ECHO_T}$gras_arch ($gras_arch_name)" >&6; }
24023 { echo "$as_me:$LINENO: checking the maximal size of scalar" >&5
24024 echo $ECHO_N "checking the maximal size of scalar... $ECHO_C" >&6; }
24026 for s in $ac_cv_sizeof_char \
24027 $ac_cv_sizeof_short_int $ac_cv_sizeof_int $ac_cv_sizeof_long_int $ac_cv_sizeof_long_long_int \
24028 $ac_cv_sizeof_void_p $ac_cv_sizeof_void_LpR_LvoidR \
24031 if test $ac_cv_sizeof_max -lt $s ; then
24032 ac_cv_sizeof_max=$s
24035 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_max" >&5
24036 echo "${ECHO_T}$ac_cv_sizeof_max" >&6; }
24038 cat >>confdefs.h <<_ACEOF
24039 #define SIZEOF_MAX $ac_cv_sizeof_max
24044 # Check architecture signature end
24045 { echo "$as_me:$LINENO: checking whether the struct gets packed" >&5
24046 echo $ECHO_N "checking whether the struct gets packed... $ECHO_C" >&6; }
24047 cat >conftest.$ac_ext <<_ACEOF
24050 cat confdefs.h >>conftest.$ac_ext
24051 cat >>conftest.$ac_ext <<_ACEOF
24052 /* end confdefs.h. */
24053 #include "confdefs.h"
24054 #include <sys/types.h>
24055 #include <stddef.h> /* offsetof() */
24056 struct s {char c; double d;};
24063 case (sizeof(struct s) == sizeof(double)+sizeof(char)):;
24069 rm -f conftest.$ac_objext
24070 if { (ac_try="$ac_compile"
24071 case "(($ac_try" in
24072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24073 *) ac_try_echo=$ac_try;;
24075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24076 (eval "$ac_compile") 2>conftest.er1
24078 grep -v '^ *+' conftest.er1 >conftest.err
24080 cat conftest.err >&5
24081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24082 (exit $ac_status); } && {
24083 test -z "$ac_c_werror_flag" ||
24084 test ! -s conftest.err
24085 } && test -s conftest.$ac_objext; then
24086 gras_struct_packed=yes
24088 echo "$as_me: failed program was:" >&5
24089 sed 's/^/| /' conftest.$ac_ext >&5
24091 gras_struct_packed=no
24094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24096 { echo "$as_me:$LINENO: result: $gras_struct_packed" >&5
24097 echo "${ECHO_T}$gras_struct_packed" >&6; }
24098 if test x$gras_struct_packed = "xyes" ; then
24099 { { echo "$as_me:$LINENO: error: GRAS does not support packed structures since it leads to nasty misalignments" >&5
24100 echo "$as_me: error: GRAS does not support packed structures since it leads to nasty misalignments" >&2;}
24101 { (exit 1); exit 1; }; }
24104 { echo "$as_me:$LINENO: checking whether the struct gets compacted" >&5
24105 echo $ECHO_N "checking whether the struct gets compacted... $ECHO_C" >&6; }
24106 cat >conftest.$ac_ext <<_ACEOF
24109 cat confdefs.h >>conftest.$ac_ext
24110 cat >>conftest.$ac_ext <<_ACEOF
24111 /* end confdefs.h. */
24112 #include "confdefs.h"
24113 #include <sys/types.h>
24114 #include <stddef.h> /* offsetof() */
24115 struct s {double d; int i; char c;};
24122 case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
24128 rm -f conftest.$ac_objext
24129 if { (ac_try="$ac_compile"
24130 case "(($ac_try" in
24131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24132 *) ac_try_echo=$ac_try;;
24134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24135 (eval "$ac_compile") 2>conftest.er1
24137 grep -v '^ *+' conftest.er1 >conftest.err
24139 cat conftest.err >&5
24140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24141 (exit $ac_status); } && {
24142 test -z "$ac_c_werror_flag" ||
24143 test ! -s conftest.err
24144 } && test -s conftest.$ac_objext; then
24145 gras_struct_compact=yes
24147 echo "$as_me: failed program was:" >&5
24148 sed 's/^/| /' conftest.$ac_ext >&5
24150 gras_struct_compact=no
24153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24155 { echo "$as_me:$LINENO: result: $gras_struct_compact" >&5
24156 echo "${ECHO_T}$gras_struct_compact" >&6; }
24158 if test x$gras_struct_compact != xyes ; then
24159 { { echo "$as_me:$LINENO: error: GRAS works only on structure compacting architectures (yet)" >&5
24160 echo "$as_me: error: GRAS works only on structure compacting architectures (yet)" >&2;}
24161 { (exit 1); exit 1; }; }
24164 cat >>confdefs.h <<_ACEOF
24165 #define GRAS_STRUCT_COMPACT 1
24168 { echo "$as_me:$LINENO: checking whether arrays can straddle struct alignment boundaries" >&5
24169 echo $ECHO_N "checking whether arrays can straddle struct alignment boundaries... $ECHO_C" >&6; }
24171 cat >conftest.$ac_ext <<_ACEOF
24174 cat confdefs.h >>conftest.$ac_ext
24175 cat >>conftest.$ac_ext <<_ACEOF
24176 /* end confdefs.h. */
24177 #include "confdefs.h"
24178 #include <sys/types.h>
24179 #include <stddef.h> /* offsetof() */
24180 struct s { double d; int i; char c[6]; };
24187 case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
24193 rm -f conftest.$ac_objext
24194 if { (ac_try="$ac_compile"
24195 case "(($ac_try" in
24196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24197 *) ac_try_echo=$ac_try;;
24199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24200 (eval "$ac_compile") 2>conftest.er1
24202 grep -v '^ *+' conftest.er1 >conftest.err
24204 cat conftest.err >&5
24205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24206 (exit $ac_status); } && {
24207 test -z "$ac_c_werror_flag" ||
24208 test ! -s conftest.err
24209 } && test -s conftest.$ac_objext; then
24210 gras_array_straddle_struct=yes
24212 echo "$as_me: failed program was:" >&5
24213 sed 's/^/| /' conftest.$ac_ext >&5
24215 gras_array_straddle_struct=no
24218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24220 { echo "$as_me:$LINENO: result: $gras_array_straddle_struct" >&5
24221 echo "${ECHO_T}$gras_array_straddle_struct" >&6; }
24223 if test x$gras_array_straddle_struct = xyes ; then
24225 cat >>confdefs.h <<_ACEOF
24226 #define GRAS_ARRAY_STRADDLE_STRUCT 1
24230 { { echo "$as_me:$LINENO: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&5
24231 echo "$as_me: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&2;}
24232 { (exit 1); exit 1; }; }
24239 { echo "$as_me:$LINENO: result: " >&5
24240 echo "${ECHO_T}" >&6; }
24241 { echo "$as_me:$LINENO: result: ${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&5
24242 echo "${ECHO_T}${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&6; }
24247 { echo "$as_me:$LINENO: checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)" >&5
24248 echo $ECHO_N "checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)... $ECHO_C" >&6; }
24249 if test "${ac_cv_check_mcsc+set}" = set; then
24250 echo $ECHO_N "(cached) $ECHO_C" >&6
24253 if test "$cross_compiling" = yes; then
24254 ac_cv_check_mcsc=no
24257 cat >conftest.$ac_ext <<_ACEOF
24260 cat confdefs.h >>conftest.$ac_ext
24261 cat >>conftest.$ac_ext <<_ACEOF
24262 /* end confdefs.h. */
24266 #include <stdlib.h>
24267 #include <ucontext.h>
24269 ucontext_t uc_child;
24270 ucontext_t uc_main;
24272 void child(void *arg)
24274 if (arg != (void *)12345)
24276 if (swapcontext(&uc_child, &uc_main) != 0)
24280 int main(int argc, char *argv[])
24285 /* the default is that it fails */
24286 if ((fp = fopen("conftestval", "w")) == NULL)
24288 fprintf(fp, "no\n");
24291 /* configure a child user-space context */
24292 if ((stack = malloc(64*1024)) == NULL)
24294 if (getcontext(&uc_child) != 0)
24296 uc_child.uc_link = NULL;
24297 uc_child.uc_stack.ss_sp = (char *)stack+(32*1024);
24298 uc_child.uc_stack.ss_size = 32*1024;
24299 uc_child.uc_stack.ss_flags = 0;
24300 makecontext(&uc_child, child, 2, (void *)12345);
24302 /* switch into the user context */
24303 if (swapcontext(&uc_main, &uc_child) != 0)
24306 /* Fine, child came home */
24307 if ((fp = fopen("conftestval", "w")) == NULL)
24309 fprintf(fp, "yes\n");
24312 /* die successfully */
24317 rm -f conftest$ac_exeext
24318 if { (ac_try="$ac_link"
24319 case "(($ac_try" in
24320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24321 *) ac_try_echo=$ac_try;;
24323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24324 (eval "$ac_link") 2>&5
24326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24327 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24328 { (case "(($ac_try" in
24329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24330 *) ac_try_echo=$ac_try;;
24332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24333 (eval "$ac_try") 2>&5
24335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24336 (exit $ac_status); }; }; then
24337 ac_cv_check_mcsc=`cat conftestval`
24339 echo "$as_me: program exited with status $ac_status" >&5
24340 echo "$as_me: failed program was:" >&5
24341 sed 's/^/| /' conftest.$ac_ext >&5
24343 ( exit $ac_status )
24344 ac_cv_check_mcsc=no
24346 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24351 { echo "$as_me:$LINENO: result: $ac_cv_check_mcsc" >&5
24352 echo "${ECHO_T}$ac_cv_check_mcsc" >&6; }
24353 if test ".$ac_cv_check_mcsc" = .yes; then
24361 for ac_header in pthread.h
24363 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24365 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24367 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24368 echo $ECHO_N "(cached) $ECHO_C" >&6
24370 ac_res=`eval echo '${'$as_ac_Header'}'`
24371 { echo "$as_me:$LINENO: result: $ac_res" >&5
24372 echo "${ECHO_T}$ac_res" >&6; }
24374 # Is the header compilable?
24375 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24376 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24377 cat >conftest.$ac_ext <<_ACEOF
24380 cat confdefs.h >>conftest.$ac_ext
24381 cat >>conftest.$ac_ext <<_ACEOF
24382 /* end confdefs.h. */
24383 $ac_includes_default
24384 #include <$ac_header>
24386 rm -f conftest.$ac_objext
24387 if { (ac_try="$ac_compile"
24388 case "(($ac_try" in
24389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24390 *) ac_try_echo=$ac_try;;
24392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24393 (eval "$ac_compile") 2>conftest.er1
24395 grep -v '^ *+' conftest.er1 >conftest.err
24397 cat conftest.err >&5
24398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24399 (exit $ac_status); } && {
24400 test -z "$ac_c_werror_flag" ||
24401 test ! -s conftest.err
24402 } && test -s conftest.$ac_objext; then
24403 ac_header_compiler=yes
24405 echo "$as_me: failed program was:" >&5
24406 sed 's/^/| /' conftest.$ac_ext >&5
24408 ac_header_compiler=no
24411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24412 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24413 echo "${ECHO_T}$ac_header_compiler" >&6; }
24415 # Is the header present?
24416 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24417 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24418 cat >conftest.$ac_ext <<_ACEOF
24421 cat confdefs.h >>conftest.$ac_ext
24422 cat >>conftest.$ac_ext <<_ACEOF
24423 /* end confdefs.h. */
24424 #include <$ac_header>
24426 if { (ac_try="$ac_cpp conftest.$ac_ext"
24427 case "(($ac_try" in
24428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24429 *) ac_try_echo=$ac_try;;
24431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24432 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24434 grep -v '^ *+' conftest.er1 >conftest.err
24436 cat conftest.err >&5
24437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24438 (exit $ac_status); } >/dev/null && {
24439 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24440 test ! -s conftest.err
24442 ac_header_preproc=yes
24444 echo "$as_me: failed program was:" >&5
24445 sed 's/^/| /' conftest.$ac_ext >&5
24447 ac_header_preproc=no
24450 rm -f conftest.err conftest.$ac_ext
24451 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24452 echo "${ECHO_T}$ac_header_preproc" >&6; }
24454 # So? What about this header?
24455 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24457 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24458 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24460 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24461 ac_header_preproc=yes
24464 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24465 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24466 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24467 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24468 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24469 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24470 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24471 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24473 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24474 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24475 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24477 ## -------------------------------------------------- ##
24478 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
24479 ## -------------------------------------------------- ##
24481 ) | sed "s/^/$as_me: WARNING: /" >&2
24484 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24486 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24487 echo $ECHO_N "(cached) $ECHO_C" >&6
24489 eval "$as_ac_Header=\$ac_header_preproc"
24491 ac_res=`eval echo '${'$as_ac_Header'}'`
24492 { echo "$as_me:$LINENO: result: $ac_res" >&5
24493 echo "${ECHO_T}$ac_res" >&6; }
24496 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24497 cat >>confdefs.h <<_ACEOF
24498 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24505 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
24506 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
24507 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
24508 echo $ECHO_N "(cached) $ECHO_C" >&6
24510 ac_check_lib_save_LIBS=$LIBS
24511 LIBS="-lpthread $LIBS"
24512 cat >conftest.$ac_ext <<_ACEOF
24515 cat confdefs.h >>conftest.$ac_ext
24516 cat >>conftest.$ac_ext <<_ACEOF
24517 /* end confdefs.h. */
24519 /* Override any GCC internal prototype to avoid an error.
24520 Use char because int might match the return type of a GCC
24521 builtin and then its argument prototype would still apply. */
24525 char pthread_create ();
24529 return pthread_create ();
24534 rm -f conftest.$ac_objext conftest$ac_exeext
24535 if { (ac_try="$ac_link"
24536 case "(($ac_try" in
24537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24538 *) ac_try_echo=$ac_try;;
24540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24541 (eval "$ac_link") 2>conftest.er1
24543 grep -v '^ *+' conftest.er1 >conftest.err
24545 cat conftest.err >&5
24546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24547 (exit $ac_status); } && {
24548 test -z "$ac_c_werror_flag" ||
24549 test ! -s conftest.err
24550 } && test -s conftest$ac_exeext &&
24551 $as_test_x conftest$ac_exeext; then
24552 ac_cv_lib_pthread_pthread_create=yes
24554 echo "$as_me: failed program was:" >&5
24555 sed 's/^/| /' conftest.$ac_ext >&5
24557 ac_cv_lib_pthread_pthread_create=no
24560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24561 conftest$ac_exeext conftest.$ac_ext
24562 LIBS=$ac_check_lib_save_LIBS
24564 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
24565 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
24566 if test $ac_cv_lib_pthread_pthread_create = yes; then
24574 if test ".$mcsc" = .yes; then
24576 elif test ".$pthread" = .yes; then
24579 ac_header=windows.h
24580 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24582 windows_context=yes
24584 { { echo "$as_me:$LINENO: error: no appropriate backend found" >&5
24585 echo "$as_me: error: no appropriate backend found" >&2;}
24586 { (exit 1); exit 1; }; }
24591 { echo "$as_me:$LINENO: checking what kind of backend should we use" >&5
24592 echo $ECHO_N "checking what kind of backend should we use... $ECHO_C" >&6; }
24595 # Check whether --with-pthread was given.
24596 if test "${with_pthread+set}" = set; then
24597 withval=$with_pthread; with_context=pthread
24601 # Check whether --with-pthread was given.
24602 if test "${with_pthread+set}" = set; then
24603 withval=$with_pthread; with_context=pthread
24608 # Check whether --with-context was given.
24609 if test "${with_context+set}" = set; then
24610 withval=$with_context;
24616 if test "x$with_context$mcsc" = "xucontextno" ; then
24617 { { echo "$as_me:$LINENO: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&5
24618 echo "$as_me: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&2;}
24619 { (exit 77); exit 77; }; }
24622 case $with_context in
24627 auto) with_context=ucontext;;
24628 *) { { echo "$as_me:$LINENO: error: --with-context must be either ucontext or pthread" >&5
24629 echo "$as_me: error: --with-context must be either ucontext or pthread" >&2;}
24630 { (exit 1); exit 1; }; } ;;
24633 if test "x$with_context" = "xucontext" ; then
24634 if test ".$mcsc" = .yes; then
24635 { echo "$as_me:$LINENO: result: found working ucontext. Great!" >&5
24636 echo "${ECHO_T}found working ucontext. Great!" >&6; }
24638 cat >>confdefs.h <<\_ACEOF
24639 #define CONTEXT_UCONTEXT 1
24643 if test ".$windows_context" = .yes ; then
24644 { echo "$as_me:$LINENO: result: use windows context portability layer." >&5
24645 echo "${ECHO_T}use windows context portability layer." >&6; }
24646 with_context=windows
24648 { echo "$as_me:$LINENO: result: no working ucontext found. Try pthreads as a fallback" >&5
24649 echo "${ECHO_T}no working ucontext found. Try pthreads as a fallback" >&6; }
24650 with_context=pthread
24655 if test "x$with_context" = "xpthreads"; then
24656 with_context=pthread
24658 if test "x$with_context" = "xpthread"; then
24660 for ac_header in pthread.h
24662 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24664 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24667 echo $ECHO_N "(cached) $ECHO_C" >&6
24669 ac_res=`eval echo '${'$as_ac_Header'}'`
24670 { echo "$as_me:$LINENO: result: $ac_res" >&5
24671 echo "${ECHO_T}$ac_res" >&6; }
24673 # Is the header compilable?
24674 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24675 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24676 cat >conftest.$ac_ext <<_ACEOF
24679 cat confdefs.h >>conftest.$ac_ext
24680 cat >>conftest.$ac_ext <<_ACEOF
24681 /* end confdefs.h. */
24682 $ac_includes_default
24683 #include <$ac_header>
24685 rm -f conftest.$ac_objext
24686 if { (ac_try="$ac_compile"
24687 case "(($ac_try" in
24688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24689 *) ac_try_echo=$ac_try;;
24691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24692 (eval "$ac_compile") 2>conftest.er1
24694 grep -v '^ *+' conftest.er1 >conftest.err
24696 cat conftest.err >&5
24697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24698 (exit $ac_status); } && {
24699 test -z "$ac_c_werror_flag" ||
24700 test ! -s conftest.err
24701 } && test -s conftest.$ac_objext; then
24702 ac_header_compiler=yes
24704 echo "$as_me: failed program was:" >&5
24705 sed 's/^/| /' conftest.$ac_ext >&5
24707 ac_header_compiler=no
24710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24711 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24712 echo "${ECHO_T}$ac_header_compiler" >&6; }
24714 # Is the header present?
24715 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24716 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24717 cat >conftest.$ac_ext <<_ACEOF
24720 cat confdefs.h >>conftest.$ac_ext
24721 cat >>conftest.$ac_ext <<_ACEOF
24722 /* end confdefs.h. */
24723 #include <$ac_header>
24725 if { (ac_try="$ac_cpp conftest.$ac_ext"
24726 case "(($ac_try" in
24727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24728 *) ac_try_echo=$ac_try;;
24730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24731 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24733 grep -v '^ *+' conftest.er1 >conftest.err
24735 cat conftest.err >&5
24736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24737 (exit $ac_status); } >/dev/null && {
24738 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24739 test ! -s conftest.err
24741 ac_header_preproc=yes
24743 echo "$as_me: failed program was:" >&5
24744 sed 's/^/| /' conftest.$ac_ext >&5
24746 ac_header_preproc=no
24749 rm -f conftest.err conftest.$ac_ext
24750 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24751 echo "${ECHO_T}$ac_header_preproc" >&6; }
24753 # So? What about this header?
24754 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24756 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24757 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24759 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24760 ac_header_preproc=yes
24763 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24764 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24765 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24766 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24767 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24768 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24769 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24770 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24772 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24773 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24774 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24776 ## -------------------------------------------------- ##
24777 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
24778 ## -------------------------------------------------- ##
24780 ) | sed "s/^/$as_me: WARNING: /" >&2
24783 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24785 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24786 echo $ECHO_N "(cached) $ECHO_C" >&6
24788 eval "$as_ac_Header=\$ac_header_preproc"
24790 ac_res=`eval echo '${'$as_ac_Header'}'`
24791 { echo "$as_me:$LINENO: result: $ac_res" >&5
24792 echo "${ECHO_T}$ac_res" >&6; }
24795 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24796 cat >>confdefs.h <<_ACEOF
24797 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24805 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
24806 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
24807 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
24808 echo $ECHO_N "(cached) $ECHO_C" >&6
24810 ac_check_lib_save_LIBS=$LIBS
24811 LIBS="-lpthread $LIBS"
24812 cat >conftest.$ac_ext <<_ACEOF
24815 cat confdefs.h >>conftest.$ac_ext
24816 cat >>conftest.$ac_ext <<_ACEOF
24817 /* end confdefs.h. */
24819 /* Override any GCC internal prototype to avoid an error.
24820 Use char because int might match the return type of a GCC
24821 builtin and then its argument prototype would still apply. */
24825 char pthread_create ();
24829 return pthread_create ();
24834 rm -f conftest.$ac_objext conftest$ac_exeext
24835 if { (ac_try="$ac_link"
24836 case "(($ac_try" in
24837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24838 *) ac_try_echo=$ac_try;;
24840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24841 (eval "$ac_link") 2>conftest.er1
24843 grep -v '^ *+' conftest.er1 >conftest.err
24845 cat conftest.err >&5
24846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24847 (exit $ac_status); } && {
24848 test -z "$ac_c_werror_flag" ||
24849 test ! -s conftest.err
24850 } && test -s conftest$ac_exeext &&
24851 $as_test_x conftest$ac_exeext; then
24852 ac_cv_lib_pthread_pthread_create=yes
24854 echo "$as_me: failed program was:" >&5
24855 sed 's/^/| /' conftest.$ac_ext >&5
24857 ac_cv_lib_pthread_pthread_create=no
24860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24861 conftest$ac_exeext conftest.$ac_ext
24862 LIBS=$ac_check_lib_save_LIBS
24864 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
24865 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
24866 if test $ac_cv_lib_pthread_pthread_create = yes; then
24867 cat >>confdefs.h <<_ACEOF
24868 #define HAVE_LIBPTHREAD 1
24871 LIBS="-lpthread $LIBS"
24874 { { echo "$as_me:$LINENO: error: Cannot find pthreads (try --with-context=ucontext if you haven't already tried)." >&5
24875 echo "$as_me: error: Cannot find pthreads (try --with-context=ucontext if you haven't already tried)." >&2;}
24876 { (exit 1); exit 1; }; }
24880 cat >>confdefs.h <<\_ACEOF
24881 #define CONTEXT_THREADS 1
24884 { echo "$as_me:$LINENO: result: You have pthreads. Let's use them." >&5
24885 echo "${ECHO_T}You have pthreads. Let's use them." >&6; }
24889 if test "x$with_context" = "xucontext" ; then
24890 { echo "$as_me:$LINENO: checking for direction of stack growth" >&5
24891 echo $ECHO_N "checking for direction of stack growth... $ECHO_C" >&6; }
24892 if test "${ac_cv_check_stackgrowth+set}" = set; then
24893 echo $ECHO_N "(cached) $ECHO_C" >&6
24897 if test "$cross_compiling" = yes; then
24898 ac_cv_check_stackgrowth=down
24901 cat >conftest.$ac_ext <<_ACEOF
24904 cat confdefs.h >>conftest.$ac_ext
24905 cat >>conftest.$ac_ext <<_ACEOF
24906 /* end confdefs.h. */
24909 #include <stdlib.h>
24910 static int iterate = 10;
24911 static int growsdown(int *x)
24921 int main(int argc, char *argv[])
24925 if ((f = fopen("conftestval", "w")) == NULL)
24927 fprintf(f, "%s\n", growsdown(&x) ? "down" : "up");;
24934 rm -f conftest$ac_exeext
24935 if { (ac_try="$ac_link"
24936 case "(($ac_try" in
24937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24938 *) ac_try_echo=$ac_try;;
24940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24941 (eval "$ac_link") 2>&5
24943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24944 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24945 { (case "(($ac_try" in
24946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24947 *) ac_try_echo=$ac_try;;
24949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24950 (eval "$ac_try") 2>&5
24952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24953 (exit $ac_status); }; }; then
24954 ac_cv_check_stackgrowth=`cat conftestval`
24956 echo "$as_me: program exited with status $ac_status" >&5
24957 echo "$as_me: failed program was:" >&5
24958 sed 's/^/| /' conftest.$ac_ext >&5
24960 ( exit $ac_status )
24961 ac_cv_check_stackgrowth=down
24963 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24968 { echo "$as_me:$LINENO: result: $ac_cv_check_stackgrowth" >&5
24969 echo "${ECHO_T}$ac_cv_check_stackgrowth" >&6; }
24970 if test ".$ac_cv_check_stackgrowth" = ".down"; then
24976 cat >>confdefs.h <<_ACEOF
24977 #define PTH_STACKGROWTH $val
24981 if test ".$ac_cv_check_stackgrowth" = ".down"; then
24982 PTH_STACK_GROWTH="down"
24984 PTH_STACK_GROWTH="up"
24992 for ac_func in makecontext
24994 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24995 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24996 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24997 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24998 echo $ECHO_N "(cached) $ECHO_C" >&6
25000 cat >conftest.$ac_ext <<_ACEOF
25003 cat confdefs.h >>conftest.$ac_ext
25004 cat >>conftest.$ac_ext <<_ACEOF
25005 /* end confdefs.h. */
25006 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25007 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25008 #define $ac_func innocuous_$ac_func
25010 /* System header to define __stub macros and hopefully few prototypes,
25011 which can conflict with char $ac_func (); below.
25012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25013 <limits.h> exists even on freestanding compilers. */
25016 # include <limits.h>
25018 # include <assert.h>
25023 /* Override any GCC internal prototype to avoid an error.
25024 Use char because int might match the return type of a GCC
25025 builtin and then its argument prototype would still apply. */
25030 /* The GNU C library defines this for functions which it implements
25031 to always fail with ENOSYS. Some functions are actually named
25032 something starting with __ and the normal name is an alias. */
25033 #if defined __stub_$ac_func || defined __stub___$ac_func
25040 return $ac_func ();
25045 rm -f conftest.$ac_objext conftest$ac_exeext
25046 if { (ac_try="$ac_link"
25047 case "(($ac_try" in
25048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25049 *) ac_try_echo=$ac_try;;
25051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25052 (eval "$ac_link") 2>conftest.er1
25054 grep -v '^ *+' conftest.er1 >conftest.err
25056 cat conftest.err >&5
25057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25058 (exit $ac_status); } && {
25059 test -z "$ac_c_werror_flag" ||
25060 test ! -s conftest.err
25061 } && test -s conftest$ac_exeext &&
25062 $as_test_x conftest$ac_exeext; then
25063 eval "$as_ac_var=yes"
25065 echo "$as_me: failed program was:" >&5
25066 sed 's/^/| /' conftest.$ac_ext >&5
25068 eval "$as_ac_var=no"
25071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25072 conftest$ac_exeext conftest.$ac_ext
25074 ac_res=`eval echo '${'$as_ac_var'}'`
25075 { echo "$as_me:$LINENO: result: $ac_res" >&5
25076 echo "${ECHO_T}$ac_res" >&6; }
25077 if test `eval echo '${'$as_ac_var'}'` = yes; then
25078 cat >>confdefs.h <<_ACEOF
25079 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25086 { echo "$as_me:$LINENO: checking for stack setup via makecontext" >&5
25087 echo $ECHO_N "checking for stack setup via makecontext... $ECHO_C" >&6; }
25088 if test "${ac_cv_stacksetup_makecontext+set}" = set; then
25089 echo $ECHO_N "(cached) $ECHO_C" >&6
25092 if test ".$ac_cv_func_makecontext" = .no; then
25093 ac_cv_stacksetup_makecontext="N.A.:/*N.A.*/,/*N.A.*/"
25096 CFLAGS="$CFLAGS -DTEST_makecontext"
25098 if test "$cross_compiling" = yes; then
25100 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
25103 cat >conftest.$ac_ext <<_ACEOF
25106 cat confdefs.h >>conftest.$ac_ext
25107 cat >>conftest.$ac_ext <<_ACEOF
25108 /* end confdefs.h. */
25111 #include <stdlib.h>
25112 #include <string.h>
25113 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25114 #include <sys/types.h>
25115 #include <signal.h>
25116 #include <unistd.h>
25118 #if defined(TEST_makecontext)
25119 #include <ucontext.h>
25128 static volatile char *handler_addr = (char *)0xDEAD;
25129 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25130 static volatile int handler_done = 0;
25131 void handler(int sig)
25133 char garbage[1024];
25136 for (i = 0; i < 1024; i++)
25138 handler_addr = (char *)&dummy;
25143 #if defined(TEST_makecontext)
25144 static ucontext_t uc_handler;
25145 static ucontext_t uc_main;
25148 char garbage[1024];
25151 for (i = 0; i < 1024; i++)
25153 handler_addr = (char *)&dummy;
25154 swapcontext(&uc_handler, &uc_main);
25158 int main(int argc, char *argv[])
25167 skbuf = (char *)malloc(sksize*2+2*sizeof(union alltypes));
25170 for (i = 0; i < sksize*2+2*sizeof(union alltypes); i++)
25172 skaddr = skbuf+sizeof(union alltypes);
25173 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25175 struct sigaction sa;
25176 #if defined(TEST_sigstack)
25177 struct sigstack ss;
25178 #elif defined(TEST_sigaltstack) && defined(HAVE_STACK_T)
25181 struct sigaltstack ss;
25183 #if defined(TEST_sigstack)
25184 ss.ss_sp = (void *)(skaddr + sksize);
25186 if (sigstack(&ss, NULL) < 0)
25188 #elif defined(TEST_sigaltstack)
25189 ss.ss_sp = (void *)(skaddr + sksize);
25190 ss.ss_size = sksize;
25192 if (sigaltstack(&ss, NULL) < 0)
25195 memset((void *)&sa, 0, sizeof(struct sigaction));
25196 sa.sa_handler = handler;
25197 sa.sa_flags = SA_ONSTACK;
25198 sigemptyset(&sa.sa_mask);
25199 sigaction(SIGUSR1, &sa, NULL);
25200 kill(getpid(), SIGUSR1);
25201 while (!handler_done)
25205 #if defined(TEST_makecontext)
25207 if (getcontext(&uc_handler) != 0)
25209 uc_handler.uc_link = NULL;
25210 uc_handler.uc_stack.ss_sp = (void *)(skaddr + sksize);
25211 uc_handler.uc_stack.ss_size = sksize;
25212 uc_handler.uc_stack.ss_flags = 0;
25213 makecontext(&uc_handler, handler, 1);
25214 swapcontext(&uc_main, &uc_handler);
25217 if (handler_addr == (char *)0xDEAD)
25219 if (handler_addr < skaddr+sksize) {
25220 /* stack was placed into lower area */
25221 if (*(skaddr+sksize) != 'A')
25222 sprintf(result, "(skaddr)+(sksize)-%d,(sksize)-%d",
25223 sizeof(union alltypes), sizeof(union alltypes));
25225 strcpy(result, "(skaddr)+(sksize),(sksize)");
25228 /* stack was placed into higher area */
25229 if (*(skaddr+sksize*2) != 'A')
25230 sprintf(result, "(skaddr),(sksize)-%d", sizeof(union alltypes));
25232 strcpy(result, "(skaddr),(sksize)");
25234 if ((f = fopen("conftestval", "w")) == NULL)
25236 fprintf(f, "%s\n", result);
25242 rm -f conftest$ac_exeext
25243 if { (ac_try="$ac_link"
25244 case "(($ac_try" in
25245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25246 *) ac_try_echo=$ac_try;;
25248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25249 (eval "$ac_link") 2>&5
25251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25252 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
25260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25261 (exit $ac_status); }; }; then
25263 ac_cv_stacksetup_makecontext=`cat conftestval`
25264 ac_cv_stacksetup_makecontext="ok:$ac_cv_stacksetup_makecontext"
25267 echo "$as_me: program exited with status $ac_status" >&5
25268 echo "$as_me: failed program was:" >&5
25269 sed 's/^/| /' conftest.$ac_ext >&5
25271 ( exit $ac_status )
25273 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
25276 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25284 type=`echo $ac_cv_stacksetup_makecontext | sed -e 's;:.*$;;'`
25285 addr=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;,.*$;;'`
25286 size=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;^.*,;;'`
25287 pth_skaddr_makecontext="#define pth_skaddr_makecontext(skaddr,sksize) ($addr)"
25288 pth_sksize_makecontext="#define pth_sksize_makecontext(skaddr,sksize) ($size)"
25289 { echo "$as_me:$LINENO: result: $type" >&5
25290 echo "${ECHO_T}$type" >&6; }
25291 if test ".$verbose" = .yes; then
25292 { echo "$as_me:$LINENO: result: $pth_skaddr_makecontext" >&5
25293 echo "${ECHO_T} $pth_skaddr_makecontext" >&6; }
25296 if test ".$verbose" = .yes; then
25297 { echo "$as_me:$LINENO: result: $pth_sksize_makecontext" >&5
25298 echo "${ECHO_T} $pth_sksize_makecontext" >&6; }
25305 #########################################
25306 ## Build optional modules (simix)
25309 { echo "$as_me:$LINENO: result: " >&5
25310 echo "${ECHO_T}" >&6; }
25311 { echo "$as_me:$LINENO: result: ${T_MD}Optional modules${T_ME}" >&5
25312 echo "${ECHO_T}${T_MD}Optional modules${T_ME}" >&6; }
25314 # Check whether --enable-simix was given.
25315 if test "${enable_simix+set}" = set; then
25316 enableval=$enable_simix; enable_simix=$enableval
25321 if test "x$enable_simix" = "xyes" ; then
25322 { echo "$as_me:$LINENO: result: ***** You have decided to use the experimental SimIX. We hope you know what you're doing.. ****" >&5
25323 echo "${ECHO_T}***** You have decided to use the experimental SimIX. We hope you know what you're doing.. ****" >&6; }
25325 cat >>confdefs.h <<\_ACEOF
25326 #define USE_SIMIX 1
25330 { echo "$as_me:$LINENO: result: Eventually you will come to SimIX." >&5
25331 echo "${ECHO_T}Eventually you will come to SimIX." >&6; }
25335 if test x$enable_simix != xno; then
25337 USE_SIMIX_FALSE='#'
25344 #########################################
25345 ## Build optional modules (gtnets)
25348 # Check whether --with-gtnets was given.
25349 if test "${with_gtnets+set}" = set; then
25350 withval=$with_gtnets; gtnets_path="$withval"
25355 if test "x$gtnets_path" = "xNO" ; then
25356 { echo "$as_me:$LINENO: result: Eventually you will come to GTNetS. $gtnets_path" >&5
25357 echo "${ECHO_T}Eventually you will come to GTNetS. $gtnets_path" >&6; }
25359 { echo "$as_me:$LINENO: result: ***** You have decided to use the experimental GTNetS. We hope you know what you're doing.. ****" >&5
25360 echo "${ECHO_T}***** You have decided to use the experimental GTNetS. We hope you know what you're doing.. ****" >&6; }
25362 cat >>confdefs.h <<\_ACEOF
25363 #define USE_GTNETS 1
25366 if ! test -e $gtnets_path ; then
25367 { { echo "$as_me:$LINENO: error: Provided path to GTNetS include files ($gtnets_path) do not exist!" >&5
25368 echo "$as_me: error: Provided path to GTNetS include files ($gtnets_path) do not exist!" >&2;}
25369 { (exit 1); exit 1; }; }
25371 GTNETS_CFLAGS=-I$gtnets_path/include
25373 GTNETS_LDFLAGS=-L$gtnets_path/lib
25378 if test "x$gtnets_path" != xNO; then
25380 USE_GTNETS_FALSE='#'
25382 USE_GTNETS_TRUE='#'
25387 #########################################
25388 ## Check for libraries extra-dependencies
25392 { echo "$as_me:$LINENO: result: " >&5
25393 echo "${ECHO_T}" >&6; }
25394 { echo "$as_me:$LINENO: result: ${T_MD}Checking extra libraries dependencies...${T_ME}" >&5
25395 echo "${ECHO_T}${T_MD}Checking extra libraries dependencies...${T_ME}" >&6; }
25400 if test xpthread=xyes ; then
25401 # if the pthreads are usable
25402 if test "x$with_context" = "xpthread" ; then
25403 # if we use them to implement the xbt_context
25404 SIMGRID_DEP="-lpthread"
25406 # we need them in any case for the gras lib (which is multithreaded)
25407 GRAS_DEP="-lpthread"
25410 { echo "$as_me:$LINENO: checking for csdp" >&5
25411 echo $ECHO_N "checking for csdp... $ECHO_C" >&6; }
25413 { echo "$as_me:$LINENO: checking for sdp in -lsdp" >&5
25414 echo $ECHO_N "checking for sdp in -lsdp... $ECHO_C" >&6; }
25415 if test "${ac_cv_lib_sdp_sdp+set}" = set; then
25416 echo $ECHO_N "(cached) $ECHO_C" >&6
25418 ac_check_lib_save_LIBS=$LIBS
25419 LIBS="-lsdp -llapack -lblas -lm $LIBS"
25420 cat >conftest.$ac_ext <<_ACEOF
25423 cat confdefs.h >>conftest.$ac_ext
25424 cat >>conftest.$ac_ext <<_ACEOF
25425 /* end confdefs.h. */
25427 /* Override any GCC internal prototype to avoid an error.
25428 Use char because int might match the return type of a GCC
25429 builtin and then its argument prototype would still apply. */
25442 rm -f conftest.$ac_objext conftest$ac_exeext
25443 if { (ac_try="$ac_link"
25444 case "(($ac_try" in
25445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25446 *) ac_try_echo=$ac_try;;
25448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25449 (eval "$ac_link") 2>conftest.er1
25451 grep -v '^ *+' conftest.er1 >conftest.err
25453 cat conftest.err >&5
25454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25455 (exit $ac_status); } && {
25456 test -z "$ac_c_werror_flag" ||
25457 test ! -s conftest.err
25458 } && test -s conftest$ac_exeext &&
25459 $as_test_x conftest$ac_exeext; then
25460 ac_cv_lib_sdp_sdp=yes
25462 echo "$as_me: failed program was:" >&5
25463 sed 's/^/| /' conftest.$ac_ext >&5
25465 ac_cv_lib_sdp_sdp=no
25468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25469 conftest$ac_exeext conftest.$ac_ext
25470 LIBS=$ac_check_lib_save_LIBS
25472 { echo "$as_me:$LINENO: result: $ac_cv_lib_sdp_sdp" >&5
25473 echo "${ECHO_T}$ac_cv_lib_sdp_sdp" >&6; }
25474 if test $ac_cv_lib_sdp_sdp = yes; then
25480 if test "x$csdp" = xyes; then
25481 SIMGRID_DEP="$SIMGRID_DEP -lsdp -llapack -lblas -lm"
25482 { echo "$as_me:$LINENO: result: Found working sdp library." >&5
25483 echo "${ECHO_T}Found working sdp library." >&6; }
25485 cat >>confdefs.h <<\_ACEOF
25490 { echo "$as_me:$LINENO: result: Could not find any working sdp library." >&5
25491 echo "${ECHO_T}Could not find any working sdp library." >&6; }
25495 if test x$csdp != xno; then
25506 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
25507 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
25508 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
25509 echo $ECHO_N "(cached) $ECHO_C" >&6
25511 ac_check_lib_save_LIBS=$LIBS
25513 cat >conftest.$ac_ext <<_ACEOF
25516 cat confdefs.h >>conftest.$ac_ext
25517 cat >>conftest.$ac_ext <<_ACEOF
25518 /* end confdefs.h. */
25520 /* Override any GCC internal prototype to avoid an error.
25521 Use char because int might match the return type of a GCC
25522 builtin and then its argument prototype would still apply. */
25526 char gethostbyname ();
25530 return gethostbyname ();
25535 rm -f conftest.$ac_objext conftest$ac_exeext
25536 if { (ac_try="$ac_link"
25537 case "(($ac_try" in
25538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25539 *) ac_try_echo=$ac_try;;
25541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25542 (eval "$ac_link") 2>conftest.er1
25544 grep -v '^ *+' conftest.er1 >conftest.err
25546 cat conftest.err >&5
25547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25548 (exit $ac_status); } && {
25549 test -z "$ac_c_werror_flag" ||
25550 test ! -s conftest.err
25551 } && test -s conftest$ac_exeext &&
25552 $as_test_x conftest$ac_exeext; then
25553 ac_cv_lib_nsl_gethostbyname=yes
25555 echo "$as_me: failed program was:" >&5
25556 sed 's/^/| /' conftest.$ac_ext >&5
25558 ac_cv_lib_nsl_gethostbyname=no
25561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25562 conftest$ac_exeext conftest.$ac_ext
25563 LIBS=$ac_check_lib_save_LIBS
25565 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
25566 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
25567 if test $ac_cv_lib_nsl_gethostbyname = yes; then
25568 GRAS_DEP="$GRAS_DEP -lnsl"
25571 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
25572 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
25573 if test "${ac_cv_lib_socket_connect+set}" = set; then
25574 echo $ECHO_N "(cached) $ECHO_C" >&6
25576 ac_check_lib_save_LIBS=$LIBS
25577 LIBS="-lsocket $LIBS"
25578 cat >conftest.$ac_ext <<_ACEOF
25581 cat confdefs.h >>conftest.$ac_ext
25582 cat >>conftest.$ac_ext <<_ACEOF
25583 /* end confdefs.h. */
25585 /* Override any GCC internal prototype to avoid an error.
25586 Use char because int might match the return type of a GCC
25587 builtin and then its argument prototype would still apply. */
25600 rm -f conftest.$ac_objext conftest$ac_exeext
25601 if { (ac_try="$ac_link"
25602 case "(($ac_try" in
25603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25604 *) ac_try_echo=$ac_try;;
25606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25607 (eval "$ac_link") 2>conftest.er1
25609 grep -v '^ *+' conftest.er1 >conftest.err
25611 cat conftest.err >&5
25612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25613 (exit $ac_status); } && {
25614 test -z "$ac_c_werror_flag" ||
25615 test ! -s conftest.err
25616 } && test -s conftest$ac_exeext &&
25617 $as_test_x conftest$ac_exeext; then
25618 ac_cv_lib_socket_connect=yes
25620 echo "$as_me: failed program was:" >&5
25621 sed 's/^/| /' conftest.$ac_ext >&5
25623 ac_cv_lib_socket_connect=no
25626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25627 conftest$ac_exeext conftest.$ac_ext
25628 LIBS=$ac_check_lib_save_LIBS
25630 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
25631 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
25632 if test $ac_cv_lib_socket_connect = yes; then
25633 GRAS_DEP="$GRAS_DEP -lsocket"
25637 { echo "$as_me:$LINENO: checking for extra dependencies of libgras" >&5
25638 echo $ECHO_N "checking for extra dependencies of libgras... $ECHO_C" >&6; }
25640 *mingw* ) GRAS_DEP="$GRAS_DEP -lws2_32" ; SIMGRID_DEP="$SIMGRID_DEP -lws2_32";
25641 AM_CFLAGS=-DDLL_EXPORT
25643 cat >>confdefs.h <<\_ACEOF
25644 #define CONTEXT_THREADS 1
25649 if test "x$GRAS_DEP" = x; then
25650 { echo "$as_me:$LINENO: result: none" >&5
25651 echo "${ECHO_T}none" >&6; }
25653 { echo "$as_me:$LINENO: result: $GRAS_DEP" >&5
25654 echo "${ECHO_T}$GRAS_DEP" >&6; }
25659 ##############################################
25660 ## Enhance maintainer mode and SUBST variables
25661 ## (must be placed after any compilation tests since our overprotective flags
25662 ## let some tests fail)
25664 # Check whether we are doing a regular build or a GRAMINE (minimal) one
25665 # Next line is modified by sed when building gramine source tree
25667 if test x$gramine_mode = xyes
25669 USE_MAINTAINER_MODE=no
25673 if test x$gramine_mode != xno; then
25675 GRAMINE_MODE_FALSE='#'
25677 GRAMINE_MODE_TRUE='#'
25678 GRAMINE_MODE_FALSE=
25683 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
25684 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
25685 # Check whether --enable-maintainer-mode was given.
25686 if test "${enable_maintainer_mode+set}" = set; then
25687 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
25689 USE_MAINTAINER_MODE=no
25692 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
25693 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
25696 if test $USE_MAINTAINER_MODE = yes; then
25697 MAINTAINER_MODE_TRUE=
25698 MAINTAINER_MODE_FALSE='#'
25700 MAINTAINER_MODE_TRUE='#'
25701 MAINTAINER_MODE_FALSE=
25704 MAINT=$MAINTAINER_MODE_TRUE
25707 if test x$USE_MAINTAINER_MODE = xyes
25709 # Maintainers have no choice ! I'm a BOFH, and I plainly assume. [Mt]
25710 enable_compile_warnings=yes
25713 # Check whether --enable-compile-warnings was given.
25714 if test "${enable_compile_warnings+set}" = set; then
25715 enableval=$enable_compile_warnings; enable_compile_warnings=$enableval
25717 enable_compile_warnings=no
25721 # Check whether --enable-compile-optimizations was given.
25722 if test "${enable_compile_optimizations+set}" = set; then
25723 enableval=$enable_compile_optimizations; enable_compile_optimizations=$enableval
25725 enable_compile_optimizations=auto
25729 if test "x$cflags_set" != "xyes" ; then
25730 # if user didn't specify CFLAGS explicitely
25732 # AC PROG CC tests whether -g is accepted.
25733 # Cool, but it also tries to set -O2. I don't want it with gcc
25734 saveCFLAGS="$CFLAGS"
25736 case " $saveCFLAGS " in
25737 *-g*) CFLAGS="-g" ;;
25739 case " $saveCFLAGS " in
25740 *-O2*) test "x$CC" = xgcc || CFLAGS="$CFLAGS -O2" ;;
25743 # damn AC PROG CC, why did you set -O??
25747 if test "x$enable_compile_warnings" = "xyes" ; then
25748 { echo "$as_me:$LINENO: checking the warning flags for this compiler" >&5
25749 echo $ECHO_N "checking the warning flags for this compiler... $ECHO_C" >&6; }
25751 if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
25752 case " $CFLAGS " in
25754 *) warnCFLAGS="-Wall -Wunused" ;;
25757 ## -W is not all that useful. And it cannot be controlled
25758 ## with individual -Wno-xxx flags, unlike -Wall
25760 ##Â -Wformat=2 chokes on the snprintf replacement because the format is passed to real sprintf
25761 ## -Wshadow chokes on try{ try{} } constructs
25762 if test "x$enable_compile_warnings" = "xyes"; then
25763 warnCFLAGS=`echo $warnCFLAGS -Wmissing-prototypes -Wmissing-declarations \
25764 -Wpointer-arith -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings \
25765 -Wno-unused-function \
25768 # -Wno-unused-variable -Wno-unused-label
25771 { echo "$as_me:$LINENO: result: $warnCFLAGS" >&5
25772 echo "${ECHO_T}$warnCFLAGS" >&6; }
25773 # placed before since gcc remembers the last one on conflict
25774 CFLAGS="$warnCFLAGS $CFLAGS"
25777 if test "x$enable_compile_optimizations" = "xyes" ||
25778 test "x$enable_compile_optimizations" = "xauto" ; then
25779 { echo "$as_me:$LINENO: checking the optimization flags for this compiler" >&5
25780 echo $ECHO_N "checking the optimization flags for this compiler... $ECHO_C" >&6; }
25782 if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
25783 case " $CFLAGS " in
25785 *) optCFLAGS="$optCFLAGS -O3" ;;
25787 optCFLAGS="$optCFLAGS -finline-functions -ffast-math -funroll-loops -fno-strict-aliasing"
25789 GCC_VER=`gcc --version | head -n 1 | sed 's/^^0-9*\(^ *\).*$/\1/'`
25790 GCC_VER_MAJ=`echo $GCC_VER | sed 's/^\(.\).*$/\1/'`
25791 if test "x$target_cpu" = "xpowerpc" && test "x$GCC_VER_MAJ" != "x2" ; then
25792 # avoid gcc bug #12828, which is fixed in 3.4.0, but this version
25793 # isn't propagated enough to desserve an extra check
25795 # Note that the flag didn't exist before gcc 3.0
25796 optCFLAGS="$optCFLAGS -fno-loop-optimize"
25799 { echo "$as_me:$LINENO: result: $optCFLAGS" >&5
25800 echo "${ECHO_T}$optCFLAGS" >&6; }
25801 # Take it only if CFLAGS not explicitly set. Unless the flag was explicitly given
25802 if test "x$cflags_set" != "xyes" ; then
25803 CFLAGS="$optCFLAGS $CFLAGS"
25807 if test x$lt_cv_prog_gnu_ld = xyes ; then
25808 LD_DYNAMIC_FLAGS=-Wl,--export-dynamic
25824 #####################
25825 ## Check for programs
25829 { echo "$as_me:$LINENO: result: " >&5
25830 echo "${ECHO_T}" >&6; }
25831 { echo "$as_me:$LINENO: result: ${T_MD}Check for programs...${T_ME}" >&5
25832 echo "${ECHO_T}${T_MD}Check for programs...${T_ME}" >&6; }
25834 # Extract the first word of "bash", so it can be a program name with args.
25835 set dummy bash; ac_word=$2
25836 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25838 if test "${ac_cv_prog_BASH+set}" = set; then
25839 echo $ECHO_N "(cached) $ECHO_C" >&6
25841 if test -n "$BASH"; then
25842 ac_cv_prog_BASH="$BASH" # Let the user override the test.
25844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25845 for as_dir in $PATH
25848 test -z "$as_dir" && as_dir=.
25849 for ac_exec_ext in '' $ac_executable_extensions; do
25850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25851 ac_cv_prog_BASH="`which bash`"
25852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25859 test -z "$ac_cv_prog_BASH" && ac_cv_prog_BASH="/bin/sh"
25862 BASH=$ac_cv_prog_BASH
25863 if test -n "$BASH"; then
25864 { echo "$as_me:$LINENO: result: $BASH" >&5
25865 echo "${ECHO_T}$BASH" >&6; }
25867 { echo "$as_me:$LINENO: result: no" >&5
25868 echo "${ECHO_T}no" >&6; }
25872 WARNING="This file is generated, do not edit"
25876 # Can we rebuild the parsers?
25877 # We really want flex and refuse other lex. So, the parser is portable and
25878 # does not induce extra lib dependency
25879 for ac_prog in flex lex
25881 # Extract the first word of "$ac_prog", so it can be a program name with args.
25882 set dummy $ac_prog; ac_word=$2
25883 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25885 if test "${ac_cv_prog_LEX+set}" = set; then
25886 echo $ECHO_N "(cached) $ECHO_C" >&6
25888 if test -n "$LEX"; then
25889 ac_cv_prog_LEX="$LEX" # Let the user override the test.
25891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25892 for as_dir in $PATH
25895 test -z "$as_dir" && as_dir=.
25896 for ac_exec_ext in '' $ac_executable_extensions; do
25897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25898 ac_cv_prog_LEX="$ac_prog"
25899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25908 LEX=$ac_cv_prog_LEX
25909 if test -n "$LEX"; then
25910 { echo "$as_me:$LINENO: result: $LEX" >&5
25911 echo "${ECHO_T}$LEX" >&6; }
25913 { echo "$as_me:$LINENO: result: no" >&5
25914 echo "${ECHO_T}no" >&6; }
25918 test -n "$LEX" && break
25920 test -n "$LEX" || LEX=":"
25922 if test "x$LEX" != "x:"; then
25923 cat >conftest.l <<_ACEOF
25929 e { yyless (input () != 0); }
25930 f { unput (yytext[0]); }
25931 . { BEGIN INITIAL; }
25933 #ifdef YYTEXT_POINTER
25934 extern char *yytext;
25939 return ! yylex () + ! yywrap ();
25942 { (ac_try="$LEX conftest.l"
25943 case "(($ac_try" in
25944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25945 *) ac_try_echo=$ac_try;;
25947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25948 (eval "$LEX conftest.l") 2>&5
25950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25951 (exit $ac_status); }
25952 { echo "$as_me:$LINENO: checking lex output file root" >&5
25953 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
25954 if test "${ac_cv_prog_lex_root+set}" = set; then
25955 echo $ECHO_N "(cached) $ECHO_C" >&6
25958 if test -f lex.yy.c; then
25959 ac_cv_prog_lex_root=lex.yy
25960 elif test -f lexyy.c; then
25961 ac_cv_prog_lex_root=lexyy
25963 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
25964 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
25965 { (exit 1); exit 1; }; }
25968 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
25969 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
25970 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
25972 if test -z "${LEXLIB+set}"; then
25973 { echo "$as_me:$LINENO: checking lex library" >&5
25974 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
25975 if test "${ac_cv_lib_lex+set}" = set; then
25976 echo $ECHO_N "(cached) $ECHO_C" >&6
25980 ac_cv_lib_lex='none needed'
25981 for ac_lib in '' -lfl -ll; do
25982 LIBS="$ac_lib $ac_save_LIBS"
25983 cat >conftest.$ac_ext <<_ACEOF
25984 `cat $LEX_OUTPUT_ROOT.c`
25986 rm -f conftest.$ac_objext conftest$ac_exeext
25987 if { (ac_try="$ac_link"
25988 case "(($ac_try" in
25989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25990 *) ac_try_echo=$ac_try;;
25992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25993 (eval "$ac_link") 2>conftest.er1
25995 grep -v '^ *+' conftest.er1 >conftest.err
25997 cat conftest.err >&5
25998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25999 (exit $ac_status); } && {
26000 test -z "$ac_c_werror_flag" ||
26001 test ! -s conftest.err
26002 } && test -s conftest$ac_exeext &&
26003 $as_test_x conftest$ac_exeext; then
26004 ac_cv_lib_lex=$ac_lib
26006 echo "$as_me: failed program was:" >&5
26007 sed 's/^/| /' conftest.$ac_ext >&5
26012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26013 conftest$ac_exeext conftest.$ac_ext
26014 test "$ac_cv_lib_lex" != 'none needed' && break
26019 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
26020 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
26021 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
26025 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
26026 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
26027 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
26028 echo $ECHO_N "(cached) $ECHO_C" >&6
26030 # POSIX says lex can declare yytext either as a pointer or an array; the
26031 # default is implementation-dependent. Figure out which it is, since
26032 # not all implementations provide the %pointer and %array declarations.
26033 ac_cv_prog_lex_yytext_pointer=no
26035 LIBS="$LEXLIB $ac_save_LIBS"
26036 cat >conftest.$ac_ext <<_ACEOF
26037 #define YYTEXT_POINTER 1
26038 `cat $LEX_OUTPUT_ROOT.c`
26040 rm -f conftest.$ac_objext conftest$ac_exeext
26041 if { (ac_try="$ac_link"
26042 case "(($ac_try" in
26043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26044 *) ac_try_echo=$ac_try;;
26046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26047 (eval "$ac_link") 2>conftest.er1
26049 grep -v '^ *+' conftest.er1 >conftest.err
26051 cat conftest.err >&5
26052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26053 (exit $ac_status); } && {
26054 test -z "$ac_c_werror_flag" ||
26055 test ! -s conftest.err
26056 } && test -s conftest$ac_exeext &&
26057 $as_test_x conftest$ac_exeext; then
26058 ac_cv_prog_lex_yytext_pointer=yes
26060 echo "$as_me: failed program was:" >&5
26061 sed 's/^/| /' conftest.$ac_ext >&5
26066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26067 conftest$ac_exeext conftest.$ac_ext
26071 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
26072 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
26073 if test $ac_cv_prog_lex_yytext_pointer = yes; then
26075 cat >>confdefs.h <<\_ACEOF
26076 #define YYTEXT_POINTER 1
26080 rm -f conftest.l $LEX_OUTPUT_ROOT.c
26084 if test "$LEX" != flex; then
26085 { echo "$as_me:$LINENO: Flex not found. Parsers won't get updated." >&5
26086 echo "$as_me: Flex not found. Parsers won't get updated." >&6;}
26087 LEX=${am_missing_run}flex
26091 if test "x2.5.30" != "x" ; then
26092 FLEX_VERSION=`flex --version | sed -e 's/^[^0-9]*//' -e 's/[^0-9]*$//'`
26094 FLEX_VER_MAJ=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
26095 FLEX_VER_MED=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
26096 FLEX_VER_MIN=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
26098 WANT_VER_MAJ=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`;
26099 WANT_VER_MED=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`;
26100 WANT_VER_MIN=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`;
26102 if test "$FLEX_VER_MAJ" -lt "$WANT_VER_MAJ" ||
26103 test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -lt "$WANT_VER_MED" ||
26104 test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -eq "$WANT_VER_MED" -a "$FLEX_VER_MIN" -lt "$WANT_VER_MIN" ;
26106 { echo "$as_me:$LINENO: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&5
26107 echo "$as_me: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&6;}
26108 LEX=${am_missing_run}flex
26112 { echo "$as_me:$LINENO: Flex found. Parsers will get updated" >&5
26113 echo "$as_me: Flex found. Parsers will get updated" >&6;}
26119 # Can we rebuild the xml-lexers from the XML specification?
26120 # if not, simply touch the flex source files (which are distributed in
26121 # tarballs even if generated by flexml) and hope for the best.
26122 # Extract the first word of "flexml", so it can be a program name with args.
26123 set dummy flexml; ac_word=$2
26124 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26126 if test "${ac_cv_prog_FLEXML+set}" = set; then
26127 echo $ECHO_N "(cached) $ECHO_C" >&6
26129 if test -n "$FLEXML"; then
26130 ac_cv_prog_FLEXML="$FLEXML" # Let the user override the test.
26132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26133 for as_dir in $PATH
26136 test -z "$as_dir" && as_dir=.
26137 for ac_exec_ext in '' $ac_executable_extensions; do
26138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26139 ac_cv_prog_FLEXML="`which flexml`"
26140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26147 test -z "$ac_cv_prog_FLEXML" && ac_cv_prog_FLEXML="NOTFOUND"
26150 FLEXML=$ac_cv_prog_FLEXML
26151 if test -n "$FLEXML"; then
26152 { echo "$as_me:$LINENO: result: $FLEXML" >&5
26153 echo "${ECHO_T}$FLEXML" >&6; }
26155 { echo "$as_me:$LINENO: result: no" >&5
26156 echo "${ECHO_T}no" >&6; }
26162 if test x$FLEXML != xNOTFOUND; then
26164 HAVE_FLEXML_FALSE='#'
26166 HAVE_FLEXML_TRUE='#'
26171 if test x$USE_MAINTAINER_MODE = xyes
26173 # Check for doxygen when in maintainer mode since dist* targets fail
26175 # Extract the first word of "doxygen", so it can be a program name with args.
26176 set dummy doxygen; ac_word=$2
26177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26179 if test "${ac_cv_path_DOXYGEN+set}" = set; then
26180 echo $ECHO_N "(cached) $ECHO_C" >&6
26184 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
26187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26188 for as_dir in $PATH
26191 test -z "$as_dir" && as_dir=.
26192 for ac_exec_ext in '' $ac_executable_extensions; do
26193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26194 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
26195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26202 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="`which doxygen`"
26206 DOXYGEN=$ac_cv_path_DOXYGEN
26207 if test -n "$DOXYGEN"; then
26208 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
26209 echo "${ECHO_T}$DOXYGEN" >&6; }
26211 { echo "$as_me:$LINENO: result: no" >&5
26212 echo "${ECHO_T}no" >&6; }
26216 if test x$DOXYGEN = x ; then
26217 { { echo "$as_me:$LINENO: error: doxygen is mandatory in maintainer mode" >&5
26218 echo "$as_me: error: doxygen is mandatory in maintainer mode" >&2;}
26219 { (exit 1); exit 1; }; }
26223 # Can we extract really usable backtraces? (also need the popen function)
26224 # Extract the first word of "addr2line", so it can be a program name with args.
26225 set dummy addr2line; ac_word=$2
26226 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26228 if test "${ac_cv_path_ADDR2LINE+set}" = set; then
26229 echo $ECHO_N "(cached) $ECHO_C" >&6
26233 ac_cv_path_ADDR2LINE="$ADDR2LINE" # Let the user override the test with a path.
26236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26237 for as_dir in $PATH
26240 test -z "$as_dir" && as_dir=.
26241 for ac_exec_ext in '' $ac_executable_extensions; do
26242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26243 ac_cv_path_ADDR2LINE="$as_dir/$ac_word$ac_exec_ext"
26244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26254 ADDR2LINE=$ac_cv_path_ADDR2LINE
26255 if test -n "$ADDR2LINE"; then
26256 { echo "$as_me:$LINENO: result: $ADDR2LINE" >&5
26257 echo "${ECHO_T}$ADDR2LINE" >&6; }
26259 { echo "$as_me:$LINENO: result: no" >&5
26260 echo "${ECHO_T}no" >&6; }
26264 if test x$ADDR2LINE != x ; then
26266 cat >>confdefs.h <<_ACEOF
26267 #define ADDR2LINE "$ADDR2LINE"
26273 # Can we make status line about the compilation result?
26274 # Extract the first word of "md5sum", so it can be a program name with args.
26275 set dummy md5sum; ac_word=$2
26276 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26278 if test "${ac_cv_prog_MD5SUM+set}" = set; then
26279 echo $ECHO_N "(cached) $ECHO_C" >&6
26281 if test -n "$MD5SUM"; then
26282 ac_cv_prog_MD5SUM="$MD5SUM" # Let the user override the test.
26284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26285 for as_dir in $PATH
26288 test -z "$as_dir" && as_dir=.
26289 for ac_exec_ext in '' $ac_executable_extensions; do
26290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26291 ac_cv_prog_MD5SUM="`which md5sum`"
26292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26301 MD5SUM=$ac_cv_prog_MD5SUM
26302 if test -n "$MD5SUM"; then
26303 { echo "$as_me:$LINENO: result: $MD5SUM" >&5
26304 echo "${ECHO_T}$MD5SUM" >&6; }
26306 { echo "$as_me:$LINENO: result: no" >&5
26307 echo "${ECHO_T}no" >&6; }
26311 if test x$MD5SUM != xno ; then
26312 build_version=`find -name '*.ch' |grep -v src/ucontext_stack.h | grep -v src/gras_config.h |\
26313 xargs cat| $MD5SUM | sed 's/ .*$//'`
26315 build_version="no_md5sum_binary"
26317 build_id="$PACKAGE ver=$VERSION build=$build_version args=\"$ac_configure_args\""
26320 ###################
26321 ## Makes the output
26326 # examples/gras/chord/Makefile examples/gras/chord/test_sg examples/gras/chord/test_rl
26327 # src/amok/Makefile
26330 { echo "$as_me:$LINENO: result: " >&5
26331 echo "${ECHO_T}" >&6; }
26332 { echo "$as_me:$LINENO: result: ${T_MD}Generating files...${T_ME}" >&5
26333 echo "${ECHO_T}${T_MD}Generating files...${T_ME}" >&6; }
26336 # Core of the libraries
26338 ac_config_files="$ac_config_files Makefile include/Makefile src/Makefile src/ucontext_stack.h"
26341 # Tools being embeeded in gramine (stub generator)
26342 ac_config_files="$ac_config_files tools/Makefile tools/gras/Makefile tools/tesh/Makefile"
26346 # GRAMINE_CUT_BEGIN
26348 # Tools NOT being embeeded in gramine
26349 ac_config_files="$ac_config_files tools/graspe-slave"
26354 ac_config_files="$ac_config_files testsuite/Makefile testsuite/run_tests testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage"
26358 ac_config_files="$ac_config_files doc/Makefile doc/Doxyfile"
26363 ac_config_files="$ac_config_files examples/Makefile examples/msg/Makefile examples/simdag/Makefile examples/simdag/test_simdag examples/gras/Makefile examples/gras/ping/Makefile examples/gras/ping/test_sg examples/gras/ping/test_rl examples/gras/rpc/Makefile examples/gras/rpc/test_sg examples/gras/rpc/test_rl examples/gras/timer/Makefile examples/gras/timer/test_sg examples/gras/timer/test_rl examples/gras/chrono/Makefile examples/gras/chrono/test_sg examples/gras/chrono/test_rl examples/gras/mutual_exclusion/simple_token/Makefile examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl examples/gras/mmrpc/Makefile examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl examples/gras/pmm/Makefile examples/gras/pmm/test_sg examples/gras/pmm/test_rl examples/gras/all2all/Makefile examples/gras/all2all/test_sg examples/gras/all2all/test_rl examples/gras/p2p/Makefile examples/gras/p2p/chord/Makefile examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl examples/gras/p2p/can/Makefile examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl examples/amok/Makefile examples/amok/bandwidth/Makefile examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl examples/amok/saturate/Makefile examples/amok/saturate/test_sg examples/amok/saturate/test_rl"
26366 # examples/gras/chord/test_sg examples/gras/chord/test_rl \
26367 # examples/gras/pastry/test_sg
26371 # examples/gras/saturate/Makefile examples/gras/saturate/test_sg
26372 # examples/gras/alnem/Makefile examples/gras/alnem/test_sg
26377 cat >confcache <<\_ACEOF
26378 # This file is a shell script that caches the results of configure
26379 # tests run on this system so they can be shared between configure
26380 # scripts and configure runs, see configure's option --config-cache.
26381 # It is not useful on other systems. If it contains results you don't
26382 # want to keep, you may remove or edit it.
26384 # config.status only pays attention to the cache file if you give it
26385 # the --recheck option to rerun configure.
26387 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26388 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26389 # following values.
26393 # The following way of writing the cache mishandles newlines in values,
26394 # but we know of no workaround that is simple, portable, and efficient.
26395 # So, we kill variables containing newlines.
26396 # Ultrix sh set writes to stderr and can't be redirected directly,
26397 # and sets the high bit in the cache file unless we assign to the vars.
26399 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26400 eval ac_val=\$$ac_var
26404 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26405 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26408 _ | IFS | as_nl) ;; #(
26409 *) $as_unset $ac_var ;;
26415 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26416 *${as_nl}ac_space=\ *)
26417 # `set' does not quote correctly, so add quotes (double-quote
26418 # substitution turns \\\\ into \\, and sed turns \\ into \).
26421 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26424 # `set' quotes correctly as required by POSIX, so do not add quotes.
26425 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26434 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26436 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26438 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26439 if test -w "$cache_file"; then
26440 test "x$cache_file" != "x/dev/null" &&
26441 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26442 echo "$as_me: updating cache $cache_file" >&6;}
26443 cat confcache >$cache_file
26445 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26446 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26451 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26452 # Let make expand exec_prefix.
26453 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26455 DEFS=-DHAVE_CONFIG_H
26459 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26460 # 1. Remove the extension, and $U if already installed.
26461 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26462 ac_i=`echo "$ac_i" | sed "$ac_script"`
26463 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26464 # will be set to the directory where LIBOBJS objects are built.
26465 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26466 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26468 LIBOBJS=$ac_libobjs
26470 LTLIBOBJS=$ac_ltlibobjs
26473 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26474 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
26475 Usually this means the macro was only invoked conditionally." >&5
26476 echo "$as_me: error: conditional \"AMDEP\" was never defined.
26477 Usually this means the macro was only invoked conditionally." >&2;}
26478 { (exit 1); exit 1; }; }
26480 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26481 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26482 Usually this means the macro was only invoked conditionally." >&5
26483 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26484 Usually this means the macro was only invoked conditionally." >&2;}
26485 { (exit 1); exit 1; }; }
26487 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26488 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
26489 Usually this means the macro was only invoked conditionally." >&5
26490 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
26491 Usually this means the macro was only invoked conditionally." >&2;}
26492 { (exit 1); exit 1; }; }
26494 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26495 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26496 Usually this means the macro was only invoked conditionally." >&5
26497 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26498 Usually this means the macro was only invoked conditionally." >&2;}
26499 { (exit 1); exit 1; }; }
26501 if test -z "${USE_SIMIX_TRUE}" && test -z "${USE_SIMIX_FALSE}"; then
26502 { { echo "$as_me:$LINENO: error: conditional \"USE_SIMIX\" was never defined.
26503 Usually this means the macro was only invoked conditionally." >&5
26504 echo "$as_me: error: conditional \"USE_SIMIX\" was never defined.
26505 Usually this means the macro was only invoked conditionally." >&2;}
26506 { (exit 1); exit 1; }; }
26508 if test -z "${USE_GTNETS_TRUE}" && test -z "${USE_GTNETS_FALSE}"; then
26509 { { echo "$as_me:$LINENO: error: conditional \"USE_GTNETS\" was never defined.
26510 Usually this means the macro was only invoked conditionally." >&5
26511 echo "$as_me: error: conditional \"USE_GTNETS\" was never defined.
26512 Usually this means the macro was only invoked conditionally." >&2;}
26513 { (exit 1); exit 1; }; }
26515 if test -z "${HAVE_SDP_TRUE}" && test -z "${HAVE_SDP_FALSE}"; then
26516 { { echo "$as_me:$LINENO: error: conditional \"HAVE_SDP\" was never defined.
26517 Usually this means the macro was only invoked conditionally." >&5
26518 echo "$as_me: error: conditional \"HAVE_SDP\" was never defined.
26519 Usually this means the macro was only invoked conditionally." >&2;}
26520 { (exit 1); exit 1; }; }
26522 if test -z "${GRAMINE_MODE_TRUE}" && test -z "${GRAMINE_MODE_FALSE}"; then
26523 { { echo "$as_me:$LINENO: error: conditional \"GRAMINE_MODE\" was never defined.
26524 Usually this means the macro was only invoked conditionally." >&5
26525 echo "$as_me: error: conditional \"GRAMINE_MODE\" was never defined.
26526 Usually this means the macro was only invoked conditionally." >&2;}
26527 { (exit 1); exit 1; }; }
26529 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26530 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
26531 Usually this means the macro was only invoked conditionally." >&5
26532 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
26533 Usually this means the macro was only invoked conditionally." >&2;}
26534 { (exit 1); exit 1; }; }
26536 if test -z "${HAVE_FLEXML_TRUE}" && test -z "${HAVE_FLEXML_FALSE}"; then
26537 { { echo "$as_me:$LINENO: error: conditional \"HAVE_FLEXML\" was never defined.
26538 Usually this means the macro was only invoked conditionally." >&5
26539 echo "$as_me: error: conditional \"HAVE_FLEXML\" was never defined.
26540 Usually this means the macro was only invoked conditionally." >&2;}
26541 { (exit 1); exit 1; }; }
26544 : ${CONFIG_STATUS=./config.status}
26545 ac_clean_files_save=$ac_clean_files
26546 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26547 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26548 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26549 cat >$CONFIG_STATUS <<_ACEOF
26551 # Generated by $as_me.
26552 # Run this file to recreate the current configuration.
26553 # Compiler output produced by configure, useful for debugging
26554 # configure, is in config.log if it exists.
26557 ac_cs_recheck=false
26559 SHELL=\${CONFIG_SHELL-$SHELL}
26562 cat >>$CONFIG_STATUS <<\_ACEOF
26563 ## --------------------- ##
26564 ## M4sh Initialization. ##
26565 ## --------------------- ##
26567 # Be more Bourne compatible
26568 DUALCASE=1; export DUALCASE # for MKS sh
26569 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26572 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26573 # is contrary to our usage. Disable this feature.
26574 alias -g '${1+"$@"}'='"$@"'
26575 setopt NO_GLOB_SUBST
26577 case `(set -o) 2>/dev/null` in
26578 *posix*) set -o posix ;;
26587 # Avoid depending upon Character Ranges.
26588 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26589 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26590 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26591 as_cr_digits='0123456789'
26592 as_cr_alnum=$as_cr_Letters$as_cr_digits
26594 # The user is always right.
26595 if test "${PATH_SEPARATOR+set}" != set; then
26596 echo "#! /bin/sh" >conf$$.sh
26597 echo "exit 0" >>conf$$.sh
26599 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26607 # Support unset when possible.
26608 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26616 # We need space, tab and new line, in precisely that order. Quoting is
26617 # there to prevent editors from complaining about space-tab.
26618 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26619 # splitting by setting IFS to empty value.)
26624 # Find who we are. Look in the path if we contain no directory separator.
26626 *[\\/]* ) as_myself=$0 ;;
26627 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26628 for as_dir in $PATH
26631 test -z "$as_dir" && as_dir=.
26632 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26638 # We did not find ourselves, most probably we were run as `sh COMMAND'
26639 # in which case we are not to be found in the path.
26640 if test "x$as_myself" = x; then
26643 if test ! -f "$as_myself"; then
26644 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26645 { (exit 1); exit 1; }
26648 # Work around bugs in pre-3.0 UWIN ksh.
26649 for as_var in ENV MAIL MAILPATH
26650 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26658 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26659 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26660 LC_TELEPHONE LC_TIME
26662 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26663 eval $as_var=C; export $as_var
26665 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26669 # Required to use basename.
26670 if expr a : '\(a\)' >/dev/null 2>&1 &&
26671 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26677 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26678 as_basename=basename
26684 # Name of the executable.
26685 as_me=`$as_basename -- "$0" ||
26686 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26687 X"$0" : 'X\(//\)$' \| \
26688 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26690 sed '/^.*\/\([^/][^/]*\)\/*$/{
26709 as_lineno_1=$LINENO
26710 as_lineno_2=$LINENO
26711 test "x$as_lineno_1" != "x$as_lineno_2" &&
26712 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26714 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26715 # uniformly replaced by the line number. The first 'sed' inserts a
26716 # line-number line after each line using $LINENO; the second 'sed'
26717 # does the real work. The second script uses 'N' to pair each
26718 # line-number line with the line containing $LINENO, and appends
26719 # trailing '-' during substitution so that $LINENO is not a special
26720 # case at line end.
26721 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26722 # scripts with optimization help from Paolo Bonzini. Blame Lee
26723 # E. McMahon (1931-1989) for sed's syntax. :-)
26735 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26738 ' >$as_me.lineno &&
26739 chmod +x "$as_me.lineno" ||
26740 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26741 { (exit 1); exit 1; }; }
26743 # Don't try to exec as it changes $[0], causing all sort of problems
26744 # (the dirname of $[0] is not the place where we might find the
26745 # original and so on. Autoconf is especially sensitive to this).
26746 . "./$as_me.lineno"
26747 # Exit status is that of the last command.
26752 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26758 ECHO_C= ECHO_N= ECHO_T=
26759 case `echo -n x` in
26761 case `echo 'x\c'` in
26762 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26769 if expr a : '\(a\)' >/dev/null 2>&1 &&
26770 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26776 rm -f conf$$ conf$$.exe conf$$.file
26777 if test -d conf$$.dir; then
26778 rm -f conf$$.dir/conf$$.file
26784 if ln -s conf$$.file conf$$ 2>/dev/null; then
26786 # ... but there are two gotchas:
26787 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26788 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26789 # In both cases, we have to default to `cp -p'.
26790 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26792 elif ln conf$$.file conf$$ 2>/dev/null; then
26797 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26798 rmdir conf$$.dir 2>/dev/null
26800 if mkdir -p . 2>/dev/null; then
26803 test -d ./-p && rmdir ./-p
26807 if test -x / >/dev/null 2>&1; then
26808 as_test_x='test -x'
26810 if ls -dL / >/dev/null 2>&1; then
26817 if test -d "$1"; then
26823 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26824 ???[sx]*):;;*)false;;esac;fi
26828 as_executable_p=$as_test_x
26830 # Sed expression to map a string onto a valid CPP name.
26831 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26833 # Sed expression to map a string onto a valid variable name.
26834 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26839 # Save the log message, to keep $[0] and so on meaningful, and to
26840 # report actual input values of CONFIG_FILES etc. instead of their
26841 # values after options handling.
26843 This file was extended by simgrid $as_me 3.3-cvs, which was
26844 generated by GNU Autoconf 2.61. Invocation command line was
26846 CONFIG_FILES = $CONFIG_FILES
26847 CONFIG_HEADERS = $CONFIG_HEADERS
26848 CONFIG_LINKS = $CONFIG_LINKS
26849 CONFIG_COMMANDS = $CONFIG_COMMANDS
26852 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26857 cat >>$CONFIG_STATUS <<_ACEOF
26858 # Files that config.status was made for.
26859 config_files="$ac_config_files"
26860 config_headers="$ac_config_headers"
26861 config_commands="$ac_config_commands"
26865 cat >>$CONFIG_STATUS <<\_ACEOF
26867 \`$as_me' instantiates files from templates according to the
26868 current configuration.
26870 Usage: $0 [OPTIONS] [FILE]...
26872 -h, --help print this help, then exit
26873 -V, --version print version number and configuration settings, then exit
26874 -q, --quiet do not print progress messages
26875 -d, --debug don't remove temporary files
26876 --recheck update $as_me by reconfiguring in the same conditions
26877 --file=FILE[:TEMPLATE]
26878 instantiate the configuration file FILE
26879 --header=FILE[:TEMPLATE]
26880 instantiate the configuration header FILE
26882 Configuration files:
26885 Configuration headers:
26888 Configuration commands:
26891 Report bugs to <bug-autoconf@gnu.org>."
26894 cat >>$CONFIG_STATUS <<_ACEOF
26896 simgrid config.status 3.3-cvs
26897 configured by $0, generated by GNU Autoconf 2.61,
26898 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26900 Copyright (C) 2006 Free Software Foundation, Inc.
26901 This config.status script is free software; the Free Software Foundation
26902 gives unlimited permission to copy, distribute and modify it."
26909 cat >>$CONFIG_STATUS <<\_ACEOF
26910 # If no file are specified by the user, then we need to provide default
26911 # value. By we need to know if files were specified by the user.
26917 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26918 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26929 # Handling of the options.
26930 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26932 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26933 echo "$ac_cs_version"; exit ;;
26934 --debug | --debu | --deb | --de | --d | -d )
26936 --file | --fil | --fi | --f )
26938 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26939 ac_need_defaults=false;;
26940 --header | --heade | --head | --hea )
26942 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26943 ac_need_defaults=false;;
26945 # Conflict between --help and --header
26946 { echo "$as_me: error: ambiguous option: $1
26947 Try \`$0 --help' for more information." >&2
26948 { (exit 1); exit 1; }; };;
26949 --help | --hel | -h )
26950 echo "$ac_cs_usage"; exit ;;
26951 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26952 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26955 # This is an error.
26956 -*) { echo "$as_me: error: unrecognized option: $1
26957 Try \`$0 --help' for more information." >&2
26958 { (exit 1); exit 1; }; } ;;
26960 *) ac_config_targets="$ac_config_targets $1"
26961 ac_need_defaults=false ;;
26967 ac_configure_extra_args=
26969 if $ac_cs_silent; then
26971 ac_configure_extra_args="$ac_configure_extra_args --silent"
26975 cat >>$CONFIG_STATUS <<_ACEOF
26976 if \$ac_cs_recheck; then
26977 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26978 CONFIG_SHELL=$SHELL
26979 export CONFIG_SHELL
26980 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26984 cat >>$CONFIG_STATUS <<\_ACEOF
26988 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26989 ## Running $as_me. ##
26995 cat >>$CONFIG_STATUS <<_ACEOF
26999 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27003 cat >>$CONFIG_STATUS <<\_ACEOF
27005 # Handling of arguments.
27006 for ac_config_target in $ac_config_targets
27008 case $ac_config_target in
27009 "src/gras_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/gras_config.h" ;;
27010 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27011 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27012 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
27013 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
27014 "src/ucontext_stack.h") CONFIG_FILES="$CONFIG_FILES src/ucontext_stack.h" ;;
27015 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
27016 "tools/gras/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gras/Makefile" ;;
27017 "tools/tesh/Makefile") CONFIG_FILES="$CONFIG_FILES tools/tesh/Makefile" ;;
27018 "tools/graspe-slave") CONFIG_FILES="$CONFIG_FILES tools/graspe-slave" ;;
27019 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
27020 "testsuite/run_tests") CONFIG_FILES="$CONFIG_FILES testsuite/run_tests" ;;
27021 "testsuite/gras/trp_tcp_usage") CONFIG_FILES="$CONFIG_FILES testsuite/gras/trp_tcp_usage" ;;
27022 "testsuite/gras/trp_file_usage") CONFIG_FILES="$CONFIG_FILES testsuite/gras/trp_file_usage" ;;
27023 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
27024 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
27025 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
27026 "examples/msg/Makefile") CONFIG_FILES="$CONFIG_FILES examples/msg/Makefile" ;;
27027 "examples/simdag/Makefile") CONFIG_FILES="$CONFIG_FILES examples/simdag/Makefile" ;;
27028 "examples/simdag/test_simdag") CONFIG_FILES="$CONFIG_FILES examples/simdag/test_simdag" ;;
27029 "examples/gras/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/Makefile" ;;
27030 "examples/gras/ping/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/ping/Makefile" ;;
27031 "examples/gras/ping/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/ping/test_sg" ;;
27032 "examples/gras/ping/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/ping/test_rl" ;;
27033 "examples/gras/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/rpc/Makefile" ;;
27034 "examples/gras/rpc/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/rpc/test_sg" ;;
27035 "examples/gras/rpc/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/rpc/test_rl" ;;
27036 "examples/gras/timer/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/timer/Makefile" ;;
27037 "examples/gras/timer/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/timer/test_sg" ;;
27038 "examples/gras/timer/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/timer/test_rl" ;;
27039 "examples/gras/chrono/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/chrono/Makefile" ;;
27040 "examples/gras/chrono/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/chrono/test_sg" ;;
27041 "examples/gras/chrono/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/chrono/test_rl" ;;
27042 "examples/gras/mutual_exclusion/simple_token/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/mutual_exclusion/simple_token/Makefile" ;;
27043 "examples/gras/mutual_exclusion/simple_token/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/mutual_exclusion/simple_token/test_sg" ;;
27044 "examples/gras/mutual_exclusion/simple_token/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/mutual_exclusion/simple_token/test_rl" ;;
27045 "examples/gras/mmrpc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/mmrpc/Makefile" ;;
27046 "examples/gras/mmrpc/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/mmrpc/test_sg" ;;
27047 "examples/gras/mmrpc/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/mmrpc/test_rl" ;;
27048 "examples/gras/pmm/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/pmm/Makefile" ;;
27049 "examples/gras/pmm/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/pmm/test_sg" ;;
27050 "examples/gras/pmm/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/pmm/test_rl" ;;
27051 "examples/gras/all2all/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/all2all/Makefile" ;;
27052 "examples/gras/all2all/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/all2all/test_sg" ;;
27053 "examples/gras/all2all/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/all2all/test_rl" ;;
27054 "examples/gras/p2p/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/Makefile" ;;
27055 "examples/gras/p2p/chord/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/chord/Makefile" ;;
27056 "examples/gras/p2p/chord/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/chord/test_sg" ;;
27057 "examples/gras/p2p/chord/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/chord/test_rl" ;;
27058 "examples/gras/p2p/can/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/can/Makefile" ;;
27059 "examples/gras/p2p/can/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/can/test_sg" ;;
27060 "examples/gras/p2p/can/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/can/test_rl" ;;
27061 "examples/amok/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/Makefile" ;;
27062 "examples/amok/bandwidth/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/Makefile" ;;
27063 "examples/amok/bandwidth/test_sg") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/test_sg" ;;
27064 "examples/amok/bandwidth/test_rl") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/test_rl" ;;
27065 "examples/amok/saturate/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/Makefile" ;;
27066 "examples/amok/saturate/test_sg") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/test_sg" ;;
27067 "examples/amok/saturate/test_rl") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/test_rl" ;;
27069 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27070 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27071 { (exit 1); exit 1; }; };;
27076 # If the user did not use the arguments to specify the items to instantiate,
27077 # then the envvar interface is used. Set only those that are not.
27078 # We use the long form for the default assignment because of an extremely
27079 # bizarre bug on SunOS 4.1.3.
27080 if $ac_need_defaults; then
27081 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27082 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27083 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27086 # Have a temporary directory for convenience. Make it in the build tree
27087 # simply because there is no reason against having it here, and in addition,
27088 # creating and moving files from /tmp can sometimes cause problems.
27089 # Hook for its removal unless debugging.
27090 # Note that there is a small window in which the directory will not be cleaned:
27091 # after its creation but before its name has been assigned to `$tmp'.
27095 trap 'exit_status=$?
27096 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27098 trap '{ (exit 1); exit 1; }' 1 2 13 15
27100 # Create a (secure) tmp directory for tmp files.
27103 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27104 test -n "$tmp" && test -d "$tmp"
27107 tmp=./conf$$-$RANDOM
27108 (umask 077 && mkdir "$tmp")
27111 echo "$me: cannot create a temporary directory in ." >&2
27112 { (exit 1); exit 1; }
27116 # Set up the sed scripts for CONFIG_FILES section.
27119 # No need to generate the scripts if there are no CONFIG_FILES.
27120 # This happens for instance when ./config.status config.h
27121 if test -n "$CONFIG_FILES"; then
27128 for ac_last_try in false false false false false :; do
27129 cat >conf$$subs.sed <<_ACEOF
27130 SHELL!$SHELL$ac_delim
27131 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
27132 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
27133 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
27134 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
27135 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
27136 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
27137 exec_prefix!$exec_prefix$ac_delim
27138 prefix!$prefix$ac_delim
27139 program_transform_name!$program_transform_name$ac_delim
27140 bindir!$bindir$ac_delim
27141 sbindir!$sbindir$ac_delim
27142 libexecdir!$libexecdir$ac_delim
27143 datarootdir!$datarootdir$ac_delim
27144 datadir!$datadir$ac_delim
27145 sysconfdir!$sysconfdir$ac_delim
27146 sharedstatedir!$sharedstatedir$ac_delim
27147 localstatedir!$localstatedir$ac_delim
27148 includedir!$includedir$ac_delim
27149 oldincludedir!$oldincludedir$ac_delim
27150 docdir!$docdir$ac_delim
27151 infodir!$infodir$ac_delim
27152 htmldir!$htmldir$ac_delim
27153 dvidir!$dvidir$ac_delim
27154 pdfdir!$pdfdir$ac_delim
27155 psdir!$psdir$ac_delim
27156 libdir!$libdir$ac_delim
27157 localedir!$localedir$ac_delim
27158 mandir!$mandir$ac_delim
27159 DEFS!$DEFS$ac_delim
27160 ECHO_C!$ECHO_C$ac_delim
27161 ECHO_N!$ECHO_N$ac_delim
27162 ECHO_T!$ECHO_T$ac_delim
27163 LIBS!$LIBS$ac_delim
27164 build_alias!$build_alias$ac_delim
27165 host_alias!$host_alias$ac_delim
27166 target_alias!$target_alias$ac_delim
27167 build!$build$ac_delim
27168 build_cpu!$build_cpu$ac_delim
27169 build_vendor!$build_vendor$ac_delim
27170 build_os!$build_os$ac_delim
27171 host!$host$ac_delim
27172 host_cpu!$host_cpu$ac_delim
27173 host_vendor!$host_vendor$ac_delim
27174 host_os!$host_os$ac_delim
27175 target!$target$ac_delim
27176 target_cpu!$target_cpu$ac_delim
27177 target_vendor!$target_vendor$ac_delim
27178 target_os!$target_os$ac_delim
27179 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
27180 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
27181 INSTALL_DATA!$INSTALL_DATA$ac_delim
27182 CYGPATH_W!$CYGPATH_W$ac_delim
27183 PACKAGE!$PACKAGE$ac_delim
27184 VERSION!$VERSION$ac_delim
27185 ACLOCAL!$ACLOCAL$ac_delim
27186 AUTOCONF!$AUTOCONF$ac_delim
27187 AUTOMAKE!$AUTOMAKE$ac_delim
27188 AUTOHEADER!$AUTOHEADER$ac_delim
27189 MAKEINFO!$MAKEINFO$ac_delim
27190 install_sh!$install_sh$ac_delim
27191 STRIP!$STRIP$ac_delim
27192 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
27193 mkdir_p!$mkdir_p$ac_delim
27195 SET_MAKE!$SET_MAKE$ac_delim
27196 am__leading_dot!$am__leading_dot$ac_delim
27197 AMTAR!$AMTAR$ac_delim
27198 am__tar!$am__tar$ac_delim
27199 am__untar!$am__untar$ac_delim
27201 CFLAGS!$CFLAGS$ac_delim
27202 LDFLAGS!$LDFLAGS$ac_delim
27203 CPPFLAGS!$CPPFLAGS$ac_delim
27204 ac_ct_CC!$ac_ct_CC$ac_delim
27205 EXEEXT!$EXEEXT$ac_delim
27206 OBJEXT!$OBJEXT$ac_delim
27207 DEPDIR!$DEPDIR$ac_delim
27208 am__include!$am__include$ac_delim
27209 am__quote!$am__quote$ac_delim
27210 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
27211 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
27212 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
27213 CCDEPMODE!$CCDEPMODE$ac_delim
27214 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
27215 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
27216 GREP!$GREP$ac_delim
27217 EGREP!$EGREP$ac_delim
27218 LN_S!$LN_S$ac_delim
27219 ECHO!$ECHO$ac_delim
27221 RANLIB!$RANLIB$ac_delim
27222 DLLTOOL!$DLLTOOL$ac_delim
27224 OBJDUMP!$OBJDUMP$ac_delim
27229 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27231 elif $ac_last_try; then
27232 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27233 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27234 { (exit 1); exit 1; }; }
27236 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27240 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27241 if test -n "$ac_eof"; then
27242 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27243 ac_eof=`expr $ac_eof + 1`
27246 cat >>$CONFIG_STATUS <<_ACEOF
27247 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27248 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27251 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27252 s/^/s,@/; s/!/@,|#_!!_#|/
27255 s/'"$ac_delim"'$/,g/; t
27257 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27258 ' >>$CONFIG_STATUS <conf$$subs.sed
27259 rm -f conf$$subs.sed
27260 cat >>$CONFIG_STATUS <<_ACEOF
27266 for ac_last_try in false false false false false :; do
27267 cat >conf$$subs.sed <<_ACEOF
27268 CXXFLAGS!$CXXFLAGS$ac_delim
27269 ac_ct_CXX!$ac_ct_CXX$ac_delim
27270 CXXDEPMODE!$CXXDEPMODE$ac_delim
27271 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
27272 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
27273 CXXCPP!$CXXCPP$ac_delim
27275 FFLAGS!$FFLAGS$ac_delim
27276 ac_ct_F77!$ac_ct_F77$ac_delim
27277 LIBTOOL!$LIBTOOL$ac_delim
27278 LIBOBJS!$LIBOBJS$ac_delim
27279 PTH_STACK_GROWTH!$PTH_STACK_GROWTH$ac_delim
27280 pth_skaddr_makecontext!$pth_skaddr_makecontext$ac_delim
27281 pth_sksize_makecontext!$pth_sksize_makecontext$ac_delim
27282 USE_SIMIX_TRUE!$USE_SIMIX_TRUE$ac_delim
27283 USE_SIMIX_FALSE!$USE_SIMIX_FALSE$ac_delim
27284 GTNETS_CFLAGS!$GTNETS_CFLAGS$ac_delim
27285 GTNETS_LDFLAGS!$GTNETS_LDFLAGS$ac_delim
27286 USE_GTNETS_TRUE!$USE_GTNETS_TRUE$ac_delim
27287 USE_GTNETS_FALSE!$USE_GTNETS_FALSE$ac_delim
27288 HAVE_SDP_TRUE!$HAVE_SDP_TRUE$ac_delim
27289 HAVE_SDP_FALSE!$HAVE_SDP_FALSE$ac_delim
27290 SIMGRID_DEP!$SIMGRID_DEP$ac_delim
27291 AM_CFLAGS!$AM_CFLAGS$ac_delim
27292 GRAS_DEP!$GRAS_DEP$ac_delim
27293 GRAMINE_MODE_TRUE!$GRAMINE_MODE_TRUE$ac_delim
27294 GRAMINE_MODE_FALSE!$GRAMINE_MODE_FALSE$ac_delim
27295 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
27296 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
27297 MAINT!$MAINT$ac_delim
27298 LD_DYNAMIC_FLAGS!$LD_DYNAMIC_FLAGS$ac_delim
27299 abs_builddir!$abs_builddir$ac_delim
27300 abs_srcdir!$abs_srcdir$ac_delim
27301 abs_top_builddir!$abs_top_builddir$ac_delim
27302 abs_top_srcdir!$abs_top_srcdir$ac_delim
27303 BASH!$BASH$ac_delim
27304 WARNING!$WARNING$ac_delim
27306 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
27307 LEXLIB!$LEXLIB$ac_delim
27308 FLEXML!$FLEXML$ac_delim
27309 HAVE_FLEXML_TRUE!$HAVE_FLEXML_TRUE$ac_delim
27310 HAVE_FLEXML_FALSE!$HAVE_FLEXML_FALSE$ac_delim
27311 DOXYGEN!$DOXYGEN$ac_delim
27312 ADDR2LINE!$ADDR2LINE$ac_delim
27313 ac_configure_args!$ac_configure_args$ac_delim
27314 MD5SUM!$MD5SUM$ac_delim
27315 build_id!$build_id$ac_delim
27316 LTLIBOBJS!$LTLIBOBJS$ac_delim
27319 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 49; then
27321 elif $ac_last_try; then
27322 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27323 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27324 { (exit 1); exit 1; }; }
27326 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27330 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27331 if test -n "$ac_eof"; then
27332 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27333 ac_eof=`expr $ac_eof + 1`
27336 cat >>$CONFIG_STATUS <<_ACEOF
27337 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27338 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27341 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27342 s/^/s,@/; s/!/@,|#_!!_#|/
27345 s/'"$ac_delim"'$/,g/; t
27347 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27348 ' >>$CONFIG_STATUS <conf$$subs.sed
27349 rm -f conf$$subs.sed
27350 cat >>$CONFIG_STATUS <<_ACEOF
27357 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27358 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27359 # trailing colons and then remove the whole line if VPATH becomes empty
27360 # (actually we leave an empty line to preserve line numbers).
27361 if test "x$srcdir" = x.; then
27362 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27363 s/:*\$(srcdir):*/:/
27364 s/:*\${srcdir}:*/:/
27366 s/^\([^=]*=[ ]*\):*/\1/
27372 cat >>$CONFIG_STATUS <<\_ACEOF
27373 fi # test -n "$CONFIG_FILES"
27376 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
27379 :[FHLC]) ac_mode=$ac_tag; continue;;
27381 case $ac_mode$ac_tag in
27383 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27384 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27385 { (exit 1); exit 1; }; };;
27386 :[FH]-) ac_tag=-:-;;
27387 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27404 -) ac_f="$tmp/stdin";;
27405 *) # Look for the file first in the build tree, then in the source tree
27406 # (if the path is not absolute). The absolute path cannot be DOS-style,
27407 # because $ac_f cannot contain `:'.
27411 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27413 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27414 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27415 { (exit 1); exit 1; }; };;
27417 ac_file_inputs="$ac_file_inputs $ac_f"
27420 # Let's still pretend it is `configure' which instantiates (i.e., don't
27421 # use $as_me), people would be surprised to read:
27422 # /* config.h. Generated by config.status. */
27423 configure_input="Generated from "`IFS=:
27424 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27425 if test x"$ac_file" != x-; then
27426 configure_input="$ac_file. $configure_input"
27427 { echo "$as_me:$LINENO: creating $ac_file" >&5
27428 echo "$as_me: creating $ac_file" >&6;}
27432 *:-:* | *:-) cat >"$tmp/stdin";;
27437 ac_dir=`$as_dirname -- "$ac_file" ||
27438 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27439 X"$ac_file" : 'X\(//\)[^/]' \| \
27440 X"$ac_file" : 'X\(//\)$' \| \
27441 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27443 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27447 /^X\(\/\/\)[^/].*/{
27462 -*) as_dir=./$as_dir;;
27464 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27468 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27469 *) as_qdir=$as_dir;;
27471 as_dirs="'$as_qdir' $as_dirs"
27472 as_dir=`$as_dirname -- "$as_dir" ||
27473 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27474 X"$as_dir" : 'X\(//\)[^/]' \| \
27475 X"$as_dir" : 'X\(//\)$' \| \
27476 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27478 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27482 /^X\(\/\/\)[^/].*/{
27495 test -d "$as_dir" && break
27497 test -z "$as_dirs" || eval "mkdir $as_dirs"
27498 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27499 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27500 { (exit 1); exit 1; }; }; }
27504 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27506 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27507 # A ".." for each directory in $ac_dir_suffix.
27508 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27509 case $ac_top_builddir_sub in
27510 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27511 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27514 ac_abs_top_builddir=$ac_pwd
27515 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27516 # for backward compatibility:
27517 ac_top_builddir=$ac_top_build_prefix
27520 .) # We are building in place.
27522 ac_top_srcdir=$ac_top_builddir_sub
27523 ac_abs_top_srcdir=$ac_pwd ;;
27524 [\\/]* | ?:[\\/]* ) # Absolute name.
27525 ac_srcdir=$srcdir$ac_dir_suffix;
27526 ac_top_srcdir=$srcdir
27527 ac_abs_top_srcdir=$srcdir ;;
27528 *) # Relative name.
27529 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27530 ac_top_srcdir=$ac_top_build_prefix$srcdir
27531 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27533 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27543 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27544 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27548 cat >>$CONFIG_STATUS <<\_ACEOF
27549 # If the template does not know about datarootdir, expand it.
27550 # FIXME: This hack should be removed a few years after 2.60.
27551 ac_datarootdir_hack=; ac_datarootdir_seen=
27553 case `sed -n '/datarootdir/ {
27562 ' $ac_file_inputs` in
27563 *datarootdir*) ac_datarootdir_seen=yes;;
27564 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27565 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27566 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27568 cat >>$CONFIG_STATUS <<_ACEOF
27569 ac_datarootdir_hack='
27570 s&@datadir@&$datadir&g
27571 s&@docdir@&$docdir&g
27572 s&@infodir@&$infodir&g
27573 s&@localedir@&$localedir&g
27574 s&@mandir@&$mandir&g
27575 s&\\\${datarootdir}&$datarootdir&g' ;;
27579 # Neutralize VPATH when `$srcdir' = `.'.
27580 # Shell code in configure.ac might set extrasub.
27581 # FIXME: do we really want to maintain this feature?
27582 cat >>$CONFIG_STATUS <<_ACEOF
27586 cat >>$CONFIG_STATUS <<\_ACEOF
27588 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27589 s&@configure_input@&$configure_input&;t t
27590 s&@top_builddir@&$ac_top_builddir_sub&;t t
27591 s&@srcdir@&$ac_srcdir&;t t
27592 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27593 s&@top_srcdir@&$ac_top_srcdir&;t t
27594 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27595 s&@builddir@&$ac_builddir&;t t
27596 s&@abs_builddir@&$ac_abs_builddir&;t t
27597 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27598 s&@INSTALL@&$ac_INSTALL&;t t
27599 $ac_datarootdir_hack
27600 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
27602 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27603 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27604 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27605 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27606 which seems to be undefined. Please make sure it is defined." >&5
27607 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27608 which seems to be undefined. Please make sure it is defined." >&2;}
27612 -) cat "$tmp/out"; rm -f "$tmp/out";;
27613 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27622 # Transform confdefs.h into a sed script `conftest.defines', that
27623 # substitutes the proper values into config.h.in to produce config.h.
27624 rm -f conftest.defines conftest.tail
27625 # First, append a space to every undef/define line, to ease matching.
27626 echo 's/$/ /' >conftest.defines
27627 # Then, protect against being on the right side of a sed subst, or in
27628 # an unquoted here document, in config.status. If some macros were
27629 # called several times there might be several #defines for the same
27630 # symbol, which is useless. But do not sort them, since the last
27631 # AC_DEFINE must be honored.
27632 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27633 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27634 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27635 # PARAMS is the parameter list in the macro definition--in most cases, it's
27636 # just an empty string.
27637 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
27638 ac_dB='\\)[ (].*,\\1define\\2'
27646 s/^[ ]*#[ ]*define[ ][ ]*//
27651 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27652 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27653 ' >>conftest.defines
27655 # Remove the space that was appended to ease matching.
27656 # Then replace #undef with comments. This is necessary, for
27657 # example, in the case of _POSIX_SOURCE, which is predefined and required
27658 # on some systems where configure will not decide to define it.
27659 # (The regexp can be short, since the line contains either #define or #undef.)
27661 s,^[ #]*u.*,/* & */,' >>conftest.defines
27663 # Break up conftest.defines:
27664 ac_max_sed_lines=50
27666 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27667 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27668 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27670 ac_in='$ac_file_inputs'
27671 ac_out='"$tmp/out1"'
27672 ac_nxt='"$tmp/out2"'
27676 # Write a here document:
27677 cat >>$CONFIG_STATUS <<_ACEOF
27678 # First, check the format of the line:
27679 cat >"\$tmp/defines.sed" <<\\CEOF
27680 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
27681 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
27685 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27687 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27688 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27689 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27690 grep . conftest.tail >/dev/null || break
27691 rm -f conftest.defines
27692 mv conftest.tail conftest.defines
27694 rm -f conftest.defines conftest.tail
27696 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27697 cat >>$CONFIG_STATUS <<\_ACEOF
27698 if test x"$ac_file" != x-; then
27699 echo "/* $configure_input */" >"$tmp/config.h"
27700 cat "$ac_result" >>"$tmp/config.h"
27701 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27702 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27703 echo "$as_me: $ac_file is unchanged" >&6;}
27706 mv "$tmp/config.h" $ac_file
27709 echo "/* $configure_input */"
27713 # Compute $ac_file's index in $config_headers.
27715 for _am_header in $config_headers :; do
27716 case $_am_header in
27717 $ac_file | $ac_file:* )
27720 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27723 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
27724 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27725 X$ac_file : 'X\(//\)[^/]' \| \
27726 X$ac_file : 'X\(//\)$' \| \
27727 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
27729 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27733 /^X\(\/\/\)[^/].*/{
27745 s/.*/./; q'`/stamp-h$_am_stamp_count
27748 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
27749 echo "$as_me: executing $ac_file commands" >&6;}
27754 case $ac_file$ac_mode in
27755 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
27756 # Strip MF so we end up with the name of the file.
27757 mf=`echo "$mf" | sed -e 's/:.*$//'`
27758 # Check whether this is an Automake generated Makefile or not.
27759 # We used to match only the files named `Makefile.in', but
27760 # some people rename them; so instead we look at the file content.
27761 # Grep'ing the first line is not enough: some people post-process
27762 # each Makefile.in and add a new line on top of each file to say so.
27763 # So let's grep whole file.
27764 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
27765 dirpart=`$as_dirname -- "$mf" ||
27766 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27767 X"$mf" : 'X\(//\)[^/]' \| \
27768 X"$mf" : 'X\(//\)$' \| \
27769 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27771 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27775 /^X\(\/\/\)[^/].*/{
27791 # Extract the definition of DEPDIR, am__include, and am__quote
27792 # from the Makefile without running `make'.
27793 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27794 test -z "$DEPDIR" && continue
27795 am__include=`sed -n 's/^am__include = //p' < "$mf"`
27796 test -z "am__include" && continue
27797 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27798 # When using ansi2knr, U may be empty or an underscore; expand it
27799 U=`sed -n 's/^U = //p' < "$mf"`
27800 # Find all dependency output files, they are included files with
27801 # $(DEPDIR) in their names. We invoke sed twice because it is the
27802 # simplest approach to changing $(DEPDIR) to its actual value in the
27804 for file in `sed -n "
27805 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27806 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27807 # Make sure the directory exists.
27808 test -f "$dirpart/$file" && continue
27809 fdir=`$as_dirname -- "$file" ||
27810 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27811 X"$file" : 'X\(//\)[^/]' \| \
27812 X"$file" : 'X\(//\)$' \| \
27813 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27815 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27819 /^X\(\/\/\)[^/].*/{
27832 { as_dir=$dirpart/$fdir
27834 -*) as_dir=./$as_dir;;
27836 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27840 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27841 *) as_qdir=$as_dir;;
27843 as_dirs="'$as_qdir' $as_dirs"
27844 as_dir=`$as_dirname -- "$as_dir" ||
27845 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27846 X"$as_dir" : 'X\(//\)[^/]' \| \
27847 X"$as_dir" : 'X\(//\)$' \| \
27848 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27850 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27854 /^X\(\/\/\)[^/].*/{
27867 test -d "$as_dir" && break
27869 test -z "$as_dirs" || eval "mkdir $as_dirs"
27870 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27871 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27872 { (exit 1); exit 1; }; }; }
27873 # echo "creating $dirpart/$file"
27874 echo '# dummy' > "$dirpart/$file"
27878 "tools/graspe-slave":F)
27880 tools/graspe-slave tools/graspe-master \
27882 test -e $file && chmod +x $file; \
27885 "testsuite/Makefile":F)
27887 testsuite/run_tests \
27888 testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
27890 test -e $file && chmod +x $file; \
27893 "testsuite/run_tests":F)
27895 testsuite/run_tests \
27896 testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
27898 test -e $file && chmod +x $file; \
27901 "testsuite/gras/trp_tcp_usage":F)
27903 testsuite/run_tests \
27904 testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
27906 test -e $file && chmod +x $file; \
27909 "testsuite/gras/trp_file_usage":F)
27911 testsuite/run_tests \
27912 testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
27914 test -e $file && chmod +x $file; \
27917 "examples/Makefile":F)
27920 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27921 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27923 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27924 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27925 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27926 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27927 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27928 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27929 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27930 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27931 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27932 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27933 examples/msg/run_msg_test \
27934 examples/simdag/test_simdag \
27936 test -e $file && chmod +x $file; \
27939 "examples/msg/Makefile":F)
27942 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27943 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27945 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27946 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27947 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27948 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27949 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27950 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27951 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27952 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27953 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27954 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27955 examples/msg/run_msg_test \
27956 examples/simdag/test_simdag \
27958 test -e $file && chmod +x $file; \
27961 "examples/simdag/Makefile":F)
27964 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27965 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27967 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27968 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27969 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27970 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27971 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27972 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27973 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27974 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27975 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27976 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27977 examples/msg/run_msg_test \
27978 examples/simdag/test_simdag \
27980 test -e $file && chmod +x $file; \
27983 "examples/simdag/test_simdag":F)
27986 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27987 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27989 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27990 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27991 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27992 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27993 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27994 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27995 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27996 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27997 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27998 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27999 examples/msg/run_msg_test \
28000 examples/simdag/test_simdag \
28002 test -e $file && chmod +x $file; \
28005 "examples/gras/Makefile":F)
28008 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28009 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28011 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28012 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28013 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28014 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28015 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28016 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28017 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28018 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28019 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28020 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28021 examples/msg/run_msg_test \
28022 examples/simdag/test_simdag \
28024 test -e $file && chmod +x $file; \
28027 "examples/gras/ping/Makefile":F)
28030 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28031 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28033 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28034 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28035 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28036 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28037 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28038 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28039 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28040 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28041 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28042 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28043 examples/msg/run_msg_test \
28044 examples/simdag/test_simdag \
28046 test -e $file && chmod +x $file; \
28049 "examples/gras/ping/test_sg":F)
28052 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28053 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28055 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28056 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28057 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28058 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28059 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28060 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28061 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28062 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28063 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28064 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28065 examples/msg/run_msg_test \
28066 examples/simdag/test_simdag \
28068 test -e $file && chmod +x $file; \
28071 "examples/gras/ping/test_rl":F)
28074 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28075 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28077 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28078 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28079 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28080 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28081 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28082 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28083 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28084 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28085 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28086 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28087 examples/msg/run_msg_test \
28088 examples/simdag/test_simdag \
28090 test -e $file && chmod +x $file; \
28093 "examples/gras/rpc/Makefile":F)
28096 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28097 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28099 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28100 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28101 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28102 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28103 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28104 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28105 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28106 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28107 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28108 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28109 examples/msg/run_msg_test \
28110 examples/simdag/test_simdag \
28112 test -e $file && chmod +x $file; \
28115 "examples/gras/rpc/test_sg":F)
28118 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28119 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28121 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28122 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28123 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28124 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28125 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28126 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28127 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28128 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28129 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28130 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28131 examples/msg/run_msg_test \
28132 examples/simdag/test_simdag \
28134 test -e $file && chmod +x $file; \
28137 "examples/gras/rpc/test_rl":F)
28140 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28141 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28143 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28144 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28145 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28146 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28147 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28148 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28149 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28150 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28151 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28152 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28153 examples/msg/run_msg_test \
28154 examples/simdag/test_simdag \
28156 test -e $file && chmod +x $file; \
28159 "examples/gras/timer/Makefile":F)
28162 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28163 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28165 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28166 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28167 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28168 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28169 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28170 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28171 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28172 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28173 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28174 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28175 examples/msg/run_msg_test \
28176 examples/simdag/test_simdag \
28178 test -e $file && chmod +x $file; \
28181 "examples/gras/timer/test_sg":F)
28184 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28185 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28187 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28188 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28189 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28190 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28191 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28192 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28193 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28194 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28195 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28196 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28197 examples/msg/run_msg_test \
28198 examples/simdag/test_simdag \
28200 test -e $file && chmod +x $file; \
28203 "examples/gras/timer/test_rl":F)
28206 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28207 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28209 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28210 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28211 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28212 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28213 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28214 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28215 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28216 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28217 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28218 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28219 examples/msg/run_msg_test \
28220 examples/simdag/test_simdag \
28222 test -e $file && chmod +x $file; \
28225 "examples/gras/chrono/Makefile":F)
28228 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28229 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28231 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28232 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28233 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28234 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28235 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28236 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28237 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28238 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28239 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28240 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28241 examples/msg/run_msg_test \
28242 examples/simdag/test_simdag \
28244 test -e $file && chmod +x $file; \
28247 "examples/gras/chrono/test_sg":F)
28250 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28251 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28253 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28254 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28255 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28256 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28257 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28258 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28259 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28260 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28261 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28262 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28263 examples/msg/run_msg_test \
28264 examples/simdag/test_simdag \
28266 test -e $file && chmod +x $file; \
28269 "examples/gras/chrono/test_rl":F)
28272 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28273 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28275 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28276 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28277 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28278 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28279 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28280 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28281 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28282 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28283 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28284 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28285 examples/msg/run_msg_test \
28286 examples/simdag/test_simdag \
28288 test -e $file && chmod +x $file; \
28291 "examples/gras/mutual_exclusion/simple_token/Makefile":F)
28294 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28295 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28297 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28298 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28299 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28300 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28301 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28302 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28303 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28304 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28305 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28306 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28307 examples/msg/run_msg_test \
28308 examples/simdag/test_simdag \
28310 test -e $file && chmod +x $file; \
28313 "examples/gras/mutual_exclusion/simple_token/test_sg":F)
28316 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28317 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28319 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28320 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28321 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28322 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28323 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28324 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28325 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28326 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28327 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28328 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28329 examples/msg/run_msg_test \
28330 examples/simdag/test_simdag \
28332 test -e $file && chmod +x $file; \
28335 "examples/gras/mutual_exclusion/simple_token/test_rl":F)
28338 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28339 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28341 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28342 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28343 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28344 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28345 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28346 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28347 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28348 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28349 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28350 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28351 examples/msg/run_msg_test \
28352 examples/simdag/test_simdag \
28354 test -e $file && chmod +x $file; \
28357 "examples/gras/mmrpc/Makefile":F)
28360 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28361 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28363 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28364 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28365 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28366 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28367 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28368 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28369 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28370 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28371 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28372 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28373 examples/msg/run_msg_test \
28374 examples/simdag/test_simdag \
28376 test -e $file && chmod +x $file; \
28379 "examples/gras/mmrpc/test_sg":F)
28382 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28383 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28385 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28386 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28387 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28388 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28389 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28390 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28391 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28392 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28393 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28394 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28395 examples/msg/run_msg_test \
28396 examples/simdag/test_simdag \
28398 test -e $file && chmod +x $file; \
28401 "examples/gras/mmrpc/test_rl":F)
28404 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28405 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28407 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28408 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28409 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28410 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28411 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28412 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28413 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28414 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28415 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28416 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28417 examples/msg/run_msg_test \
28418 examples/simdag/test_simdag \
28420 test -e $file && chmod +x $file; \
28423 "examples/gras/pmm/Makefile":F)
28426 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28427 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28429 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28430 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28431 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28432 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28433 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28434 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28435 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28436 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28437 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28438 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28439 examples/msg/run_msg_test \
28440 examples/simdag/test_simdag \
28442 test -e $file && chmod +x $file; \
28445 "examples/gras/pmm/test_sg":F)
28448 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28449 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28451 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28452 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28453 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28454 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28455 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28456 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28457 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28458 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28459 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28460 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28461 examples/msg/run_msg_test \
28462 examples/simdag/test_simdag \
28464 test -e $file && chmod +x $file; \
28467 "examples/gras/pmm/test_rl":F)
28470 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28471 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28473 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28474 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28475 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28476 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28477 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28478 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28479 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28480 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28481 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28482 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28483 examples/msg/run_msg_test \
28484 examples/simdag/test_simdag \
28486 test -e $file && chmod +x $file; \
28489 "examples/gras/all2all/Makefile":F)
28492 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28493 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28495 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28496 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28497 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28498 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28499 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28500 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28501 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28502 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28503 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28504 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28505 examples/msg/run_msg_test \
28506 examples/simdag/test_simdag \
28508 test -e $file && chmod +x $file; \
28511 "examples/gras/all2all/test_sg":F)
28514 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28515 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28517 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28518 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28519 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28520 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28521 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28522 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28523 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28524 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28525 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28526 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28527 examples/msg/run_msg_test \
28528 examples/simdag/test_simdag \
28530 test -e $file && chmod +x $file; \
28533 "examples/gras/all2all/test_rl":F)
28536 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28537 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28539 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28540 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28541 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28542 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28543 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28544 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28545 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28546 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28547 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28548 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28549 examples/msg/run_msg_test \
28550 examples/simdag/test_simdag \
28552 test -e $file && chmod +x $file; \
28555 "examples/gras/p2p/Makefile":F)
28558 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28559 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28561 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28562 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28563 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28564 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28565 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28566 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28567 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28568 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28569 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28570 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28571 examples/msg/run_msg_test \
28572 examples/simdag/test_simdag \
28574 test -e $file && chmod +x $file; \
28577 "examples/gras/p2p/chord/Makefile":F)
28580 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28581 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28583 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28584 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28585 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28586 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28587 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28588 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28589 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28590 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28591 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28592 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28593 examples/msg/run_msg_test \
28594 examples/simdag/test_simdag \
28596 test -e $file && chmod +x $file; \
28599 "examples/gras/p2p/chord/test_sg":F)
28602 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28603 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28605 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28606 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28607 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28608 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28609 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28610 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28611 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28612 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28613 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28614 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28615 examples/msg/run_msg_test \
28616 examples/simdag/test_simdag \
28618 test -e $file && chmod +x $file; \
28621 "examples/gras/p2p/chord/test_rl":F)
28624 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28625 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28627 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28628 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28629 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28630 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28631 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28632 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28633 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28634 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28635 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28636 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28637 examples/msg/run_msg_test \
28638 examples/simdag/test_simdag \
28640 test -e $file && chmod +x $file; \
28643 "examples/gras/p2p/can/Makefile":F)
28646 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28647 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28649 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28650 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28651 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28652 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28653 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28654 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28655 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28656 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28657 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28658 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28659 examples/msg/run_msg_test \
28660 examples/simdag/test_simdag \
28662 test -e $file && chmod +x $file; \
28665 "examples/gras/p2p/can/test_sg":F)
28668 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28669 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28671 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28672 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28673 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28674 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28675 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28676 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28677 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28678 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28679 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28680 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28681 examples/msg/run_msg_test \
28682 examples/simdag/test_simdag \
28684 test -e $file && chmod +x $file; \
28687 "examples/gras/p2p/can/test_rl":F)
28690 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28691 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28693 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28694 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28695 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28696 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28697 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28698 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28699 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28700 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28701 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28702 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28703 examples/msg/run_msg_test \
28704 examples/simdag/test_simdag \
28706 test -e $file && chmod +x $file; \
28709 "examples/amok/Makefile":F)
28712 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28713 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28715 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28716 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28717 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28718 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28719 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28720 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28721 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28722 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28723 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28724 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28725 examples/msg/run_msg_test \
28726 examples/simdag/test_simdag \
28728 test -e $file && chmod +x $file; \
28731 "examples/amok/bandwidth/Makefile":F)
28734 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28735 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28737 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28738 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28739 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28740 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28741 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28742 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28743 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28744 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28745 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28746 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28747 examples/msg/run_msg_test \
28748 examples/simdag/test_simdag \
28750 test -e $file && chmod +x $file; \
28753 "examples/amok/bandwidth/test_sg":F)
28756 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28757 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28759 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28760 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28761 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28762 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28763 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28764 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28765 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28766 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28767 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28768 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28769 examples/msg/run_msg_test \
28770 examples/simdag/test_simdag \
28772 test -e $file && chmod +x $file; \
28775 "examples/amok/bandwidth/test_rl":F)
28778 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28779 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28781 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28782 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28783 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28784 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28785 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28786 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28787 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28788 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28789 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28790 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28791 examples/msg/run_msg_test \
28792 examples/simdag/test_simdag \
28794 test -e $file && chmod +x $file; \
28797 "examples/amok/saturate/Makefile":F)
28800 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28801 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28803 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28804 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28805 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28806 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28807 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28808 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28809 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28810 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28811 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28812 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28813 examples/msg/run_msg_test \
28814 examples/simdag/test_simdag \
28816 test -e $file && chmod +x $file; \
28819 "examples/amok/saturate/test_sg":F)
28822 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28823 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28825 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28826 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28827 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28828 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28829 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28830 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28831 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28832 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28833 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28834 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28835 examples/msg/run_msg_test \
28836 examples/simdag/test_simdag \
28838 test -e $file && chmod +x $file; \
28841 "examples/amok/saturate/test_rl":F)
28844 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28845 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28847 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28848 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28849 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28850 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28851 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28852 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28853 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28854 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28855 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28856 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28857 examples/msg/run_msg_test \
28858 examples/simdag/test_simdag \
28860 test -e $file && chmod +x $file; \
28868 { (exit 0); exit 0; }
28870 chmod +x $CONFIG_STATUS
28871 ac_clean_files=$ac_clean_files_save
28874 # configure is writing to config.log, and then calls config.status.
28875 # config.status does its own redirection, appending to config.log.
28876 # Unfortunately, on DOS this fails, as config.log is still kept open
28877 # by configure, so config.status won't be able to write to it; its
28878 # output is simply discarded. So we exec the FD to /dev/null,
28879 # effectively closing config.log, so it can be properly (re)opened and
28880 # appended to by config.status. When coming back to configure, we
28881 # need to make the FD available again.
28882 if test "$no_create" != yes; then
28884 ac_config_status_args=
28885 test "$silent" = yes &&
28886 ac_config_status_args="$ac_config_status_args --quiet"
28888 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28890 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28891 # would make configure fail if this is the last instruction.
28892 $ac_cs_success || { (exit 1); exit 1; }
28898 Configuration of package \`${PACKAGE}' (version ${VERSION}) on $gras_arch_name (=$gras_arch):
28900 Compiler: ${CC} (version: ${GCC_VERSION})
28903 CPPFlags: ${CPPFLAGS}
28904 LDFlags: ${LDFLAGS}
28906 Context backend: ${with_context}
28909 if test -e CVS && test x$USE_MAINTAINER_MODE != xyes ; then
28911 echo "WARNING: you seem to compile the CVS version without the maintainer mode."
28912 echo "WARNING: You won't be able to build archives that way (make dist is likely to fail). "
28913 echo "WARNING: If you want to enable the maintainer mode, juste specify it like this:"
28915 echo "WARNING: ./configure '--enable-maintainer-mode' $ac_configure_args"
28918 echo $build_id > stamp.configure